zartui 0.1.21 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -20
- package/changelog.generated.md +15 -0
- package/es/area/style/index.js +4 -0
- package/es/area/style/less.js +4 -0
- package/es/avatar/index.css +1 -1
- package/es/avatar/index.js +54 -36
- package/es/avatar/index.less +39 -11
- package/es/avatar/local.less +1 -1
- package/es/button/index.js +4 -1
- package/es/button/index.less +206 -206
- package/es/calendar/index.less +250 -250
- package/es/calendar/style/index.js +1 -1
- package/es/calendar/style/less.js +1 -1
- package/es/cell/index.less +103 -103
- package/es/cell-group/index.less +22 -22
- package/es/checkbox/index.less +89 -89
- package/es/checkbox-group/index.less +8 -8
- package/es/col/index.less +20 -20
- package/es/datetime-picker/style/index.js +4 -0
- package/es/datetime-picker/style/less.js +4 -0
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.less +125 -125
- package/es/dialog/style/index.js +1 -1
- package/es/dialog/style/less.js +1 -1
- package/es/empty/Developing.js +1643 -0
- package/es/empty/Error.js +484 -0
- package/es/empty/NotFound.js +645 -0
- package/es/empty/NotRight.js +395 -0
- package/es/empty/Search.js +336 -0
- package/es/empty/index.css +1 -0
- package/es/empty/index.js +105 -0
- package/es/empty/index.less +33 -0
- package/es/empty/style/index.js +2 -0
- package/es/empty/style/less.js +2 -0
- package/es/field/index.less +172 -172
- package/es/icon/index.less +10 -10
- package/es/icon/local.less +1 -1
- package/es/image/index.less +47 -47
- package/es/image-preview/index.less +103 -103
- package/es/image-preview/style/index.js +1 -1
- package/es/image-preview/style/less.js +1 -1
- package/es/index.js +6 -3
- package/es/info/index.less +29 -29
- package/es/loading/index.less +103 -103
- package/es/locale/lang/zh-CN.js +22 -0
- package/es/mixins/bind-event.js +2 -2
- package/es/mixins/checkbox.js +2 -2
- package/es/mixins/click-outside.js +2 -2
- package/es/mixins/slots.js +3 -3
- package/es/mixins/telemetry.js +11 -0
- package/es/nav-bar/index.less +74 -74
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.less +144 -142
- package/es/overlay/index.less +11 -11
- package/es/password-input/index.css +1 -0
- package/es/password-input/index.js +80 -0
- package/es/password-input/index.less +83 -0
- package/es/password-input/style/index.js +2 -0
- package/es/password-input/style/less.js +2 -0
- package/es/pdf-viewer/style/index.js +1 -1
- package/es/pdf-viewer/style/less.js +1 -1
- package/es/picker/PickerColumn.js +5 -6
- package/es/picker/index.js +34 -5
- package/es/picker/index.less +151 -151
- package/es/picker/shared.js +4 -0
- package/es/picker/style/index.js +4 -0
- package/es/picker/style/less.js +4 -0
- package/es/popup/index.less +137 -137
- package/es/popup/style/index.js +1 -1
- package/es/popup/style/less.js +1 -1
- package/es/radio/index.less +86 -86
- package/es/radio-group/index.less +8 -8
- package/es/rate/index.css +1 -1
- package/es/rate/index.js +1 -1
- package/es/rate/index.less +47 -47
- package/es/row/index.less +42 -42
- package/es/signature/index.css +1 -0
- package/es/signature/index.js +230 -0
- package/es/signature/index.less +50 -0
- package/es/signature/style/index.js +9 -0
- package/es/signature/style/less.js +9 -0
- package/es/slider/index.less +94 -94
- package/es/step/index.less +139 -139
- package/es/stepper/index.less +130 -130
- package/es/steps/index.less +21 -21
- package/es/sticky/index.less +11 -11
- package/es/style/animation.less +139 -139
- package/es/style/base.less +11 -11
- package/es/style/clearfix.less +5 -5
- package/es/style/ellipsis.less +13 -13
- package/es/style/hairline.less +47 -47
- package/es/style/halfPxBorder.less +15 -15
- package/es/style/mixins/clearfix.less +7 -7
- package/es/style/mixins/ellipsis.less +15 -15
- package/es/style/mixins/hairline.less +39 -39
- package/es/style/normalize.less +38 -38
- package/es/style/reset.less +171 -171
- package/es/style/var.less +941 -919
- package/es/swipe/index.less +56 -56
- package/es/swipe-cell/index.less +29 -29
- package/es/swipe-item/index.less +8 -8
- package/es/switch/index.less +56 -56
- package/es/switch/shared.js +2 -2
- package/es/switch-cell/index.less +15 -15
- package/es/tab/index.less +17 -17
- package/es/tabs/index.less +153 -153
- package/es/tag/index.less +99 -99
- package/es/telemetry/index.js +72 -0
- package/es/toast/index.js +1 -1
- package/es/toast/index.less +75 -75
- package/es/toast/style/index.js +1 -1
- package/es/toast/style/less.js +1 -1
- package/es/uploader/index.less +163 -163
- package/es/uploader/style/index.js +1 -1
- package/es/uploader/style/less.js +1 -1
- package/es/utils/create/bem.js +7 -7
- package/es/utils/create/component.js +37 -7
- package/es/utils/dom/raf.js +2 -2
- package/es/utils/dom/reset-scroll.js +3 -3
- package/es/utils/index.js +29 -29
- package/es/utils/media/image-util.js +138 -0
- package/es/utils/router.js +2 -2
- package/lib/7893e51cf0a4877dac80.worker.js +10 -0
- package/lib/area/style/index.js +4 -0
- package/lib/area/style/less.js +4 -0
- package/lib/avatar/index.css +1 -1
- package/lib/avatar/index.js +55 -37
- package/lib/avatar/index.less +39 -11
- package/lib/avatar/local.less +1 -1
- package/lib/be09b519a460e229fd8d.worker.js +2527 -0
- package/lib/button/index.js +5 -0
- package/lib/button/index.less +206 -206
- package/lib/calendar/index.less +250 -250
- package/lib/calendar/style/index.js +1 -1
- package/lib/calendar/style/less.js +1 -1
- package/lib/cell/index.less +103 -103
- package/lib/cell-group/index.less +22 -22
- package/lib/checkbox/index.less +89 -89
- package/lib/checkbox-group/index.less +8 -8
- package/lib/col/index.less +20 -20
- package/lib/datetime-picker/style/index.js +4 -0
- package/lib/datetime-picker/style/less.js +4 -0
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.less +125 -125
- package/lib/dialog/style/index.js +1 -1
- package/lib/dialog/style/less.js +1 -1
- package/lib/empty/Developing.js +1648 -0
- package/lib/empty/Error.js +489 -0
- package/lib/empty/NotFound.js +650 -0
- package/lib/empty/NotRight.js +400 -0
- package/lib/empty/Search.js +341 -0
- package/lib/empty/index.css +1 -0
- package/lib/empty/index.js +119 -0
- package/lib/empty/index.less +33 -0
- package/lib/empty/style/index.js +2 -0
- package/lib/empty/style/less.js +2 -0
- package/lib/field/index.less +172 -172
- package/lib/icon/index.less +10 -10
- package/lib/icon/local.less +1 -1
- package/lib/image/index.less +47 -47
- package/lib/image-preview/index.less +103 -103
- package/lib/image-preview/style/index.js +1 -1
- package/lib/image-preview/style/less.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +14 -2
- package/lib/index.less +6 -3
- package/lib/info/index.less +29 -29
- package/lib/loading/index.less +103 -103
- package/lib/locale/lang/zh-CN.js +22 -0
- package/lib/mixins/bind-event.js +2 -2
- package/lib/mixins/checkbox.js +2 -2
- package/lib/mixins/click-outside.js +2 -2
- package/lib/mixins/slots.js +3 -3
- package/lib/mixins/telemetry.js +20 -0
- package/lib/nav-bar/index.less +74 -74
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.less +144 -142
- package/lib/overlay/index.less +11 -11
- package/lib/password-input/index.css +1 -0
- package/lib/password-input/index.js +93 -0
- package/lib/password-input/index.less +83 -0
- package/lib/password-input/style/index.js +2 -0
- package/lib/password-input/style/less.js +2 -0
- package/lib/pdf-viewer/style/index.js +1 -1
- package/lib/pdf-viewer/style/less.js +1 -1
- package/lib/picker/PickerColumn.js +5 -6
- package/lib/picker/index.js +36 -6
- package/lib/picker/index.less +151 -151
- package/lib/picker/shared.js +4 -0
- package/lib/picker/style/index.js +4 -0
- package/lib/picker/style/less.js +4 -0
- package/lib/popup/index.less +137 -137
- package/lib/popup/style/index.js +1 -1
- package/lib/popup/style/less.js +1 -1
- package/lib/radio/index.less +86 -86
- package/lib/radio-group/index.less +8 -8
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.js +1 -1
- package/lib/rate/index.less +47 -47
- package/lib/row/index.less +42 -42
- package/lib/signature/index.css +1 -0
- package/lib/signature/index.js +242 -0
- package/lib/signature/index.less +50 -0
- package/lib/signature/style/index.js +9 -0
- package/lib/signature/style/less.js +9 -0
- package/lib/slider/index.less +94 -94
- package/lib/step/index.less +139 -139
- package/lib/stepper/index.less +130 -130
- package/lib/steps/index.less +21 -21
- package/lib/sticky/index.less +11 -11
- package/lib/style/animation.less +139 -139
- package/lib/style/base.less +11 -11
- package/lib/style/clearfix.less +5 -5
- package/lib/style/ellipsis.less +13 -13
- package/lib/style/hairline.less +47 -47
- package/lib/style/halfPxBorder.less +15 -15
- package/lib/style/mixins/clearfix.less +7 -7
- package/lib/style/mixins/ellipsis.less +15 -15
- package/lib/style/mixins/hairline.less +39 -39
- package/lib/style/normalize.less +38 -38
- package/lib/style/reset.less +171 -171
- package/lib/style/var.less +941 -919
- package/lib/swipe/index.less +56 -56
- package/lib/swipe-cell/index.less +29 -29
- package/lib/swipe-item/index.less +8 -8
- package/lib/switch/index.less +56 -56
- package/lib/switch/shared.js +2 -2
- package/lib/switch-cell/index.less +15 -15
- package/lib/tab/index.less +17 -17
- package/lib/tabs/index.less +153 -153
- package/lib/tag/index.less +99 -99
- package/lib/telemetry/index.js +82 -0
- package/lib/toast/index.js +1 -1
- package/lib/toast/index.less +75 -75
- package/lib/toast/style/index.js +1 -1
- package/lib/toast/style/less.js +1 -1
- package/lib/uploader/index.less +163 -163
- package/lib/uploader/style/index.js +1 -1
- package/lib/uploader/style/less.js +1 -1
- package/lib/utils/create/bem.js +7 -7
- package/lib/utils/create/component.js +41 -7
- package/lib/utils/dom/raf.js +2 -2
- package/lib/utils/dom/reset-scroll.js +3 -3
- package/lib/utils/index.js +29 -29
- package/lib/utils/media/image-util.js +153 -0
- package/lib/utils/router.js +2 -2
- package/lib/zart.js +27476 -55536
- package/lib/zart.min.js +5 -5
- package/package.json +74 -74
- package/lib/a037f57fc4d92a8a1f1e.worker.js +0 -60600
- package/lib/b7cf90b4775181215df7.worker.js +0 -10
package/lib/zart.min.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("zart",["vue"],e):"object"==typeof exports?exports.zart=e(require("vue")):t.zart=e(t.Vue)}("undefined"!=typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__2__){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=36)}([function(t,e,n){"use strict";n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return p.a})),n.d(e,"d",(function(){return v})),n.d(e,"i",(function(){return g})),n.d(e,"j",(function(){return m})),n.d(e,"e",(function(){return y})),n.d(e,"f",(function(){return b})),n.d(e,"g",(function(){return _})),n.d(e,"h",(function(){return w})),n.d(e,"c",(function(){return S}));var r=n(2),i=n.n(r);function o(t){return function(e,n){return e&&"string"!=typeof e&&(n=e,e=""),""+(e=e?t+"__"+e:t)+function t(e,n){return n?"string"==typeof n?" "+e+"--"+n:Array.isArray(n)?n.reduce((function(n,r){return n+t(e,r)}),""):Object.keys(n).reduce((function(r,i){return r+(n[i]?t(e,i):"")}),""):""}(e,n)}}var a=n(7),s=n(3),u={methods:{slots:function(t,e){void 0===t&&(t="default");var n=this.$slots,r=this.$scopedSlots[t];return r?r(e):n[t]}}};function l(t){var e=this.name;t.component(e,this),t.component(Object(s.a)("-"+e),this)}function c(t){return{functional:!0,props:t.props,model:t.model,render:function(e,n){return t(e,n.props,function(t){var e=t.scopedSlots||t.data.scopedSlots||{},n=t.slots();return Object.keys(n).forEach((function(t){e[t]||(e[t]=function(){return n[t]})})),e}(n),n)}}}function h(t){return function(e){return b(e)&&(e=c(e)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(u)),e.name=t,e.install=l,e}}function f(t){var e=Object(s.a)(t)+".";return function(t){for(var n=a.a.messages(),r=S(n,e+t)||S(n,t),i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return b(r)?r.apply(void 0,o):r}}function d(t){return[h(t="zt-"+t),o(t),f(t)]}var p=n(5),v="undefined"!=typeof window,g=i.a.prototype.$isServer;function m(){}function y(t){return null!=t}function b(t){return"function"==typeof t}function _(t){return null!==t&&"object"==typeof t}function w(t){return _(t)&&b(t.then)&&b(t.catch)}function S(t,e){var n=e.split("."),r=t;return n.forEach((function(t){var e;r=null!=(e=r[t])?e:""})),r}},function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)}var i=["attrs","props","domProps"],o=["class","style","directives"],a=["on","nativeOn"],s=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce((function(t,e){for(var n in e)if(t[n])if(-1!==i.indexOf(n))t[n]=r({},t[n],e[n]);else if(-1!==o.indexOf(n)){var u=t[n]instanceof Array?t[n]:[t[n]],l=e[n]instanceof Array?e[n]:[e[n]];t[n]=u.concat(l)}else if(-1!==a.indexOf(n))for(var c in e[n])if(t[n][c]){var h=t[n][c]instanceof Array?t[n][c]:[t[n][c]],f=e[n][c]instanceof Array?e[n][c]:[e[n][c]];t[n][c]=h.concat(f)}else t[n][c]=e[n][c];else if("hook"==n)for(var d in e[n])t[n][d]=t[n][d]?s(t[n][d],e[n][d]):e[n][d];else t[n]=e[n];else t[n]=e[n];return t}),{})}},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__2__},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=/-(\w)/g;function i(t){return t.replace(r,(function(t,e){return e.toUpperCase()}))}function o(t,e){void 0===e&&(e=2);for(var n=t+"";n.length<e;)n="0"+n;return n}},function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return c}));var r=n(0),i=Date.now();var o=r.i?t:window,a=o.requestAnimationFrame||function(t){var e=Date.now(),n=Math.max(0,16-(e-i)),r=setTimeout(t,n);return i=e+n,r},s=o.cancelAnimationFrame||o.clearTimeout;function u(t){return a.call(o,t)}function l(t){u((function(){u(t)}))}function c(t){s.call(o,t)}}).call(this,n(8))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u}));var r,i=n(0),o=n(6);function a(t){if(Object(i.e)(t))return t=String(t),Object(o.b)(t)?t+"px":t}function s(t){return+(t=t.replace(/rem/g,""))*function(){if(!r){var t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;r=parseFloat(e)}return r}()}function u(t){if("number"==typeof t)return t;if(i.d){if(-1!==t.indexOf("rem"))return s(t);if(-1!==t.indexOf("vw"))return function(t){return+(t=t.replace(/vw/g,""))*window.innerWidth/100}(t);if(-1!==t.indexOf("vh"))return function(t){return+(t=t.replace(/vh/g,""))*window.innerHeight/100}(t)}return parseFloat(t)}},function(t,e,n){"use strict";function r(t){return/^\d+(\.\d+)?$/.test(t)}function i(t){return Number.isNaN?Number.isNaN(t):t!=t}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";var r=n(2),i=n.n(r),o=n(0),a=Object.prototype.hasOwnProperty;function s(t,e){return Object.keys(e).forEach((function(n){!function(t,e,n){var r=e[n];Object(o.e)(r)&&(a.call(t,n)&&Object(o.g)(r)?t[n]=s(Object(t[n]),e[n]):t[n]=r)}(t,e,n)})),t}var u=i.a.prototype,l=i.a.util.defineReactive;l(u,"$vantLang","zh-CN"),l(u,"$vantMessages",{"zh-CN":{name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",ztDateTimePicker:{year:"年",month:"月",day:"日",hour:"时",minute:"分"},ztCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(t,e){return t+"年"+e+"月"},rangePrompt:function(t){return"选择天数不能超过 "+t+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},ztSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(t){return t+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}}});e.a={messages:function(){return u.$vantMessages[u.$vantLang]},use:function(t,e){var n;u.$vantLang=t,this.add(((n={})[t]=e,n))},add:function(t){void 0===t&&(t={}),s(u.$vantMessages,t)}}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";(function(t){var r=n(11);if(n(13),"server"!==t.env.VUE_ENV){var i=n(29).default,o=window.pdfjsLib;if("undefined"!=typeof window&&"Worker"in window&&-1===navigator.appVersion.indexOf("MSIE 10")){var a=n(31);o.GlobalWorkerOptions.workerPort=new a}var s=Object(r.a)(i(o))}else s=Object(r.a)({});e.a=s}).call(this,n(12))},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r={props:{initial:{type:Boolean,default:!1}},data:function(){return{size:{width:-1,height:-1}}},methods:{reset:function(){var t=this.$el.firstChild,e=this.$el.lastChild;t.scrollLeft=1e5,t.scrollTop=1e5,e.scrollLeft=1e5,e.scrollTop=1e5},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight}},watch:{size:{deep:!0,handler:function(t){this.reset(),this.$emit("resize",{width:this.size.width,height:this.size.height})}}},render:function(t){var e="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",n="position: absolute; left: 0; top: 0;";return t("div",{style:e+"animation-name: resizeSensorVisibility;",on:{"~animationstart":this.update}},[t("div",{style:e,on:{scroll:this.update}},[t("div",{style:n+"width: 100000px; height: 100000px;"})]),t("div",{style:e,on:{scroll:this.update}},[t("div",{style:n+"width: 200%; height: 200%;"})])])},beforeDestroy:function(){this.$emit("resize",{width:0,height:0}),this.$emit("resizeSensorBeforeDestroy")},mounted:function(){if(!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"attachEvent"in this.$el&&!("AnimationEvent"in window)){var t=function(){this.update(),e()}.bind(this),e=function(){this.$el.detachEvent("onresize",t),this.$off("resizeSensorBeforeDestroy",e)}.bind(this);this.$el.attachEvent("onresize",t),this.$on("resizeSensorBeforeDestroy",e),this.reset()}}},i=(n(27),n(10)),o=Object(i.a)(r,void 0,void 0,!1,null,null,null).exports;e.a=function(t){var e=t.createLoadingTask,n=t.PDFJSWrapper;return{createLoadingTask:e,render:function(t){return t("span",{attrs:{style:"position: relative; display: block"}},[t("canvas",{attrs:{style:"display: inline-block; width: 100%; height: 100%; vertical-align: top"},ref:"canvas"}),t("span",{style:"display: inline-block; width: 100%; height: 100%",class:"annotationLayer",ref:"annotationLayer"}),t(o,{props:{initial:!0},on:{resize:this.resize}})])},props:{src:{type:[String,Object,Uint8Array],default:""},page:{type:Number,default:1},rotate:{type:Number}},watch:{src:function(){this.pdf.loadDocument(this.src)},page:function(){this.pdf.loadPage(this.page,this.rotate)},rotate:function(){this.pdf.renderPage(this.rotate)}},methods:{resize:function(t){if(null!==this.$el.parentNode&&(0!==t.width||0!==t.height)){this.$refs.canvas.style.height=this.$refs.canvas.offsetWidth*(this.$refs.canvas.height/this.$refs.canvas.width)+"px";var e=this.pdf.getResolutionScale();(e<.85||e>1.15)&&this.pdf.renderPage(this.rotate)}},print:function(t,e){this.pdf.printPage(t,e)}},mounted:function(){this.pdf=new n(this.$refs.canvas,this.$refs.annotationLayer,this.$emit.bind(this)),this.$on("loaded",(function(){this.pdf.loadPage(this.page,this.rotate)})),this.$on("page-size",(function(t,e){this.$refs.canvas.style.height=this.$refs.canvas.offsetWidth*(e/t)+"px"})),this.pdf.loadDocument(this.src)},destroyed:function(){this.pdf.destroy()}}}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,l=[],c=!1,h=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&d())}function d(){if(!c){var t=s(f);c=!0;for(var e=l.length;e;){for(u=l,l=[];++h<e;)u&&u[h].run();h=-1,e=l.length}u=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||c||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(module,exports,__webpack_require__){(function(global,Buffer,process){var root,factory;root="undefined"==typeof window?global:window,factory=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLinkAttributes",{enumerable:!0,get:function(){return r.addLinkAttributes}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(e,"LinkTarget",{enumerable:!0,get:function(){return r.LinkTarget}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return i.build}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return i.getDocument}}),Object.defineProperty(e,"LoopbackPort",{enumerable:!0,get:function(){return i.LoopbackPort}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return i.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return i.PDFWorker}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return i.version}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return o.CMapCompressionType}}),Object.defineProperty(e,"createObjectURL",{enumerable:!0,get:function(){return o.createObjectURL}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return o.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return o.createValidAbsoluteUrl}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return o.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return o.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return o.OPS}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return o.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return o.PermissionFlag}}),Object.defineProperty(e,"removeNullCharacters",{enumerable:!0,get:function(){return o.removeNullCharacters}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return o.shadow}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return o.UnexpectedResponseException}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return o.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return o.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return o.VerbosityLevel}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(e,"apiCompatibilityParams",{enumerable:!0,get:function(){return s.apiCompatibilityParams}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return u.GlobalWorkerOptions}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return l.renderTextLayer}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return c.SVGGraphics}});var r=n(1),i=n(198),o=n(5),a=n(209),s=n(200),u=n(203),l=n(210),c=n(211);if(n(7).isNodeJS){var h=n(212).PDFNodeStream;(0,i.setPDFNetworkStreamFactory)((function(t){return new h(t)}))}else{var f,d=n(215).PDFNetworkStream;(0,r.isFetchSupported)()&&(f=n(216).PDFFetchStream),(0,i.setPDFNetworkStreamFactory)((function(t){return f&&(0,r.isValidFetchUrl)(t.url)?new f(t):new d(t)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addLinkAttributes=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.url,r=e.target,i=e.rel,a=e.enabled,s=void 0===a||a;(0,o.assert)(n&&"string"==typeof n,'addLinkAttributes: A valid "url" parameter must provided.');var u=(0,o.removeNullCharacters)(n);s?t.href=t.title=u:(t.href="",t.title="Disabled: ".concat(u),t.onclick=function(){return!1});var l="";switch(r){case x.NONE:break;case x.SELF:l="_self";break;case x.BLANK:l="_blank";break;case x.PARENT:l="_parent";break;case x.TOP:l="_top"}t.target=l,t.rel="string"==typeof i?i:"noopener noreferrer nofollow"},e.getFilenameFromUrl=function(t){var e=t.indexOf("#"),n=t.indexOf("?"),r=Math.min(e>0?e:t.length,n>0?n:t.length);return t.substring(t.lastIndexOf("/",r)+1,r)},e.isFetchSupported=P,e.isValidFetchUrl=T,e.loadScript=function(t){return new Promise((function(e,n){var r=document.createElement("script");r.src=t,r.onload=e,r.onerror=function(){n(new Error("Cannot load script at: ".concat(r.src)))},(document.head||document.documentElement).appendChild(r)}))},e.deprecated=function(t){console.log("Deprecated API usage: "+t)},e.PDFDateString=e.StatTimer=e.DOMSVGFactory=e.DOMCMapReaderFactory=e.DOMCanvasFactory=e.DEFAULT_LINK_REL=e.LinkTarget=e.RenderingCancelledException=e.PageViewport=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},o=n(5);function a(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function p(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){d(o,r,i,a,s,"next",t)}function s(t){d(o,r,i,a,s,"throw",t)}a(void 0)}))}}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),t}e.DEFAULT_LINK_REL="noopener noreferrer nofollow";var y="http://www.w3.org/2000/svg",b=function(){function t(){v(this,t)}return m(t,[{key:"create",value:function(t,e){if(t<=0||e<=0)throw new Error("Invalid canvas size");var n=document.createElement("canvas"),r=n.getContext("2d");return n.width=t,n.height=e,{canvas:n,context:r}}},{key:"reset",value:function(t,e,n){if(!t.canvas)throw new Error("Canvas is not specified");if(e<=0||n<=0)throw new Error("Invalid canvas size");t.canvas.width=e,t.canvas.height=n}},{key:"destroy",value:function(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}}]),t}();e.DOMCanvasFactory=b;var _=function(){function t(e){var n=e.baseUrl,r=void 0===n?null:n,i=e.isCompressed,o=void 0!==i&&i;v(this,t),this.baseUrl=r,this.isCompressed=o}return m(t,[{key:"fetch",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){var t=p(i.default.mark((function t(e){var n,r,a,s=this;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.name,this.baseUrl){t.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(n){t.next=5;break}throw new Error("CMap name must be specified.");case 5:if(r=this.baseUrl+n+(this.isCompressed?".bcmap":""),a=this.isCompressed?o.CMapCompressionType.BINARY:o.CMapCompressionType.NONE,!P()||!T(r,document.baseURI)){t.next=9;break}return t.abrupt("return",fetch(r).then(function(){var t=p(i.default.mark((function t(e){var n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.ok){t.next=2;break}throw new Error(e.statusText);case 2:if(!s.isCompressed){t.next=10;break}return t.t0=Uint8Array,t.next=6,e.arrayBuffer();case 6:t.t1=t.sent,n=new t.t0(t.t1),t.next=15;break;case 10:return t.t2=o.stringToBytes,t.next=13,e.text();case 13:t.t3=t.sent,n=(0,t.t2)(t.t3);case 15:return t.abrupt("return",{cMapData:n,compressionType:a});case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){throw new Error("Unable to load ".concat(s.isCompressed?"binary ":"")+"CMap at: ".concat(r))})));case 9:return t.abrupt("return",new Promise((function(t,e){var n=new XMLHttpRequest;n.open("GET",r,!0),s.isCompressed&&(n.responseType="arraybuffer"),n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE){var r;if((200===n.status||0===n.status)&&(s.isCompressed&&n.response?r=new Uint8Array(n.response):!s.isCompressed&&n.responseText&&(r=(0,o.stringToBytes)(n.responseText)),r))return void t({cMapData:r,compressionType:a});e(new Error(n.statusText))}},n.send(null)})).catch((function(t){throw new Error("Unable to load ".concat(s.isCompressed?"binary ":"")+"CMap at: ".concat(r))})));case 10:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}())}]),t}();e.DOMCMapReaderFactory=_;var w=function(){function t(){v(this,t)}return m(t,[{key:"create",value:function(t,e){(0,o.assert)(t>0&&e>0,"Invalid SVG dimensions");var n=document.createElementNS(y,"svg:svg");return n.setAttribute("version","1.1"),n.setAttribute("width",t+"px"),n.setAttribute("height",e+"px"),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 "+t+" "+e),n}},{key:"createElement",value:function(t){return(0,o.assert)("string"==typeof t,"Invalid SVG element type"),document.createElementNS(y,t)}}]),t}();e.DOMSVGFactory=w;var S=function(){function t(e){var n=e.viewBox,r=e.scale,i=e.rotation,o=e.offsetX,a=void 0===o?0:o,s=e.offsetY,u=void 0===s?0:s,l=e.dontFlip,c=void 0!==l&&l;v(this,t),this.viewBox=n,this.scale=r,this.rotation=i,this.offsetX=a,this.offsetY=u;var h,f,d,p,g,m,y,b,_=(n[2]+n[0])/2,w=(n[3]+n[1])/2;switch(i=(i%=360)<0?i+360:i){case 180:h=-1,f=0,d=0,p=1;break;case 90:h=0,f=1,d=1,p=0;break;case 270:h=0,f=-1,d=-1,p=0;break;case 0:h=1,f=0,d=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}c&&(d=-d,p=-p),0===h?(g=Math.abs(w-n[1])*r+a,m=Math.abs(_-n[0])*r+u,y=Math.abs(n[3]-n[1])*r,b=Math.abs(n[2]-n[0])*r):(g=Math.abs(_-n[0])*r+a,m=Math.abs(w-n[1])*r+u,y=Math.abs(n[2]-n[0])*r,b=Math.abs(n[3]-n[1])*r),this.transform=[h*r,f*r,d*r,p*r,g-h*r*_-d*r*w,m-f*r*_-p*r*w],this.width=y,this.height=b}return m(t,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.scale,r=void 0===n?this.scale:n,i=e.rotation,o=void 0===i?this.rotation:i,a=e.offsetX,s=void 0===a?this.offsetX:a,u=e.offsetY,l=void 0===u?this.offsetY:u,c=e.dontFlip,h=void 0!==c&&c;return new t({viewBox:this.viewBox.slice(),scale:r,rotation:o,offsetX:s,offsetY:l,dontFlip:h})}},{key:"convertToViewportPoint",value:function(t,e){return o.Util.applyTransform([t,e],this.transform)}},{key:"convertToViewportRectangle",value:function(t){var e=o.Util.applyTransform([t[0],t[1]],this.transform),n=o.Util.applyTransform([t[2],t[3]],this.transform);return[e[0],e[1],n[0],n[1]]}},{key:"convertToPdfPoint",value:function(t,e){return o.Util.applyInverseTransform([t,e],this.transform)}}]),t}();e.PageViewport=S;var A=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(n,t);var e=c(n);function n(t,r){var i;return v(this,n),(i=e.call(this,t)).type=r,i}return n}(o.BaseException);e.RenderingCancelledException=A;var x={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};e.LinkTarget=x;var k,C=function(){function t(){v(this,t),this.started=Object.create(null),this.times=[]}return m(t,[{key:"time",value:function(t){t in this.started&&(0,o.warn)("Timer is already running for ".concat(t)),this.started[t]=Date.now()}},{key:"timeEnd",value:function(t){t in this.started||(0,o.warn)("Timer has not been started for ".concat(t)),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}},{key:"toString",value:function(){var t,e=[],n=0,r=a(this.times);try{for(r.s();!(t=r.n()).done;){var i=t.value.name;i.length>n&&(n=i.length)}}catch(t){r.e(t)}finally{r.f()}var o,s=a(this.times);try{for(s.s();!(o=s.n()).done;){var u=o.value,l=u.end-u.start;e.push("".concat(u.name.padEnd(n)," ").concat(l,"ms\n"))}}catch(t){s.e(t)}finally{s.f()}return e.join("")}}]),t}();function P(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function T(t,e){try{var n=(e?new URL(t,e):new URL(t)).protocol;return"http:"===n||"https:"===n}catch(t){return!1}}e.StatTimer=C;var R=function(){function t(){v(this,t)}return m(t,null,[{key:"toDateObject",value:function(t){if(!t||!(0,o.isString)(t))return null;k||(k=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var e=k.exec(t);if(!e)return null;var n=parseInt(e[1],10),r=parseInt(e[2],10);r=r>=1&&r<=12?r-1:0;var i=parseInt(e[3],10);i=i>=1&&i<=31?i:1;var a=parseInt(e[4],10);a=a>=0&&a<=23?a:0;var s=parseInt(e[5],10);s=s>=0&&s<=59?s:0;var u=parseInt(e[6],10);u=u>=0&&u<=59?u:0;var l=e[7]||"Z",c=parseInt(e[8],10);c=c>=0&&c<=23?c:0;var h=parseInt(e[9],10)||0;return h=h>=0&&h<=59?h:0,"-"===l?(a+=c,s+=h):"+"===l&&(a-=c,s-=h),new Date(Date.UTC(n,r,i,a,s,u))}}]),t}();e.PDFDateString=R},function(t,e,n){"use strict";t.exports=n(3)},function(t,e,n){"use strict";(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=function(t){var n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),a=new A(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var c={};function h(){}function f(){}function d(){}var p={};p[o]=function(){return this};var v=Object.getPrototypeOf,g=v&&v(v(x([])));g&&g!==n&&r.call(g,o)&&(p=g);var m=d.prototype=h.prototype=Object.create(p);function y(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function b(t,n){var i;this._invoke=function(o,a){function s(){return new n((function(i,s){!function i(o,a,s,u){var c=l(t[o],t,a);if("throw"!==c.type){var h=c.arg,f=h.value;return f&&"object"===e(f)&&r.call(f,"__await")?n.resolve(f.__await).then((function(t){i("next",t,s,u)}),(function(t){i("throw",t,s,u)})):n.resolve(f).then((function(t){h.value=t,s(h)}),(function(t){return i("throw",t,s,u)}))}u(c.arg)}(o,a,i,s)}))}return i=i?i.then(s,s):s()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,c;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return f.prototype=m.constructor=d,d.constructor=f,d[s]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},y(b.prototype),b.prototype[a]=function(){return this},t.AsyncIterator=b,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new b(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(m),m[s]="Generator",m[o]=function(){return this},m.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=x,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(4)(t))},function(t,e,n){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.arrayByteLength=P,e.arraysToBytes=function(t){var e=t.length;if(1===e&&t[0]instanceof Uint8Array)return t[0];for(var n=0,r=0;r<e;r++)n+=P(t[r]);for(var i=0,o=new Uint8Array(n),a=0;a<e;a++){var s=t[a];s instanceof Uint8Array||(s="string"==typeof s?C(s):new Uint8Array(s));var u=s.byteLength;o.set(s,i),i+=u}return o},e.assert=v,e.bytesToString=function(t){v(null!==t&&"object"===i(t)&&void 0!==t.length,"Invalid argument for bytesToString");var e=t.length;if(e<8192)return String.fromCharCode.apply(null,t);for(var n=[],r=0;r<e;r+=8192){var o=Math.min(r+8192,e),a=t.subarray(r,o);n.push(String.fromCharCode.apply(null,a))}return n.join("")},e.createPromiseCapability=function(){var t=Object.create(null),e=!1;return Object.defineProperty(t,"settled",{get:function(){return e}}),t.promise=new Promise((function(n,r){t.resolve=function(t){e=!0,n(t)},t.reject=function(t){e=!0,r(t)}})),t},e.getVerbosityLevel=function(){return f},e.info=function(t){f>=h.INFOS&&console.log("Info: ".concat(t))},e.isArrayBuffer=function(t){return"object"===i(t)&&null!==t&&void 0!==t.byteLength},e.isArrayEqual=function(t,e){return t.length===e.length&&t.every((function(t,n){return t===e[n]}))},e.isBool=function(t){return"boolean"==typeof t},e.isEmptyObj=function(t){for(var e in t)return!1;return!0},e.isNum=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSameOrigin=function(t,e){var n;try{if(!(n=new URL(t)).origin||"null"===n.origin)return!1}catch(t){return!1}var r=new URL(e,n);return n.origin===r.origin},e.createValidAbsoluteUrl=function(t,e){if(!t)return null;try{var n=e?new URL(t,e):new URL(t);if(function(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(t){}return null},e.removeNullCharacters=function(t){return"string"!=typeof t?(d("The argument for removeNullCharacters must be a string."),t):t.replace(k,"")},e.setVerbosityLevel=function(t){Number.isInteger(t)&&(f=t)},e.shadow=g,e.string32=function(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)},e.stringToBytes=C,e.stringToPDFString=function(t){var e=t.length,n=[];if("þ"===t[0]&&"ÿ"===t[1])for(var r=2;r<e;r+=2)n.push(String.fromCharCode(t.charCodeAt(r)<<8|t.charCodeAt(r+1)));else if("ÿ"===t[0]&&"þ"===t[1])for(var i=2;i<e;i+=2)n.push(String.fromCharCode(t.charCodeAt(i+1)<<8|t.charCodeAt(i)));else for(var o=0;o<e;++o){var a=I[t.charCodeAt(o)];n.push(a?String.fromCharCode(a):t.charAt(o))}return n.join("")},e.stringToUTF8String=function(t){return decodeURIComponent(escape(t))},e.utf8StringToString=function(t){return unescape(encodeURIComponent(t))},e.warn=d,e.unreachable=p,e.IsEvalSupportedCached=e.IsLittleEndianCached=e.createObjectURL=e.FormatError=e.Util=e.UnknownErrorException=e.UnexpectedResponseException=e.TextRenderingMode=e.StreamType=e.PermissionFlag=e.PasswordResponses=e.PasswordException=e.MissingPDFException=e.InvalidPDFException=e.AbortException=e.CMapCompressionType=e.ImageKind=e.FontType=e.AnnotationType=e.AnnotationStateModelType=e.AnnotationReviewState=e.AnnotationReplyType=e.AnnotationMarkedState=e.AnnotationFlag=e.AnnotationFieldFlag=e.AnnotationBorderStyleType=e.UNSUPPORTED_FEATURES=e.VerbosityLevel=e.OPS=e.IDENTITY_MATRIX=e.FONT_IDENTITY_MATRIX=e.BaseException=void 0,n(6),e.IDENTITY_MATRIX=[1,0,0,1,0,0],e.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],e.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},e.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},e.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},e.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},e.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},e.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},e.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},e.AnnotationReplyType={GROUP:"Group",REPLY:"R"},e.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},e.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},e.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},e.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},e.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var h={ERRORS:0,WARNINGS:1,INFOS:5};e.VerbosityLevel=h,e.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},e.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},e.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath"},e.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var f=h.WARNINGS;function d(t){f>=h.WARNINGS&&console.log("Warning: ".concat(t))}function p(t){throw new Error(t)}function v(t,e){t||p(e)}function g(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}var m=function(){function t(e){this.constructor===t&&p("Cannot initialize BaseException."),this.message=e,this.name=this.constructor.name}return t.prototype=new Error,t.constructor=t,t}();e.BaseException=m;var y=function(t){a(n,t);var e=u(n);function n(t,r){var i;return o(this,n),(i=e.call(this,t)).code=r,i}return n}(m);e.PasswordException=y;var b=function(t){a(n,t);var e=u(n);function n(t,r){var i;return o(this,n),(i=e.call(this,t)).details=r,i}return n}(m);e.UnknownErrorException=b;var _=function(t){a(n,t);var e=u(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(m);e.InvalidPDFException=_;var w=function(t){a(n,t);var e=u(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(m);e.MissingPDFException=w;var S=function(t){a(n,t);var e=u(n);function n(t,r){var i;return o(this,n),(i=e.call(this,t)).status=r,i}return n}(m);e.UnexpectedResponseException=S;var A=function(t){a(n,t);var e=u(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(m);e.FormatError=A;var x=function(t){a(n,t);var e=u(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(m);e.AbortException=x;var k=/\x00/g;function C(t){v("string"==typeof t,"Invalid argument for stringToBytes");for(var e=t.length,n=new Uint8Array(e),r=0;r<e;++r)n[r]=255&t.charCodeAt(r);return n}function P(t){return void 0!==t.length?t.length:(v(void 0!==t.byteLength,"arrayByteLength - invalid argument."),t.byteLength)}var T={get value(){return g(this,"value",((t=new Uint8Array(4))[0]=1,1===new Uint32Array(t.buffer,0,1)[0]));var t}};e.IsLittleEndianCached=T;var R={get value(){return g(this,"value",function(){try{return new Function(""),!0}catch(t){return!1}}())}};e.IsEvalSupportedCached=R;var E=["rgb(",0,",",0,",",0,")"],O=function(){function t(){o(this,t)}var e,n,i;return e=t,i=[{key:"makeCssRgb",value:function(t,e,n){return E[1]=t,E[3]=e,E[5]=n,E.join("")}},{key:"transform",value:function(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}},{key:"applyTransform",value:function(t,e){return[t[0]*e[0]+t[1]*e[2]+e[4],t[0]*e[1]+t[1]*e[3]+e[5]]}},{key:"applyInverseTransform",value:function(t,e){var n=e[0]*e[3]-e[1]*e[2];return[(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/n,(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/n]}},{key:"getAxialAlignedBoundingBox",value:function(e,n){var r=t.applyTransform(e,n),i=t.applyTransform(e.slice(2,4),n),o=t.applyTransform([e[0],e[3]],n),a=t.applyTransform([e[2],e[1]],n);return[Math.min(r[0],i[0],o[0],a[0]),Math.min(r[1],i[1],o[1],a[1]),Math.max(r[0],i[0],o[0],a[0]),Math.max(r[1],i[1],o[1],a[1])]}},{key:"inverseTransform",value:function(t){var e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}},{key:"apply3dTransform",value:function(t,e){return[t[0]*e[0]+t[1]*e[1]+t[2]*e[2],t[3]*e[0]+t[4]*e[1]+t[5]*e[2],t[6]*e[0]+t[7]*e[1]+t[8]*e[2]]}},{key:"singularValueDecompose2dScale",value:function(t){var e=[t[0],t[2],t[1],t[3]],n=t[0]*e[0]+t[1]*e[2],r=t[0]*e[1]+t[1]*e[3],i=t[2]*e[0]+t[3]*e[2],o=t[2]*e[1]+t[3]*e[3],a=(n+o)/2,s=Math.sqrt((n+o)*(n+o)-4*(n*o-i*r))/2,u=a+s||1,l=a-s||1;return[Math.sqrt(u),Math.sqrt(l)]}},{key:"normalizeRect",value:function(t){var e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}},{key:"intersect",value:function(e,n){function r(t,e){return t-e}var i=[e[0],e[2],n[0],n[2]].sort(r),o=[e[1],e[3],n[1],n[3]].sort(r),a=[];return e=t.normalizeRect(e),n=t.normalizeRect(n),i[0]===e[0]&&i[1]===n[0]||i[0]===n[0]&&i[1]===e[0]?(a[0]=i[1],a[2]=i[2],o[0]===e[1]&&o[1]===n[1]||o[0]===n[1]&&o[1]===e[1]?(a[1]=o[1],a[3]=o[2],a):null):null}}],(n=null)&&r(e.prototype,n),i&&r(e,i),t}();e.Util=O;var L,I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],M=(L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n&&URL.createObjectURL){var r=new Blob([t],{type:e});return URL.createObjectURL(r)}for(var i="data:".concat(e,";base64,"),o=0,a=t.length;o<a;o+=3){var s=255&t[o],u=255&t[o+1],l=255&t[o+2],c=s>>2,h=(3&s)<<4|u>>4,f=o+1<a?(15&u)<<2|l>>6:64,d=o+2<a?63&l:64;i+=L[c]+L[h]+L[f]+L[d]}return i});e.createObjectURL=M},function(t,e,n){"use strict";var r=n(7);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}if("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=n(8)),globalThis._pdfjsCompatibilityChecked=!0;var o="object"===("undefined"==typeof window?"undefined":i(window))&&"object"===("undefined"==typeof document?"undefined":i(document)),a="undefined"!=typeof navigator&&navigator.userAgent||"",s=/Trident/.test(a);!globalThis.btoa&&r.isNodeJS&&(globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")}),!globalThis.atob&&r.isNodeJS&&(globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")}),o&&void 0===Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),function(){if(o&&!r.isNodeJS){var t=document.createElement("div");if(t.classList.add("testOne","testTwo"),!0!==t.classList.contains("testOne")||!0!==t.classList.contains("testTwo")){var e=DOMTokenList.prototype.add,n=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];e.call(this,a)}},DOMTokenList.prototype.remove=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i=0,o=e;i<o.length;i++){var a=o[i];n.call(this,a)}}}}}(),o&&!r.isNodeJS&&!1!==document.createElement("div").classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(t){var e=arguments.length>1?!!arguments[1]:!this.contains(t);return this[e?"add":"remove"](t),e}),function(){if(o&&s){var t=window.history.pushState,e=window.history.replaceState;window.history.pushState=function(e,n,r){var i=void 0===r?[e,n]:[e,n,r];t.apply(this,i)},window.history.replaceState=function(t,n,r){var i=void 0===r?[t,n]:[t,n,r];e.apply(this,i)}}}(),String.prototype.startsWith||n(53),String.prototype.endsWith||n(64),String.prototype.includes||n(66),Array.prototype.includes||n(68),Array.from||n(76),Object.assign||n(98),Math.log2||(Math.log2=n(101)),Number.isNaN||(Number.isNaN=n(103)),Number.isInteger||(Number.isInteger=n(105)),Uint8Array.prototype.slice||n(108),globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=n(113)),globalThis.URL=n(136),function(){var t=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(t){t.close()}}),t=!0}catch(t){}t||(globalThis.ReadableStream=n(143).ReadableStream)}(),globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=n(144)),globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=n(151)),globalThis.WeakMap||(globalThis.WeakMap=n(153)),globalThis.WeakSet||(globalThis.WeakSet=n(159)),String.prototype.codePointAt||n(161),String.fromCodePoint||(String.fromCodePoint=n(163)),globalThis.Symbol||n(165),String.prototype.padStart||n(188),String.prototype.padEnd||n(193),Object.values||(Object.values=n(195))}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.isNodeJS=void 0;var i="object"===(void 0===process?"undefined":r(process))&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;e.isNodeJS=i},function(t,e,n){n(9),t.exports=n(11)},function(t,e,n){n(10)({global:!0},{globalThis:n(11)})},function(t,e,n){var r=n(11),i=n(12).f,o=n(26),a=n(29),s=n(30),u=n(40),l=n(52);t.exports=function(t,e){var n,c,h,f,d,p=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in e){if(f=e[c],h=t.noTargetGet?(d=i(n,c))&&d.value:n[c],!l(v?c:p+(g?".":"#")+c,t.forced)&&void 0!==h){if(typeof f==typeof h)continue;u(f,h)}(t.sham||h&&h.sham)&&o(f,"sham",!0),a(n,c,f,t)}}},function(t,e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},function(t,e,n){var r=n(13),i=n(15),o=n(16),a=n(17),s=n(21),u=n(23),l=n(24),c=Object.getOwnPropertyDescriptor;e.f=r?c:function(t,e){if(t=a(t),e=s(e,!0),l)try{return c(t,e)}catch(t){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},function(t,e,n){var r=n(14);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(18),i=n(20);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(14),i=n(19),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(22);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(13),i=n(14),o=n(25);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(11),i=n(22),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){var r=n(13),i=n(27),o=n(16);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(13),i=n(24),o=n(28),a=n(21),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(22);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(11),i=n(26),o=n(23),a=n(30),s=n(31),u=n(33),l=u.get,c=u.enforce,h=String(String).split("String");(t.exports=function(t,e,n,s){var u=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),c(n).source=h.join("string"==typeof e?e:"")),t!==r?(u?!f&&t[e]&&(l=!0):delete t[e],l?t[e]=n:i(t,e,n)):l?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},function(t,e,n){var r=n(11),i=n(26);t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(32),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},function(t,e,n){var r=n(11),i=n(30),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,n){var r,i,o,a=n(34),s=n(11),u=n(22),l=n(26),c=n(23),h=n(35),f=n(39),d=s.WeakMap;if(a){var p=new d,v=p.get,g=p.has,m=p.set;r=function(t,e){return m.call(p,t,e),e},i=function(t){return v.call(p,t)||{}},o=function(t){return g.call(p,t)}}else{var y=h("state");f[y]=!0,r=function(t,e){return l(t,y,e),e},i=function(t){return c(t,y)?t[y]:{}},o=function(t){return c(t,y)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(11),i=n(31),o=r.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},function(t,e,n){var r=n(36),i=n(38),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,n){var r=n(37),i=n(32);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e){t.exports={}},function(t,e,n){var r=n(23),i=n(41),o=n(12),a=n(27);t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,l=0;l<n.length;l++){var c=n[l];r(t,c)||s(t,c,u(e,c))}}},function(t,e,n){var r=n(42),i=n(44),o=n(51),a=n(28);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(43),i=n(11),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},function(t,e,n){var r=n(11);t.exports=r},function(t,e,n){var r=n(45),i=n(50).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(23),i=n(17),o=n(46).indexOf,a=n(39);t.exports=function(t,e){var n,s=i(t),u=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&l.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(17),i=n(47),o=n(49),a=function(t){return function(e,n,a){var s,u=r(e),l=i(u.length),c=o(a,l);if(t&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,n){var r=n(48),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(48),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(14),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==l||n!=u&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},function(t,e,n){n(54);var r=n(61);t.exports=r("String","startsWith")},function(t,e,n){"use strict";var r,i=n(10),o=n(12).f,a=n(47),s=n(55),u=n(20),l=n(60),c=n(37),h="".startsWith,f=Math.min,d=l("startsWith");i({target:"String",proto:!0,forced:!(!c&&!d&&(r=o(String.prototype,"startsWith"),r&&!r.writable)||d)},{startsWith:function(t){var e=String(u(this));s(t);var n=a(f(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return h?h.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){var r=n(56);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,n){var r=n(22),i=n(19),o=n(57)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(11),i=n(36),o=n(23),a=n(38),s=n(58),u=n(59),l=i("wks"),c=r.Symbol,h=u?c:c&&c.withoutSetter||a;t.exports=function(t){return o(l,t)||(s&&o(c,t)?l[t]=c[t]:l[t]=h("Symbol."+t)),l[t]}},function(t,e,n){var r=n(14);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,e,n){var r=n(58);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(57)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){var r=n(11),i=n(62),o=Function.call;t.exports=function(t,e,n){return i(o,r[t].prototype[e],n)}},function(t,e,n){var r=n(63);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){n(65);var r=n(61);t.exports=r("String","endsWith")},function(t,e,n){"use strict";var r,i=n(10),o=n(12).f,a=n(47),s=n(55),u=n(20),l=n(60),c=n(37),h="".endsWith,f=Math.min,d=l("endsWith");i({target:"String",proto:!0,forced:!(!c&&!d&&(r=o(String.prototype,"endsWith"),r&&!r.writable)||d)},{endsWith:function(t){var e=String(u(this));s(t);var n=arguments.length>1?arguments[1]:void 0,r=a(e.length),i=void 0===n?r:f(a(n),r),o=String(t);return h?h.call(e,o,i):e.slice(i-o.length,i)===o}})},function(t,e,n){n(67);var r=n(61);t.exports=r("String","includes")},function(t,e,n){"use strict";var r=n(10),i=n(55),o=n(20);r({target:"String",proto:!0,forced:!n(60)("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){n(69);var r=n(61);t.exports=r("Array","includes")},function(t,e,n){"use strict";var r=n(10),i=n(46).includes,o=n(70);r({target:"Array",proto:!0,forced:!n(75)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(t,e,n){var r=n(57),i=n(71),o=n(27),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e,n){var r,i=n(28),o=n(72),a=n(50),s=n(39),u=n(74),l=n(25),c=n(35),h=c("IE_PROTO"),f=function(){},d=function(t){return"<script>"+t+"<\/script>"},p=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;p=r?function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):((e=l("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[h]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(f.prototype=i(t),n=new f,f.prototype=null,n[h]=t):n=p(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(13),i=n(27),o=n(28),a=n(73);t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),s=r.length,u=0;s>u;)i.f(t,n=r[u++],e[n]);return t}},function(t,e,n){var r=n(45),i=n(50);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(42);t.exports=r("document","documentElement")},function(t,e,n){var r=n(13),i=n(14),o=n(23),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var n=[][t],l=!!o(e,"ACCESSORS")&&e.ACCESSORS,c=o(e,0)?e[0]:u,h=o(e,1)?e[1]:void 0;return s[t]=!!n&&!i((function(){if(l&&!r)return!0;var t={length:-1};l?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,c,h)}))}},function(t,e,n){n(77),n(89);var r=n(43);t.exports=r.Array.from},function(t,e,n){"use strict";var r=n(78).charAt,i=n(33),o=n(79),a=i.set,s=i.getterFor("String Iterator");o(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=s(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(48),i=n(20),o=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}};t.exports={codeAt:o(!1),charAt:o(!0)}},function(t,e,n){"use strict";var r=n(10),i=n(80),o=n(82),a=n(87),s=n(85),u=n(26),l=n(29),c=n(57),h=n(37),f=n(86),d=n(81),p=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,g=c("iterator"),m=function(){return this};t.exports=function(t,e,n,c,d,y,b){i(n,e,c);var _,w,S,A=function(t){if(t===d&&T)return T;if(!v&&t in C)return C[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},x=e+" Iterator",k=!1,C=t.prototype,P=C[g]||C["@@iterator"]||d&&C[d],T=!v&&P||A(d),R="Array"==e&&C.entries||P;if(R&&(_=o(R.call(new t)),p!==Object.prototype&&_.next&&(h||o(_)===p||(a?a(_,p):"function"!=typeof _[g]&&u(_,g,m)),s(_,x,!0,!0),h&&(f[x]=m))),"values"==d&&P&&"values"!==P.name&&(k=!0,T=function(){return P.call(this)}),h&&!b||C[g]===T||u(C,g,T),f[e]=T,d)if(w={values:A("values"),keys:y?T:A("keys"),entries:A("entries")},b)for(S in w)(v||k||!(S in C))&&l(C,S,w[S]);else r({target:e,proto:!0,forced:v||k},w);return w}},function(t,e,n){"use strict";var r=n(81).IteratorPrototype,i=n(71),o=n(16),a=n(85),s=n(86),u=function(){return this};t.exports=function(t,e,n){var l=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,l,!1,!0),s[l]=u,t}},function(t,e,n){"use strict";var r,i,o,a=n(82),s=n(26),u=n(23),l=n(57),c=n(37),h=l("iterator"),f=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):f=!0),null==r&&(r={}),c||u(r,h)||s(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(t,e,n){var r=n(23),i=n(83),o=n(35),a=n(84),s=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(20);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(14);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(27).f,i=n(23),o=n(57)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,n){var r=n(28),i=n(88);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},function(t,e,n){var r=n(22);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var r=n(10),i=n(90);r({target:"Array",stat:!0,forced:!n(97)((function(t){Array.from(t)}))},{from:i})},function(t,e,n){"use strict";var r=n(62),i=n(83),o=n(91),a=n(92),s=n(47),u=n(93),l=n(94);t.exports=function(t){var e,n,c,h,f,d,p=i(t),v="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,y=void 0!==m,b=l(p),_=0;if(y&&(m=r(m,g>2?arguments[2]:void 0,2)),null==b||v==Array&&a(b))for(n=new v(e=s(p.length));e>_;_++)d=y?m(p[_],_):p[_],u(n,_,d);else for(f=(h=b.call(p)).next,n=new v;!(c=f.call(h)).done;_++)d=y?o(h,m,[c.value,_],!0):c.value,u(n,_,d);return n.length=_,n}},function(t,e,n){var r=n(28);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(57),i=n(86),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},function(t,e,n){"use strict";var r=n(21),i=n(27),o=n(16);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},function(t,e,n){var r=n(95),i=n(86),o=n(57)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(96),i=n(19),o=n(57)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:a?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r={};r[n(57)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(57)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},function(t,e,n){n(99);var r=n(43);t.exports=r.Object.assign},function(t,e,n){var r=n(10),i=n(100);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(t,e,n){"use strict";var r=n(13),i=n(14),o=n(73),a=n(51),s=n(15),u=n(83),l=n(18),c=Object.assign,h=Object.defineProperty;t.exports=!c||i((function(){if(r&&1!==c({b:1},c(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||"abcdefghijklmnopqrst"!=o(c({},e)).join("")}))?function(t,e){for(var n=u(t),i=arguments.length,c=1,h=a.f,f=s.f;i>c;)for(var d,p=l(arguments[c++]),v=h?o(p).concat(h(p)):o(p),g=v.length,m=0;g>m;)d=v[m++],r&&!f.call(p,d)||(n[d]=p[d]);return n}:c},function(t,e,n){n(102);var r=n(43);t.exports=r.Math.log2},function(t,e,n){var r=n(10),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return i(t)/o}})},function(t,e,n){n(104);var r=n(43);t.exports=r.Number.isNaN},function(t,e,n){n(10)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,n){n(106);var r=n(43);t.exports=r.Number.isInteger},function(t,e,n){n(10)({target:"Number",stat:!0},{isInteger:n(107)})},function(t,e,n){var r=n(22),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){n(109)},function(t,e,n){"use strict";var r=n(110),i=n(112),o=n(14),a=r.aTypedArray,s=r.aTypedArrayConstructor,u=r.exportTypedArrayMethod,l=[].slice;u("slice",(function(t,e){for(var n=l.call(a(this),t,e),r=i(this,this.constructor),o=0,u=n.length,c=new(s(r))(u);u>o;)c[o]=n[o++];return c}),o((function(){new Int8Array(1).slice()})))},function(t,e,n){"use strict";var r,i=n(111),o=n(13),a=n(11),s=n(22),u=n(23),l=n(95),c=n(26),h=n(29),f=n(27).f,d=n(82),p=n(87),v=n(57),g=n(38),m=a.Int8Array,y=m&&m.prototype,b=a.Uint8ClampedArray,_=b&&b.prototype,w=m&&d(m),S=y&&d(y),A=Object.prototype,x=A.isPrototypeOf,k=v("toStringTag"),C=g("TYPED_ARRAY_TAG"),P=i&&!!p&&"Opera"!==l(a.opera),T=!1,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},E=function(t){return s(t)&&u(R,l(t))};for(r in R)a[r]||(P=!1);if((!P||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},P))for(r in R)a[r]&&p(a[r],w);if((!P||!S||S===A)&&(S=w.prototype,P))for(r in R)a[r]&&p(a[r].prototype,S);if(P&&d(_)!==S&&p(_,S),o&&!u(S,k))for(r in T=!0,f(S,k,{get:function(){return s(this)?this[C]:void 0}}),R)a[r]&&c(a[r],C,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:T&&C,aTypedArray:function(t){if(E(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(p){if(x.call(w,t))return t}else for(var e in R)if(u(R,r)){var n=a[e];if(n&&(t===n||x.call(n,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n){if(o){if(n)for(var r in R){var i=a[r];i&&u(i.prototype,t)&&delete i.prototype[t]}S[t]&&!n||h(S,t,n?e:P&&y[t]||e)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(o){if(p){if(n)for(r in R)(i=a[r])&&u(i,t)&&delete i[t];if(w[t]&&!n)return;try{return h(w,t,n?e:P&&m[t]||e)}catch(t){}}for(r in R)!(i=a[r])||i[t]&&!n||h(i,t,e)}},isView:function(t){var e=l(t);return"DataView"===e||u(R,e)},isTypedArray:E,TypedArray:w,TypedArrayPrototype:S}},function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,n){var r=n(28),i=n(63),o=n(57)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},function(t,e,n){n(114),n(77),n(116),n(119),n(134),n(135);var r=n(43);t.exports=r.Promise},function(t,e,n){var r=n(96),i=n(29),o=n(115);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,n){"use strict";var r=n(96),i=n(95);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,n){var r=n(11),i=n(117),o=n(118),a=n(26),s=n(57),u=s("iterator"),l=s("toStringTag"),c=o.values;for(var h in i){var f=r[h],d=f&&f.prototype;if(d){if(d[u]!==c)try{a(d,u,c)}catch(t){d[u]=c}if(d[l]||a(d,l,h),i[h])for(var p in o)if(d[p]!==o[p])try{a(d,p,o[p])}catch(t){d[p]=o[p]}}}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){"use strict";var r=n(17),i=n(70),o=n(86),a=n(33),s=n(79),u=a.set,l=a.getterFor("Array Iterator");t.exports=s(Array,"Array",(function(t,e){u(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,n){"use strict";var r,i,o,a,s=n(10),u=n(37),l=n(11),c=n(42),h=n(120),f=n(29),d=n(121),p=n(85),v=n(122),g=n(22),m=n(63),y=n(123),b=n(19),_=n(31),w=n(124),S=n(97),A=n(112),x=n(125).set,k=n(128),C=n(129),P=n(131),T=n(130),R=n(132),E=n(33),O=n(52),L=n(57),I=n(133),M=L("species"),D="Promise",N=E.get,j=E.set,F=E.getterFor(D),B=h,z=l.TypeError,U=l.document,W=l.process,V=c("fetch"),q=T.f,H=q,$="process"==b(W),G=!!(U&&U.createEvent&&l.dispatchEvent),Y=O(D,(function(){if(_(B)===String(B)){if(66===I)return!0;if(!$&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!B.prototype.finally)return!0;if(I>=51&&/native code/.test(B))return!1;var t=B.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[M]=e,!(t.then((function(){}))instanceof e)})),X=Y||!S((function(t){B.all(t).catch((function(){}))})),K=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},Q=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;k((function(){for(var i=e.value,o=1==e.state,a=0;r.length>a;){var s,u,l,c=r[a++],h=o?c.ok:c.fail,f=c.resolve,d=c.reject,p=c.domain;try{h?(o||(2===e.rejection&&et(t,e),e.rejection=1),!0===h?s=i:(p&&p.enter(),s=h(i),p&&(p.exit(),l=!0)),s===c.promise?d(z("Promise-chain cycle")):(u=K(s))?u.call(s,f,d):f(s)):d(i)}catch(t){p&&!l&&p.exit(),d(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Z(t,e)}))}},J=function(t,e,n){var r,i;G?((r=U.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),l.dispatchEvent(r)):r={promise:e,reason:n},(i=l["on"+t])?i(r):"unhandledrejection"===t&&P("Unhandled promise rejection",n)},Z=function(t,e){x.call(l,(function(){var n,r=e.value;if(tt(e)&&(n=R((function(){$?W.emit("unhandledRejection",r,t):J("unhandledrejection",t,r)})),e.rejection=$||tt(e)?2:1,n.error))throw n.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){x.call(l,(function(){$?W.emit("rejectionHandled",t):J("rejectionhandled",t,e.value)}))},nt=function(t,e,n,r){return function(i){t(e,n,i,r)}},rt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,Q(t,e,!0))},it=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw z("Promise can't be resolved itself");var i=K(n);i?k((function(){var r={done:!1};try{i.call(n,nt(it,t,r,e),nt(rt,t,r,e))}catch(n){rt(t,r,n,e)}})):(e.value=n,e.state=1,Q(t,e,!1))}catch(n){rt(t,{done:!1},n,e)}}};Y&&(B=function(t){y(this,B,D),m(t),r.call(this);var e=N(this);try{t(nt(it,this,e),nt(rt,this,e))}catch(t){rt(this,e,t)}},(r=function(t){j(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(B.prototype,{then:function(t,e){var n=F(this),r=q(A(this,B));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=$?W.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Q(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=N(t);this.promise=t,this.resolve=nt(it,t,e),this.reject=nt(rt,t,e)},T.f=q=function(t){return t===B||t===o?new i(t):H(t)},u||"function"!=typeof h||(a=h.prototype.then,f(h.prototype,"then",(function(t,e){var n=this;return new B((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof V&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return C(B,V.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:Y},{Promise:B}),p(B,D,!1,!0),v(D),o=c(D),s({target:D,stat:!0,forced:Y},{reject:function(t){var e=q(this);return e.reject.call(void 0,t),e.promise}}),s({target:D,stat:!0,forced:u||Y},{resolve:function(t){return C(u&&this===o?B:this,t)}}),s({target:D,stat:!0,forced:X},{all:function(t){var e=this,n=q(e),r=n.resolve,i=n.reject,o=R((function(){var n=m(e.resolve),o=[],a=0,s=1;w(t,(function(t){var u=a++,l=!1;o.push(void 0),s++,n.call(e,t).then((function(t){l||(l=!0,o[u]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=q(e),r=n.reject,i=R((function(){var i=m(e.resolve);w(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},function(t,e,n){var r=n(11);t.exports=r.Promise},function(t,e,n){var r=n(29);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){"use strict";var r=n(42),i=n(27),o=n(57),a=n(13),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){var r=n(28),i=n(92),o=n(47),a=n(62),s=n(94),u=n(91),l=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,c,h){var f,d,p,v,g,m,y,b=a(e,n,c?2:1);if(h)f=t;else{if("function"!=typeof(d=s(t)))throw TypeError("Target is not iterable");if(i(d)){for(p=0,v=o(t.length);v>p;p++)if((g=c?b(r(y=t[p])[0],y[1]):b(t[p]))&&g instanceof l)return g;return new l(!1)}f=d.call(t)}for(m=f.next;!(y=m.call(f)).done;)if("object"==typeof(g=u(f,b,y.value,c))&&g&&g instanceof l)return g;return new l(!1)}).stop=function(t){return new l(!0,t)}},function(t,e,n){var r,i,o,a=n(11),s=n(14),u=n(19),l=n(62),c=n(74),h=n(25),f=n(126),d=a.location,p=a.setImmediate,v=a.clearImmediate,g=a.process,m=a.MessageChannel,y=a.Dispatch,b=0,_={},w=function(t){if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},S=function(t){return function(){w(t)}},A=function(t){w(t.data)},x=function(t){a.postMessage(t+"",d.protocol+"//"+d.host)};p&&v||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return _[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(b),b},v=function(t){delete _[t]},"process"==u(g)?r=function(t){g.nextTick(S(t))}:y&&y.now?r=function(t){y.now(S(t))}:m&&!f?(o=(i=new m).port2,i.port1.onmessage=A,r=l(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(x)||"file:"===d.protocol?r="onreadystatechange"in h("script")?function(t){c.appendChild(h("script")).onreadystatechange=function(){c.removeChild(this),w(t)}}:function(t){setTimeout(S(t),0)}:(r=x,a.addEventListener("message",A,!1))),t.exports={set:p,clear:v}},function(t,e,n){var r=n(127);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(t,e,n){var r=n(42);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r,i,o,a,s,u,l,c,h=n(11),f=n(12).f,d=n(19),p=n(125).set,v=n(126),g=h.MutationObserver||h.WebKitMutationObserver,m=h.process,y=h.Promise,b="process"==d(m),_=f(h,"queueMicrotask"),w=_&&_.value;w||(r=function(){var t,e;for(b&&(t=m.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},b?a=function(){m.nextTick(r)}:g&&!v?(s=!0,u=document.createTextNode(""),new g(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):y&&y.resolve?(l=y.resolve(void 0),c=l.then,a=function(){c.call(l,r)}):a=function(){p.call(h,r)}),t.exports=w||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},function(t,e,n){var r=n(28),i=n(22),o=n(130);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(63),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},function(t,e,n){var r=n(11);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){var r,i,o=n(11),a=n(127),s=o.process,u=s&&s.versions,l=u&&u.v8;l?i=(r=l.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),t.exports=i&&+i},function(t,e,n){"use strict";var r=n(10),i=n(63),o=n(130),a=n(132),s=n(124);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=o.f(e),r=n.resolve,u=n.reject,l=a((function(){var n=i(e.resolve),o=[],a=0,u=1;s(t,(function(t){var i=a++,s=!1;o.push(void 0),u++,n.call(e,t).then((function(t){s||(s=!0,o[i]={status:"fulfilled",value:t},--u||r(o))}),(function(t){s||(s=!0,o[i]={status:"rejected",reason:t},--u||r(o))}))})),--u||r(o)}));return l.error&&u(l.value),n.promise}})},function(t,e,n){"use strict";var r=n(10),i=n(37),o=n(120),a=n(14),s=n(42),u=n(112),l=n(129),c=n(29);r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=u(this,s("Promise")),n="function"==typeof t;return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),i||"function"!=typeof o||o.prototype.finally||c(o.prototype,"finally",s("Promise").prototype.finally)},function(t,e,n){n(137),n(142),n(140);var r=n(43);t.exports=r.URL},function(t,e,n){"use strict";n(77);var r,i=n(10),o=n(13),a=n(138),s=n(11),u=n(72),l=n(29),c=n(123),h=n(23),f=n(100),d=n(90),p=n(78).codeAt,v=n(139),g=n(85),m=n(140),y=n(33),b=s.URL,_=m.URLSearchParams,w=m.getState,S=y.set,A=y.getterFor("URL"),x=Math.floor,k=Math.pow,C=/[A-Za-z]/,P=/[\d+-.A-Za-z]/,T=/\d/,R=/^(0x|0X)/,E=/^[0-7]+$/,O=/^\d+$/,L=/^[\dA-Fa-f]+$/,I=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,M=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,D=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,N=/[\u0009\u000A\u000D]/g,j=function(t,e){var n,r,i;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(n=B(e.slice(1,-1))))return"Invalid host";t.host=n}else if(G(t)){if(e=v(e),I.test(e))return"Invalid host";if(null===(n=F(e)))return"Invalid host";t.host=n}else{if(M.test(e))return"Invalid host";for(n="",r=d(e),i=0;i<r.length;i++)n+=H(r[i],U);t.host=n}},F=function(t){var e,n,r,i,o,a,s,u=t.split(".");if(u.length&&""==u[u.length-1]&&u.pop(),(e=u.length)>4)return t;for(n=[],r=0;r<e;r++){if(""==(i=u[r]))return t;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=R.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?O:8==o?E:L).test(i))return t;a=parseInt(i,o)}n.push(a)}for(r=0;r<e;r++)if(a=n[r],r==e-1){if(a>=k(256,5-e))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*k(256,3-r);return s},B=function(t){var e,n,r,i,o,a,s,u=[0,0,0,0,0,0,0,0],l=0,c=null,h=0,f=function(){return t.charAt(h)};if(":"==f()){if(":"!=t.charAt(1))return;h+=2,c=++l}for(;f();){if(8==l)return;if(":"!=f()){for(e=n=0;n<4&&L.test(f());)e=16*e+parseInt(f(),16),h++,n++;if("."==f()){if(0==n)return;if(h-=n,l>6)return;for(r=0;f();){if(i=null,r>0){if(!("."==f()&&r<4))return;h++}if(!T.test(f()))return;for(;T.test(f());){if(o=parseInt(f(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;h++}u[l]=256*u[l]+i,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==f()){if(h++,!f())return}else if(f())return;u[l++]=e}else{if(null!==c)return;h++,c=++l}}if(null!==c)for(a=l-c,l=7;0!=l&&a>0;)s=u[l],u[l--]=u[c+a-1],u[c+--a]=s;else if(8!=l)return;return u},z=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=x(t/256);return e.join(".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},U={},W=f({},U,{" ":1,'"':1,"<":1,">":1,"`":1}),V=f({},W,{"#":1,"?":1,"{":1,"}":1}),q=f({},V,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),H=function(t,e){var n=p(t,0);return n>32&&n<127&&!h(e,t)?t:encodeURIComponent(t)},$={ftp:21,file:null,http:80,https:443,ws:80,wss:443},G=function(t){return h($,t.scheme)},Y=function(t){return""!=t.username||""!=t.password},X=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},K=function(t,e){var n;return 2==t.length&&C.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},Q=function(t){var e;return t.length>1&&K(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},J=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&K(e[0],!0)||e.pop()},Z=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},et={},nt={},rt={},it={},ot={},at={},st={},ut={},lt={},ct={},ht={},ft={},dt={},pt={},vt={},gt={},mt={},yt={},bt={},_t={},wt=function(t,e,n,i){var o,a,s,u,l,c=n||tt,f=0,p="",v=!1,g=!1,m=!1;for(n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(D,"")),e=e.replace(N,""),o=d(e);f<=o.length;){switch(a=o[f],c){case tt:if(!a||!C.test(a)){if(n)return"Invalid scheme";c=nt;continue}p+=a.toLowerCase(),c=et;break;case et:if(a&&(P.test(a)||"+"==a||"-"==a||"."==a))p+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";p="",c=nt,f=0;continue}if(n&&(G(t)!=h($,p)||"file"==p&&(Y(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=p,n)return void(G(t)&&$[t.scheme]==t.port&&(t.port=null));p="","file"==t.scheme?c=dt:G(t)&&i&&i.scheme==t.scheme?c=rt:G(t)?c=st:"/"==o[f+1]?(c=it,f++):(t.cannotBeABaseURL=!0,t.path.push(""),c=yt)}break;case nt:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,c=_t;break}c="file"==i.scheme?dt:ot;continue;case rt:if("/"!=a||"/"!=o[f+1]){c=ot;continue}c=ut,f++;break;case it:if("/"==a){c=lt;break}c=mt;continue;case ot:if(t.scheme=i.scheme,a==r)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==a||"\\"==a&&G(t))c=at;else if("?"==a)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",c=bt;else{if("#"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),c=mt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",c=_t}break;case at:if(!G(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,c=mt;continue}c=lt}else c=ut;break;case st:if(c=ut,"/"!=a||"/"!=p.charAt(f+1))continue;f++;break;case ut:if("/"!=a&&"\\"!=a){c=lt;continue}break;case lt:if("@"==a){v&&(p="%40"+p),v=!0,s=d(p);for(var y=0;y<s.length;y++){var b=s[y];if(":"!=b||m){var _=H(b,q);m?t.password+=_:t.username+=_}else m=!0}p=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&G(t)){if(v&&""==p)return"Invalid authority";f-=d(p).length+1,p="",c=ct}else p+=a;break;case ct:case ht:if(n&&"file"==t.scheme){c=vt;continue}if(":"!=a||g){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&G(t)){if(G(t)&&""==p)return"Invalid host";if(n&&""==p&&(Y(t)||null!==t.port))return;if(u=j(t,p))return u;if(p="",c=gt,n)return;continue}"["==a?g=!0:"]"==a&&(g=!1),p+=a}else{if(""==p)return"Invalid host";if(u=j(t,p))return u;if(p="",c=ft,n==ht)return}break;case ft:if(!T.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&G(t)||n){if(""!=p){var w=parseInt(p,10);if(w>65535)return"Invalid port";t.port=G(t)&&w===$[t.scheme]?null:w,p=""}if(n)return;c=gt;continue}return"Invalid port"}p+=a;break;case dt:if(t.scheme="file","/"==a||"\\"==a)c=pt;else{if(!i||"file"!=i.scheme){c=mt;continue}if(a==r)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==a)t.host=i.host,t.path=i.path.slice(),t.query="",c=bt;else{if("#"!=a){Q(o.slice(f).join(""))||(t.host=i.host,t.path=i.path.slice(),J(t)),c=mt;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",c=_t}}break;case pt:if("/"==a||"\\"==a){c=vt;break}i&&"file"==i.scheme&&!Q(o.slice(f).join(""))&&(K(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),c=mt;continue;case vt:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&K(p))c=mt;else if(""==p){if(t.host="",n)return;c=gt}else{if(u=j(t,p))return u;if("localhost"==t.host&&(t.host=""),n)return;p="",c=gt}continue}p+=a;break;case gt:if(G(t)){if(c=mt,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(c=mt,"/"!=a))continue}else t.fragment="",c=_t;else t.query="",c=bt;break;case mt:if(a==r||"/"==a||"\\"==a&&G(t)||!n&&("?"==a||"#"==a)){if(".."===(l=(l=p).toLowerCase())||"%2e."===l||".%2e"===l||"%2e%2e"===l?(J(t),"/"==a||"\\"==a&&G(t)||t.path.push("")):Z(p)?"/"==a||"\\"==a&&G(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&K(p)&&(t.host&&(t.host=""),p=p.charAt(0)+":"),t.path.push(p)),p="","file"==t.scheme&&(a==r||"?"==a||"#"==a))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",c=bt):"#"==a&&(t.fragment="",c=_t)}else p+=H(a,V);break;case yt:"?"==a?(t.query="",c=bt):"#"==a?(t.fragment="",c=_t):a!=r&&(t.path[0]+=H(a,U));break;case bt:n||"#"!=a?a!=r&&("'"==a&&G(t)?t.query+="%27":t.query+="#"==a?"%23":H(a,U)):(t.fragment="",c=_t);break;case _t:a!=r&&(t.fragment+=H(a,W))}f++}},St=function(t){var e,n,r=c(this,St,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(t),s=S(r,{type:"URL"});if(void 0!==i)if(i instanceof St)e=A(i);else if(n=wt(e={},String(i)))throw TypeError(n);if(n=wt(s,a,null,e))throw TypeError(n);var u=s.searchParams=new _,l=w(u);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(u)||null},o||(r.href=xt.call(r),r.origin=kt.call(r),r.protocol=Ct.call(r),r.username=Pt.call(r),r.password=Tt.call(r),r.host=Rt.call(r),r.hostname=Et.call(r),r.port=Ot.call(r),r.pathname=Lt.call(r),r.search=It.call(r),r.searchParams=Mt.call(r),r.hash=Dt.call(r))},At=St.prototype,xt=function(){var t=A(this),e=t.scheme,n=t.username,r=t.password,i=t.host,o=t.port,a=t.path,s=t.query,u=t.fragment,l=e+":";return null!==i?(l+="//",Y(t)&&(l+=n+(r?":"+r:"")+"@"),l+=z(i),null!==o&&(l+=":"+o)):"file"==e&&(l+="//"),l+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(l+="?"+s),null!==u&&(l+="#"+u),l},kt=function(){var t=A(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&G(t)?e+"://"+z(t.host)+(null!==n?":"+n:""):"null"},Ct=function(){return A(this).scheme+":"},Pt=function(){return A(this).username},Tt=function(){return A(this).password},Rt=function(){var t=A(this),e=t.host,n=t.port;return null===e?"":null===n?z(e):z(e)+":"+n},Et=function(){var t=A(this).host;return null===t?"":z(t)},Ot=function(){var t=A(this).port;return null===t?"":String(t)},Lt=function(){var t=A(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},It=function(){var t=A(this).query;return t?"?"+t:""},Mt=function(){return A(this).searchParams},Dt=function(){var t=A(this).fragment;return t?"#"+t:""},Nt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&u(At,{href:Nt(xt,(function(t){var e=A(this),n=String(t),r=wt(e,n);if(r)throw TypeError(r);w(e.searchParams).updateSearchParams(e.query)})),origin:Nt(kt),protocol:Nt(Ct,(function(t){var e=A(this);wt(e,String(t)+":",tt)})),username:Nt(Pt,(function(t){var e=A(this),n=d(String(t));if(!X(e)){e.username="";for(var r=0;r<n.length;r++)e.username+=H(n[r],q)}})),password:Nt(Tt,(function(t){var e=A(this),n=d(String(t));if(!X(e)){e.password="";for(var r=0;r<n.length;r++)e.password+=H(n[r],q)}})),host:Nt(Rt,(function(t){var e=A(this);e.cannotBeABaseURL||wt(e,String(t),ct)})),hostname:Nt(Et,(function(t){var e=A(this);e.cannotBeABaseURL||wt(e,String(t),ht)})),port:Nt(Ot,(function(t){var e=A(this);X(e)||(""==(t=String(t))?e.port=null:wt(e,t,ft))})),pathname:Nt(Lt,(function(t){var e=A(this);e.cannotBeABaseURL||(e.path=[],wt(e,t+"",gt))})),search:Nt(It,(function(t){var e=A(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",wt(e,t,bt)),w(e.searchParams).updateSearchParams(e.query)})),searchParams:Nt(Mt),hash:Nt(Dt,(function(t){var e=A(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",wt(e,t,_t)):e.fragment=null}))}),l(At,"toJSON",(function(){return xt.call(this)}),{enumerable:!0}),l(At,"toString",(function(){return xt.call(this)}),{enumerable:!0}),b){var jt=b.createObjectURL,Ft=b.revokeObjectURL;jt&&l(St,"createObjectURL",(function(t){return jt.apply(b,arguments)})),Ft&&l(St,"revokeObjectURL",(function(t){return Ft.apply(b,arguments)}))}g(St,"URL"),i({global:!0,forced:!a,sham:!o},{URL:St})},function(t,e,n){var r=n(14),i=n(57),o=n(37),a=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(t,e,n){"use strict";var r=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,u=function(t){return t+22+75*(t<26)},l=function(t,e,n){var r=0;for(t=n?a(t/700):t>>1,t+=a(t/e);t>455;r+=36)t=a(t/35);return a(r+36*t/(t+38))},c=function(t){var e,n,r=[],i=(t=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=t.charCodeAt(n++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),n--)}else e.push(i)}return e}(t)).length,c=128,h=0,f=72;for(e=0;e<t.length;e++)(n=t[e])<128&&r.push(s(n));var d=r.length,p=d;for(d&&r.push("-");p<i;){var v=2147483647;for(e=0;e<t.length;e++)(n=t[e])>=c&&n<v&&(v=n);var g=p+1;if(v-c>a((2147483647-h)/g))throw RangeError(o);for(h+=(v-c)*g,c=v,e=0;e<t.length;e++){if((n=t[e])<c&&++h>2147483647)throw RangeError(o);if(n==c){for(var m=h,y=36;;y+=36){var b=y<=f?1:y>=f+26?26:y-f;if(m<b)break;var _=m-b,w=36-b;r.push(s(u(b+_%w))),m=a(_/w)}r.push(s(u(m))),f=l(h,g,p==d),h=0,++p}}++h,++c}return r.join("")};t.exports=function(t){var e,n,o=[],a=t.toLowerCase().replace(i,".").split(".");for(e=0;e<a.length;e++)n=a[e],o.push(r.test(n)?"xn--"+c(n):n);return o.join(".")}},function(t,e,n){"use strict";n(118);var r=n(10),i=n(42),o=n(138),a=n(29),s=n(121),u=n(85),l=n(80),c=n(33),h=n(123),f=n(23),d=n(62),p=n(95),v=n(28),g=n(22),m=n(71),y=n(16),b=n(141),_=n(94),w=n(57),S=i("fetch"),A=i("Headers"),x=w("iterator"),k=c.set,C=c.getterFor("URLSearchParams"),P=c.getterFor("URLSearchParamsIterator"),T=/\+/g,R=Array(4),E=function(t){return R[t-1]||(R[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},O=function(t){try{return decodeURIComponent(t)}catch(e){return t}},L=function(t){var e=t.replace(T," "),n=4;try{return decodeURIComponent(e)}catch(t){for(;n;)e=e.replace(E(n--),O);return e}},I=/[!'()~]|%20/g,M={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},D=function(t){return M[t]},N=function(t){return encodeURIComponent(t).replace(I,D)},j=function(t,e){if(e)for(var n,r,i=e.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),t.push({key:L(r.shift()),value:L(r.join("="))}))},F=function(t){this.entries.length=0,j(this.entries,t)},B=function(t,e){if(t<e)throw TypeError("Not enough arguments")},z=l((function(t,e){k(this,{type:"URLSearchParamsIterator",iterator:b(C(t).entries),kind:e})}),"Iterator",(function(){var t=P(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n})),U=function(){h(this,U,"URLSearchParams");var t,e,n,r,i,o,a,s,u,l=arguments.length>0?arguments[0]:void 0,c=this,d=[];if(k(c,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:F}),void 0!==l)if(g(l))if("function"==typeof(t=_(l)))for(n=(e=t.call(l)).next;!(r=n.call(e)).done;){if((a=(o=(i=b(v(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");d.push({key:a.value+"",value:s.value+""})}else for(u in l)f(l,u)&&d.push({key:u,value:l[u]+""});else j(d,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},W=U.prototype;s(W,{append:function(t,e){B(arguments.length,2);var n=C(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){B(arguments.length,1);for(var e=C(this),n=e.entries,r=t+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;e.updateURL()},get:function(t){B(arguments.length,1);for(var e=C(this).entries,n=t+"",r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){B(arguments.length,1);for(var e=C(this).entries,n=t+"",r=[],i=0;i<e.length;i++)e[i].key===n&&r.push(e[i].value);return r},has:function(t){B(arguments.length,1);for(var e=C(this).entries,n=t+"",r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){B(arguments.length,1);for(var n,r=C(this),i=r.entries,o=!1,a=t+"",s=e+"",u=0;u<i.length;u++)(n=i[u]).key===a&&(o?i.splice(u--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var t,e,n,r=C(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(t=o[n],e=0;e<n;e++)if(i[e].key>t.key){i.splice(e,0,t);break}e===n&&i.push(t)}r.updateURL()},forEach:function(t){for(var e,n=C(this).entries,r=d(t,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new z(this,"keys")},values:function(){return new z(this,"values")},entries:function(){return new z(this,"entries")}},{enumerable:!0}),a(W,x,W.entries),a(W,"toString",(function(){for(var t,e=C(this).entries,n=[],r=0;r<e.length;)t=e[r++],n.push(N(t.key)+"="+N(t.value));return n.join("&")}),{enumerable:!0}),u(U,"URLSearchParams"),r({global:!0,forced:!o},{URLSearchParams:U}),o||"function"!=typeof S||"function"!=typeof A||r({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,n,r,i=[t];return arguments.length>1&&(g(e=arguments[1])&&(n=e.body,"URLSearchParams"===p(n)&&((r=e.headers?new A(e.headers):new A).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=m(e,{body:y(0,String(n)),headers:y(0,r)}))),i.push(e)),S.apply(this,i)}}),t.exports={URLSearchParams:U,getState:C}},function(t,e,n){var r=n(28),i=n(94);t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},function(t,e,n){"use strict";n(10)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(t,e,n){!function(t){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(t){return"Symbol("+t+")"};function n(){}var r=Number.isNaN||function(t){return t!=t},i=n;function o(t){return"object"==typeof t&&null!==t||"function"==typeof t}function a(t){return t.slice()}function s(t){return!1!==function(t){return!("number"!=typeof t||r(t)||t<0)}(t)&&t!==1/0}function u(t,e,n){if("function"!=typeof t)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(t,e,n)}function l(t,e,n,r){var i=t[e];if(void 0!==i){if("function"!=typeof i)throw new TypeError(i+" is not a method");switch(n){case 0:return function(){return h(i,t,r)};case 1:return function(e){var n=[e].concat(r);return h(i,t,n)}}}return function(){return b(void 0)}}function c(t,e,n){var r=t[e];if(void 0!==r)return u(r,t,n)}function h(t,e,n){try{return b(u(t,e,n))}catch(t){return _(t)}}function f(t){if(t=Number(t),r(t)||t<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return t}function d(t){if(void 0===t)return function(){return 1};if("function"!=typeof t)throw new TypeError("size property of a queuing strategy must be a function");return function(e){return t(e)}}var p=Promise,v=Promise.prototype.then,g=Promise.resolve.bind(p),m=Promise.reject.bind(p);function y(t){return new p(t)}function b(t){return g(t)}function _(t){return m(t)}function w(t,e,n){return v.call(t,e,n)}function S(t,e,n){w(w(t,e,n),void 0,i)}function A(t,e){S(t,e)}function x(t,e){S(t,void 0,e)}function k(t,e,n){return w(t,e,n)}function C(t){w(t,void 0,i)}var P=function(){function t(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(t.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),t.prototype.push=function(t){var e=this._back,n=e;16383===e._elements.length&&(n={_elements:[],_next:void 0}),e._elements.push(t),n!==e&&(this._back=n,e._next=n),++this._size},t.prototype.shift=function(){var t=this._front,e=t,n=this._cursor,r=n+1,i=t._elements,o=i[n];return 16384===r&&(e=t._next,r=0),--this._size,this._cursor=r,t!==e&&(this._front=e),i[n]=void 0,o},t.prototype.forEach=function(t){for(var e=this._cursor,n=this._front,r=n._elements;!(e===r.length&&void 0===n._next||e===r.length&&(e=0,0===(r=(n=n._next)._elements).length));)t(r[e]),++e},t.prototype.peek=function(){var t=this._front,e=this._cursor;return t._elements[e]},t}();function T(t,e,n){var r=null;!0===n&&(r=Object.prototype);var i=Object.create(r);return i.value=t,i.done=e,i}function R(t,e){t._forAuthorCode=!0,t._ownerReadableStream=e,e._reader=t,"readable"===e._state?I(t):"closed"===e._state?function(t){I(t),N(t)}(t):M(t,e._storedError)}function E(t,e){return ze(t._ownerReadableStream,e)}function O(t){"readable"===t._ownerReadableStream._state?D(t,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(t,e){M(t,e)}(t,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),t._ownerReadableStream._reader=void 0,t._ownerReadableStream=void 0}function L(t){return new TypeError("Cannot "+t+" a stream using a released reader")}function I(t){t._closedPromise=y((function(e,n){t._closedPromise_resolve=e,t._closedPromise_reject=n}))}function M(t,e){I(t),D(t,e)}function D(t,e){C(t._closedPromise),t._closedPromise_reject(e),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0}function N(t){t._closedPromise_resolve(void 0),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0}var j=e("[[CancelSteps]]"),F=e("[[PullSteps]]");function B(t,e){void 0===e&&(e=!1);var n=new $(t);return n._forAuthorCode=e,n}function z(t){return y((function(e,n){var r={_resolve:e,_reject:n};t._reader._readRequests.push(r)}))}function U(t,e,n){var r=t._reader;r._readRequests.shift()._resolve(T(e,n,r._forAuthorCode))}function W(t){return t._reader._readRequests.length}function V(t){var e=t._reader;return void 0!==e&&!!G(e)}var q,H,$=function(){function t(t){if(!1===Fe(t))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===Be(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");R(this,t),this._readRequests=new P}return Object.defineProperty(t.prototype,"closed",{get:function(){return G(this)?this._closedPromise:_(X("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return G(this)?void 0===this._ownerReadableStream?_(L("cancel")):E(this,t):_(X("cancel"))},t.prototype.read=function(){return G(this)?void 0===this._ownerReadableStream?_(L("read from")):Y(this):_(X("read"))},t.prototype.releaseLock=function(){if(!G(this))throw X("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");O(this)}},t}();function G(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readRequests")}function Y(t){var e=t._ownerReadableStream;return e._disturbed=!0,"closed"===e._state?b(T(void 0,!0,t._forAuthorCode)):"errored"===e._state?_(e._storedError):e._readableStreamController[F]()}function X(t){return new TypeError("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}"symbol"==typeof e.asyncIterator&&((q={})[e.asyncIterator]=function(){return this},H=q,Object.defineProperty(H,e.asyncIterator,{enumerable:!1}));var K={next:function(){if(!1===Q(this))return _(J("next"));var t=this._asyncIteratorReader;return void 0===t._ownerReadableStream?_(L("iterate")):k(Y(t),(function(e){var n=e.done;return n&&O(t),T(e.value,n,!0)}))},return:function(t){if(!1===Q(this))return _(J("next"));var e=this._asyncIteratorReader;if(void 0===e._ownerReadableStream)return _(L("finish iterating"));if(e._readRequests.length>0)return _(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var n=E(e,t);return O(e),k(n,(function(){return T(t,!0,!0)}))}return O(e),b(T(t,!0,!0))}};function Q(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_asyncIteratorReader")}function J(t){return new TypeError("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}function Z(t){var e=t._queue.shift();return t._queueTotalSize-=e.size,t._queueTotalSize<0&&(t._queueTotalSize=0),e.value}function tt(t,e,n){if(!s(n=Number(n)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t._queue.push({value:e,size:n}),t._queueTotalSize+=n}function et(t){t._queue=new P,t._queueTotalSize=0}void 0!==H&&Object.setPrototypeOf(K,H),Object.defineProperty(K,"next",{enumerable:!1}),Object.defineProperty(K,"return",{enumerable:!1});var nt=e("[[AbortSteps]]"),rt=e("[[ErrorSteps]]"),it=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e={}),at(this);var n=e.size,r=e.highWaterMark;if(void 0!==t.type)throw new RangeError("Invalid type is specified");var i=d(n);void 0===r&&(r=1),function(t,e,n,r){var i=Object.create(xt.prototype),o=l(e,"write",1,[i]),a=l(e,"close",0,[]),s=l(e,"abort",1,[]);kt(t,i,(function(){return c(e,"start",[i])}),o,a,s,n,r)}(this,t,r=f(r),i)}return Object.defineProperty(t.prototype,"locked",{get:function(){if(!1===st(this))throw Lt("locked");return ut(this)},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===st(this)?_(Lt("abort")):!0===ut(this)?_(new TypeError("Cannot abort a stream that already has a writer")):lt(this,t)},t.prototype.close=function(){return!1===st(this)?_(Lt("close")):!0===ut(this)?_(new TypeError("Cannot close a stream that already has a writer")):!0===pt(this)?_(new TypeError("Cannot close an already-closing stream")):ct(this)},t.prototype.getWriter=function(){if(!1===st(this))throw Lt("getWriter");return ot(this)},t}();function ot(t){return new mt(t)}function at(t){t._state="writable",t._storedError=void 0,t._writer=void 0,t._writableStreamController=void 0,t._writeRequests=new P,t._inFlightWriteRequest=void 0,t._closeRequest=void 0,t._inFlightCloseRequest=void 0,t._pendingAbortRequest=void 0,t._backpressure=!1}function st(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_writableStreamController")}function ut(t){return void 0!==t._writer}function lt(t,e){var n=t._state;if("closed"===n||"errored"===n)return b(void 0);if(void 0!==t._pendingAbortRequest)return t._pendingAbortRequest._promise;var r=!1;"erroring"===n&&(r=!0,e=void 0);var i=y((function(n,i){t._pendingAbortRequest={_promise:void 0,_resolve:n,_reject:i,_reason:e,_wasAlreadyErroring:r}}));return t._pendingAbortRequest._promise=i,!1===r&&ft(t,e),i}function ct(t){var e=t._state;if("closed"===e||"errored"===e)return _(new TypeError("The stream (in "+e+" state) is not in the writable state and cannot be closed"));var n,r=y((function(e,n){var r={_resolve:e,_reject:n};t._closeRequest=r})),i=t._writer;return void 0!==i&&!0===t._backpressure&&"writable"===e&&Vt(i),tt(n=t._writableStreamController,"close",0),Tt(n),r}function ht(t,e){"writable"!==t._state?dt(t):ft(t,e)}function ft(t,e){var n=t._writableStreamController;t._state="erroring",t._storedError=e;var r=t._writer;void 0!==r&&wt(r,e),!1===function(t){return void 0!==t._inFlightWriteRequest||void 0!==t._inFlightCloseRequest}(t)&&!0===n._started&&dt(t)}function dt(t){t._state="errored",t._writableStreamController[rt]();var e=t._storedError;if(t._writeRequests.forEach((function(t){t._reject(e)})),t._writeRequests=new P,void 0!==t._pendingAbortRequest){var n=t._pendingAbortRequest;if(t._pendingAbortRequest=void 0,!0===n._wasAlreadyErroring)return n._reject(e),void vt(t);S(t._writableStreamController[nt](n._reason),(function(){n._resolve(),vt(t)}),(function(e){n._reject(e),vt(t)}))}else vt(t)}function pt(t){return void 0!==t._closeRequest||void 0!==t._inFlightCloseRequest}function vt(t){void 0!==t._closeRequest&&(t._closeRequest._reject(t._storedError),t._closeRequest=void 0);var e=t._writer;void 0!==e&&jt(e,t._storedError)}function gt(t,e){var n=t._writer;void 0!==n&&e!==t._backpressure&&(!0===e?function(t){Bt(t)}(n):Vt(n)),t._backpressure=e}var mt=function(){function t(t){if(!1===st(t))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===ut(t))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=t,t._writer=this;var e,n=t._state;if("writable"===n)!1===pt(t)&&!0===t._backpressure?Bt(this):Ut(this),Dt(this);else if("erroring"===n)zt(this,t._storedError),Dt(this);else if("closed"===n)Ut(this),Dt(e=this),Ft(e);else{var r=t._storedError;zt(this,r),Nt(this,r)}}return Object.defineProperty(t.prototype,"closed",{get:function(){return!1===yt(this)?_(It("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===yt(this))throw It("desiredSize");if(void 0===this._ownerWritableStream)throw Mt("desiredSize");return t=this._ownerWritableStream,"errored"===(e=t._state)||"erroring"===e?null:"closed"===e?0:Pt(t._writableStreamController);var t,e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ready",{get:function(){return!1===yt(this)?_(It("ready")):this._readyPromise},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===yt(this)?_(It("abort")):void 0===this._ownerWritableStream?_(Mt("abort")):function(t,e){return lt(t._ownerWritableStream,e)}(this,t)},t.prototype.close=function(){if(!1===yt(this))return _(It("close"));var t=this._ownerWritableStream;return void 0===t?_(Mt("close")):!0===pt(t)?_(new TypeError("Cannot close an already-closing stream")):bt(this)},t.prototype.releaseLock=function(){if(!1===yt(this))throw It("releaseLock");void 0!==this._ownerWritableStream&&St(this)},t.prototype.write=function(t){return!1===yt(this)?_(It("write")):void 0===this._ownerWritableStream?_(Mt("write to")):At(this,t)},t}();function yt(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_ownerWritableStream")}function bt(t){return ct(t._ownerWritableStream)}function _t(t,e){"pending"===t._closedPromiseState?jt(t,e):function(t,e){Nt(t,e)}(t,e)}function wt(t,e){"pending"===t._readyPromiseState?Wt(t,e):function(t,e){zt(t,e)}(t,e)}function St(t){var e=t._ownerWritableStream,n=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");wt(t,n),_t(t,n),e._writer=void 0,t._ownerWritableStream=void 0}function At(t,e){var n=t._ownerWritableStream,r=n._writableStreamController,i=function(t,e){try{return t._strategySizeAlgorithm(e)}catch(e){return Rt(t,e),1}}(r,e);if(n!==t._ownerWritableStream)return _(Mt("write to"));var o=n._state;if("errored"===o)return _(n._storedError);if(!0===pt(n)||"closed"===o)return _(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return _(n._storedError);var a=function(t){return y((function(e,n){var r={_resolve:e,_reject:n};t._writeRequests.push(r)}))}(n);return function(t,e,n){var r={chunk:e};try{tt(t,r,n)}catch(e){return void Rt(t,e)}var i=t._controlledWritableStream;if(!1===pt(i)&&"writable"===i._state){var o=Et(t);gt(i,o)}Tt(t)}(r,e,i),a}var xt=function(){function t(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return t.prototype.error=function(t){if(0==(!!o(e=this)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var e;"writable"===this._controlledWritableStream._state&&Ot(this,t)},t.prototype[nt]=function(t){var e=this._abortAlgorithm(t);return Ct(this),e},t.prototype[rt]=function(){et(this)},t}();function kt(t,e,n,r,i,o,a,s){e._controlledWritableStream=t,t._writableStreamController=e,e._queue=void 0,e._queueTotalSize=void 0,et(e),e._started=!1,e._strategySizeAlgorithm=s,e._strategyHWM=a,e._writeAlgorithm=r,e._closeAlgorithm=i,e._abortAlgorithm=o;var u=Et(e);gt(t,u),S(b(n()),(function(){e._started=!0,Tt(e)}),(function(n){e._started=!0,ht(t,n)}))}function Ct(t){t._writeAlgorithm=void 0,t._closeAlgorithm=void 0,t._abortAlgorithm=void 0,t._strategySizeAlgorithm=void 0}function Pt(t){return t._strategyHWM-t._queueTotalSize}function Tt(t){var e=t._controlledWritableStream;if(!1!==t._started&&void 0===e._inFlightWriteRequest)if("erroring"!==e._state){if(0!==t._queue.length){var n=t._queue.peek().value;"close"===n?function(t){var e=t._controlledWritableStream;(function(t){t._inFlightCloseRequest=t._closeRequest,t._closeRequest=void 0})(e),Z(t);var n=t._closeAlgorithm();Ct(t),S(n,(function(){!function(t){t._inFlightCloseRequest._resolve(void 0),t._inFlightCloseRequest=void 0,"erroring"===t._state&&(t._storedError=void 0,void 0!==t._pendingAbortRequest&&(t._pendingAbortRequest._resolve(),t._pendingAbortRequest=void 0)),t._state="closed";var e=t._writer;void 0!==e&&Ft(e)}(e)}),(function(t){!function(t,e){t._inFlightCloseRequest._reject(e),t._inFlightCloseRequest=void 0,void 0!==t._pendingAbortRequest&&(t._pendingAbortRequest._reject(e),t._pendingAbortRequest=void 0),ht(t,e)}(e,t)}))}(t):function(t,e){var n=t._controlledWritableStream;(function(t){t._inFlightWriteRequest=t._writeRequests.shift()})(n),S(t._writeAlgorithm(e),(function(){!function(t){t._inFlightWriteRequest._resolve(void 0),t._inFlightWriteRequest=void 0}(n);var e=n._state;if(Z(t),!1===pt(n)&&"writable"===e){var r=Et(t);gt(n,r)}Tt(t)}),(function(e){"writable"===n._state&&Ct(t),function(t,e){t._inFlightWriteRequest._reject(e),t._inFlightWriteRequest=void 0,ht(t,e)}(n,e)}))}(t,n.chunk)}}else dt(e)}function Rt(t,e){"writable"===t._controlledWritableStream._state&&Ot(t,e)}function Et(t){return Pt(t)<=0}function Ot(t,e){var n=t._controlledWritableStream;Ct(t),ft(n,e)}function Lt(t){return new TypeError("WritableStream.prototype."+t+" can only be used on a WritableStream")}function It(t){return new TypeError("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function Mt(t){return new TypeError("Cannot "+t+" a stream using a released writer")}function Dt(t){t._closedPromise=y((function(e,n){t._closedPromise_resolve=e,t._closedPromise_reject=n,t._closedPromiseState="pending"}))}function Nt(t,e){Dt(t),jt(t,e)}function jt(t,e){C(t._closedPromise),t._closedPromise_reject(e),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0,t._closedPromiseState="rejected"}function Ft(t){t._closedPromise_resolve(void 0),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0,t._closedPromiseState="resolved"}function Bt(t){t._readyPromise=y((function(e,n){t._readyPromise_resolve=e,t._readyPromise_reject=n})),t._readyPromiseState="pending"}function zt(t,e){Bt(t),Wt(t,e)}function Ut(t){Bt(t),Vt(t)}function Wt(t,e){C(t._readyPromise),t._readyPromise_reject(e),t._readyPromise_resolve=void 0,t._readyPromise_reject=void 0,t._readyPromiseState="rejected"}function Vt(t){t._readyPromise_resolve(void 0),t._readyPromise_resolve=void 0,t._readyPromise_reject=void 0,t._readyPromiseState="fulfilled"}function qt(t){if("object"!=typeof t||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}var Ht,$t="undefined"!=typeof DOMException?DOMException:void 0,Gt=function(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{return new t,!0}catch(t){return!1}}($t)?$t:((Ht=function(t,e){this.message=t||"",this.name=e||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}).prototype=Object.create(Error.prototype),Object.defineProperty(Ht.prototype,"constructor",{value:Ht,writable:!0,configurable:!0}),Ht);function Yt(t,e,r,i,o,a){var s=B(t),u=ot(e);t._disturbed=!0;var l=!1,c=b(void 0);return y((function(h,f){var d,p,v,g;if(void 0!==a){if(d=function(){var n=new Gt("Aborted","AbortError"),r=[];!1===i&&r.push((function(){return"writable"===e._state?lt(e,n):b(void 0)})),!1===o&&r.push((function(){return"readable"===t._state?ze(t,n):b(void 0)})),T((function(){return Promise.all(r.map((function(t){return t()})))}),!0,n)},!0===a.aborted)return void d();a.addEventListener("abort",d)}if(P(t,s._closedPromise,(function(t){!1===i?T((function(){return lt(e,t)}),!0,t):R(!0,t)})),P(e,u._closedPromise,(function(e){!1===o?T((function(){return ze(t,e)}),!0,e):R(!0,e)})),p=t,v=s._closedPromise,g=function(){!1===r?T((function(){return function(t){var e=t._ownerWritableStream,n=e._state;return!0===pt(e)||"closed"===n?b(void 0):"errored"===n?_(e._storedError):bt(t)}(u)})):R()},"closed"===p._state?g():A(v,g),!0===pt(e)||"closed"===e._state){var m=new TypeError("the destination writable stream closed before all data could be piped to it");!1===o?T((function(){return ze(t,m)}),!0,m):R(!0,m)}function k(){var t=c;return w(c,(function(){return t!==c?k():void 0}))}function P(t,e,n){"errored"===t._state?n(t._storedError):x(e,n)}function T(t,n,r){function i(){S(t(),(function(){return E(n,r)}),(function(t){return E(!0,t)}))}!0!==l&&(l=!0,"writable"===e._state&&!1===pt(e)?A(k(),i):i())}function R(t,n){!0!==l&&(l=!0,"writable"===e._state&&!1===pt(e)?A(k(),(function(){return E(t,n)})):E(t,n))}function E(t,e){St(u),O(s),void 0!==a&&a.removeEventListener("abort",d),t?f(e):h(void 0)}C(y((function(t,e){!function r(i){i?t():w(!0===l?b(!0):w(u._readyPromise,(function(){return w(Y(s),(function(t){return!0===t.done||(c=w(At(u,t.value),void 0,n),!1)}))})),r,e)}(!1)})))}))}var Xt=function(){function t(){throw new TypeError}return Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Kt(this))throw ae("desiredSize");return re(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===Kt(this))throw ae("close");if(!1===ie(this))throw new TypeError("The stream is not in a state that permits close");te(this)},t.prototype.enqueue=function(t){if(!1===Kt(this))throw ae("enqueue");if(!1===ie(this))throw new TypeError("The stream is not in a state that permits enqueue");return ee(this,t)},t.prototype.error=function(t){if(!1===Kt(this))throw ae("error");ne(this,t)},t.prototype[j]=function(t){et(this);var e=this._cancelAlgorithm(t);return Zt(this),e},t.prototype[F]=function(){var t=this._controlledReadableStream;if(this._queue.length>0){var e=Z(this);return!0===this._closeRequested&&0===this._queue.length?(Zt(this),Ue(t)):Qt(this),b(T(e,!1,t._reader._forAuthorCode))}var n=z(t);return Qt(this),n},t}();function Kt(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableStream")}function Qt(t){!1!==Jt(t)&&(!0!==t._pulling?(t._pulling=!0,S(t._pullAlgorithm(),(function(){t._pulling=!1,!0===t._pullAgain&&(t._pullAgain=!1,Qt(t))}),(function(e){ne(t,e)}))):t._pullAgain=!0)}function Jt(t){var e=t._controlledReadableStream;return!1!==ie(t)&&!1!==t._started&&(!0===Be(e)&&W(e)>0||re(t)>0)}function Zt(t){t._pullAlgorithm=void 0,t._cancelAlgorithm=void 0,t._strategySizeAlgorithm=void 0}function te(t){var e=t._controlledReadableStream;t._closeRequested=!0,0===t._queue.length&&(Zt(t),Ue(e))}function ee(t,e){var n=t._controlledReadableStream;if(!0===Be(n)&&W(n)>0)U(n,e,!1);else{var r=void 0;try{r=t._strategySizeAlgorithm(e)}catch(e){throw ne(t,e),e}try{tt(t,e,r)}catch(e){throw ne(t,e),e}}Qt(t)}function ne(t,e){var n=t._controlledReadableStream;"readable"===n._state&&(et(t),Zt(t),We(n,e))}function re(t){var e=t._controlledReadableStream._state;return"errored"===e?null:"closed"===e?0:t._strategyHWM-t._queueTotalSize}function ie(t){var e=t._controlledReadableStream._state;return!1===t._closeRequested&&"readable"===e}function oe(t,e,n,r,i,o,a){e._controlledReadableStream=t,e._queue=void 0,e._queueTotalSize=void 0,et(e),e._started=!1,e._closeRequested=!1,e._pullAgain=!1,e._pulling=!1,e._strategySizeAlgorithm=a,e._strategyHWM=o,e._pullAlgorithm=r,e._cancelAlgorithm=i,t._readableStreamController=e,S(b(n()),(function(){e._started=!0,Qt(e)}),(function(t){ne(e,t)}))}function ae(t){return new TypeError("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}var se=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},ue=function(){function t(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(t.prototype,"view",{get:function(){if(!1===he(this))throw Pe("view");return this._view},enumerable:!0,configurable:!0}),t.prototype.respond=function(t){if(!1===he(this))throw Pe("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,function(t,e){if(!1===s(e=Number(e)))throw new RangeError("bytesWritten must be a finite");we(t,e)}(this._associatedReadableByteStreamController,t)},t.prototype.respondWithNewView=function(t){if(!1===he(this))throw Pe("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(t))throw new TypeError("You can only respond with array buffer views");t.buffer,function(t,e){var n=t._pendingPullIntos.peek();if(n.byteOffset+n.bytesFilled!==e.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(n.byteLength!==e.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");n.buffer=e.buffer,we(t,e.byteLength)}(this._associatedReadableByteStreamController,t)},t}(),le=function(){function t(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(t.prototype,"byobRequest",{get:function(){if(!1===ce(this))throw Te("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek(),e=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),n=Object.create(ue.prototype);!function(t,e,n){t._associatedReadableByteStreamController=e,t._view=n}(n,this,e),this._byobRequest=n}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===ce(this))throw Te("desiredSize");return ke(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===ce(this))throw Te("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be closed");!function(t){var e=t._controlledReadableByteStream;if(t._queueTotalSize>0)t._closeRequested=!0;else{if(t._pendingPullIntos.length>0&&t._pendingPullIntos.peek().bytesFilled>0){var n=new TypeError("Insufficient bytes to fill elements in the given buffer");throw xe(t,n),n}Ae(t),Ue(e)}}(this)},t.prototype.enqueue=function(t){if(!1===ce(this))throw Te("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(t))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");t.buffer,function(t,e){var n=t._controlledReadableByteStream,r=e.buffer,i=e.byteOffset,o=e.byteLength,a=r;if(!0===V(n))if(0===W(n))ve(t,a,i,o);else{var s=new Uint8Array(a,i,o);U(n,s,!1)}else!0===Oe(n)?(ve(t,a,i,o),_e(t)):ve(t,a,i,o);fe(t)}(this,t)},t.prototype.error=function(t){if(!1===ce(this))throw Te("error");xe(this,t)},t.prototype[j]=function(t){this._pendingPullIntos.length>0&&(this._pendingPullIntos.peek().bytesFilled=0),et(this);var e=this._cancelAlgorithm(t);return Ae(this),e},t.prototype[F]=function(){var t=this._controlledReadableByteStream;if(this._queueTotalSize>0){var e=this._queue.shift();this._queueTotalSize-=e.byteLength,ye(this);var n=void 0;try{n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}catch(t){return _(t)}return b(T(n,!1,t._reader._forAuthorCode))}var r=this._autoAllocateChunkSize;if(void 0!==r){var i=void 0;try{i=new ArrayBuffer(r)}catch(t){return _(t)}var o={buffer:i,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}var a=z(t);return fe(this),a},t}();function ce(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableByteStream")}function he(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_associatedReadableByteStreamController")}function fe(t){!1!==function(t){var e=t._controlledReadableByteStream;return"readable"===e._state&&!0!==t._closeRequested&&!1!==t._started&&(!0===V(e)&&W(e)>0||!0===Oe(e)&&Ee(e)>0||ke(t)>0)}(t)&&(!0!==t._pulling?(t._pulling=!0,S(t._pullAlgorithm(),(function(){t._pulling=!1,!0===t._pullAgain&&(t._pullAgain=!1,fe(t))}),(function(e){xe(t,e)}))):t._pullAgain=!0)}function de(t,e){var n=!1;"closed"===t._state&&(n=!0);var r=pe(e);"default"===e.readerType?U(t,r,n):function(t,e,n){var r=t._reader;r._readIntoRequests.shift()._resolve(T(e,n,r._forAuthorCode))}(t,r,n)}function pe(t){var e=t.bytesFilled,n=t.elementSize;return new t.ctor(t.buffer,t.byteOffset,e/n)}function ve(t,e,n,r){t._queue.push({buffer:e,byteOffset:n,byteLength:r}),t._queueTotalSize+=r}function ge(t,e){var n=e.elementSize,r=e.bytesFilled-e.bytesFilled%n,i=Math.min(t._queueTotalSize,e.byteLength-e.bytesFilled),o=e.bytesFilled+i,a=o-o%n,s=i,u=!1;a>r&&(s=a-e.bytesFilled,u=!0);for(var l,c,h,f,d,p=t._queue;s>0;){var v=p.peek(),g=Math.min(s,v.byteLength),m=e.byteOffset+e.bytesFilled;l=e.buffer,c=m,h=v.buffer,f=v.byteOffset,d=g,new Uint8Array(l).set(new Uint8Array(h,f,d),c),v.byteLength===g?p.shift():(v.byteOffset+=g,v.byteLength-=g),t._queueTotalSize-=g,me(t,g,e),s-=g}return u}function me(t,e,n){be(t),n.bytesFilled+=e}function ye(t){0===t._queueTotalSize&&!0===t._closeRequested?(Ae(t),Ue(t._controlledReadableByteStream)):fe(t)}function be(t){void 0!==t._byobRequest&&(t._byobRequest._associatedReadableByteStreamController=void 0,t._byobRequest._view=void 0,t._byobRequest=void 0)}function _e(t){for(;t._pendingPullIntos.length>0;){if(0===t._queueTotalSize)return;var e=t._pendingPullIntos.peek();!0===ge(t,e)&&(Se(t),de(t._controlledReadableByteStream,e))}}function we(t,e){var n=t._pendingPullIntos.peek();if("closed"===t._controlledReadableByteStream._state){if(0!==e)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");!function(t,e){e.buffer=e.buffer;var n=t._controlledReadableByteStream;if(!0===Oe(n))for(;Ee(n)>0;)de(n,Se(t))}(t,n)}else!function(t,e,n){if(n.bytesFilled+e>n.byteLength)throw new RangeError("bytesWritten out of range");if(me(t,e,n),!(n.bytesFilled<n.elementSize)){Se(t);var r=n.bytesFilled%n.elementSize;if(r>0){var i=n.byteOffset+n.bytesFilled,o=n.buffer.slice(i-r,i);ve(t,o,0,o.byteLength)}n.buffer=n.buffer,n.bytesFilled-=r,de(t._controlledReadableByteStream,n),_e(t)}}(t,e,n);fe(t)}function Se(t){var e=t._pendingPullIntos.shift();return be(t),e}function Ae(t){t._pullAlgorithm=void 0,t._cancelAlgorithm=void 0}function xe(t,e){var n=t._controlledReadableByteStream;"readable"===n._state&&(function(t){be(t),t._pendingPullIntos=new P}(t),et(t),Ae(t),We(n,e))}function ke(t){var e=t._controlledReadableByteStream._state;return"errored"===e?null:"closed"===e?0:t._strategyHWM-t._queueTotalSize}function Ce(t,e,n){var r=Object.create(le.prototype),i=l(e,"pull",0,[r]),o=l(e,"cancel",1,[]),a=e.autoAllocateChunkSize;if(void 0!==a&&(a=Number(a),!1===se(a)||a<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(t,e,n,r,i,o,a){e._controlledReadableByteStream=t,e._pullAgain=!1,e._pulling=!1,e._byobRequest=void 0,e._queue=e._queueTotalSize=void 0,et(e),e._closeRequested=!1,e._started=!1,e._strategyHWM=f(o),e._pullAlgorithm=r,e._cancelAlgorithm=i,e._autoAllocateChunkSize=a,e._pendingPullIntos=new P,t._readableStreamController=e,S(b(n()),(function(){e._started=!0,fe(e)}),(function(t){xe(e,t)}))}(t,r,(function(){return c(e,"start",[r])}),i,o,n,a)}function Pe(t){return new TypeError("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function Te(t){return new TypeError("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function Re(t){return y((function(e,n){var r={_resolve:e,_reject:n};t._reader._readIntoRequests.push(r)}))}function Ee(t){return t._reader._readIntoRequests.length}function Oe(t){var e=t._reader;return void 0!==e&&!!Ie(e)}var Le=function(){function t(t){if(!Fe(t))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===ce(t._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Be(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");R(this,t),this._readIntoRequests=new P}return Object.defineProperty(t.prototype,"closed",{get:function(){return Ie(this)?this._closedPromise:_(Me("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return Ie(this)?void 0===this._ownerReadableStream?_(L("cancel")):E(this,t):_(Me("cancel"))},t.prototype.read=function(t){return Ie(this)?void 0===this._ownerReadableStream?_(L("read from")):ArrayBuffer.isView(t)?(t.buffer,0===t.byteLength?_(new TypeError("view must have non-zero byteLength")):function(t,e){var n=t._ownerReadableStream;return n._disturbed=!0,"errored"===n._state?_(n._storedError):function(t,e){var n=t._controlledReadableByteStream,r=1;e.constructor!==DataView&&(r=e.constructor.BYTES_PER_ELEMENT);var i=e.constructor,o={buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,bytesFilled:0,elementSize:r,ctor:i,readerType:"byob"};if(t._pendingPullIntos.length>0)return t._pendingPullIntos.push(o),Re(n);if("closed"===n._state)return b(T(new i(o.buffer,o.byteOffset,0),!0,n._reader._forAuthorCode));if(t._queueTotalSize>0){if(!0===ge(t,o)){var a=pe(o);return ye(t),b(T(a,!1,n._reader._forAuthorCode))}if(!0===t._closeRequested){var s=new TypeError("Insufficient bytes to fill elements in the given buffer");return xe(t,s),_(s)}}t._pendingPullIntos.push(o);var u=Re(n);return fe(t),u}(n._readableStreamController,e)}(this,t)):_(new TypeError("view must be an array buffer view")):_(Me("read"))},t.prototype.releaseLock=function(){if(!Ie(this))throw Me("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");O(this)}},t}();function Ie(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readIntoRequests")}function Me(t){return new TypeError("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}var De=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e={}),je(this);var n=e.size,r=e.highWaterMark,i=t.type;if("bytes"===String(i)){if(void 0!==n)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===r&&(r=0),Ce(this,t,r=f(r))}else{if(void 0!==i)throw new RangeError("Invalid type is specified");var o=d(n);void 0===r&&(r=1),function(t,e,n,r){var i=Object.create(Xt.prototype),o=l(e,"pull",0,[i]),a=l(e,"cancel",1,[]);oe(t,i,(function(){return c(e,"start",[i])}),o,a,n,r)}(this,t,r=f(r),o)}}return Object.defineProperty(t.prototype,"locked",{get:function(){if(!1===Fe(this))throw Ve("locked");return Be(this)},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return!1===Fe(this)?_(Ve("cancel")):!0===Be(this)?_(new TypeError("Cannot cancel a stream that already has a reader")):ze(this,t)},t.prototype.getReader=function(t){var e=(void 0===t?{}:t).mode;if(!1===Fe(this))throw Ve("getReader");if(void 0===e)return B(this,!0);if("byob"===(e=String(e)))return function(t,e){void 0===e&&(e=!1);var n=new Le(t);return n._forAuthorCode=e,n}(this,!0);throw new RangeError("Invalid mode is specified")},t.prototype.pipeThrough=function(t,e){var n=t.writable,r=t.readable,i=void 0===e?{}:e,o=i.preventClose,a=i.preventAbort,s=i.preventCancel,u=i.signal;if(!1===Fe(this))throw Ve("pipeThrough");if(!1===st(n))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===Fe(r))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),a=Boolean(a),s=Boolean(s),void 0!==u&&!qt(u))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===Be(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===ut(n))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return C(Yt(this,n,o,a,s,u)),r},t.prototype.pipeTo=function(t,e){var n=void 0===e?{}:e,r=n.preventClose,i=n.preventAbort,o=n.preventCancel,a=n.signal;return!1===Fe(this)?_(Ve("pipeTo")):!1===st(t)?_(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(r=Boolean(r),i=Boolean(i),o=Boolean(o),void 0===a||qt(a)?!0===Be(this)?_(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===ut(t)?_(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Yt(this,t,r,i,o,a):_(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},t.prototype.tee=function(){if(!1===Fe(this))throw Ve("tee");var t=function(t,e){var n,r,i,o,s,u=B(t),l=!1,c=!1,h=!1,f=y((function(t){s=t}));function d(){return!0===l||(l=!0,C(k(Y(u),(function(t){if(l=!1,!0===t.done)return!1===c&&te(i._readableStreamController),void(!1===h&&te(o._readableStreamController));var e=t.value,n=e,r=e;!1===c&&ee(i._readableStreamController,n),!1===h&&ee(o._readableStreamController,r)})))),b(void 0)}function p(){}return i=Ne(p,d,(function(e){if(c=!0,n=e,!0===h){var i=a([n,r]),o=ze(t,i);s(o)}return f})),o=Ne(p,d,(function(e){if(h=!0,r=e,!0===c){var i=a([n,r]),o=ze(t,i);s(o)}return f})),x(u._closedPromise,(function(t){ne(i._readableStreamController,t),ne(o._readableStreamController,t)})),[i,o]}(this);return a(t)},t.prototype.getIterator=function(t){var e=(void 0===t?{}:t).preventCancel,n=void 0!==e&&e;if(!1===Fe(this))throw Ve("getIterator");return function(t,e){void 0===e&&(e=!1);var n=B(t),r=Object.create(K);return r._asyncIteratorReader=n,r._preventCancel=Boolean(e),r}(this,n)},t}();function Ne(t,e,n,r,i){void 0===r&&(r=1),void 0===i&&(i=function(){return 1});var o=Object.create(De.prototype);return je(o),oe(o,Object.create(Xt.prototype),t,e,n,r,i),o}function je(t){t._state="readable",t._reader=void 0,t._storedError=void 0,t._disturbed=!1}function Fe(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readableStreamController")}function Be(t){return void 0!==t._reader}function ze(t,e){return t._disturbed=!0,"closed"===t._state?b(void 0):"errored"===t._state?_(t._storedError):(Ue(t),k(t._readableStreamController[j](e),n))}function Ue(t){t._state="closed";var e=t._reader;void 0!==e&&(G(e)&&(e._readRequests.forEach((function(t){t._resolve(T(void 0,!0,e._forAuthorCode))})),e._readRequests=new P),N(e))}function We(t,e){t._state="errored",t._storedError=e;var n=t._reader;void 0!==n&&(G(n)?(n._readRequests.forEach((function(t){t._reject(e)})),n._readRequests=new P):(n._readIntoRequests.forEach((function(t){t._reject(e)})),n._readIntoRequests=new P),D(n,e))}function Ve(t){return new TypeError("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}"symbol"==typeof e.asyncIterator&&Object.defineProperty(De.prototype,e.asyncIterator,{value:De.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var qe=function(){function t(t){var e=t.highWaterMark;this.highWaterMark=e}return t.prototype.size=function(t){return t.byteLength},t}(),He=function(){function t(t){var e=t.highWaterMark;this.highWaterMark=e}return t.prototype.size=function(){return 1},t}(),$e=function(){function t(t,e,n){void 0===t&&(t={}),void 0===e&&(e={}),void 0===n&&(n={});var r=e.size,i=e.highWaterMark,o=n.size,a=n.highWaterMark;if(void 0!==t.writableType)throw new RangeError("Invalid writable type specified");var s=d(r);if(void 0===i&&(i=1),i=f(i),void 0!==t.readableType)throw new RangeError("Invalid readable type specified");var u,p=d(o);void 0===a&&(a=0),a=f(a),function(t,e,n,r,i,o){function a(){return e}t._writable=function(t,e,n,r,i,o){void 0===i&&(i=1),void 0===o&&(o=function(){return 1});var a=Object.create(it.prototype);return at(a),kt(a,Object.create(xt.prototype),t,e,n,r,i,o),a}(a,(function(e){return function(t,e){var n=t._transformStreamController;return!0===t._backpressure?k(t._backpressureChangePromise,(function(){var r=t._writable;if("erroring"===r._state)throw r._storedError;return en(n,e)})):en(n,e)}(t,e)}),(function(){return function(t){var e=t._readable,n=t._transformStreamController,r=n._flushAlgorithm();return Ze(n),k(r,(function(){if("errored"===e._state)throw e._storedError;var t=e._readableStreamController;!0===ie(t)&&te(t)}),(function(n){throw Ye(t,n),e._storedError}))}(t)}),(function(e){return function(t,e){return Ye(t,e),b(void 0)}(t,e)}),n,r),t._readable=Ne(a,(function(){return function(t){return Ke(t,!1),t._backpressureChangePromise}(t)}),(function(e){return Xe(t,e),b(void 0)}),i,o),t._backpressure=void 0,t._backpressureChangePromise=void 0,t._backpressureChangePromise_resolve=void 0,Ke(t,!0),t._transformStreamController=void 0}(this,y((function(t){u=t})),i,s,a,p),function(t,e){var n=Object.create(Qe.prototype),r=function(t){try{return tn(n,t),b(void 0)}catch(t){return _(t)}},i=e.transform;if(void 0!==i){if("function"!=typeof i)throw new TypeError("transform is not a method");r=function(t){return h(i,e,[t,n])}}var o=l(e,"flush",0,[n]);!function(t,e,n,r){e._controlledTransformStream=t,t._transformStreamController=e,e._transformAlgorithm=n,e._flushAlgorithm=r}(t,n,r,o)}(this,t);var v=c(t,"start",[this._transformStreamController]);u(v)}return Object.defineProperty(t.prototype,"readable",{get:function(){if(!1===Ge(this))throw rn("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"writable",{get:function(){if(!1===Ge(this))throw rn("writable");return this._writable},enumerable:!0,configurable:!0}),t}();function Ge(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_transformStreamController")}function Ye(t,e){ne(t._readable._readableStreamController,e),Xe(t,e)}function Xe(t,e){Ze(t._transformStreamController),Rt(t._writable._writableStreamController,e),!0===t._backpressure&&Ke(t,!1)}function Ke(t,e){void 0!==t._backpressureChangePromise&&t._backpressureChangePromise_resolve(),t._backpressureChangePromise=y((function(e){t._backpressureChangePromise_resolve=e})),t._backpressure=e}var Qe=function(){function t(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Je(this))throw nn("desiredSize");return re(this._controlledTransformStream._readable._readableStreamController)},enumerable:!0,configurable:!0}),t.prototype.enqueue=function(t){if(!1===Je(this))throw nn("enqueue");tn(this,t)},t.prototype.error=function(t){if(!1===Je(this))throw nn("error");var e;e=t,Ye(this._controlledTransformStream,e)},t.prototype.terminate=function(){if(!1===Je(this))throw nn("terminate");!function(t){var e=t._controlledTransformStream,n=e._readable._readableStreamController;!0===ie(n)&&te(n);var r=new TypeError("TransformStream terminated");Xe(e,r)}(this)},t}();function Je(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledTransformStream")}function Ze(t){t._transformAlgorithm=void 0,t._flushAlgorithm=void 0}function tn(t,e){var n=t._controlledTransformStream,r=n._readable._readableStreamController;if(!1===ie(r))throw new TypeError("Readable side is not in a state that permits enqueue");try{ee(r,e)}catch(t){throw Xe(n,t),n._readable._storedError}(function(t){return!0!==Jt(t)})(r)!==n._backpressure&&Ke(n,!0)}function en(t,e){return k(t._transformAlgorithm(e),void 0,(function(e){throw Ye(t._controlledTransformStream,e),e}))}function nn(t){return new TypeError("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function rn(t){return new TypeError("TransformStream.prototype."+t+" can only be used on a TransformStream")}t.ByteLengthQueuingStrategy=qe,t.CountQueuingStrategy=He,t.ReadableStream=De,t.TransformStream=$e,t.WritableStream=it,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){n(145),n(114),n(77),n(116);var r=n(43);t.exports=r.Map},function(t,e,n){"use strict";var r=n(146),i=n(150);t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},function(t,e,n){"use strict";var r=n(10),i=n(11),o=n(52),a=n(29),s=n(147),u=n(124),l=n(123),c=n(22),h=n(14),f=n(97),d=n(85),p=n(149);t.exports=function(t,e,n){var v=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),m=v?"set":"add",y=i[t],b=y&&y.prototype,_=y,w={},S=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!c(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!c(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(o(t,"function"!=typeof y||!(g||b.forEach&&!h((function(){(new y).entries().next()})))))_=n.getConstructor(e,t,v,m),s.REQUIRED=!0;else if(o(t,!0)){var A=new _,x=A[m](g?{}:-0,1)!=A,k=h((function(){A.has(1)})),C=f((function(t){new y(t)})),P=!g&&h((function(){for(var t=new y,e=5;e--;)t[m](e,e);return!t.has(-0)}));C||((_=e((function(e,n){l(e,_,t);var r=p(new y,e,_);return null!=n&&u(n,r[m],r,v),r}))).prototype=b,b.constructor=_),(k||P)&&(S("delete"),S("has"),v&&S("get")),(P||x)&&S(m),g&&b.clear&&delete b.clear}return w[t]=_,r({global:!0,forced:_!=y},w),d(_,t),g||n.setStrong(_,t,v),_}},function(t,e,n){var r=n(39),i=n(22),o=n(23),a=n(27).f,s=n(38),u=n(148),l=s("meta"),c=0,h=Object.isExtensible||function(){return!0},f=function(t){a(t,l,{value:{objectID:"O"+ ++c,weakData:{}}})},d=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,l)){if(!h(t))return"F";if(!e)return"E";f(t)}return t[l].objectID},getWeakData:function(t,e){if(!o(t,l)){if(!h(t))return!0;if(!e)return!1;f(t)}return t[l].weakData},onFreeze:function(t){return u&&d.REQUIRED&&h(t)&&!o(t,l)&&f(t),t}};r[l]=!0},function(t,e,n){var r=n(14);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){var r=n(22),i=n(87);t.exports=function(t,e,n){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},function(t,e,n){"use strict";var r=n(27).f,i=n(71),o=n(121),a=n(62),s=n(123),u=n(124),l=n(79),c=n(122),h=n(13),f=n(147).fastKey,d=n(33),p=d.set,v=d.getterFor;t.exports={getConstructor:function(t,e,n,l){var c=t((function(t,r){s(t,c,e),p(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),h||(t.size=0),null!=r&&u(r,t[l],t,n)})),d=v(e),g=function(t,e,n){var r,i,o=d(t),a=m(t,e);return a?a.value=n:(o.last=a={index:i=f(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),h?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},m=function(t,e){var n,r=d(t),i=f(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(c.prototype,{clear:function(){for(var t=d(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,h?t.size=0:this.size=0},delete:function(t){var e=d(this),n=m(this,t);if(n){var r=n.next,i=n.previous;delete e.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),e.first==n&&(e.first=r),e.last==n&&(e.last=i),h?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=d(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!m(this,t)}}),o(c.prototype,n?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),h&&r(c.prototype,"size",{get:function(){return d(this).size}}),c},setStrong:function(t,e,n){var r=e+" Iterator",i=v(e),o=v(r);l(t,e,(function(t,e){p(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(e)}}},function(t,e,n){n(152),n(114),n(77),n(116);var r=n(43);t.exports=r.Set},function(t,e,n){"use strict";var r=n(146),i=n(150);t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},function(t,e,n){n(114),n(154),n(116);var r=n(43);t.exports=r.WeakMap},function(t,e,n){"use strict";var r,i=n(11),o=n(121),a=n(147),s=n(146),u=n(155),l=n(22),c=n(33).enforce,h=n(34),f=!i.ActiveXObject&&"ActiveXObject"in i,d=Object.isExtensible,p=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},v=t.exports=s("WeakMap",p,u);if(h&&f){r=u.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var g=v.prototype,m=g.delete,y=g.has,b=g.get,_=g.set;o(g,{delete:function(t){if(l(t)&&!d(t)){var e=c(this);return e.frozen||(e.frozen=new r),m.call(this,t)||e.frozen.delete(t)}return m.call(this,t)},has:function(t){if(l(t)&&!d(t)){var e=c(this);return e.frozen||(e.frozen=new r),y.call(this,t)||e.frozen.has(t)}return y.call(this,t)},get:function(t){if(l(t)&&!d(t)){var e=c(this);return e.frozen||(e.frozen=new r),y.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(l(t)&&!d(t)){var n=c(this);n.frozen||(n.frozen=new r),y.call(this,t)?_.call(this,t,e):n.frozen.set(t,e)}else _.call(this,t,e);return this}})}},function(t,e,n){"use strict";var r=n(121),i=n(147).getWeakData,o=n(28),a=n(22),s=n(123),u=n(124),l=n(156),c=n(23),h=n(33),f=h.set,d=h.getterFor,p=l.find,v=l.findIndex,g=0,m=function(t){return t.frozen||(t.frozen=new y)},y=function(){this.entries=[]},b=function(t,e){return p(t.entries,(function(t){return t[0]===e}))};y.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=v(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,l){var h=t((function(t,r){s(t,h,e),f(t,{type:e,id:g++,frozen:void 0}),null!=r&&u(r,t[l],t,n)})),p=d(e),v=function(t,e,n){var r=p(t),a=i(o(e),!0);return!0===a?m(r).set(e,n):a[r.id]=n,t};return r(h.prototype,{delete:function(t){var e=p(this);if(!a(t))return!1;var n=i(t);return!0===n?m(e).delete(t):n&&c(n,e.id)&&delete n[e.id]},has:function(t){var e=p(this);if(!a(t))return!1;var n=i(t);return!0===n?m(e).has(t):n&&c(n,e.id)}}),r(h.prototype,n?{get:function(t){var e=p(this);if(a(t)){var n=i(t);return!0===n?m(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return v(this,t,e)}}:{add:function(t){return v(this,t,!0)}}),h}}},function(t,e,n){var r=n(62),i=n(18),o=n(83),a=n(47),s=n(157),u=[].push,l=function(t){var e=1==t,n=2==t,l=3==t,c=4==t,h=6==t,f=5==t||h;return function(d,p,v,g){for(var m,y,b=o(d),_=i(b),w=r(p,v,3),S=a(_.length),A=0,x=g||s,k=e?x(d,S):n?x(d,0):void 0;S>A;A++)if((f||A in _)&&(y=w(m=_[A],A,b),t))if(e)k[A]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return A;case 2:u.call(k,m)}else if(c)return!1;return h?-1:l||c?c:k}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(t,e,n){var r=n(22),i=n(158),o=n(57)("species");t.exports=function(t,e){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},function(t,e,n){var r=n(19);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){n(114),n(160),n(116);var r=n(43);t.exports=r.WeakSet},function(t,e,n){"use strict";n(146)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(155))},function(t,e,n){n(162);var r=n(61);t.exports=r("String","codePointAt")},function(t,e,n){"use strict";var r=n(10),i=n(78).codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},function(t,e,n){n(164);var r=n(43);t.exports=r.String.fromCodePoint},function(t,e,n){var r=n(10),i=n(49),o=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){n(166),n(114),n(168),n(172),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187);var r=n(43);t.exports=r.Symbol},function(t,e,n){"use strict";var r=n(10),i=n(14),o=n(158),a=n(22),s=n(83),u=n(47),l=n(93),c=n(157),h=n(167),f=n(57),d=n(133),p=f("isConcatSpreadable"),v=d>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),g=h("concat"),m=function(t){if(!a(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,forced:!v||!g},{concat:function(t){var e,n,r,i,o,a=s(this),h=c(a,0),f=0;for(e=-1,r=arguments.length;e<r;e++)if(m(o=-1===e?a:arguments[e])){if(f+(i=u(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,f++)n in o&&l(h,f,o[n])}else{if(f>=9007199254740991)throw TypeError("Maximum allowed index exceeded");l(h,f++,o)}return h.length=f,h}})},function(t,e,n){var r=n(14),i=n(57),o=n(133),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){"use strict";var r=n(10),i=n(11),o=n(42),a=n(37),s=n(13),u=n(58),l=n(59),c=n(14),h=n(23),f=n(158),d=n(22),p=n(28),v=n(83),g=n(17),m=n(21),y=n(16),b=n(71),_=n(73),w=n(44),S=n(169),A=n(51),x=n(12),k=n(27),C=n(15),P=n(26),T=n(29),R=n(36),E=n(35),O=n(39),L=n(38),I=n(57),M=n(170),D=n(171),N=n(85),j=n(33),F=n(156).forEach,B=E("hidden"),z=I("toPrimitive"),U=j.set,W=j.getterFor("Symbol"),V=Object.prototype,q=i.Symbol,H=o("JSON","stringify"),$=x.f,G=k.f,Y=S.f,X=C.f,K=R("symbols"),Q=R("op-symbols"),J=R("string-to-symbol-registry"),Z=R("symbol-to-string-registry"),tt=R("wks"),et=i.QObject,nt=!et||!et.prototype||!et.prototype.findChild,rt=s&&c((function(){return 7!=b(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=$(V,e);r&&delete V[e],G(t,e,n),r&&t!==V&&G(V,e,r)}:G,it=function(t,e){var n=K[t]=b(q.prototype);return U(n,{type:"Symbol",tag:t,description:e}),s||(n.description=e),n},ot=l?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof q},at=function(t,e,n){t===V&&at(Q,e,n),p(t);var r=m(e,!0);return p(n),h(K,r)?(n.enumerable?(h(t,B)&&t[B][r]&&(t[B][r]=!1),n=b(n,{enumerable:y(0,!1)})):(h(t,B)||G(t,B,y(1,{})),t[B][r]=!0),rt(t,r,n)):G(t,r,n)},st=function(t,e){p(t);var n=g(e),r=_(n).concat(ht(n));return F(r,(function(e){s&&!ut.call(n,e)||at(t,e,n[e])})),t},ut=function(t){var e=m(t,!0),n=X.call(this,e);return!(this===V&&h(K,e)&&!h(Q,e))&&(!(n||!h(this,e)||!h(K,e)||h(this,B)&&this[B][e])||n)},lt=function(t,e){var n=g(t),r=m(e,!0);if(n!==V||!h(K,r)||h(Q,r)){var i=$(n,r);return!i||!h(K,r)||h(n,B)&&n[B][r]||(i.enumerable=!0),i}},ct=function(t){var e=Y(g(t)),n=[];return F(e,(function(t){h(K,t)||h(O,t)||n.push(t)})),n},ht=function(t){var e=t===V,n=Y(e?Q:g(t)),r=[];return F(n,(function(t){!h(K,t)||e&&!h(V,t)||r.push(K[t])})),r};u||(T((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=L(t),n=function(t){this===V&&n.call(Q,t),h(this,B)&&h(this[B],e)&&(this[B][e]=!1),rt(this,e,y(1,t))};return s&&nt&&rt(V,e,{configurable:!0,set:n}),it(e,t)}).prototype,"toString",(function(){return W(this).tag})),T(q,"withoutSetter",(function(t){return it(L(t),t)})),C.f=ut,k.f=at,x.f=lt,w.f=S.f=ct,A.f=ht,M.f=function(t){return it(I(t),t)},s&&(G(q.prototype,"description",{configurable:!0,get:function(){return W(this).description}}),a||T(V,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),F(_(tt),(function(t){D(t)})),r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=String(t);if(h(J,e))return J[e];var n=q(e);return J[e]=n,Z[n]=e,n},keyFor:function(t){if(!ot(t))throw TypeError(t+" is not a symbol");if(h(Z,t))return Z[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(t,e){return void 0===e?b(t):st(b(t),e)},defineProperty:at,defineProperties:st,getOwnPropertyDescriptor:lt}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ct,getOwnPropertySymbols:ht}),r({target:"Object",stat:!0,forced:c((function(){A.f(1)}))},{getOwnPropertySymbols:function(t){return A.f(v(t))}}),H&&r({target:"JSON",stat:!0,forced:!u||c((function(){var t=q();return"[null]"!=H([t])||"{}"!=H({a:t})||"{}"!=H(Object(t))}))},{stringify:function(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,(d(e)||void 0!==t)&&!ot(t))return f(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!ot(e))return e}),i[1]=e,H.apply(null,i)}}),q.prototype[z]||P(q.prototype,z,q.prototype.valueOf),N(q,"Symbol"),O[B]=!0},function(t,e,n){var r=n(17),i=n(44).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(r(t))}},function(t,e,n){var r=n(57);e.f=r},function(t,e,n){var r=n(43),i=n(23),o=n(170),a=n(27).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},function(t,e,n){n(171)("asyncIterator")},function(t,e,n){"use strict";var r=n(10),i=n(13),o=n(11),a=n(23),s=n(22),u=n(27).f,l=n(40),c=o.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var h={},f=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof f?new c(t):void 0===t?c():c(t);return""===t&&(h[e]=!0),e};l(f,c);var d=f.prototype=c.prototype;d.constructor=f;var p=d.toString,v="Symbol(test)"==String(c("test")),g=/^Symbol\((.*)\)[^)]+$/;u(d,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(a(h,t))return"";var n=v?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},function(t,e,n){n(171)("hasInstance")},function(t,e,n){n(171)("isConcatSpreadable")},function(t,e,n){n(171)("iterator")},function(t,e,n){n(171)("match")},function(t,e,n){n(171)("matchAll")},function(t,e,n){n(171)("replace")},function(t,e,n){n(171)("search")},function(t,e,n){n(171)("species")},function(t,e,n){n(171)("split")},function(t,e,n){n(171)("toPrimitive")},function(t,e,n){n(171)("toStringTag")},function(t,e,n){n(171)("unscopables")},function(t,e,n){n(85)(Math,"Math",!0)},function(t,e,n){var r=n(11);n(85)(r.JSON,"JSON",!0)},function(t,e,n){n(189);var r=n(61);t.exports=r("String","padStart")},function(t,e,n){"use strict";var r=n(10),i=n(190).start;r({target:"String",proto:!0,forced:n(192)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(47),i=n(191),o=n(20),a=Math.ceil,s=function(t){return function(e,n,s){var u,l,c=String(o(e)),h=c.length,f=void 0===s?" ":String(s),d=r(n);return d<=h||""==f?c:(u=d-h,(l=i.call(f,a(u/f.length))).length>u&&(l=l.slice(0,u)),t?c+l:l+c)}};t.exports={start:s(!1),end:s(!0)}},function(t,e,n){"use strict";var r=n(48),i=n(20);t.exports="".repeat||function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e,n){var r=n(127);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(t,e,n){n(194);var r=n(61);t.exports=r("String","padEnd")},function(t,e,n){"use strict";var r=n(10),i=n(190).end;r({target:"String",proto:!0,forced:n(192)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){n(196);var r=n(43);t.exports=r.Object.values},function(t,e,n){var r=n(10),i=n(197).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},function(t,e,n){var r=n(13),i=n(73),o=n(17),a=n(15).f,s=function(t){return function(e){for(var n,s=o(e),u=i(s),l=u.length,c=0,h=[];l>c;)n=u[c++],r&&!a.call(s,n)||h.push(t?[n,s[n]]:s[n]);return h}};t.exports={entries:s(!0),values:s(!1)}},function(module,exports,__w_pdfjs_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(5),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(199),_api_compatibility=__w_pdfjs_require__(200),_canvas=__w_pdfjs_require__(201),_worker_options=__w_pdfjs_require__(203),_is_node=__w_pdfjs_require__(7),_message_handler=__w_pdfjs_require__(204),_metadata=__w_pdfjs_require__(205),_transport_stream=__w_pdfjs_require__(207),_webgl=__w_pdfjs_require__(208);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function asyncGeneratorStep(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function _asyncToGenerator(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){asyncGeneratorStep(o,r,i,a,s,"next",t)}function s(t){asyncGeneratorStep(o,r,i,a,s,"throw",t)}a(void 0)}))}}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _createForOfIteratorHelper(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _iterableToArrayLimit(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,createPDFNetworkStream;function setPDFNetworkStreamFactory(t){createPDFNetworkStream=t}function getDocument(t){var e,n=new PDFDocumentLoadingTask;if("string"==typeof t)e={url:t};else if((0,_util.isArrayBuffer)(t))e={data:t};else if(t instanceof PDFDataRangeTransport)e={range:t};else{if("object"!==_typeof(t))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!t.url&&!t.data&&!t.range)throw new Error("Invalid parameter object: need either .data, .range or .url");e=t}var r=Object.create(null),i=null,o=null;for(var a in e)if("url"!==a||"undefined"==typeof window)if("range"!==a)if("worker"!==a)if("data"!==a||e[a]instanceof Uint8Array)r[a]=e[a];else{var s=e[a];if("string"==typeof s)r[a]=(0,_util.stringToBytes)(s);else if("object"!==_typeof(s)||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");r[a]=new Uint8Array(s)}else r[a]=new Uint8Array(s)}else o=e[a];else i=e[a];else r[a]=new URL(e[a],window.location).href;if(r.rangeChunkSize=r.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,r.CMapReaderFactory=r.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,r.ignoreErrors=!0!==r.stopAtErrors,r.fontExtraProperties=!0===r.fontExtraProperties,r.pdfBug=!0===r.pdfBug,Number.isInteger(r.maxImageSize)||(r.maxImageSize=-1),"boolean"!=typeof r.isEvalSupported&&(r.isEvalSupported=!0),"boolean"!=typeof r.disableFontFace&&(r.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),"boolean"!=typeof r.disableRange&&(r.disableRange=!1),"boolean"!=typeof r.disableStream&&(r.disableStream=!1),"boolean"!=typeof r.disableAutoFetch&&(r.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(r.verbosity),!o){var u={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};o=u.port?PDFWorker.fromPort(u):new PDFWorker(u),n._worker=o}var l=n.docId;return o.promise.then((function(){if(n.destroyed)throw new Error("Loading aborted");var t=_fetchDocument(o,r,i,l),e=new Promise((function(t){var e;i?e=new _transport_stream.PDFDataTransportStream({length:r.length,initialData:r.initialData,progressiveDone:r.progressiveDone,disableRange:r.disableRange,disableStream:r.disableStream},i):r.data||(e=createPDFNetworkStream({url:r.url,length:r.length,httpHeaders:r.httpHeaders,withCredentials:r.withCredentials,rangeChunkSize:r.rangeChunkSize,disableRange:r.disableRange,disableStream:r.disableStream})),t(e)}));return Promise.all([t,e]).then((function(t){var e=_slicedToArray(t,2),i=e[0],a=e[1];if(n.destroyed)throw new Error("Loading aborted");var s=new _message_handler.MessageHandler(l,i,o.port);s.postMessageTransfers=o.postMessageTransfers;var u=new WorkerTransport(s,n,a,r);n._transport=u,s.send("Ready",null)}))})).catch(n._capability.reject),n}function _fetchDocument(t,e,n,r){return t.destroyed?Promise.reject(new Error("Worker was destroyed")):(n&&(e.length=n.length,e.initialData=n.initialData,e.progressiveDone=n.progressiveDone),t.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"2.5.207",source:{data:e.data,url:e.url,password:e.password,disableAutoFetch:e.disableAutoFetch,rangeChunkSize:e.rangeChunkSize,length:e.length},maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,postMessageTransfers:t.postMessageTransfers,docBaseUrl:e.docBaseUrl,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported,fontExtraProperties:e.fontExtraProperties}).then((function(e){if(t.destroyed)throw new Error("Worker was destroyed");return e})))}var PDFDocumentLoadingTask=(nextDocumentId=0,function(){function t(){_classCallCheck(this,t),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+nextDocumentId++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(t,[{key:"destroy",value:function(){var t=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then((function(){t._transport=null,t._worker&&(t._worker.destroy(),t._worker=null)}))}},{key:"promise",get:function(){return this._capability.promise}}]),t}()),nextDocumentId,PDFDataRangeTransport=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.length=e,this.initialData=n,this.progressiveDone=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(t,[{key:"addRangeListener",value:function(t){this._rangeListeners.push(t)}},{key:"addProgressListener",value:function(t){this._progressListeners.push(t)}},{key:"addProgressiveReadListener",value:function(t){this._progressiveReadListeners.push(t)}},{key:"addProgressiveDoneListener",value:function(t){this._progressiveDoneListeners.push(t)}},{key:"onDataRange",value:function(t,e){var n,r=_createForOfIteratorHelper(this._rangeListeners);try{for(r.s();!(n=r.n()).done;)(0,n.value)(t,e)}catch(t){r.e(t)}finally{r.f()}}},{key:"onDataProgress",value:function(t,e){var n=this;this._readyCapability.promise.then((function(){var r,i=_createForOfIteratorHelper(n._progressListeners);try{for(i.s();!(r=i.n()).done;)(0,r.value)(t,e)}catch(t){i.e(t)}finally{i.f()}}))}},{key:"onDataProgressiveRead",value:function(t){var e=this;this._readyCapability.promise.then((function(){var n,r=_createForOfIteratorHelper(e._progressiveReadListeners);try{for(r.s();!(n=r.n()).done;)(0,n.value)(t)}catch(t){r.e(t)}finally{r.f()}}))}},{key:"onDataProgressiveDone",value:function(){var t=this;this._readyCapability.promise.then((function(){var e,n=_createForOfIteratorHelper(t._progressiveDoneListeners);try{for(n.s();!(e=n.n()).done;)(0,e.value)()}catch(t){n.e(t)}finally{n.f()}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(t,e){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),t}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function t(e,n){_classCallCheck(this,t),this._pdfInfo=e,this._transport=n}return _createClass(t,[{key:"getPage",value:function(t){return this._transport.getPage(t)}},{key:"getPageIndex",value:function(t){return this._transport.getPageIndex(t)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(t){return this._transport.getDestination(t)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getOpenActionDestination",value:function(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then((function(t){return t&&t.dest?t.dest:null}))}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),t}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,t),this._pageIndex=e,this._pageInfo=n,this._transport=r,this._stats=i?new _display_utils.StatTimer:null,this._pdfBug=i,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return _createClass(t,[{key:"getViewport",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.scale,n=t.rotation,r=void 0===n?this.rotate:n,i=t.offsetX,o=void 0===i?0:i,a=t.offsetY,s=void 0===a?0:a,u=t.dontFlip,l=void 0!==u&&u;return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:r,offsetX:o,offsetY:s,dontFlip:l})}},{key:"getAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.intent,n=void 0===e?null:e;return this.annotationsPromise&&this.annotationsIntent===n||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,n),this.annotationsIntent=n),this.annotationsPromise}},{key:"render",value:function(t){var e=this,n=t.canvasContext,r=t.viewport,i=t.intent,o=void 0===i?"display":i,a=t.enableWebGL,s=void 0!==a&&a,u=t.renderInteractiveForms,l=void 0!==u&&u,c=t.transform,h=void 0===c?null:c,f=t.imageLayer,d=void 0===f?null:f,p=t.canvasFactory,v=void 0===p?null:p,g=t.background,m=void 0===g?null:g;this._stats&&this._stats.time("Overall");var y="print"===o?"print":"display";this.pendingCleanup=!1,this.intentStates[y]||(this.intentStates[y]=Object.create(null));var b=this.intentStates[y];b.streamReaderCancelTimeout&&(clearTimeout(b.streamReaderCancelTimeout),b.streamReaderCancelTimeout=null);var _=v||new _display_utils.DOMCanvasFactory,w=new _webgl.WebGLContext({enable:s});b.displayReadyCapability||(b.displayReadyCapability=(0,_util.createPromiseCapability)(),b.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:y,renderInteractiveForms:!0===l}));var S=function(t){var n=b.renderTasks.indexOf(A);n>=0&&b.renderTasks.splice(n,1),(e.cleanupAfterRender||"print"===y)&&(e.pendingCleanup=!0),e._tryCleanup(),t?(A.capability.reject(t),e._abortOperatorList({intentState:b,reason:t})):A.capability.resolve(),e._stats&&(e._stats.timeEnd("Rendering"),e._stats.timeEnd("Overall"))},A=new InternalRenderTask({callback:S,params:{canvasContext:n,viewport:r,transform:h,imageLayer:d,background:m},objs:this.objs,commonObjs:this.commonObjs,operatorList:b.operatorList,pageIndex:this._pageIndex,canvasFactory:_,webGLContext:w,useRequestAnimationFrame:"print"!==y,pdfBug:this._pdfBug});b.renderTasks||(b.renderTasks=[]),b.renderTasks.push(A);var x=A.task;return b.displayReadyCapability.promise.then((function(t){e.pendingCleanup?S():(e._stats&&e._stats.time("Rendering"),A.initializeGraphics(t),A.operatorListChanged())})).catch(S),x}},{key:"getOperatorList",value:function(){this.intentStates.oplist||(this.intentStates.oplist=Object.create(null));var t,e=this.intentStates.oplist;return e.opListReadCapability||((t={}).operatorListChanged=function(){if(e.operatorList.lastChunk){e.opListReadCapability.resolve(e.operatorList);var n=e.renderTasks.indexOf(t);n>=0&&e.renderTasks.splice(n,1)}},e.opListReadCapability=(0,_util.createPromiseCapability)(),e.renderTasks=[],e.renderTasks.push(t),e.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:"oplist"})),e.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.normalizeWhitespace,n=void 0!==e&&e,r=t.disableCombineTextItems,i=void 0!==r&&r,o=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===n,combineTextItems:!0!==i},{highWaterMark:o,size:function(t){return t.items.length}})}},{key:"getTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.streamTextContent(t);return new Promise((function(t,n){var r=e.getReader(),i={items:[],styles:Object.create(null)};!function e(){r.read().then((function(n){var r,o=n.value;n.done?t(i):(Object.assign(i.styles,o.styles),(r=i.items).push.apply(r,_toConsumableArray(o.items)),e())}),n)}()}))}},{key:"_destroy",value:function(){var t=this;this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var e=[];return Object.keys(this.intentStates).forEach((function(n){var r=t.intentStates[n];t._abortOperatorList({intentState:r,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==n&&r.renderTasks.forEach((function(t){var n=t.capability.promise.catch((function(){}));e.push(n),t.cancel()}))})),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(e)}},{key:"cleanup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(t)}},{key:"_tryCleanup",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(!this.pendingCleanup||Object.keys(this.intentStates).some((function(e){var n=t.intentStates[e];return 0!==n.renderTasks.length||!n.operatorList.lastChunk}))||(Object.keys(this.intentStates).forEach((function(e){delete t.intentStates[e]})),this.objs.clear(),this.annotationsPromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,0))}},{key:"_startRenderPage",value:function(t,e){var n=this.intentStates[e];n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(t))}},{key:"_renderPageChunk",value:function(t,e){for(var n=0,r=t.length;n<r;n++)e.operatorList.fnArray.push(t.fnArray[n]),e.operatorList.argsArray.push(t.argsArray[n]);e.operatorList.lastChunk=t.lastChunk;for(var i=0;i<e.renderTasks.length;i++)e.renderTasks[i].operatorListChanged();t.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(t){var e=this;(0,_util.assert)(t.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var n=this._transport.messageHandler.sendWithStream("GetOperatorList",t).getReader(),r=this.intentStates[t.intent];r.streamReader=n,function t(){n.read().then((function(n){var i=n.value;n.done?r.streamReader=null:e._transport.destroyed||(e._renderPageChunk(i,r),t())}),(function(t){if(r.streamReader=null,!e._transport.destroyed){if(r.operatorList){r.operatorList.lastChunk=!0;for(var n=0;n<r.renderTasks.length;n++)r.renderTasks[n].operatorListChanged();e._tryCleanup()}if(r.displayReadyCapability)r.displayReadyCapability.reject(t);else{if(!r.opListReadCapability)throw t;r.opListReadCapability.reject(t)}}}))}()}},{key:"_abortOperatorList",value:function(t){var e=this,n=t.intentState,r=t.reason,i=t.force,o=void 0!==i&&i;if((0,_util.assert)(r instanceof Error||"object"===_typeof(r)&&null!==r,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),n.streamReader){if(!o){if(0!==n.renderTasks.length)return;if(r instanceof _display_utils.RenderingCancelledException)return void(n.streamReaderCancelTimeout=setTimeout((function(){e._abortOperatorList({intentState:n,reason:r,force:!0}),n.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}n.streamReader.cancel(new _util.AbortException(r&&r.message)),n.streamReader=null,this._transport.destroyed||(Object.keys(this.intentStates).some((function(t){return e.intentStates[t]===n&&(delete e.intentStates[t],!0)})),this.cleanup())}}},{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"stats",get:function(){return this._stats}}]),t}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function t(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,t),this._listeners=[],this._defer=e,this._deferred=Promise.resolve(void 0)}return _createClass(t,[{key:"postMessage",value:function(t,e){var n=this;if(this._defer){var r=new WeakMap,i={data:function t(n){if("object"!==_typeof(n)||null===n)return n;if(r.has(n))return r.get(n);var i,o;if((i=n.buffer)&&(0,_util.isArrayBuffer)(i))return o=e&&e.includes(i)?new n.constructor(i,n.byteOffset,n.byteLength):new n.constructor(n),r.set(n,o),o;for(var a in o=Array.isArray(n)?[]:{},r.set(n,o),n){for(var s=void 0,u=n;!(s=Object.getOwnPropertyDescriptor(u,a));)u=Object.getPrototypeOf(u);if(void 0!==s.value)if("function"!=typeof s.value)o[a]=t(s.value);else if(n.hasOwnProperty&&n.hasOwnProperty(a))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(n[a]))}return o}(t)};this._deferred.then((function(){n._listeners.forEach((function(t){t.call(n,i)}))}))}else this._listeners.forEach((function(e){e.call(n,{data:t})}))}},{key:"addEventListener",value:function(t,e){this._listeners.push(e)}},{key:"removeEventListener",value:function(t,e){var n=this._listeners.indexOf(e);this._listeners.splice(n,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),t}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"==typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(void 0!==fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var t;try{t=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(t){}return t||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref10=_asyncToGenerator(_regenerator.default.mark((function _callee(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler(),!mainWorkerMessageHandler){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}}),_callee)})));return function(){return _ref10.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(t){var e="importScripts('"+t+"');";return URL.createObjectURL(new Blob([e]))}var PDFWorker=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.name,r=void 0===n?null:n,i=e.port,o=void 0===i?null:i,a=e.verbosity,s=void 0===a?(0,_util.getVerbosityLevel)():a;if(_classCallCheck(this,t),o&&pdfWorkerPorts.has(o))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=r,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,o)return pdfWorkerPorts.set(o,this),void this._initializeFromPort(o);this._initialize()}return _createClass(t,[{key:"_initializeFromPort",value:function(t){this._port=t,this._messageHandler=new _message_handler.MessageHandler("main","worker",t),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var t=this;if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var e=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,e)||(e=createCDNWrapper(new URL(e,window.location).href));var n=new Worker(e),r=new _message_handler.MessageHandler("main","worker",n),i=function(){n.removeEventListener("error",o),r.destroy(),n.terminate(),t.destroyed?t._readyCapability.reject(new Error("Worker was destroyed")):t._setupFakeWorker()},o=function(){t._webWorker||i()};n.addEventListener("error",o),r.on("test",(function(e){n.removeEventListener("error",o),t.destroyed?i():e?(t._messageHandler=r,t._port=n,t._webWorker=n,e.supportTransfers||(t.postMessageTransfers=!1),t._readyCapability.resolve(),r.send("configure",{verbosity:t.verbosity})):(t._setupFakeWorker(),r.destroy(),n.terminate())})),r.on("ready",(function(e){if(n.removeEventListener("error",o),t.destroyed)i();else try{a()}catch(e){t._setupFakeWorker()}}));var a=function(){var e=new Uint8Array([t.postMessageTransfers?255:0]);try{r.send("test",e,[e.buffer])}catch(t){(0,_util.warn)("Cannot use postMessage transfers."),e[0]=0,r.send("test",e)}};return void a()}catch(t){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var t=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then((function(e){if(t.destroyed)t._readyCapability.reject(new Error("Worker was destroyed"));else{var n=new LoopbackPort;t._port=n;var r="fake"+nextFakeWorkerId++,i=new _message_handler.MessageHandler(r+"_worker",r,n);e.setup(i,n);var o=new _message_handler.MessageHandler(r,r+"_worker",n);t._messageHandler=o,t._readyCapability.resolve(),o.send("configure",{verbosity:t.verbosity})}})).catch((function(e){t._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(e.message,'".')))}))}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(e){if(!e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(e.port)?pdfWorkerPorts.get(e.port):new t(e)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),t}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function t(e,n,r,i){_classCallCheck(this,t),this.messageHandler=e,this.loadingTask=n,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:n.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=i,this.CMapReaderFactory=new i.CMapReaderFactory({baseUrl:i.cMapUrl,isCompressed:i.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(t,[{key:"destroy",value:function(){var t=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var e=[];this.pageCache.forEach((function(t){t&&e.push(t._destroy())})),this.pageCache.length=0,this.pagePromises.length=0;var n=this.messageHandler.sendWithPromise("Terminate",null);return e.push(n),Promise.all(e).then((function(){t.fontLoader.clear(),t._networkStream&&t._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),t.messageHandler&&(t.messageHandler.destroy(),t.messageHandler=null),t.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var t=this,e=this.messageHandler,n=this.loadingTask;e.on("GetReader",(function(e,n){(0,_util.assert)(t._networkStream,"GetReader - no `IPDFStream` instance available."),t._fullReader=t._networkStream.getFullReader(),t._fullReader.onProgress=function(e){t._lastProgress={loaded:e.loaded,total:e.total}},n.onPull=function(){t._fullReader.read().then((function(t){var e=t.value;t.done?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(e),1,[e]))})).catch((function(t){n.error(t)}))},n.onCancel=function(e){t._fullReader.cancel(e)}})),e.on("ReaderHeadersReady",(function(e){var r=(0,_util.createPromiseCapability)(),i=t._fullReader;return i.headersReady.then((function(){i.isStreamingSupported&&i.isRangeSupported||(t._lastProgress&&n.onProgress&&n.onProgress(t._lastProgress),i.onProgress=function(t){n.onProgress&&n.onProgress({loaded:t.loaded,total:t.total})}),r.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})}),r.reject),r.promise})),e.on("GetRangeReader",(function(e,n){(0,_util.assert)(t._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var r=t._networkStream.getRangeReader(e.begin,e.end);r?(n.onPull=function(){r.read().then((function(t){var e=t.value;t.done?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(e),1,[e]))})).catch((function(t){n.error(t)}))},n.onCancel=function(t){r.cancel(t)}):n.close()})),e.on("GetDoc",(function(e){var r=e.pdfInfo;t._numPages=r.numPages,n._capability.resolve(new PDFDocumentProxy(r,t))})),e.on("DocException",(function(t){var e;switch(t.name){case"PasswordException":e=new _util.PasswordException(t.message,t.code);break;case"InvalidPDFException":e=new _util.InvalidPDFException(t.message);break;case"MissingPDFException":e=new _util.MissingPDFException(t.message);break;case"UnexpectedResponseException":e=new _util.UnexpectedResponseException(t.message,t.status);break;case"UnknownErrorException":e=new _util.UnknownErrorException(t.message,t.details)}n._capability.reject(e)})),e.on("PasswordRequest",(function(e){if(t._passwordCapability=(0,_util.createPromiseCapability)(),n.onPassword)try{n.onPassword((function(e){t._passwordCapability.resolve({password:e})}),e.code)}catch(e){t._passwordCapability.reject(e)}else t._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return t._passwordCapability.promise})),e.on("DataLoaded",(function(e){n.onProgress&&n.onProgress({loaded:e.length,total:e.length}),t.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(function(e){t.destroyed||t.pageCache[e.pageIndex]._startRenderPage(e.transparency,e.intent)})),e.on("commonobj",(function(n){if(!t.destroyed){var r=_slicedToArray(n,3),i=r[0],o=r[1],a=r[2];if(!t.commonObjs.has(i))switch(o){case"Font":var s=t._params;if("error"in a){var u=a.error;(0,_util.warn)("Error during font loading: ".concat(u)),t.commonObjs.resolve(i,u);break}var l=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(l={registerFont:function(t,e){globalThis.FontInspector.fontAdded(t,e)}});var c=new _font_loader.FontFaceObject(a,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:t._onUnsupportedFeature.bind(t),fontRegistry:l});t.fontLoader.bind(c).catch((function(t){return e.sendWithPromise("FontFallback",{id:i})})).finally((function(){!s.fontExtraProperties&&c.data&&(c.data=null),t.commonObjs.resolve(i,c)}));break;case"FontPath":case"FontType3Res":case"Image":t.commonObjs.resolve(i,a);break;default:throw new Error("Got unknown common object type ".concat(o))}}})),e.on("obj",(function(e){if(!t.destroyed){var n=_slicedToArray(e,4),r=n[0],i=n[1],o=n[2],a=n[3],s=t.pageCache[i];if(!s.objs.has(r))switch(o){case"Image":s.objs.resolve(r,a),a&&"data"in a&&a.data.length>8e6&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(o))}}})),e.on("DocProgress",(function(e){t.destroyed||n.onProgress&&n.onProgress({loaded:e.loaded,total:e.total})})),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",(function(e,n){if(t.destroyed)n.error(new Error("Worker was destroyed"));else{var r=!1;n.onPull=function(){r?n.close():(r=!0,t.CMapReaderFactory.fetch(e).then((function(t){n.enqueue(t,1,[t.cMapData.buffer])})).catch((function(t){n.error(t)})))}}}))}},{key:"_onUnsupportedFeature",value:function(t){var e=t.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(e)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(t){var e=this;if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request"));var n=t-1;if(n in this.pagePromises)return this.pagePromises[n];var r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then((function(t){if(e.destroyed)throw new Error("Transport destroyed");var r=new PDFPageProxy(n,t,e,e._params.pdfBug);return e.pageCache[n]=r,r}));return this.pagePromises[n]=r,r}},{key:"getPageIndex",value:function(t){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:t}).catch((function(t){return Promise.reject(new Error(t))}))}},{key:"getAnnotations",value:function(t,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:e})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(t){return"string"!=typeof t?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var t=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then((function(e){return{info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:t._fullReader?t._fullReader.filename:null}}))}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var t=this;return this.messageHandler.sendWithPromise("Cleanup",null).then((function(){for(var e=0,n=t.pageCache.length;e<n;e++){var r=t.pageCache[e];if(r&&!r.cleanup())throw new Error("startCleanup: Page ".concat(e+1," is currently rendering."))}t.commonObjs.clear(),t.fontLoader.clear()}))}},{key:"loadingParams",get:function(){var t=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:t.disableAutoFetch,disableFontFace:t.disableFontFace})}}]),t}(),PDFObjects=function(){function t(){_classCallCheck(this,t),this._objs=Object.create(null)}return _createClass(t,[{key:"_ensureObj",value:function(t){return this._objs[t]?this._objs[t]:this._objs[t]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e)return this._ensureObj(t).capability.promise.then(e),null;var n=this._objs[t];if(!n||!n.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(t,"."));return n.data}},{key:"has",value:function(t){var e=this._objs[t];return!!e&&e.resolved}},{key:"resolve",value:function(t,e){var n=this._ensureObj(t);n.resolved=!0,n.data=e,n.capability.resolve(e)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),t}(),RenderTask=function(){function t(e){_classCallCheck(this,t),this._internalRenderTask=e,this.onContinue=null}return _createClass(t,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),t}(),InternalRenderTask=(canvasInRendering=new WeakSet,function(){function t(e){var n=e.callback,r=e.params,i=e.objs,o=e.commonObjs,a=e.operatorList,s=e.pageIndex,u=e.canvasFactory,l=e.webGLContext,c=e.useRequestAnimationFrame,h=void 0!==c&&c,f=e.pdfBug,d=void 0!==f&&f;_classCallCheck(this,t),this.callback=n,this.params=r,this.objs=i,this.commonObjs=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=s,this.canvasFactory=u,this.webGLContext=l,this._pdfBug=d,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===h&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=r.canvasContext.canvas}var e;return _createClass(t,[{key:"initializeGraphics",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.cancelled){if(this._canvas){if(canvasInRendering.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");canvasInRendering.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var e=this.params,n=e.canvasContext,r=e.viewport,i=e.transform,o=e.imageLayer,a=e.background;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,o),this.gfx.beginDrawing({transform:i,viewport:r,transparency:t,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&canvasInRendering.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var t=this;this._useRequestAnimationFrame?window.requestAnimationFrame((function(){t._nextBound().catch(t.cancel.bind(t))})):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:(e=_asyncToGenerator(_regenerator.default.mark((function t(){return _regenerator.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&canvasInRendering.delete(this._canvas),this.callback()));case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),t}()),canvasInRendering,version="2.5.207";exports.version=version;var build="0974d605";exports.build=build},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontLoader=e.FontFaceObject=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},o=n(5);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t}var v,g=function(){function t(e){var n=e.docId,r=e.onUnsupportedFeature;f(this,t),this.constructor===t&&(0,o.unreachable)("Cannot initialize BaseFontLoader."),this.docId=n,this._onUnsupportedFeature=r,this.nativeFontFaces=[],this.styleElement=null}var e,n;return p(t,[{key:"addNativeFontFace",value:function(t){this.nativeFontFaces.push(t),document.fonts.add(t)}},{key:"insertRule",value:function(t){var e=this.styleElement;e||((e=this.styleElement=document.createElement("style")).id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(e));var n=e.sheet;n.insertRule(t,n.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach((function(t){document.fonts.delete(t)})),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:(e=i.default.mark((function t(e){var n,r,a=this;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.attached&&!e.missingFile){t.next=2;break}return t.abrupt("return");case 2:if(e.attached=!0,!this.isFontLoadingAPISupported){t.next=19;break}if(!(n=e.createNativeFontFace())){t.next=18;break}return this.addNativeFontFace(n),t.prev=7,t.next=10,n.loaded;case 10:t.next=18;break;case 12:throw t.prev=12,t.t0=t.catch(7),this._onUnsupportedFeature({featureId:o.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,o.warn)("Failed to load font '".concat(n.family,"': '").concat(t.t0,"'.")),e.disableFontFace=!0,t.t0;case 18:return t.abrupt("return");case 19:if(!(r=e.createFontFaceRule())){t.next=26;break}if(this.insertRule(r),!this.isSyncFontLoadingSupported){t.next=24;break}return t.abrupt("return");case 24:return t.next=26,new Promise((function(t){var n=a._queueLoadingCallback(t);a._prepareFontLoadEvent([r],[e],n)}));case 26:case"end":return t.stop()}}),t,this,[[7,12]])})),n=function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(t){h(o,r,i,a,s,"next",t)}function s(t){h(o,r,i,a,s,"throw",t)}a(void 0)}))},function(t){return n.apply(this,arguments)})},{key:"_queueLoadingCallback",value:function(t){(0,o.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(t,e,n){(0,o.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var t="undefined"!=typeof document&&!!document.fonts;return(0,o.shadow)(this,"isFontLoadingAPISupported",t)}},{key:"isSyncFontLoadingSupported",get:function(){(0,o.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,o.unreachable)("Abstract method `_loadTestFont`.")}}]),t}();e.FontLoader=v,e.FontLoader=v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(n,t);var e=u(n);function n(t){var r;return f(this,n),(r=e.call(this,t)).loadingContext={requests:[],nextRequestId:0},r.loadTestFontId=0,r}return p(n,[{key:"_queueLoadingCallback",value:function(t){var e=this.loadingContext,n={id:"pdfjs-font-loading-".concat(e.nextRequestId++),done:!1,complete:function(){for((0,o.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;e.requests.length>0&&e.requests[0].done;){var t=e.requests.shift();setTimeout(t.callback,0)}},callback:t};return e.requests.push(n),n}},{key:"_prepareFontLoadEvent",value:function(t,e,n){function r(t,e){return t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|255&t.charCodeAt(e+3)}function i(t,e,n,r){return t.substring(0,e)+r+t.substring(e+n)}var a,s,u=document.createElement("canvas");u.width=1,u.height=1;var l=u.getContext("2d"),c=0,h="lt".concat(Date.now()).concat(this.loadTestFontId++),f=this._loadTestFont,d=r(f=i(f,976,h.length,h),16);for(a=0,s=h.length-3;a<s;a+=4)d=d-1482184792+r(h,a)|0;a<h.length&&(d=d-1482184792+r(h+"XXX",a)|0),f=i(f,16,4,(0,o.string32)(d));var p="url(data:font/opentype;base64,".concat(btoa(f),");"),v='@font-face {font-family:"'.concat(h,'";src:').concat(p,"}");this.insertRule(v);var g=[];for(a=0,s=e.length;a<s;a++)g.push(e[a].loadedName);g.push(h);var m=document.createElement("div");for(m.style.visibility="hidden",m.style.width=m.style.height="10px",m.style.position="absolute",m.style.top=m.style.left="0px",a=0,s=g.length;a<s;++a){var y=document.createElement("span");y.textContent="Hi",y.style.fontFamily=g[a],m.appendChild(y)}document.body.appendChild(m),function t(e,n){if(++c>30)return(0,o.warn)("Load test font never loaded."),void n();l.font="30px "+e,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0?n():setTimeout(t.bind(null,e,n))}(h,(function(){document.body.removeChild(m),n.complete()}))}},{key:"isSyncFontLoadingSupported",get:function(){var t=!1;if("undefined"==typeof navigator)t=!0;else{var e=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);e&&e[1]>=14&&(t=!0)}return(0,o.shadow)(this,"isSyncFontLoadingSupported",t)}},{key:"_loadTestFont",get:function(){return(0,o.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}}]),n}(g);var m=function(){function t(e,n){var r=n.isEvalSupported,i=void 0===r||r,o=n.disableFontFace,a=void 0!==o&&o,s=n.ignoreErrors,u=void 0!==s&&s,l=n.onUnsupportedFeature,c=void 0===l?null:l,h=n.fontRegistry,d=void 0===h?null:h;for(var p in f(this,t),this.compiledGlyphs=Object.create(null),e)this[p]=e[p];this.isEvalSupported=!1!==i,this.disableFontFace=!0===a,this.ignoreErrors=!0===u,this._onUnsupportedFeature=c,this.fontRegistry=d}return p(t,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var t=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),t}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var t=(0,o.bytesToString)(new Uint8Array(this.data)),e="url(data:".concat(this.mimetype,";base64,").concat(btoa(t),");"),n='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(e,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,e),n}},{key:"getPathGenerator",value:function(t,e){if(void 0!==this.compiledGlyphs[e])return this.compiledGlyphs[e];var n,r;try{n=t.get(this.loadedName+"_path_"+e)}catch(t){if(!this.ignoreErrors)throw t;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:o.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,o.warn)('getPathGenerator - ignoring character: "'.concat(t,'".')),this.compiledGlyphs[e]=function(t,e){}}if(this.isEvalSupported&&o.IsEvalSupportedCached.value){for(var i,a="",s=0,u=n.length;s<u;s++)i=void 0!==(r=n[s]).args?r.args.join(","):"",a+="c."+r.cmd+"("+i+");\n";return this.compiledGlyphs[e]=new Function("c","size",a)}return this.compiledGlyphs[e]=function(t,e){for(var i=0,o=n.length;i<o;i++)"scale"===(r=n[i]).cmd&&(r.args=[e,-e]),t[r.cmd].apply(t,r.args)}}}]),t}();e.FontFaceObject=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.apiCompatibilityParams=void 0;var r=n(7),i=Object.create(null);r.isNodeJS&&(i.disableFontFace=!0);var o=Object.freeze(i);e.apiCompatibilityParams=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasGraphics=void 0;var r=n(5),i=n(202);function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t){t.mozCurrentTransform||(t._originalSave=t.save,t._originalRestore=t.restore,t._originalRotate=t.rotate,t._originalScale=t.scale,t._originalTranslate=t.translate,t._originalTransform=t.transform,t._originalSetTransform=t.setTransform,t._transformMatrix=t._transformMatrix||[1,0,0,1,0,0],t._transformStack=[],Object.defineProperty(t,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(t,"mozCurrentTransformInverse",{get:function(){var t=this._transformMatrix,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=e*i-n*r,u=n*r-e*i;return[i/s,n/u,r/u,e/s,(i*o-r*a)/u,(n*o-e*a)/s]}}),t.save=function(){var t=this._transformMatrix;this._transformStack.push(t),this._transformMatrix=t.slice(0,6),this._originalSave()},t.restore=function(){var t=this._transformStack.pop();t&&(this._transformMatrix=t,this._originalRestore())},t.translate=function(t,e){var n=this._transformMatrix;n[4]=n[0]*t+n[2]*e+n[4],n[5]=n[1]*t+n[3]*e+n[5],this._originalTranslate(t,e)},t.scale=function(t,e){var n=this._transformMatrix;n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*e,n[3]=n[3]*e,this._originalScale(t,e)},t.transform=function(e,n,r,i,o,a){var s=this._transformMatrix;this._transformMatrix=[s[0]*e+s[2]*n,s[1]*e+s[3]*n,s[0]*r+s[2]*i,s[1]*r+s[3]*i,s[0]*o+s[2]*a+s[4],s[1]*o+s[3]*a+s[5]],t._originalTransform(e,n,r,i,o,a)},t.setTransform=function(e,n,r,i,o,a){this._transformMatrix=[e,n,r,i,o,a],t._originalSetTransform(e,n,r,i,o,a)},t.rotate=function(t){var e=Math.cos(t),n=Math.sin(t),r=this._transformMatrix;this._transformMatrix=[r[0]*e+r[2]*n,r[1]*e+r[3]*n,r[0]*-n+r[2]*e,r[1]*-n+r[3]*e,r[4],r[5]],this._originalRotate(t)})}var u=function(){function t(t){this.canvasFactory=t,this.cache=Object.create(null)}return t.prototype={getCanvas:function(t,e,n,r){var i;return void 0!==this.cache[t]?(i=this.cache[t],this.canvasFactory.reset(i,e,n),i.context.setTransform(1,0,0,1,0,0)):(i=this.canvasFactory.create(e,n),this.cache[t]=i),r&&s(i.context),i},clear:function(){for(var t in this.cache){var e=this.cache[t];this.canvasFactory.destroy(e),delete this.cache[t]}}},t}(),l=function(){function t(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=r.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=r.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return t.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(t,e){this.x=t,this.y=e}},t}(),c=function(){function t(t,e,n,r,i,o){this.ctx=t,this.current=new l,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=e,this.objs=n,this.canvasFactory=r,this.webGLContext=i,this.imageLayer=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new u(this.canvasFactory),t&&s(t),this._cachedGetSinglePixelWidth=null}function e(t,e){if("undefined"!=typeof ImageData&&e instanceof ImageData)t.putImageData(e,0,0);else{var n,i,o,a,s,u=e.height,l=e.width,c=u%16,h=(u-c)/16,f=0===c?h:h+1,d=t.createImageData(l,16),p=0,v=e.data,g=d.data;if(e.kind===r.ImageKind.GRAYSCALE_1BPP){var m=v.byteLength,y=new Uint32Array(g.buffer,0,g.byteLength>>2),b=y.length,_=l+7>>3,w=4294967295,S=r.IsLittleEndianCached.value?4278190080:255;for(i=0;i<f;i++){for(a=i<h?16:c,n=0,o=0;o<a;o++){for(var A=m-p,x=0,k=A>_?l:8*A-7,C=-8&k,P=0,T=0;x<C;x+=8)T=v[p++],y[n++]=128&T?w:S,y[n++]=64&T?w:S,y[n++]=32&T?w:S,y[n++]=16&T?w:S,y[n++]=8&T?w:S,y[n++]=4&T?w:S,y[n++]=2&T?w:S,y[n++]=1&T?w:S;for(;x<k;x++)0===P&&(T=v[p++],P=128),y[n++]=T&P?w:S,P>>=1}for(;n<b;)y[n++]=0;t.putImageData(d,0,16*i)}}else if(e.kind===r.ImageKind.RGBA_32BPP){for(o=0,s=16*l*4,i=0;i<h;i++)g.set(v.subarray(p,p+s)),p+=s,t.putImageData(d,0,o),o+=16;i<f&&(s=l*c*4,g.set(v.subarray(p,p+s)),t.putImageData(d,0,o))}else{if(e.kind!==r.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(e.kind));for(s=l*(a=16),i=0;i<f;i++){for(i>=h&&(s=l*(a=c)),n=0,o=s;o--;)g[n++]=v[p++],g[n++]=v[p++],g[n++]=v[p++],g[n++]=255;t.putImageData(d,0,16*i)}}}}function n(t,e){for(var n=e.height,r=e.width,i=n%16,o=(n-i)/16,a=0===i?o:o+1,s=t.createImageData(r,16),u=0,l=e.data,c=s.data,h=0;h<a;h++){for(var f=h<o?16:i,d=3,p=0;p<f;p++)for(var v=0,g=0;g<r;g++){if(!v){var m=l[u++];v=128}c[d]=m&v?0:255,d+=4,v>>=1}t.putImageData(s,0,16*h)}}function a(t,e){for(var n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],r=0,i=n.length;r<i;r++){var o=n[r];void 0!==t[o]&&(e[o]=t[o])}void 0!==t.setLineDash&&(e.setLineDash(t.getLineDash()),e.lineDashOffset=t.lineDashOffset)}function c(t){t.strokeStyle="#000000",t.fillStyle="#000000",t.fillRule="nonzero",t.globalAlpha=1,t.lineWidth=1,t.lineCap="butt",t.lineJoin="miter",t.miterLimit=10,t.globalCompositeOperation="source-over",t.font="10px sans-serif",void 0!==t.setLineDash&&(t.setLineDash([]),t.lineDashOffset=0)}function h(t,e,n,r){for(var i=t.length,o=3;o<i;o+=4){var a=t[o];if(0===a)t[o-3]=e,t[o-2]=n,t[o-1]=r;else if(a<255){var s=255-a;t[o-3]=t[o-3]*a+e*s>>8,t[o-2]=t[o-2]*a+n*s>>8,t[o-1]=t[o-1]*a+r*s>>8}}}function f(t,e,n){for(var r=t.length,i=3;i<r;i+=4){var o=n?n[t[i]]:t[i];e[i]=e[i]*o*(1/255)|0}}function d(t,e,n){for(var r=t.length,i=3;i<r;i+=4){var o=77*t[i-3]+152*t[i-2]+28*t[i-1];e[i]=n?e[i]*n[o>>8]>>8:e[i]*o>>16}}function p(t,e,n,r){var i=e.canvas,o=e.context;t.setTransform(e.scaleX,0,0,e.scaleY,e.offsetX,e.offsetY);var a=e.backdrop||null;if(!e.transferMap&&r.isEnabled){var s=r.composeSMask({layer:n.canvas,mask:i,properties:{subtype:e.subtype,backdrop:a}});return t.setTransform(1,0,0,1,0,0),void t.drawImage(s,e.offsetX,e.offsetY)}!function(t,e,n,r,i,o,a){var s,u=!!o,l=u?o[0]:0,c=u?o[1]:0,p=u?o[2]:0;s="Luminosity"===i?d:f;for(var v=Math.min(r,Math.ceil(1048576/n)),g=0;g<r;g+=v){var m=Math.min(v,r-g),y=t.getImageData(0,g,n,m),b=e.getImageData(0,g,n,m);u&&h(y.data,l,c,p),s(y.data,b.data,a),t.putImageData(b,0,g)}}(o,n,i.width,i.height,e.subtype,a,e.transferMap),t.drawImage(i,0,0)}var v=["butt","round","square"],g=["miter","round","bevel"],m={},y={};for(var b in t.prototype={beginDrawing:function(t){var e=t.transform,n=t.viewport,r=t.transparency,i=void 0!==r&&r,o=t.background,a=void 0===o?null:o,s=this.ctx.canvas.width,u=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=a||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,s,u),this.ctx.restore(),i){var l=this.cachedCanvases.getCanvas("transparent",s,u,!0);this.compositeCtx=this.ctx,this.transparentCanvas=l.canvas,this.ctx=l.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),c(this.ctx),e&&this.ctx.transform.apply(this.ctx,e),this.ctx.transform.apply(this.ctx,n.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(t,e,n,i){var a=t.argsArray,s=t.fnArray,u=e||0,l=a.length;if(l===u)return u;for(var c,h=l-u>10&&"function"==typeof n,f=h?Date.now()+15:0,d=0,p=this.commonObjs,v=this.objs;;){if(void 0!==i&&u===i.nextBreakPoint)return i.breakIt(u,n),u;if((c=s[u])!==r.OPS.dependency)this[c].apply(this,a[u]);else{var g,m=o(a[u]);try{for(m.s();!(g=m.n()).done;){var y=g.value,b=y.startsWith("g_")?p:v;if(!b.has(y))return b.get(y,n),u}}catch(t){m.e(t)}finally{m.f()}}if(++u===l)return u;if(h&&++d>10){if(Date.now()>f)return n(),u;d=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(t){this.current.lineWidth=t,this.ctx.lineWidth=t},setLineCap:function(t){this.ctx.lineCap=v[t]},setLineJoin:function(t){this.ctx.lineJoin=g[t]},setMiterLimit:function(t){this.ctx.miterLimit=t},setDash:function(t,e){var n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(t),n.lineDashOffset=e)},setRenderingIntent:function(t){},setFlatness:function(t){},setGState:function(t){for(var e=0,n=t.length;e<n;e++){var r=t[e],i=r[0],o=r[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o[0],o[1]);break;case"CA":this.current.strokeAlpha=r[1];break;case"ca":this.current.fillAlpha=r[1],this.ctx.globalAlpha=r[1];break;case"BM":this.ctx.globalCompositeOperation=o;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=o?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var t=this.current.activeSMask,e=t.canvas.width,n=t.canvas.height,r="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(r,e,n,!0),o=this.ctx,s=o.mozCurrentTransform;this.ctx.save();var u=i.context;u.scale(1/t.scaleX,1/t.scaleY),u.translate(-t.offsetX,-t.offsetY),u.transform.apply(u,s),t.startTransformInverse=u.mozCurrentTransformInverse,a(o,u),this.ctx=u,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(o),this.groupLevel++},suspendSMaskGroup:function(){var t=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),p(this.ctx,this.current.activeSMask,t,this.webGLContext),this.ctx.restore(),this.ctx.save(),a(t,this.ctx),this.current.resumeSMaskCtx=t;var e=r.Util.transform(this.current.activeSMask.startTransformInverse,t.mozCurrentTransform);this.ctx.transform.apply(this.ctx,e),t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,t.canvas.width,t.canvas.height),t.restore()},resumeSMaskGroup:function(){var t=this.current.resumeSMaskCtx,e=this.ctx;this.ctx=t,this.groupStack.push(e),this.groupLevel++},endSMaskGroup:function(){var t=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),p(this.ctx,this.current.activeSMask,t,this.webGLContext),this.ctx.restore(),a(t,this.ctx);var e=r.Util.transform(this.current.activeSMask.startTransformInverse,t.mozCurrentTransform);this.ctx.transform.apply(this.ctx,e)},save:function(){this.ctx.save();var t=this.current;this.stateStack.push(t),this.current=t.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(t,e,n,r,i,o){this.ctx.transform(t,e,n,r,i,o),this._cachedGetSinglePixelWidth=null},constructPath:function(t,e){for(var n=this.ctx,i=this.current,o=i.x,a=i.y,s=0,u=0,l=t.length;s<l;s++)switch(0|t[s]){case r.OPS.rectangle:o=e[u++],a=e[u++];var c=e[u++],h=e[u++];0===c&&(c=this.getSinglePixelWidth()),0===h&&(h=this.getSinglePixelWidth());var f=o+c,d=a+h;this.ctx.moveTo(o,a),this.ctx.lineTo(f,a),this.ctx.lineTo(f,d),this.ctx.lineTo(o,d),this.ctx.lineTo(o,a),this.ctx.closePath();break;case r.OPS.moveTo:o=e[u++],a=e[u++],n.moveTo(o,a);break;case r.OPS.lineTo:o=e[u++],a=e[u++],n.lineTo(o,a);break;case r.OPS.curveTo:o=e[u+4],a=e[u+5],n.bezierCurveTo(e[u],e[u+1],e[u+2],e[u+3],o,a),u+=6;break;case r.OPS.curveTo2:n.bezierCurveTo(o,a,e[u],e[u+1],e[u+2],e[u+3]),o=e[u+2],a=e[u+3],u+=4;break;case r.OPS.curveTo3:o=e[u+2],a=e[u+3],n.bezierCurveTo(e[u],e[u+1],o,a,o,a),u+=4;break;case r.OPS.closePath:n.closePath()}i.setCurrentPoint(o,a)},closePath:function(){this.ctx.closePath()},stroke:function(t){t=void 0===t||t;var e=this.ctx,n=this.current.strokeColor;if(e.globalAlpha=this.current.strokeAlpha,n&&n.hasOwnProperty("type")&&"Pattern"===n.type){e.save();var i=e.mozCurrentTransform,o=r.Util.singularValueDecompose2dScale(i)[0];e.strokeStyle=n.getPattern(e,this),e.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth*o),e.stroke(),e.restore()}else e.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth),e.stroke();t&&this.consumePath(),e.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(t){t=void 0===t||t;var e=this.ctx,n=this.current.fillColor,r=!1;this.current.patternFill&&(e.save(),this.baseTransform&&e.setTransform.apply(e,this.baseTransform),e.fillStyle=n.getPattern(e,this),r=!0),this.pendingEOFill?(e.fill("evenodd"),this.pendingEOFill=!1):e.fill(),r&&e.restore(),t&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=m},eoClip:function(){this.pendingClip=y},beginText:function(){this.current.textMatrix=r.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var t=this.pendingTextPaths,e=this.ctx;if(void 0!==t){e.save(),e.beginPath();for(var n=0;n<t.length;n++){var r=t[n];e.setTransform.apply(e,r.transform),e.translate(r.x,r.y),r.addToPath(e,r.fontSize)}e.restore(),e.clip(),e.beginPath(),delete this.pendingTextPaths}else e.beginPath()},setCharSpacing:function(t){this.current.charSpacing=t},setWordSpacing:function(t){this.current.wordSpacing=t},setHScale:function(t){this.current.textHScale=t/100},setLeading:function(t){this.current.leading=-t},setFont:function(t,e){var n=this.commonObjs.get(t),i=this.current;if(!n)throw new Error("Can't find font for ".concat(t));if(i.fontMatrix=n.fontMatrix?n.fontMatrix:r.FONT_IDENTITY_MATRIX,0!==i.fontMatrix[0]&&0!==i.fontMatrix[3]||(0,r.warn)("Invalid font matrix for font "+t),e<0?(e=-e,i.fontDirection=-1):i.fontDirection=1,this.current.font=n,this.current.fontSize=e,!n.isType3Font){var o=n.loadedName||"sans-serif",a="normal";n.black?a="900":n.bold&&(a="bold");var s=n.italic?"italic":"normal",u='"'.concat(o,'", ').concat(n.fallbackName),l=e;e<16?l=16:e>100&&(l=100),this.current.fontSizeScale=e/l,this.ctx.font="".concat(s," ").concat(a," ").concat(l,"px ").concat(u)}},setTextRenderingMode:function(t){this.current.textRenderingMode=t},setTextRise:function(t){this.current.textRise=t},moveText:function(t,e){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=e},setLeadingMoveText:function(t,e){this.setLeading(-e),this.moveText(t,e)},setTextMatrix:function(t,e,n,r,i,o){this.current.textMatrix=[t,e,n,r,i,o],this.current.textMatrixScale=Math.sqrt(t*t+e*e),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(t,e,n,i){var o,a=this.ctx,s=this.current,u=s.font,l=s.textRenderingMode,c=s.fontSize/s.fontSizeScale,h=l&r.TextRenderingMode.FILL_STROKE_MASK,f=!!(l&r.TextRenderingMode.ADD_TO_PATH_FLAG),d=s.patternFill&&!u.missingFile;(u.disableFontFace||f||d)&&(o=u.getPathGenerator(this.commonObjs,t)),u.disableFontFace||d?(a.save(),a.translate(e,n),a.beginPath(),o(a,c),i&&a.setTransform.apply(a,i),h!==r.TextRenderingMode.FILL&&h!==r.TextRenderingMode.FILL_STROKE||a.fill(),h!==r.TextRenderingMode.STROKE&&h!==r.TextRenderingMode.FILL_STROKE||a.stroke(),a.restore()):(h!==r.TextRenderingMode.FILL&&h!==r.TextRenderingMode.FILL_STROKE||a.fillText(t,e,n),h!==r.TextRenderingMode.STROKE&&h!==r.TextRenderingMode.FILL_STROKE||a.strokeText(t,e,n)),f&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:a.mozCurrentTransform,x:e,y:n,fontSize:c,addToPath:o})},get isFontSubpixelAAEnabled(){var t=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;t.scale(1.5,1),t.fillText("I",0,10);for(var e=t.getImageData(0,0,10,10).data,n=!1,i=3;i<e.length;i+=4)if(e[i]>0&&e[i]<255){n=!0;break}return(0,r.shadow)(this,"isFontSubpixelAAEnabled",n)},showText:function(t){var e=this.current,n=e.font;if(n.isType3Font)return this.showType3Text(t);var i=e.fontSize;if(0!==i){var o,a=this.ctx,s=e.fontSizeScale,u=e.charSpacing,l=e.wordSpacing,c=e.fontDirection,h=e.textHScale*c,f=t.length,d=n.vertical,p=d?1:-1,v=n.defaultVMetrics,g=i*e.fontMatrix[0],m=e.textRenderingMode===r.TextRenderingMode.FILL&&!n.disableFontFace&&!e.patternFill;if(a.save(),e.patternFill){a.save();var y=e.fillColor.getPattern(a,this);o=a.mozCurrentTransform,a.restore(),a.fillStyle=y}a.transform.apply(a,e.textMatrix),a.translate(e.x,e.y+e.textRise),c>0?a.scale(h,-1):a.scale(h,1);var b=e.lineWidth,_=e.textMatrixScale;if(0===_||0===b){var w=e.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;w!==r.TextRenderingMode.STROKE&&w!==r.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,b=.65*this.getSinglePixelWidth())}else b/=_;1!==s&&(a.scale(s,s),b/=s),a.lineWidth=b;var S,A=0;for(S=0;S<f;++S){var x=t[S];if((0,r.isNum)(x))A+=p*x*i/1e3;else{var k,C,P,T,R,E,O,L=!1,I=(x.isSpace?l:0)+u,M=x.fontChar,D=x.accent,N=x.width;if(d?(R=x.vmetric||v,E=-(E=x.vmetric?R[1]:.5*N)*g,O=R[2]*g,N=R?-R[0]:N,k=E/s,C=(A+O)/s):(k=A/s,C=0),n.remeasure&&N>0){var j=1e3*a.measureText(M).width/i*s;if(N<j&&this.isFontSubpixelAAEnabled){var F=N/j;L=!0,a.save(),a.scale(F,1),k/=F}else N!==j&&(k+=(N-j)/2e3*i/s)}(x.isInFont||n.missingFile)&&(m&&!D?a.fillText(M,k,C):(this.paintChar(M,k,C,o),D&&(P=k+D.offset.x/s,T=C-D.offset.y/s,this.paintChar(D.fontChar,P,T,o)))),A+=d?N*g-I*c:N*g+I*c,L&&a.restore()}}d?e.y-=A:e.x+=A*h,a.restore()}},showType3Text:function(t){var e,n,i,o,a=this.ctx,s=this.current,u=s.font,l=s.fontSize,c=s.fontDirection,h=u.vertical?1:-1,f=s.charSpacing,d=s.wordSpacing,p=s.textHScale*c,v=s.fontMatrix||r.FONT_IDENTITY_MATRIX,g=t.length;if(s.textRenderingMode!==r.TextRenderingMode.INVISIBLE&&0!==l){for(this._cachedGetSinglePixelWidth=null,a.save(),a.transform.apply(a,s.textMatrix),a.translate(s.x,s.y),a.scale(p,c),e=0;e<g;++e)if(n=t[e],(0,r.isNum)(n))o=h*n*l/1e3,this.ctx.translate(o,0),s.x+=o*p;else{var m=(n.isSpace?d:0)+f,y=u.charProcOperatorList[n.operatorListId];y?(this.processingType3=n,this.save(),a.scale(l,l),a.transform.apply(a,v),this.executeOperatorList(y),this.restore(),i=r.Util.applyTransform([n.width,0],v)[0]*l+m,a.translate(i,0),s.x+=i*p):(0,r.warn)('Type3 character "'.concat(n.operatorListId,'" is not available.'))}a.restore(),this.processingType3=null}},setCharWidth:function(t,e){},setCharWidthAndBounds:function(t,e,n,r,i,o){this.ctx.rect(n,r,i-n,o-r),this.clip(),this.endPath()},getColorN_Pattern:function(e){var n,r=this;if("TilingPattern"===e[0]){var o=e[1],a=this.baseTransform||this.ctx.mozCurrentTransform.slice(),s={createCanvasGraphics:function(e){return new t(e,r.commonObjs,r.objs,r.canvasFactory,r.webGLContext)}};n=new i.TilingPattern(e,o,this.ctx,s,a)}else n=(0,i.getShadingPatternFromIR)(e);return n},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(t,e,n){var i=r.Util.makeCssRgb(t,e,n);this.ctx.strokeStyle=i,this.current.strokeColor=i},setFillRGBColor:function(t,e,n){var i=r.Util.makeCssRgb(t,e,n);this.ctx.fillStyle=i,this.current.fillColor=i,this.current.patternFill=!1},shadingFill:function(t){var e=this.ctx;this.save();var n=(0,i.getShadingPatternFromIR)(t);e.fillStyle=n.getPattern(e,this,!0);var o=e.mozCurrentTransformInverse;if(o){var a=e.canvas,s=a.width,u=a.height,l=r.Util.applyTransform([0,0],o),c=r.Util.applyTransform([0,u],o),h=r.Util.applyTransform([s,0],o),f=r.Util.applyTransform([s,u],o),d=Math.min(l[0],c[0],h[0],f[0]),p=Math.min(l[1],c[1],h[1],f[1]),v=Math.max(l[0],c[0],h[0],f[0]),g=Math.max(l[1],c[1],h[1],f[1]);this.ctx.fillRect(d,p,v-d,g-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,r.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,r.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(t,e){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(t)&&6===t.length&&this.transform.apply(this,t),this.baseTransform=this.ctx.mozCurrentTransform,e){var n=e[2]-e[0],r=e[3]-e[1];this.ctx.rect(e[0],e[1],n,r),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(t){this.save();var e=this.ctx;t.isolated||(0,r.info)("TODO: Support non-isolated groups."),t.knockout&&(0,r.warn)("Knockout groups not supported.");var n=e.mozCurrentTransform;if(t.matrix&&e.transform.apply(e,t.matrix),!t.bbox)throw new Error("Bounding box is required.");var i=r.Util.getAxialAlignedBoundingBox(t.bbox,e.mozCurrentTransform),o=[0,0,e.canvas.width,e.canvas.height];i=r.Util.intersect(i,o)||[0,0,0,0];var s=Math.floor(i[0]),u=Math.floor(i[1]),l=Math.max(Math.ceil(i[2])-s,1),c=Math.max(Math.ceil(i[3])-u,1),h=1,f=1;l>4096&&(h=l/4096,l=4096),c>4096&&(f=c/4096,c=4096);var d="groupAt"+this.groupLevel;t.smask&&(d+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(d,l,c,!0),v=p.context;v.scale(1/h,1/f),v.translate(-s,-u),v.transform.apply(v,n),t.smask?this.smaskStack.push({canvas:p.canvas,context:v,offsetX:s,offsetY:u,scaleX:h,scaleY:f,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(e.setTransform(1,0,0,1,0,0),e.translate(s,u),e.scale(h,f)),a(e,v),this.ctx=v,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(e),this.groupLevel++,this.current.activeSMask=null},endGroup:function(t){this.groupLevel--;var e=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,t.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(e.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(t,e,n){if(this.save(),c(this.ctx),this.current=new l,Array.isArray(t)&&4===t.length){var r=t[2]-t[0],i=t[3]-t[1];this.ctx.rect(t[0],t[1],r,i),this.clip(),this.endPath()}this.transform.apply(this,e),this.transform.apply(this,n)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(t){var e=this.ctx,r=t.width,i=t.height,o=this.current.fillColor,a=this.current.patternFill,s=this.processingType3;if(s&&void 0===s.compiled&&(s.compiled=r<=1e3&&i<=1e3?function(t){var e,n,r,i,o=t.width,a=t.height,s=o+1,u=new Uint8Array(s*(a+1)),l=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),c=o+7&-8,h=t.data,f=new Uint8Array(c*a),d=0;for(e=0,i=h.length;e<i;e++)for(var p=128,v=h[e];p>0;)f[d++]=v&p?0:255,p>>=1;var g=0;for(0!==f[d=0]&&(u[0]=1,++g),n=1;n<o;n++)f[d]!==f[d+1]&&(u[n]=f[d]?2:1,++g),d++;for(0!==f[d]&&(u[n]=2,++g),e=1;e<a;e++){r=e*s,f[(d=e*c)-c]!==f[d]&&(u[r]=f[d]?1:8,++g);var m=(f[d]?4:0)+(f[d-c]?8:0);for(n=1;n<o;n++)l[m=(m>>2)+(f[d+1]?4:0)+(f[d-c+1]?8:0)]&&(u[r+n]=l[m],++g),d++;if(f[d-c]!==f[d]&&(u[r+n]=f[d]?2:4,++g),g>1e3)return null}for(r=e*s,0!==f[d=c*(a-1)]&&(u[r]=8,++g),n=1;n<o;n++)f[d]!==f[d+1]&&(u[r+n]=f[d]?4:8,++g),d++;if(0!==f[d]&&(u[r+n]=4,++g),g>1e3)return null;var y=new Int32Array([0,s,-1,0,-s,0,0,0,1]),b=[];for(e=0;g&&e<=a;e++){for(var _=e*s,w=_+o;_<w&&!u[_];)_++;if(_!==w){var S,A=[_%s,e],x=u[_],k=_;do{var C=y[x];do{_+=C}while(!u[_]);5!==(S=u[_])&&10!==S?(x=S,u[_]=0):(x=S&51*x>>4,u[_]&=x>>2|x<<2),A.push(_%s),A.push(_/s|0),u[_]||--g}while(k!==_);b.push(A),--e}}return function(t){t.save(),t.scale(1/o,-1/a),t.translate(0,-a),t.beginPath();for(var e=0,n=b.length;e<n;e++){var r=b[e];t.moveTo(r[0],r[1]);for(var i=2,s=r.length;i<s;i+=2)t.lineTo(r[i],r[i+1])}t.fill(),t.beginPath(),t.restore()}}({data:t.data,width:r,height:i}):null),s&&s.compiled)s.compiled(e);else{var u=this.cachedCanvases.getCanvas("maskCanvas",r,i),l=u.context;l.save(),n(l,t),l.globalCompositeOperation="source-in",l.fillStyle=a?o.getPattern(l,this):o,l.fillRect(0,0,r,i),l.restore(),this.paintInlineImageXObject(u.canvas)}},paintImageMaskXObjectRepeat:function(t,e,r,i){var o=t.width,a=t.height,s=this.current.fillColor,u=this.current.patternFill,l=this.cachedCanvases.getCanvas("maskCanvas",o,a),c=l.context;c.save(),n(c,t),c.globalCompositeOperation="source-in",c.fillStyle=u?s.getPattern(c,this):s,c.fillRect(0,0,o,a),c.restore();for(var h=this.ctx,f=0,d=i.length;f<d;f+=2)h.save(),h.transform(e,0,0,r,i[f],i[f+1]),h.scale(1,-1),h.drawImage(l.canvas,0,0,o,a,0,-1,1,1),h.restore()},paintImageMaskXObjectGroup:function(t){for(var e=this.ctx,r=this.current.fillColor,i=this.current.patternFill,o=0,a=t.length;o<a;o++){var s=t[o],u=s.width,l=s.height,c=this.cachedCanvases.getCanvas("maskCanvas",u,l),h=c.context;h.save(),n(h,s),h.globalCompositeOperation="source-in",h.fillStyle=i?r.getPattern(h,this):r,h.fillRect(0,0,u,l),h.restore(),e.save(),e.transform.apply(e,s.transform),e.scale(1,-1),e.drawImage(c.canvas,0,0,u,l,0,-1,1,1),e.restore()}},paintImageXObject:function(t){var e=t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t);e?this.paintInlineImageXObject(e):(0,r.warn)("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(t,e,n,i){var o=t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t);if(o){for(var a=o.width,s=o.height,u=[],l=0,c=i.length;l<c;l+=2)u.push({transform:[e,0,0,n,i[l],i[l+1]],x:0,y:0,w:a,h:s});this.paintInlineImageXObjectGroup(o,u)}else(0,r.warn)("Dependent image isn't ready yet")},paintInlineImageXObject:function(t){var n=t.width,r=t.height,i=this.ctx;this.save(),i.scale(1/n,-1/r);var o,a,s=i.mozCurrentTransformInverse,u=s[0],l=s[1],c=Math.max(Math.sqrt(u*u+l*l),1),h=s[2],f=s[3],d=Math.max(Math.sqrt(h*h+f*f),1);if("function"==typeof HTMLElement&&t instanceof HTMLElement||!t.data)o=t;else{var p=(a=this.cachedCanvases.getCanvas("inlineImage",n,r)).context;e(p,t),o=a.canvas}for(var v=n,g=r,m="prescale1";c>2&&v>1||d>2&&g>1;){var y=v,b=g;c>2&&v>1&&(c/=v/(y=Math.ceil(v/2))),d>2&&g>1&&(d/=g/(b=Math.ceil(g/2))),(p=(a=this.cachedCanvases.getCanvas(m,y,b)).context).clearRect(0,0,y,b),p.drawImage(o,0,0,v,g,0,0,y,b),o=a.canvas,v=y,g=b,m="prescale1"===m?"prescale2":"prescale1"}if(i.drawImage(o,0,0,v,g,0,-r,n,r),this.imageLayer){var _=this.getCanvasPosition(0,-r);this.imageLayer.appendImage({imgData:t,left:_[0],top:_[1],width:n/s[0],height:r/s[3]})}this.restore()},paintInlineImageXObjectGroup:function(t,n){var r=this.ctx,i=t.width,o=t.height,a=this.cachedCanvases.getCanvas("inlineImage",i,o);e(a.context,t);for(var s=0,u=n.length;s<u;s++){var l=n[s];if(r.save(),r.transform.apply(r,l.transform),r.scale(1,-1),r.drawImage(a.canvas,l.x,l.y,l.w,l.h,0,-1,1,1),this.imageLayer){var c=this.getCanvasPosition(l.x,l.y);this.imageLayer.appendImage({imgData:t,left:c[0],top:c[1],width:i,height:o})}r.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,r.warn)("Unsupported 'paintXObject' command.")},markPoint:function(t){},markPointProps:function(t,e){},beginMarkedContent:function(t){},beginMarkedContentProps:function(t,e){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var t=this.ctx;this.pendingClip&&(this.pendingClip===y?t.clip("evenodd"):t.clip(),this.pendingClip=null),t.beginPath()},getSinglePixelWidth:function(t){if(null===this._cachedGetSinglePixelWidth){var e=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(e[0]*e[0]+e[1]*e[1],e[2]*e[2]+e[3]*e[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(t,e){var n=this.ctx.mozCurrentTransform;return[n[0]*t+n[2]*e+n[4],n[1]*t+n[3]*e+n[5]]}},r.OPS)t.prototype[r.OPS[b]]=t.prototype[b];return t}();e.CanvasGraphics=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShadingPatternFromIR=function(t){var e=i[t[0]];if(!e)throw new Error("Unknown IR type: ".concat(t[0]));return e.fromIR(t)},e.TilingPattern=void 0;var r=n(5),i={};function o(t,e){if(e&&"undefined"!=typeof Path2D){var n=e[2]-e[0],r=e[3]-e[1],i=new Path2D;i.rect(e[0],e[1],n,r),t.clip(i)}}i.RadialAxial={fromIR:function(t){var e=t[1],n=t[2],r=t[3],i=t[4],a=t[5],s=t[6],u=t[7];return{type:"Pattern",getPattern:function(t){var l;o(t,n),"axial"===e?l=t.createLinearGradient(i[0],i[1],a[0],a[1]):"radial"===e&&(l=t.createRadialGradient(i[0],i[1],s,a[0],a[1],u));for(var c=0,h=r.length;c<h;++c){var f=r[c];l.addColorStop(f[0],f[1])}return l}}}};var a=function(){function t(t,e,n,r,i,o,a,s){var u,l=e.coords,c=e.colors,h=t.data,f=4*t.width;l[n+1]>l[r+1]&&(u=n,n=r,r=u,u=o,o=a,a=u),l[r+1]>l[i+1]&&(u=r,r=i,i=u,u=a,a=s,s=u),l[n+1]>l[r+1]&&(u=n,n=r,r=u,u=o,o=a,a=u);var d=(l[n]+e.offsetX)*e.scaleX,p=(l[n+1]+e.offsetY)*e.scaleY,v=(l[r]+e.offsetX)*e.scaleX,g=(l[r+1]+e.offsetY)*e.scaleY,m=(l[i]+e.offsetX)*e.scaleX,y=(l[i+1]+e.offsetY)*e.scaleY;if(!(p>=y))for(var b,_,w,S,A,x,k,C,P=c[o],T=c[o+1],R=c[o+2],E=c[a],O=c[a+1],L=c[a+2],I=c[s],M=c[s+1],D=c[s+2],N=Math.round(p),j=Math.round(y),F=N;F<=j;F++){if(F<g){var B=void 0;b=d-(d-v)*(B=F<p?0:p===g?1:(p-F)/(p-g)),_=P-(P-E)*B,w=T-(T-O)*B,S=R-(R-L)*B}else{var z=void 0;b=v-(v-m)*(z=F>y?1:g===y?0:(g-F)/(g-y)),_=E-(E-I)*z,w=O-(O-M)*z,S=L-(L-D)*z}var U=void 0;A=d-(d-m)*(U=F<p?0:F>y?1:(p-F)/(p-y)),x=P-(P-I)*U,k=T-(T-M)*U,C=R-(R-D)*U;for(var W=Math.round(Math.min(b,A)),V=Math.round(Math.max(b,A)),q=f*F+4*W,H=W;H<=V;H++)(U=(b-H)/(b-A))<0?U=0:U>1&&(U=1),h[q++]=_-(_-x)*U|0,h[q++]=w-(w-k)*U|0,h[q++]=S-(S-C)*U|0,h[q++]=255}}function e(e,n,r){var i,o,a=n.coords,s=n.colors;switch(n.type){case"lattice":var u=n.verticesPerRow,l=Math.floor(a.length/u)-1,c=u-1;for(i=0;i<l;i++)for(var h=i*u,f=0;f<c;f++,h++)t(e,r,a[h],a[h+1],a[h+u],s[h],s[h+1],s[h+u]),t(e,r,a[h+u+1],a[h+1],a[h+u],s[h+u+1],s[h+1],s[h+u]);break;case"triangles":for(i=0,o=a.length;i<o;i+=3)t(e,r,a[i],a[i+1],a[i+2],s[i],s[i+1],s[i+2]);break;default:throw new Error("illegal figure")}}return function(t,n,r,i,o,a,s,u){var l,c,h,f,d=Math.floor(t[0]),p=Math.floor(t[1]),v=Math.ceil(t[2])-d,g=Math.ceil(t[3])-p,m=Math.min(Math.ceil(Math.abs(v*n[0]*1.1)),3e3),y=Math.min(Math.ceil(Math.abs(g*n[1]*1.1)),3e3),b=v/m,_=g/y,w={coords:r,colors:i,offsetX:-d,offsetY:-p,scaleX:1/b,scaleY:1/_},S=m+4,A=y+4;if(u.isEnabled)l=u.drawFigures({width:m,height:y,backgroundColor:a,figures:o,context:w}),(c=s.getCanvas("mesh",S,A,!1)).context.drawImage(l,2,2),l=c.canvas;else{var x=(c=s.getCanvas("mesh",S,A,!1)).context,k=x.createImageData(m,y);if(a){var C=k.data;for(h=0,f=C.length;h<f;h+=4)C[h]=a[0],C[h+1]=a[1],C[h+2]=a[2],C[h+3]=255}for(h=0;h<o.length;h++)e(k,o[h],w);x.putImageData(k,2,2),l=c.canvas}return{canvas:l,offsetX:d-2*b,offsetY:p-2*_,scaleX:b,scaleY:_}}}();i.Mesh={fromIR:function(t){var e=t[2],n=t[3],i=t[4],s=t[5],u=t[6],l=t[7],c=t[8];return{type:"Pattern",getPattern:function(t,h,f){var d;if(o(t,l),f)d=r.Util.singularValueDecompose2dScale(t.mozCurrentTransform);else if(d=r.Util.singularValueDecompose2dScale(h.baseTransform),u){var p=r.Util.singularValueDecompose2dScale(u);d=[d[0]*p[0],d[1]*p[1]]}var v=a(s,d,e,n,i,f?null:c,h.cachedCanvases,h.webGLContext);return f||(t.setTransform.apply(t,h.baseTransform),u&&t.transform.apply(t,u)),t.translate(v.offsetX,v.offsetY),t.scale(v.scaleX,v.scaleY),t.createPattern(v.canvas,"no-repeat")}}}},i.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var s=function(){var t=1,e=2;function n(t,e,n,r,i){this.operatorList=t[2],this.matrix=t[3]||[1,0,0,1,0,0],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=e,this.canvasGraphicsFactory=r,this.baseTransform=i,this.type="Pattern",this.ctx=n}return n.prototype={createPatternCanvas:function(t){var e=this.operatorList,n=this.bbox,i=this.xstep,o=this.ystep,a=this.paintType,s=this.tilingType,u=this.color,l=this.canvasGraphicsFactory;(0,r.info)("TilingType: "+s);var c=n[0],h=n[1],f=n[2],d=n[3],p=r.Util.singularValueDecompose2dScale(this.matrix),v=r.Util.singularValueDecompose2dScale(this.baseTransform),g=[p[0]*v[0],p[1]*v[1]],m=this.getSizeAndScale(i,this.ctx.canvas.width,g[0]),y=this.getSizeAndScale(o,this.ctx.canvas.height,g[1]),b=t.cachedCanvases.getCanvas("pattern",m.size,y.size,!0),_=b.context,w=l.createCanvasGraphics(_);return w.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(w,a,u),w.transform(m.scale,0,0,y.scale,0,0),w.transform(1,0,0,1,-c,-h),this.clipBbox(w,n,c,h,f,d),w.executeOperatorList(e),this.ctx.transform(1,0,0,1,c,h),this.ctx.scale(1/m.scale,1/y.scale),b.canvas},getSizeAndScale:function(t,e,n){t=Math.abs(t);var r=Math.max(3e3,e),i=Math.ceil(t*n);return i>=r?i=r:n=i/t,{scale:n,size:i}},clipBbox:function(t,e,n,r,i,o){if(Array.isArray(e)&&4===e.length){var a=i-n,s=o-r;t.ctx.rect(n,r,a,s),t.clip(),t.endPath()}},setFillAndStrokeStyleToContext:function(n,i,o){var a=n.ctx,s=n.current;switch(i){case t:var u=this.ctx;a.fillStyle=u.fillStyle,a.strokeStyle=u.strokeStyle,s.fillColor=u.fillStyle,s.strokeColor=u.strokeStyle;break;case e:var l=r.Util.makeCssRgb(o[0],o[1],o[2]);a.fillStyle=l,a.strokeStyle=l,s.fillColor=l,s.strokeColor=l;break;default:throw new r.FormatError("Unsupported paint type: ".concat(i))}},getPattern:function(t,e){(t=this.ctx).setTransform.apply(t,this.baseTransform),t.transform.apply(t,this.matrix);var n=this.createPatternCanvas(e);return t.createPattern(n,"repeat")}},n}();e.TilingPattern=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalWorkerOptions=void 0;var r=Object.create(null);e.GlobalWorkerOptions=r,r.workerPort=void 0===r.workerPort?null:r.workerPort,r.workerSrc=void 0===r.workerSrc?"":r.workerSrc},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageHandler=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},o=n(5);function a(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l=1,c=2,h=1,f=2,d=3,p=4,v=5,g=6,m=7,y=8;function b(t){if("object"!==u(t)||null===t)return t;switch(t.name){case"AbortException":return new o.AbortException(t.message);case"MissingPDFException":return new o.MissingPDFException(t.message);case"UnexpectedResponseException":return new o.UnexpectedResponseException(t.message,t.status);case"UnknownErrorException":return new o.UnknownErrorException(t.message,t.details);default:return new o.UnknownErrorException(t.message,t.toString())}}var _=function(){function t(e,n,r){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sourceName=e,this.targetName=n,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(t){var e=t.data;if(e.targetName===i.sourceName)if(e.stream)i._processStreamMessage(e);else if(e.callback){var n=e.callbackId,o=i.callbackCapabilities[n];if(!o)throw new Error("Cannot resolve callback ".concat(n));if(delete i.callbackCapabilities[n],e.callback===l)o.resolve(e.data);else{if(e.callback!==c)throw new Error("Unexpected callback case");o.reject(b(e.reason))}}else{var a=i.actionHandler[e.action];if(!a)throw new Error("Unknown action from worker: ".concat(e.action));if(e.callbackId){var s=i.sourceName,u=e.sourceName;new Promise((function(t){t(a(e.data))})).then((function(t){r.postMessage({sourceName:s,targetName:u,callback:l,callbackId:e.callbackId,data:t})}),(function(t){r.postMessage({sourceName:s,targetName:u,callback:c,callbackId:e.callbackId,reason:b(t)})}))}else e.streamId?i._createStreamSink(e):a(e.data)}},r.addEventListener("message",this._onComObjOnMessage)}var e,n,r,u,_;return e=t,(n=[{key:"on",value:function(t,e){var n=this.actionHandler;if(n[t])throw new Error('There is already an actionName called "'.concat(t,'"'));n[t]=e}},{key:"send",value:function(t,e,n){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},n)}},{key:"sendWithPromise",value:function(t,e,n){var r=this.callbackId++,i=(0,o.createPromiseCapability)();this.callbackCapabilities[r]=i;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:r,data:e},n)}catch(t){i.reject(t)}return i.promise}},{key:"sendWithStream",value:function(t,e,n,r){var i=this,a=this.streamId++,s=this.sourceName,u=this.targetName,l=this.comObj;return new ReadableStream({start:function(n){var l=(0,o.createPromiseCapability)();return i.streamControllers[a]={controller:n,startCall:l,pullCall:null,cancelCall:null,isClosed:!1},i._postMessage({sourceName:s,targetName:u,action:t,streamId:a,data:e,desiredSize:n.desiredSize},r),l.promise},pull:function(t){var e=(0,o.createPromiseCapability)();return i.streamControllers[a].pullCall=e,l.postMessage({sourceName:s,targetName:u,stream:g,streamId:a,desiredSize:t.desiredSize}),e.promise},cancel:function(t){(0,o.assert)(t instanceof Error,"cancel must have a valid reason");var e=(0,o.createPromiseCapability)();return i.streamControllers[a].cancelCall=e,i.streamControllers[a].isClosed=!0,l.postMessage({sourceName:s,targetName:u,stream:h,streamId:a,reason:b(t)}),e.promise}},n)}},{key:"_createStreamSink",value:function(t){var e=this,n=this.actionHandler[t.action],r=t.streamId,i=this.sourceName,a=t.sourceName,s=this.comObj,u={enqueue:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var u=this.desiredSize;this.desiredSize-=n,u>0&&this.desiredSize<=0&&(this.sinkCapability=(0,o.createPromiseCapability)(),this.ready=this.sinkCapability.promise),e._postMessage({sourceName:i,targetName:a,stream:p,streamId:r,chunk:t},s)}},close:function(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:a,stream:d,streamId:r}),delete e.streamSinks[r])},error:function(t){(0,o.assert)(t instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:a,stream:v,streamId:r,reason:b(t)}))},sinkCapability:(0,o.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[r]=u,new Promise((function(e){e(n(t.data,u))})).then((function(){s.postMessage({sourceName:i,targetName:a,stream:y,streamId:r,success:!0})}),(function(t){s.postMessage({sourceName:i,targetName:a,stream:y,streamId:r,reason:b(t)})}))}},{key:"_processStreamMessage",value:function(t){var e=t.streamId,n=this.sourceName,r=t.sourceName,i=this.comObj;switch(t.stream){case y:t.success?this.streamControllers[e].startCall.resolve():this.streamControllers[e].startCall.reject(b(t.reason));break;case m:t.success?this.streamControllers[e].pullCall.resolve():this.streamControllers[e].pullCall.reject(b(t.reason));break;case g:if(!this.streamSinks[e]){i.postMessage({sourceName:n,targetName:r,stream:m,streamId:e,success:!0});break}this.streamSinks[e].desiredSize<=0&&t.desiredSize>0&&this.streamSinks[e].sinkCapability.resolve(),this.streamSinks[e].desiredSize=t.desiredSize;var a=this.streamSinks[t.streamId].onPull;new Promise((function(t){t(a&&a())})).then((function(){i.postMessage({sourceName:n,targetName:r,stream:m,streamId:e,success:!0})}),(function(t){i.postMessage({sourceName:n,targetName:r,stream:m,streamId:e,reason:b(t)})}));break;case p:if((0,o.assert)(this.streamControllers[e],"enqueue should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].controller.enqueue(t.chunk);break;case d:if((0,o.assert)(this.streamControllers[e],"close should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].isClosed=!0,this.streamControllers[e].controller.close(),this._deleteStreamController(e);break;case v:(0,o.assert)(this.streamControllers[e],"error should have stream controller"),this.streamControllers[e].controller.error(b(t.reason)),this._deleteStreamController(e);break;case f:t.success?this.streamControllers[e].cancelCall.resolve():this.streamControllers[e].cancelCall.reject(b(t.reason)),this._deleteStreamController(e);break;case h:if(!this.streamSinks[e])break;var s=this.streamSinks[t.streamId].onCancel;new Promise((function(e){e(s&&s(b(t.reason)))})).then((function(){i.postMessage({sourceName:n,targetName:r,stream:f,streamId:e,success:!0})}),(function(t){i.postMessage({sourceName:n,targetName:r,stream:f,streamId:e,reason:b(t)})})),this.streamSinks[e].sinkCapability.reject(b(t.reason)),this.streamSinks[e].isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:(u=i.default.mark((function t(e){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.allSettled([this.streamControllers[e].startCall,this.streamControllers[e].pullCall,this.streamControllers[e].cancelCall].map((function(t){return t&&t.promise})));case 2:delete this.streamControllers[e];case 3:case"end":return t.stop()}}),t,this)})),_=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=u.apply(t,e);function o(t){a(i,n,r,o,s,"next",t)}function s(t){a(i,n,r,o,s,"throw",t)}o(void 0)}))},function(t){return _.apply(this,arguments)})},{key:"_postMessage",value:function(t,e){e&&this.postMessageTransfers?this.comObj.postMessage(t,e):this.comObj.postMessage(t)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}])&&s(e.prototype,n),r&&s(e,r),t}();e.MessageHandler=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=void 0;var r=n(5),i=n(206);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(0,r.assert)("string"==typeof e,"Metadata: input is not a string"),e=this._repair(e);var n=(new i.SimpleXMLParser).parseFromString(e);this._metadataMap=new Map,n&&this._parse(n)}var e,n,s;return e=t,(n=[{key:"_repair",value:function(t){return t.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(t,e){for(var n=e.replace(/\\([0-3])([0-7])([0-7])/g,(function(t,e,n,r){return String.fromCharCode(64*e+8*n+1*r)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(t,e){switch(e){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(e," isn't defined."))})),r="",i=0,o=n.length;i<o;i+=2){var a=256*n.charCodeAt(i)+n.charCodeAt(i+1);r+=a>=32&&a<127&&60!==a&&62!==a&&38!==a?String.fromCharCode(a):"&#x"+(65536+a).toString(16).substring(1)+";"}return">"+r}))}},{key:"_parse",value:function(t){var e=t.documentElement;if("rdf:rdf"!==e.nodeName.toLowerCase())for(e=e.firstChild;e&&"rdf:rdf"!==e.nodeName.toLowerCase();)e=e.nextSibling;var n=e?e.nodeName.toLowerCase():null;if(e&&"rdf:rdf"===n&&e.hasChildNodes())for(var r=e.childNodes,i=0,o=r.length;i<o;i++){var a=r[i];if("rdf:description"===a.nodeName.toLowerCase())for(var s=0,u=a.childNodes.length;s<u;s++)if("#text"!==a.childNodes[s].nodeName.toLowerCase()){var l=a.childNodes[s],c=l.nodeName.toLowerCase();this._metadataMap.set(c,l.textContent.trim())}}}},{key:"get",value:function(t){return this._metadataMap.has(t)?this._metadataMap.get(t):null}},{key:"getAll",value:function(){var t,e=Object.create(null),n=function(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}(this._metadataMap);try{for(n.s();!(t=n.n()).done;){var r=o(t.value,2),i=r[0],s=r[1];e[i]=s}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"has",value:function(t){return this._metadataMap.has(t)}}])&&u(e.prototype,n),s&&u(e,s),t}();e.Metadata=l},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleXMLParser=void 0;var p=0,v=-2,g=-3,m=-4,y=-5,b=-6,_=-9;function w(t,e){var n=t[e];return" "===n||"\n"===n||"\r"===n||"\t"===n}var S=function(){function t(){h(this,t)}return d(t,[{key:"_resolveEntities",value:function(t){var e=this;return t.replace(/&([^;]+);/g,(function(t,n){if("#x"===n.substring(0,2))return String.fromCharCode(parseInt(n.substring(2),16));if("#"===n.substring(0,1))return String.fromCharCode(parseInt(n.substring(1),10));switch(n){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return e.onResolveEntity(n)}))}},{key:"_parseContent",value:function(t,e){var n=[],r=e;function i(){for(;r<t.length&&w(t,r);)++r}for(;r<t.length&&!w(t,r)&&">"!==t[r]&&"/"!==t[r];)++r;var o=t.substring(e,r);for(i();r<t.length&&">"!==t[r]&&"/"!==t[r]&&"?"!==t[r];){i();for(var a,s="";r<t.length&&!w(t,r)&&"="!==t[r];)s+=t[r],++r;if(i(),"="!==t[r])return null;++r,i();var u=t[r];if('"'!==u&&"'"!==u)return null;var l=t.indexOf(u,++r);if(l<0)return null;a=t.substring(r,l),n.push({name:s,value:this._resolveEntities(a)}),r=l+1,i()}return{name:o,attributes:n,parsed:r-e}}},{key:"_parseProcessingInstruction",value:function(t,e){for(var n=e;n<t.length&&!w(t,n)&&">"!==t[n]&&"/"!==t[n];)++n;var r=t.substring(e,n);!function(){for(;n<t.length&&w(t,n);)++n}();for(var i=n;n<t.length&&("?"!==t[n]||">"!==t[n+1]);)++n;return{name:r,value:t.substring(i,n),parsed:n-e}}},{key:"parseXml",value:function(t){for(var e=0;e<t.length;){var n=e;if("<"===t[e]){var r=void 0;switch(t[++n]){case"/":if(++n,(r=t.indexOf(">",n))<0)return void this.onError(_);this.onEndElement(t.substring(n,r)),n=r+1;break;case"?":++n;var i=this._parseProcessingInstruction(t,n);if("?>"!==t.substring(n+i.parsed,n+i.parsed+2))return void this.onError(g);this.onPi(i.name,i.value),n+=i.parsed+2;break;case"!":if("--"===t.substring(n+1,n+3)){if((r=t.indexOf("--\x3e",n+3))<0)return void this.onError(y);this.onComment(t.substring(n+3,r)),n=r+3}else if("[CDATA["===t.substring(n+1,n+8)){if((r=t.indexOf("]]>",n+8))<0)return void this.onError(v);this.onCdata(t.substring(n+8,r)),n=r+3}else{if("DOCTYPE"!==t.substring(n+1,n+8))return void this.onError(b);var o=t.indexOf("[",n+8),a=!1;if((r=t.indexOf(">",n+8))<0)return void this.onError(m);if(o>0&&r>o){if((r=t.indexOf("]>",n+8))<0)return void this.onError(m);a=!0}var s=t.substring(n+8,r+(a?1:0));this.onDoctype(s),n=r+(a?2:1)}break;default:var u=this._parseContent(t,n);if(null===u)return void this.onError(b);var l=!1;if("/>"===t.substring(n+u.parsed,n+u.parsed+2))l=!0;else if(">"!==t.substring(n+u.parsed,n+u.parsed+1))return void this.onError(_);this.onBeginElement(u.name,u.attributes,l),n+=u.parsed+(l?2:1)}}else{for(;n<t.length&&"<"!==t[n];)n++;var c=t.substring(e,n);this.onText(this._resolveEntities(c))}e=n}}},{key:"onResolveEntity",value:function(t){return"&".concat(t,";")}},{key:"onPi",value:function(t,e){}},{key:"onComment",value:function(t){}},{key:"onCdata",value:function(t){}},{key:"onDoctype",value:function(t){}},{key:"onText",value:function(t){}},{key:"onBeginElement",value:function(t,e,n){}},{key:"onEndElement",value:function(t){}},{key:"onError",value:function(t){}}]),t}(),A=function(){function t(e,n){h(this,t),this.nodeName=e,this.nodeValue=n,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return d(t,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var t=this.parentNode.childNodes;if(t){var e=t.indexOf(this);if(-1!==e)return t[e+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map((function(t){return t.textContent})).join(""):this.nodeValue||""}}]),t}(),x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(n,t);var e=u(n);function n(){var t;return h(this,n),(t=e.call(this))._currentFragment=null,t._stack=null,t._errorCode=p,t}return d(n,[{key:"parseFromString",value:function(t){if(this._currentFragment=[],this._stack=[],this._errorCode=p,this.parseXml(t),this._errorCode===p){var e=i(this._currentFragment,1)[0];if(e)return{documentElement:e}}}},{key:"onResolveEntity",value:function(t){switch(t){case"apos":return"'"}return a(c(n.prototype),"onResolveEntity",this).call(this,t)}},{key:"onText",value:function(t){if(!function(t){for(var e=0,n=t.length;e<n;e++)if(!w(t,e))return!1;return!0}(t)){var e=new A("#text",t);this._currentFragment.push(e)}}},{key:"onCdata",value:function(t){var e=new A("#text",t);this._currentFragment.push(e)}},{key:"onBeginElement",value:function(t,e,n){var r=new A(t);r.childNodes=[],this._currentFragment.push(r),n||(this._stack.push(this._currentFragment),this._currentFragment=r.childNodes)}},{key:"onEndElement",value:function(t){this._currentFragment=this._stack.pop()||[];var e=this._currentFragment[this._currentFragment.length-1];if(e)for(var n=0,r=e.childNodes.length;n<r;n++)e.childNodes[n].parentNode=e}},{key:"onError",value:function(t){this._errorCode=t}}]),n}(S);e.SimpleXMLParser=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PDFDataTransportStream=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},o=n(5);function a(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function s(t){a(o,r,i,s,u,"next",t)}function u(t){a(o,r,i,s,u,"throw",t)}s(void 0)}))}}function u(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}var d=function(){function t(e,n){var r=this;c(this,t),(0,o.assert)(n,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=e.progressiveDone||!1;var i=e.initialData;if(i&&i.length>0){var a=new Uint8Array(i).buffer;this._queuedChunks.push(a)}this._pdfDataRangeTransport=n,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(t,e){r._onReceiveData({begin:t,chunk:e})})),this._pdfDataRangeTransport.addProgressListener((function(t,e){r._onProgress({loaded:t,total:e})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(t){r._onReceiveData({chunk:t})})),this._pdfDataRangeTransport.addProgressiveDoneListener((function(){r._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}return f(t,[{key:"_onReceiveData",value:function(t){var e=new Uint8Array(t.chunk).buffer;if(void 0===t.begin)this._fullRequestReader?this._fullRequestReader._enqueue(e):this._queuedChunks.push(e);else{var n=this._rangeReaders.some((function(n){return n._begin===t.begin&&(n._enqueue(e),!0)}));(0,o.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_onProgress",value:function(t){if(void 0===t.total){var e=this._rangeReaders[0];e&&e.onProgress&&e.onProgress({loaded:t.loaded})}else{var n=this._fullRequestReader;n&&n.onProgress&&n.onProgress({loaded:t.loaded,total:t.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(t){var e=this._rangeReaders.indexOf(t);e>=0&&this._rangeReaders.splice(e,1)}},{key:"getFullReader",value:function(){(0,o.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var t=this._queuedChunks;return this._queuedChunks=null,new p(this,t,this._progressiveDone)}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var n=new v(this,t,e);return this._pdfDataRangeTransport.requestDataRange(t,e),this._rangeReaders.push(n),n}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeReaders.slice(0).forEach((function(e){e.cancel(t)})),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFDataTransportStream=d;var p=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];c(this,t),this._stream=e,this._done=r||!1,this._filename=null,this._queuedChunks=n||[],this._loaded=0;var i,o=u(this._queuedChunks);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._loaded+=a.byteLength}}catch(t){o.e(t)}finally{o.f()}this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}var e;return f(t,[{key:"_enqueue",value:function(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}},{key:"read",value:(e=s(i.default.mark((function t(){var e,n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this._queuedChunks.length>0)){t.next=3;break}return e=this._queuedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 3:if(!this._done){t.next=5;break}return t.abrupt("return",{value:void 0,done:!0});case 5:return n=(0,o.createPromiseCapability)(),this._requests.push(n),t.abrupt("return",n.promise);case 8:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),t}(),v=function(){function t(e,n,r){c(this,t),this._stream=e,this._begin=n,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}var e;return f(t,[{key:"_enqueue",value:function(t){this._done||(0===this._requests.length?this._queuedChunk=t:(this._requests.shift().resolve({value:t,done:!1}),this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}},{key:"read",value:(e=s(i.default.mark((function t(){var e,n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._queuedChunk){t.next=4;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 4:if(!this._done){t.next=6;break}return t.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,o.createPromiseCapability)(),this._requests.push(n),t.abrupt("return",n.promise);case 9:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebGLContext=void 0;var r=n(5);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=function(){function t(e){var n=e.enable,r=void 0!==n&&n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._enabled=!0===r}var e,n,o;return e=t,(n=[{key:"composeSMask",value:function(t){var e=t.layer,n=t.mask,r=t.properties;return a.composeSMask(e,n,r)}},{key:"drawFigures",value:function(t){var e=t.width,n=t.height,r=t.backgroundColor,i=t.figures,o=t.context;return a.drawFigures(e,n,r,i,o)}},{key:"clear",value:function(){a.cleanup()}},{key:"isEnabled",get:function(){var t=this._enabled;return t&&(t=a.tryInitGL()),(0,r.shadow)(this,"isEnabled",t)}}])&&i(e.prototype,n),o&&i(e,o),t}();e.WebGLContext=o;var a=function(){function t(t,e,n){var r=t.createShader(n);if(t.shaderSource(r,e),t.compileShader(r),!t.getShaderParameter(r,t.COMPILE_STATUS)){var i=t.getShaderInfoLog(r);throw new Error("Error during shader compilation: "+i)}return r}function e(e,n){return t(e,n,e.VERTEX_SHADER)}function n(e,n){return t(e,n,e.FRAGMENT_SHADER)}function r(t,e){for(var n=t.createProgram(),r=0,i=e.length;r<i;++r)t.attachShader(n,e[r]);if(t.linkProgram(n),!t.getProgramParameter(n,t.LINK_STATUS)){var o=t.getProgramInfoLog(n);throw new Error("Error during program linking: "+o)}return n}function i(t,e,n){t.activeTexture(n);var r=t.createTexture();return t.bindTexture(t.TEXTURE_2D,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),r}var o,a;function s(){o||(a=document.createElement("canvas"),o=a.getContext("webgl",{premultipliedalpha:!1}))}var u=null,l=null;return{tryInitGL:function(){try{return s(),!!o}catch(t){}return!1},composeSMask:function(t,l,c){var h=t.width,f=t.height;u||function(){var t,i;s(),t=a,a=null,i=o,o=null;var l=r(i,[e(i," attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } "),n(i," precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ")]);i.useProgram(l);var c={};c.gl=i,c.canvas=t,c.resolutionLocation=i.getUniformLocation(l,"u_resolution"),c.positionLocation=i.getAttribLocation(l,"a_position"),c.backdropLocation=i.getUniformLocation(l,"u_backdrop"),c.subtypeLocation=i.getUniformLocation(l,"u_subtype");var h=i.getAttribLocation(l,"a_texCoord"),f=i.getUniformLocation(l,"u_image"),d=i.getUniformLocation(l,"u_mask"),p=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,p),i.bufferData(i.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),i.STATIC_DRAW),i.enableVertexAttribArray(h),i.vertexAttribPointer(h,2,i.FLOAT,!1,0,0),i.uniform1i(f,0),i.uniform1i(d,1),u=c}();var d=u,p=d.canvas,v=d.gl;p.width=h,p.height=f,v.viewport(0,0,v.drawingBufferWidth,v.drawingBufferHeight),v.uniform2f(d.resolutionLocation,h,f),c.backdrop?v.uniform4f(d.resolutionLocation,c.backdrop[0],c.backdrop[1],c.backdrop[2],1):v.uniform4f(d.resolutionLocation,0,0,0,0),v.uniform1i(d.subtypeLocation,"Luminosity"===c.subtype?1:0);var g=i(v,t,v.TEXTURE0),m=i(v,l,v.TEXTURE1),y=v.createBuffer();return v.bindBuffer(v.ARRAY_BUFFER,y),v.bufferData(v.ARRAY_BUFFER,new Float32Array([0,0,h,0,0,f,0,f,h,0,h,f]),v.STATIC_DRAW),v.enableVertexAttribArray(d.positionLocation),v.vertexAttribPointer(d.positionLocation,2,v.FLOAT,!1,0,0),v.clearColor(0,0,0,0),v.enable(v.BLEND),v.blendFunc(v.ONE,v.ONE_MINUS_SRC_ALPHA),v.clear(v.COLOR_BUFFER_BIT),v.drawArrays(v.TRIANGLES,0,6),v.flush(),v.deleteTexture(g),v.deleteTexture(m),v.deleteBuffer(y),p},drawFigures:function(t,i,u,c,h){l||function(){var t,i;s(),t=a,a=null,i=o,o=null;var u=r(i,[e(i," attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } "),n(i," precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ")]);i.useProgram(u);var c={};c.gl=i,c.canvas=t,c.resolutionLocation=i.getUniformLocation(u,"u_resolution"),c.scaleLocation=i.getUniformLocation(u,"u_scale"),c.offsetLocation=i.getUniformLocation(u,"u_offset"),c.positionLocation=i.getAttribLocation(u,"a_position"),c.colorLocation=i.getAttribLocation(u,"a_color"),l=c}();var f=l,d=f.canvas,p=f.gl;d.width=t,d.height=i,p.viewport(0,0,p.drawingBufferWidth,p.drawingBufferHeight),p.uniform2f(f.resolutionLocation,t,i);var v,g,m,y=0;for(v=0,g=c.length;v<g;v++)switch(c[v].type){case"lattice":y+=((m=c[v].coords.length/c[v].verticesPerRow|0)-1)*(c[v].verticesPerRow-1)*6;break;case"triangles":y+=c[v].coords.length}var b=new Float32Array(2*y),_=new Uint8Array(3*y),w=h.coords,S=h.colors,A=0,x=0;for(v=0,g=c.length;v<g;v++){var k=c[v],C=k.coords,P=k.colors;switch(k.type){case"lattice":var T=k.verticesPerRow;m=C.length/T|0;for(var R=1;R<m;R++)for(var E=R*T+1,O=1;O<T;O++,E++)b[A]=w[C[E-T-1]],b[A+1]=w[C[E-T-1]+1],b[A+2]=w[C[E-T]],b[A+3]=w[C[E-T]+1],b[A+4]=w[C[E-1]],b[A+5]=w[C[E-1]+1],_[x]=S[P[E-T-1]],_[x+1]=S[P[E-T-1]+1],_[x+2]=S[P[E-T-1]+2],_[x+3]=S[P[E-T]],_[x+4]=S[P[E-T]+1],_[x+5]=S[P[E-T]+2],_[x+6]=S[P[E-1]],_[x+7]=S[P[E-1]+1],_[x+8]=S[P[E-1]+2],b[A+6]=b[A+2],b[A+7]=b[A+3],b[A+8]=b[A+4],b[A+9]=b[A+5],b[A+10]=w[C[E]],b[A+11]=w[C[E]+1],_[x+9]=_[x+3],_[x+10]=_[x+4],_[x+11]=_[x+5],_[x+12]=_[x+6],_[x+13]=_[x+7],_[x+14]=_[x+8],_[x+15]=S[P[E]],_[x+16]=S[P[E]+1],_[x+17]=S[P[E]+2],A+=12,x+=18;break;case"triangles":for(var L=0,I=C.length;L<I;L++)b[A]=w[C[L]],b[A+1]=w[C[L]+1],_[x]=S[P[L]],_[x+1]=S[P[L]+1],_[x+2]=S[P[L]+2],A+=2,x+=3}}u?p.clearColor(u[0]/255,u[1]/255,u[2]/255,1):p.clearColor(0,0,0,0),p.clear(p.COLOR_BUFFER_BIT);var M=p.createBuffer();p.bindBuffer(p.ARRAY_BUFFER,M),p.bufferData(p.ARRAY_BUFFER,b,p.STATIC_DRAW),p.enableVertexAttribArray(f.positionLocation),p.vertexAttribPointer(f.positionLocation,2,p.FLOAT,!1,0,0);var D=p.createBuffer();return p.bindBuffer(p.ARRAY_BUFFER,D),p.bufferData(p.ARRAY_BUFFER,_,p.STATIC_DRAW),p.enableVertexAttribArray(f.colorLocation),p.vertexAttribPointer(f.colorLocation,3,p.UNSIGNED_BYTE,!1,0,0),p.uniform2f(f.scaleLocation,h.scaleX,h.scaleY),p.uniform2f(f.offsetLocation,h.offsetX,h.offsetY),p.drawArrays(p.TRIANGLES,0,y),p.flush(),p.deleteBuffer(M),p.deleteBuffer(D),d},cleanup:function(){u&&u.canvas&&(u.canvas.width=0,u.canvas.height=0),l&&l.canvas&&(l.canvas.width=0,l.canvas.height=0),u=null,l=null}}}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationLayer=void 0;var r=n(1),i=n(5);function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),t}var y=function(){function t(){v(this,t)}return m(t,null,[{key:"create",value:function(t){switch(t.data.annotationType){case i.AnnotationType.LINK:return new _(t);case i.AnnotationType.TEXT:return new w(t);case i.AnnotationType.WIDGET:switch(t.data.fieldType){case"Tx":return new A(t);case"Btn":return t.data.radioButton?new k(t):t.data.checkBox?new x(t):new C(t);case"Ch":return new P(t)}return new S(t);case i.AnnotationType.POPUP:return new T(t);case i.AnnotationType.FREETEXT:return new E(t);case i.AnnotationType.LINE:return new O(t);case i.AnnotationType.SQUARE:return new L(t);case i.AnnotationType.CIRCLE:return new I(t);case i.AnnotationType.POLYLINE:return new M(t);case i.AnnotationType.CARET:return new N(t);case i.AnnotationType.INK:return new j(t);case i.AnnotationType.POLYGON:return new D(t);case i.AnnotationType.HIGHLIGHT:return new F(t);case i.AnnotationType.UNDERLINE:return new B(t);case i.AnnotationType.SQUIGGLY:return new z(t);case i.AnnotationType.STRIKEOUT:return new U(t);case i.AnnotationType.STAMP:return new W(t);case i.AnnotationType.FILEATTACHMENT:return new V(t);default:return new b(t)}}}]),t}(),b=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];v(this,t),this.isRenderable=n,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderInteractiveForms=e.renderInteractiveForms,this.svgFactory=e.svgFactory,n&&(this.container=this._createContainer(r))}return m(t,[{key:"_createContainer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.data,n=this.page,r=this.viewport,o=document.createElement("section"),a=e.rect[2]-e.rect[0],s=e.rect[3]-e.rect[1];o.setAttribute("data-annotation-id",e.id);var u=i.Util.normalizeRect([e.rect[0],n.view[3]-e.rect[1]+n.view[1],e.rect[2],n.view[3]-e.rect[3]+n.view[1]]);if(o.style.transform="matrix(".concat(r.transform.join(","),")"),o.style.transformOrigin="-".concat(u[0],"px -").concat(u[1],"px"),!t&&e.borderStyle.width>0){o.style.borderWidth="".concat(e.borderStyle.width,"px"),e.borderStyle.style!==i.AnnotationBorderStyleType.UNDERLINE&&(a-=2*e.borderStyle.width,s-=2*e.borderStyle.width);var l=e.borderStyle.horizontalCornerRadius,c=e.borderStyle.verticalCornerRadius;if(l>0||c>0){var h="".concat(l,"px / ").concat(c,"px");o.style.borderRadius=h}switch(e.borderStyle.style){case i.AnnotationBorderStyleType.SOLID:o.style.borderStyle="solid";break;case i.AnnotationBorderStyleType.DASHED:o.style.borderStyle="dashed";break;case i.AnnotationBorderStyleType.BEVELED:(0,i.warn)("Unimplemented border style: beveled");break;case i.AnnotationBorderStyleType.INSET:(0,i.warn)("Unimplemented border style: inset");break;case i.AnnotationBorderStyleType.UNDERLINE:o.style.borderBottomStyle="solid"}e.color?o.style.borderColor=i.Util.makeCssRgb(0|e.color[0],0|e.color[1],0|e.color[2]):o.style.borderWidth=0}return o.style.left="".concat(u[0],"px"),o.style.top="".concat(u[1],"px"),o.style.width="".concat(a,"px"),o.style.height="".concat(s,"px"),o}},{key:"_createPopup",value:function(t,e,n){e||((e=document.createElement("div")).style.height=t.style.height,e.style.width=t.style.width,t.appendChild(e));var r=new R({container:t,trigger:e,color:n.color,title:n.title,modificationDate:n.modificationDate,contents:n.contents,hideWrapper:!0}).render();r.style.left=t.style.width,t.appendChild(r)}},{key:"render",value:function(){(0,i.unreachable)("Abstract method `AnnotationElement.render` called")}}]),t}(),_=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.url||t.data.dest||t.data.action);return e.call(this,t,r)}return m(n,[{key:"render",value:function(){this.container.className="linkAnnotation";var t=this.data,e=this.linkService,n=document.createElement("a");return t.url?(0,r.addLinkAttributes)(n,{url:t.url,target:t.newWindow?r.LinkTarget.BLANK:e.externalLinkTarget,rel:e.externalLinkRel,enabled:e.externalLinkEnabled}):t.action?this._bindNamedAction(n,t.action):this._bindLink(n,t.dest),this.container.appendChild(n),this.container}},{key:"_bindLink",value:function(t,e){var n=this;t.href=this.linkService.getDestinationHash(e),t.onclick=function(){return e&&n.linkService.navigateTo(e),!1},e&&(t.className="internalLink")}},{key:"_bindNamedAction",value:function(t,e){var n=this;t.href=this.linkService.getAnchorUrl(""),t.onclick=function(){return n.linkService.executeNamedAction(e),!1},t.className="internalLink"}}]),n}(b),w=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r)}return m(n,[{key:"render",value:function(){this.container.className="textAnnotation";var t=document.createElement("img");return t.style.height=this.container.style.height,t.style.width=this.container.style.width,t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.alt="[{{type}} Annotation]",t.dataset.l10nId="text_annotation_type",t.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container}}]),n}(b),S=function(t){l(n,t);var e=h(n);function n(){return v(this,n),e.apply(this,arguments)}return m(n,[{key:"render",value:function(){return this.container}}]),n}(b),A=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=t.renderInteractiveForms||!t.data.hasAppearance&&!!t.data.fieldValue;return e.call(this,t,r)}return m(n,[{key:"render",value:function(){this.container.className="textWidgetAnnotation";var t=null;if(this.renderInteractiveForms){if(this.data.multiLine?(t=document.createElement("textarea")).textContent=this.data.fieldValue:((t=document.createElement("input")).type="text",t.setAttribute("value",this.data.fieldValue)),t.disabled=this.data.readOnly,t.name=this.data.fieldName,null!==this.data.maxLen&&(t.maxLength=this.data.maxLen),this.data.comb){var e=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;t.classList.add("comb"),t.style.letterSpacing="calc(".concat(e,"px - 1ch)")}}else{(t=document.createElement("div")).textContent=this.data.fieldValue,t.style.verticalAlign="middle",t.style.display="table-cell";var n=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(n=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(t,n)}return null!==this.data.textAlignment&&(t.style.textAlign=["left","center","right"][this.data.textAlignment]),this.container.appendChild(t),this.container}},{key:"_setTextStyle",value:function(t,e){var n=t.style;if(n.fontSize="".concat(this.data.fontSize,"px"),n.direction=this.data.fontDirection<0?"rtl":"ltr",e){var r="normal";e.black?r="900":e.bold&&(r="bold"),n.fontWeight=r,n.fontStyle=e.italic?"italic":"normal";var i=e.loadedName?'"'.concat(e.loadedName,'", '):"",o=e.fallbackName||"Helvetica, sans-serif";n.fontFamily=i+o}}}]),n}(S),x=function(t){l(n,t);var e=h(n);function n(t){return v(this,n),e.call(this,t,t.renderInteractiveForms)}return m(n,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var t=document.createElement("input");return t.disabled=this.data.readOnly,t.type="checkbox",t.name=this.data.fieldName,this.data.fieldValue&&"Off"!==this.data.fieldValue&&t.setAttribute("checked",!0),this.container.appendChild(t),this.container}}]),n}(S),k=function(t){l(n,t);var e=h(n);function n(t){return v(this,n),e.call(this,t,t.renderInteractiveForms)}return m(n,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var t=document.createElement("input");return t.disabled=this.data.readOnly,t.type="radio",t.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&t.setAttribute("checked",!0),this.container.appendChild(t),this.container}}]),n}(S),C=function(t){l(n,t);var e=h(n);function n(){return v(this,n),e.apply(this,arguments)}return m(n,[{key:"render",value:function(){var t=s(p(n.prototype),"render",this).call(this);return t.className="buttonWidgetAnnotation pushButton",t}}]),n}(_),P=function(t){l(n,t);var e=h(n);function n(t){return v(this,n),e.call(this,t,t.renderInteractiveForms)}return m(n,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var t=document.createElement("select");t.disabled=this.data.readOnly,t.name=this.data.fieldName,this.data.combo||(t.size=this.data.options.length,this.data.multiSelect&&(t.multiple=!0));var e,n=o(this.data.options);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=document.createElement("option");i.textContent=r.displayValue,i.value=r.exportValue,this.data.fieldValue.includes(r.displayValue)&&i.setAttribute("selected",!0),t.appendChild(i)}}catch(t){n.e(t)}finally{n.f()}return this.container.appendChild(t),this.container}}]),n}(S),T=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!(!t.data.title&&!t.data.contents);return e.call(this,t,r)}return m(n,[{key:"render",value:function(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;var t='[data-annotation-id="'.concat(this.data.parentId,'"]'),e=this.layer.querySelector(t);if(!e)return this.container;var n=new R({container:this.container,trigger:e,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),r=parseFloat(e.style.left),i=parseFloat(e.style.width);return this.container.style.transformOrigin="-".concat(r+i,"px -").concat(e.style.top),this.container.style.left="".concat(r+i,"px"),this.container.appendChild(n.render()),this.container}}]),n}(b),R=function(){function t(e){v(this,t),this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.title=e.title,this.modificationDate=e.modificationDate,this.contents=e.contents,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}return m(t,[{key:"render",value:function(){var t=document.createElement("div");t.className="popupWrapper",this.hideElement=this.hideWrapper?t:this.container,this.hideElement.setAttribute("hidden",!0);var e=document.createElement("div");e.className="popup";var n=this.color;if(n){var o=.7*(255-n[0])+n[0],a=.7*(255-n[1])+n[1],s=.7*(255-n[2])+n[2];e.style.backgroundColor=i.Util.makeCssRgb(0|o,0|a,0|s)}var u=document.createElement("h1");u.textContent=this.title,e.appendChild(u);var l=r.PDFDateString.toDateObject(this.modificationDate);if(l){var c=document.createElement("span");c.textContent="{{date}}, {{time}}",c.dataset.l10nId="annotation_date_string",c.dataset.l10nArgs=JSON.stringify({date:l.toLocaleDateString(),time:l.toLocaleTimeString()}),e.appendChild(c)}var h=this._formatContents(this.contents);return e.appendChild(h),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),e.addEventListener("click",this._hide.bind(this,!0)),t.appendChild(e),t}},{key:"_formatContents",value:function(t){for(var e=document.createElement("p"),n=t.split(/(?:\r\n?|\n)/),r=0,i=n.length;r<i;++r){var o=n[r];e.appendChild(document.createTextNode(o)),r<i-1&&e.appendChild(document.createElement("br"))}return e}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),t}(),E=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return m(n,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(b),O=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return m(n,[{key:"render",value:function(){this.container.className="lineAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],n=t.rect[3]-t.rect[1],r=this.svgFactory.create(e,n),i=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]),i.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]),i.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]),i.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]),i.setAttribute("stroke-width",t.borderStyle.width||1),i.setAttribute("stroke","transparent"),r.appendChild(i),this.container.append(r),this._createPopup(this.container,i,t),this.container}}]),n}(b),L=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return m(n,[{key:"render",value:function(){this.container.className="squareAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],n=t.rect[3]-t.rect[1],r=this.svgFactory.create(e,n),i=t.borderStyle.width,o=this.svgFactory.createElement("svg:rect");return o.setAttribute("x",i/2),o.setAttribute("y",i/2),o.setAttribute("width",e-i),o.setAttribute("height",n-i),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),r.appendChild(o),this.container.append(r),this._createPopup(this.container,o,t),this.container}}]),n}(b),I=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return m(n,[{key:"render",value:function(){this.container.className="circleAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],n=t.rect[3]-t.rect[1],r=this.svgFactory.create(e,n),i=t.borderStyle.width,o=this.svgFactory.createElement("svg:ellipse");return o.setAttribute("cx",e/2),o.setAttribute("cy",n/2),o.setAttribute("rx",e/2-i/2),o.setAttribute("ry",n/2-i/2),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),r.appendChild(o),this.container.append(r),this._createPopup(this.container,o,t),this.container}}]),n}(b),M=function(t){l(n,t);var e=h(n);function n(t){var r;v(this,n);var i=!!(t.data.hasPopup||t.data.title||t.data.contents);return(r=e.call(this,t,i,!0)).containerClassName="polylineAnnotation",r.svgElementName="svg:polyline",r}return m(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var t,e=this.data,n=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],i=this.svgFactory.create(n,r),a=[],s=o(e.vertices);try{for(s.s();!(t=s.n()).done;){var u=t.value,l=u.x-e.rect[0],c=e.rect[3]-u.y;a.push(l+","+c)}}catch(t){s.e(t)}finally{s.f()}a=a.join(" ");var h=this.svgFactory.createElement(this.svgElementName);return h.setAttribute("points",a),h.setAttribute("stroke-width",e.borderStyle.width||1),h.setAttribute("stroke","transparent"),h.setAttribute("fill","none"),i.appendChild(h),this.container.append(i),this._createPopup(this.container,h,e),this.container}}]),n}(b),D=function(t){l(n,t);var e=h(n);function n(t){var r;return v(this,n),(r=e.call(this,t)).containerClassName="polygonAnnotation",r.svgElementName="svg:polygon",r}return n}(M),N=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return m(n,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(b),j=function(t){l(n,t);var e=h(n);function n(t){var r;v(this,n);var i=!!(t.data.hasPopup||t.data.title||t.data.contents);return(r=e.call(this,t,i,!0)).containerClassName="inkAnnotation",r.svgElementName="svg:polyline",r}return m(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var t,e=this.data,n=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],i=this.svgFactory.create(n,r),a=o(e.inkLists);try{for(a.s();!(t=a.n()).done;){var s,u=t.value,l=[],c=o(u);try{for(c.s();!(s=c.n()).done;){var h=s.value,f=h.x-e.rect[0],d=e.rect[3]-h.y;l.push("".concat(f,",").concat(d))}}catch(t){c.e(t)}finally{c.f()}l=l.join(" ");var p=this.svgFactory.createElement(this.svgElementName);p.setAttribute("points",l),p.setAttribute("stroke-width",e.borderStyle.width||1),p.setAttribute("stroke","transparent"),p.setAttribute("fill","none"),this._createPopup(this.container,p,e),i.appendChild(p)}}catch(t){a.e(t)}finally{a.f()}return this.container.append(i),this.container}}]),n}(b),F=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return m(n,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(b),B=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return m(n,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(b),z=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return m(n,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(b),U=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return m(n,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(b),W=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return m(n,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(b),V=function(t){l(n,t);var e=h(n);function n(t){var o;v(this,n);var a=(o=e.call(this,t,!0)).data.file,s=a.filename,u=a.content;return o.filename=(0,r.getFilenameFromUrl)(s),o.content=u,o.linkService.eventBus&&o.linkService.eventBus.dispatch("fileattachmentannotation",{source:d(o),id:(0,i.stringToPDFString)(s),filename:s,content:u}),o}return m(n,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var t=document.createElement("div");return t.style.height=this.container.style.height,t.style.width=this.container.style.width,t.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container}},{key:"_download",value:function(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,i.warn)("Download cannot be started due to unavailable download manager")}}]),n}(b),q=function(){function t(){v(this,t)}return m(t,null,[{key:"render",value:function(t){var e,n=[],a=[],s=o(t.annotations);try{for(s.s();!(e=s.n()).done;){var u=e.value;u&&(u.annotationType!==i.AnnotationType.POPUP?n.push(u):a.push(u))}}catch(t){s.e(t)}finally{s.f()}a.length&&n.push.apply(n,a);for(var l=0,c=n;l<c.length;l++){var h=c[l],f=y.create({data:h,layer:t.div,page:t.page,viewport:t.viewport,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderInteractiveForms:t.renderInteractiveForms||!1,svgFactory:new r.DOMSVGFactory});f.isRenderable&&t.div.appendChild(f.render())}}},{key:"update",value:function(t){var e,n=o(t.annotations);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=t.div.querySelector('[data-annotation-id="'.concat(r.id,'"]'));i&&(i.style.transform="matrix(".concat(t.viewport.transform.join(","),")"))}}catch(t){n.e(t)}finally{n.f()}t.div.removeAttribute("hidden")}}]),t}();e.AnnotationLayer=q},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderTextLayer=void 0;var r=n(5),i=function(){var t=/\S/;function e(e,n,i){var o,a=document.createElement("span"),s={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(e._textDivs.push(a),o=n.str,!t.test(o))return s.isWhitespace=!0,void e._textDivProperties.set(a,s);var u=r.Util.transform(e._viewport.transform,n.transform),l=Math.atan2(u[1],u[0]),c=i[n.fontName];c.vertical&&(l+=Math.PI/2);var h,f,d=Math.sqrt(u[2]*u[2]+u[3]*u[3]),p=d;c.ascent?p=c.ascent*p:c.descent&&(p=(1+c.descent)*p),0===l?(h=u[4],f=u[5]-p):(h=u[4]+p*Math.sin(l),f=u[5]-p*Math.cos(l)),a.style.left="".concat(h,"px"),a.style.top="".concat(f,"px"),a.style.fontSize="".concat(d,"px"),a.style.fontFamily=c.fontFamily,a.textContent=n.str,e._fontInspectorEnabled&&(a.dataset.fontName=n.fontName),0!==l&&(s.angle=l*(180/Math.PI));var v=!1;if(n.str.length>1)v=!0;else if(n.transform[0]!==n.transform[3]){var g=Math.abs(n.transform[0]),m=Math.abs(n.transform[3]);g!==m&&Math.max(g,m)/Math.min(g,m)>1.5&&(v=!0)}if(v&&(c.vertical?s.canvasWidth=n.height*e._viewport.scale:s.canvasWidth=n.width*e._viewport.scale),e._textDivProperties.set(a,s),e._textContentStream&&e._layoutText(a),e._enhanceTextSelection){var y=1,b=0;0!==l&&(y=Math.cos(l),b=Math.sin(l));var _,w,S=(c.vertical?n.height:n.width)*e._viewport.scale,A=d;0!==l?(_=[y,b,-b,y,h,f],w=r.Util.getAxialAlignedBoundingBox([0,0,S,A],_)):w=[h,f,h+S,f+A],e._bounds.push({left:w[0],top:w[1],right:w[2],bottom:w[3],div:a,size:[S,A],m:_})}}function n(t){if(!t._canceled){var e=t._textDivs,n=t._capability,r=e.length;if(r>1e5)return t._renderingDone=!0,void n.resolve();if(!t._textContentStream)for(var i=0;i<r;i++)t._layoutText(e[i]);t._renderingDone=!0,n.resolve()}}function i(t,e,n){for(var r=0,i=0;i<n;i++){var o=t[e++];o>0&&(r=r?Math.min(o,r):o)}return r}function o(t){for(var e=t._bounds,n=t._viewport,o=function(t,e,n){var r=n.map((function(t,e){return{x1:t.left,y1:t.top,x2:t.right,y2:t.bottom,index:e,x1New:void 0,x2New:void 0}}));a(t,r);var i=new Array(n.length);return r.forEach((function(t){var e=t.index;i[e]={left:t.x1New,top:0,right:t.x2New,bottom:0}})),n.map((function(e,n){var o=i[n],a=r[n];a.x1=e.top,a.y1=t-o.right,a.x2=e.bottom,a.y2=t-o.left,a.index=n,a.x1New=void 0,a.x2New=void 0})),a(e,r),r.forEach((function(t){var e=t.index;i[e].top=t.x1New,i[e].bottom=t.x2New})),i}(n.width,n.height,e),s=0;s<o.length;s++){var u=e[s].div,l=t._textDivProperties.get(u);if(0!==l.angle){var c=o[s],h=e[s],f=h.m,d=f[0],p=f[1],v=[[0,0],[0,h.size[1]],[h.size[0],0],h.size],g=new Float64Array(64);v.forEach((function(t,e){var n=r.Util.applyTransform(t,f);g[e+0]=d&&(c.left-n[0])/d,g[e+4]=p&&(c.top-n[1])/p,g[e+8]=d&&(c.right-n[0])/d,g[e+12]=p&&(c.bottom-n[1])/p,g[e+16]=p&&(c.left-n[0])/-p,g[e+20]=d&&(c.top-n[1])/d,g[e+24]=p&&(c.right-n[0])/-p,g[e+28]=d&&(c.bottom-n[1])/d,g[e+32]=d&&(c.left-n[0])/-d,g[e+36]=p&&(c.top-n[1])/-p,g[e+40]=d&&(c.right-n[0])/-d,g[e+44]=p&&(c.bottom-n[1])/-p,g[e+48]=p&&(c.left-n[0])/p,g[e+52]=d&&(c.top-n[1])/-d,g[e+56]=p&&(c.right-n[0])/p,g[e+60]=d&&(c.bottom-n[1])/-d}));var m=1+Math.min(Math.abs(d),Math.abs(p));l.paddingLeft=i(g,32,16)/m,l.paddingTop=i(g,48,16)/m,l.paddingRight=i(g,0,16)/m,l.paddingBottom=i(g,16,16)/m,t._textDivProperties.set(u,l)}else l.paddingLeft=e[s].left-o[s].left,l.paddingTop=e[s].top-o[s].top,l.paddingRight=o[s].right-e[s].right,l.paddingBottom=o[s].bottom-e[s].bottom,t._textDivProperties.set(u,l)}}function a(t,e){e.sort((function(t,e){return t.x1-e.x1||t.index-e.index}));var n=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];e.forEach((function(t){for(var e=0;e<n.length&&n[e].end<=t.y1;)e++;for(var r,i,o=n.length-1;o>=0&&n[o].start>=t.y2;)o--;var a,s,u=-1/0;for(a=e;a<=o;a++){var l;(l=(i=(r=n[a]).boundary).x2>t.x1?i.index>t.index?i.x1New:t.x1:void 0===i.x2New?(i.x2+t.x1)/2:i.x2New)>u&&(u=l)}for(t.x1New=u,a=e;a<=o;a++)void 0===(i=(r=n[a]).boundary).x2New?i.x2>t.x1?i.index>t.index&&(i.x2New=i.x2):i.x2New=u:i.x2New>u&&(i.x2New=Math.max(u,i.x2));var c=[],h=null;for(a=e;a<=o;a++){var f=(i=(r=n[a]).boundary).x2>t.x2?i:t;h===f?c[c.length-1].end=r.end:(c.push({start:r.start,end:r.end,boundary:f}),h=f)}for(n[e].start<t.y1&&(c[0].start=t.y1,c.unshift({start:n[e].start,end:t.y1,boundary:n[e].boundary})),t.y2<n[o].end&&(c[c.length-1].end=t.y2,c.push({start:t.y2,end:n[o].end,boundary:n[o].boundary})),a=e;a<=o;a++)if(void 0===(i=(r=n[a]).boundary).x2New){var d=!1;for(s=e-1;!d&&s>=0&&n[s].start>=i.y1;s--)d=n[s].boundary===i;for(s=o+1;!d&&s<n.length&&n[s].end<=i.y2;s++)d=n[s].boundary===i;for(s=0;!d&&s<c.length;s++)d=c[s].boundary===i;d||(i.x2New=u)}Array.prototype.splice.apply(n,[e,o-e+1].concat(c))})),n.forEach((function(e){var n=e.boundary;void 0===n.x2New&&(n.x2New=Math.max(t,n.x2))}))}function s(t){var e=this,n=t.textContent,i=t.textContentStream,o=t.container,a=t.viewport,s=t.textDivs,u=t.textContentItemsStr,l=t.enhanceTextSelection;this._textContent=n,this._textContentStream=i,this._container=o,this._viewport=a,this._textDivs=s||[],this._textContentItemsStr=u||[],this._enhanceTextSelection=!!l,this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,r.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally((function(){e._layoutTextCtx&&(e._layoutTextCtx.canvas.width=0,e._layoutTextCtx.canvas.height=0,e._layoutTextCtx=null)})).catch((function(){}))}return s.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new r.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems:function(t,n){for(var r=0,i=t.length;r<i;r++)this._textContentItemsStr.push(t[r].str),e(this,t[r],n)},_layoutText:function(t){var e=this._textDivProperties.get(t);if(!e.isWhitespace){var n="";if(0!==e.canvasWidth){var r=t.style,i=r.fontSize,o=r.fontFamily;i===this._layoutTextLastFontSize&&o===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(i," ").concat(o),this._layoutTextLastFontSize=i,this._layoutTextLastFontFamily=o);var a=this._layoutTextCtx.measureText(t.textContent).width;a>0&&(e.scale=e.canvasWidth/a,n="scaleX(".concat(e.scale,")"))}0!==e.angle&&(n="rotate(".concat(e.angle,"deg) ").concat(n)),n.length>0&&(this._enhanceTextSelection&&(e.originalTransform=n),t.style.transform=n),this._textDivProperties.set(t,e),this._container.appendChild(t)}},_render:function(t){var e=this,i=(0,r.createPromiseCapability)(),o=Object.create(null),a=document.createElement("canvas");if(a.mozOpaque=!0,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,u=this._textContent.styles;this._processItems(s,u),i.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');this._reader=this._textContentStream.getReader(),function t(){e._reader.read().then((function(n){var r=n.value;n.done?i.resolve():(Object.assign(o,r.styles),e._processItems(r.items,o),t())}),i.reject)}()}i.promise.then((function(){o=null,t?e._renderTimer=setTimeout((function(){n(e),e._renderTimer=null}),t):n(e)}),this._capability.reject)},expandTextDivs:function(t){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(o(this),this._bounds=null);for(var e=[],n=[],r=0,i=this._textDivs.length;r<i;r++){var a=this._textDivs[r],s=this._textDivProperties.get(a);s.isWhitespace||(t?(e.length=0,n.length=0,s.originalTransform&&e.push(s.originalTransform),s.paddingTop>0?(n.push("".concat(s.paddingTop,"px")),e.push("translateY(".concat(-s.paddingTop,"px)"))):n.push(0),s.paddingRight>0?n.push("".concat(s.paddingRight/s.scale,"px")):n.push(0),s.paddingBottom>0?n.push("".concat(s.paddingBottom,"px")):n.push(0),s.paddingLeft>0?(n.push("".concat(s.paddingLeft/s.scale,"px")),e.push("translateX(".concat(-s.paddingLeft/s.scale,"px)"))):n.push(0),a.style.padding=n.join(" "),e.length&&(a.style.transform=e.join(" "))):(a.style.padding=null,a.style.transform=s.originalTransform))}}}},function(t){var e=new s({textContent:t.textContent,textContentStream:t.textContentStream,container:t.container,viewport:t.viewport,textDivs:t.textDivs,textContentItemsStr:t.textContentItemsStr,enhanceTextSelection:t.enhanceTextSelection});return e._render(t.timeout),e}}();e.renderTextLayer=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SVGGraphics=void 0;var r=n(5),i=n(1),o=n(7);function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||l(t)||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 s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}var p=function(){throw new Error("Not implemented: SVGGraphics")};e.SVGGraphics=p;var v=function(t){if(Number.isInteger(t))return t.toString();var e=t.toFixed(10),n=e.length-1;if("0"!==e[n])return e;do{n--}while("0"===e[n]);return e.substring(0,"."===e[n]?n:n+1)},g=function(t){if(0===t[4]&&0===t[5]){if(0===t[1]&&0===t[2])return 1===t[0]&&1===t[3]?"":"scale(".concat(v(t[0])," ").concat(v(t[3]),")");if(t[0]===t[3]&&t[1]===-t[2]){var e=180*Math.acos(t[0])/Math.PI;return"rotate(".concat(v(e),")")}}else if(1===t[0]&&0===t[1]&&0===t[2]&&1===t[3])return"translate(".concat(v(t[4])," ").concat(v(t[5]),")");return"matrix(".concat(v(t[0])," ").concat(v(t[1])," ").concat(v(t[2])," ").concat(v(t[3])," ").concat(v(t[4])," ")+"".concat(v(t[5]),")")},m={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},y=["butt","round","square"],b=["miter","round","bevel"],_=function(){for(var t=new Uint8Array([137,80,78,71,13,10,26,10]),e=new Int32Array(256),n=0;n<256;n++){for(var i=n,a=0;a<8;a++)i=1&i?3988292384^i>>1&2147483647:i>>1&2147483647;e[n]=i}function s(t,n,r,i){var o=i,a=n.length;r[o]=a>>24&255,r[o+1]=a>>16&255,r[o+2]=a>>8&255,r[o+3]=255&a,r[o+=4]=255&t.charCodeAt(0),r[o+1]=255&t.charCodeAt(1),r[o+2]=255&t.charCodeAt(2),r[o+3]=255&t.charCodeAt(3),o+=4,r.set(n,o);var s=function(t,n,r){for(var i=-1,o=n;o<r;o++){var a=255&(i^t[o]);i=i>>>8^e[a]}return-1^i}(r,i+4,o+=n.length);r[o]=s>>24&255,r[o+1]=s>>16&255,r[o+2]=s>>8&255,r[o+3]=255&s}function u(t){var e=t.length,n=Math.ceil(e/65535),r=new Uint8Array(2+e+5*n+4),i=0;r[i++]=120,r[i++]=156;for(var o=0;e>65535;)r[i++]=0,r[i++]=255,r[i++]=255,r[i++]=0,r[i++]=0,r.set(t.subarray(o,o+65535),i),i+=65535,o+=65535,e-=65535;r[i++]=1,r[i++]=255&e,r[i++]=e>>8&255,r[i++]=255&~e,r[i++]=(65535&~e)>>8&255,r.set(t.subarray(o),i),i+=t.length-o;var a=function(t,e,n){for(var r=1,i=0,o=e;o<n;++o)i=(i+(r=(r+(255&t[o]))%65521))%65521;return i<<16|r}(t,0,t.length);return r[i++]=a>>24&255,r[i++]=a>>16&255,r[i++]=a>>8&255,r[i++]=255&a,r}function l(e,n,i,a){var l,c,h,f=e.width,d=e.height,p=e.data;switch(n){case r.ImageKind.GRAYSCALE_1BPP:c=0,l=1,h=f+7>>3;break;case r.ImageKind.RGB_24BPP:c=2,l=8,h=3*f;break;case r.ImageKind.RGBA_32BPP:c=6,l=8,h=4*f;break;default:throw new Error("invalid format")}for(var v=new Uint8Array((1+h)*d),g=0,m=0,y=0;y<d;++y)v[g++]=0,v.set(p.subarray(m,m+h),g),m+=h,g+=h;if(n===r.ImageKind.GRAYSCALE_1BPP&&a){g=0;for(var b=0;b<d;b++){g++;for(var _=0;_<h;_++)v[g++]^=255}}var w=new Uint8Array([f>>24&255,f>>16&255,f>>8&255,255&f,d>>24&255,d>>16&255,d>>8&255,255&d,l,c,0,0,0]),S=function(t){if(!o.isNodeJS)return u(t);try{var e;e=parseInt(process.versions.node)>=8?t:Buffer.from(t);var n=__webpack_require__(22).deflateSync(e,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(t){(0,r.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+t)}return u(t)}(v),A=t.length+36+w.length+S.length,x=new Uint8Array(A),k=0;return x.set(t,k),s("IHDR",w,x,k+=t.length),s("IDATA",S,x,k+=12+w.length),k+=12+S.length,s("IEND",new Uint8Array(0),x,k),(0,r.createObjectURL)(x,"image/png",i)}return function(t,e,n){return l(t,void 0===t.kind?r.ImageKind.GRAYSCALE_1BPP:t.kind,e,n)}}(),w=function(){function t(){h(this,t),this.fontSizeScale=1,this.fontWeight=m.fontWeight,this.fontSize=0,this.textMatrix=r.IDENTITY_MATRIX,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=r.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=m.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return d(t,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(t,e){this.x=t,this.y=e}}]),t}(),S=0,A=0,x=0;e.SVGGraphics=p=function(){function t(e,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var a in h(this,t),this.svgFactory=new i.DOMSVGFactory,this.current=new w,this.transformMatrix=r.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=n,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!o,this._operatorIdMapping=[],r.OPS)this._operatorIdMapping[r.OPS[a]]=a}return d(t,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var t=this.current;this.extraStack.push(t),this.current=t.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(t){this.save(),this.executeOpTree(t),this.restore()}},{key:"loadDependencies",value:function(t){for(var e=this,n=t.fnArray,i=t.argsArray,o=0,a=n.length;o<a;o++)if(n[o]===r.OPS.dependency){var s,l=u(i[o]);try{var c=function(){var t=s.value,n=t.startsWith("g_")?e.commonObjs:e.objs,r=new Promise((function(e){n.get(t,e)}));e.current.dependencies.push(r)};for(l.s();!(s=l.n()).done;)c()}catch(t){l.e(t)}finally{l.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(t,e,n,i,o,a){var s=[t,e,n,i,o,a];this.transformMatrix=r.Util.transform(this.transformMatrix,s),this.tgrp=null}},{key:"getSVG",value:function(t,e){var n=this;this.viewport=e;var i=this._initialize(e);return this.loadDependencies(t).then((function(){return n.transformMatrix=r.IDENTITY_MATRIX,n.executeOpTree(n.convertOpList(t)),i}))}},{key:"convertOpList",value:function(t){for(var e=this._operatorIdMapping,n=t.argsArray,r=t.fnArray,i=[],o=0,a=r.length;o<a;o++){var s=r[o];i.push({fnId:s,fn:e[s],args:n[o]})}return function(t){var e,n=[],r=[],i=u(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;"save"!==o.fn?"restore"===o.fn?n=r.pop():n.push(o):(n.push({fnId:92,fn:"group",items:[]}),r.push(n),n=n[n.length-1].items)}}catch(t){i.e(t)}finally{i.f()}return n}(i)}},{key:"executeOpTree",value:function(t){var e,n=u(t);try{for(n.s();!(e=n.n()).done;){var i=e.value,o=i.fn,a=i.fnId,s=i.args;switch(0|a){case r.OPS.beginText:this.beginText();break;case r.OPS.dependency:break;case r.OPS.setLeading:this.setLeading(s);break;case r.OPS.setLeadingMoveText:this.setLeadingMoveText(s[0],s[1]);break;case r.OPS.setFont:this.setFont(s);break;case r.OPS.showText:case r.OPS.showSpacedText:this.showText(s[0]);break;case r.OPS.endText:this.endText();break;case r.OPS.moveText:this.moveText(s[0],s[1]);break;case r.OPS.setCharSpacing:this.setCharSpacing(s[0]);break;case r.OPS.setWordSpacing:this.setWordSpacing(s[0]);break;case r.OPS.setHScale:this.setHScale(s[0]);break;case r.OPS.setTextMatrix:this.setTextMatrix(s[0],s[1],s[2],s[3],s[4],s[5]);break;case r.OPS.setTextRise:this.setTextRise(s[0]);break;case r.OPS.setTextRenderingMode:this.setTextRenderingMode(s[0]);break;case r.OPS.setLineWidth:this.setLineWidth(s[0]);break;case r.OPS.setLineJoin:this.setLineJoin(s[0]);break;case r.OPS.setLineCap:this.setLineCap(s[0]);break;case r.OPS.setMiterLimit:this.setMiterLimit(s[0]);break;case r.OPS.setFillRGBColor:this.setFillRGBColor(s[0],s[1],s[2]);break;case r.OPS.setStrokeRGBColor:this.setStrokeRGBColor(s[0],s[1],s[2]);break;case r.OPS.setStrokeColorN:this.setStrokeColorN(s);break;case r.OPS.setFillColorN:this.setFillColorN(s);break;case r.OPS.shadingFill:this.shadingFill(s[0]);break;case r.OPS.setDash:this.setDash(s[0],s[1]);break;case r.OPS.setRenderingIntent:this.setRenderingIntent(s[0]);break;case r.OPS.setFlatness:this.setFlatness(s[0]);break;case r.OPS.setGState:this.setGState(s[0]);break;case r.OPS.fill:this.fill();break;case r.OPS.eoFill:this.eoFill();break;case r.OPS.stroke:this.stroke();break;case r.OPS.fillStroke:this.fillStroke();break;case r.OPS.eoFillStroke:this.eoFillStroke();break;case r.OPS.clip:this.clip("nonzero");break;case r.OPS.eoClip:this.clip("evenodd");break;case r.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case r.OPS.paintImageXObject:this.paintImageXObject(s[0]);break;case r.OPS.paintInlineImageXObject:this.paintInlineImageXObject(s[0]);break;case r.OPS.paintImageMaskXObject:this.paintImageMaskXObject(s[0]);break;case r.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(s[0],s[1]);break;case r.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case r.OPS.closePath:this.closePath();break;case r.OPS.closeStroke:this.closeStroke();break;case r.OPS.closeFillStroke:this.closeFillStroke();break;case r.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case r.OPS.nextLine:this.nextLine();break;case r.OPS.transform:this.transform(s[0],s[1],s[2],s[3],s[4],s[5]);break;case r.OPS.constructPath:this.constructPath(s[0],s[1]);break;case r.OPS.endPath:this.endPath();break;case 92:this.group(i.items);break;default:(0,r.warn)("Unimplemented operator ".concat(o))}}}catch(t){n.e(t)}finally{n.f()}}},{key:"setWordSpacing",value:function(t){this.current.wordSpacing=t}},{key:"setCharSpacing",value:function(t){this.current.charSpacing=t}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(t,e,n,r,i,o){var a=this.current;a.textMatrix=a.lineMatrix=[t,e,n,r,i,o],a.textMatrixScale=Math.sqrt(t*t+e*e),a.x=a.lineX=0,a.y=a.lineY=0,a.xcoords=[],a.ycoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size","".concat(v(a.fontSize),"px")),a.tspan.setAttributeNS(null,"y",v(-a.y)),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtElement.appendChild(a.tspan)}},{key:"beginText",value:function(){var t=this.current;t.x=t.lineX=0,t.y=t.lineY=0,t.textMatrix=r.IDENTITY_MATRIX,t.lineMatrix=r.IDENTITY_MATRIX,t.textMatrixScale=1,t.tspan=this.svgFactory.createElement("svg:tspan"),t.txtElement=this.svgFactory.createElement("svg:text"),t.txtgrp=this.svgFactory.createElement("svg:g"),t.xcoords=[],t.ycoords=[]}},{key:"moveText",value:function(t,e){var n=this.current;n.x=n.lineX+=t,n.y=n.lineY+=e,n.xcoords=[],n.ycoords=[],n.tspan=this.svgFactory.createElement("svg:tspan"),n.tspan.setAttributeNS(null,"font-family",n.fontFamily),n.tspan.setAttributeNS(null,"font-size","".concat(v(n.fontSize),"px")),n.tspan.setAttributeNS(null,"y",v(-n.y))}},{key:"showText",value:function(t){var e=this.current,n=e.font,i=e.fontSize;if(0!==i){var o,a=e.fontSizeScale,s=e.charSpacing,l=e.wordSpacing,c=e.fontDirection,h=e.textHScale*c,f=n.vertical,d=f?1:-1,p=n.defaultVMetrics,y=i*e.fontMatrix[0],b=0,_=u(t);try{for(_.s();!(o=_.n()).done;){var w=o.value;if(null!==w)if((0,r.isNum)(w))b+=d*w*i/1e3;else{var S=(w.isSpace?l:0)+s,A=w.fontChar,x=void 0,k=void 0,C=w.width;if(f){var P=void 0,T=w.vmetric||p;P=-(P=w.vmetric?T[1]:.5*C)*y;var R=T[2]*y;C=T?-T[0]:C,x=P/a,k=(b+R)/a}else x=b/a,k=0;(w.isInFont||n.missingFile)&&(e.xcoords.push(e.x+x),f&&e.ycoords.push(-e.y+k),e.tspan.textContent+=A),b+=f?C*y-S*c:C*y+S*c}else b+=c*l}}catch(t){_.e(t)}finally{_.f()}e.tspan.setAttributeNS(null,"x",e.xcoords.map(v).join(" ")),f?e.tspan.setAttributeNS(null,"y",e.ycoords.map(v).join(" ")):e.tspan.setAttributeNS(null,"y",v(-e.y)),f?e.y-=b:e.x+=b*h,e.tspan.setAttributeNS(null,"font-family",e.fontFamily),e.tspan.setAttributeNS(null,"font-size","".concat(v(e.fontSize),"px")),e.fontStyle!==m.fontStyle&&e.tspan.setAttributeNS(null,"font-style",e.fontStyle),e.fontWeight!==m.fontWeight&&e.tspan.setAttributeNS(null,"font-weight",e.fontWeight);var E=e.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;if(E===r.TextRenderingMode.FILL||E===r.TextRenderingMode.FILL_STROKE?(e.fillColor!==m.fillColor&&e.tspan.setAttributeNS(null,"fill",e.fillColor),e.fillAlpha<1&&e.tspan.setAttributeNS(null,"fill-opacity",e.fillAlpha)):e.textRenderingMode===r.TextRenderingMode.ADD_TO_PATH?e.tspan.setAttributeNS(null,"fill","transparent"):e.tspan.setAttributeNS(null,"fill","none"),E===r.TextRenderingMode.STROKE||E===r.TextRenderingMode.FILL_STROKE){var O=1/(e.textMatrixScale||1);this._setStrokeAttributes(e.tspan,O)}var L=e.textMatrix;0!==e.textRise&&((L=L.slice())[5]+=e.textRise),e.txtElement.setAttributeNS(null,"transform","".concat(g(L)," scale(").concat(v(h),", -1)")),e.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.txtElement.appendChild(e.tspan),e.txtgrp.appendChild(e.txtElement),this._ensureTransformGroup().appendChild(e.txtElement)}}},{key:"setLeadingMoveText",value:function(t,e){this.setLeading(-e),this.moveText(t,e)}},{key:"addFontStyle",value:function(t){if(!t.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var e=(0,r.createObjectURL)(t.data,t.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(t.loadedName,'";')+" src: url(".concat(e,"); }\n")}},{key:"setFont",value:function(t){var e=this.current,n=this.commonObjs.get(t[0]),i=t[1];e.font=n,!this.embedFonts||n.missingFile||this.embeddedFonts[n.loadedName]||(this.addFontStyle(n),this.embeddedFonts[n.loadedName]=n),e.fontMatrix=n.fontMatrix?n.fontMatrix:r.FONT_IDENTITY_MATRIX;var o="normal";n.black?o="900":n.bold&&(o="bold");var a=n.italic?"italic":"normal";i<0?(i=-i,e.fontDirection=-1):e.fontDirection=1,e.fontSize=i,e.fontFamily=n.loadedName,e.fontWeight=o,e.fontStyle=a,e.tspan=this.svgFactory.createElement("svg:tspan"),e.tspan.setAttributeNS(null,"y",v(-e.y)),e.xcoords=[],e.ycoords=[]}},{key:"endText",value:function(){var t=this.current;t.textRenderingMode&r.TextRenderingMode.ADD_TO_PATH_FLAG&&t.txtElement&&t.txtElement.hasChildNodes()&&(t.element=t.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(t){t>0&&(this.current.lineWidth=t)}},{key:"setLineCap",value:function(t){this.current.lineCap=y[t]}},{key:"setLineJoin",value:function(t){this.current.lineJoin=b[t]}},{key:"setMiterLimit",value:function(t){this.current.miterLimit=t}},{key:"setStrokeAlpha",value:function(t){this.current.strokeAlpha=t}},{key:"setStrokeRGBColor",value:function(t,e,n){this.current.strokeColor=r.Util.makeCssRgb(t,e,n)}},{key:"setFillAlpha",value:function(t){this.current.fillAlpha=t}},{key:"setFillRGBColor",value:function(t,e,n){this.current.fillColor=r.Util.makeCssRgb(t,e,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(t){this.current.strokeColor=this._makeColorN_Pattern(t)}},{key:"setFillColorN",value:function(t){this.current.fillColor=this._makeColorN_Pattern(t)}},{key:"shadingFill",value:function(t){var e=this.viewport.width,n=this.viewport.height,i=r.Util.inverseTransform(this.transformMatrix),o=r.Util.applyTransform([0,0],i),a=r.Util.applyTransform([0,n],i),s=r.Util.applyTransform([e,0],i),u=r.Util.applyTransform([e,n],i),l=Math.min(o[0],a[0],s[0],u[0]),c=Math.min(o[1],a[1],s[1],u[1]),h=Math.max(o[0],a[0],s[0],u[0]),f=Math.max(o[1],a[1],s[1],u[1]),d=this.svgFactory.createElement("svg:rect");d.setAttributeNS(null,"x",l),d.setAttributeNS(null,"y",c),d.setAttributeNS(null,"width",h-l),d.setAttributeNS(null,"height",f-c),d.setAttributeNS(null,"fill",this._makeShadingPattern(t)),this.current.fillAlpha<1&&d.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(d)}},{key:"_makeColorN_Pattern",value:function(t){return"TilingPattern"===t[0]?this._makeTilingPattern(t):this._makeShadingPattern(t)}},{key:"_makeTilingPattern",value:function(t){var e=t[1],n=t[2],i=t[3]||r.IDENTITY_MATRIX,o=s(t[4],4),u=o[0],l=o[1],c=o[2],h=o[3],f=t[5],d=t[6],p=t[7],v="shading".concat(x++),g=s(r.Util.applyTransform([u,l],i),2),m=g[0],y=g[1],b=s(r.Util.applyTransform([c,h],i),2),_=b[0],w=b[1],S=s(r.Util.singularValueDecompose2dScale(i),2),A=f*S[0],k=d*S[1],C=this.svgFactory.createElement("svg:pattern");C.setAttributeNS(null,"id",v),C.setAttributeNS(null,"patternUnits","userSpaceOnUse"),C.setAttributeNS(null,"width",A),C.setAttributeNS(null,"height",k),C.setAttributeNS(null,"x","".concat(m)),C.setAttributeNS(null,"y","".concat(y));var P=this.svg,T=this.transformMatrix,R=this.current.fillColor,E=this.current.strokeColor,O=this.svgFactory.create(_-m,w-y);if(this.svg=O,this.transformMatrix=i,2===p){var L=r.Util.makeCssRgb.apply(r.Util,a(e));this.current.fillColor=L,this.current.strokeColor=L}return this.executeOpTree(this.convertOpList(n)),this.svg=P,this.transformMatrix=T,this.current.fillColor=R,this.current.strokeColor=E,C.appendChild(O.childNodes[0]),this.defs.appendChild(C),"url(#".concat(v,")")}},{key:"_makeShadingPattern",value:function(t){switch(t[0]){case"RadialAxial":var e,n="shading".concat(x++),i=t[3];switch(t[1]){case"axial":var o=t[4],a=t[5];(e=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",n),e.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),e.setAttributeNS(null,"x1",o[0]),e.setAttributeNS(null,"y1",o[1]),e.setAttributeNS(null,"x2",a[0]),e.setAttributeNS(null,"y2",a[1]);break;case"radial":var s=t[4],l=t[5],c=t[6],h=t[7];(e=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",n),e.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),e.setAttributeNS(null,"cx",l[0]),e.setAttributeNS(null,"cy",l[1]),e.setAttributeNS(null,"r",h),e.setAttributeNS(null,"fx",s[0]),e.setAttributeNS(null,"fy",s[1]),e.setAttributeNS(null,"fr",c);break;default:throw new Error("Unknown RadialAxial type: ".concat(t[1]))}var f,d=u(i);try{for(d.s();!(f=d.n()).done;){var p=f.value,v=this.svgFactory.createElement("svg:stop");v.setAttributeNS(null,"offset",p[0]),v.setAttributeNS(null,"stop-color",p[1]),e.appendChild(v)}}catch(t){d.e(t)}finally{d.f()}return this.defs.appendChild(e),"url(#".concat(n,")");case"Mesh":return(0,r.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(t[0]))}}},{key:"setDash",value:function(t,e){this.current.dashArray=t,this.current.dashPhase=e}},{key:"constructPath",value:function(t,e){var n,i=this.current,o=i.x,a=i.y,s=[],l=0,c=u(t);try{for(c.s();!(n=c.n()).done;)switch(0|n.value){case r.OPS.rectangle:o=e[l++],a=e[l++];var h=e[l++],f=e[l++],d=o+h,p=a+f;s.push("M",v(o),v(a),"L",v(d),v(a),"L",v(d),v(p),"L",v(o),v(p),"Z");break;case r.OPS.moveTo:o=e[l++],a=e[l++],s.push("M",v(o),v(a));break;case r.OPS.lineTo:o=e[l++],a=e[l++],s.push("L",v(o),v(a));break;case r.OPS.curveTo:o=e[l+4],a=e[l+5],s.push("C",v(e[l]),v(e[l+1]),v(e[l+2]),v(e[l+3]),v(o),v(a)),l+=6;break;case r.OPS.curveTo2:s.push("C",v(o),v(a),v(e[l]),v(e[l+1]),v(e[l+2]),v(e[l+3])),o=e[l+2],a=e[l+3],l+=4;break;case r.OPS.curveTo3:o=e[l+2],a=e[l+3],s.push("C",v(e[l]),v(e[l+1]),v(o),v(a),v(o),v(a)),l+=4;break;case r.OPS.closePath:s.push("Z")}}catch(t){c.e(t)}finally{c.f()}s=s.join(" "),i.path&&t.length>0&&t[0]!==r.OPS.rectangle&&t[0]!==r.OPS.moveTo?s=i.path.getAttributeNS(null,"d")+s:(i.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(i.path)),i.path.setAttributeNS(null,"d",s),i.path.setAttributeNS(null,"fill","none"),i.element=i.path,i.setCurrentPoint(o,a)}},{key:"endPath",value:function(){var t=this.current;if(t.path=null,this.pendingClip)if(t.element){var e="clippath".concat(S++),n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",e),n.setAttributeNS(null,"transform",g(this.transformMatrix));var r=t.element.cloneNode(!0);"evenodd"===this.pendingClip?r.setAttributeNS(null,"clip-rule","evenodd"):r.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.appendChild(r),this.defs.appendChild(n),t.activeClipUrl&&(t.clipGroup=null,this.extraStack.forEach((function(t){t.clipGroup=null})),n.setAttributeNS(null,"clip-path",t.activeClipUrl)),t.activeClipUrl="url(#".concat(e,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(t){this.pendingClip=t}},{key:"closePath",value:function(){var t=this.current;if(t.path){var e="".concat(t.path.getAttributeNS(null,"d"),"Z");t.path.setAttributeNS(null,"d",e)}}},{key:"setLeading",value:function(t){this.current.leading=-t}},{key:"setTextRise",value:function(t){this.current.textRise=t}},{key:"setTextRenderingMode",value:function(t){this.current.textRenderingMode=t}},{key:"setHScale",value:function(t){this.current.textHScale=t/100}},{key:"setRenderingIntent",value:function(t){}},{key:"setFlatness",value:function(t){}},{key:"setGState",value:function(t){var e,n=u(t);try{for(n.s();!(e=n.n()).done;){var i=s(e.value,2),o=i[0],a=i[1];switch(o){case"LW":this.setLineWidth(a);break;case"LC":this.setLineCap(a);break;case"LJ":this.setLineJoin(a);break;case"ML":this.setMiterLimit(a);break;case"D":this.setDash(a[0],a[1]);break;case"RI":this.setRenderingIntent(a);break;case"FL":this.setFlatness(a);break;case"Font":this.setFont(a);break;case"CA":this.setStrokeAlpha(a);break;case"ca":this.setFillAlpha(a);break;default:(0,r.warn)("Unimplemented graphic state operator ".concat(o))}}}catch(t){n.e(t)}finally{n.f()}}},{key:"fill",value:function(){var t=this.current;t.element&&(t.element.setAttributeNS(null,"fill",t.fillColor),t.element.setAttributeNS(null,"fill-opacity",t.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var t=this.current;t.element&&(this._setStrokeAttributes(t.element),t.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.current,r=n.dashArray;1!==e&&r.length>0&&(r=r.map((function(t){return e*t}))),t.setAttributeNS(null,"stroke",n.strokeColor),t.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),t.setAttributeNS(null,"stroke-miterlimit",v(n.miterLimit)),t.setAttributeNS(null,"stroke-linecap",n.lineCap),t.setAttributeNS(null,"stroke-linejoin",n.lineJoin),t.setAttributeNS(null,"stroke-width",v(e*n.lineWidth)+"px"),t.setAttributeNS(null,"stroke-dasharray",r.map(v).join(" ")),t.setAttributeNS(null,"stroke-dashoffset",v(e*n.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var t=this.svgFactory.createElement("svg:rect");t.setAttributeNS(null,"x","0"),t.setAttributeNS(null,"y","0"),t.setAttributeNS(null,"width","1px"),t.setAttributeNS(null,"height","1px"),t.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(t)}},{key:"paintImageXObject",value:function(t){var e=this.objs.get(t);e?this.paintInlineImageXObject(e):(0,r.warn)("Dependent image with object ID ".concat(t," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(t,e){var n=t.width,r=t.height,i=_(t,this.forceDataSchema,!!e),o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",v(n)),o.setAttributeNS(null,"height",v(r)),this.current.element=o,this.clip("nonzero");var a=this.svgFactory.createElement("svg:image");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",v(-r)),a.setAttributeNS(null,"width",v(n)+"px"),a.setAttributeNS(null,"height",v(r)+"px"),a.setAttributeNS(null,"transform","scale(".concat(v(1/n)," ").concat(v(-1/r),")")),e?e.appendChild(a):this._ensureTransformGroup().appendChild(a)}},{key:"paintImageMaskXObject",value:function(t){var e=this.current,n=t.width,r=t.height,i=e.fillColor;e.maskId="mask".concat(A++);var o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",e.maskId);var a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",v(n)),a.setAttributeNS(null,"height",v(r)),a.setAttributeNS(null,"fill",i),a.setAttributeNS(null,"mask","url(#".concat(e.maskId,")")),this.defs.appendChild(o),this._ensureTransformGroup().appendChild(a),this.paintInlineImageXObject(t,o)}},{key:"paintFormXObjectBegin",value:function(t,e){if(Array.isArray(t)&&6===t.length&&this.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e){var n=e[2]-e[0],r=e[3]-e[1],i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x",e[0]),i.setAttributeNS(null,"y",e[1]),i.setAttributeNS(null,"width",v(n)),i.setAttributeNS(null,"height",v(r)),this.current.element=i,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(t){var e=this.svgFactory.create(t.width,t.height),n=this.svgFactory.createElement("svg:defs");e.appendChild(n),this.defs=n;var r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",g(t.transform)),e.appendChild(r),this.svg=r,e}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var t=this.svgFactory.createElement("svg:g");t.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(t),this.current.clipGroup=t}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",g(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PDFNodeStream=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},o=n(5),a=n(213);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function p(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){d(o,r,i,a,s,"next",t)}function s(t){d(o,r,i,a,s,"throw",t)}a(void 0)}))}}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),t}var y=__webpack_require__(23),b=__webpack_require__(24),_=__webpack_require__(25),w=__webpack_require__(26),S=/^file:\/\/\/[a-zA-Z]:\//,A=function(){function t(e){var n,r;v(this,t),this.source=e,this.url=(n=e.url,"file:"===(r=w.parse(n)).protocol||r.host?r:/^[a-z]:[/\\]/i.test(n)?w.parse("file:///".concat(n)):(r.host||(r.protocol="file:"),r)),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return m(t,[{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new R(this):new P(this),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var n=this.isFsUrl?new E(this,t,e):new T(this,t,e);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach((function(e){e.cancel(t)}))}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFNodeStream=A;var x=function(){function t(e){v(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;var n=e.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=(0,o.createPromiseCapability)(),this._headersCapability=(0,o.createPromiseCapability)()}var e;return m(t,[{key:"read",value:(e=p(i.default.mark((function t(){var e,n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(e=this._readableStream.read())){t.next=10;break}return this._readCapability=(0,o.createPromiseCapability)(),t.abrupt("return",this.read());case 10:return this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),n=new Uint8Array(e).buffer,t.abrupt("return",{value:n,done:!1});case 14:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",(function(){e._readCapability.resolve()})),t.on("end",(function(){t.destroy(),e._done=!0,e._readCapability.resolve()})),t.on("error",(function(t){e._error(t)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new o.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}(),k=function(){function t(e){v(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,o.createPromiseCapability)();var n=e.source;this._isStreamingSupported=!n.disableStream}var e;return m(t,[{key:"read",value:(e=p(i.default.mark((function t(){var e,n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(e=this._readableStream.read())){t.next=10;break}return this._readCapability=(0,o.createPromiseCapability)(),t.abrupt("return",this.read());case 10:return this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),n=new Uint8Array(e).buffer,t.abrupt("return",{value:n,done:!1});case 14:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",(function(){e._readCapability.resolve()})),t.on("end",(function(){t.destroy(),e._done=!0,e._readCapability.resolve()})),t.on("error",(function(t){e._error(t)})),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}();function C(t,e){return{protocol:t.protocol,auth:t.auth,host:t.hostname,port:t.port,path:t.path,method:"GET",headers:e}}var P=function(t){u(n,t);var e=c(n);function n(t){var r;v(this,n);var i=function(e){if(404===e.statusCode){var n=new o.MissingPDFException('Missing PDF "'.concat(r._url,'".'));return r._storedError=n,void r._headersCapability.reject(n)}r._headersCapability.resolve(),r._setReadableStream(e);var i=function(t){return r._readableStream.headers[t.toLowerCase()]},s=(0,a.validateRangeRequestCapabilities)({getResponseHeader:i,isHttp:t.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),u=s.allowRangeRequests,l=s.suggestedLength;r._isRangeSupported=u,r._contentLength=l||r._contentLength,r._filename=(0,a.extractFilenameFromHeader)(i)};return(r=e.call(this,t))._request=null,"http:"===r._url.protocol?r._request=b.request(C(r._url,t.httpHeaders),i):r._request=_.request(C(r._url,t.httpHeaders),i),r._request.on("error",(function(t){r._storedError=t,r._headersCapability.reject(t)})),r._request.end(),r}return n}(x),T=function(t){u(n,t);var e=c(n);function n(t,r,i){var a;for(var s in v(this,n),(a=e.call(this,t))._httpHeaders={},t.httpHeaders){var u=t.httpHeaders[s];void 0!==u&&(a._httpHeaders[s]=u)}a._httpHeaders.Range="bytes=".concat(r,"-").concat(i-1);var l=function(t){if(404!==t.statusCode)a._setReadableStream(t);else{var e=new o.MissingPDFException('Missing PDF "'.concat(a._url,'".'));a._storedError=e}};return a._request=null,"http:"===a._url.protocol?a._request=b.request(C(a._url,a._httpHeaders),l):a._request=_.request(C(a._url,a._httpHeaders),l),a._request.on("error",(function(t){a._storedError=t})),a._request.end(),a}return n}(k),R=function(t){u(n,t);var e=c(n);function n(t){var r;v(this,n),r=e.call(this,t);var i=decodeURIComponent(r._url.path);return S.test(r._url.href)&&(i=i.replace(/^\//,"")),y.lstat(i,(function(t,e){if(t)return"ENOENT"===t.code&&(t=new o.MissingPDFException('Missing PDF "'.concat(i,'".'))),r._storedError=t,void r._headersCapability.reject(t);r._contentLength=e.size,r._setReadableStream(y.createReadStream(i)),r._headersCapability.resolve()})),r}return n}(x),E=function(t){u(n,t);var e=c(n);function n(t,r,i){var o;v(this,n),o=e.call(this,t);var a=decodeURIComponent(o._url.path);return S.test(o._url.href)&&(a=a.replace(/^\//,"")),o._setReadableStream(y.createReadStream(a,{start:r,end:i-1})),o}return n}(k)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createResponseStatusError=function(t,e){return 404===t||0===t&&e.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+e+'".'):new r.UnexpectedResponseException("Unexpected server response ("+t+') while retrieving PDF "'+e+'".',t)},e.extractFilenameFromHeader=function(t){var e=t("Content-Disposition");if(e){var n=(0,i.getFilenameFromContentDispositionHeader)(e);if(n.includes("%"))try{n=decodeURIComponent(n)}catch(t){}if(/\.pdf$/i.test(n))return n}return null},e.validateRangeRequestCapabilities=function(t){var e=t.getResponseHeader,n=t.isHttp,i=t.rangeChunkSize,o=t.disableRange;(0,r.assert)(i>0,"Range chunk size must be larger than zero");var a={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(e("Content-Length"),10);return Number.isInteger(s)?(a.suggestedLength=s,s<=2*i||o||!n||"bytes"!==e("Accept-Ranges")||"identity"!==(e("Content-Encoding")||"identity")||(a.allowRangeRequests=!0),a):a},e.validateResponseStatus=function(t){return 200===t||206===t};var r=n(5),i=n(214)},function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Object.defineProperty(e,"__esModule",{value:!0}),e.getFilenameFromContentDispositionHeader=function(t){var e=!0,n=a("filename\\*","i").exec(t);if(n){var i=l(n=n[1]);return u(i=h(i=c(i=unescape(i))))}if(n=function(t){for(var e,n=[],i=a("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(e=i.exec(t));){var o=r(e,4),s=o[1],u=o[2],h=o[3];if((s=parseInt(s,10))in n){if(0===s)break}else n[s]=[u,h]}for(var f=[],d=0;d<n.length&&d in n;++d){var p=r(n[d],2),v=p[0],g=p[1];g=l(g),v&&(g=unescape(g),0===d&&(g=c(g))),f.push(g)}return f.join("")}(t))return u(h(n));if(n=a("filename","i").exec(t)){var o=l(n=n[1]);return u(o=h(o))}function a(t,e){return new RegExp("(?:^|;)\\s*"+t+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',e)}function s(t,n){if(t){if(!/^[\x00-\xFF]+$/.test(n))return n;try{var r=new TextDecoder(t,{fatal:!0}),i=Array.from(n,(function(t){return 255&t.charCodeAt(0)}));n=r.decode(new Uint8Array(i)),e=!1}catch(r){if(/^utf-?8$/i.test(t))try{n=decodeURIComponent(escape(n)),e=!1}catch(t){}}}return n}function u(t){return e&&/[\x80-\xff]/.test(t)&&(t=s("utf-8",t),e&&(t=s("iso-8859-1",t))),t}function l(t){if(t.startsWith('"')){for(var e=t.slice(1).split('\\"'),n=0;n<e.length;++n){var r=e[n].indexOf('"');-1!==r&&(e[n]=e[n].slice(0,r),e.length=n+1),e[n]=e[n].replace(/\\(.)/g,"$1")}t=e.join('"')}return t}function c(t){var e=t.indexOf("'");return-1===e?t:s(t.slice(0,e),t.slice(e+1).replace(/^[^']*'/,""))}function h(t){return!t.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(t)?t:t.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(t,e,n,r){if("q"===n||"Q"===n)return s(e,r=(r=r.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,(function(t,e){return String.fromCharCode(parseInt(e,16))})));try{r=atob(r)}catch(t){}return s(e,r)}))}return""}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PDFNetworkStream=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},o=n(5),a=n(213);function s(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){s(o,r,i,a,u,"next",t)}function u(t){s(o,r,i,a,u,"throw",t)}a(void 0)}))}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}var f=function(){function t(e,n){l(this,t),this.url=e,n=n||{},this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&n.httpHeaders||{},this.withCredentials=n.withCredentials||!1,this.getXhr=n.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return h(t,[{key:"requestRange",value:function(t,e,n){var r={begin:t,end:e};for(var i in n)r[i]=n[i];return this.request(r)}},{key:"requestFull",value:function(t){return this.request(t)}},{key:"request",value:function(t){var e=this.getXhr(),n=this.currXhrId++,r=this.pendingRequests[n]={xhr:e};for(var i in e.open("GET",this.url),e.withCredentials=this.withCredentials,this.httpHeaders){var o=this.httpHeaders[i];void 0!==o&&e.setRequestHeader(i,o)}return this.isHttp&&"begin"in t&&"end"in t?(e.setRequestHeader("Range","bytes=".concat(t.begin,"-").concat(t.end-1)),r.expectedStatus=206):r.expectedStatus=200,e.responseType="arraybuffer",t.onError&&(e.onerror=function(n){t.onError(e.status)}),e.onreadystatechange=this.onStateChange.bind(this,n),e.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=t.onHeadersReceived,r.onDone=t.onDone,r.onError=t.onError,r.onProgress=t.onProgress,e.send(null),n}},{key:"onProgress",value:function(t,e){var n=this.pendingRequests[t];n&&n.onProgress&&n.onProgress(e)}},{key:"onStateChange",value:function(t,e){var n=this.pendingRequests[t];if(n){var r=n.xhr;if(r.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4===r.readyState&&t in this.pendingRequests)if(delete this.pendingRequests[t],0===r.status&&this.isHttp)n.onError&&n.onError(r.status);else{var i=r.status||200;if(200===i&&206===n.expectedStatus||i===n.expectedStatus){var a=function(t){var e=t.response;return"string"!=typeof e?e:(0,o.stringToBytes)(e).buffer}(r);if(206===i){var s=r.getResponseHeader("Content-Range"),u=/bytes (\d+)-(\d+)\/(\d+)/.exec(s);n.onDone({begin:parseInt(u[1],10),chunk:a})}else a?n.onDone({begin:0,chunk:a}):n.onError&&n.onError(r.status)}else n.onError&&n.onError(r.status)}}}},{key:"hasPendingRequests",value:function(){for(var t in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(t){return this.pendingRequests[t].xhr}},{key:"isPendingRequest",value:function(t){return t in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var t in this.pendingRequests)this.abortRequest(0|t)}},{key:"abortRequest",value:function(t){var e=this.pendingRequests[t].xhr;delete this.pendingRequests[t],e.abort()}}]),t}(),d=function(){function t(e){l(this,t),this._source=e,this._manager=new f(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return h(t,[{key:"_onRangeRequestReaderClosed",value:function(t){var e=this._rangeRequestReaders.indexOf(t);e>=0&&this._rangeRequestReaders.splice(e,1)}},{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new p(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){var n=new v(this._manager,t,e);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach((function(e){e.cancel(t)}))}}]),t}();e.PDFNetworkStream=d;var p=function(){function t(e,n){l(this,t),this._manager=e;var r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=n.url,this._fullRequestId=e.requestFull(r),this._headersReceivedCapability=(0,o.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}var e;return h(t,[{key:"_onHeadersReceived",value:function(){var t=this._fullRequestId,e=this._manager.getRequestXhr(t),n=function(t){return e.getResponseHeader(t)},r=(0,a.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=r.allowRangeRequests,o=r.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,a.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(t),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(t){t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,this._cachedChunks.length>0||(this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[])}},{key:"_onError",value:function(t){var e=this._url,n=(0,a.createResponseStatusError)(t,e);this._storedError=n,this._headersReceivedCapability.reject(n),this._requests.forEach((function(t){t.reject(n)})),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(t){this.onProgress&&this.onProgress({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}},{key:"read",value:(e=u(i.default.mark((function t(){var e,n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._storedError){t.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){t.next=5;break}return e=this._cachedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 5:if(!this._done){t.next=7;break}return t.abrupt("return",{value:void 0,done:!0});case 7:return n=(0,o.createPromiseCapability)(),this._requests.push(n),t.abrupt("return",n.promise);case 10:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0,this._headersReceivedCapability.reject(t),this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),t}(),v=function(){function t(e,n,r){l(this,t),this._manager=e;var i={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=e.requestRange(n,r,i),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}var e;return h(t,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(t){var e=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunk=e,this._done=!0,this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[],this._close()}},{key:"_onProgress",value:function(t){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:t.loaded})}},{key:"read",value:(e=u(i.default.mark((function t(){var e,n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===this._queuedChunk){t.next=4;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 4:if(!this._done){t.next=6;break}return t.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,o.createPromiseCapability)(),this._requests.push(n),t.abrupt("return",n.promise);case 9:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PDFFetchStream=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},o=n(5),a=n(213);function s(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){s(o,r,i,a,u,"next",t)}function u(t){s(o,r,i,a,u,"throw",t)}a(void 0)}))}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e,n){return{method:"GET",headers:t,signal:n&&n.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function d(t){var e=new Headers;for(var n in t){var r=t[n];void 0!==r&&e.append(n,r)}return e}var p=function(){function t(e){l(this,t),this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return h(t,[{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new v(this),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var n=new g(this,t,e);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach((function(e){e.cancel(t)}))}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFFetchStream=p;var v=function(){function t(e){var n=this;l(this,t),this._stream=e,this._reader=null,this._loaded=0,this._filename=null;var r=e.source;this._withCredentials=r.withCredentials||!1,this._contentLength=r.length,this._headersCapability=(0,o.createPromiseCapability)(),this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._headers=d(this._stream.httpHeaders);var i=r.url;fetch(i,f(this._headers,this._withCredentials,this._abortController)).then((function(t){if(!(0,a.validateResponseStatus)(t.status))throw(0,a.createResponseStatusError)(t.status,i);n._reader=t.body.getReader(),n._headersCapability.resolve();var e=function(e){return t.headers.get(e)},r=(0,a.validateRangeRequestCapabilities)({getResponseHeader:e,isHttp:n._stream.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),s=r.allowRangeRequests,u=r.suggestedLength;n._isRangeSupported=s,n._contentLength=u||n._contentLength,n._filename=(0,a.extractFilenameFromHeader)(e),!n._isStreamingSupported&&n._isRangeSupported&&n.cancel(new o.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}var e;return h(t,[{key:"read",value:(e=u(i.default.mark((function t(){var e,n,r,o;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._headersCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(e=t.sent,n=e.value,!(r=e.done)){t.next=9;break}return t.abrupt("return",{value:n,done:r});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),o=new Uint8Array(n).buffer,t.abrupt("return",{value:o,done:!1});case 13:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._reader&&this._reader.cancel(t),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}(),g=function(){function t(e,n,r){var i=this;l(this,t),this._stream=e,this._reader=null,this._loaded=0;var s=e.source;this._withCredentials=s.withCredentials||!1,this._readCapability=(0,o.createPromiseCapability)(),this._isStreamingSupported=!s.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=d(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(n,"-").concat(r-1));var u=s.url;fetch(u,f(this._headers,this._withCredentials,this._abortController)).then((function(t){if(!(0,a.validateResponseStatus)(t.status))throw(0,a.createResponseStatusError)(t.status,u);i._readCapability.resolve(),i._reader=t.body.getReader()})),this.onProgress=null}var e;return h(t,[{key:"read",value:(e=u(i.default.mark((function t(){var e,n,r,o;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(e=t.sent,n=e.value,!(r=e.done)){t.next=9;break}return t.abrupt("return",{value:n,done:r});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),o=new Uint8Array(n).buffer,t.abrupt("return",{value:o,done:!1});case 13:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._reader&&this._reader.cancel(t),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}()}])},root.pdfjsLib=factory(),module.exports=factory()}).call(this,__webpack_require__(8),__webpack_require__(18).Buffer,__webpack_require__(12))},function(t,e,n){var r=n(15),i=n(28);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);t.exports=i.locals||{}},function(t,e,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function u(t,e){for(var n={},r=[],i=0;i<t.length;i++){var o=t[i],u=e.base?o[0]+e.base:o[0],l=n[u]||0,c="".concat(u," ").concat(l);n[u]=l+1;var h=s(c),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==h?(a[h].references++,a[h].updater(f)):a.push({identifier:c,updater:g(f,e),references:1}),r.push(c)}return r}function l(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var c,h=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")});function f(t,e,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=h(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function d(t,e,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var p=null,v=0;function g(t,e){var n,r,i;if(e.singleton){var o=v++;n=p||(p=l(e)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=l(e),r=d.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=u(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=u(t,e),l=0;l<n.length;l++){var c=s(n[l]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}n=o}}}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),o=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,u;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);r&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},function(t,e,n){var r=n(15),i=n(33);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);t.exports=i.locals||{}},function(t,e,n){"use strict";(function(t){
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("zart",["vue"],e):"object"==typeof exports?exports.zart=e(require("vue")):t.zart=e(t.Vue)}("undefined"!=typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__3__){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=40)}([function(t,e,n){"use strict";n.d(e,"b",(function(){return v})),n.d(e,"a",(function(){return g.a})),n.d(e,"d",(function(){return y})),n.d(e,"i",(function(){return m})),n.d(e,"j",(function(){return b})),n.d(e,"e",(function(){return _})),n.d(e,"f",(function(){return C})),n.d(e,"g",(function(){return w})),n.d(e,"h",(function(){return S})),n.d(e,"c",(function(){return x}));var r=n(3),i=n.n(r);function o(t){return function(e,n){return e&&"string"!=typeof e&&(n=e,e=""),""+(e=e?t+"__"+e:t)+function t(e,n){return n?"string"==typeof n?" "+e+"--"+n:Array.isArray(n)?n.reduce((function(n,r){return n+t(e,r)}),""):Object.keys(n).reduce((function(r,i){return r+(n[i]?t(e,i):"")}),""):""}(e,n)}}var a=n(9),s=n(4),u={methods:{slots:function(t,e){void 0===t&&(t="default");var n=this.$slots,r=this.$scopedSlots[t];return r?r(e):n[t]}}},l=n(5),c={mounted:function(){var t=new l.b(this.$options.name,{});l.a.sharedInstance.trackAppear(t)},unmountd:function(){var t=new l.b(this.$options.name,{});l.a.sharedInstance.trackDisappear(t)}};function h(t){var e=this.name;t.component(e,this),t.component(Object(s.a)("-"+e),this)}function f(t){var e=t.scopedSlots||t.data.scopedSlots||{},n=t.slots();return Object.keys(n).forEach((function(t){e[t]||(e[t]=function(){return n[t]})})),e}function d(t){return function(e){return C(e)&&(e=function(t,e){var n=function(){var t=new l.b(e);l.a.sharedInstance.trackAppear(t)},r=function(){var t=new l.b(e);l.a.sharedInstance.trackDisappear(t)};return{functional:!0,props:t.props,model:t.model,render:function(e,i){return e("transition",{attrs:{appear:!0},on:{afterEnter:n,beforeLeave:r}},[t(e,i.props,f(i),i)])}}}(e,t)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(u),e.mixins.push(c)),e.name=t,e.install=h,e}}function p(t){var e=Object(s.a)(t)+".";return function(t){for(var n=a.a.messages(),r=x(n,e+t)||x(n,t),i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return C(r)?r.apply(void 0,o):r}}function v(t){return[d(t="zt-"+t),o(t),p(t)]}var g=n(7),y="undefined"!=typeof window,m=i.a.prototype.$isServer;function b(){}function _(t){return null!=t}function C(t){return"function"==typeof t}function w(t){return null!==t&&"object"==typeof t}function S(t){return w(t)&&C(t.then)&&C(t.catch)}function x(t,e){var n=e.split("."),r=t;return n.forEach((function(t){var e;r=null!=(e=r[t])?e:""})),r}},function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)}var i=["attrs","props","domProps"],o=["class","style","directives"],a=["on","nativeOn"],s=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce((function(t,e){for(var n in e)if(t[n])if(-1!==i.indexOf(n))t[n]=r({},t[n],e[n]);else if(-1!==o.indexOf(n)){var u=t[n]instanceof Array?t[n]:[t[n]],l=e[n]instanceof Array?e[n]:[e[n]];t[n]=u.concat(l)}else if(-1!==a.indexOf(n))for(var c in e[n])if(t[n][c]){var h=t[n][c]instanceof Array?t[n][c]:[t[n][c]],f=e[n][c]instanceof Array?e[n][c]:[e[n][c]];t[n][c]=h.concat(f)}else t[n][c]=e[n][c];else if("hook"==n)for(var d in e[n])t[n][d]=t[n][d]?s(t[n][d],e[n][d]):e[n][d];else t[n]=e[n];else t[n]=e[n];return t}),{})}},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__3__},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=/-(\w)/g;function i(t){return t.replace(r,(function(t,e){return e.toUpperCase()}))}function o(t,e){void 0===e&&(e=2);for(var n=t+"";n.length<e;)n="0"+n;return n}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var r=function(t,e){this.name=t,this.attributes=e||{}},i=function(){function t(){}var e=t.prototype;return e.setup=function(t){var e=t.project,n=t.app,r=t.route,i=t.send;this.project=e,this.app=n,this.route=r,this.send=i},e.getRoute=function(){return this.route instanceof Function?(0,this.route)():this.route},e.track=function(t){t.attributes.project=this.project,t.attributes.app=this.app,t.attributes.route=this.getRoute(),this.send?this.send(t):console.debug(JSON.stringify(t))},e.trackClick=function(t){t.attributes.click=1,this.track(t)},e.trackAppear=function(t){t.attributes.appear=1,this.track(t)},e.trackDisappear=function(t){t.attributes.disappear=1,this.track(t)},t}();i.sharedInstance=new i},function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return c}));var r=n(0),i=Date.now();var o=r.i?t:window,a=o.requestAnimationFrame||function(t){var e=Date.now(),n=Math.max(0,16-(e-i)),r=setTimeout(t,n);return i=e+n,r},s=o.cancelAnimationFrame||o.clearTimeout;function u(t){return a.call(o,t)}function l(t){u((function(){u(t)}))}function c(t){s.call(o,t)}}).call(this,n(10))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return u}));var r,i=n(0),o=n(8);function a(t){if(Object(i.e)(t))return t=String(t),Object(o.b)(t)?t+"px":t}function s(t){return+(t=t.replace(/rem/g,""))*function(){if(!r){var t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;r=parseFloat(e)}return r}()}function u(t){if("number"==typeof t)return t;if(i.d){if(-1!==t.indexOf("rem"))return s(t);if(-1!==t.indexOf("vw"))return function(t){return+(t=t.replace(/vw/g,""))*window.innerWidth/100}(t);if(-1!==t.indexOf("vh"))return function(t){return+(t=t.replace(/vh/g,""))*window.innerHeight/100}(t)}return parseFloat(t)}},function(t,e,n){"use strict";function r(t){return/^\d+(\.\d+)?$/.test(t)}function i(t){return Number.isNaN?Number.isNaN(t):t!=t}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";var r=n(3),i=n.n(r),o=n(0),a=Object.prototype.hasOwnProperty;function s(t,e){return Object.keys(e).forEach((function(n){!function(t,e,n){var r=e[n];Object(o.e)(r)&&(a.call(t,n)&&Object(o.g)(r)?t[n]=s(Object(t[n]),e[n]):t[n]=r)}(t,e,n)})),t}var u=i.a.prototype,l=i.a.util.defineReactive;l(u,"$vantLang","zh-CN"),l(u,"$vantMessages",{"zh-CN":{name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",ztDateTimePicker:{year:"年",month:"月",day:"日",hour:"时",minute:"分"},ztCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(t,e){return t+"年"+e+"月"},rangePrompt:function(t){return"选择天数不能超过 "+t+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},ztSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(t){return t+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"},ztAvatar:{defaultSrc:"https://zartui.egova.com.cn/static/head_shot.png",small:"small",medium:"medium",large:"large",square:"square",circle:"circle",defaultText:"头像"},ztEmpty:{notSearchResult:"没有搜索结果",notFound:"页面无法访问",developing:"项目建设中",error:"通用错误",notRight:"您暂未拥有访问权限"},ztSignature:{hint:"请在此签名",browserUnsupported:"对不起,当前浏览器不支持Canvas,无法使用本控件!",orientationChangeTip:"旋转屏幕触发重新绘制",reSign:"重签"}}});e.a={messages:function(){return u.$vantMessages[u.$vantLang]},use:function(t,e){var n;u.$vantLang=t,this.add(((n={})[t]=e,n))},add:function(t){void 0===t&&(t={}),s(u.$vantMessages,t)}}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";(function(t){var r=n(13);if(n(15),"server"!==t.env.VUE_ENV){var i=n(33).default,o=window.pdfjsLib;if("undefined"!=typeof window&&"Worker"in window&&-1===navigator.appVersion.indexOf("MSIE 10")){var a=n(35);o.GlobalWorkerOptions.workerPort=new a}var s=Object(r.a)(i(o))}else s=Object(r.a)({});e.a=s}).call(this,n(14))},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r={props:{initial:{type:Boolean,default:!1}},data:function(){return{size:{width:-1,height:-1}}},methods:{reset:function(){var t=this.$el.firstChild,e=this.$el.lastChild;t.scrollLeft=1e5,t.scrollTop=1e5,e.scrollLeft=1e5,e.scrollTop=1e5},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight}},watch:{size:{deep:!0,handler:function(t){this.reset(),this.$emit("resize",{width:this.size.width,height:this.size.height})}}},render:function(t){var e="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",n="position: absolute; left: 0; top: 0;";return t("div",{style:e+"animation-name: resizeSensorVisibility;",on:{"~animationstart":this.update}},[t("div",{style:e,on:{scroll:this.update}},[t("div",{style:n+"width: 100000px; height: 100000px;"})]),t("div",{style:e,on:{scroll:this.update}},[t("div",{style:n+"width: 200%; height: 200%;"})])])},beforeDestroy:function(){this.$emit("resize",{width:0,height:0}),this.$emit("resizeSensorBeforeDestroy")},mounted:function(){if(!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"attachEvent"in this.$el&&!("AnimationEvent"in window)){var t=function(){this.update(),e()}.bind(this),e=function(){this.$el.detachEvent("onresize",t),this.$off("resizeSensorBeforeDestroy",e)}.bind(this);this.$el.attachEvent("onresize",t),this.$on("resizeSensorBeforeDestroy",e),this.reset()}}},i=(n(31),n(12)),o=Object(i.a)(r,void 0,void 0,!1,null,null,null).exports;e.a=function(t){var e=t.createLoadingTask,n=t.PDFJSWrapper;return{createLoadingTask:e,render:function(t){return t("span",{attrs:{style:"position: relative; display: block"}},[t("canvas",{attrs:{style:"display: inline-block; width: 100%; height: 100%; vertical-align: top"},ref:"canvas"}),t("span",{style:"display: inline-block; width: 100%; height: 100%",class:"annotationLayer",ref:"annotationLayer"}),t(o,{props:{initial:!0},on:{resize:this.resize}})])},props:{src:{type:[String,Object,Uint8Array],default:""},page:{type:Number,default:1},rotate:{type:Number}},watch:{src:function(){this.pdf.loadDocument(this.src)},page:function(){this.pdf.loadPage(this.page,this.rotate)},rotate:function(){this.pdf.renderPage(this.rotate)}},methods:{resize:function(t){if(null!==this.$el.parentNode&&(0!==t.width||0!==t.height)){this.$refs.canvas.style.height=this.$refs.canvas.offsetWidth*(this.$refs.canvas.height/this.$refs.canvas.width)+"px";var e=this.pdf.getResolutionScale();(e<.85||e>1.15)&&this.pdf.renderPage(this.rotate)}},print:function(t,e){this.pdf.printPage(t,e)}},mounted:function(){this.pdf=new n(this.$refs.canvas,this.$refs.annotationLayer,this.$emit.bind(this)),this.$on("loaded",(function(){this.pdf.loadPage(this.page,this.rotate)})),this.$on("page-size",(function(t,e){this.$refs.canvas.style.height=this.$refs.canvas.offsetWidth*(e/t)+"px"})),this.pdf.loadDocument(this.src)},destroyed:function(){this.pdf.destroy()}}}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,l=[],c=!1,h=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&d())}function d(){if(!c){var t=s(f);c=!0;for(var e=l.length;e;){for(u=l,l=[];++h<e;)u&&u[h].run();h=-1,e=l.length}u=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||c||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(global,Buffer,process,module){var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1),root,factory;root="undefined"==typeof window?global:window,factory=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLinkAttributes",{enumerable:!0,get:function(){return r.addLinkAttributes}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(e,"LinkTarget",{enumerable:!0,get:function(){return r.LinkTarget}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return i.build}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return i.getDocument}}),Object.defineProperty(e,"LoopbackPort",{enumerable:!0,get:function(){return i.LoopbackPort}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return i.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return i.PDFWorker}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return i.version}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return o.CMapCompressionType}}),Object.defineProperty(e,"createObjectURL",{enumerable:!0,get:function(){return o.createObjectURL}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return o.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return o.createValidAbsoluteUrl}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return o.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return o.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return o.OPS}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return o.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return o.PermissionFlag}}),Object.defineProperty(e,"removeNullCharacters",{enumerable:!0,get:function(){return o.removeNullCharacters}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return o.shadow}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return o.UnexpectedResponseException}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return o.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return o.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return o.VerbosityLevel}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(e,"apiCompatibilityParams",{enumerable:!0,get:function(){return s.apiCompatibilityParams}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return u.GlobalWorkerOptions}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return l.renderTextLayer}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return c.SVGGraphics}});var r=n(1),i=n(198),o=n(5),a=n(209),s=n(200),u=n(203),l=n(210),c=n(211);if(n(7).isNodeJS){var h=n(212).PDFNodeStream;(0,i.setPDFNetworkStreamFactory)((function(t){return new h(t)}))}else{var f,d=n(215).PDFNetworkStream;(0,r.isFetchSupported)()&&(f=n(216).PDFFetchStream),(0,i.setPDFNetworkStreamFactory)((function(t){return f&&(0,r.isValidFetchUrl)(t.url)?new f(t):new d(t)}))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.addLinkAttributes=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.url,r=e.target,i=e.rel,a=e.enabled,s=void 0===a||a;(0,o.assert)(n&&"string"==typeof n,'addLinkAttributes: A valid "url" parameter must provided.');var u=(0,o.removeNullCharacters)(n);s?t.href=t.title=u:(t.href="",t.title="Disabled: ".concat(u),t.onclick=function(){return!1});var l="";switch(r){case x.NONE:break;case x.SELF:l="_self";break;case x.BLANK:l="_blank";break;case x.PARENT:l="_parent";break;case x.TOP:l="_top"}t.target=l,t.rel="string"==typeof i?i:"noopener noreferrer nofollow"},e.getFilenameFromUrl=function(t){var e=t.indexOf("#"),n=t.indexOf("?"),r=Math.min(e>0?e:t.length,n>0?n:t.length);return t.substring(t.lastIndexOf("/",r)+1,r)},e.isFetchSupported=P,e.isValidFetchUrl=T,e.loadScript=function(t){return new Promise((function(e,n){var r=document.createElement("script");r.src=t,r.onload=e,r.onerror=function(){n(new Error("Cannot load script at: ".concat(r.src)))},(document.head||document.documentElement).appendChild(r)}))},e.deprecated=function(t){console.log("Deprecated API usage: "+t)},e.PDFDateString=e.StatTimer=e.DOMSVGFactory=e.DOMCMapReaderFactory=e.DOMCanvasFactory=e.DEFAULT_LINK_REL=e.LinkTarget=e.RenderingCancelledException=e.PageViewport=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},o=n(5);function a(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function p(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){d(o,r,i,a,s,"next",t)}function s(t){d(o,r,i,a,s,"throw",t)}a(void 0)}))}}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),t}e.DEFAULT_LINK_REL="noopener noreferrer nofollow";var m="http://www.w3.org/2000/svg",b=function(){function t(){v(this,t)}return y(t,[{key:"create",value:function(t,e){if(t<=0||e<=0)throw new Error("Invalid canvas size");var n=document.createElement("canvas"),r=n.getContext("2d");return n.width=t,n.height=e,{canvas:n,context:r}}},{key:"reset",value:function(t,e,n){if(!t.canvas)throw new Error("Canvas is not specified");if(e<=0||n<=0)throw new Error("Invalid canvas size");t.canvas.width=e,t.canvas.height=n}},{key:"destroy",value:function(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}}]),t}();e.DOMCanvasFactory=b;var _=function(){function t(e){var n=e.baseUrl,r=void 0===n?null:n,i=e.isCompressed,o=void 0!==i&&i;v(this,t),this.baseUrl=r,this.isCompressed=o}return y(t,[{key:"fetch",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){var t=p(i.default.mark((function t(e){var n,r,a,s=this;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.name,this.baseUrl){t.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(n){t.next=5;break}throw new Error("CMap name must be specified.");case 5:if(r=this.baseUrl+n+(this.isCompressed?".bcmap":""),a=this.isCompressed?o.CMapCompressionType.BINARY:o.CMapCompressionType.NONE,!P()||!T(r,document.baseURI)){t.next=9;break}return t.abrupt("return",fetch(r).then(function(){var t=p(i.default.mark((function t(e){var n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.ok){t.next=2;break}throw new Error(e.statusText);case 2:if(!s.isCompressed){t.next=10;break}return t.t0=Uint8Array,t.next=6,e.arrayBuffer();case 6:t.t1=t.sent,n=new t.t0(t.t1),t.next=15;break;case 10:return t.t2=o.stringToBytes,t.next=13,e.text();case 13:t.t3=t.sent,n=(0,t.t2)(t.t3);case 15:return t.abrupt("return",{cMapData:n,compressionType:a});case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){throw new Error("Unable to load ".concat(s.isCompressed?"binary ":"")+"CMap at: ".concat(r))})));case 9:return t.abrupt("return",new Promise((function(t,e){var n=new XMLHttpRequest;n.open("GET",r,!0),s.isCompressed&&(n.responseType="arraybuffer"),n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE){var r;if((200===n.status||0===n.status)&&(s.isCompressed&&n.response?r=new Uint8Array(n.response):!s.isCompressed&&n.responseText&&(r=(0,o.stringToBytes)(n.responseText)),r))return void t({cMapData:r,compressionType:a});e(new Error(n.statusText))}},n.send(null)})).catch((function(t){throw new Error("Unable to load ".concat(s.isCompressed?"binary ":"")+"CMap at: ".concat(r))})));case 10:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}())}]),t}();e.DOMCMapReaderFactory=_;var C=function(){function t(){v(this,t)}return y(t,[{key:"create",value:function(t,e){(0,o.assert)(t>0&&e>0,"Invalid SVG dimensions");var n=document.createElementNS(m,"svg:svg");return n.setAttribute("version","1.1"),n.setAttribute("width",t+"px"),n.setAttribute("height",e+"px"),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 "+t+" "+e),n}},{key:"createElement",value:function(t){return(0,o.assert)("string"==typeof t,"Invalid SVG element type"),document.createElementNS(m,t)}}]),t}();e.DOMSVGFactory=C;var w=function(){function t(e){var n=e.viewBox,r=e.scale,i=e.rotation,o=e.offsetX,a=void 0===o?0:o,s=e.offsetY,u=void 0===s?0:s,l=e.dontFlip,c=void 0!==l&&l;v(this,t),this.viewBox=n,this.scale=r,this.rotation=i,this.offsetX=a,this.offsetY=u;var h,f,d,p,g,y,m,b,_=(n[2]+n[0])/2,C=(n[3]+n[1])/2;switch(i=(i%=360)<0?i+360:i){case 180:h=-1,f=0,d=0,p=1;break;case 90:h=0,f=1,d=1,p=0;break;case 270:h=0,f=-1,d=-1,p=0;break;case 0:h=1,f=0,d=0,p=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}c&&(d=-d,p=-p),0===h?(g=Math.abs(C-n[1])*r+a,y=Math.abs(_-n[0])*r+u,m=Math.abs(n[3]-n[1])*r,b=Math.abs(n[2]-n[0])*r):(g=Math.abs(_-n[0])*r+a,y=Math.abs(C-n[1])*r+u,m=Math.abs(n[2]-n[0])*r,b=Math.abs(n[3]-n[1])*r),this.transform=[h*r,f*r,d*r,p*r,g-h*r*_-d*r*C,y-f*r*_-p*r*C],this.width=m,this.height=b}return y(t,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.scale,r=void 0===n?this.scale:n,i=e.rotation,o=void 0===i?this.rotation:i,a=e.offsetX,s=void 0===a?this.offsetX:a,u=e.offsetY,l=void 0===u?this.offsetY:u,c=e.dontFlip,h=void 0!==c&&c;return new t({viewBox:this.viewBox.slice(),scale:r,rotation:o,offsetX:s,offsetY:l,dontFlip:h})}},{key:"convertToViewportPoint",value:function(t,e){return o.Util.applyTransform([t,e],this.transform)}},{key:"convertToViewportRectangle",value:function(t){var e=o.Util.applyTransform([t[0],t[1]],this.transform),n=o.Util.applyTransform([t[2],t[3]],this.transform);return[e[0],e[1],n[0],n[1]]}},{key:"convertToPdfPoint",value:function(t,e){return o.Util.applyInverseTransform([t,e],this.transform)}}]),t}();e.PageViewport=w;var S=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(n,t);var e=c(n);function n(t,r){var i;return v(this,n),(i=e.call(this,t)).type=r,i}return n}(o.BaseException);e.RenderingCancelledException=S;var x={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};e.LinkTarget=x;var A,k=function(){function t(){v(this,t),this.started=Object.create(null),this.times=[]}return y(t,[{key:"time",value:function(t){t in this.started&&(0,o.warn)("Timer is already running for ".concat(t)),this.started[t]=Date.now()}},{key:"timeEnd",value:function(t){t in this.started||(0,o.warn)("Timer has not been started for ".concat(t)),this.times.push({name:t,start:this.started[t],end:Date.now()}),delete this.started[t]}},{key:"toString",value:function(){var t,e=[],n=0,r=a(this.times);try{for(r.s();!(t=r.n()).done;){var i=t.value.name;i.length>n&&(n=i.length)}}catch(t){r.e(t)}finally{r.f()}var o,s=a(this.times);try{for(s.s();!(o=s.n()).done;){var u=o.value,l=u.end-u.start;e.push("".concat(u.name.padEnd(n)," ").concat(l,"ms\n"))}}catch(t){s.e(t)}finally{s.f()}return e.join("")}}]),t}();function P(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function T(t,e){try{var n=(e?new URL(t,e):new URL(t)).protocol;return"http:"===n||"https:"===n}catch(t){return!1}}e.StatTimer=k;var L=function(){function t(){v(this,t)}return y(t,null,[{key:"toDateObject",value:function(t){if(!t||!(0,o.isString)(t))return null;A||(A=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var e=A.exec(t);if(!e)return null;var n=parseInt(e[1],10),r=parseInt(e[2],10);r=r>=1&&r<=12?r-1:0;var i=parseInt(e[3],10);i=i>=1&&i<=31?i:1;var a=parseInt(e[4],10);a=a>=0&&a<=23?a:0;var s=parseInt(e[5],10);s=s>=0&&s<=59?s:0;var u=parseInt(e[6],10);u=u>=0&&u<=59?u:0;var l=e[7]||"Z",c=parseInt(e[8],10);c=c>=0&&c<=23?c:0;var h=parseInt(e[9],10)||0;return h=h>=0&&h<=59?h:0,"-"===l?(a+=c,s+=h):"+"===l&&(a-=c,s-=h),new Date(Date.UTC(n,r,i,a,s,u))}}]),t}();e.PDFDateString=L},function(t,e,n){t.exports=n(3)},function(t,e,n){(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=function(t){var n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),a=new S(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var c={};function h(){}function f(){}function d(){}var p={};p[o]=function(){return this};var v=Object.getPrototypeOf,g=v&&v(v(x([])));g&&g!==n&&r.call(g,o)&&(p=g);var y=d.prototype=h.prototype=Object.create(p);function m(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function b(t,n){var i;this._invoke=function(o,a){function s(){return new n((function(i,s){!function i(o,a,s,u){var c=l(t[o],t,a);if("throw"!==c.type){var h=c.arg,f=h.value;return f&&"object"===e(f)&&r.call(f,"__await")?n.resolve(f.__await).then((function(t){i("next",t,s,u)}),(function(t){i("throw",t,s,u)})):n.resolve(f).then((function(t){h.value=t,s(h)}),(function(t){return i("throw",t,s,u)}))}u(c.arg)}(o,a,i,s)}))}return i=i?i.then(s,s):s()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,c;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return f.prototype=y.constructor=d,d.constructor=f,d[s]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},m(b.prototype),b.prototype[a]=function(){return this},t.AsyncIterator=b,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new b(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(y),y[s]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=x,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(4)(t))},function(t,e,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.arrayByteLength=P,e.arraysToBytes=function(t){var e=t.length;if(1===e&&t[0]instanceof Uint8Array)return t[0];for(var n=0,r=0;r<e;r++)n+=P(t[r]);for(var i=0,o=new Uint8Array(n),a=0;a<e;a++){var s=t[a];s instanceof Uint8Array||(s="string"==typeof s?k(s):new Uint8Array(s));var u=s.byteLength;o.set(s,i),i+=u}return o},e.assert=v,e.bytesToString=function(t){v(null!==t&&"object"===i(t)&&void 0!==t.length,"Invalid argument for bytesToString");var e=t.length;if(e<8192)return String.fromCharCode.apply(null,t);for(var n=[],r=0;r<e;r+=8192){var o=Math.min(r+8192,e),a=t.subarray(r,o);n.push(String.fromCharCode.apply(null,a))}return n.join("")},e.createPromiseCapability=function(){var t=Object.create(null),e=!1;return Object.defineProperty(t,"settled",{get:function(){return e}}),t.promise=new Promise((function(n,r){t.resolve=function(t){e=!0,n(t)},t.reject=function(t){e=!0,r(t)}})),t},e.getVerbosityLevel=function(){return f},e.info=function(t){f>=h.INFOS&&console.log("Info: ".concat(t))},e.isArrayBuffer=function(t){return"object"===i(t)&&null!==t&&void 0!==t.byteLength},e.isArrayEqual=function(t,e){return t.length===e.length&&t.every((function(t,n){return t===e[n]}))},e.isBool=function(t){return"boolean"==typeof t},e.isEmptyObj=function(t){for(var e in t)return!1;return!0},e.isNum=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSameOrigin=function(t,e){var n;try{if(!(n=new URL(t)).origin||"null"===n.origin)return!1}catch(t){return!1}var r=new URL(e,n);return n.origin===r.origin},e.createValidAbsoluteUrl=function(t,e){if(!t)return null;try{var n=e?new URL(t,e):new URL(t);if(function(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(t){}return null},e.removeNullCharacters=function(t){return"string"!=typeof t?(d("The argument for removeNullCharacters must be a string."),t):t.replace(A,"")},e.setVerbosityLevel=function(t){Number.isInteger(t)&&(f=t)},e.shadow=g,e.string32=function(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)},e.stringToBytes=k,e.stringToPDFString=function(t){var e=t.length,n=[];if("þ"===t[0]&&"ÿ"===t[1])for(var r=2;r<e;r+=2)n.push(String.fromCharCode(t.charCodeAt(r)<<8|t.charCodeAt(r+1)));else if("ÿ"===t[0]&&"þ"===t[1])for(var i=2;i<e;i+=2)n.push(String.fromCharCode(t.charCodeAt(i+1)<<8|t.charCodeAt(i)));else for(var o=0;o<e;++o){var a=F[t.charCodeAt(o)];n.push(a?String.fromCharCode(a):t.charAt(o))}return n.join("")},e.stringToUTF8String=function(t){return decodeURIComponent(escape(t))},e.utf8StringToString=function(t){return unescape(encodeURIComponent(t))},e.warn=d,e.unreachable=p,e.IsEvalSupportedCached=e.IsLittleEndianCached=e.createObjectURL=e.FormatError=e.Util=e.UnknownErrorException=e.UnexpectedResponseException=e.TextRenderingMode=e.StreamType=e.PermissionFlag=e.PasswordResponses=e.PasswordException=e.MissingPDFException=e.InvalidPDFException=e.AbortException=e.CMapCompressionType=e.ImageKind=e.FontType=e.AnnotationType=e.AnnotationStateModelType=e.AnnotationReviewState=e.AnnotationReplyType=e.AnnotationMarkedState=e.AnnotationFlag=e.AnnotationFieldFlag=e.AnnotationBorderStyleType=e.UNSUPPORTED_FEATURES=e.VerbosityLevel=e.OPS=e.IDENTITY_MATRIX=e.FONT_IDENTITY_MATRIX=e.BaseException=void 0,n(6),e.IDENTITY_MATRIX=[1,0,0,1,0,0],e.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],e.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},e.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},e.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},e.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},e.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},e.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},e.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},e.AnnotationReplyType={GROUP:"Group",REPLY:"R"},e.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},e.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},e.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},e.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},e.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var h={ERRORS:0,WARNINGS:1,INFOS:5};e.VerbosityLevel=h,e.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},e.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},e.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath"},e.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var f=h.WARNINGS;function d(t){f>=h.WARNINGS&&console.log("Warning: ".concat(t))}function p(t){throw new Error(t)}function v(t,e){t||p(e)}function g(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}var y=function(){function t(e){this.constructor===t&&p("Cannot initialize BaseException."),this.message=e,this.name=this.constructor.name}return t.prototype=new Error,t.constructor=t,t}();e.BaseException=y;var m=function(t){a(n,t);var e=u(n);function n(t,r){var i;return o(this,n),(i=e.call(this,t)).code=r,i}return n}(y);e.PasswordException=m;var b=function(t){a(n,t);var e=u(n);function n(t,r){var i;return o(this,n),(i=e.call(this,t)).details=r,i}return n}(y);e.UnknownErrorException=b;var _=function(t){a(n,t);var e=u(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(y);e.InvalidPDFException=_;var C=function(t){a(n,t);var e=u(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(y);e.MissingPDFException=C;var w=function(t){a(n,t);var e=u(n);function n(t,r){var i;return o(this,n),(i=e.call(this,t)).status=r,i}return n}(y);e.UnexpectedResponseException=w;var S=function(t){a(n,t);var e=u(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(y);e.FormatError=S;var x=function(t){a(n,t);var e=u(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(y);e.AbortException=x;var A=/\x00/g;function k(t){v("string"==typeof t,"Invalid argument for stringToBytes");for(var e=t.length,n=new Uint8Array(e),r=0;r<e;++r)n[r]=255&t.charCodeAt(r);return n}function P(t){return void 0!==t.length?t.length:(v(void 0!==t.byteLength,"arrayByteLength - invalid argument."),t.byteLength)}var T={get value(){return g(this,"value",((t=new Uint8Array(4))[0]=1,1===new Uint32Array(t.buffer,0,1)[0]));var t}};e.IsLittleEndianCached=T;var L={get value(){return g(this,"value",function(){try{return new Function(""),!0}catch(t){return!1}}())}};e.IsEvalSupportedCached=L;var E=["rgb(",0,",",0,",",0,")"],R=function(){function t(){o(this,t)}var e,n,i;return e=t,i=[{key:"makeCssRgb",value:function(t,e,n){return E[1]=t,E[3]=e,E[5]=n,E.join("")}},{key:"transform",value:function(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}},{key:"applyTransform",value:function(t,e){return[t[0]*e[0]+t[1]*e[2]+e[4],t[0]*e[1]+t[1]*e[3]+e[5]]}},{key:"applyInverseTransform",value:function(t,e){var n=e[0]*e[3]-e[1]*e[2];return[(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/n,(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/n]}},{key:"getAxialAlignedBoundingBox",value:function(e,n){var r=t.applyTransform(e,n),i=t.applyTransform(e.slice(2,4),n),o=t.applyTransform([e[0],e[3]],n),a=t.applyTransform([e[2],e[1]],n);return[Math.min(r[0],i[0],o[0],a[0]),Math.min(r[1],i[1],o[1],a[1]),Math.max(r[0],i[0],o[0],a[0]),Math.max(r[1],i[1],o[1],a[1])]}},{key:"inverseTransform",value:function(t){var e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}},{key:"apply3dTransform",value:function(t,e){return[t[0]*e[0]+t[1]*e[1]+t[2]*e[2],t[3]*e[0]+t[4]*e[1]+t[5]*e[2],t[6]*e[0]+t[7]*e[1]+t[8]*e[2]]}},{key:"singularValueDecompose2dScale",value:function(t){var e=[t[0],t[2],t[1],t[3]],n=t[0]*e[0]+t[1]*e[2],r=t[0]*e[1]+t[1]*e[3],i=t[2]*e[0]+t[3]*e[2],o=t[2]*e[1]+t[3]*e[3],a=(n+o)/2,s=Math.sqrt((n+o)*(n+o)-4*(n*o-i*r))/2,u=a+s||1,l=a-s||1;return[Math.sqrt(u),Math.sqrt(l)]}},{key:"normalizeRect",value:function(t){var e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}},{key:"intersect",value:function(e,n){function r(t,e){return t-e}var i=[e[0],e[2],n[0],n[2]].sort(r),o=[e[1],e[3],n[1],n[3]].sort(r),a=[];return e=t.normalizeRect(e),n=t.normalizeRect(n),i[0]===e[0]&&i[1]===n[0]||i[0]===n[0]&&i[1]===e[0]?(a[0]=i[1],a[2]=i[2],o[0]===e[1]&&o[1]===n[1]||o[0]===n[1]&&o[1]===e[1]?(a[1]=o[1],a[3]=o[2],a):null):null}}],(n=null)&&r(e.prototype,n),i&&r(e,i),t}();e.Util=R;var O,F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],I=(O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n&&URL.createObjectURL){var r=new Blob([t],{type:e});return URL.createObjectURL(r)}for(var i="data:".concat(e,";base64,"),o=0,a=t.length;o<a;o+=3){var s=255&t[o],u=255&t[o+1],l=255&t[o+2],c=s>>2,h=(3&s)<<4|u>>4,f=o+1<a?(15&u)<<2|l>>6:64,d=o+2<a?63&l:64;i+=O[c]+O[h]+O[f]+O[d]}return i});e.createObjectURL=I},function(t,e,n){var r=n(7);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}if("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=n(8)),globalThis._pdfjsCompatibilityChecked=!0;var o="object"===("undefined"==typeof window?"undefined":i(window))&&"object"===("undefined"==typeof document?"undefined":i(document)),a="undefined"!=typeof navigator&&navigator.userAgent||"",s=/Trident/.test(a);!globalThis.btoa&&r.isNodeJS&&(globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")}),!globalThis.atob&&r.isNodeJS&&(globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")}),o&&void 0===Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),function(){if(o&&!r.isNodeJS){var t=document.createElement("div");if(t.classList.add("testOne","testTwo"),!0!==t.classList.contains("testOne")||!0!==t.classList.contains("testTwo")){var e=DOMTokenList.prototype.add,n=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];e.call(this,a)}},DOMTokenList.prototype.remove=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(var i=0,o=e;i<o.length;i++){var a=o[i];n.call(this,a)}}}}}(),o&&!r.isNodeJS&&!1!==document.createElement("div").classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(t){var e=arguments.length>1?!!arguments[1]:!this.contains(t);return this[e?"add":"remove"](t),e}),function(){if(o&&s){var t=window.history.pushState,e=window.history.replaceState;window.history.pushState=function(e,n,r){var i=void 0===r?[e,n]:[e,n,r];t.apply(this,i)},window.history.replaceState=function(t,n,r){var i=void 0===r?[t,n]:[t,n,r];e.apply(this,i)}}}(),String.prototype.startsWith||n(53),String.prototype.endsWith||n(64),String.prototype.includes||n(66),Array.prototype.includes||n(68),Array.from||n(76),Object.assign||n(98),Math.log2||(Math.log2=n(101)),Number.isNaN||(Number.isNaN=n(103)),Number.isInteger||(Number.isInteger=n(105)),Uint8Array.prototype.slice||n(108),globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=n(113)),globalThis.URL=n(136),function(){var t=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(t){t.close()}}),t=!0}catch(t){}t||(globalThis.ReadableStream=n(143).ReadableStream)}(),globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=n(144)),globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=n(151)),globalThis.WeakMap||(globalThis.WeakMap=n(153)),globalThis.WeakSet||(globalThis.WeakSet=n(159)),String.prototype.codePointAt||n(161),String.fromCodePoint||(String.fromCodePoint=n(163)),globalThis.Symbol||n(165),String.prototype.padStart||n(188),String.prototype.padEnd||n(193),Object.values||(Object.values=n(195))}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.isNodeJS=void 0;var i="object"===(void 0===process?"undefined":r(process))&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;e.isNodeJS=i},function(t,e,n){n(9),t.exports=n(11)},function(t,e,n){n(10)({global:!0},{globalThis:n(11)})},function(t,e,n){var r=n(11),i=n(12).f,o=n(26),a=n(29),s=n(30),u=n(40),l=n(52);t.exports=function(t,e){var n,c,h,f,d,p=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in e){if(f=e[c],h=t.noTargetGet?(d=i(n,c))&&d.value:n[c],!l(v?c:p+(g?".":"#")+c,t.forced)&&void 0!==h){if(typeof f==typeof h)continue;u(f,h)}(t.sham||h&&h.sham)&&o(f,"sham",!0),a(n,c,f,t)}}},function(t,e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},function(t,e,n){var r=n(13),i=n(15),o=n(16),a=n(17),s=n(21),u=n(23),l=n(24),c=Object.getOwnPropertyDescriptor;e.f=r?c:function(t,e){if(t=a(t),e=s(e,!0),l)try{return c(t,e)}catch(t){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},function(t,e,n){var r=n(14);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(18),i=n(20);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(14),i=n(19),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(22);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(13),i=n(14),o=n(25);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(11),i=n(22),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){var r=n(13),i=n(27),o=n(16);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(13),i=n(24),o=n(28),a=n(21),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(22);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(11),i=n(26),o=n(23),a=n(30),s=n(31),u=n(33),l=u.get,c=u.enforce,h=String(String).split("String");(t.exports=function(t,e,n,s){var u=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),c(n).source=h.join("string"==typeof e?e:"")),t!==r?(u?!f&&t[e]&&(l=!0):delete t[e],l?t[e]=n:i(t,e,n)):l?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},function(t,e,n){var r=n(11),i=n(26);t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(32),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},function(t,e,n){var r=n(11),i=n(30),o=r["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,n){var r,i,o,a=n(34),s=n(11),u=n(22),l=n(26),c=n(23),h=n(35),f=n(39),d=s.WeakMap;if(a){var p=new d,v=p.get,g=p.has,y=p.set;r=function(t,e){return y.call(p,t,e),e},i=function(t){return v.call(p,t)||{}},o=function(t){return g.call(p,t)}}else{var m=h("state");f[m]=!0,r=function(t,e){return l(t,m,e),e},i=function(t){return c(t,m)?t[m]:{}},o=function(t){return c(t,m)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(11),i=n(31),o=r.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},function(t,e,n){var r=n(36),i=n(38),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,n){var r=n(37),i=n(32);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e){t.exports={}},function(t,e,n){var r=n(23),i=n(41),o=n(12),a=n(27);t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,l=0;l<n.length;l++){var c=n[l];r(t,c)||s(t,c,u(e,c))}}},function(t,e,n){var r=n(42),i=n(44),o=n(51),a=n(28);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(43),i=n(11),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},function(t,e,n){var r=n(11);t.exports=r},function(t,e,n){var r=n(45),i=n(50).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(23),i=n(17),o=n(46).indexOf,a=n(39);t.exports=function(t,e){var n,s=i(t),u=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&l.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(17),i=n(47),o=n(49),a=function(t){return function(e,n,a){var s,u=r(e),l=i(u.length),c=o(a,l);if(t&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,n){var r=n(48),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(48),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(14),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==l||n!=u&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},function(t,e,n){n(54);var r=n(61);t.exports=r("String","startsWith")},function(t,e,n){var r,i=n(10),o=n(12).f,a=n(47),s=n(55),u=n(20),l=n(60),c=n(37),h="".startsWith,f=Math.min,d=l("startsWith");i({target:"String",proto:!0,forced:!(!c&&!d&&(r=o(String.prototype,"startsWith"),r&&!r.writable)||d)},{startsWith:function(t){var e=String(u(this));s(t);var n=a(f(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return h?h.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){var r=n(56);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,n){var r=n(22),i=n(19),o=n(57)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(11),i=n(36),o=n(23),a=n(38),s=n(58),u=n(59),l=i("wks"),c=r.Symbol,h=u?c:c&&c.withoutSetter||a;t.exports=function(t){return o(l,t)||(s&&o(c,t)?l[t]=c[t]:l[t]=h("Symbol."+t)),l[t]}},function(t,e,n){var r=n(14);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,e,n){var r=n(58);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(57)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){var r=n(11),i=n(62),o=Function.call;t.exports=function(t,e,n){return i(o,r[t].prototype[e],n)}},function(t,e,n){var r=n(63);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){n(65);var r=n(61);t.exports=r("String","endsWith")},function(t,e,n){var r,i=n(10),o=n(12).f,a=n(47),s=n(55),u=n(20),l=n(60),c=n(37),h="".endsWith,f=Math.min,d=l("endsWith");i({target:"String",proto:!0,forced:!(!c&&!d&&(r=o(String.prototype,"endsWith"),r&&!r.writable)||d)},{endsWith:function(t){var e=String(u(this));s(t);var n=arguments.length>1?arguments[1]:void 0,r=a(e.length),i=void 0===n?r:f(a(n),r),o=String(t);return h?h.call(e,o,i):e.slice(i-o.length,i)===o}})},function(t,e,n){n(67);var r=n(61);t.exports=r("String","includes")},function(t,e,n){var r=n(10),i=n(55),o=n(20);r({target:"String",proto:!0,forced:!n(60)("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){n(69);var r=n(61);t.exports=r("Array","includes")},function(t,e,n){var r=n(10),i=n(46).includes,o=n(70);r({target:"Array",proto:!0,forced:!n(75)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(t,e,n){var r=n(57),i=n(71),o=n(27),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e,n){var r,i=n(28),o=n(72),a=n(50),s=n(39),u=n(74),l=n(25),c=n(35),h=c("IE_PROTO"),f=function(){},d=function(t){return"<script>"+t+"<\/script>"},p=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;p=r?function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):((e=l("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[h]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(f.prototype=i(t),n=new f,f.prototype=null,n[h]=t):n=p(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(13),i=n(27),o=n(28),a=n(73);t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),s=r.length,u=0;s>u;)i.f(t,n=r[u++],e[n]);return t}},function(t,e,n){var r=n(45),i=n(50);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(42);t.exports=r("document","documentElement")},function(t,e,n){var r=n(13),i=n(14),o=n(23),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var n=[][t],l=!!o(e,"ACCESSORS")&&e.ACCESSORS,c=o(e,0)?e[0]:u,h=o(e,1)?e[1]:void 0;return s[t]=!!n&&!i((function(){if(l&&!r)return!0;var t={length:-1};l?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,c,h)}))}},function(t,e,n){n(77),n(89);var r=n(43);t.exports=r.Array.from},function(t,e,n){var r=n(78).charAt,i=n(33),o=n(79),a=i.set,s=i.getterFor("String Iterator");o(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=s(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(48),i=n(20),o=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}};t.exports={codeAt:o(!1),charAt:o(!0)}},function(t,e,n){var r=n(10),i=n(80),o=n(82),a=n(87),s=n(85),u=n(26),l=n(29),c=n(57),h=n(37),f=n(86),d=n(81),p=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,g=c("iterator"),y=function(){return this};t.exports=function(t,e,n,c,d,m,b){i(n,e,c);var _,C,w,S=function(t){if(t===d&&T)return T;if(!v&&t in k)return k[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},x=e+" Iterator",A=!1,k=t.prototype,P=k[g]||k["@@iterator"]||d&&k[d],T=!v&&P||S(d),L="Array"==e&&k.entries||P;if(L&&(_=o(L.call(new t)),p!==Object.prototype&&_.next&&(h||o(_)===p||(a?a(_,p):"function"!=typeof _[g]&&u(_,g,y)),s(_,x,!0,!0),h&&(f[x]=y))),"values"==d&&P&&"values"!==P.name&&(A=!0,T=function(){return P.call(this)}),h&&!b||k[g]===T||u(k,g,T),f[e]=T,d)if(C={values:S("values"),keys:m?T:S("keys"),entries:S("entries")},b)for(w in C)(v||A||!(w in k))&&l(k,w,C[w]);else r({target:e,proto:!0,forced:v||A},C);return C}},function(t,e,n){var r=n(81).IteratorPrototype,i=n(71),o=n(16),a=n(85),s=n(86),u=function(){return this};t.exports=function(t,e,n){var l=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,l,!1,!0),s[l]=u,t}},function(t,e,n){var r,i,o,a=n(82),s=n(26),u=n(23),l=n(57),c=n(37),h=l("iterator"),f=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):f=!0),null==r&&(r={}),c||u(r,h)||s(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(t,e,n){var r=n(23),i=n(83),o=n(35),a=n(84),s=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(20);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(14);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(27).f,i=n(23),o=n(57)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,n){var r=n(28),i=n(88);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},function(t,e,n){var r=n(22);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var r=n(10),i=n(90);r({target:"Array",stat:!0,forced:!n(97)((function(t){Array.from(t)}))},{from:i})},function(t,e,n){var r=n(62),i=n(83),o=n(91),a=n(92),s=n(47),u=n(93),l=n(94);t.exports=function(t){var e,n,c,h,f,d,p=i(t),v="function"==typeof this?this:Array,g=arguments.length,y=g>1?arguments[1]:void 0,m=void 0!==y,b=l(p),_=0;if(m&&(y=r(y,g>2?arguments[2]:void 0,2)),null==b||v==Array&&a(b))for(n=new v(e=s(p.length));e>_;_++)d=m?y(p[_],_):p[_],u(n,_,d);else for(f=(h=b.call(p)).next,n=new v;!(c=f.call(h)).done;_++)d=m?o(h,y,[c.value,_],!0):c.value,u(n,_,d);return n.length=_,n}},function(t,e,n){var r=n(28);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(57),i=n(86),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},function(t,e,n){var r=n(21),i=n(27),o=n(16);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},function(t,e,n){var r=n(95),i=n(86),o=n(57)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(96),i=n(19),o=n(57)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:a?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r={};r[n(57)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(57)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},function(t,e,n){n(99);var r=n(43);t.exports=r.Object.assign},function(t,e,n){var r=n(10),i=n(100);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(t,e,n){var r=n(13),i=n(14),o=n(73),a=n(51),s=n(15),u=n(83),l=n(18),c=Object.assign,h=Object.defineProperty;t.exports=!c||i((function(){if(r&&1!==c({b:1},c(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||"abcdefghijklmnopqrst"!=o(c({},e)).join("")}))?function(t,e){for(var n=u(t),i=arguments.length,c=1,h=a.f,f=s.f;i>c;)for(var d,p=l(arguments[c++]),v=h?o(p).concat(h(p)):o(p),g=v.length,y=0;g>y;)d=v[y++],r&&!f.call(p,d)||(n[d]=p[d]);return n}:c},function(t,e,n){n(102);var r=n(43);t.exports=r.Math.log2},function(t,e,n){var r=n(10),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return i(t)/o}})},function(t,e,n){n(104);var r=n(43);t.exports=r.Number.isNaN},function(t,e,n){n(10)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,n){n(106);var r=n(43);t.exports=r.Number.isInteger},function(t,e,n){n(10)({target:"Number",stat:!0},{isInteger:n(107)})},function(t,e,n){var r=n(22),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){n(109)},function(t,e,n){var r=n(110),i=n(112),o=n(14),a=r.aTypedArray,s=r.aTypedArrayConstructor,u=r.exportTypedArrayMethod,l=[].slice;u("slice",(function(t,e){for(var n=l.call(a(this),t,e),r=i(this,this.constructor),o=0,u=n.length,c=new(s(r))(u);u>o;)c[o]=n[o++];return c}),o((function(){new Int8Array(1).slice()})))},function(t,e,n){var r,i=n(111),o=n(13),a=n(11),s=n(22),u=n(23),l=n(95),c=n(26),h=n(29),f=n(27).f,d=n(82),p=n(87),v=n(57),g=n(38),y=a.Int8Array,m=y&&y.prototype,b=a.Uint8ClampedArray,_=b&&b.prototype,C=y&&d(y),w=m&&d(m),S=Object.prototype,x=S.isPrototypeOf,A=v("toStringTag"),k=g("TYPED_ARRAY_TAG"),P=i&&!!p&&"Opera"!==l(a.opera),T=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},E=function(t){return s(t)&&u(L,l(t))};for(r in L)a[r]||(P=!1);if((!P||"function"!=typeof C||C===Function.prototype)&&(C=function(){throw TypeError("Incorrect invocation")},P))for(r in L)a[r]&&p(a[r],C);if((!P||!w||w===S)&&(w=C.prototype,P))for(r in L)a[r]&&p(a[r].prototype,w);if(P&&d(_)!==w&&p(_,w),o&&!u(w,A))for(r in T=!0,f(w,A,{get:function(){return s(this)?this[k]:void 0}}),L)a[r]&&c(a[r],k,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:T&&k,aTypedArray:function(t){if(E(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(p){if(x.call(C,t))return t}else for(var e in L)if(u(L,r)){var n=a[e];if(n&&(t===n||x.call(n,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n){if(o){if(n)for(var r in L){var i=a[r];i&&u(i.prototype,t)&&delete i.prototype[t]}w[t]&&!n||h(w,t,n?e:P&&m[t]||e)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(o){if(p){if(n)for(r in L)(i=a[r])&&u(i,t)&&delete i[t];if(C[t]&&!n)return;try{return h(C,t,n?e:P&&y[t]||e)}catch(t){}}for(r in L)!(i=a[r])||i[t]&&!n||h(i,t,e)}},isView:function(t){var e=l(t);return"DataView"===e||u(L,e)},isTypedArray:E,TypedArray:C,TypedArrayPrototype:w}},function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,n){var r=n(28),i=n(63),o=n(57)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},function(t,e,n){n(114),n(77),n(116),n(119),n(134),n(135);var r=n(43);t.exports=r.Promise},function(t,e,n){var r=n(96),i=n(29),o=n(115);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,n){var r=n(96),i=n(95);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,n){var r=n(11),i=n(117),o=n(118),a=n(26),s=n(57),u=s("iterator"),l=s("toStringTag"),c=o.values;for(var h in i){var f=r[h],d=f&&f.prototype;if(d){if(d[u]!==c)try{a(d,u,c)}catch(t){d[u]=c}if(d[l]||a(d,l,h),i[h])for(var p in o)if(d[p]!==o[p])try{a(d,p,o[p])}catch(t){d[p]=o[p]}}}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(17),i=n(70),o=n(86),a=n(33),s=n(79),u=a.set,l=a.getterFor("Array Iterator");t.exports=s(Array,"Array",(function(t,e){u(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,n){var r,i,o,a,s=n(10),u=n(37),l=n(11),c=n(42),h=n(120),f=n(29),d=n(121),p=n(85),v=n(122),g=n(22),y=n(63),m=n(123),b=n(19),_=n(31),C=n(124),w=n(97),S=n(112),x=n(125).set,A=n(128),k=n(129),P=n(131),T=n(130),L=n(132),E=n(33),R=n(52),O=n(57),F=n(133),I=O("species"),M="Promise",D=E.get,j=E.set,N=E.getterFor(M),B=h,z=l.TypeError,H=l.document,U=l.process,V=c("fetch"),W=T.f,q=W,$="process"==b(U),G=!!(H&&H.createEvent&&l.dispatchEvent),Y=R(M,(function(){if(_(B)===String(B)){if(66===F)return!0;if(!$&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!B.prototype.finally)return!0;if(F>=51&&/native code/.test(B))return!1;var t=B.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[I]=e,!(t.then((function(){}))instanceof e)})),X=Y||!w((function(t){B.all(t).catch((function(){}))})),Z=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},K=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;A((function(){for(var i=e.value,o=1==e.state,a=0;r.length>a;){var s,u,l,c=r[a++],h=o?c.ok:c.fail,f=c.resolve,d=c.reject,p=c.domain;try{h?(o||(2===e.rejection&&et(t,e),e.rejection=1),!0===h?s=i:(p&&p.enter(),s=h(i),p&&(p.exit(),l=!0)),s===c.promise?d(z("Promise-chain cycle")):(u=Z(s))?u.call(s,f,d):f(s)):d(i)}catch(t){p&&!l&&p.exit(),d(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&J(t,e)}))}},Q=function(t,e,n){var r,i;G?((r=H.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),l.dispatchEvent(r)):r={promise:e,reason:n},(i=l["on"+t])?i(r):"unhandledrejection"===t&&P("Unhandled promise rejection",n)},J=function(t,e){x.call(l,(function(){var n,r=e.value;if(tt(e)&&(n=L((function(){$?U.emit("unhandledRejection",r,t):Q("unhandledrejection",t,r)})),e.rejection=$||tt(e)?2:1,n.error))throw n.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){x.call(l,(function(){$?U.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)}))},nt=function(t,e,n,r){return function(i){t(e,n,i,r)}},rt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,K(t,e,!0))},it=function t(e,n,r,i){if(!n.done){n.done=!0,i&&(n=i);try{if(e===r)throw z("Promise can't be resolved itself");var o=Z(r);o?A((function(){var i={done:!1};try{o.call(r,nt(t,e,i,n),nt(rt,e,i,n))}catch(t){rt(e,i,t,n)}})):(n.value=r,n.state=1,K(e,n,!1))}catch(t){rt(e,{done:!1},t,n)}}};Y&&(B=function(t){m(this,B,M),y(t),r.call(this);var e=D(this);try{t(nt(it,this,e),nt(rt,this,e))}catch(t){rt(this,e,t)}},(r=function(t){j(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(B.prototype,{then:function(t,e){var n=N(this),r=W(S(this,B));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=$?U.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&K(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=D(t);this.promise=t,this.resolve=nt(it,t,e),this.reject=nt(rt,t,e)},T.f=W=function(t){return t===B||t===o?new i(t):q(t)},u||"function"!=typeof h||(a=h.prototype.then,f(h.prototype,"then",(function(t,e){var n=this;return new B((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof V&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return k(B,V.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:Y},{Promise:B}),p(B,M,!1,!0),v(M),o=c(M),s({target:M,stat:!0,forced:Y},{reject:function(t){var e=W(this);return e.reject.call(void 0,t),e.promise}}),s({target:M,stat:!0,forced:u||Y},{resolve:function(t){return k(u&&this===o?B:this,t)}}),s({target:M,stat:!0,forced:X},{all:function(t){var e=this,n=W(e),r=n.resolve,i=n.reject,o=L((function(){var n=y(e.resolve),o=[],a=0,s=1;C(t,(function(t){var u=a++,l=!1;o.push(void 0),s++,n.call(e,t).then((function(t){l||(l=!0,o[u]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=W(e),r=n.reject,i=L((function(){var i=y(e.resolve);C(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},function(t,e,n){var r=n(11);t.exports=r.Promise},function(t,e,n){var r=n(29);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){var r=n(42),i=n(27),o=n(57),a=n(13),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){var r=n(28),i=n(92),o=n(47),a=n(62),s=n(94),u=n(91),l=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,c,h){var f,d,p,v,g,y,m,b=a(e,n,c?2:1);if(h)f=t;else{if("function"!=typeof(d=s(t)))throw TypeError("Target is not iterable");if(i(d)){for(p=0,v=o(t.length);v>p;p++)if((g=c?b(r(m=t[p])[0],m[1]):b(t[p]))&&g instanceof l)return g;return new l(!1)}f=d.call(t)}for(y=f.next;!(m=y.call(f)).done;)if("object"==typeof(g=u(f,b,m.value,c))&&g&&g instanceof l)return g;return new l(!1)}).stop=function(t){return new l(!0,t)}},function(t,e,n){var r,i,o,a=n(11),s=n(14),u=n(19),l=n(62),c=n(74),h=n(25),f=n(126),d=a.location,p=a.setImmediate,v=a.clearImmediate,g=a.process,y=a.MessageChannel,m=a.Dispatch,b=0,_={},C=function(t){if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},w=function(t){return function(){C(t)}},S=function(t){C(t.data)},x=function(t){a.postMessage(t+"",d.protocol+"//"+d.host)};p&&v||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return _[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(b),b},v=function(t){delete _[t]},"process"==u(g)?r=function(t){g.nextTick(w(t))}:m&&m.now?r=function(t){m.now(w(t))}:y&&!f?(o=(i=new y).port2,i.port1.onmessage=S,r=l(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(x)||"file:"===d.protocol?r="onreadystatechange"in h("script")?function(t){c.appendChild(h("script")).onreadystatechange=function(){c.removeChild(this),C(t)}}:function(t){setTimeout(w(t),0)}:(r=x,a.addEventListener("message",S,!1))),t.exports={set:p,clear:v}},function(t,e,n){var r=n(127);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(t,e,n){var r=n(42);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r,i,o,a,s,u,l,c,h=n(11),f=n(12).f,d=n(19),p=n(125).set,v=n(126),g=h.MutationObserver||h.WebKitMutationObserver,y=h.process,m=h.Promise,b="process"==d(y),_=f(h,"queueMicrotask"),C=_&&_.value;C||(r=function(){var t,e;for(b&&(t=y.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},b?a=function(){y.nextTick(r)}:g&&!v?(s=!0,u=document.createTextNode(""),new g(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):m&&m.resolve?(l=m.resolve(void 0),c=l.then,a=function(){c.call(l,r)}):a=function(){p.call(h,r)}),t.exports=C||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},function(t,e,n){var r=n(28),i=n(22),o=n(130);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var r=n(63),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},function(t,e,n){var r=n(11);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){var r,i,o=n(11),a=n(127),s=o.process,u=s&&s.versions,l=u&&u.v8;l?i=(r=l.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),t.exports=i&&+i},function(t,e,n){var r=n(10),i=n(63),o=n(130),a=n(132),s=n(124);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=o.f(e),r=n.resolve,u=n.reject,l=a((function(){var n=i(e.resolve),o=[],a=0,u=1;s(t,(function(t){var i=a++,s=!1;o.push(void 0),u++,n.call(e,t).then((function(t){s||(s=!0,o[i]={status:"fulfilled",value:t},--u||r(o))}),(function(t){s||(s=!0,o[i]={status:"rejected",reason:t},--u||r(o))}))})),--u||r(o)}));return l.error&&u(l.value),n.promise}})},function(t,e,n){var r=n(10),i=n(37),o=n(120),a=n(14),s=n(42),u=n(112),l=n(129),c=n(29);r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=u(this,s("Promise")),n="function"==typeof t;return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),i||"function"!=typeof o||o.prototype.finally||c(o.prototype,"finally",s("Promise").prototype.finally)},function(t,e,n){n(137),n(142),n(140);var r=n(43);t.exports=r.URL},function(t,e,n){n(77);var r,i=n(10),o=n(13),a=n(138),s=n(11),u=n(72),l=n(29),c=n(123),h=n(23),f=n(100),d=n(90),p=n(78).codeAt,v=n(139),g=n(85),y=n(140),m=n(33),b=s.URL,_=y.URLSearchParams,C=y.getState,w=m.set,S=m.getterFor("URL"),x=Math.floor,A=Math.pow,k=/[A-Za-z]/,P=/[\d+-.A-Za-z]/,T=/\d/,L=/^(0x|0X)/,E=/^[0-7]+$/,R=/^\d+$/,O=/^[\dA-Fa-f]+$/,F=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,I=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,M=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,D=/[\u0009\u000A\u000D]/g,j=function(t,e){var n,r,i;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(n=B(e.slice(1,-1))))return"Invalid host";t.host=n}else if(G(t)){if(e=v(e),F.test(e))return"Invalid host";if(null===(n=N(e)))return"Invalid host";t.host=n}else{if(I.test(e))return"Invalid host";for(n="",r=d(e),i=0;i<r.length;i++)n+=q(r[i],H);t.host=n}},N=function(t){var e,n,r,i,o,a,s,u=t.split(".");if(u.length&&""==u[u.length-1]&&u.pop(),(e=u.length)>4)return t;for(n=[],r=0;r<e;r++){if(""==(i=u[r]))return t;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=L.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?R:8==o?E:O).test(i))return t;a=parseInt(i,o)}n.push(a)}for(r=0;r<e;r++)if(a=n[r],r==e-1){if(a>=A(256,5-e))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*A(256,3-r);return s},B=function(t){var e,n,r,i,o,a,s,u=[0,0,0,0,0,0,0,0],l=0,c=null,h=0,f=function(){return t.charAt(h)};if(":"==f()){if(":"!=t.charAt(1))return;h+=2,c=++l}for(;f();){if(8==l)return;if(":"!=f()){for(e=n=0;n<4&&O.test(f());)e=16*e+parseInt(f(),16),h++,n++;if("."==f()){if(0==n)return;if(h-=n,l>6)return;for(r=0;f();){if(i=null,r>0){if(!("."==f()&&r<4))return;h++}if(!T.test(f()))return;for(;T.test(f());){if(o=parseInt(f(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;h++}u[l]=256*u[l]+i,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==f()){if(h++,!f())return}else if(f())return;u[l++]=e}else{if(null!==c)return;h++,c=++l}}if(null!==c)for(a=l-c,l=7;0!=l&&a>0;)s=u[l],u[l--]=u[c+a-1],u[c+--a]=s;else if(8!=l)return;return u},z=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=x(t/256);return e.join(".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},H={},U=f({},H,{" ":1,'"':1,"<":1,">":1,"`":1}),V=f({},U,{"#":1,"?":1,"{":1,"}":1}),W=f({},V,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),q=function(t,e){var n=p(t,0);return n>32&&n<127&&!h(e,t)?t:encodeURIComponent(t)},$={ftp:21,file:null,http:80,https:443,ws:80,wss:443},G=function(t){return h($,t.scheme)},Y=function(t){return""!=t.username||""!=t.password},X=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},Z=function(t,e){var n;return 2==t.length&&k.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},K=function(t){var e;return t.length>1&&Z(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Q=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&Z(e[0],!0)||e.pop()},J=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},et={},nt={},rt={},it={},ot={},at={},st={},ut={},lt={},ct={},ht={},ft={},dt={},pt={},vt={},gt={},yt={},mt={},bt={},_t={},Ct=function(t,e,n,i){var o,a,s,u,l,c=n||tt,f=0,p="",v=!1,g=!1,y=!1;for(n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(M,"")),e=e.replace(D,""),o=d(e);f<=o.length;){switch(a=o[f],c){case tt:if(!a||!k.test(a)){if(n)return"Invalid scheme";c=nt;continue}p+=a.toLowerCase(),c=et;break;case et:if(a&&(P.test(a)||"+"==a||"-"==a||"."==a))p+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";p="",c=nt,f=0;continue}if(n&&(G(t)!=h($,p)||"file"==p&&(Y(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=p,n)return void(G(t)&&$[t.scheme]==t.port&&(t.port=null));p="","file"==t.scheme?c=dt:G(t)&&i&&i.scheme==t.scheme?c=rt:G(t)?c=st:"/"==o[f+1]?(c=it,f++):(t.cannotBeABaseURL=!0,t.path.push(""),c=mt)}break;case nt:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,c=_t;break}c="file"==i.scheme?dt:ot;continue;case rt:if("/"!=a||"/"!=o[f+1]){c=ot;continue}c=ut,f++;break;case it:if("/"==a){c=lt;break}c=yt;continue;case ot:if(t.scheme=i.scheme,a==r)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==a||"\\"==a&&G(t))c=at;else if("?"==a)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",c=bt;else{if("#"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),c=yt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",c=_t}break;case at:if(!G(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,c=yt;continue}c=lt}else c=ut;break;case st:if(c=ut,"/"!=a||"/"!=p.charAt(f+1))continue;f++;break;case ut:if("/"!=a&&"\\"!=a){c=lt;continue}break;case lt:if("@"==a){v&&(p="%40"+p),v=!0,s=d(p);for(var m=0;m<s.length;m++){var b=s[m];if(":"!=b||y){var _=q(b,W);y?t.password+=_:t.username+=_}else y=!0}p=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&G(t)){if(v&&""==p)return"Invalid authority";f-=d(p).length+1,p="",c=ct}else p+=a;break;case ct:case ht:if(n&&"file"==t.scheme){c=vt;continue}if(":"!=a||g){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&G(t)){if(G(t)&&""==p)return"Invalid host";if(n&&""==p&&(Y(t)||null!==t.port))return;if(u=j(t,p))return u;if(p="",c=gt,n)return;continue}"["==a?g=!0:"]"==a&&(g=!1),p+=a}else{if(""==p)return"Invalid host";if(u=j(t,p))return u;if(p="",c=ft,n==ht)return}break;case ft:if(!T.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&G(t)||n){if(""!=p){var C=parseInt(p,10);if(C>65535)return"Invalid port";t.port=G(t)&&C===$[t.scheme]?null:C,p=""}if(n)return;c=gt;continue}return"Invalid port"}p+=a;break;case dt:if(t.scheme="file","/"==a||"\\"==a)c=pt;else{if(!i||"file"!=i.scheme){c=yt;continue}if(a==r)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==a)t.host=i.host,t.path=i.path.slice(),t.query="",c=bt;else{if("#"!=a){K(o.slice(f).join(""))||(t.host=i.host,t.path=i.path.slice(),Q(t)),c=yt;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",c=_t}}break;case pt:if("/"==a||"\\"==a){c=vt;break}i&&"file"==i.scheme&&!K(o.slice(f).join(""))&&(Z(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),c=yt;continue;case vt:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&Z(p))c=yt;else if(""==p){if(t.host="",n)return;c=gt}else{if(u=j(t,p))return u;if("localhost"==t.host&&(t.host=""),n)return;p="",c=gt}continue}p+=a;break;case gt:if(G(t)){if(c=yt,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(c=yt,"/"!=a))continue}else t.fragment="",c=_t;else t.query="",c=bt;break;case yt:if(a==r||"/"==a||"\\"==a&&G(t)||!n&&("?"==a||"#"==a)){if(".."===(l=(l=p).toLowerCase())||"%2e."===l||".%2e"===l||"%2e%2e"===l?(Q(t),"/"==a||"\\"==a&&G(t)||t.path.push("")):J(p)?"/"==a||"\\"==a&&G(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&Z(p)&&(t.host&&(t.host=""),p=p.charAt(0)+":"),t.path.push(p)),p="","file"==t.scheme&&(a==r||"?"==a||"#"==a))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",c=bt):"#"==a&&(t.fragment="",c=_t)}else p+=q(a,V);break;case mt:"?"==a?(t.query="",c=bt):"#"==a?(t.fragment="",c=_t):a!=r&&(t.path[0]+=q(a,H));break;case bt:n||"#"!=a?a!=r&&("'"==a&&G(t)?t.query+="%27":t.query+="#"==a?"%23":q(a,H)):(t.fragment="",c=_t);break;case _t:a!=r&&(t.fragment+=q(a,U))}f++}},wt=function(t){var e,n,r=c(this,wt,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(t),s=w(r,{type:"URL"});if(void 0!==i)if(i instanceof wt)e=S(i);else if(n=Ct(e={},String(i)))throw TypeError(n);if(n=Ct(s,a,null,e))throw TypeError(n);var u=s.searchParams=new _,l=C(u);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(u)||null},o||(r.href=xt.call(r),r.origin=At.call(r),r.protocol=kt.call(r),r.username=Pt.call(r),r.password=Tt.call(r),r.host=Lt.call(r),r.hostname=Et.call(r),r.port=Rt.call(r),r.pathname=Ot.call(r),r.search=Ft.call(r),r.searchParams=It.call(r),r.hash=Mt.call(r))},St=wt.prototype,xt=function(){var t=S(this),e=t.scheme,n=t.username,r=t.password,i=t.host,o=t.port,a=t.path,s=t.query,u=t.fragment,l=e+":";return null!==i?(l+="//",Y(t)&&(l+=n+(r?":"+r:"")+"@"),l+=z(i),null!==o&&(l+=":"+o)):"file"==e&&(l+="//"),l+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(l+="?"+s),null!==u&&(l+="#"+u),l},At=function(){var t=S(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&G(t)?e+"://"+z(t.host)+(null!==n?":"+n:""):"null"},kt=function(){return S(this).scheme+":"},Pt=function(){return S(this).username},Tt=function(){return S(this).password},Lt=function(){var t=S(this),e=t.host,n=t.port;return null===e?"":null===n?z(e):z(e)+":"+n},Et=function(){var t=S(this).host;return null===t?"":z(t)},Rt=function(){var t=S(this).port;return null===t?"":String(t)},Ot=function(){var t=S(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Ft=function(){var t=S(this).query;return t?"?"+t:""},It=function(){return S(this).searchParams},Mt=function(){var t=S(this).fragment;return t?"#"+t:""},Dt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&u(St,{href:Dt(xt,(function(t){var e=S(this),n=String(t),r=Ct(e,n);if(r)throw TypeError(r);C(e.searchParams).updateSearchParams(e.query)})),origin:Dt(At),protocol:Dt(kt,(function(t){var e=S(this);Ct(e,String(t)+":",tt)})),username:Dt(Pt,(function(t){var e=S(this),n=d(String(t));if(!X(e)){e.username="";for(var r=0;r<n.length;r++)e.username+=q(n[r],W)}})),password:Dt(Tt,(function(t){var e=S(this),n=d(String(t));if(!X(e)){e.password="";for(var r=0;r<n.length;r++)e.password+=q(n[r],W)}})),host:Dt(Lt,(function(t){var e=S(this);e.cannotBeABaseURL||Ct(e,String(t),ct)})),hostname:Dt(Et,(function(t){var e=S(this);e.cannotBeABaseURL||Ct(e,String(t),ht)})),port:Dt(Rt,(function(t){var e=S(this);X(e)||(""==(t=String(t))?e.port=null:Ct(e,t,ft))})),pathname:Dt(Ot,(function(t){var e=S(this);e.cannotBeABaseURL||(e.path=[],Ct(e,t+"",gt))})),search:Dt(Ft,(function(t){var e=S(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",Ct(e,t,bt)),C(e.searchParams).updateSearchParams(e.query)})),searchParams:Dt(It),hash:Dt(Mt,(function(t){var e=S(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",Ct(e,t,_t)):e.fragment=null}))}),l(St,"toJSON",(function(){return xt.call(this)}),{enumerable:!0}),l(St,"toString",(function(){return xt.call(this)}),{enumerable:!0}),b){var jt=b.createObjectURL,Nt=b.revokeObjectURL;jt&&l(wt,"createObjectURL",(function(t){return jt.apply(b,arguments)})),Nt&&l(wt,"revokeObjectURL",(function(t){return Nt.apply(b,arguments)}))}g(wt,"URL"),i({global:!0,forced:!a,sham:!o},{URL:wt})},function(t,e,n){var r=n(14),i=n(57),o=n(37),a=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(t,e,n){var r=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,u=function(t){return t+22+75*(t<26)},l=function(t,e,n){var r=0;for(t=n?a(t/700):t>>1,t+=a(t/e);t>455;r+=36)t=a(t/35);return a(r+36*t/(t+38))},c=function(t){var e,n,r=[],i=(t=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=t.charCodeAt(n++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),n--)}else e.push(i)}return e}(t)).length,c=128,h=0,f=72;for(e=0;e<t.length;e++)(n=t[e])<128&&r.push(s(n));var d=r.length,p=d;for(d&&r.push("-");p<i;){var v=2147483647;for(e=0;e<t.length;e++)(n=t[e])>=c&&n<v&&(v=n);var g=p+1;if(v-c>a((2147483647-h)/g))throw RangeError(o);for(h+=(v-c)*g,c=v,e=0;e<t.length;e++){if((n=t[e])<c&&++h>2147483647)throw RangeError(o);if(n==c){for(var y=h,m=36;;m+=36){var b=m<=f?1:m>=f+26?26:m-f;if(y<b)break;var _=y-b,C=36-b;r.push(s(u(b+_%C))),y=a(_/C)}r.push(s(u(y))),f=l(h,g,p==d),h=0,++p}}++h,++c}return r.join("")};t.exports=function(t){var e,n,o=[],a=t.toLowerCase().replace(i,".").split(".");for(e=0;e<a.length;e++)n=a[e],o.push(r.test(n)?"xn--"+c(n):n);return o.join(".")}},function(t,e,n){n(118);var r=n(10),i=n(42),o=n(138),a=n(29),s=n(121),u=n(85),l=n(80),c=n(33),h=n(123),f=n(23),d=n(62),p=n(95),v=n(28),g=n(22),y=n(71),m=n(16),b=n(141),_=n(94),C=n(57),w=i("fetch"),S=i("Headers"),x=C("iterator"),A=c.set,k=c.getterFor("URLSearchParams"),P=c.getterFor("URLSearchParamsIterator"),T=/\+/g,L=Array(4),E=function(t){return L[t-1]||(L[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},R=function(t){try{return decodeURIComponent(t)}catch(e){return t}},O=function(t){var e=t.replace(T," "),n=4;try{return decodeURIComponent(e)}catch(t){for(;n;)e=e.replace(E(n--),R);return e}},F=/[!'()~]|%20/g,I={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},M=function(t){return I[t]},D=function(t){return encodeURIComponent(t).replace(F,M)},j=function(t,e){if(e)for(var n,r,i=e.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),t.push({key:O(r.shift()),value:O(r.join("="))}))},N=function(t){this.entries.length=0,j(this.entries,t)},B=function(t,e){if(t<e)throw TypeError("Not enough arguments")},z=l((function(t,e){A(this,{type:"URLSearchParamsIterator",iterator:b(k(t).entries),kind:e})}),"Iterator",(function(){var t=P(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n})),H=function(){h(this,H,"URLSearchParams");var t,e,n,r,i,o,a,s,u,l=arguments.length>0?arguments[0]:void 0,c=this,d=[];if(A(c,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:N}),void 0!==l)if(g(l))if("function"==typeof(t=_(l)))for(n=(e=t.call(l)).next;!(r=n.call(e)).done;){if((a=(o=(i=b(v(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");d.push({key:a.value+"",value:s.value+""})}else for(u in l)f(l,u)&&d.push({key:u,value:l[u]+""});else j(d,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},U=H.prototype;s(U,{append:function(t,e){B(arguments.length,2);var n=k(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){B(arguments.length,1);for(var e=k(this),n=e.entries,r=t+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;e.updateURL()},get:function(t){B(arguments.length,1);for(var e=k(this).entries,n=t+"",r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){B(arguments.length,1);for(var e=k(this).entries,n=t+"",r=[],i=0;i<e.length;i++)e[i].key===n&&r.push(e[i].value);return r},has:function(t){B(arguments.length,1);for(var e=k(this).entries,n=t+"",r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){B(arguments.length,1);for(var n,r=k(this),i=r.entries,o=!1,a=t+"",s=e+"",u=0;u<i.length;u++)(n=i[u]).key===a&&(o?i.splice(u--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var t,e,n,r=k(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(t=o[n],e=0;e<n;e++)if(i[e].key>t.key){i.splice(e,0,t);break}e===n&&i.push(t)}r.updateURL()},forEach:function(t){for(var e,n=k(this).entries,r=d(t,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new z(this,"keys")},values:function(){return new z(this,"values")},entries:function(){return new z(this,"entries")}},{enumerable:!0}),a(U,x,U.entries),a(U,"toString",(function(){for(var t,e=k(this).entries,n=[],r=0;r<e.length;)t=e[r++],n.push(D(t.key)+"="+D(t.value));return n.join("&")}),{enumerable:!0}),u(H,"URLSearchParams"),r({global:!0,forced:!o},{URLSearchParams:H}),o||"function"!=typeof w||"function"!=typeof S||r({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,n,r,i=[t];return arguments.length>1&&(g(e=arguments[1])&&(n=e.body,"URLSearchParams"===p(n)&&((r=e.headers?new S(e.headers):new S).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=y(e,{body:m(0,String(n)),headers:m(0,r)}))),i.push(e)),w.apply(this,i)}}),t.exports={URLSearchParams:H,getState:k}},function(t,e,n){var r=n(28),i=n(94);t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},function(t,e,n){n(10)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(t,e,n){!function(t){var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(t){return"Symbol("+t+")"};function n(){}var r=Number.isNaN||function(t){return t!=t},i=n;function o(t){return"object"==typeof t&&null!==t||"function"==typeof t}function a(t){return t.slice()}function s(t){return!1!==function(t){return!("number"!=typeof t||r(t)||t<0)}(t)&&t!==1/0}function u(t,e,n){if("function"!=typeof t)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(t,e,n)}function l(t,e,n,r){var i=t[e];if(void 0!==i){if("function"!=typeof i)throw new TypeError(i+" is not a method");switch(n){case 0:return function(){return h(i,t,r)};case 1:return function(e){var n=[e].concat(r);return h(i,t,n)}}}return function(){return b(void 0)}}function c(t,e,n){var r=t[e];if(void 0!==r)return u(r,t,n)}function h(t,e,n){try{return b(u(t,e,n))}catch(t){return _(t)}}function f(t){if(t=Number(t),r(t)||t<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return t}function d(t){if(void 0===t)return function(){return 1};if("function"!=typeof t)throw new TypeError("size property of a queuing strategy must be a function");return function(e){return t(e)}}var p=Promise,v=Promise.prototype.then,g=Promise.resolve.bind(p),y=Promise.reject.bind(p);function m(t){return new p(t)}function b(t){return g(t)}function _(t){return y(t)}function C(t,e,n){return v.call(t,e,n)}function w(t,e,n){C(C(t,e,n),void 0,i)}function S(t,e){w(t,e)}function x(t,e){w(t,void 0,e)}function A(t,e,n){return C(t,e,n)}function k(t){C(t,void 0,i)}var P=function(){function t(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(t.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),t.prototype.push=function(t){var e=this._back,n=e;16383===e._elements.length&&(n={_elements:[],_next:void 0}),e._elements.push(t),n!==e&&(this._back=n,e._next=n),++this._size},t.prototype.shift=function(){var t=this._front,e=t,n=this._cursor,r=n+1,i=t._elements,o=i[n];return 16384===r&&(e=t._next,r=0),--this._size,this._cursor=r,t!==e&&(this._front=e),i[n]=void 0,o},t.prototype.forEach=function(t){for(var e=this._cursor,n=this._front,r=n._elements;!(e===r.length&&void 0===n._next||e===r.length&&(e=0,0===(r=(n=n._next)._elements).length));)t(r[e]),++e},t.prototype.peek=function(){var t=this._front,e=this._cursor;return t._elements[e]},t}();function T(t,e,n){var r=null;!0===n&&(r=Object.prototype);var i=Object.create(r);return i.value=t,i.done=e,i}function L(t,e){t._forAuthorCode=!0,t._ownerReadableStream=e,e._reader=t,"readable"===e._state?F(t):"closed"===e._state?function(t){F(t),D(t)}(t):I(t,e._storedError)}function E(t,e){return ze(t._ownerReadableStream,e)}function R(t){"readable"===t._ownerReadableStream._state?M(t,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(t,e){I(t,e)}(t,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),t._ownerReadableStream._reader=void 0,t._ownerReadableStream=void 0}function O(t){return new TypeError("Cannot "+t+" a stream using a released reader")}function F(t){t._closedPromise=m((function(e,n){t._closedPromise_resolve=e,t._closedPromise_reject=n}))}function I(t,e){F(t),M(t,e)}function M(t,e){k(t._closedPromise),t._closedPromise_reject(e),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0}function D(t){t._closedPromise_resolve(void 0),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0}var j=e("[[CancelSteps]]"),N=e("[[PullSteps]]");function B(t,e){void 0===e&&(e=!1);var n=new $(t);return n._forAuthorCode=e,n}function z(t){return m((function(e,n){var r={_resolve:e,_reject:n};t._reader._readRequests.push(r)}))}function H(t,e,n){var r=t._reader;r._readRequests.shift()._resolve(T(e,n,r._forAuthorCode))}function U(t){return t._reader._readRequests.length}function V(t){var e=t._reader;return void 0!==e&&!!G(e)}var W,q,$=function(){function t(t){if(!1===Ne(t))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===Be(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");L(this,t),this._readRequests=new P}return Object.defineProperty(t.prototype,"closed",{get:function(){return G(this)?this._closedPromise:_(X("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return G(this)?void 0===this._ownerReadableStream?_(O("cancel")):E(this,t):_(X("cancel"))},t.prototype.read=function(){return G(this)?void 0===this._ownerReadableStream?_(O("read from")):Y(this):_(X("read"))},t.prototype.releaseLock=function(){if(!G(this))throw X("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");R(this)}},t}();function G(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readRequests")}function Y(t){var e=t._ownerReadableStream;return e._disturbed=!0,"closed"===e._state?b(T(void 0,!0,t._forAuthorCode)):"errored"===e._state?_(e._storedError):e._readableStreamController[N]()}function X(t){return new TypeError("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}"symbol"==typeof e.asyncIterator&&((W={})[e.asyncIterator]=function(){return this},q=W,Object.defineProperty(q,e.asyncIterator,{enumerable:!1}));var Z={next:function(){if(!1===K(this))return _(Q("next"));var t=this._asyncIteratorReader;return void 0===t._ownerReadableStream?_(O("iterate")):A(Y(t),(function(e){var n=e.done;return n&&R(t),T(e.value,n,!0)}))},return:function(t){if(!1===K(this))return _(Q("next"));var e=this._asyncIteratorReader;if(void 0===e._ownerReadableStream)return _(O("finish iterating"));if(e._readRequests.length>0)return _(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var n=E(e,t);return R(e),A(n,(function(){return T(t,!0,!0)}))}return R(e),b(T(t,!0,!0))}};function K(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_asyncIteratorReader")}function Q(t){return new TypeError("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}function J(t){var e=t._queue.shift();return t._queueTotalSize-=e.size,t._queueTotalSize<0&&(t._queueTotalSize=0),e.value}function tt(t,e,n){if(!s(n=Number(n)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t._queue.push({value:e,size:n}),t._queueTotalSize+=n}function et(t){t._queue=new P,t._queueTotalSize=0}void 0!==q&&Object.setPrototypeOf(Z,q),Object.defineProperty(Z,"next",{enumerable:!1}),Object.defineProperty(Z,"return",{enumerable:!1});var nt=e("[[AbortSteps]]"),rt=e("[[ErrorSteps]]"),it=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e={}),at(this);var n=e.size,r=e.highWaterMark;if(void 0!==t.type)throw new RangeError("Invalid type is specified");var i=d(n);void 0===r&&(r=1),function(t,e,n,r){var i=Object.create(xt.prototype),o=l(e,"write",1,[i]),a=l(e,"close",0,[]),s=l(e,"abort",1,[]);At(t,i,(function(){return c(e,"start",[i])}),o,a,s,n,r)}(this,t,r=f(r),i)}return Object.defineProperty(t.prototype,"locked",{get:function(){if(!1===st(this))throw Ot("locked");return ut(this)},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===st(this)?_(Ot("abort")):!0===ut(this)?_(new TypeError("Cannot abort a stream that already has a writer")):lt(this,t)},t.prototype.close=function(){return!1===st(this)?_(Ot("close")):!0===ut(this)?_(new TypeError("Cannot close a stream that already has a writer")):!0===pt(this)?_(new TypeError("Cannot close an already-closing stream")):ct(this)},t.prototype.getWriter=function(){if(!1===st(this))throw Ot("getWriter");return ot(this)},t}();function ot(t){return new yt(t)}function at(t){t._state="writable",t._storedError=void 0,t._writer=void 0,t._writableStreamController=void 0,t._writeRequests=new P,t._inFlightWriteRequest=void 0,t._closeRequest=void 0,t._inFlightCloseRequest=void 0,t._pendingAbortRequest=void 0,t._backpressure=!1}function st(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_writableStreamController")}function ut(t){return void 0!==t._writer}function lt(t,e){var n=t._state;if("closed"===n||"errored"===n)return b(void 0);if(void 0!==t._pendingAbortRequest)return t._pendingAbortRequest._promise;var r=!1;"erroring"===n&&(r=!0,e=void 0);var i=m((function(n,i){t._pendingAbortRequest={_promise:void 0,_resolve:n,_reject:i,_reason:e,_wasAlreadyErroring:r}}));return t._pendingAbortRequest._promise=i,!1===r&&ft(t,e),i}function ct(t){var e=t._state;if("closed"===e||"errored"===e)return _(new TypeError("The stream (in "+e+" state) is not in the writable state and cannot be closed"));var n,r=m((function(e,n){var r={_resolve:e,_reject:n};t._closeRequest=r})),i=t._writer;return void 0!==i&&!0===t._backpressure&&"writable"===e&&Vt(i),tt(n=t._writableStreamController,"close",0),Tt(n),r}function ht(t,e){"writable"!==t._state?dt(t):ft(t,e)}function ft(t,e){var n=t._writableStreamController;t._state="erroring",t._storedError=e;var r=t._writer;void 0!==r&&Ct(r,e),!1===function(t){return void 0!==t._inFlightWriteRequest||void 0!==t._inFlightCloseRequest}(t)&&!0===n._started&&dt(t)}function dt(t){t._state="errored",t._writableStreamController[rt]();var e=t._storedError;if(t._writeRequests.forEach((function(t){t._reject(e)})),t._writeRequests=new P,void 0!==t._pendingAbortRequest){var n=t._pendingAbortRequest;if(t._pendingAbortRequest=void 0,!0===n._wasAlreadyErroring)return n._reject(e),void vt(t);w(t._writableStreamController[nt](n._reason),(function(){n._resolve(),vt(t)}),(function(e){n._reject(e),vt(t)}))}else vt(t)}function pt(t){return void 0!==t._closeRequest||void 0!==t._inFlightCloseRequest}function vt(t){void 0!==t._closeRequest&&(t._closeRequest._reject(t._storedError),t._closeRequest=void 0);var e=t._writer;void 0!==e&&jt(e,t._storedError)}function gt(t,e){var n=t._writer;void 0!==n&&e!==t._backpressure&&(!0===e?function(t){Bt(t)}(n):Vt(n)),t._backpressure=e}var yt=function(){function t(t){if(!1===st(t))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===ut(t))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=t,t._writer=this;var e,n=t._state;if("writable"===n)!1===pt(t)&&!0===t._backpressure?Bt(this):Ht(this),Mt(this);else if("erroring"===n)zt(this,t._storedError),Mt(this);else if("closed"===n)Ht(this),Mt(e=this),Nt(e);else{var r=t._storedError;zt(this,r),Dt(this,r)}}return Object.defineProperty(t.prototype,"closed",{get:function(){return!1===mt(this)?_(Ft("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===mt(this))throw Ft("desiredSize");if(void 0===this._ownerWritableStream)throw It("desiredSize");return t=this._ownerWritableStream,"errored"===(e=t._state)||"erroring"===e?null:"closed"===e?0:Pt(t._writableStreamController);var t,e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ready",{get:function(){return!1===mt(this)?_(Ft("ready")):this._readyPromise},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===mt(this)?_(Ft("abort")):void 0===this._ownerWritableStream?_(It("abort")):function(t,e){return lt(t._ownerWritableStream,e)}(this,t)},t.prototype.close=function(){if(!1===mt(this))return _(Ft("close"));var t=this._ownerWritableStream;return void 0===t?_(It("close")):!0===pt(t)?_(new TypeError("Cannot close an already-closing stream")):bt(this)},t.prototype.releaseLock=function(){if(!1===mt(this))throw Ft("releaseLock");void 0!==this._ownerWritableStream&&wt(this)},t.prototype.write=function(t){return!1===mt(this)?_(Ft("write")):void 0===this._ownerWritableStream?_(It("write to")):St(this,t)},t}();function mt(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_ownerWritableStream")}function bt(t){return ct(t._ownerWritableStream)}function _t(t,e){"pending"===t._closedPromiseState?jt(t,e):function(t,e){Dt(t,e)}(t,e)}function Ct(t,e){"pending"===t._readyPromiseState?Ut(t,e):function(t,e){zt(t,e)}(t,e)}function wt(t){var e=t._ownerWritableStream,n=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Ct(t,n),_t(t,n),e._writer=void 0,t._ownerWritableStream=void 0}function St(t,e){var n=t._ownerWritableStream,r=n._writableStreamController,i=function(t,e){try{return t._strategySizeAlgorithm(e)}catch(e){return Lt(t,e),1}}(r,e);if(n!==t._ownerWritableStream)return _(It("write to"));var o=n._state;if("errored"===o)return _(n._storedError);if(!0===pt(n)||"closed"===o)return _(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return _(n._storedError);var a=function(t){return m((function(e,n){var r={_resolve:e,_reject:n};t._writeRequests.push(r)}))}(n);return function(t,e,n){var r={chunk:e};try{tt(t,r,n)}catch(e){return void Lt(t,e)}var i=t._controlledWritableStream;if(!1===pt(i)&&"writable"===i._state){var o=Et(t);gt(i,o)}Tt(t)}(r,e,i),a}var xt=function(){function t(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return t.prototype.error=function(t){if(0==(!!o(e=this)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var e;"writable"===this._controlledWritableStream._state&&Rt(this,t)},t.prototype[nt]=function(t){var e=this._abortAlgorithm(t);return kt(this),e},t.prototype[rt]=function(){et(this)},t}();function At(t,e,n,r,i,o,a,s){e._controlledWritableStream=t,t._writableStreamController=e,e._queue=void 0,e._queueTotalSize=void 0,et(e),e._started=!1,e._strategySizeAlgorithm=s,e._strategyHWM=a,e._writeAlgorithm=r,e._closeAlgorithm=i,e._abortAlgorithm=o;var u=Et(e);gt(t,u),w(b(n()),(function(){e._started=!0,Tt(e)}),(function(n){e._started=!0,ht(t,n)}))}function kt(t){t._writeAlgorithm=void 0,t._closeAlgorithm=void 0,t._abortAlgorithm=void 0,t._strategySizeAlgorithm=void 0}function Pt(t){return t._strategyHWM-t._queueTotalSize}function Tt(t){var e=t._controlledWritableStream;if(!1!==t._started&&void 0===e._inFlightWriteRequest)if("erroring"!==e._state){if(0!==t._queue.length){var n=t._queue.peek().value;"close"===n?function(t){var e=t._controlledWritableStream;(function(t){t._inFlightCloseRequest=t._closeRequest,t._closeRequest=void 0})(e),J(t);var n=t._closeAlgorithm();kt(t),w(n,(function(){!function(t){t._inFlightCloseRequest._resolve(void 0),t._inFlightCloseRequest=void 0,"erroring"===t._state&&(t._storedError=void 0,void 0!==t._pendingAbortRequest&&(t._pendingAbortRequest._resolve(),t._pendingAbortRequest=void 0)),t._state="closed";var e=t._writer;void 0!==e&&Nt(e)}(e)}),(function(t){!function(t,e){t._inFlightCloseRequest._reject(e),t._inFlightCloseRequest=void 0,void 0!==t._pendingAbortRequest&&(t._pendingAbortRequest._reject(e),t._pendingAbortRequest=void 0),ht(t,e)}(e,t)}))}(t):function(t,e){var n=t._controlledWritableStream;(function(t){t._inFlightWriteRequest=t._writeRequests.shift()})(n),w(t._writeAlgorithm(e),(function(){!function(t){t._inFlightWriteRequest._resolve(void 0),t._inFlightWriteRequest=void 0}(n);var e=n._state;if(J(t),!1===pt(n)&&"writable"===e){var r=Et(t);gt(n,r)}Tt(t)}),(function(e){"writable"===n._state&&kt(t),function(t,e){t._inFlightWriteRequest._reject(e),t._inFlightWriteRequest=void 0,ht(t,e)}(n,e)}))}(t,n.chunk)}}else dt(e)}function Lt(t,e){"writable"===t._controlledWritableStream._state&&Rt(t,e)}function Et(t){return Pt(t)<=0}function Rt(t,e){var n=t._controlledWritableStream;kt(t),ft(n,e)}function Ot(t){return new TypeError("WritableStream.prototype."+t+" can only be used on a WritableStream")}function Ft(t){return new TypeError("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function It(t){return new TypeError("Cannot "+t+" a stream using a released writer")}function Mt(t){t._closedPromise=m((function(e,n){t._closedPromise_resolve=e,t._closedPromise_reject=n,t._closedPromiseState="pending"}))}function Dt(t,e){Mt(t),jt(t,e)}function jt(t,e){k(t._closedPromise),t._closedPromise_reject(e),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0,t._closedPromiseState="rejected"}function Nt(t){t._closedPromise_resolve(void 0),t._closedPromise_resolve=void 0,t._closedPromise_reject=void 0,t._closedPromiseState="resolved"}function Bt(t){t._readyPromise=m((function(e,n){t._readyPromise_resolve=e,t._readyPromise_reject=n})),t._readyPromiseState="pending"}function zt(t,e){Bt(t),Ut(t,e)}function Ht(t){Bt(t),Vt(t)}function Ut(t,e){k(t._readyPromise),t._readyPromise_reject(e),t._readyPromise_resolve=void 0,t._readyPromise_reject=void 0,t._readyPromiseState="rejected"}function Vt(t){t._readyPromise_resolve(void 0),t._readyPromise_resolve=void 0,t._readyPromise_reject=void 0,t._readyPromiseState="fulfilled"}function Wt(t){if("object"!=typeof t||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}var qt,$t="undefined"!=typeof DOMException?DOMException:void 0,Gt=function(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{return new t,!0}catch(t){return!1}}($t)?$t:((qt=function(t,e){this.message=t||"",this.name=e||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}).prototype=Object.create(Error.prototype),Object.defineProperty(qt.prototype,"constructor",{value:qt,writable:!0,configurable:!0}),qt);function Yt(t,e,r,i,o,a){var s=B(t),u=ot(e);t._disturbed=!0;var l=!1,c=b(void 0);return m((function(h,f){var d,p,v,g;if(void 0!==a){if(d=function(){var n=new Gt("Aborted","AbortError"),r=[];!1===i&&r.push((function(){return"writable"===e._state?lt(e,n):b(void 0)})),!1===o&&r.push((function(){return"readable"===t._state?ze(t,n):b(void 0)})),T((function(){return Promise.all(r.map((function(t){return t()})))}),!0,n)},!0===a.aborted)return void d();a.addEventListener("abort",d)}if(P(t,s._closedPromise,(function(t){!1===i?T((function(){return lt(e,t)}),!0,t):L(!0,t)})),P(e,u._closedPromise,(function(e){!1===o?T((function(){return ze(t,e)}),!0,e):L(!0,e)})),p=t,v=s._closedPromise,g=function(){!1===r?T((function(){return function(t){var e=t._ownerWritableStream,n=e._state;return!0===pt(e)||"closed"===n?b(void 0):"errored"===n?_(e._storedError):bt(t)}(u)})):L()},"closed"===p._state?g():S(v,g),!0===pt(e)||"closed"===e._state){var y=new TypeError("the destination writable stream closed before all data could be piped to it");!1===o?T((function(){return ze(t,y)}),!0,y):L(!0,y)}function A(){var t=c;return C(c,(function(){return t!==c?A():void 0}))}function P(t,e,n){"errored"===t._state?n(t._storedError):x(e,n)}function T(t,n,r){function i(){w(t(),(function(){return E(n,r)}),(function(t){return E(!0,t)}))}!0!==l&&(l=!0,"writable"===e._state&&!1===pt(e)?S(A(),i):i())}function L(t,n){!0!==l&&(l=!0,"writable"===e._state&&!1===pt(e)?S(A(),(function(){return E(t,n)})):E(t,n))}function E(t,e){wt(u),R(s),void 0!==a&&a.removeEventListener("abort",d),t?f(e):h(void 0)}k(m((function(t,e){!function r(i){i?t():C(!0===l?b(!0):C(u._readyPromise,(function(){return C(Y(s),(function(t){return!0===t.done||(c=C(St(u,t.value),void 0,n),!1)}))})),r,e)}(!1)})))}))}var Xt=function(){function t(){throw new TypeError}return Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Zt(this))throw ae("desiredSize");return re(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===Zt(this))throw ae("close");if(!1===ie(this))throw new TypeError("The stream is not in a state that permits close");te(this)},t.prototype.enqueue=function(t){if(!1===Zt(this))throw ae("enqueue");if(!1===ie(this))throw new TypeError("The stream is not in a state that permits enqueue");return ee(this,t)},t.prototype.error=function(t){if(!1===Zt(this))throw ae("error");ne(this,t)},t.prototype[j]=function(t){et(this);var e=this._cancelAlgorithm(t);return Jt(this),e},t.prototype[N]=function(){var t=this._controlledReadableStream;if(this._queue.length>0){var e=J(this);return!0===this._closeRequested&&0===this._queue.length?(Jt(this),He(t)):Kt(this),b(T(e,!1,t._reader._forAuthorCode))}var n=z(t);return Kt(this),n},t}();function Zt(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableStream")}function Kt(t){!1!==Qt(t)&&(!0!==t._pulling?(t._pulling=!0,w(t._pullAlgorithm(),(function(){t._pulling=!1,!0===t._pullAgain&&(t._pullAgain=!1,Kt(t))}),(function(e){ne(t,e)}))):t._pullAgain=!0)}function Qt(t){var e=t._controlledReadableStream;return!1!==ie(t)&&!1!==t._started&&(!0===Be(e)&&U(e)>0||re(t)>0)}function Jt(t){t._pullAlgorithm=void 0,t._cancelAlgorithm=void 0,t._strategySizeAlgorithm=void 0}function te(t){var e=t._controlledReadableStream;t._closeRequested=!0,0===t._queue.length&&(Jt(t),He(e))}function ee(t,e){var n=t._controlledReadableStream;if(!0===Be(n)&&U(n)>0)H(n,e,!1);else{var r=void 0;try{r=t._strategySizeAlgorithm(e)}catch(e){throw ne(t,e),e}try{tt(t,e,r)}catch(e){throw ne(t,e),e}}Kt(t)}function ne(t,e){var n=t._controlledReadableStream;"readable"===n._state&&(et(t),Jt(t),Ue(n,e))}function re(t){var e=t._controlledReadableStream._state;return"errored"===e?null:"closed"===e?0:t._strategyHWM-t._queueTotalSize}function ie(t){var e=t._controlledReadableStream._state;return!1===t._closeRequested&&"readable"===e}function oe(t,e,n,r,i,o,a){e._controlledReadableStream=t,e._queue=void 0,e._queueTotalSize=void 0,et(e),e._started=!1,e._closeRequested=!1,e._pullAgain=!1,e._pulling=!1,e._strategySizeAlgorithm=a,e._strategyHWM=o,e._pullAlgorithm=r,e._cancelAlgorithm=i,t._readableStreamController=e,w(b(n()),(function(){e._started=!0,Kt(e)}),(function(t){ne(e,t)}))}function ae(t){return new TypeError("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}var se=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},ue=function(){function t(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(t.prototype,"view",{get:function(){if(!1===he(this))throw Pe("view");return this._view},enumerable:!0,configurable:!0}),t.prototype.respond=function(t){if(!1===he(this))throw Pe("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,function(t,e){if(!1===s(e=Number(e)))throw new RangeError("bytesWritten must be a finite");Ce(t,e)}(this._associatedReadableByteStreamController,t)},t.prototype.respondWithNewView=function(t){if(!1===he(this))throw Pe("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(t))throw new TypeError("You can only respond with array buffer views");t.buffer,function(t,e){var n=t._pendingPullIntos.peek();if(n.byteOffset+n.bytesFilled!==e.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(n.byteLength!==e.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");n.buffer=e.buffer,Ce(t,e.byteLength)}(this._associatedReadableByteStreamController,t)},t}(),le=function(){function t(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(t.prototype,"byobRequest",{get:function(){if(!1===ce(this))throw Te("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek(),e=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),n=Object.create(ue.prototype);!function(t,e,n){t._associatedReadableByteStreamController=e,t._view=n}(n,this,e),this._byobRequest=n}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===ce(this))throw Te("desiredSize");return Ae(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===ce(this))throw Te("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be closed");!function(t){var e=t._controlledReadableByteStream;if(t._queueTotalSize>0)t._closeRequested=!0;else{if(t._pendingPullIntos.length>0&&t._pendingPullIntos.peek().bytesFilled>0){var n=new TypeError("Insufficient bytes to fill elements in the given buffer");throw xe(t,n),n}Se(t),He(e)}}(this)},t.prototype.enqueue=function(t){if(!1===ce(this))throw Te("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(t))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");t.buffer,function(t,e){var n=t._controlledReadableByteStream,r=e.buffer,i=e.byteOffset,o=e.byteLength,a=r;if(!0===V(n))if(0===U(n))ve(t,a,i,o);else{var s=new Uint8Array(a,i,o);H(n,s,!1)}else!0===Re(n)?(ve(t,a,i,o),_e(t)):ve(t,a,i,o);fe(t)}(this,t)},t.prototype.error=function(t){if(!1===ce(this))throw Te("error");xe(this,t)},t.prototype[j]=function(t){this._pendingPullIntos.length>0&&(this._pendingPullIntos.peek().bytesFilled=0),et(this);var e=this._cancelAlgorithm(t);return Se(this),e},t.prototype[N]=function(){var t=this._controlledReadableByteStream;if(this._queueTotalSize>0){var e=this._queue.shift();this._queueTotalSize-=e.byteLength,me(this);var n=void 0;try{n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}catch(t){return _(t)}return b(T(n,!1,t._reader._forAuthorCode))}var r=this._autoAllocateChunkSize;if(void 0!==r){var i=void 0;try{i=new ArrayBuffer(r)}catch(t){return _(t)}var o={buffer:i,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(o)}var a=z(t);return fe(this),a},t}();function ce(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledReadableByteStream")}function he(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_associatedReadableByteStreamController")}function fe(t){!1!==function(t){var e=t._controlledReadableByteStream;return"readable"===e._state&&!0!==t._closeRequested&&!1!==t._started&&(!0===V(e)&&U(e)>0||!0===Re(e)&&Ee(e)>0||Ae(t)>0)}(t)&&(!0!==t._pulling?(t._pulling=!0,w(t._pullAlgorithm(),(function(){t._pulling=!1,!0===t._pullAgain&&(t._pullAgain=!1,fe(t))}),(function(e){xe(t,e)}))):t._pullAgain=!0)}function de(t,e){var n=!1;"closed"===t._state&&(n=!0);var r=pe(e);"default"===e.readerType?H(t,r,n):function(t,e,n){var r=t._reader;r._readIntoRequests.shift()._resolve(T(e,n,r._forAuthorCode))}(t,r,n)}function pe(t){var e=t.bytesFilled,n=t.elementSize;return new t.ctor(t.buffer,t.byteOffset,e/n)}function ve(t,e,n,r){t._queue.push({buffer:e,byteOffset:n,byteLength:r}),t._queueTotalSize+=r}function ge(t,e){var n=e.elementSize,r=e.bytesFilled-e.bytesFilled%n,i=Math.min(t._queueTotalSize,e.byteLength-e.bytesFilled),o=e.bytesFilled+i,a=o-o%n,s=i,u=!1;a>r&&(s=a-e.bytesFilled,u=!0);for(var l,c,h,f,d,p=t._queue;s>0;){var v=p.peek(),g=Math.min(s,v.byteLength),y=e.byteOffset+e.bytesFilled;l=e.buffer,c=y,h=v.buffer,f=v.byteOffset,d=g,new Uint8Array(l).set(new Uint8Array(h,f,d),c),v.byteLength===g?p.shift():(v.byteOffset+=g,v.byteLength-=g),t._queueTotalSize-=g,ye(t,g,e),s-=g}return u}function ye(t,e,n){be(t),n.bytesFilled+=e}function me(t){0===t._queueTotalSize&&!0===t._closeRequested?(Se(t),He(t._controlledReadableByteStream)):fe(t)}function be(t){void 0!==t._byobRequest&&(t._byobRequest._associatedReadableByteStreamController=void 0,t._byobRequest._view=void 0,t._byobRequest=void 0)}function _e(t){for(;t._pendingPullIntos.length>0;){if(0===t._queueTotalSize)return;var e=t._pendingPullIntos.peek();!0===ge(t,e)&&(we(t),de(t._controlledReadableByteStream,e))}}function Ce(t,e){var n=t._pendingPullIntos.peek();if("closed"===t._controlledReadableByteStream._state){if(0!==e)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");!function(t,e){e.buffer=e.buffer;var n=t._controlledReadableByteStream;if(!0===Re(n))for(;Ee(n)>0;)de(n,we(t))}(t,n)}else!function(t,e,n){if(n.bytesFilled+e>n.byteLength)throw new RangeError("bytesWritten out of range");if(ye(t,e,n),!(n.bytesFilled<n.elementSize)){we(t);var r=n.bytesFilled%n.elementSize;if(r>0){var i=n.byteOffset+n.bytesFilled,o=n.buffer.slice(i-r,i);ve(t,o,0,o.byteLength)}n.buffer=n.buffer,n.bytesFilled-=r,de(t._controlledReadableByteStream,n),_e(t)}}(t,e,n);fe(t)}function we(t){var e=t._pendingPullIntos.shift();return be(t),e}function Se(t){t._pullAlgorithm=void 0,t._cancelAlgorithm=void 0}function xe(t,e){var n=t._controlledReadableByteStream;"readable"===n._state&&(function(t){be(t),t._pendingPullIntos=new P}(t),et(t),Se(t),Ue(n,e))}function Ae(t){var e=t._controlledReadableByteStream._state;return"errored"===e?null:"closed"===e?0:t._strategyHWM-t._queueTotalSize}function ke(t,e,n){var r=Object.create(le.prototype),i=l(e,"pull",0,[r]),o=l(e,"cancel",1,[]),a=e.autoAllocateChunkSize;if(void 0!==a&&(a=Number(a),!1===se(a)||a<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(t,e,n,r,i,o,a){e._controlledReadableByteStream=t,e._pullAgain=!1,e._pulling=!1,e._byobRequest=void 0,e._queue=e._queueTotalSize=void 0,et(e),e._closeRequested=!1,e._started=!1,e._strategyHWM=f(o),e._pullAlgorithm=r,e._cancelAlgorithm=i,e._autoAllocateChunkSize=a,e._pendingPullIntos=new P,t._readableStreamController=e,w(b(n()),(function(){e._started=!0,fe(e)}),(function(t){xe(e,t)}))}(t,r,(function(){return c(e,"start",[r])}),i,o,n,a)}function Pe(t){return new TypeError("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function Te(t){return new TypeError("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function Le(t){return m((function(e,n){var r={_resolve:e,_reject:n};t._reader._readIntoRequests.push(r)}))}function Ee(t){return t._reader._readIntoRequests.length}function Re(t){var e=t._reader;return void 0!==e&&!!Fe(e)}var Oe=function(){function t(t){if(!Ne(t))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===ce(t._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Be(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");L(this,t),this._readIntoRequests=new P}return Object.defineProperty(t.prototype,"closed",{get:function(){return Fe(this)?this._closedPromise:_(Ie("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return Fe(this)?void 0===this._ownerReadableStream?_(O("cancel")):E(this,t):_(Ie("cancel"))},t.prototype.read=function(t){return Fe(this)?void 0===this._ownerReadableStream?_(O("read from")):ArrayBuffer.isView(t)?(t.buffer,0===t.byteLength?_(new TypeError("view must have non-zero byteLength")):function(t,e){var n=t._ownerReadableStream;return n._disturbed=!0,"errored"===n._state?_(n._storedError):function(t,e){var n=t._controlledReadableByteStream,r=1;e.constructor!==DataView&&(r=e.constructor.BYTES_PER_ELEMENT);var i=e.constructor,o={buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,bytesFilled:0,elementSize:r,ctor:i,readerType:"byob"};if(t._pendingPullIntos.length>0)return t._pendingPullIntos.push(o),Le(n);if("closed"===n._state)return b(T(new i(o.buffer,o.byteOffset,0),!0,n._reader._forAuthorCode));if(t._queueTotalSize>0){if(!0===ge(t,o)){var a=pe(o);return me(t),b(T(a,!1,n._reader._forAuthorCode))}if(!0===t._closeRequested){var s=new TypeError("Insufficient bytes to fill elements in the given buffer");return xe(t,s),_(s)}}t._pendingPullIntos.push(o);var u=Le(n);return fe(t),u}(n._readableStreamController,e)}(this,t)):_(new TypeError("view must be an array buffer view")):_(Ie("read"))},t.prototype.releaseLock=function(){if(!Fe(this))throw Ie("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");R(this)}},t}();function Fe(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readIntoRequests")}function Ie(t){return new TypeError("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}var Me=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e={}),je(this);var n=e.size,r=e.highWaterMark,i=t.type;if("bytes"===String(i)){if(void 0!==n)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===r&&(r=0),ke(this,t,r=f(r))}else{if(void 0!==i)throw new RangeError("Invalid type is specified");var o=d(n);void 0===r&&(r=1),function(t,e,n,r){var i=Object.create(Xt.prototype),o=l(e,"pull",0,[i]),a=l(e,"cancel",1,[]);oe(t,i,(function(){return c(e,"start",[i])}),o,a,n,r)}(this,t,r=f(r),o)}}return Object.defineProperty(t.prototype,"locked",{get:function(){if(!1===Ne(this))throw Ve("locked");return Be(this)},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return!1===Ne(this)?_(Ve("cancel")):!0===Be(this)?_(new TypeError("Cannot cancel a stream that already has a reader")):ze(this,t)},t.prototype.getReader=function(t){var e=(void 0===t?{}:t).mode;if(!1===Ne(this))throw Ve("getReader");if(void 0===e)return B(this,!0);if("byob"===(e=String(e)))return function(t,e){void 0===e&&(e=!1);var n=new Oe(t);return n._forAuthorCode=e,n}(this,!0);throw new RangeError("Invalid mode is specified")},t.prototype.pipeThrough=function(t,e){var n=t.writable,r=t.readable,i=void 0===e?{}:e,o=i.preventClose,a=i.preventAbort,s=i.preventCancel,u=i.signal;if(!1===Ne(this))throw Ve("pipeThrough");if(!1===st(n))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===Ne(r))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),a=Boolean(a),s=Boolean(s),void 0!==u&&!Wt(u))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===Be(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===ut(n))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return k(Yt(this,n,o,a,s,u)),r},t.prototype.pipeTo=function(t,e){var n=void 0===e?{}:e,r=n.preventClose,i=n.preventAbort,o=n.preventCancel,a=n.signal;return!1===Ne(this)?_(Ve("pipeTo")):!1===st(t)?_(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(r=Boolean(r),i=Boolean(i),o=Boolean(o),void 0===a||Wt(a)?!0===Be(this)?_(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===ut(t)?_(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Yt(this,t,r,i,o,a):_(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},t.prototype.tee=function(){if(!1===Ne(this))throw Ve("tee");var t=function(t,e){var n,r,i,o,s,u=B(t),l=!1,c=!1,h=!1,f=m((function(t){s=t}));function d(){return!0===l||(l=!0,k(A(Y(u),(function(t){if(l=!1,!0===t.done)return!1===c&&te(i._readableStreamController),void(!1===h&&te(o._readableStreamController));var e=t.value,n=e,r=e;!1===c&&ee(i._readableStreamController,n),!1===h&&ee(o._readableStreamController,r)})))),b(void 0)}function p(){}return i=De(p,d,(function(e){if(c=!0,n=e,!0===h){var i=a([n,r]),o=ze(t,i);s(o)}return f})),o=De(p,d,(function(e){if(h=!0,r=e,!0===c){var i=a([n,r]),o=ze(t,i);s(o)}return f})),x(u._closedPromise,(function(t){ne(i._readableStreamController,t),ne(o._readableStreamController,t)})),[i,o]}(this);return a(t)},t.prototype.getIterator=function(t){var e=(void 0===t?{}:t).preventCancel,n=void 0!==e&&e;if(!1===Ne(this))throw Ve("getIterator");return function(t,e){void 0===e&&(e=!1);var n=B(t),r=Object.create(Z);return r._asyncIteratorReader=n,r._preventCancel=Boolean(e),r}(this,n)},t}();function De(t,e,n,r,i){void 0===r&&(r=1),void 0===i&&(i=function(){return 1});var o=Object.create(Me.prototype);return je(o),oe(o,Object.create(Xt.prototype),t,e,n,r,i),o}function je(t){t._state="readable",t._reader=void 0,t._storedError=void 0,t._disturbed=!1}function Ne(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_readableStreamController")}function Be(t){return void 0!==t._reader}function ze(t,e){return t._disturbed=!0,"closed"===t._state?b(void 0):"errored"===t._state?_(t._storedError):(He(t),A(t._readableStreamController[j](e),n))}function He(t){t._state="closed";var e=t._reader;void 0!==e&&(G(e)&&(e._readRequests.forEach((function(t){t._resolve(T(void 0,!0,e._forAuthorCode))})),e._readRequests=new P),D(e))}function Ue(t,e){t._state="errored",t._storedError=e;var n=t._reader;void 0!==n&&(G(n)?(n._readRequests.forEach((function(t){t._reject(e)})),n._readRequests=new P):(n._readIntoRequests.forEach((function(t){t._reject(e)})),n._readIntoRequests=new P),M(n,e))}function Ve(t){return new TypeError("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}"symbol"==typeof e.asyncIterator&&Object.defineProperty(Me.prototype,e.asyncIterator,{value:Me.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var We=function(){function t(t){var e=t.highWaterMark;this.highWaterMark=e}return t.prototype.size=function(t){return t.byteLength},t}(),qe=function(){function t(t){var e=t.highWaterMark;this.highWaterMark=e}return t.prototype.size=function(){return 1},t}(),$e=function(){function t(t,e,n){void 0===t&&(t={}),void 0===e&&(e={}),void 0===n&&(n={});var r=e.size,i=e.highWaterMark,o=n.size,a=n.highWaterMark;if(void 0!==t.writableType)throw new RangeError("Invalid writable type specified");var s=d(r);if(void 0===i&&(i=1),i=f(i),void 0!==t.readableType)throw new RangeError("Invalid readable type specified");var u,p=d(o);void 0===a&&(a=0),a=f(a),function(t,e,n,r,i,o){function a(){return e}t._writable=function(t,e,n,r,i,o){void 0===i&&(i=1),void 0===o&&(o=function(){return 1});var a=Object.create(it.prototype);return at(a),At(a,Object.create(xt.prototype),t,e,n,r,i,o),a}(a,(function(e){return function(t,e){var n=t._transformStreamController;return!0===t._backpressure?A(t._backpressureChangePromise,(function(){var r=t._writable;if("erroring"===r._state)throw r._storedError;return en(n,e)})):en(n,e)}(t,e)}),(function(){return function(t){var e=t._readable,n=t._transformStreamController,r=n._flushAlgorithm();return Je(n),A(r,(function(){if("errored"===e._state)throw e._storedError;var t=e._readableStreamController;!0===ie(t)&&te(t)}),(function(n){throw Ye(t,n),e._storedError}))}(t)}),(function(e){return function(t,e){return Ye(t,e),b(void 0)}(t,e)}),n,r),t._readable=De(a,(function(){return function(t){return Ze(t,!1),t._backpressureChangePromise}(t)}),(function(e){return Xe(t,e),b(void 0)}),i,o),t._backpressure=void 0,t._backpressureChangePromise=void 0,t._backpressureChangePromise_resolve=void 0,Ze(t,!0),t._transformStreamController=void 0}(this,m((function(t){u=t})),i,s,a,p),function(t,e){var n=Object.create(Ke.prototype),r=function(t){try{return tn(n,t),b(void 0)}catch(t){return _(t)}},i=e.transform;if(void 0!==i){if("function"!=typeof i)throw new TypeError("transform is not a method");r=function(t){return h(i,e,[t,n])}}var o=l(e,"flush",0,[n]);!function(t,e,n,r){e._controlledTransformStream=t,t._transformStreamController=e,e._transformAlgorithm=n,e._flushAlgorithm=r}(t,n,r,o)}(this,t);var v=c(t,"start",[this._transformStreamController]);u(v)}return Object.defineProperty(t.prototype,"readable",{get:function(){if(!1===Ge(this))throw rn("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"writable",{get:function(){if(!1===Ge(this))throw rn("writable");return this._writable},enumerable:!0,configurable:!0}),t}();function Ge(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_transformStreamController")}function Ye(t,e){ne(t._readable._readableStreamController,e),Xe(t,e)}function Xe(t,e){Je(t._transformStreamController),Lt(t._writable._writableStreamController,e),!0===t._backpressure&&Ze(t,!1)}function Ze(t,e){void 0!==t._backpressureChangePromise&&t._backpressureChangePromise_resolve(),t._backpressureChangePromise=m((function(e){t._backpressureChangePromise_resolve=e})),t._backpressure=e}var Ke=function(){function t(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Qe(this))throw nn("desiredSize");return re(this._controlledTransformStream._readable._readableStreamController)},enumerable:!0,configurable:!0}),t.prototype.enqueue=function(t){if(!1===Qe(this))throw nn("enqueue");tn(this,t)},t.prototype.error=function(t){if(!1===Qe(this))throw nn("error");var e;e=t,Ye(this._controlledTransformStream,e)},t.prototype.terminate=function(){if(!1===Qe(this))throw nn("terminate");!function(t){var e=t._controlledTransformStream,n=e._readable._readableStreamController;!0===ie(n)&&te(n);var r=new TypeError("TransformStream terminated");Xe(e,r)}(this)},t}();function Qe(t){return!!o(t)&&!!Object.prototype.hasOwnProperty.call(t,"_controlledTransformStream")}function Je(t){t._transformAlgorithm=void 0,t._flushAlgorithm=void 0}function tn(t,e){var n=t._controlledTransformStream,r=n._readable._readableStreamController;if(!1===ie(r))throw new TypeError("Readable side is not in a state that permits enqueue");try{ee(r,e)}catch(t){throw Xe(n,t),n._readable._storedError}(function(t){return!0!==Qt(t)})(r)!==n._backpressure&&Ze(n,!0)}function en(t,e){return A(t._transformAlgorithm(e),void 0,(function(e){throw Ye(t._controlledTransformStream,e),e}))}function nn(t){return new TypeError("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function rn(t){return new TypeError("TransformStream.prototype."+t+" can only be used on a TransformStream")}t.ByteLengthQueuingStrategy=We,t.CountQueuingStrategy=qe,t.ReadableStream=Me,t.TransformStream=$e,t.WritableStream=it,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){n(145),n(114),n(77),n(116);var r=n(43);t.exports=r.Map},function(t,e,n){var r=n(146),i=n(150);t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},function(t,e,n){var r=n(10),i=n(11),o=n(52),a=n(29),s=n(147),u=n(124),l=n(123),c=n(22),h=n(14),f=n(97),d=n(85),p=n(149);t.exports=function(t,e,n){var v=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),y=v?"set":"add",m=i[t],b=m&&m.prototype,_=m,C={},w=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!c(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!c(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(o(t,"function"!=typeof m||!(g||b.forEach&&!h((function(){(new m).entries().next()})))))_=n.getConstructor(e,t,v,y),s.REQUIRED=!0;else if(o(t,!0)){var S=new _,x=S[y](g?{}:-0,1)!=S,A=h((function(){S.has(1)})),k=f((function(t){new m(t)})),P=!g&&h((function(){for(var t=new m,e=5;e--;)t[y](e,e);return!t.has(-0)}));k||((_=e((function(e,n){l(e,_,t);var r=p(new m,e,_);return null!=n&&u(n,r[y],r,v),r}))).prototype=b,b.constructor=_),(A||P)&&(w("delete"),w("has"),v&&w("get")),(P||x)&&w(y),g&&b.clear&&delete b.clear}return C[t]=_,r({global:!0,forced:_!=m},C),d(_,t),g||n.setStrong(_,t,v),_}},function(t,e,n){var r=n(39),i=n(22),o=n(23),a=n(27).f,s=n(38),u=n(148),l=s("meta"),c=0,h=Object.isExtensible||function(){return!0},f=function(t){a(t,l,{value:{objectID:"O"+ ++c,weakData:{}}})},d=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,l)){if(!h(t))return"F";if(!e)return"E";f(t)}return t[l].objectID},getWeakData:function(t,e){if(!o(t,l)){if(!h(t))return!0;if(!e)return!1;f(t)}return t[l].weakData},onFreeze:function(t){return u&&d.REQUIRED&&h(t)&&!o(t,l)&&f(t),t}};r[l]=!0},function(t,e,n){var r=n(14);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){var r=n(22),i=n(87);t.exports=function(t,e,n){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},function(t,e,n){var r=n(27).f,i=n(71),o=n(121),a=n(62),s=n(123),u=n(124),l=n(79),c=n(122),h=n(13),f=n(147).fastKey,d=n(33),p=d.set,v=d.getterFor;t.exports={getConstructor:function(t,e,n,l){var c=t((function(t,r){s(t,c,e),p(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),h||(t.size=0),null!=r&&u(r,t[l],t,n)})),d=v(e),g=function(t,e,n){var r,i,o=d(t),a=y(t,e);return a?a.value=n:(o.last=a={index:i=f(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),h?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},y=function(t,e){var n,r=d(t),i=f(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(c.prototype,{clear:function(){for(var t=d(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,h?t.size=0:this.size=0},delete:function(t){var e=d(this),n=y(this,t);if(n){var r=n.next,i=n.previous;delete e.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),e.first==n&&(e.first=r),e.last==n&&(e.last=i),h?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=d(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),o(c.prototype,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),h&&r(c.prototype,"size",{get:function(){return d(this).size}}),c},setStrong:function(t,e,n){var r=e+" Iterator",i=v(e),o=v(r);l(t,e,(function(t,e){p(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(e)}}},function(t,e,n){n(152),n(114),n(77),n(116);var r=n(43);t.exports=r.Set},function(t,e,n){var r=n(146),i=n(150);t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},function(t,e,n){n(114),n(154),n(116);var r=n(43);t.exports=r.WeakMap},function(t,e,n){var r,i=n(11),o=n(121),a=n(147),s=n(146),u=n(155),l=n(22),c=n(33).enforce,h=n(34),f=!i.ActiveXObject&&"ActiveXObject"in i,d=Object.isExtensible,p=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},v=t.exports=s("WeakMap",p,u);if(h&&f){r=u.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var g=v.prototype,y=g.delete,m=g.has,b=g.get,_=g.set;o(g,{delete:function(t){if(l(t)&&!d(t)){var e=c(this);return e.frozen||(e.frozen=new r),y.call(this,t)||e.frozen.delete(t)}return y.call(this,t)},has:function(t){if(l(t)&&!d(t)){var e=c(this);return e.frozen||(e.frozen=new r),m.call(this,t)||e.frozen.has(t)}return m.call(this,t)},get:function(t){if(l(t)&&!d(t)){var e=c(this);return e.frozen||(e.frozen=new r),m.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(l(t)&&!d(t)){var n=c(this);n.frozen||(n.frozen=new r),m.call(this,t)?_.call(this,t,e):n.frozen.set(t,e)}else _.call(this,t,e);return this}})}},function(t,e,n){var r=n(121),i=n(147).getWeakData,o=n(28),a=n(22),s=n(123),u=n(124),l=n(156),c=n(23),h=n(33),f=h.set,d=h.getterFor,p=l.find,v=l.findIndex,g=0,y=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,e){return p(t.entries,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=v(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,l){var h=t((function(t,r){s(t,h,e),f(t,{type:e,id:g++,frozen:void 0}),null!=r&&u(r,t[l],t,n)})),p=d(e),v=function(t,e,n){var r=p(t),a=i(o(e),!0);return!0===a?y(r).set(e,n):a[r.id]=n,t};return r(h.prototype,{delete:function(t){var e=p(this);if(!a(t))return!1;var n=i(t);return!0===n?y(e).delete(t):n&&c(n,e.id)&&delete n[e.id]},has:function(t){var e=p(this);if(!a(t))return!1;var n=i(t);return!0===n?y(e).has(t):n&&c(n,e.id)}}),r(h.prototype,n?{get:function(t){var e=p(this);if(a(t)){var n=i(t);return!0===n?y(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return v(this,t,e)}}:{add:function(t){return v(this,t,!0)}}),h}}},function(t,e,n){var r=n(62),i=n(18),o=n(83),a=n(47),s=n(157),u=[].push,l=function(t){var e=1==t,n=2==t,l=3==t,c=4==t,h=6==t,f=5==t||h;return function(d,p,v,g){for(var y,m,b=o(d),_=i(b),C=r(p,v,3),w=a(_.length),S=0,x=g||s,A=e?x(d,w):n?x(d,0):void 0;w>S;S++)if((f||S in _)&&(m=C(y=_[S],S,b),t))if(e)A[S]=m;else if(m)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:u.call(A,y)}else if(c)return!1;return h?-1:l||c?c:A}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(t,e,n){var r=n(22),i=n(158),o=n(57)("species");t.exports=function(t,e){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},function(t,e,n){var r=n(19);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){n(114),n(160),n(116);var r=n(43);t.exports=r.WeakSet},function(t,e,n){n(146)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(155))},function(t,e,n){n(162);var r=n(61);t.exports=r("String","codePointAt")},function(t,e,n){var r=n(10),i=n(78).codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},function(t,e,n){n(164);var r=n(43);t.exports=r.String.fromCodePoint},function(t,e,n){var r=n(10),i=n(49),o=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){n(166),n(114),n(168),n(172),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187);var r=n(43);t.exports=r.Symbol},function(t,e,n){var r=n(10),i=n(14),o=n(158),a=n(22),s=n(83),u=n(47),l=n(93),c=n(157),h=n(167),f=n(57),d=n(133),p=f("isConcatSpreadable"),v=d>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),g=h("concat"),y=function(t){if(!a(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,forced:!v||!g},{concat:function(t){var e,n,r,i,o,a=s(this),h=c(a,0),f=0;for(e=-1,r=arguments.length;e<r;e++)if(y(o=-1===e?a:arguments[e])){if(f+(i=u(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,f++)n in o&&l(h,f,o[n])}else{if(f>=9007199254740991)throw TypeError("Maximum allowed index exceeded");l(h,f++,o)}return h.length=f,h}})},function(t,e,n){var r=n(14),i=n(57),o=n(133),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(10),i=n(11),o=n(42),a=n(37),s=n(13),u=n(58),l=n(59),c=n(14),h=n(23),f=n(158),d=n(22),p=n(28),v=n(83),g=n(17),y=n(21),m=n(16),b=n(71),_=n(73),C=n(44),w=n(169),S=n(51),x=n(12),A=n(27),k=n(15),P=n(26),T=n(29),L=n(36),E=n(35),R=n(39),O=n(38),F=n(57),I=n(170),M=n(171),D=n(85),j=n(33),N=n(156).forEach,B=E("hidden"),z=F("toPrimitive"),H=j.set,U=j.getterFor("Symbol"),V=Object.prototype,W=i.Symbol,q=o("JSON","stringify"),$=x.f,G=A.f,Y=w.f,X=k.f,Z=L("symbols"),K=L("op-symbols"),Q=L("string-to-symbol-registry"),J=L("symbol-to-string-registry"),tt=L("wks"),et=i.QObject,nt=!et||!et.prototype||!et.prototype.findChild,rt=s&&c((function(){return 7!=b(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=$(V,e);r&&delete V[e],G(t,e,n),r&&t!==V&&G(V,e,r)}:G,it=function(t,e){var n=Z[t]=b(W.prototype);return H(n,{type:"Symbol",tag:t,description:e}),s||(n.description=e),n},ot=l?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof W},at=function(t,e,n){t===V&&at(K,e,n),p(t);var r=y(e,!0);return p(n),h(Z,r)?(n.enumerable?(h(t,B)&&t[B][r]&&(t[B][r]=!1),n=b(n,{enumerable:m(0,!1)})):(h(t,B)||G(t,B,m(1,{})),t[B][r]=!0),rt(t,r,n)):G(t,r,n)},st=function(t,e){p(t);var n=g(e),r=_(n).concat(ht(n));return N(r,(function(e){s&&!ut.call(n,e)||at(t,e,n[e])})),t},ut=function(t){var e=y(t,!0),n=X.call(this,e);return!(this===V&&h(Z,e)&&!h(K,e))&&(!(n||!h(this,e)||!h(Z,e)||h(this,B)&&this[B][e])||n)},lt=function(t,e){var n=g(t),r=y(e,!0);if(n!==V||!h(Z,r)||h(K,r)){var i=$(n,r);return!i||!h(Z,r)||h(n,B)&&n[B][r]||(i.enumerable=!0),i}},ct=function(t){var e=Y(g(t)),n=[];return N(e,(function(t){h(Z,t)||h(R,t)||n.push(t)})),n},ht=function(t){var e=t===V,n=Y(e?K:g(t)),r=[];return N(n,(function(t){!h(Z,t)||e&&!h(V,t)||r.push(Z[t])})),r};u||(T((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=O(t),n=function t(n){this===V&&t.call(K,n),h(this,B)&&h(this[B],e)&&(this[B][e]=!1),rt(this,e,m(1,n))};return s&&nt&&rt(V,e,{configurable:!0,set:n}),it(e,t)}).prototype,"toString",(function(){return U(this).tag})),T(W,"withoutSetter",(function(t){return it(O(t),t)})),k.f=ut,A.f=at,x.f=lt,C.f=w.f=ct,S.f=ht,I.f=function(t){return it(F(t),t)},s&&(G(W.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),a||T(V,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),N(_(tt),(function(t){M(t)})),r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=String(t);if(h(Q,e))return Q[e];var n=W(e);return Q[e]=n,J[n]=e,n},keyFor:function(t){if(!ot(t))throw TypeError(t+" is not a symbol");if(h(J,t))return J[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(t,e){return void 0===e?b(t):st(b(t),e)},defineProperty:at,defineProperties:st,getOwnPropertyDescriptor:lt}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ct,getOwnPropertySymbols:ht}),r({target:"Object",stat:!0,forced:c((function(){S.f(1)}))},{getOwnPropertySymbols:function(t){return S.f(v(t))}}),q&&r({target:"JSON",stat:!0,forced:!u||c((function(){var t=W();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))}))},{stringify:function(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,(d(e)||void 0!==t)&&!ot(t))return f(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!ot(e))return e}),i[1]=e,q.apply(null,i)}}),W.prototype[z]||P(W.prototype,z,W.prototype.valueOf),D(W,"Symbol"),R[B]=!0},function(t,e,n){var r=n(17),i=n(44).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(r(t))}},function(t,e,n){var r=n(57);e.f=r},function(t,e,n){var r=n(43),i=n(23),o=n(170),a=n(27).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},function(t,e,n){n(171)("asyncIterator")},function(t,e,n){var r=n(10),i=n(13),o=n(11),a=n(23),s=n(22),u=n(27).f,l=n(40),c=o.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var h={},f=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof f?new c(t):void 0===t?c():c(t);return""===t&&(h[e]=!0),e};l(f,c);var d=f.prototype=c.prototype;d.constructor=f;var p=d.toString,v="Symbol(test)"==String(c("test")),g=/^Symbol\((.*)\)[^)]+$/;u(d,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(a(h,t))return"";var n=v?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},function(t,e,n){n(171)("hasInstance")},function(t,e,n){n(171)("isConcatSpreadable")},function(t,e,n){n(171)("iterator")},function(t,e,n){n(171)("match")},function(t,e,n){n(171)("matchAll")},function(t,e,n){n(171)("replace")},function(t,e,n){n(171)("search")},function(t,e,n){n(171)("species")},function(t,e,n){n(171)("split")},function(t,e,n){n(171)("toPrimitive")},function(t,e,n){n(171)("toStringTag")},function(t,e,n){n(171)("unscopables")},function(t,e,n){n(85)(Math,"Math",!0)},function(t,e,n){var r=n(11);n(85)(r.JSON,"JSON",!0)},function(t,e,n){n(189);var r=n(61);t.exports=r("String","padStart")},function(t,e,n){var r=n(10),i=n(190).start;r({target:"String",proto:!0,forced:n(192)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(47),i=n(191),o=n(20),a=Math.ceil,s=function(t){return function(e,n,s){var u,l,c=String(o(e)),h=c.length,f=void 0===s?" ":String(s),d=r(n);return d<=h||""==f?c:(u=d-h,(l=i.call(f,a(u/f.length))).length>u&&(l=l.slice(0,u)),t?c+l:l+c)}};t.exports={start:s(!1),end:s(!0)}},function(t,e,n){var r=n(48),i=n(20);t.exports="".repeat||function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e,n){var r=n(127);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(t,e,n){n(194);var r=n(61);t.exports=r("String","padEnd")},function(t,e,n){var r=n(10),i=n(190).end;r({target:"String",proto:!0,forced:n(192)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){n(196);var r=n(43);t.exports=r.Object.values},function(t,e,n){var r=n(10),i=n(197).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},function(t,e,n){var r=n(13),i=n(73),o=n(17),a=n(15).f,s=function(t){return function(e){for(var n,s=o(e),u=i(s),l=u.length,c=0,h=[];l>c;)n=u[c++],r&&!a.call(s,n)||h.push(t?[n,s[n]]:s[n]);return h}};t.exports={entries:s(!0),values:s(!1)}},function(module,exports,__w_pdfjs_require__){Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(5),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(199),_api_compatibility=__w_pdfjs_require__(200),_canvas=__w_pdfjs_require__(201),_worker_options=__w_pdfjs_require__(203),_is_node=__w_pdfjs_require__(7),_message_handler=__w_pdfjs_require__(204),_metadata=__w_pdfjs_require__(205),_transport_stream=__w_pdfjs_require__(207),_webgl=__w_pdfjs_require__(208);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function asyncGeneratorStep(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function _asyncToGenerator(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){asyncGeneratorStep(o,r,i,a,s,"next",t)}function s(t){asyncGeneratorStep(o,r,i,a,s,"throw",t)}a(void 0)}))}}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _createForOfIteratorHelper(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _iterableToArrayLimit(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,createPDFNetworkStream;function setPDFNetworkStreamFactory(t){createPDFNetworkStream=t}function getDocument(t){var e,n=new PDFDocumentLoadingTask;if("string"==typeof t)e={url:t};else if((0,_util.isArrayBuffer)(t))e={data:t};else if(t instanceof PDFDataRangeTransport)e={range:t};else{if("object"!==_typeof(t))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!t.url&&!t.data&&!t.range)throw new Error("Invalid parameter object: need either .data, .range or .url");e=t}var r=Object.create(null),i=null,o=null;for(var a in e)if("url"!==a||"undefined"==typeof window)if("range"!==a)if("worker"!==a)if("data"!==a||e[a]instanceof Uint8Array)r[a]=e[a];else{var s=e[a];if("string"==typeof s)r[a]=(0,_util.stringToBytes)(s);else if("object"!==_typeof(s)||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");r[a]=new Uint8Array(s)}else r[a]=new Uint8Array(s)}else o=e[a];else i=e[a];else r[a]=new URL(e[a],window.location).href;if(r.rangeChunkSize=r.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,r.CMapReaderFactory=r.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,r.ignoreErrors=!0!==r.stopAtErrors,r.fontExtraProperties=!0===r.fontExtraProperties,r.pdfBug=!0===r.pdfBug,Number.isInteger(r.maxImageSize)||(r.maxImageSize=-1),"boolean"!=typeof r.isEvalSupported&&(r.isEvalSupported=!0),"boolean"!=typeof r.disableFontFace&&(r.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),"boolean"!=typeof r.disableRange&&(r.disableRange=!1),"boolean"!=typeof r.disableStream&&(r.disableStream=!1),"boolean"!=typeof r.disableAutoFetch&&(r.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(r.verbosity),!o){var u={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};o=u.port?PDFWorker.fromPort(u):new PDFWorker(u),n._worker=o}var l=n.docId;return o.promise.then((function(){if(n.destroyed)throw new Error("Loading aborted");var t=_fetchDocument(o,r,i,l),e=new Promise((function(t){var e;i?e=new _transport_stream.PDFDataTransportStream({length:r.length,initialData:r.initialData,progressiveDone:r.progressiveDone,disableRange:r.disableRange,disableStream:r.disableStream},i):r.data||(e=createPDFNetworkStream({url:r.url,length:r.length,httpHeaders:r.httpHeaders,withCredentials:r.withCredentials,rangeChunkSize:r.rangeChunkSize,disableRange:r.disableRange,disableStream:r.disableStream})),t(e)}));return Promise.all([t,e]).then((function(t){var e=_slicedToArray(t,2),i=e[0],a=e[1];if(n.destroyed)throw new Error("Loading aborted");var s=new _message_handler.MessageHandler(l,i,o.port);s.postMessageTransfers=o.postMessageTransfers;var u=new WorkerTransport(s,n,a,r);n._transport=u,s.send("Ready",null)}))})).catch(n._capability.reject),n}function _fetchDocument(t,e,n,r){return t.destroyed?Promise.reject(new Error("Worker was destroyed")):(n&&(e.length=n.length,e.initialData=n.initialData,e.progressiveDone=n.progressiveDone),t.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"2.5.207",source:{data:e.data,url:e.url,password:e.password,disableAutoFetch:e.disableAutoFetch,rangeChunkSize:e.rangeChunkSize,length:e.length},maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,postMessageTransfers:t.postMessageTransfers,docBaseUrl:e.docBaseUrl,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported,fontExtraProperties:e.fontExtraProperties}).then((function(e){if(t.destroyed)throw new Error("Worker was destroyed");return e})))}var PDFDocumentLoadingTask=(nextDocumentId=0,function(){function t(){_classCallCheck(this,t),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+nextDocumentId++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(t,[{key:"destroy",value:function(){var t=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then((function(){t._transport=null,t._worker&&(t._worker.destroy(),t._worker=null)}))}},{key:"promise",get:function(){return this._capability.promise}}]),t}()),nextDocumentId,PDFDataRangeTransport=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.length=e,this.initialData=n,this.progressiveDone=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(t,[{key:"addRangeListener",value:function(t){this._rangeListeners.push(t)}},{key:"addProgressListener",value:function(t){this._progressListeners.push(t)}},{key:"addProgressiveReadListener",value:function(t){this._progressiveReadListeners.push(t)}},{key:"addProgressiveDoneListener",value:function(t){this._progressiveDoneListeners.push(t)}},{key:"onDataRange",value:function(t,e){var n,r=_createForOfIteratorHelper(this._rangeListeners);try{for(r.s();!(n=r.n()).done;)(0,n.value)(t,e)}catch(t){r.e(t)}finally{r.f()}}},{key:"onDataProgress",value:function(t,e){var n=this;this._readyCapability.promise.then((function(){var r,i=_createForOfIteratorHelper(n._progressListeners);try{for(i.s();!(r=i.n()).done;)(0,r.value)(t,e)}catch(t){i.e(t)}finally{i.f()}}))}},{key:"onDataProgressiveRead",value:function(t){var e=this;this._readyCapability.promise.then((function(){var n,r=_createForOfIteratorHelper(e._progressiveReadListeners);try{for(r.s();!(n=r.n()).done;)(0,n.value)(t)}catch(t){r.e(t)}finally{r.f()}}))}},{key:"onDataProgressiveDone",value:function(){var t=this;this._readyCapability.promise.then((function(){var e,n=_createForOfIteratorHelper(t._progressiveDoneListeners);try{for(n.s();!(e=n.n()).done;)(0,e.value)()}catch(t){n.e(t)}finally{n.f()}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(t,e){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),t}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function t(e,n){_classCallCheck(this,t),this._pdfInfo=e,this._transport=n}return _createClass(t,[{key:"getPage",value:function(t){return this._transport.getPage(t)}},{key:"getPageIndex",value:function(t){return this._transport.getPageIndex(t)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(t){return this._transport.getDestination(t)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getOpenActionDestination",value:function(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then((function(t){return t&&t.dest?t.dest:null}))}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),t}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,t),this._pageIndex=e,this._pageInfo=n,this._transport=r,this._stats=i?new _display_utils.StatTimer:null,this._pdfBug=i,this.commonObjs=r.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return _createClass(t,[{key:"getViewport",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.scale,n=t.rotation,r=void 0===n?this.rotate:n,i=t.offsetX,o=void 0===i?0:i,a=t.offsetY,s=void 0===a?0:a,u=t.dontFlip,l=void 0!==u&&u;return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:r,offsetX:o,offsetY:s,dontFlip:l})}},{key:"getAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.intent,n=void 0===e?null:e;return this.annotationsPromise&&this.annotationsIntent===n||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,n),this.annotationsIntent=n),this.annotationsPromise}},{key:"render",value:function(t){var e=this,n=t.canvasContext,r=t.viewport,i=t.intent,o=void 0===i?"display":i,a=t.enableWebGL,s=void 0!==a&&a,u=t.renderInteractiveForms,l=void 0!==u&&u,c=t.transform,h=void 0===c?null:c,f=t.imageLayer,d=void 0===f?null:f,p=t.canvasFactory,v=void 0===p?null:p,g=t.background,y=void 0===g?null:g;this._stats&&this._stats.time("Overall");var m="print"===o?"print":"display";this.pendingCleanup=!1,this.intentStates[m]||(this.intentStates[m]=Object.create(null));var b=this.intentStates[m];b.streamReaderCancelTimeout&&(clearTimeout(b.streamReaderCancelTimeout),b.streamReaderCancelTimeout=null);var _=v||new _display_utils.DOMCanvasFactory,C=new _webgl.WebGLContext({enable:s});b.displayReadyCapability||(b.displayReadyCapability=(0,_util.createPromiseCapability)(),b.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:m,renderInteractiveForms:!0===l}));var w=function(t){var n=b.renderTasks.indexOf(S);n>=0&&b.renderTasks.splice(n,1),(e.cleanupAfterRender||"print"===m)&&(e.pendingCleanup=!0),e._tryCleanup(),t?(S.capability.reject(t),e._abortOperatorList({intentState:b,reason:t})):S.capability.resolve(),e._stats&&(e._stats.timeEnd("Rendering"),e._stats.timeEnd("Overall"))},S=new InternalRenderTask({callback:w,params:{canvasContext:n,viewport:r,transform:h,imageLayer:d,background:y},objs:this.objs,commonObjs:this.commonObjs,operatorList:b.operatorList,pageIndex:this._pageIndex,canvasFactory:_,webGLContext:C,useRequestAnimationFrame:"print"!==m,pdfBug:this._pdfBug});b.renderTasks||(b.renderTasks=[]),b.renderTasks.push(S);var x=S.task;return b.displayReadyCapability.promise.then((function(t){e.pendingCleanup?w():(e._stats&&e._stats.time("Rendering"),S.initializeGraphics(t),S.operatorListChanged())})).catch(w),x}},{key:"getOperatorList",value:function(){this.intentStates.oplist||(this.intentStates.oplist=Object.create(null));var t,e=this.intentStates.oplist;return e.opListReadCapability||((t={}).operatorListChanged=function(){if(e.operatorList.lastChunk){e.opListReadCapability.resolve(e.operatorList);var n=e.renderTasks.indexOf(t);n>=0&&e.renderTasks.splice(n,1)}},e.opListReadCapability=(0,_util.createPromiseCapability)(),e.renderTasks=[],e.renderTasks.push(t),e.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:"oplist"})),e.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.normalizeWhitespace,n=void 0!==e&&e,r=t.disableCombineTextItems,i=void 0!==r&&r,o=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===n,combineTextItems:!0!==i},{highWaterMark:o,size:function(t){return t.items.length}})}},{key:"getTextContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.streamTextContent(t);return new Promise((function(t,n){var r=e.getReader(),i={items:[],styles:Object.create(null)};!function e(){r.read().then((function(n){var r,o=n.value;n.done?t(i):(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.a)(i.styles,o.styles),(r=i.items).push.apply(r,_toConsumableArray(o.items)),e())}),n)}()}))}},{key:"_destroy",value:function(){var t=this;this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var e=[];return Object.keys(this.intentStates).forEach((function(n){var r=t.intentStates[n];t._abortOperatorList({intentState:r,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==n&&r.renderTasks.forEach((function(t){var n=t.capability.promise.catch((function(){}));e.push(n),t.cancel()}))})),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(e)}},{key:"cleanup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(t)}},{key:"_tryCleanup",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(!this.pendingCleanup||Object.keys(this.intentStates).some((function(e){var n=t.intentStates[e];return 0!==n.renderTasks.length||!n.operatorList.lastChunk}))||(Object.keys(this.intentStates).forEach((function(e){delete t.intentStates[e]})),this.objs.clear(),this.annotationsPromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,0))}},{key:"_startRenderPage",value:function(t,e){var n=this.intentStates[e];n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(t))}},{key:"_renderPageChunk",value:function(t,e){for(var n=0,r=t.length;n<r;n++)e.operatorList.fnArray.push(t.fnArray[n]),e.operatorList.argsArray.push(t.argsArray[n]);e.operatorList.lastChunk=t.lastChunk;for(var i=0;i<e.renderTasks.length;i++)e.renderTasks[i].operatorListChanged();t.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(t){var e=this;(0,_util.assert)(t.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var n=this._transport.messageHandler.sendWithStream("GetOperatorList",t).getReader(),r=this.intentStates[t.intent];r.streamReader=n,function t(){n.read().then((function(n){var i=n.value;n.done?r.streamReader=null:e._transport.destroyed||(e._renderPageChunk(i,r),t())}),(function(t){if(r.streamReader=null,!e._transport.destroyed){if(r.operatorList){r.operatorList.lastChunk=!0;for(var n=0;n<r.renderTasks.length;n++)r.renderTasks[n].operatorListChanged();e._tryCleanup()}if(r.displayReadyCapability)r.displayReadyCapability.reject(t);else{if(!r.opListReadCapability)throw t;r.opListReadCapability.reject(t)}}}))}()}},{key:"_abortOperatorList",value:function(t){var e=this,n=t.intentState,r=t.reason,i=t.force,o=void 0!==i&&i;if((0,_util.assert)(r instanceof Error||"object"===_typeof(r)&&null!==r,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),n.streamReader){if(!o){if(0!==n.renderTasks.length)return;if(r instanceof _display_utils.RenderingCancelledException)return void(n.streamReaderCancelTimeout=setTimeout((function(){e._abortOperatorList({intentState:n,reason:r,force:!0}),n.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}n.streamReader.cancel(new _util.AbortException(r&&r.message)),n.streamReader=null,this._transport.destroyed||(Object.keys(this.intentStates).some((function(t){return e.intentStates[t]===n&&(delete e.intentStates[t],!0)})),this.cleanup())}}},{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"stats",get:function(){return this._stats}}]),t}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function t(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,t),this._listeners=[],this._defer=e,this._deferred=Promise.resolve(void 0)}return _createClass(t,[{key:"postMessage",value:function(t,e){var n=this;if(this._defer){var r=new WeakMap,i={data:function t(n){if("object"!==_typeof(n)||null===n)return n;if(r.has(n))return r.get(n);var i,o;if((i=n.buffer)&&(0,_util.isArrayBuffer)(i))return o=e&&e.includes(i)?new n.constructor(i,n.byteOffset,n.byteLength):new n.constructor(n),r.set(n,o),o;for(var a in o=Array.isArray(n)?[]:{},r.set(n,o),n){for(var s=void 0,u=n;!(s=Object.getOwnPropertyDescriptor(u,a));)u=Object.getPrototypeOf(u);if(void 0!==s.value)if("function"!=typeof s.value)o[a]=t(s.value);else if(n.hasOwnProperty&&n.hasOwnProperty(a))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(n[a]))}return o}(t)};this._deferred.then((function(){n._listeners.forEach((function(t){t.call(n,i)}))}))}else this._listeners.forEach((function(e){e.call(n,{data:t})}))}},{key:"addEventListener",value:function(t,e){this._listeners.push(e)}},{key:"removeEventListener",value:function(t,e){var n=this._listeners.indexOf(e);this._listeners.splice(n,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),t}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"==typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(void 0!==fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var t;try{t=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(t){}return t||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref10=_asyncToGenerator(_regenerator.default.mark((function _callee(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler(),!mainWorkerMessageHandler){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}}),_callee)})));return function(){return _ref10.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(t){var e="importScripts('"+t+"');";return URL.createObjectURL(new Blob([e]))}var PDFWorker=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.name,r=void 0===n?null:n,i=e.port,o=void 0===i?null:i,a=e.verbosity,s=void 0===a?(0,_util.getVerbosityLevel)():a;if(_classCallCheck(this,t),o&&pdfWorkerPorts.has(o))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=r,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,o)return pdfWorkerPorts.set(o,this),void this._initializeFromPort(o);this._initialize()}return _createClass(t,[{key:"_initializeFromPort",value:function(t){this._port=t,this._messageHandler=new _message_handler.MessageHandler("main","worker",t),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var t=this;if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var e=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,e)||(e=createCDNWrapper(new URL(e,window.location).href));var n=new Worker(e),r=new _message_handler.MessageHandler("main","worker",n),i=function(){n.removeEventListener("error",o),r.destroy(),n.terminate(),t.destroyed?t._readyCapability.reject(new Error("Worker was destroyed")):t._setupFakeWorker()},o=function(){t._webWorker||i()};n.addEventListener("error",o),r.on("test",(function(e){n.removeEventListener("error",o),t.destroyed?i():e?(t._messageHandler=r,t._port=n,t._webWorker=n,e.supportTransfers||(t.postMessageTransfers=!1),t._readyCapability.resolve(),r.send("configure",{verbosity:t.verbosity})):(t._setupFakeWorker(),r.destroy(),n.terminate())})),r.on("ready",(function(e){if(n.removeEventListener("error",o),t.destroyed)i();else try{a()}catch(e){t._setupFakeWorker()}}));var a=function(){var e=new Uint8Array([t.postMessageTransfers?255:0]);try{r.send("test",e,[e.buffer])}catch(t){(0,_util.warn)("Cannot use postMessage transfers."),e[0]=0,r.send("test",e)}};return void a()}catch(t){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var t=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then((function(e){if(t.destroyed)t._readyCapability.reject(new Error("Worker was destroyed"));else{var n=new LoopbackPort;t._port=n;var r="fake"+nextFakeWorkerId++,i=new _message_handler.MessageHandler(r+"_worker",r,n);e.setup(i,n);var o=new _message_handler.MessageHandler(r,r+"_worker",n);t._messageHandler=o,t._readyCapability.resolve(),o.send("configure",{verbosity:t.verbosity})}})).catch((function(e){t._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(e.message,'".')))}))}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(e){if(!e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(e.port)?pdfWorkerPorts.get(e.port):new t(e)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),t}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function t(e,n,r,i){_classCallCheck(this,t),this.messageHandler=e,this.loadingTask=n,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:n.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=i,this.CMapReaderFactory=new i.CMapReaderFactory({baseUrl:i.cMapUrl,isCompressed:i.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(t,[{key:"destroy",value:function(){var t=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var e=[];this.pageCache.forEach((function(t){t&&e.push(t._destroy())})),this.pageCache.length=0,this.pagePromises.length=0;var n=this.messageHandler.sendWithPromise("Terminate",null);return e.push(n),Promise.all(e).then((function(){t.fontLoader.clear(),t._networkStream&&t._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),t.messageHandler&&(t.messageHandler.destroy(),t.messageHandler=null),t.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var t=this,e=this.messageHandler,n=this.loadingTask;e.on("GetReader",(function(e,n){(0,_util.assert)(t._networkStream,"GetReader - no `IPDFStream` instance available."),t._fullReader=t._networkStream.getFullReader(),t._fullReader.onProgress=function(e){t._lastProgress={loaded:e.loaded,total:e.total}},n.onPull=function(){t._fullReader.read().then((function(t){var e=t.value;t.done?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(e),1,[e]))})).catch((function(t){n.error(t)}))},n.onCancel=function(e){t._fullReader.cancel(e)}})),e.on("ReaderHeadersReady",(function(e){var r=(0,_util.createPromiseCapability)(),i=t._fullReader;return i.headersReady.then((function(){i.isStreamingSupported&&i.isRangeSupported||(t._lastProgress&&n.onProgress&&n.onProgress(t._lastProgress),i.onProgress=function(t){n.onProgress&&n.onProgress({loaded:t.loaded,total:t.total})}),r.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})}),r.reject),r.promise})),e.on("GetRangeReader",(function(e,n){(0,_util.assert)(t._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var r=t._networkStream.getRangeReader(e.begin,e.end);r?(n.onPull=function(){r.read().then((function(t){var e=t.value;t.done?n.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),n.enqueue(new Uint8Array(e),1,[e]))})).catch((function(t){n.error(t)}))},n.onCancel=function(t){r.cancel(t)}):n.close()})),e.on("GetDoc",(function(e){var r=e.pdfInfo;t._numPages=r.numPages,n._capability.resolve(new PDFDocumentProxy(r,t))})),e.on("DocException",(function(t){var e;switch(t.name){case"PasswordException":e=new _util.PasswordException(t.message,t.code);break;case"InvalidPDFException":e=new _util.InvalidPDFException(t.message);break;case"MissingPDFException":e=new _util.MissingPDFException(t.message);break;case"UnexpectedResponseException":e=new _util.UnexpectedResponseException(t.message,t.status);break;case"UnknownErrorException":e=new _util.UnknownErrorException(t.message,t.details)}n._capability.reject(e)})),e.on("PasswordRequest",(function(e){if(t._passwordCapability=(0,_util.createPromiseCapability)(),n.onPassword)try{n.onPassword((function(e){t._passwordCapability.resolve({password:e})}),e.code)}catch(e){t._passwordCapability.reject(e)}else t._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return t._passwordCapability.promise})),e.on("DataLoaded",(function(e){n.onProgress&&n.onProgress({loaded:e.length,total:e.length}),t.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(function(e){t.destroyed||t.pageCache[e.pageIndex]._startRenderPage(e.transparency,e.intent)})),e.on("commonobj",(function(n){if(!t.destroyed){var r=_slicedToArray(n,3),i=r[0],o=r[1],a=r[2];if(!t.commonObjs.has(i))switch(o){case"Font":var s=t._params;if("error"in a){var u=a.error;(0,_util.warn)("Error during font loading: ".concat(u)),t.commonObjs.resolve(i,u);break}var l=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(l={registerFont:function(t,e){globalThis.FontInspector.fontAdded(t,e)}});var c=new _font_loader.FontFaceObject(a,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:t._onUnsupportedFeature.bind(t),fontRegistry:l});t.fontLoader.bind(c).catch((function(t){return e.sendWithPromise("FontFallback",{id:i})})).finally((function(){!s.fontExtraProperties&&c.data&&(c.data=null),t.commonObjs.resolve(i,c)}));break;case"FontPath":case"FontType3Res":case"Image":t.commonObjs.resolve(i,a);break;default:throw new Error("Got unknown common object type ".concat(o))}}})),e.on("obj",(function(e){if(!t.destroyed){var n=_slicedToArray(e,4),r=n[0],i=n[1],o=n[2],a=n[3],s=t.pageCache[i];if(!s.objs.has(r))switch(o){case"Image":s.objs.resolve(r,a),a&&"data"in a&&a.data.length>8e6&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(o))}}})),e.on("DocProgress",(function(e){t.destroyed||n.onProgress&&n.onProgress({loaded:e.loaded,total:e.total})})),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",(function(e,n){if(t.destroyed)n.error(new Error("Worker was destroyed"));else{var r=!1;n.onPull=function(){r?n.close():(r=!0,t.CMapReaderFactory.fetch(e).then((function(t){n.enqueue(t,1,[t.cMapData.buffer])})).catch((function(t){n.error(t)})))}}}))}},{key:"_onUnsupportedFeature",value:function(t){var e=t.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(e)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(t){var e=this;if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request"));var n=t-1;if(n in this.pagePromises)return this.pagePromises[n];var r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then((function(t){if(e.destroyed)throw new Error("Transport destroyed");var r=new PDFPageProxy(n,t,e,e._params.pdfBug);return e.pageCache[n]=r,r}));return this.pagePromises[n]=r,r}},{key:"getPageIndex",value:function(t){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:t}).catch((function(t){return Promise.reject(new Error(t))}))}},{key:"getAnnotations",value:function(t,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:e})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(t){return"string"!=typeof t?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var t=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then((function(e){return{info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:t._fullReader?t._fullReader.filename:null}}))}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var t=this;return this.messageHandler.sendWithPromise("Cleanup",null).then((function(){for(var e=0,n=t.pageCache.length;e<n;e++){var r=t.pageCache[e];if(r&&!r.cleanup())throw new Error("startCleanup: Page ".concat(e+1," is currently rendering."))}t.commonObjs.clear(),t.fontLoader.clear()}))}},{key:"loadingParams",get:function(){var t=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:t.disableAutoFetch,disableFontFace:t.disableFontFace})}}]),t}(),PDFObjects=function(){function t(){_classCallCheck(this,t),this._objs=Object.create(null)}return _createClass(t,[{key:"_ensureObj",value:function(t){return this._objs[t]?this._objs[t]:this._objs[t]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e)return this._ensureObj(t).capability.promise.then(e),null;var n=this._objs[t];if(!n||!n.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(t,"."));return n.data}},{key:"has",value:function(t){var e=this._objs[t];return!!e&&e.resolved}},{key:"resolve",value:function(t,e){var n=this._ensureObj(t);n.resolved=!0,n.data=e,n.capability.resolve(e)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),t}(),RenderTask=function(){function t(e){_classCallCheck(this,t),this._internalRenderTask=e,this.onContinue=null}return _createClass(t,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),t}(),InternalRenderTask=(canvasInRendering=new WeakSet,function(){function t(e){var n=e.callback,r=e.params,i=e.objs,o=e.commonObjs,a=e.operatorList,s=e.pageIndex,u=e.canvasFactory,l=e.webGLContext,c=e.useRequestAnimationFrame,h=void 0!==c&&c,f=e.pdfBug,d=void 0!==f&&f;_classCallCheck(this,t),this.callback=n,this.params=r,this.objs=i,this.commonObjs=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=s,this.canvasFactory=u,this.webGLContext=l,this._pdfBug=d,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===h&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=r.canvasContext.canvas}var e;return _createClass(t,[{key:"initializeGraphics",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.cancelled){if(this._canvas){if(canvasInRendering.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");canvasInRendering.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var e=this.params,n=e.canvasContext,r=e.viewport,i=e.transform,o=e.imageLayer,a=e.background;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,o),this.gfx.beginDrawing({transform:i,viewport:r,transparency:t,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&canvasInRendering.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var t=this;this._useRequestAnimationFrame?window.requestAnimationFrame((function(){t._nextBound().catch(t.cancel.bind(t))})):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:(e=_asyncToGenerator(_regenerator.default.mark((function t(){return _regenerator.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&canvasInRendering.delete(this._canvas),this.callback()));case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),t}()),canvasInRendering,version="2.5.207";exports.version=version;var build="0974d605";exports.build=build},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.FontLoader=e.FontFaceObject=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},o=n(5);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t}var v,g=function(){function t(e){var n=e.docId,r=e.onUnsupportedFeature;f(this,t),this.constructor===t&&(0,o.unreachable)("Cannot initialize BaseFontLoader."),this.docId=n,this._onUnsupportedFeature=r,this.nativeFontFaces=[],this.styleElement=null}var e,n;return p(t,[{key:"addNativeFontFace",value:function(t){this.nativeFontFaces.push(t),document.fonts.add(t)}},{key:"insertRule",value:function(t){var e=this.styleElement;e||((e=this.styleElement=document.createElement("style")).id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(e));var n=e.sheet;n.insertRule(t,n.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach((function(t){document.fonts.delete(t)})),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:(e=i.default.mark((function t(e){var n,r,a=this;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.attached&&!e.missingFile){t.next=2;break}return t.abrupt("return");case 2:if(e.attached=!0,!this.isFontLoadingAPISupported){t.next=19;break}if(!(n=e.createNativeFontFace())){t.next=18;break}return this.addNativeFontFace(n),t.prev=7,t.next=10,n.loaded;case 10:t.next=18;break;case 12:throw t.prev=12,t.t0=t.catch(7),this._onUnsupportedFeature({featureId:o.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,o.warn)("Failed to load font '".concat(n.family,"': '").concat(t.t0,"'.")),e.disableFontFace=!0,t.t0;case 18:return t.abrupt("return");case 19:if(!(r=e.createFontFaceRule())){t.next=26;break}if(this.insertRule(r),!this.isSyncFontLoadingSupported){t.next=24;break}return t.abrupt("return");case 24:return t.next=26,new Promise((function(t){var n=a._queueLoadingCallback(t);a._prepareFontLoadEvent([r],[e],n)}));case 26:case"end":return t.stop()}}),t,this,[[7,12]])})),n=function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(t){h(o,r,i,a,s,"next",t)}function s(t){h(o,r,i,a,s,"throw",t)}a(void 0)}))},function(t){return n.apply(this,arguments)})},{key:"_queueLoadingCallback",value:function(t){(0,o.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(t,e,n){(0,o.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var t="undefined"!=typeof document&&!!document.fonts;return(0,o.shadow)(this,"isFontLoadingAPISupported",t)}},{key:"isSyncFontLoadingSupported",get:function(){(0,o.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,o.unreachable)("Abstract method `_loadTestFont`.")}}]),t}();e.FontLoader=v,e.FontLoader=v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(n,t);var e=u(n);function n(t){var r;return f(this,n),(r=e.call(this,t)).loadingContext={requests:[],nextRequestId:0},r.loadTestFontId=0,r}return p(n,[{key:"_queueLoadingCallback",value:function(t){var e=this.loadingContext,n={id:"pdfjs-font-loading-".concat(e.nextRequestId++),done:!1,complete:function(){for((0,o.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;e.requests.length>0&&e.requests[0].done;){var t=e.requests.shift();setTimeout(t.callback,0)}},callback:t};return e.requests.push(n),n}},{key:"_prepareFontLoadEvent",value:function(t,e,n){function r(t,e){return t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|255&t.charCodeAt(e+3)}function i(t,e,n,r){return t.substring(0,e)+r+t.substring(e+n)}var a,s,u=document.createElement("canvas");u.width=1,u.height=1;var l=u.getContext("2d"),c=0,h="lt".concat(Date.now()).concat(this.loadTestFontId++),f=this._loadTestFont,d=r(f=i(f,976,h.length,h),16);for(a=0,s=h.length-3;a<s;a+=4)d=d-1482184792+r(h,a)|0;a<h.length&&(d=d-1482184792+r(h+"XXX",a)|0),f=i(f,16,4,(0,o.string32)(d));var p="url(data:font/opentype;base64,".concat(btoa(f),");"),v='@font-face {font-family:"'.concat(h,'";src:').concat(p,"}");this.insertRule(v);var g=[];for(a=0,s=e.length;a<s;a++)g.push(e[a].loadedName);g.push(h);var y=document.createElement("div");for(y.style.visibility="hidden",y.style.width=y.style.height="10px",y.style.position="absolute",y.style.top=y.style.left="0px",a=0,s=g.length;a<s;++a){var m=document.createElement("span");m.textContent="Hi",m.style.fontFamily=g[a],y.appendChild(m)}document.body.appendChild(y),function t(e,n){if(++c>30)return(0,o.warn)("Load test font never loaded."),void n();l.font="30px "+e,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0?n():setTimeout(t.bind(null,e,n))}(h,(function(){document.body.removeChild(y),n.complete()}))}},{key:"isSyncFontLoadingSupported",get:function(){var t=!1;if("undefined"==typeof navigator)t=!0;else{var e=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);e&&e[1]>=14&&(t=!0)}return(0,o.shadow)(this,"isSyncFontLoadingSupported",t)}},{key:"_loadTestFont",get:function(){return(0,o.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}}]),n}(g);var y=function(){function t(e,n){var r=n.isEvalSupported,i=void 0===r||r,o=n.disableFontFace,a=void 0!==o&&o,s=n.ignoreErrors,u=void 0!==s&&s,l=n.onUnsupportedFeature,c=void 0===l?null:l,h=n.fontRegistry,d=void 0===h?null:h;for(var p in f(this,t),this.compiledGlyphs=Object.create(null),e)this[p]=e[p];this.isEvalSupported=!1!==i,this.disableFontFace=!0===a,this.ignoreErrors=!0===u,this._onUnsupportedFeature=c,this.fontRegistry=d}return p(t,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var t=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),t}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var t=(0,o.bytesToString)(new Uint8Array(this.data)),e="url(data:".concat(this.mimetype,";base64,").concat(btoa(t),");"),n='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(e,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,e),n}},{key:"getPathGenerator",value:function(t,e){if(void 0!==this.compiledGlyphs[e])return this.compiledGlyphs[e];var n,r;try{n=t.get(this.loadedName+"_path_"+e)}catch(t){if(!this.ignoreErrors)throw t;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:o.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,o.warn)('getPathGenerator - ignoring character: "'.concat(t,'".')),this.compiledGlyphs[e]=function(t,e){}}if(this.isEvalSupported&&o.IsEvalSupportedCached.value){for(var i,a="",s=0,u=n.length;s<u;s++)i=void 0!==(r=n[s]).args?r.args.join(","):"",a+="c."+r.cmd+"("+i+");\n";return this.compiledGlyphs[e]=new Function("c","size",a)}return this.compiledGlyphs[e]=function(t,e){for(var i=0,o=n.length;i<o;i++)"scale"===(r=n[i]).cmd&&(r.args=[e,-e]),t[r.cmd].apply(t,r.args)}}}]),t}();e.FontFaceObject=y},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.apiCompatibilityParams=void 0;var r=n(7),i=Object.create(null);r.isNodeJS&&(i.disableFontFace=!0);var o=Object.freeze(i);e.apiCompatibilityParams=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasGraphics=void 0;var r=n(5),i=n(202);function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t){t.mozCurrentTransform||(t._originalSave=t.save,t._originalRestore=t.restore,t._originalRotate=t.rotate,t._originalScale=t.scale,t._originalTranslate=t.translate,t._originalTransform=t.transform,t._originalSetTransform=t.setTransform,t._transformMatrix=t._transformMatrix||[1,0,0,1,0,0],t._transformStack=[],Object.defineProperty(t,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(t,"mozCurrentTransformInverse",{get:function(){var t=this._transformMatrix,e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=e*i-n*r,u=n*r-e*i;return[i/s,n/u,r/u,e/s,(i*o-r*a)/u,(n*o-e*a)/s]}}),t.save=function(){var t=this._transformMatrix;this._transformStack.push(t),this._transformMatrix=t.slice(0,6),this._originalSave()},t.restore=function(){var t=this._transformStack.pop();t&&(this._transformMatrix=t,this._originalRestore())},t.translate=function(t,e){var n=this._transformMatrix;n[4]=n[0]*t+n[2]*e+n[4],n[5]=n[1]*t+n[3]*e+n[5],this._originalTranslate(t,e)},t.scale=function(t,e){var n=this._transformMatrix;n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*e,n[3]=n[3]*e,this._originalScale(t,e)},t.transform=function(e,n,r,i,o,a){var s=this._transformMatrix;this._transformMatrix=[s[0]*e+s[2]*n,s[1]*e+s[3]*n,s[0]*r+s[2]*i,s[1]*r+s[3]*i,s[0]*o+s[2]*a+s[4],s[1]*o+s[3]*a+s[5]],t._originalTransform(e,n,r,i,o,a)},t.setTransform=function(e,n,r,i,o,a){this._transformMatrix=[e,n,r,i,o,a],t._originalSetTransform(e,n,r,i,o,a)},t.rotate=function(t){var e=Math.cos(t),n=Math.sin(t),r=this._transformMatrix;this._transformMatrix=[r[0]*e+r[2]*n,r[1]*e+r[3]*n,r[0]*-n+r[2]*e,r[1]*-n+r[3]*e,r[4],r[5]],this._originalRotate(t)})}var u=function(){function t(t){this.canvasFactory=t,this.cache=Object.create(null)}return t.prototype={getCanvas:function(t,e,n,r){var i;return void 0!==this.cache[t]?(i=this.cache[t],this.canvasFactory.reset(i,e,n),i.context.setTransform(1,0,0,1,0,0)):(i=this.canvasFactory.create(e,n),this.cache[t]=i),r&&s(i.context),i},clear:function(){for(var t in this.cache){var e=this.cache[t];this.canvasFactory.destroy(e),delete this.cache[t]}}},t}(),l=function(){function t(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=r.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=r.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return t.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(t,e){this.x=t,this.y=e}},t}(),c=function(){function t(t,e,n,r,i,o){this.ctx=t,this.current=new l,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=e,this.objs=n,this.canvasFactory=r,this.webGLContext=i,this.imageLayer=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new u(this.canvasFactory),t&&s(t),this._cachedGetSinglePixelWidth=null}function e(t,e){if("undefined"!=typeof ImageData&&e instanceof ImageData)t.putImageData(e,0,0);else{var n,i,o,a,s,u=e.height,l=e.width,c=u%16,h=(u-c)/16,f=0===c?h:h+1,d=t.createImageData(l,16),p=0,v=e.data,g=d.data;if(e.kind===r.ImageKind.GRAYSCALE_1BPP){var y=v.byteLength,m=new Uint32Array(g.buffer,0,g.byteLength>>2),b=m.length,_=l+7>>3,C=4294967295,w=r.IsLittleEndianCached.value?4278190080:255;for(i=0;i<f;i++){for(a=i<h?16:c,n=0,o=0;o<a;o++){for(var S=y-p,x=0,A=S>_?l:8*S-7,k=-8&A,P=0,T=0;x<k;x+=8)T=v[p++],m[n++]=128&T?C:w,m[n++]=64&T?C:w,m[n++]=32&T?C:w,m[n++]=16&T?C:w,m[n++]=8&T?C:w,m[n++]=4&T?C:w,m[n++]=2&T?C:w,m[n++]=1&T?C:w;for(;x<A;x++)0===P&&(T=v[p++],P=128),m[n++]=T&P?C:w,P>>=1}for(;n<b;)m[n++]=0;t.putImageData(d,0,16*i)}}else if(e.kind===r.ImageKind.RGBA_32BPP){for(o=0,s=16*l*4,i=0;i<h;i++)g.set(v.subarray(p,p+s)),p+=s,t.putImageData(d,0,o),o+=16;i<f&&(s=l*c*4,g.set(v.subarray(p,p+s)),t.putImageData(d,0,o))}else{if(e.kind!==r.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(e.kind));for(s=l*(a=16),i=0;i<f;i++){for(i>=h&&(s=l*(a=c)),n=0,o=s;o--;)g[n++]=v[p++],g[n++]=v[p++],g[n++]=v[p++],g[n++]=255;t.putImageData(d,0,16*i)}}}}function n(t,e){for(var n=e.height,r=e.width,i=n%16,o=(n-i)/16,a=0===i?o:o+1,s=t.createImageData(r,16),u=0,l=e.data,c=s.data,h=0;h<a;h++){for(var f=h<o?16:i,d=3,p=0;p<f;p++)for(var v=0,g=0;g<r;g++){if(!v){var y=l[u++];v=128}c[d]=y&v?0:255,d+=4,v>>=1}t.putImageData(s,0,16*h)}}function a(t,e){for(var n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],r=0,i=n.length;r<i;r++){var o=n[r];void 0!==t[o]&&(e[o]=t[o])}void 0!==t.setLineDash&&(e.setLineDash(t.getLineDash()),e.lineDashOffset=t.lineDashOffset)}function c(t){t.strokeStyle="#000000",t.fillStyle="#000000",t.fillRule="nonzero",t.globalAlpha=1,t.lineWidth=1,t.lineCap="butt",t.lineJoin="miter",t.miterLimit=10,t.globalCompositeOperation="source-over",t.font="10px sans-serif",void 0!==t.setLineDash&&(t.setLineDash([]),t.lineDashOffset=0)}function h(t,e,n,r){for(var i=t.length,o=3;o<i;o+=4){var a=t[o];if(0===a)t[o-3]=e,t[o-2]=n,t[o-1]=r;else if(a<255){var s=255-a;t[o-3]=t[o-3]*a+e*s>>8,t[o-2]=t[o-2]*a+n*s>>8,t[o-1]=t[o-1]*a+r*s>>8}}}function f(t,e,n){for(var r=t.length,i=3;i<r;i+=4){var o=n?n[t[i]]:t[i];e[i]=e[i]*o*(1/255)|0}}function d(t,e,n){for(var r=t.length,i=3;i<r;i+=4){var o=77*t[i-3]+152*t[i-2]+28*t[i-1];e[i]=n?e[i]*n[o>>8]>>8:e[i]*o>>16}}function p(t,e,n,r){var i=e.canvas,o=e.context;t.setTransform(e.scaleX,0,0,e.scaleY,e.offsetX,e.offsetY);var a=e.backdrop||null;if(!e.transferMap&&r.isEnabled){var s=r.composeSMask({layer:n.canvas,mask:i,properties:{subtype:e.subtype,backdrop:a}});return t.setTransform(1,0,0,1,0,0),void t.drawImage(s,e.offsetX,e.offsetY)}!function(t,e,n,r,i,o,a){var s,u=!!o,l=u?o[0]:0,c=u?o[1]:0,p=u?o[2]:0;s="Luminosity"===i?d:f;for(var v=Math.min(r,Math.ceil(1048576/n)),g=0;g<r;g+=v){var y=Math.min(v,r-g),m=t.getImageData(0,g,n,y),b=e.getImageData(0,g,n,y);u&&h(m.data,l,c,p),s(m.data,b.data,a),t.putImageData(b,0,g)}}(o,n,i.width,i.height,e.subtype,a,e.transferMap),t.drawImage(i,0,0)}var v=["butt","round","square"],g=["miter","round","bevel"],y={},m={};for(var b in t.prototype={beginDrawing:function(t){var e=t.transform,n=t.viewport,r=t.transparency,i=void 0!==r&&r,o=t.background,a=void 0===o?null:o,s=this.ctx.canvas.width,u=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=a||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,s,u),this.ctx.restore(),i){var l=this.cachedCanvases.getCanvas("transparent",s,u,!0);this.compositeCtx=this.ctx,this.transparentCanvas=l.canvas,this.ctx=l.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),c(this.ctx),e&&this.ctx.transform.apply(this.ctx,e),this.ctx.transform.apply(this.ctx,n.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(t,e,n,i){var a=t.argsArray,s=t.fnArray,u=e||0,l=a.length;if(l===u)return u;for(var c,h=l-u>10&&"function"==typeof n,f=h?Date.now()+15:0,d=0,p=this.commonObjs,v=this.objs;;){if(void 0!==i&&u===i.nextBreakPoint)return i.breakIt(u,n),u;if((c=s[u])!==r.OPS.dependency)this[c].apply(this,a[u]);else{var g,y=o(a[u]);try{for(y.s();!(g=y.n()).done;){var m=g.value,b=m.startsWith("g_")?p:v;if(!b.has(m))return b.get(m,n),u}}catch(t){y.e(t)}finally{y.f()}}if(++u===l)return u;if(h&&++d>10){if(Date.now()>f)return n(),u;d=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(t){this.current.lineWidth=t,this.ctx.lineWidth=t},setLineCap:function(t){this.ctx.lineCap=v[t]},setLineJoin:function(t){this.ctx.lineJoin=g[t]},setMiterLimit:function(t){this.ctx.miterLimit=t},setDash:function(t,e){var n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(t),n.lineDashOffset=e)},setRenderingIntent:function(t){},setFlatness:function(t){},setGState:function(t){for(var e=0,n=t.length;e<n;e++){var r=t[e],i=r[0],o=r[1];switch(i){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o[0],o[1]);break;case"CA":this.current.strokeAlpha=r[1];break;case"ca":this.current.fillAlpha=r[1],this.ctx.globalAlpha=r[1];break;case"BM":this.ctx.globalCompositeOperation=o;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=o?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var t=this.current.activeSMask,e=t.canvas.width,n=t.canvas.height,r="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(r,e,n,!0),o=this.ctx,s=o.mozCurrentTransform;this.ctx.save();var u=i.context;u.scale(1/t.scaleX,1/t.scaleY),u.translate(-t.offsetX,-t.offsetY),u.transform.apply(u,s),t.startTransformInverse=u.mozCurrentTransformInverse,a(o,u),this.ctx=u,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(o),this.groupLevel++},suspendSMaskGroup:function(){var t=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),p(this.ctx,this.current.activeSMask,t,this.webGLContext),this.ctx.restore(),this.ctx.save(),a(t,this.ctx),this.current.resumeSMaskCtx=t;var e=r.Util.transform(this.current.activeSMask.startTransformInverse,t.mozCurrentTransform);this.ctx.transform.apply(this.ctx,e),t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,t.canvas.width,t.canvas.height),t.restore()},resumeSMaskGroup:function(){var t=this.current.resumeSMaskCtx,e=this.ctx;this.ctx=t,this.groupStack.push(e),this.groupLevel++},endSMaskGroup:function(){var t=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),p(this.ctx,this.current.activeSMask,t,this.webGLContext),this.ctx.restore(),a(t,this.ctx);var e=r.Util.transform(this.current.activeSMask.startTransformInverse,t.mozCurrentTransform);this.ctx.transform.apply(this.ctx,e)},save:function(){this.ctx.save();var t=this.current;this.stateStack.push(t),this.current=t.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(t,e,n,r,i,o){this.ctx.transform(t,e,n,r,i,o),this._cachedGetSinglePixelWidth=null},constructPath:function(t,e){for(var n=this.ctx,i=this.current,o=i.x,a=i.y,s=0,u=0,l=t.length;s<l;s++)switch(0|t[s]){case r.OPS.rectangle:o=e[u++],a=e[u++];var c=e[u++],h=e[u++];0===c&&(c=this.getSinglePixelWidth()),0===h&&(h=this.getSinglePixelWidth());var f=o+c,d=a+h;this.ctx.moveTo(o,a),this.ctx.lineTo(f,a),this.ctx.lineTo(f,d),this.ctx.lineTo(o,d),this.ctx.lineTo(o,a),this.ctx.closePath();break;case r.OPS.moveTo:o=e[u++],a=e[u++],n.moveTo(o,a);break;case r.OPS.lineTo:o=e[u++],a=e[u++],n.lineTo(o,a);break;case r.OPS.curveTo:o=e[u+4],a=e[u+5],n.bezierCurveTo(e[u],e[u+1],e[u+2],e[u+3],o,a),u+=6;break;case r.OPS.curveTo2:n.bezierCurveTo(o,a,e[u],e[u+1],e[u+2],e[u+3]),o=e[u+2],a=e[u+3],u+=4;break;case r.OPS.curveTo3:o=e[u+2],a=e[u+3],n.bezierCurveTo(e[u],e[u+1],o,a,o,a),u+=4;break;case r.OPS.closePath:n.closePath()}i.setCurrentPoint(o,a)},closePath:function(){this.ctx.closePath()},stroke:function(t){t=void 0===t||t;var e=this.ctx,n=this.current.strokeColor;if(e.globalAlpha=this.current.strokeAlpha,n&&n.hasOwnProperty("type")&&"Pattern"===n.type){e.save();var i=e.mozCurrentTransform,o=r.Util.singularValueDecompose2dScale(i)[0];e.strokeStyle=n.getPattern(e,this),e.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth*o),e.stroke(),e.restore()}else e.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth),e.stroke();t&&this.consumePath(),e.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(t){t=void 0===t||t;var e=this.ctx,n=this.current.fillColor,r=!1;this.current.patternFill&&(e.save(),this.baseTransform&&e.setTransform.apply(e,this.baseTransform),e.fillStyle=n.getPattern(e,this),r=!0),this.pendingEOFill?(e.fill("evenodd"),this.pendingEOFill=!1):e.fill(),r&&e.restore(),t&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=y},eoClip:function(){this.pendingClip=m},beginText:function(){this.current.textMatrix=r.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var t=this.pendingTextPaths,e=this.ctx;if(void 0!==t){e.save(),e.beginPath();for(var n=0;n<t.length;n++){var r=t[n];e.setTransform.apply(e,r.transform),e.translate(r.x,r.y),r.addToPath(e,r.fontSize)}e.restore(),e.clip(),e.beginPath(),delete this.pendingTextPaths}else e.beginPath()},setCharSpacing:function(t){this.current.charSpacing=t},setWordSpacing:function(t){this.current.wordSpacing=t},setHScale:function(t){this.current.textHScale=t/100},setLeading:function(t){this.current.leading=-t},setFont:function(t,e){var n=this.commonObjs.get(t),i=this.current;if(!n)throw new Error("Can't find font for ".concat(t));if(i.fontMatrix=n.fontMatrix?n.fontMatrix:r.FONT_IDENTITY_MATRIX,0!==i.fontMatrix[0]&&0!==i.fontMatrix[3]||(0,r.warn)("Invalid font matrix for font "+t),e<0?(e=-e,i.fontDirection=-1):i.fontDirection=1,this.current.font=n,this.current.fontSize=e,!n.isType3Font){var o=n.loadedName||"sans-serif",a="normal";n.black?a="900":n.bold&&(a="bold");var s=n.italic?"italic":"normal",u='"'.concat(o,'", ').concat(n.fallbackName),l=e;e<16?l=16:e>100&&(l=100),this.current.fontSizeScale=e/l,this.ctx.font="".concat(s," ").concat(a," ").concat(l,"px ").concat(u)}},setTextRenderingMode:function(t){this.current.textRenderingMode=t},setTextRise:function(t){this.current.textRise=t},moveText:function(t,e){this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=e},setLeadingMoveText:function(t,e){this.setLeading(-e),this.moveText(t,e)},setTextMatrix:function(t,e,n,r,i,o){this.current.textMatrix=[t,e,n,r,i,o],this.current.textMatrixScale=Math.sqrt(t*t+e*e),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(t,e,n,i){var o,a=this.ctx,s=this.current,u=s.font,l=s.textRenderingMode,c=s.fontSize/s.fontSizeScale,h=l&r.TextRenderingMode.FILL_STROKE_MASK,f=!!(l&r.TextRenderingMode.ADD_TO_PATH_FLAG),d=s.patternFill&&!u.missingFile;(u.disableFontFace||f||d)&&(o=u.getPathGenerator(this.commonObjs,t)),u.disableFontFace||d?(a.save(),a.translate(e,n),a.beginPath(),o(a,c),i&&a.setTransform.apply(a,i),h!==r.TextRenderingMode.FILL&&h!==r.TextRenderingMode.FILL_STROKE||a.fill(),h!==r.TextRenderingMode.STROKE&&h!==r.TextRenderingMode.FILL_STROKE||a.stroke(),a.restore()):(h!==r.TextRenderingMode.FILL&&h!==r.TextRenderingMode.FILL_STROKE||a.fillText(t,e,n),h!==r.TextRenderingMode.STROKE&&h!==r.TextRenderingMode.FILL_STROKE||a.strokeText(t,e,n)),f&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:a.mozCurrentTransform,x:e,y:n,fontSize:c,addToPath:o})},get isFontSubpixelAAEnabled(){var t=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;t.scale(1.5,1),t.fillText("I",0,10);for(var e=t.getImageData(0,0,10,10).data,n=!1,i=3;i<e.length;i+=4)if(e[i]>0&&e[i]<255){n=!0;break}return(0,r.shadow)(this,"isFontSubpixelAAEnabled",n)},showText:function(t){var e=this.current,n=e.font;if(n.isType3Font)return this.showType3Text(t);var i=e.fontSize;if(0!==i){var o,a=this.ctx,s=e.fontSizeScale,u=e.charSpacing,l=e.wordSpacing,c=e.fontDirection,h=e.textHScale*c,f=t.length,d=n.vertical,p=d?1:-1,v=n.defaultVMetrics,g=i*e.fontMatrix[0],y=e.textRenderingMode===r.TextRenderingMode.FILL&&!n.disableFontFace&&!e.patternFill;if(a.save(),e.patternFill){a.save();var m=e.fillColor.getPattern(a,this);o=a.mozCurrentTransform,a.restore(),a.fillStyle=m}a.transform.apply(a,e.textMatrix),a.translate(e.x,e.y+e.textRise),c>0?a.scale(h,-1):a.scale(h,1);var b=e.lineWidth,_=e.textMatrixScale;if(0===_||0===b){var C=e.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;C!==r.TextRenderingMode.STROKE&&C!==r.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,b=.65*this.getSinglePixelWidth())}else b/=_;1!==s&&(a.scale(s,s),b/=s),a.lineWidth=b;var w,S=0;for(w=0;w<f;++w){var x=t[w];if((0,r.isNum)(x))S+=p*x*i/1e3;else{var A,k,P,T,L,E,R,O=!1,F=(x.isSpace?l:0)+u,I=x.fontChar,M=x.accent,D=x.width;if(d?(L=x.vmetric||v,E=-(E=x.vmetric?L[1]:.5*D)*g,R=L[2]*g,D=L?-L[0]:D,A=E/s,k=(S+R)/s):(A=S/s,k=0),n.remeasure&&D>0){var j=1e3*a.measureText(I).width/i*s;if(D<j&&this.isFontSubpixelAAEnabled){var N=D/j;O=!0,a.save(),a.scale(N,1),A/=N}else D!==j&&(A+=(D-j)/2e3*i/s)}(x.isInFont||n.missingFile)&&(y&&!M?a.fillText(I,A,k):(this.paintChar(I,A,k,o),M&&(P=A+M.offset.x/s,T=k-M.offset.y/s,this.paintChar(M.fontChar,P,T,o)))),S+=d?D*g-F*c:D*g+F*c,O&&a.restore()}}d?e.y-=S:e.x+=S*h,a.restore()}},showType3Text:function(t){var e,n,i,o,a=this.ctx,s=this.current,u=s.font,l=s.fontSize,c=s.fontDirection,h=u.vertical?1:-1,f=s.charSpacing,d=s.wordSpacing,p=s.textHScale*c,v=s.fontMatrix||r.FONT_IDENTITY_MATRIX,g=t.length;if(s.textRenderingMode!==r.TextRenderingMode.INVISIBLE&&0!==l){for(this._cachedGetSinglePixelWidth=null,a.save(),a.transform.apply(a,s.textMatrix),a.translate(s.x,s.y),a.scale(p,c),e=0;e<g;++e)if(n=t[e],(0,r.isNum)(n))o=h*n*l/1e3,this.ctx.translate(o,0),s.x+=o*p;else{var y=(n.isSpace?d:0)+f,m=u.charProcOperatorList[n.operatorListId];m?(this.processingType3=n,this.save(),a.scale(l,l),a.transform.apply(a,v),this.executeOperatorList(m),this.restore(),i=r.Util.applyTransform([n.width,0],v)[0]*l+y,a.translate(i,0),s.x+=i*p):(0,r.warn)('Type3 character "'.concat(n.operatorListId,'" is not available.'))}a.restore(),this.processingType3=null}},setCharWidth:function(t,e){},setCharWidthAndBounds:function(t,e,n,r,i,o){this.ctx.rect(n,r,i-n,o-r),this.clip(),this.endPath()},getColorN_Pattern:function(e){var n,r=this;if("TilingPattern"===e[0]){var o=e[1],a=this.baseTransform||this.ctx.mozCurrentTransform.slice(),s={createCanvasGraphics:function(e){return new t(e,r.commonObjs,r.objs,r.canvasFactory,r.webGLContext)}};n=new i.TilingPattern(e,o,this.ctx,s,a)}else n=(0,i.getShadingPatternFromIR)(e);return n},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(t,e,n){var i=r.Util.makeCssRgb(t,e,n);this.ctx.strokeStyle=i,this.current.strokeColor=i},setFillRGBColor:function(t,e,n){var i=r.Util.makeCssRgb(t,e,n);this.ctx.fillStyle=i,this.current.fillColor=i,this.current.patternFill=!1},shadingFill:function(t){var e=this.ctx;this.save();var n=(0,i.getShadingPatternFromIR)(t);e.fillStyle=n.getPattern(e,this,!0);var o=e.mozCurrentTransformInverse;if(o){var a=e.canvas,s=a.width,u=a.height,l=r.Util.applyTransform([0,0],o),c=r.Util.applyTransform([0,u],o),h=r.Util.applyTransform([s,0],o),f=r.Util.applyTransform([s,u],o),d=Math.min(l[0],c[0],h[0],f[0]),p=Math.min(l[1],c[1],h[1],f[1]),v=Math.max(l[0],c[0],h[0],f[0]),g=Math.max(l[1],c[1],h[1],f[1]);this.ctx.fillRect(d,p,v-d,g-p)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,r.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,r.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(t,e){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(t)&&6===t.length&&this.transform.apply(this,t),this.baseTransform=this.ctx.mozCurrentTransform,e){var n=e[2]-e[0],r=e[3]-e[1];this.ctx.rect(e[0],e[1],n,r),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(t){this.save();var e=this.ctx;t.isolated||(0,r.info)("TODO: Support non-isolated groups."),t.knockout&&(0,r.warn)("Knockout groups not supported.");var n=e.mozCurrentTransform;if(t.matrix&&e.transform.apply(e,t.matrix),!t.bbox)throw new Error("Bounding box is required.");var i=r.Util.getAxialAlignedBoundingBox(t.bbox,e.mozCurrentTransform),o=[0,0,e.canvas.width,e.canvas.height];i=r.Util.intersect(i,o)||[0,0,0,0];var s=Math.floor(i[0]),u=Math.floor(i[1]),l=Math.max(Math.ceil(i[2])-s,1),c=Math.max(Math.ceil(i[3])-u,1),h=1,f=1;l>4096&&(h=l/4096,l=4096),c>4096&&(f=c/4096,c=4096);var d="groupAt"+this.groupLevel;t.smask&&(d+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(d,l,c,!0),v=p.context;v.scale(1/h,1/f),v.translate(-s,-u),v.transform.apply(v,n),t.smask?this.smaskStack.push({canvas:p.canvas,context:v,offsetX:s,offsetY:u,scaleX:h,scaleY:f,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}):(e.setTransform(1,0,0,1,0,0),e.translate(s,u),e.scale(h,f)),a(e,v),this.ctx=v,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(e),this.groupLevel++,this.current.activeSMask=null},endGroup:function(t){this.groupLevel--;var e=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,t.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(e.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(t,e,n){if(this.save(),c(this.ctx),this.current=new l,Array.isArray(t)&&4===t.length){var r=t[2]-t[0],i=t[3]-t[1];this.ctx.rect(t[0],t[1],r,i),this.clip(),this.endPath()}this.transform.apply(this,e),this.transform.apply(this,n)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(t){var e=this.ctx,r=t.width,i=t.height,o=this.current.fillColor,a=this.current.patternFill,s=this.processingType3;if(s&&void 0===s.compiled&&(s.compiled=r<=1e3&&i<=1e3?function(t){var e,n,r,i,o=t.width,a=t.height,s=o+1,u=new Uint8Array(s*(a+1)),l=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),c=o+7&-8,h=t.data,f=new Uint8Array(c*a),d=0;for(e=0,i=h.length;e<i;e++)for(var p=128,v=h[e];p>0;)f[d++]=v&p?0:255,p>>=1;var g=0;for(0!==f[d=0]&&(u[0]=1,++g),n=1;n<o;n++)f[d]!==f[d+1]&&(u[n]=f[d]?2:1,++g),d++;for(0!==f[d]&&(u[n]=2,++g),e=1;e<a;e++){r=e*s,f[(d=e*c)-c]!==f[d]&&(u[r]=f[d]?1:8,++g);var y=(f[d]?4:0)+(f[d-c]?8:0);for(n=1;n<o;n++)l[y=(y>>2)+(f[d+1]?4:0)+(f[d-c+1]?8:0)]&&(u[r+n]=l[y],++g),d++;if(f[d-c]!==f[d]&&(u[r+n]=f[d]?2:4,++g),g>1e3)return null}for(r=e*s,0!==f[d=c*(a-1)]&&(u[r]=8,++g),n=1;n<o;n++)f[d]!==f[d+1]&&(u[r+n]=f[d]?4:8,++g),d++;if(0!==f[d]&&(u[r+n]=4,++g),g>1e3)return null;var m=new Int32Array([0,s,-1,0,-s,0,0,0,1]),b=[];for(e=0;g&&e<=a;e++){for(var _=e*s,C=_+o;_<C&&!u[_];)_++;if(_!==C){var w,S=[_%s,e],x=u[_],A=_;do{var k=m[x];do{_+=k}while(!u[_]);5!==(w=u[_])&&10!==w?(x=w,u[_]=0):(x=w&51*x>>4,u[_]&=x>>2|x<<2),S.push(_%s),S.push(_/s|0),u[_]||--g}while(A!==_);b.push(S),--e}}return function(t){t.save(),t.scale(1/o,-1/a),t.translate(0,-a),t.beginPath();for(var e=0,n=b.length;e<n;e++){var r=b[e];t.moveTo(r[0],r[1]);for(var i=2,s=r.length;i<s;i+=2)t.lineTo(r[i],r[i+1])}t.fill(),t.beginPath(),t.restore()}}({data:t.data,width:r,height:i}):null),s&&s.compiled)s.compiled(e);else{var u=this.cachedCanvases.getCanvas("maskCanvas",r,i),l=u.context;l.save(),n(l,t),l.globalCompositeOperation="source-in",l.fillStyle=a?o.getPattern(l,this):o,l.fillRect(0,0,r,i),l.restore(),this.paintInlineImageXObject(u.canvas)}},paintImageMaskXObjectRepeat:function(t,e,r,i){var o=t.width,a=t.height,s=this.current.fillColor,u=this.current.patternFill,l=this.cachedCanvases.getCanvas("maskCanvas",o,a),c=l.context;c.save(),n(c,t),c.globalCompositeOperation="source-in",c.fillStyle=u?s.getPattern(c,this):s,c.fillRect(0,0,o,a),c.restore();for(var h=this.ctx,f=0,d=i.length;f<d;f+=2)h.save(),h.transform(e,0,0,r,i[f],i[f+1]),h.scale(1,-1),h.drawImage(l.canvas,0,0,o,a,0,-1,1,1),h.restore()},paintImageMaskXObjectGroup:function(t){for(var e=this.ctx,r=this.current.fillColor,i=this.current.patternFill,o=0,a=t.length;o<a;o++){var s=t[o],u=s.width,l=s.height,c=this.cachedCanvases.getCanvas("maskCanvas",u,l),h=c.context;h.save(),n(h,s),h.globalCompositeOperation="source-in",h.fillStyle=i?r.getPattern(h,this):r,h.fillRect(0,0,u,l),h.restore(),e.save(),e.transform.apply(e,s.transform),e.scale(1,-1),e.drawImage(c.canvas,0,0,u,l,0,-1,1,1),e.restore()}},paintImageXObject:function(t){var e=t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t);e?this.paintInlineImageXObject(e):(0,r.warn)("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(t,e,n,i){var o=t.startsWith("g_")?this.commonObjs.get(t):this.objs.get(t);if(o){for(var a=o.width,s=o.height,u=[],l=0,c=i.length;l<c;l+=2)u.push({transform:[e,0,0,n,i[l],i[l+1]],x:0,y:0,w:a,h:s});this.paintInlineImageXObjectGroup(o,u)}else(0,r.warn)("Dependent image isn't ready yet")},paintInlineImageXObject:function(t){var n=t.width,r=t.height,i=this.ctx;this.save(),i.scale(1/n,-1/r);var o,a,s=i.mozCurrentTransformInverse,u=s[0],l=s[1],c=Math.max(Math.sqrt(u*u+l*l),1),h=s[2],f=s[3],d=Math.max(Math.sqrt(h*h+f*f),1);if("function"==typeof HTMLElement&&t instanceof HTMLElement||!t.data)o=t;else{var p=(a=this.cachedCanvases.getCanvas("inlineImage",n,r)).context;e(p,t),o=a.canvas}for(var v=n,g=r,y="prescale1";c>2&&v>1||d>2&&g>1;){var m=v,b=g;c>2&&v>1&&(c/=v/(m=Math.ceil(v/2))),d>2&&g>1&&(d/=g/(b=Math.ceil(g/2))),(p=(a=this.cachedCanvases.getCanvas(y,m,b)).context).clearRect(0,0,m,b),p.drawImage(o,0,0,v,g,0,0,m,b),o=a.canvas,v=m,g=b,y="prescale1"===y?"prescale2":"prescale1"}if(i.drawImage(o,0,0,v,g,0,-r,n,r),this.imageLayer){var _=this.getCanvasPosition(0,-r);this.imageLayer.appendImage({imgData:t,left:_[0],top:_[1],width:n/s[0],height:r/s[3]})}this.restore()},paintInlineImageXObjectGroup:function(t,n){var r=this.ctx,i=t.width,o=t.height,a=this.cachedCanvases.getCanvas("inlineImage",i,o);e(a.context,t);for(var s=0,u=n.length;s<u;s++){var l=n[s];if(r.save(),r.transform.apply(r,l.transform),r.scale(1,-1),r.drawImage(a.canvas,l.x,l.y,l.w,l.h,0,-1,1,1),this.imageLayer){var c=this.getCanvasPosition(l.x,l.y);this.imageLayer.appendImage({imgData:t,left:c[0],top:c[1],width:i,height:o})}r.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,r.warn)("Unsupported 'paintXObject' command.")},markPoint:function(t){},markPointProps:function(t,e){},beginMarkedContent:function(t){},beginMarkedContentProps:function(t,e){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var t=this.ctx;this.pendingClip&&(this.pendingClip===m?t.clip("evenodd"):t.clip(),this.pendingClip=null),t.beginPath()},getSinglePixelWidth:function(t){if(null===this._cachedGetSinglePixelWidth){var e=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(e[0]*e[0]+e[1]*e[1],e[2]*e[2]+e[3]*e[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(t,e){var n=this.ctx.mozCurrentTransform;return[n[0]*t+n[2]*e+n[4],n[1]*t+n[3]*e+n[5]]}},r.OPS)t.prototype[r.OPS[b]]=t.prototype[b];return t}();e.CanvasGraphics=c},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.getShadingPatternFromIR=function(t){var e=i[t[0]];if(!e)throw new Error("Unknown IR type: ".concat(t[0]));return e.fromIR(t)},e.TilingPattern=void 0;var r=n(5),i={};function o(t,e){if(e&&"undefined"!=typeof Path2D){var n=e[2]-e[0],r=e[3]-e[1],i=new Path2D;i.rect(e[0],e[1],n,r),t.clip(i)}}i.RadialAxial={fromIR:function(t){var e=t[1],n=t[2],r=t[3],i=t[4],a=t[5],s=t[6],u=t[7];return{type:"Pattern",getPattern:function(t){var l;o(t,n),"axial"===e?l=t.createLinearGradient(i[0],i[1],a[0],a[1]):"radial"===e&&(l=t.createRadialGradient(i[0],i[1],s,a[0],a[1],u));for(var c=0,h=r.length;c<h;++c){var f=r[c];l.addColorStop(f[0],f[1])}return l}}}};var a=function(){function t(t,e,n,r,i,o,a,s){var u,l=e.coords,c=e.colors,h=t.data,f=4*t.width;l[n+1]>l[r+1]&&(u=n,n=r,r=u,u=o,o=a,a=u),l[r+1]>l[i+1]&&(u=r,r=i,i=u,u=a,a=s,s=u),l[n+1]>l[r+1]&&(u=n,n=r,r=u,u=o,o=a,a=u);var d=(l[n]+e.offsetX)*e.scaleX,p=(l[n+1]+e.offsetY)*e.scaleY,v=(l[r]+e.offsetX)*e.scaleX,g=(l[r+1]+e.offsetY)*e.scaleY,y=(l[i]+e.offsetX)*e.scaleX,m=(l[i+1]+e.offsetY)*e.scaleY;if(!(p>=m))for(var b,_,C,w,S,x,A,k,P=c[o],T=c[o+1],L=c[o+2],E=c[a],R=c[a+1],O=c[a+2],F=c[s],I=c[s+1],M=c[s+2],D=Math.round(p),j=Math.round(m),N=D;N<=j;N++){if(N<g){var B=void 0;b=d-(d-v)*(B=N<p?0:p===g?1:(p-N)/(p-g)),_=P-(P-E)*B,C=T-(T-R)*B,w=L-(L-O)*B}else{var z=void 0;b=v-(v-y)*(z=N>m?1:g===m?0:(g-N)/(g-m)),_=E-(E-F)*z,C=R-(R-I)*z,w=O-(O-M)*z}var H=void 0;S=d-(d-y)*(H=N<p?0:N>m?1:(p-N)/(p-m)),x=P-(P-F)*H,A=T-(T-I)*H,k=L-(L-M)*H;for(var U=Math.round(Math.min(b,S)),V=Math.round(Math.max(b,S)),W=f*N+4*U,q=U;q<=V;q++)(H=(b-q)/(b-S))<0?H=0:H>1&&(H=1),h[W++]=_-(_-x)*H|0,h[W++]=C-(C-A)*H|0,h[W++]=w-(w-k)*H|0,h[W++]=255}}function e(e,n,r){var i,o,a=n.coords,s=n.colors;switch(n.type){case"lattice":var u=n.verticesPerRow,l=Math.floor(a.length/u)-1,c=u-1;for(i=0;i<l;i++)for(var h=i*u,f=0;f<c;f++,h++)t(e,r,a[h],a[h+1],a[h+u],s[h],s[h+1],s[h+u]),t(e,r,a[h+u+1],a[h+1],a[h+u],s[h+u+1],s[h+1],s[h+u]);break;case"triangles":for(i=0,o=a.length;i<o;i+=3)t(e,r,a[i],a[i+1],a[i+2],s[i],s[i+1],s[i+2]);break;default:throw new Error("illegal figure")}}return function(t,n,r,i,o,a,s,u){var l,c,h,f,d=Math.floor(t[0]),p=Math.floor(t[1]),v=Math.ceil(t[2])-d,g=Math.ceil(t[3])-p,y=Math.min(Math.ceil(Math.abs(v*n[0]*1.1)),3e3),m=Math.min(Math.ceil(Math.abs(g*n[1]*1.1)),3e3),b=v/y,_=g/m,C={coords:r,colors:i,offsetX:-d,offsetY:-p,scaleX:1/b,scaleY:1/_},w=y+4,S=m+4;if(u.isEnabled)l=u.drawFigures({width:y,height:m,backgroundColor:a,figures:o,context:C}),(c=s.getCanvas("mesh",w,S,!1)).context.drawImage(l,2,2),l=c.canvas;else{var x=(c=s.getCanvas("mesh",w,S,!1)).context,A=x.createImageData(y,m);if(a){var k=A.data;for(h=0,f=k.length;h<f;h+=4)k[h]=a[0],k[h+1]=a[1],k[h+2]=a[2],k[h+3]=255}for(h=0;h<o.length;h++)e(A,o[h],C);x.putImageData(A,2,2),l=c.canvas}return{canvas:l,offsetX:d-2*b,offsetY:p-2*_,scaleX:b,scaleY:_}}}();i.Mesh={fromIR:function(t){var e=t[2],n=t[3],i=t[4],s=t[5],u=t[6],l=t[7],c=t[8];return{type:"Pattern",getPattern:function(t,h,f){var d;if(o(t,l),f)d=r.Util.singularValueDecompose2dScale(t.mozCurrentTransform);else if(d=r.Util.singularValueDecompose2dScale(h.baseTransform),u){var p=r.Util.singularValueDecompose2dScale(u);d=[d[0]*p[0],d[1]*p[1]]}var v=a(s,d,e,n,i,f?null:c,h.cachedCanvases,h.webGLContext);return f||(t.setTransform.apply(t,h.baseTransform),u&&t.transform.apply(t,u)),t.translate(v.offsetX,v.offsetY),t.scale(v.scaleX,v.scaleY),t.createPattern(v.canvas,"no-repeat")}}}},i.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var s=function(){var t=1,e=2;function n(t,e,n,r,i){this.operatorList=t[2],this.matrix=t[3]||[1,0,0,1,0,0],this.bbox=t[4],this.xstep=t[5],this.ystep=t[6],this.paintType=t[7],this.tilingType=t[8],this.color=e,this.canvasGraphicsFactory=r,this.baseTransform=i,this.type="Pattern",this.ctx=n}return n.prototype={createPatternCanvas:function(t){var e=this.operatorList,n=this.bbox,i=this.xstep,o=this.ystep,a=this.paintType,s=this.tilingType,u=this.color,l=this.canvasGraphicsFactory;(0,r.info)("TilingType: "+s);var c=n[0],h=n[1],f=n[2],d=n[3],p=r.Util.singularValueDecompose2dScale(this.matrix),v=r.Util.singularValueDecompose2dScale(this.baseTransform),g=[p[0]*v[0],p[1]*v[1]],y=this.getSizeAndScale(i,this.ctx.canvas.width,g[0]),m=this.getSizeAndScale(o,this.ctx.canvas.height,g[1]),b=t.cachedCanvases.getCanvas("pattern",y.size,m.size,!0),_=b.context,C=l.createCanvasGraphics(_);return C.groupLevel=t.groupLevel,this.setFillAndStrokeStyleToContext(C,a,u),C.transform(y.scale,0,0,m.scale,0,0),C.transform(1,0,0,1,-c,-h),this.clipBbox(C,n,c,h,f,d),C.executeOperatorList(e),this.ctx.transform(1,0,0,1,c,h),this.ctx.scale(1/y.scale,1/m.scale),b.canvas},getSizeAndScale:function(t,e,n){t=Math.abs(t);var r=Math.max(3e3,e),i=Math.ceil(t*n);return i>=r?i=r:n=i/t,{scale:n,size:i}},clipBbox:function(t,e,n,r,i,o){if(Array.isArray(e)&&4===e.length){var a=i-n,s=o-r;t.ctx.rect(n,r,a,s),t.clip(),t.endPath()}},setFillAndStrokeStyleToContext:function(n,i,o){var a=n.ctx,s=n.current;switch(i){case t:var u=this.ctx;a.fillStyle=u.fillStyle,a.strokeStyle=u.strokeStyle,s.fillColor=u.fillStyle,s.strokeColor=u.strokeStyle;break;case e:var l=r.Util.makeCssRgb(o[0],o[1],o[2]);a.fillStyle=l,a.strokeStyle=l,s.fillColor=l,s.strokeColor=l;break;default:throw new r.FormatError("Unsupported paint type: ".concat(i))}},getPattern:function(t,e){(t=this.ctx).setTransform.apply(t,this.baseTransform),t.transform.apply(t,this.matrix);var n=this.createPatternCanvas(e);return t.createPattern(n,"repeat")}},n}();e.TilingPattern=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalWorkerOptions=void 0;var r=Object.create(null);e.GlobalWorkerOptions=r,r.workerPort=void 0===r.workerPort?null:r.workerPort,r.workerSrc=void 0===r.workerSrc?"":r.workerSrc},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.MessageHandler=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},o=n(5);function a(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l=1,c=2,h=1,f=2,d=3,p=4,v=5,g=6,y=7,m=8;function b(t){if("object"!==u(t)||null===t)return t;switch(t.name){case"AbortException":return new o.AbortException(t.message);case"MissingPDFException":return new o.MissingPDFException(t.message);case"UnexpectedResponseException":return new o.UnexpectedResponseException(t.message,t.status);case"UnknownErrorException":return new o.UnknownErrorException(t.message,t.details);default:return new o.UnknownErrorException(t.message,t.toString())}}var _=function(){function t(e,n,r){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sourceName=e,this.targetName=n,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(t){var e=t.data;if(e.targetName===i.sourceName)if(e.stream)i._processStreamMessage(e);else if(e.callback){var n=e.callbackId,o=i.callbackCapabilities[n];if(!o)throw new Error("Cannot resolve callback ".concat(n));if(delete i.callbackCapabilities[n],e.callback===l)o.resolve(e.data);else{if(e.callback!==c)throw new Error("Unexpected callback case");o.reject(b(e.reason))}}else{var a=i.actionHandler[e.action];if(!a)throw new Error("Unknown action from worker: ".concat(e.action));if(e.callbackId){var s=i.sourceName,u=e.sourceName;new Promise((function(t){t(a(e.data))})).then((function(t){r.postMessage({sourceName:s,targetName:u,callback:l,callbackId:e.callbackId,data:t})}),(function(t){r.postMessage({sourceName:s,targetName:u,callback:c,callbackId:e.callbackId,reason:b(t)})}))}else e.streamId?i._createStreamSink(e):a(e.data)}},r.addEventListener("message",this._onComObjOnMessage)}var e,n,r,u,_;return e=t,(n=[{key:"on",value:function(t,e){var n=this.actionHandler;if(n[t])throw new Error('There is already an actionName called "'.concat(t,'"'));n[t]=e}},{key:"send",value:function(t,e,n){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},n)}},{key:"sendWithPromise",value:function(t,e,n){var r=this.callbackId++,i=(0,o.createPromiseCapability)();this.callbackCapabilities[r]=i;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:r,data:e},n)}catch(t){i.reject(t)}return i.promise}},{key:"sendWithStream",value:function(t,e,n,r){var i=this,a=this.streamId++,s=this.sourceName,u=this.targetName,l=this.comObj;return new ReadableStream({start:function(n){var l=(0,o.createPromiseCapability)();return i.streamControllers[a]={controller:n,startCall:l,pullCall:null,cancelCall:null,isClosed:!1},i._postMessage({sourceName:s,targetName:u,action:t,streamId:a,data:e,desiredSize:n.desiredSize},r),l.promise},pull:function(t){var e=(0,o.createPromiseCapability)();return i.streamControllers[a].pullCall=e,l.postMessage({sourceName:s,targetName:u,stream:g,streamId:a,desiredSize:t.desiredSize}),e.promise},cancel:function(t){(0,o.assert)(t instanceof Error,"cancel must have a valid reason");var e=(0,o.createPromiseCapability)();return i.streamControllers[a].cancelCall=e,i.streamControllers[a].isClosed=!0,l.postMessage({sourceName:s,targetName:u,stream:h,streamId:a,reason:b(t)}),e.promise}},n)}},{key:"_createStreamSink",value:function(t){var e=this,n=this.actionHandler[t.action],r=t.streamId,i=this.sourceName,a=t.sourceName,s=this.comObj,u={enqueue:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var u=this.desiredSize;this.desiredSize-=n,u>0&&this.desiredSize<=0&&(this.sinkCapability=(0,o.createPromiseCapability)(),this.ready=this.sinkCapability.promise),e._postMessage({sourceName:i,targetName:a,stream:p,streamId:r,chunk:t},s)}},close:function(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:a,stream:d,streamId:r}),delete e.streamSinks[r])},error:function(t){(0,o.assert)(t instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:a,stream:v,streamId:r,reason:b(t)}))},sinkCapability:(0,o.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[r]=u,new Promise((function(e){e(n(t.data,u))})).then((function(){s.postMessage({sourceName:i,targetName:a,stream:m,streamId:r,success:!0})}),(function(t){s.postMessage({sourceName:i,targetName:a,stream:m,streamId:r,reason:b(t)})}))}},{key:"_processStreamMessage",value:function(t){var e=t.streamId,n=this.sourceName,r=t.sourceName,i=this.comObj;switch(t.stream){case m:t.success?this.streamControllers[e].startCall.resolve():this.streamControllers[e].startCall.reject(b(t.reason));break;case y:t.success?this.streamControllers[e].pullCall.resolve():this.streamControllers[e].pullCall.reject(b(t.reason));break;case g:if(!this.streamSinks[e]){i.postMessage({sourceName:n,targetName:r,stream:y,streamId:e,success:!0});break}this.streamSinks[e].desiredSize<=0&&t.desiredSize>0&&this.streamSinks[e].sinkCapability.resolve(),this.streamSinks[e].desiredSize=t.desiredSize;var a=this.streamSinks[t.streamId].onPull;new Promise((function(t){t(a&&a())})).then((function(){i.postMessage({sourceName:n,targetName:r,stream:y,streamId:e,success:!0})}),(function(t){i.postMessage({sourceName:n,targetName:r,stream:y,streamId:e,reason:b(t)})}));break;case p:if((0,o.assert)(this.streamControllers[e],"enqueue should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].controller.enqueue(t.chunk);break;case d:if((0,o.assert)(this.streamControllers[e],"close should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].isClosed=!0,this.streamControllers[e].controller.close(),this._deleteStreamController(e);break;case v:(0,o.assert)(this.streamControllers[e],"error should have stream controller"),this.streamControllers[e].controller.error(b(t.reason)),this._deleteStreamController(e);break;case f:t.success?this.streamControllers[e].cancelCall.resolve():this.streamControllers[e].cancelCall.reject(b(t.reason)),this._deleteStreamController(e);break;case h:if(!this.streamSinks[e])break;var s=this.streamSinks[t.streamId].onCancel;new Promise((function(e){e(s&&s(b(t.reason)))})).then((function(){i.postMessage({sourceName:n,targetName:r,stream:f,streamId:e,success:!0})}),(function(t){i.postMessage({sourceName:n,targetName:r,stream:f,streamId:e,reason:b(t)})})),this.streamSinks[e].sinkCapability.reject(b(t.reason)),this.streamSinks[e].isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:(u=i.default.mark((function t(e){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.allSettled([this.streamControllers[e].startCall,this.streamControllers[e].pullCall,this.streamControllers[e].cancelCall].map((function(t){return t&&t.promise})));case 2:delete this.streamControllers[e];case 3:case"end":return t.stop()}}),t,this)})),_=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=u.apply(t,e);function o(t){a(i,n,r,o,s,"next",t)}function s(t){a(i,n,r,o,s,"throw",t)}o(void 0)}))},function(t){return _.apply(this,arguments)})},{key:"_postMessage",value:function(t,e){e&&this.postMessageTransfers?this.comObj.postMessage(t,e):this.comObj.postMessage(t)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}])&&s(e.prototype,n),r&&s(e,r),t}();e.MessageHandler=_},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=void 0;var r=n(5),i=n(206);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(0,r.assert)("string"==typeof e,"Metadata: input is not a string"),e=this._repair(e);var n=(new i.SimpleXMLParser).parseFromString(e);this._metadataMap=new Map,n&&this._parse(n)}var e,n,s;return e=t,(n=[{key:"_repair",value:function(t){return t.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(t,e){for(var n=e.replace(/\\([0-3])([0-7])([0-7])/g,(function(t,e,n,r){return String.fromCharCode(64*e+8*n+1*r)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(t,e){switch(e){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(e," isn't defined."))})),r="",i=0,o=n.length;i<o;i+=2){var a=256*n.charCodeAt(i)+n.charCodeAt(i+1);r+=a>=32&&a<127&&60!==a&&62!==a&&38!==a?String.fromCharCode(a):"&#x"+(65536+a).toString(16).substring(1)+";"}return">"+r}))}},{key:"_parse",value:function(t){var e=t.documentElement;if("rdf:rdf"!==e.nodeName.toLowerCase())for(e=e.firstChild;e&&"rdf:rdf"!==e.nodeName.toLowerCase();)e=e.nextSibling;var n=e?e.nodeName.toLowerCase():null;if(e&&"rdf:rdf"===n&&e.hasChildNodes())for(var r=e.childNodes,i=0,o=r.length;i<o;i++){var a=r[i];if("rdf:description"===a.nodeName.toLowerCase())for(var s=0,u=a.childNodes.length;s<u;s++)if("#text"!==a.childNodes[s].nodeName.toLowerCase()){var l=a.childNodes[s],c=l.nodeName.toLowerCase();this._metadataMap.set(c,l.textContent.trim())}}}},{key:"get",value:function(t){return this._metadataMap.has(t)?this._metadataMap.get(t):null}},{key:"getAll",value:function(){var t,e=Object.create(null),n=function(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}(this._metadataMap);try{for(n.s();!(t=n.n()).done;){var r=o(t.value,2),i=r[0],s=r[1];e[i]=s}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"has",value:function(t){return this._metadataMap.has(t)}}])&&u(e.prototype,n),s&&u(e,s),t}();e.Metadata=l},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleXMLParser=void 0;var p=0,v=-2,g=-3,y=-4,m=-5,b=-6,_=-9;function C(t,e){var n=t[e];return" "===n||"\n"===n||"\r"===n||"\t"===n}var w=function(){function t(){h(this,t)}return d(t,[{key:"_resolveEntities",value:function(t){var e=this;return t.replace(/&([^;]+);/g,(function(t,n){if("#x"===n.substring(0,2))return String.fromCharCode(parseInt(n.substring(2),16));if("#"===n.substring(0,1))return String.fromCharCode(parseInt(n.substring(1),10));switch(n){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return e.onResolveEntity(n)}))}},{key:"_parseContent",value:function(t,e){var n=[],r=e;function i(){for(;r<t.length&&C(t,r);)++r}for(;r<t.length&&!C(t,r)&&">"!==t[r]&&"/"!==t[r];)++r;var o=t.substring(e,r);for(i();r<t.length&&">"!==t[r]&&"/"!==t[r]&&"?"!==t[r];){i();for(var a,s="";r<t.length&&!C(t,r)&&"="!==t[r];)s+=t[r],++r;if(i(),"="!==t[r])return null;++r,i();var u=t[r];if('"'!==u&&"'"!==u)return null;var l=t.indexOf(u,++r);if(l<0)return null;a=t.substring(r,l),n.push({name:s,value:this._resolveEntities(a)}),r=l+1,i()}return{name:o,attributes:n,parsed:r-e}}},{key:"_parseProcessingInstruction",value:function(t,e){for(var n=e;n<t.length&&!C(t,n)&&">"!==t[n]&&"/"!==t[n];)++n;var r=t.substring(e,n);!function(){for(;n<t.length&&C(t,n);)++n}();for(var i=n;n<t.length&&("?"!==t[n]||">"!==t[n+1]);)++n;return{name:r,value:t.substring(i,n),parsed:n-e}}},{key:"parseXml",value:function(t){for(var e=0;e<t.length;){var n=e;if("<"===t[e]){var r=void 0;switch(t[++n]){case"/":if(++n,(r=t.indexOf(">",n))<0)return void this.onError(_);this.onEndElement(t.substring(n,r)),n=r+1;break;case"?":++n;var i=this._parseProcessingInstruction(t,n);if("?>"!==t.substring(n+i.parsed,n+i.parsed+2))return void this.onError(g);this.onPi(i.name,i.value),n+=i.parsed+2;break;case"!":if("--"===t.substring(n+1,n+3)){if((r=t.indexOf("--\x3e",n+3))<0)return void this.onError(m);this.onComment(t.substring(n+3,r)),n=r+3}else if("[CDATA["===t.substring(n+1,n+8)){if((r=t.indexOf("]]>",n+8))<0)return void this.onError(v);this.onCdata(t.substring(n+8,r)),n=r+3}else{if("DOCTYPE"!==t.substring(n+1,n+8))return void this.onError(b);var o=t.indexOf("[",n+8),a=!1;if((r=t.indexOf(">",n+8))<0)return void this.onError(y);if(o>0&&r>o){if((r=t.indexOf("]>",n+8))<0)return void this.onError(y);a=!0}var s=t.substring(n+8,r+(a?1:0));this.onDoctype(s),n=r+(a?2:1)}break;default:var u=this._parseContent(t,n);if(null===u)return void this.onError(b);var l=!1;if("/>"===t.substring(n+u.parsed,n+u.parsed+2))l=!0;else if(">"!==t.substring(n+u.parsed,n+u.parsed+1))return void this.onError(_);this.onBeginElement(u.name,u.attributes,l),n+=u.parsed+(l?2:1)}}else{for(;n<t.length&&"<"!==t[n];)n++;var c=t.substring(e,n);this.onText(this._resolveEntities(c))}e=n}}},{key:"onResolveEntity",value:function(t){return"&".concat(t,";")}},{key:"onPi",value:function(t,e){}},{key:"onComment",value:function(t){}},{key:"onCdata",value:function(t){}},{key:"onDoctype",value:function(t){}},{key:"onText",value:function(t){}},{key:"onBeginElement",value:function(t,e,n){}},{key:"onEndElement",value:function(t){}},{key:"onError",value:function(t){}}]),t}(),S=function(){function t(e,n){h(this,t),this.nodeName=e,this.nodeValue=n,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return d(t,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var t=this.parentNode.childNodes;if(t){var e=t.indexOf(this);if(-1!==e)return t[e+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map((function(t){return t.textContent})).join(""):this.nodeValue||""}}]),t}(),x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(n,t);var e=u(n);function n(){var t;return h(this,n),(t=e.call(this))._currentFragment=null,t._stack=null,t._errorCode=p,t}return d(n,[{key:"parseFromString",value:function(t){if(this._currentFragment=[],this._stack=[],this._errorCode=p,this.parseXml(t),this._errorCode===p){var e=i(this._currentFragment,1)[0];if(e)return{documentElement:e}}}},{key:"onResolveEntity",value:function(t){switch(t){case"apos":return"'"}return a(c(n.prototype),"onResolveEntity",this).call(this,t)}},{key:"onText",value:function(t){if(!function(t){for(var e=0,n=t.length;e<n;e++)if(!C(t,e))return!1;return!0}(t)){var e=new S("#text",t);this._currentFragment.push(e)}}},{key:"onCdata",value:function(t){var e=new S("#text",t);this._currentFragment.push(e)}},{key:"onBeginElement",value:function(t,e,n){var r=new S(t);r.childNodes=[],this._currentFragment.push(r),n||(this._stack.push(this._currentFragment),this._currentFragment=r.childNodes)}},{key:"onEndElement",value:function(t){this._currentFragment=this._stack.pop()||[];var e=this._currentFragment[this._currentFragment.length-1];if(e)for(var n=0,r=e.childNodes.length;n<r;n++)e.childNodes[n].parentNode=e}},{key:"onError",value:function(t){this._errorCode=t}}]),n}(w);e.SimpleXMLParser=x},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.PDFDataTransportStream=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},o=n(5);function a(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function s(t){a(o,r,i,s,u,"next",t)}function u(t){a(o,r,i,s,u,"throw",t)}s(void 0)}))}}function u(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}var d=function(){function t(e,n){var r=this;c(this,t),(0,o.assert)(n,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=e.progressiveDone||!1;var i=e.initialData;if(i&&i.length>0){var a=new Uint8Array(i).buffer;this._queuedChunks.push(a)}this._pdfDataRangeTransport=n,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(t,e){r._onReceiveData({begin:t,chunk:e})})),this._pdfDataRangeTransport.addProgressListener((function(t,e){r._onProgress({loaded:t,total:e})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(t){r._onReceiveData({chunk:t})})),this._pdfDataRangeTransport.addProgressiveDoneListener((function(){r._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}return f(t,[{key:"_onReceiveData",value:function(t){var e=new Uint8Array(t.chunk).buffer;if(void 0===t.begin)this._fullRequestReader?this._fullRequestReader._enqueue(e):this._queuedChunks.push(e);else{var n=this._rangeReaders.some((function(n){return n._begin===t.begin&&(n._enqueue(e),!0)}));(0,o.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_onProgress",value:function(t){if(void 0===t.total){var e=this._rangeReaders[0];e&&e.onProgress&&e.onProgress({loaded:t.loaded})}else{var n=this._fullRequestReader;n&&n.onProgress&&n.onProgress({loaded:t.loaded,total:t.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(t){var e=this._rangeReaders.indexOf(t);e>=0&&this._rangeReaders.splice(e,1)}},{key:"getFullReader",value:function(){(0,o.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var t=this._queuedChunks;return this._queuedChunks=null,new p(this,t,this._progressiveDone)}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var n=new v(this,t,e);return this._pdfDataRangeTransport.requestDataRange(t,e),this._rangeReaders.push(n),n}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeReaders.slice(0).forEach((function(e){e.cancel(t)})),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFDataTransportStream=d;var p=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];c(this,t),this._stream=e,this._done=r||!1,this._filename=null,this._queuedChunks=n||[],this._loaded=0;var i,o=u(this._queuedChunks);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._loaded+=a.byteLength}}catch(t){o.e(t)}finally{o.f()}this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}var e;return f(t,[{key:"_enqueue",value:function(t){this._done||(this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunks.push(t),this._loaded+=t.byteLength)}},{key:"read",value:(e=s(i.default.mark((function t(){var e,n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this._queuedChunks.length>0)){t.next=3;break}return e=this._queuedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 3:if(!this._done){t.next=5;break}return t.abrupt("return",{value:void 0,done:!0});case 5:return n=(0,o.createPromiseCapability)(),this._requests.push(n),t.abrupt("return",n.promise);case 8:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),t}(),v=function(){function t(e,n,r){c(this,t),this._stream=e,this._begin=n,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}var e;return f(t,[{key:"_enqueue",value:function(t){this._done||(0===this._requests.length?this._queuedChunk=t:(this._requests.shift().resolve({value:t,done:!1}),this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}},{key:"read",value:(e=s(i.default.mark((function t(){var e,n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._queuedChunk){t.next=4;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 4:if(!this._done){t.next=6;break}return t.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,o.createPromiseCapability)(),this._requests.push(n),t.abrupt("return",n.promise);case 9:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),t}()},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.WebGLContext=void 0;var r=n(5);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=function(){function t(e){var n=e.enable,r=void 0!==n&&n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._enabled=!0===r}var e,n,o;return e=t,(n=[{key:"composeSMask",value:function(t){var e=t.layer,n=t.mask,r=t.properties;return a.composeSMask(e,n,r)}},{key:"drawFigures",value:function(t){var e=t.width,n=t.height,r=t.backgroundColor,i=t.figures,o=t.context;return a.drawFigures(e,n,r,i,o)}},{key:"clear",value:function(){a.cleanup()}},{key:"isEnabled",get:function(){var t=this._enabled;return t&&(t=a.tryInitGL()),(0,r.shadow)(this,"isEnabled",t)}}])&&i(e.prototype,n),o&&i(e,o),t}();e.WebGLContext=o;var a=function(){function t(t,e,n){var r=t.createShader(n);if(t.shaderSource(r,e),t.compileShader(r),!t.getShaderParameter(r,t.COMPILE_STATUS)){var i=t.getShaderInfoLog(r);throw new Error("Error during shader compilation: "+i)}return r}function e(e,n){return t(e,n,e.VERTEX_SHADER)}function n(e,n){return t(e,n,e.FRAGMENT_SHADER)}function r(t,e){for(var n=t.createProgram(),r=0,i=e.length;r<i;++r)t.attachShader(n,e[r]);if(t.linkProgram(n),!t.getProgramParameter(n,t.LINK_STATUS)){var o=t.getProgramInfoLog(n);throw new Error("Error during program linking: "+o)}return n}function i(t,e,n){t.activeTexture(n);var r=t.createTexture();return t.bindTexture(t.TEXTURE_2D,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),r}var o,a;function s(){o||(a=document.createElement("canvas"),o=a.getContext("webgl",{premultipliedalpha:!1}))}var u=null,l=null;return{tryInitGL:function(){try{return s(),!!o}catch(t){}return!1},composeSMask:function(t,l,c){var h=t.width,f=t.height;u||function(){var t,i;s(),t=a,a=null,i=o,o=null;var l=r(i,[e(i," attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } "),n(i," precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ")]);i.useProgram(l);var c={};c.gl=i,c.canvas=t,c.resolutionLocation=i.getUniformLocation(l,"u_resolution"),c.positionLocation=i.getAttribLocation(l,"a_position"),c.backdropLocation=i.getUniformLocation(l,"u_backdrop"),c.subtypeLocation=i.getUniformLocation(l,"u_subtype");var h=i.getAttribLocation(l,"a_texCoord"),f=i.getUniformLocation(l,"u_image"),d=i.getUniformLocation(l,"u_mask"),p=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,p),i.bufferData(i.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),i.STATIC_DRAW),i.enableVertexAttribArray(h),i.vertexAttribPointer(h,2,i.FLOAT,!1,0,0),i.uniform1i(f,0),i.uniform1i(d,1),u=c}();var d=u,p=d.canvas,v=d.gl;p.width=h,p.height=f,v.viewport(0,0,v.drawingBufferWidth,v.drawingBufferHeight),v.uniform2f(d.resolutionLocation,h,f),c.backdrop?v.uniform4f(d.resolutionLocation,c.backdrop[0],c.backdrop[1],c.backdrop[2],1):v.uniform4f(d.resolutionLocation,0,0,0,0),v.uniform1i(d.subtypeLocation,"Luminosity"===c.subtype?1:0);var g=i(v,t,v.TEXTURE0),y=i(v,l,v.TEXTURE1),m=v.createBuffer();return v.bindBuffer(v.ARRAY_BUFFER,m),v.bufferData(v.ARRAY_BUFFER,new Float32Array([0,0,h,0,0,f,0,f,h,0,h,f]),v.STATIC_DRAW),v.enableVertexAttribArray(d.positionLocation),v.vertexAttribPointer(d.positionLocation,2,v.FLOAT,!1,0,0),v.clearColor(0,0,0,0),v.enable(v.BLEND),v.blendFunc(v.ONE,v.ONE_MINUS_SRC_ALPHA),v.clear(v.COLOR_BUFFER_BIT),v.drawArrays(v.TRIANGLES,0,6),v.flush(),v.deleteTexture(g),v.deleteTexture(y),v.deleteBuffer(m),p},drawFigures:function(t,i,u,c,h){l||function(){var t,i;s(),t=a,a=null,i=o,o=null;var u=r(i,[e(i," attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } "),n(i," precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ")]);i.useProgram(u);var c={};c.gl=i,c.canvas=t,c.resolutionLocation=i.getUniformLocation(u,"u_resolution"),c.scaleLocation=i.getUniformLocation(u,"u_scale"),c.offsetLocation=i.getUniformLocation(u,"u_offset"),c.positionLocation=i.getAttribLocation(u,"a_position"),c.colorLocation=i.getAttribLocation(u,"a_color"),l=c}();var f=l,d=f.canvas,p=f.gl;d.width=t,d.height=i,p.viewport(0,0,p.drawingBufferWidth,p.drawingBufferHeight),p.uniform2f(f.resolutionLocation,t,i);var v,g,y,m=0;for(v=0,g=c.length;v<g;v++)switch(c[v].type){case"lattice":m+=((y=c[v].coords.length/c[v].verticesPerRow|0)-1)*(c[v].verticesPerRow-1)*6;break;case"triangles":m+=c[v].coords.length}var b=new Float32Array(2*m),_=new Uint8Array(3*m),C=h.coords,w=h.colors,S=0,x=0;for(v=0,g=c.length;v<g;v++){var A=c[v],k=A.coords,P=A.colors;switch(A.type){case"lattice":var T=A.verticesPerRow;y=k.length/T|0;for(var L=1;L<y;L++)for(var E=L*T+1,R=1;R<T;R++,E++)b[S]=C[k[E-T-1]],b[S+1]=C[k[E-T-1]+1],b[S+2]=C[k[E-T]],b[S+3]=C[k[E-T]+1],b[S+4]=C[k[E-1]],b[S+5]=C[k[E-1]+1],_[x]=w[P[E-T-1]],_[x+1]=w[P[E-T-1]+1],_[x+2]=w[P[E-T-1]+2],_[x+3]=w[P[E-T]],_[x+4]=w[P[E-T]+1],_[x+5]=w[P[E-T]+2],_[x+6]=w[P[E-1]],_[x+7]=w[P[E-1]+1],_[x+8]=w[P[E-1]+2],b[S+6]=b[S+2],b[S+7]=b[S+3],b[S+8]=b[S+4],b[S+9]=b[S+5],b[S+10]=C[k[E]],b[S+11]=C[k[E]+1],_[x+9]=_[x+3],_[x+10]=_[x+4],_[x+11]=_[x+5],_[x+12]=_[x+6],_[x+13]=_[x+7],_[x+14]=_[x+8],_[x+15]=w[P[E]],_[x+16]=w[P[E]+1],_[x+17]=w[P[E]+2],S+=12,x+=18;break;case"triangles":for(var O=0,F=k.length;O<F;O++)b[S]=C[k[O]],b[S+1]=C[k[O]+1],_[x]=w[P[O]],_[x+1]=w[P[O]+1],_[x+2]=w[P[O]+2],S+=2,x+=3}}u?p.clearColor(u[0]/255,u[1]/255,u[2]/255,1):p.clearColor(0,0,0,0),p.clear(p.COLOR_BUFFER_BIT);var I=p.createBuffer();p.bindBuffer(p.ARRAY_BUFFER,I),p.bufferData(p.ARRAY_BUFFER,b,p.STATIC_DRAW),p.enableVertexAttribArray(f.positionLocation),p.vertexAttribPointer(f.positionLocation,2,p.FLOAT,!1,0,0);var M=p.createBuffer();return p.bindBuffer(p.ARRAY_BUFFER,M),p.bufferData(p.ARRAY_BUFFER,_,p.STATIC_DRAW),p.enableVertexAttribArray(f.colorLocation),p.vertexAttribPointer(f.colorLocation,3,p.UNSIGNED_BYTE,!1,0,0),p.uniform2f(f.scaleLocation,h.scaleX,h.scaleY),p.uniform2f(f.offsetLocation,h.offsetX,h.offsetY),p.drawArrays(p.TRIANGLES,0,m),p.flush(),p.deleteBuffer(I),p.deleteBuffer(M),d},cleanup:function(){u&&u.canvas&&(u.canvas.width=0,u.canvas.height=0),l&&l.canvas&&(l.canvas.width=0,l.canvas.height=0),u=null,l=null}}}()},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationLayer=void 0;var r=n(1),i=n(5);function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),t}var m=function(){function t(){v(this,t)}return y(t,null,[{key:"create",value:function(t){switch(t.data.annotationType){case i.AnnotationType.LINK:return new _(t);case i.AnnotationType.TEXT:return new C(t);case i.AnnotationType.WIDGET:switch(t.data.fieldType){case"Tx":return new S(t);case"Btn":return t.data.radioButton?new A(t):t.data.checkBox?new x(t):new k(t);case"Ch":return new P(t)}return new w(t);case i.AnnotationType.POPUP:return new T(t);case i.AnnotationType.FREETEXT:return new E(t);case i.AnnotationType.LINE:return new R(t);case i.AnnotationType.SQUARE:return new O(t);case i.AnnotationType.CIRCLE:return new F(t);case i.AnnotationType.POLYLINE:return new I(t);case i.AnnotationType.CARET:return new D(t);case i.AnnotationType.INK:return new j(t);case i.AnnotationType.POLYGON:return new M(t);case i.AnnotationType.HIGHLIGHT:return new N(t);case i.AnnotationType.UNDERLINE:return new B(t);case i.AnnotationType.SQUIGGLY:return new z(t);case i.AnnotationType.STRIKEOUT:return new H(t);case i.AnnotationType.STAMP:return new U(t);case i.AnnotationType.FILEATTACHMENT:return new V(t);default:return new b(t)}}}]),t}(),b=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];v(this,t),this.isRenderable=n,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderInteractiveForms=e.renderInteractiveForms,this.svgFactory=e.svgFactory,n&&(this.container=this._createContainer(r))}return y(t,[{key:"_createContainer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.data,n=this.page,r=this.viewport,o=document.createElement("section"),a=e.rect[2]-e.rect[0],s=e.rect[3]-e.rect[1];o.setAttribute("data-annotation-id",e.id);var u=i.Util.normalizeRect([e.rect[0],n.view[3]-e.rect[1]+n.view[1],e.rect[2],n.view[3]-e.rect[3]+n.view[1]]);if(o.style.transform="matrix(".concat(r.transform.join(","),")"),o.style.transformOrigin="-".concat(u[0],"px -").concat(u[1],"px"),!t&&e.borderStyle.width>0){o.style.borderWidth="".concat(e.borderStyle.width,"px"),e.borderStyle.style!==i.AnnotationBorderStyleType.UNDERLINE&&(a-=2*e.borderStyle.width,s-=2*e.borderStyle.width);var l=e.borderStyle.horizontalCornerRadius,c=e.borderStyle.verticalCornerRadius;if(l>0||c>0){var h="".concat(l,"px / ").concat(c,"px");o.style.borderRadius=h}switch(e.borderStyle.style){case i.AnnotationBorderStyleType.SOLID:o.style.borderStyle="solid";break;case i.AnnotationBorderStyleType.DASHED:o.style.borderStyle="dashed";break;case i.AnnotationBorderStyleType.BEVELED:(0,i.warn)("Unimplemented border style: beveled");break;case i.AnnotationBorderStyleType.INSET:(0,i.warn)("Unimplemented border style: inset");break;case i.AnnotationBorderStyleType.UNDERLINE:o.style.borderBottomStyle="solid"}e.color?o.style.borderColor=i.Util.makeCssRgb(0|e.color[0],0|e.color[1],0|e.color[2]):o.style.borderWidth=0}return o.style.left="".concat(u[0],"px"),o.style.top="".concat(u[1],"px"),o.style.width="".concat(a,"px"),o.style.height="".concat(s,"px"),o}},{key:"_createPopup",value:function(t,e,n){e||((e=document.createElement("div")).style.height=t.style.height,e.style.width=t.style.width,t.appendChild(e));var r=new L({container:t,trigger:e,color:n.color,title:n.title,modificationDate:n.modificationDate,contents:n.contents,hideWrapper:!0}).render();r.style.left=t.style.width,t.appendChild(r)}},{key:"render",value:function(){(0,i.unreachable)("Abstract method `AnnotationElement.render` called")}}]),t}(),_=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.url||t.data.dest||t.data.action);return e.call(this,t,r)}return y(n,[{key:"render",value:function(){this.container.className="linkAnnotation";var t=this.data,e=this.linkService,n=document.createElement("a");return t.url?(0,r.addLinkAttributes)(n,{url:t.url,target:t.newWindow?r.LinkTarget.BLANK:e.externalLinkTarget,rel:e.externalLinkRel,enabled:e.externalLinkEnabled}):t.action?this._bindNamedAction(n,t.action):this._bindLink(n,t.dest),this.container.appendChild(n),this.container}},{key:"_bindLink",value:function(t,e){var n=this;t.href=this.linkService.getDestinationHash(e),t.onclick=function(){return e&&n.linkService.navigateTo(e),!1},e&&(t.className="internalLink")}},{key:"_bindNamedAction",value:function(t,e){var n=this;t.href=this.linkService.getAnchorUrl(""),t.onclick=function(){return n.linkService.executeNamedAction(e),!1},t.className="internalLink"}}]),n}(b),C=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r)}return y(n,[{key:"render",value:function(){this.container.className="textAnnotation";var t=document.createElement("img");return t.style.height=this.container.style.height,t.style.width=this.container.style.width,t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.alt="[{{type}} Annotation]",t.dataset.l10nId="text_annotation_type",t.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container}}]),n}(b),w=function(t){l(n,t);var e=h(n);function n(){return v(this,n),e.apply(this,arguments)}return y(n,[{key:"render",value:function(){return this.container}}]),n}(b),S=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=t.renderInteractiveForms||!t.data.hasAppearance&&!!t.data.fieldValue;return e.call(this,t,r)}return y(n,[{key:"render",value:function(){this.container.className="textWidgetAnnotation";var t=null;if(this.renderInteractiveForms){if(this.data.multiLine?(t=document.createElement("textarea")).textContent=this.data.fieldValue:((t=document.createElement("input")).type="text",t.setAttribute("value",this.data.fieldValue)),t.disabled=this.data.readOnly,t.name=this.data.fieldName,null!==this.data.maxLen&&(t.maxLength=this.data.maxLen),this.data.comb){var e=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;t.classList.add("comb"),t.style.letterSpacing="calc(".concat(e,"px - 1ch)")}}else{(t=document.createElement("div")).textContent=this.data.fieldValue,t.style.verticalAlign="middle",t.style.display="table-cell";var n=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(n=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(t,n)}return null!==this.data.textAlignment&&(t.style.textAlign=["left","center","right"][this.data.textAlignment]),this.container.appendChild(t),this.container}},{key:"_setTextStyle",value:function(t,e){var n=t.style;if(n.fontSize="".concat(this.data.fontSize,"px"),n.direction=this.data.fontDirection<0?"rtl":"ltr",e){var r="normal";e.black?r="900":e.bold&&(r="bold"),n.fontWeight=r,n.fontStyle=e.italic?"italic":"normal";var i=e.loadedName?'"'.concat(e.loadedName,'", '):"",o=e.fallbackName||"Helvetica, sans-serif";n.fontFamily=i+o}}}]),n}(w),x=function(t){l(n,t);var e=h(n);function n(t){return v(this,n),e.call(this,t,t.renderInteractiveForms)}return y(n,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var t=document.createElement("input");return t.disabled=this.data.readOnly,t.type="checkbox",t.name=this.data.fieldName,this.data.fieldValue&&"Off"!==this.data.fieldValue&&t.setAttribute("checked",!0),this.container.appendChild(t),this.container}}]),n}(w),A=function(t){l(n,t);var e=h(n);function n(t){return v(this,n),e.call(this,t,t.renderInteractiveForms)}return y(n,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var t=document.createElement("input");return t.disabled=this.data.readOnly,t.type="radio",t.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&t.setAttribute("checked",!0),this.container.appendChild(t),this.container}}]),n}(w),k=function(t){l(n,t);var e=h(n);function n(){return v(this,n),e.apply(this,arguments)}return y(n,[{key:"render",value:function(){var t=s(p(n.prototype),"render",this).call(this);return t.className="buttonWidgetAnnotation pushButton",t}}]),n}(_),P=function(t){l(n,t);var e=h(n);function n(t){return v(this,n),e.call(this,t,t.renderInteractiveForms)}return y(n,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var t=document.createElement("select");t.disabled=this.data.readOnly,t.name=this.data.fieldName,this.data.combo||(t.size=this.data.options.length,this.data.multiSelect&&(t.multiple=!0));var e,n=o(this.data.options);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=document.createElement("option");i.textContent=r.displayValue,i.value=r.exportValue,this.data.fieldValue.includes(r.displayValue)&&i.setAttribute("selected",!0),t.appendChild(i)}}catch(t){n.e(t)}finally{n.f()}return this.container.appendChild(t),this.container}}]),n}(w),T=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!(!t.data.title&&!t.data.contents);return e.call(this,t,r)}return y(n,[{key:"render",value:function(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;var t='[data-annotation-id="'.concat(this.data.parentId,'"]'),e=this.layer.querySelector(t);if(!e)return this.container;var n=new L({container:this.container,trigger:e,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),r=parseFloat(e.style.left),i=parseFloat(e.style.width);return this.container.style.transformOrigin="-".concat(r+i,"px -").concat(e.style.top),this.container.style.left="".concat(r+i,"px"),this.container.appendChild(n.render()),this.container}}]),n}(b),L=function(){function t(e){v(this,t),this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.title=e.title,this.modificationDate=e.modificationDate,this.contents=e.contents,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}return y(t,[{key:"render",value:function(){var t=document.createElement("div");t.className="popupWrapper",this.hideElement=this.hideWrapper?t:this.container,this.hideElement.setAttribute("hidden",!0);var e=document.createElement("div");e.className="popup";var n=this.color;if(n){var o=.7*(255-n[0])+n[0],a=.7*(255-n[1])+n[1],s=.7*(255-n[2])+n[2];e.style.backgroundColor=i.Util.makeCssRgb(0|o,0|a,0|s)}var u=document.createElement("h1");u.textContent=this.title,e.appendChild(u);var l=r.PDFDateString.toDateObject(this.modificationDate);if(l){var c=document.createElement("span");c.textContent="{{date}}, {{time}}",c.dataset.l10nId="annotation_date_string",c.dataset.l10nArgs=JSON.stringify({date:l.toLocaleDateString(),time:l.toLocaleTimeString()}),e.appendChild(c)}var h=this._formatContents(this.contents);return e.appendChild(h),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),e.addEventListener("click",this._hide.bind(this,!0)),t.appendChild(e),t}},{key:"_formatContents",value:function(t){for(var e=document.createElement("p"),n=t.split(/(?:\r\n?|\n)/),r=0,i=n.length;r<i;++r){var o=n[r];e.appendChild(document.createTextNode(o)),r<i-1&&e.appendChild(document.createElement("br"))}return e}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),t}(),E=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return y(n,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(b),R=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return y(n,[{key:"render",value:function(){this.container.className="lineAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],n=t.rect[3]-t.rect[1],r=this.svgFactory.create(e,n),i=this.svgFactory.createElement("svg:line");return i.setAttribute("x1",t.rect[2]-t.lineCoordinates[0]),i.setAttribute("y1",t.rect[3]-t.lineCoordinates[1]),i.setAttribute("x2",t.rect[2]-t.lineCoordinates[2]),i.setAttribute("y2",t.rect[3]-t.lineCoordinates[3]),i.setAttribute("stroke-width",t.borderStyle.width||1),i.setAttribute("stroke","transparent"),r.appendChild(i),this.container.append(r),this._createPopup(this.container,i,t),this.container}}]),n}(b),O=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return y(n,[{key:"render",value:function(){this.container.className="squareAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],n=t.rect[3]-t.rect[1],r=this.svgFactory.create(e,n),i=t.borderStyle.width,o=this.svgFactory.createElement("svg:rect");return o.setAttribute("x",i/2),o.setAttribute("y",i/2),o.setAttribute("width",e-i),o.setAttribute("height",n-i),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),r.appendChild(o),this.container.append(r),this._createPopup(this.container,o,t),this.container}}]),n}(b),F=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return y(n,[{key:"render",value:function(){this.container.className="circleAnnotation";var t=this.data,e=t.rect[2]-t.rect[0],n=t.rect[3]-t.rect[1],r=this.svgFactory.create(e,n),i=t.borderStyle.width,o=this.svgFactory.createElement("svg:ellipse");return o.setAttribute("cx",e/2),o.setAttribute("cy",n/2),o.setAttribute("rx",e/2-i/2),o.setAttribute("ry",n/2-i/2),o.setAttribute("stroke-width",i||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","none"),r.appendChild(o),this.container.append(r),this._createPopup(this.container,o,t),this.container}}]),n}(b),I=function(t){l(n,t);var e=h(n);function n(t){var r;v(this,n);var i=!!(t.data.hasPopup||t.data.title||t.data.contents);return(r=e.call(this,t,i,!0)).containerClassName="polylineAnnotation",r.svgElementName="svg:polyline",r}return y(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var t,e=this.data,n=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],i=this.svgFactory.create(n,r),a=[],s=o(e.vertices);try{for(s.s();!(t=s.n()).done;){var u=t.value,l=u.x-e.rect[0],c=e.rect[3]-u.y;a.push(l+","+c)}}catch(t){s.e(t)}finally{s.f()}a=a.join(" ");var h=this.svgFactory.createElement(this.svgElementName);return h.setAttribute("points",a),h.setAttribute("stroke-width",e.borderStyle.width||1),h.setAttribute("stroke","transparent"),h.setAttribute("fill","none"),i.appendChild(h),this.container.append(i),this._createPopup(this.container,h,e),this.container}}]),n}(b),M=function(t){l(n,t);var e=h(n);function n(t){var r;return v(this,n),(r=e.call(this,t)).containerClassName="polygonAnnotation",r.svgElementName="svg:polygon",r}return n}(I),D=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return y(n,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(b),j=function(t){l(n,t);var e=h(n);function n(t){var r;v(this,n);var i=!!(t.data.hasPopup||t.data.title||t.data.contents);return(r=e.call(this,t,i,!0)).containerClassName="inkAnnotation",r.svgElementName="svg:polyline",r}return y(n,[{key:"render",value:function(){this.container.className=this.containerClassName;var t,e=this.data,n=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],i=this.svgFactory.create(n,r),a=o(e.inkLists);try{for(a.s();!(t=a.n()).done;){var s,u=t.value,l=[],c=o(u);try{for(c.s();!(s=c.n()).done;){var h=s.value,f=h.x-e.rect[0],d=e.rect[3]-h.y;l.push("".concat(f,",").concat(d))}}catch(t){c.e(t)}finally{c.f()}l=l.join(" ");var p=this.svgFactory.createElement(this.svgElementName);p.setAttribute("points",l),p.setAttribute("stroke-width",e.borderStyle.width||1),p.setAttribute("stroke","transparent"),p.setAttribute("fill","none"),this._createPopup(this.container,p,e),i.appendChild(p)}}catch(t){a.e(t)}finally{a.f()}return this.container.append(i),this.container}}]),n}(b),N=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return y(n,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(b),B=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return y(n,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(b),z=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return y(n,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(b),H=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return y(n,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(b),U=function(t){l(n,t);var e=h(n);function n(t){v(this,n);var r=!!(t.data.hasPopup||t.data.title||t.data.contents);return e.call(this,t,r,!0)}return y(n,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),n}(b),V=function(t){l(n,t);var e=h(n);function n(t){var o;v(this,n);var a=(o=e.call(this,t,!0)).data.file,s=a.filename,u=a.content;return o.filename=(0,r.getFilenameFromUrl)(s),o.content=u,o.linkService.eventBus&&o.linkService.eventBus.dispatch("fileattachmentannotation",{source:d(o),id:(0,i.stringToPDFString)(s),filename:s,content:u}),o}return y(n,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var t=document.createElement("div");return t.style.height=this.container.style.height,t.style.width=this.container.style.width,t.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container}},{key:"_download",value:function(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,i.warn)("Download cannot be started due to unavailable download manager")}}]),n}(b),W=function(){function t(){v(this,t)}return y(t,null,[{key:"render",value:function(t){var e,n=[],a=[],s=o(t.annotations);try{for(s.s();!(e=s.n()).done;){var u=e.value;u&&(u.annotationType!==i.AnnotationType.POPUP?n.push(u):a.push(u))}}catch(t){s.e(t)}finally{s.f()}a.length&&n.push.apply(n,a);for(var l=0,c=n;l<c.length;l++){var h=c[l],f=m.create({data:h,layer:t.div,page:t.page,viewport:t.viewport,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderInteractiveForms:t.renderInteractiveForms||!1,svgFactory:new r.DOMSVGFactory});f.isRenderable&&t.div.appendChild(f.render())}}},{key:"update",value:function(t){var e,n=o(t.annotations);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=t.div.querySelector('[data-annotation-id="'.concat(r.id,'"]'));i&&(i.style.transform="matrix(".concat(t.viewport.transform.join(","),")"))}}catch(t){n.e(t)}finally{n.f()}t.div.removeAttribute("hidden")}}]),t}();e.AnnotationLayer=W},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.renderTextLayer=void 0;var r=n(5),i=function(){var t=/\S/;function e(e,n,i){var o,a=document.createElement("span"),s={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(e._textDivs.push(a),o=n.str,!t.test(o))return s.isWhitespace=!0,void e._textDivProperties.set(a,s);var u=r.Util.transform(e._viewport.transform,n.transform),l=Math.atan2(u[1],u[0]),c=i[n.fontName];c.vertical&&(l+=Math.PI/2);var h,f,d=Math.sqrt(u[2]*u[2]+u[3]*u[3]),p=d;c.ascent?p=c.ascent*p:c.descent&&(p=(1+c.descent)*p),0===l?(h=u[4],f=u[5]-p):(h=u[4]+p*Math.sin(l),f=u[5]-p*Math.cos(l)),a.style.left="".concat(h,"px"),a.style.top="".concat(f,"px"),a.style.fontSize="".concat(d,"px"),a.style.fontFamily=c.fontFamily,a.textContent=n.str,e._fontInspectorEnabled&&(a.dataset.fontName=n.fontName),0!==l&&(s.angle=l*(180/Math.PI));var v=!1;if(n.str.length>1)v=!0;else if(n.transform[0]!==n.transform[3]){var g=Math.abs(n.transform[0]),y=Math.abs(n.transform[3]);g!==y&&Math.max(g,y)/Math.min(g,y)>1.5&&(v=!0)}if(v&&(c.vertical?s.canvasWidth=n.height*e._viewport.scale:s.canvasWidth=n.width*e._viewport.scale),e._textDivProperties.set(a,s),e._textContentStream&&e._layoutText(a),e._enhanceTextSelection){var m=1,b=0;0!==l&&(m=Math.cos(l),b=Math.sin(l));var _,C,w=(c.vertical?n.height:n.width)*e._viewport.scale,S=d;0!==l?(_=[m,b,-b,m,h,f],C=r.Util.getAxialAlignedBoundingBox([0,0,w,S],_)):C=[h,f,h+w,f+S],e._bounds.push({left:C[0],top:C[1],right:C[2],bottom:C[3],div:a,size:[w,S],m:_})}}function n(t){if(!t._canceled){var e=t._textDivs,n=t._capability,r=e.length;if(r>1e5)return t._renderingDone=!0,void n.resolve();if(!t._textContentStream)for(var i=0;i<r;i++)t._layoutText(e[i]);t._renderingDone=!0,n.resolve()}}function i(t,e,n){for(var r=0,i=0;i<n;i++){var o=t[e++];o>0&&(r=r?Math.min(o,r):o)}return r}function o(t){for(var e=t._bounds,n=t._viewport,o=function(t,e,n){var r=n.map((function(t,e){return{x1:t.left,y1:t.top,x2:t.right,y2:t.bottom,index:e,x1New:void 0,x2New:void 0}}));a(t,r);var i=new Array(n.length);return r.forEach((function(t){var e=t.index;i[e]={left:t.x1New,top:0,right:t.x2New,bottom:0}})),n.map((function(e,n){var o=i[n],a=r[n];a.x1=e.top,a.y1=t-o.right,a.x2=e.bottom,a.y2=t-o.left,a.index=n,a.x1New=void 0,a.x2New=void 0})),a(e,r),r.forEach((function(t){var e=t.index;i[e].top=t.x1New,i[e].bottom=t.x2New})),i}(n.width,n.height,e),s=0;s<o.length;s++){var u=e[s].div,l=t._textDivProperties.get(u);if(0!==l.angle){var c=o[s],h=e[s],f=h.m,d=f[0],p=f[1],v=[[0,0],[0,h.size[1]],[h.size[0],0],h.size],g=new Float64Array(64);v.forEach((function(t,e){var n=r.Util.applyTransform(t,f);g[e+0]=d&&(c.left-n[0])/d,g[e+4]=p&&(c.top-n[1])/p,g[e+8]=d&&(c.right-n[0])/d,g[e+12]=p&&(c.bottom-n[1])/p,g[e+16]=p&&(c.left-n[0])/-p,g[e+20]=d&&(c.top-n[1])/d,g[e+24]=p&&(c.right-n[0])/-p,g[e+28]=d&&(c.bottom-n[1])/d,g[e+32]=d&&(c.left-n[0])/-d,g[e+36]=p&&(c.top-n[1])/-p,g[e+40]=d&&(c.right-n[0])/-d,g[e+44]=p&&(c.bottom-n[1])/-p,g[e+48]=p&&(c.left-n[0])/p,g[e+52]=d&&(c.top-n[1])/-d,g[e+56]=p&&(c.right-n[0])/p,g[e+60]=d&&(c.bottom-n[1])/-d}));var y=1+Math.min(Math.abs(d),Math.abs(p));l.paddingLeft=i(g,32,16)/y,l.paddingTop=i(g,48,16)/y,l.paddingRight=i(g,0,16)/y,l.paddingBottom=i(g,16,16)/y,t._textDivProperties.set(u,l)}else l.paddingLeft=e[s].left-o[s].left,l.paddingTop=e[s].top-o[s].top,l.paddingRight=o[s].right-e[s].right,l.paddingBottom=o[s].bottom-e[s].bottom,t._textDivProperties.set(u,l)}}function a(t,e){e.sort((function(t,e){return t.x1-e.x1||t.index-e.index}));var n=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];e.forEach((function(t){for(var e=0;e<n.length&&n[e].end<=t.y1;)e++;for(var r,i,o=n.length-1;o>=0&&n[o].start>=t.y2;)o--;var a,s,u=-1/0;for(a=e;a<=o;a++){var l;(l=(i=(r=n[a]).boundary).x2>t.x1?i.index>t.index?i.x1New:t.x1:void 0===i.x2New?(i.x2+t.x1)/2:i.x2New)>u&&(u=l)}for(t.x1New=u,a=e;a<=o;a++)void 0===(i=(r=n[a]).boundary).x2New?i.x2>t.x1?i.index>t.index&&(i.x2New=i.x2):i.x2New=u:i.x2New>u&&(i.x2New=Math.max(u,i.x2));var c=[],h=null;for(a=e;a<=o;a++){var f=(i=(r=n[a]).boundary).x2>t.x2?i:t;h===f?c[c.length-1].end=r.end:(c.push({start:r.start,end:r.end,boundary:f}),h=f)}for(n[e].start<t.y1&&(c[0].start=t.y1,c.unshift({start:n[e].start,end:t.y1,boundary:n[e].boundary})),t.y2<n[o].end&&(c[c.length-1].end=t.y2,c.push({start:t.y2,end:n[o].end,boundary:n[o].boundary})),a=e;a<=o;a++)if(void 0===(i=(r=n[a]).boundary).x2New){var d=!1;for(s=e-1;!d&&s>=0&&n[s].start>=i.y1;s--)d=n[s].boundary===i;for(s=o+1;!d&&s<n.length&&n[s].end<=i.y2;s++)d=n[s].boundary===i;for(s=0;!d&&s<c.length;s++)d=c[s].boundary===i;d||(i.x2New=u)}Array.prototype.splice.apply(n,[e,o-e+1].concat(c))})),n.forEach((function(e){var n=e.boundary;void 0===n.x2New&&(n.x2New=Math.max(t,n.x2))}))}function s(t){var e=this,n=t.textContent,i=t.textContentStream,o=t.container,a=t.viewport,s=t.textDivs,u=t.textContentItemsStr,l=t.enhanceTextSelection;this._textContent=n,this._textContentStream=i,this._container=o,this._viewport=a,this._textDivs=s||[],this._textContentItemsStr=u||[],this._enhanceTextSelection=!!l,this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,r.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally((function(){e._layoutTextCtx&&(e._layoutTextCtx.canvas.width=0,e._layoutTextCtx.canvas.height=0,e._layoutTextCtx=null)})).catch((function(){}))}return s.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new r.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems:function(t,n){for(var r=0,i=t.length;r<i;r++)this._textContentItemsStr.push(t[r].str),e(this,t[r],n)},_layoutText:function(t){var e=this._textDivProperties.get(t);if(!e.isWhitespace){var n="";if(0!==e.canvasWidth){var r=t.style,i=r.fontSize,o=r.fontFamily;i===this._layoutTextLastFontSize&&o===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(i," ").concat(o),this._layoutTextLastFontSize=i,this._layoutTextLastFontFamily=o);var a=this._layoutTextCtx.measureText(t.textContent).width;a>0&&(e.scale=e.canvasWidth/a,n="scaleX(".concat(e.scale,")"))}0!==e.angle&&(n="rotate(".concat(e.angle,"deg) ").concat(n)),n.length>0&&(this._enhanceTextSelection&&(e.originalTransform=n),t.style.transform=n),this._textDivProperties.set(t,e),this._container.appendChild(t)}},_render:function(t){var e=this,i=(0,r.createPromiseCapability)(),o=Object.create(null),a=document.createElement("canvas");if(a.mozOpaque=!0,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,u=this._textContent.styles;this._processItems(s,u),i.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');this._reader=this._textContentStream.getReader(),function t(){e._reader.read().then((function(n){var r=n.value;n.done?i.resolve():(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__.a)(o,r.styles),e._processItems(r.items,o),t())}),i.reject)}()}i.promise.then((function(){o=null,t?e._renderTimer=setTimeout((function(){n(e),e._renderTimer=null}),t):n(e)}),this._capability.reject)},expandTextDivs:function(t){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(o(this),this._bounds=null);for(var e=[],n=[],r=0,i=this._textDivs.length;r<i;r++){var a=this._textDivs[r],s=this._textDivProperties.get(a);s.isWhitespace||(t?(e.length=0,n.length=0,s.originalTransform&&e.push(s.originalTransform),s.paddingTop>0?(n.push("".concat(s.paddingTop,"px")),e.push("translateY(".concat(-s.paddingTop,"px)"))):n.push(0),s.paddingRight>0?n.push("".concat(s.paddingRight/s.scale,"px")):n.push(0),s.paddingBottom>0?n.push("".concat(s.paddingBottom,"px")):n.push(0),s.paddingLeft>0?(n.push("".concat(s.paddingLeft/s.scale,"px")),e.push("translateX(".concat(-s.paddingLeft/s.scale,"px)"))):n.push(0),a.style.padding=n.join(" "),e.length&&(a.style.transform=e.join(" "))):(a.style.padding=null,a.style.transform=s.originalTransform))}}}},function(t){var e=new s({textContent:t.textContent,textContentStream:t.textContentStream,container:t.container,viewport:t.viewport,textDivs:t.textDivs,textContentItemsStr:t.textContentItemsStr,enhanceTextSelection:t.enhanceTextSelection});return e._render(t.timeout),e}}();e.renderTextLayer=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.SVGGraphics=void 0;var r=n(5),i=n(1),o=n(7);function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||l(t)||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 s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}var p=function(){throw new Error("Not implemented: SVGGraphics")};e.SVGGraphics=p;var v=function(t){if(Number.isInteger(t))return t.toString();var e=t.toFixed(10),n=e.length-1;if("0"!==e[n])return e;do{n--}while("0"===e[n]);return e.substring(0,"."===e[n]?n:n+1)},g=function(t){if(0===t[4]&&0===t[5]){if(0===t[1]&&0===t[2])return 1===t[0]&&1===t[3]?"":"scale(".concat(v(t[0])," ").concat(v(t[3]),")");if(t[0]===t[3]&&t[1]===-t[2]){var e=180*Math.acos(t[0])/Math.PI;return"rotate(".concat(v(e),")")}}else if(1===t[0]&&0===t[1]&&0===t[2]&&1===t[3])return"translate(".concat(v(t[4])," ").concat(v(t[5]),")");return"matrix(".concat(v(t[0])," ").concat(v(t[1])," ").concat(v(t[2])," ").concat(v(t[3])," ").concat(v(t[4])," ")+"".concat(v(t[5]),")")},y={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},m=["butt","round","square"],b=["miter","round","bevel"],_=function(){for(var t=new Uint8Array([137,80,78,71,13,10,26,10]),e=new Int32Array(256),n=0;n<256;n++){for(var i=n,a=0;a<8;a++)i=1&i?3988292384^i>>1&2147483647:i>>1&2147483647;e[n]=i}function s(t,n,r,i){var o=i,a=n.length;r[o]=a>>24&255,r[o+1]=a>>16&255,r[o+2]=a>>8&255,r[o+3]=255&a,r[o+=4]=255&t.charCodeAt(0),r[o+1]=255&t.charCodeAt(1),r[o+2]=255&t.charCodeAt(2),r[o+3]=255&t.charCodeAt(3),o+=4,r.set(n,o);var s=function(t,n,r){for(var i=-1,o=n;o<r;o++){var a=255&(i^t[o]);i=i>>>8^e[a]}return-1^i}(r,i+4,o+=n.length);r[o]=s>>24&255,r[o+1]=s>>16&255,r[o+2]=s>>8&255,r[o+3]=255&s}function u(t){var e=t.length,n=Math.ceil(e/65535),r=new Uint8Array(2+e+5*n+4),i=0;r[i++]=120,r[i++]=156;for(var o=0;e>65535;)r[i++]=0,r[i++]=255,r[i++]=255,r[i++]=0,r[i++]=0,r.set(t.subarray(o,o+65535),i),i+=65535,o+=65535,e-=65535;r[i++]=1,r[i++]=255&e,r[i++]=e>>8&255,r[i++]=255&~e,r[i++]=(65535&~e)>>8&255,r.set(t.subarray(o),i),i+=t.length-o;var a=function(t,e,n){for(var r=1,i=0,o=e;o<n;++o)i=(i+(r=(r+(255&t[o]))%65521))%65521;return i<<16|r}(t,0,t.length);return r[i++]=a>>24&255,r[i++]=a>>16&255,r[i++]=a>>8&255,r[i++]=255&a,r}function l(e,n,i,a){var l,c,h,f=e.width,d=e.height,p=e.data;switch(n){case r.ImageKind.GRAYSCALE_1BPP:c=0,l=1,h=f+7>>3;break;case r.ImageKind.RGB_24BPP:c=2,l=8,h=3*f;break;case r.ImageKind.RGBA_32BPP:c=6,l=8,h=4*f;break;default:throw new Error("invalid format")}for(var v=new Uint8Array((1+h)*d),g=0,y=0,m=0;m<d;++m)v[g++]=0,v.set(p.subarray(y,y+h),g),y+=h,g+=h;if(n===r.ImageKind.GRAYSCALE_1BPP&&a){g=0;for(var b=0;b<d;b++){g++;for(var _=0;_<h;_++)v[g++]^=255}}var C=new Uint8Array([f>>24&255,f>>16&255,f>>8&255,255&f,d>>24&255,d>>16&255,d>>8&255,255&d,l,c,0,0,0]),w=function(t){if(!o.isNodeJS)return u(t);try{var e;e=parseInt(process.versions.node)>=8?t:Buffer.from(t);var n=__webpack_require__(26).deflateSync(e,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(t){(0,r.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+t)}return u(t)}(v),S=t.length+36+C.length+w.length,x=new Uint8Array(S),A=0;return x.set(t,A),s("IHDR",C,x,A+=t.length),s("IDATA",w,x,A+=12+C.length),A+=12+w.length,s("IEND",new Uint8Array(0),x,A),(0,r.createObjectURL)(x,"image/png",i)}return function(t,e,n){return l(t,void 0===t.kind?r.ImageKind.GRAYSCALE_1BPP:t.kind,e,n)}}(),C=function(){function t(){h(this,t),this.fontSizeScale=1,this.fontWeight=y.fontWeight,this.fontSize=0,this.textMatrix=r.IDENTITY_MATRIX,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=r.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=y.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return d(t,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(t,e){this.x=t,this.y=e}}]),t}(),w=0,S=0,x=0;e.SVGGraphics=p=function(){function t(e,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var a in h(this,t),this.svgFactory=new i.DOMSVGFactory,this.current=new C,this.transformMatrix=r.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=n,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!o,this._operatorIdMapping=[],r.OPS)this._operatorIdMapping[r.OPS[a]]=a}return d(t,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var t=this.current;this.extraStack.push(t),this.current=t.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(t){this.save(),this.executeOpTree(t),this.restore()}},{key:"loadDependencies",value:function(t){for(var e=this,n=t.fnArray,i=t.argsArray,o=0,a=n.length;o<a;o++)if(n[o]===r.OPS.dependency){var s,l=u(i[o]);try{var c=function(){var t=s.value,n=t.startsWith("g_")?e.commonObjs:e.objs,r=new Promise((function(e){n.get(t,e)}));e.current.dependencies.push(r)};for(l.s();!(s=l.n()).done;)c()}catch(t){l.e(t)}finally{l.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(t,e,n,i,o,a){var s=[t,e,n,i,o,a];this.transformMatrix=r.Util.transform(this.transformMatrix,s),this.tgrp=null}},{key:"getSVG",value:function(t,e){var n=this;this.viewport=e;var i=this._initialize(e);return this.loadDependencies(t).then((function(){return n.transformMatrix=r.IDENTITY_MATRIX,n.executeOpTree(n.convertOpList(t)),i}))}},{key:"convertOpList",value:function(t){for(var e=this._operatorIdMapping,n=t.argsArray,r=t.fnArray,i=[],o=0,a=r.length;o<a;o++){var s=r[o];i.push({fnId:s,fn:e[s],args:n[o]})}return function(t){var e,n=[],r=[],i=u(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;"save"!==o.fn?"restore"===o.fn?n=r.pop():n.push(o):(n.push({fnId:92,fn:"group",items:[]}),r.push(n),n=n[n.length-1].items)}}catch(t){i.e(t)}finally{i.f()}return n}(i)}},{key:"executeOpTree",value:function(t){var e,n=u(t);try{for(n.s();!(e=n.n()).done;){var i=e.value,o=i.fn,a=i.fnId,s=i.args;switch(0|a){case r.OPS.beginText:this.beginText();break;case r.OPS.dependency:break;case r.OPS.setLeading:this.setLeading(s);break;case r.OPS.setLeadingMoveText:this.setLeadingMoveText(s[0],s[1]);break;case r.OPS.setFont:this.setFont(s);break;case r.OPS.showText:case r.OPS.showSpacedText:this.showText(s[0]);break;case r.OPS.endText:this.endText();break;case r.OPS.moveText:this.moveText(s[0],s[1]);break;case r.OPS.setCharSpacing:this.setCharSpacing(s[0]);break;case r.OPS.setWordSpacing:this.setWordSpacing(s[0]);break;case r.OPS.setHScale:this.setHScale(s[0]);break;case r.OPS.setTextMatrix:this.setTextMatrix(s[0],s[1],s[2],s[3],s[4],s[5]);break;case r.OPS.setTextRise:this.setTextRise(s[0]);break;case r.OPS.setTextRenderingMode:this.setTextRenderingMode(s[0]);break;case r.OPS.setLineWidth:this.setLineWidth(s[0]);break;case r.OPS.setLineJoin:this.setLineJoin(s[0]);break;case r.OPS.setLineCap:this.setLineCap(s[0]);break;case r.OPS.setMiterLimit:this.setMiterLimit(s[0]);break;case r.OPS.setFillRGBColor:this.setFillRGBColor(s[0],s[1],s[2]);break;case r.OPS.setStrokeRGBColor:this.setStrokeRGBColor(s[0],s[1],s[2]);break;case r.OPS.setStrokeColorN:this.setStrokeColorN(s);break;case r.OPS.setFillColorN:this.setFillColorN(s);break;case r.OPS.shadingFill:this.shadingFill(s[0]);break;case r.OPS.setDash:this.setDash(s[0],s[1]);break;case r.OPS.setRenderingIntent:this.setRenderingIntent(s[0]);break;case r.OPS.setFlatness:this.setFlatness(s[0]);break;case r.OPS.setGState:this.setGState(s[0]);break;case r.OPS.fill:this.fill();break;case r.OPS.eoFill:this.eoFill();break;case r.OPS.stroke:this.stroke();break;case r.OPS.fillStroke:this.fillStroke();break;case r.OPS.eoFillStroke:this.eoFillStroke();break;case r.OPS.clip:this.clip("nonzero");break;case r.OPS.eoClip:this.clip("evenodd");break;case r.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case r.OPS.paintImageXObject:this.paintImageXObject(s[0]);break;case r.OPS.paintInlineImageXObject:this.paintInlineImageXObject(s[0]);break;case r.OPS.paintImageMaskXObject:this.paintImageMaskXObject(s[0]);break;case r.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(s[0],s[1]);break;case r.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case r.OPS.closePath:this.closePath();break;case r.OPS.closeStroke:this.closeStroke();break;case r.OPS.closeFillStroke:this.closeFillStroke();break;case r.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case r.OPS.nextLine:this.nextLine();break;case r.OPS.transform:this.transform(s[0],s[1],s[2],s[3],s[4],s[5]);break;case r.OPS.constructPath:this.constructPath(s[0],s[1]);break;case r.OPS.endPath:this.endPath();break;case 92:this.group(i.items);break;default:(0,r.warn)("Unimplemented operator ".concat(o))}}}catch(t){n.e(t)}finally{n.f()}}},{key:"setWordSpacing",value:function(t){this.current.wordSpacing=t}},{key:"setCharSpacing",value:function(t){this.current.charSpacing=t}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(t,e,n,r,i,o){var a=this.current;a.textMatrix=a.lineMatrix=[t,e,n,r,i,o],a.textMatrixScale=Math.sqrt(t*t+e*e),a.x=a.lineX=0,a.y=a.lineY=0,a.xcoords=[],a.ycoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size","".concat(v(a.fontSize),"px")),a.tspan.setAttributeNS(null,"y",v(-a.y)),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtElement.appendChild(a.tspan)}},{key:"beginText",value:function(){var t=this.current;t.x=t.lineX=0,t.y=t.lineY=0,t.textMatrix=r.IDENTITY_MATRIX,t.lineMatrix=r.IDENTITY_MATRIX,t.textMatrixScale=1,t.tspan=this.svgFactory.createElement("svg:tspan"),t.txtElement=this.svgFactory.createElement("svg:text"),t.txtgrp=this.svgFactory.createElement("svg:g"),t.xcoords=[],t.ycoords=[]}},{key:"moveText",value:function(t,e){var n=this.current;n.x=n.lineX+=t,n.y=n.lineY+=e,n.xcoords=[],n.ycoords=[],n.tspan=this.svgFactory.createElement("svg:tspan"),n.tspan.setAttributeNS(null,"font-family",n.fontFamily),n.tspan.setAttributeNS(null,"font-size","".concat(v(n.fontSize),"px")),n.tspan.setAttributeNS(null,"y",v(-n.y))}},{key:"showText",value:function(t){var e=this.current,n=e.font,i=e.fontSize;if(0!==i){var o,a=e.fontSizeScale,s=e.charSpacing,l=e.wordSpacing,c=e.fontDirection,h=e.textHScale*c,f=n.vertical,d=f?1:-1,p=n.defaultVMetrics,m=i*e.fontMatrix[0],b=0,_=u(t);try{for(_.s();!(o=_.n()).done;){var C=o.value;if(null!==C)if((0,r.isNum)(C))b+=d*C*i/1e3;else{var w=(C.isSpace?l:0)+s,S=C.fontChar,x=void 0,A=void 0,k=C.width;if(f){var P=void 0,T=C.vmetric||p;P=-(P=C.vmetric?T[1]:.5*k)*m;var L=T[2]*m;k=T?-T[0]:k,x=P/a,A=(b+L)/a}else x=b/a,A=0;(C.isInFont||n.missingFile)&&(e.xcoords.push(e.x+x),f&&e.ycoords.push(-e.y+A),e.tspan.textContent+=S),b+=f?k*m-w*c:k*m+w*c}else b+=c*l}}catch(t){_.e(t)}finally{_.f()}e.tspan.setAttributeNS(null,"x",e.xcoords.map(v).join(" ")),f?e.tspan.setAttributeNS(null,"y",e.ycoords.map(v).join(" ")):e.tspan.setAttributeNS(null,"y",v(-e.y)),f?e.y-=b:e.x+=b*h,e.tspan.setAttributeNS(null,"font-family",e.fontFamily),e.tspan.setAttributeNS(null,"font-size","".concat(v(e.fontSize),"px")),e.fontStyle!==y.fontStyle&&e.tspan.setAttributeNS(null,"font-style",e.fontStyle),e.fontWeight!==y.fontWeight&&e.tspan.setAttributeNS(null,"font-weight",e.fontWeight);var E=e.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;if(E===r.TextRenderingMode.FILL||E===r.TextRenderingMode.FILL_STROKE?(e.fillColor!==y.fillColor&&e.tspan.setAttributeNS(null,"fill",e.fillColor),e.fillAlpha<1&&e.tspan.setAttributeNS(null,"fill-opacity",e.fillAlpha)):e.textRenderingMode===r.TextRenderingMode.ADD_TO_PATH?e.tspan.setAttributeNS(null,"fill","transparent"):e.tspan.setAttributeNS(null,"fill","none"),E===r.TextRenderingMode.STROKE||E===r.TextRenderingMode.FILL_STROKE){var R=1/(e.textMatrixScale||1);this._setStrokeAttributes(e.tspan,R)}var O=e.textMatrix;0!==e.textRise&&((O=O.slice())[5]+=e.textRise),e.txtElement.setAttributeNS(null,"transform","".concat(g(O)," scale(").concat(v(h),", -1)")),e.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.txtElement.appendChild(e.tspan),e.txtgrp.appendChild(e.txtElement),this._ensureTransformGroup().appendChild(e.txtElement)}}},{key:"setLeadingMoveText",value:function(t,e){this.setLeading(-e),this.moveText(t,e)}},{key:"addFontStyle",value:function(t){if(!t.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var e=(0,r.createObjectURL)(t.data,t.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(t.loadedName,'";')+" src: url(".concat(e,"); }\n")}},{key:"setFont",value:function(t){var e=this.current,n=this.commonObjs.get(t[0]),i=t[1];e.font=n,!this.embedFonts||n.missingFile||this.embeddedFonts[n.loadedName]||(this.addFontStyle(n),this.embeddedFonts[n.loadedName]=n),e.fontMatrix=n.fontMatrix?n.fontMatrix:r.FONT_IDENTITY_MATRIX;var o="normal";n.black?o="900":n.bold&&(o="bold");var a=n.italic?"italic":"normal";i<0?(i=-i,e.fontDirection=-1):e.fontDirection=1,e.fontSize=i,e.fontFamily=n.loadedName,e.fontWeight=o,e.fontStyle=a,e.tspan=this.svgFactory.createElement("svg:tspan"),e.tspan.setAttributeNS(null,"y",v(-e.y)),e.xcoords=[],e.ycoords=[]}},{key:"endText",value:function(){var t=this.current;t.textRenderingMode&r.TextRenderingMode.ADD_TO_PATH_FLAG&&t.txtElement&&t.txtElement.hasChildNodes()&&(t.element=t.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(t){t>0&&(this.current.lineWidth=t)}},{key:"setLineCap",value:function(t){this.current.lineCap=m[t]}},{key:"setLineJoin",value:function(t){this.current.lineJoin=b[t]}},{key:"setMiterLimit",value:function(t){this.current.miterLimit=t}},{key:"setStrokeAlpha",value:function(t){this.current.strokeAlpha=t}},{key:"setStrokeRGBColor",value:function(t,e,n){this.current.strokeColor=r.Util.makeCssRgb(t,e,n)}},{key:"setFillAlpha",value:function(t){this.current.fillAlpha=t}},{key:"setFillRGBColor",value:function(t,e,n){this.current.fillColor=r.Util.makeCssRgb(t,e,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(t){this.current.strokeColor=this._makeColorN_Pattern(t)}},{key:"setFillColorN",value:function(t){this.current.fillColor=this._makeColorN_Pattern(t)}},{key:"shadingFill",value:function(t){var e=this.viewport.width,n=this.viewport.height,i=r.Util.inverseTransform(this.transformMatrix),o=r.Util.applyTransform([0,0],i),a=r.Util.applyTransform([0,n],i),s=r.Util.applyTransform([e,0],i),u=r.Util.applyTransform([e,n],i),l=Math.min(o[0],a[0],s[0],u[0]),c=Math.min(o[1],a[1],s[1],u[1]),h=Math.max(o[0],a[0],s[0],u[0]),f=Math.max(o[1],a[1],s[1],u[1]),d=this.svgFactory.createElement("svg:rect");d.setAttributeNS(null,"x",l),d.setAttributeNS(null,"y",c),d.setAttributeNS(null,"width",h-l),d.setAttributeNS(null,"height",f-c),d.setAttributeNS(null,"fill",this._makeShadingPattern(t)),this.current.fillAlpha<1&&d.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(d)}},{key:"_makeColorN_Pattern",value:function(t){return"TilingPattern"===t[0]?this._makeTilingPattern(t):this._makeShadingPattern(t)}},{key:"_makeTilingPattern",value:function(t){var e=t[1],n=t[2],i=t[3]||r.IDENTITY_MATRIX,o=s(t[4],4),u=o[0],l=o[1],c=o[2],h=o[3],f=t[5],d=t[6],p=t[7],v="shading".concat(x++),g=s(r.Util.applyTransform([u,l],i),2),y=g[0],m=g[1],b=s(r.Util.applyTransform([c,h],i),2),_=b[0],C=b[1],w=s(r.Util.singularValueDecompose2dScale(i),2),S=f*w[0],A=d*w[1],k=this.svgFactory.createElement("svg:pattern");k.setAttributeNS(null,"id",v),k.setAttributeNS(null,"patternUnits","userSpaceOnUse"),k.setAttributeNS(null,"width",S),k.setAttributeNS(null,"height",A),k.setAttributeNS(null,"x","".concat(y)),k.setAttributeNS(null,"y","".concat(m));var P=this.svg,T=this.transformMatrix,L=this.current.fillColor,E=this.current.strokeColor,R=this.svgFactory.create(_-y,C-m);if(this.svg=R,this.transformMatrix=i,2===p){var O=r.Util.makeCssRgb.apply(r.Util,a(e));this.current.fillColor=O,this.current.strokeColor=O}return this.executeOpTree(this.convertOpList(n)),this.svg=P,this.transformMatrix=T,this.current.fillColor=L,this.current.strokeColor=E,k.appendChild(R.childNodes[0]),this.defs.appendChild(k),"url(#".concat(v,")")}},{key:"_makeShadingPattern",value:function(t){switch(t[0]){case"RadialAxial":var e,n="shading".concat(x++),i=t[3];switch(t[1]){case"axial":var o=t[4],a=t[5];(e=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",n),e.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),e.setAttributeNS(null,"x1",o[0]),e.setAttributeNS(null,"y1",o[1]),e.setAttributeNS(null,"x2",a[0]),e.setAttributeNS(null,"y2",a[1]);break;case"radial":var s=t[4],l=t[5],c=t[6],h=t[7];(e=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",n),e.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),e.setAttributeNS(null,"cx",l[0]),e.setAttributeNS(null,"cy",l[1]),e.setAttributeNS(null,"r",h),e.setAttributeNS(null,"fx",s[0]),e.setAttributeNS(null,"fy",s[1]),e.setAttributeNS(null,"fr",c);break;default:throw new Error("Unknown RadialAxial type: ".concat(t[1]))}var f,d=u(i);try{for(d.s();!(f=d.n()).done;){var p=f.value,v=this.svgFactory.createElement("svg:stop");v.setAttributeNS(null,"offset",p[0]),v.setAttributeNS(null,"stop-color",p[1]),e.appendChild(v)}}catch(t){d.e(t)}finally{d.f()}return this.defs.appendChild(e),"url(#".concat(n,")");case"Mesh":return(0,r.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(t[0]))}}},{key:"setDash",value:function(t,e){this.current.dashArray=t,this.current.dashPhase=e}},{key:"constructPath",value:function(t,e){var n,i=this.current,o=i.x,a=i.y,s=[],l=0,c=u(t);try{for(c.s();!(n=c.n()).done;)switch(0|n.value){case r.OPS.rectangle:o=e[l++],a=e[l++];var h=e[l++],f=e[l++],d=o+h,p=a+f;s.push("M",v(o),v(a),"L",v(d),v(a),"L",v(d),v(p),"L",v(o),v(p),"Z");break;case r.OPS.moveTo:o=e[l++],a=e[l++],s.push("M",v(o),v(a));break;case r.OPS.lineTo:o=e[l++],a=e[l++],s.push("L",v(o),v(a));break;case r.OPS.curveTo:o=e[l+4],a=e[l+5],s.push("C",v(e[l]),v(e[l+1]),v(e[l+2]),v(e[l+3]),v(o),v(a)),l+=6;break;case r.OPS.curveTo2:s.push("C",v(o),v(a),v(e[l]),v(e[l+1]),v(e[l+2]),v(e[l+3])),o=e[l+2],a=e[l+3],l+=4;break;case r.OPS.curveTo3:o=e[l+2],a=e[l+3],s.push("C",v(e[l]),v(e[l+1]),v(o),v(a),v(o),v(a)),l+=4;break;case r.OPS.closePath:s.push("Z")}}catch(t){c.e(t)}finally{c.f()}s=s.join(" "),i.path&&t.length>0&&t[0]!==r.OPS.rectangle&&t[0]!==r.OPS.moveTo?s=i.path.getAttributeNS(null,"d")+s:(i.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(i.path)),i.path.setAttributeNS(null,"d",s),i.path.setAttributeNS(null,"fill","none"),i.element=i.path,i.setCurrentPoint(o,a)}},{key:"endPath",value:function(){var t=this.current;if(t.path=null,this.pendingClip)if(t.element){var e="clippath".concat(w++),n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",e),n.setAttributeNS(null,"transform",g(this.transformMatrix));var r=t.element.cloneNode(!0);"evenodd"===this.pendingClip?r.setAttributeNS(null,"clip-rule","evenodd"):r.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.appendChild(r),this.defs.appendChild(n),t.activeClipUrl&&(t.clipGroup=null,this.extraStack.forEach((function(t){t.clipGroup=null})),n.setAttributeNS(null,"clip-path",t.activeClipUrl)),t.activeClipUrl="url(#".concat(e,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(t){this.pendingClip=t}},{key:"closePath",value:function(){var t=this.current;if(t.path){var e="".concat(t.path.getAttributeNS(null,"d"),"Z");t.path.setAttributeNS(null,"d",e)}}},{key:"setLeading",value:function(t){this.current.leading=-t}},{key:"setTextRise",value:function(t){this.current.textRise=t}},{key:"setTextRenderingMode",value:function(t){this.current.textRenderingMode=t}},{key:"setHScale",value:function(t){this.current.textHScale=t/100}},{key:"setRenderingIntent",value:function(t){}},{key:"setFlatness",value:function(t){}},{key:"setGState",value:function(t){var e,n=u(t);try{for(n.s();!(e=n.n()).done;){var i=s(e.value,2),o=i[0],a=i[1];switch(o){case"LW":this.setLineWidth(a);break;case"LC":this.setLineCap(a);break;case"LJ":this.setLineJoin(a);break;case"ML":this.setMiterLimit(a);break;case"D":this.setDash(a[0],a[1]);break;case"RI":this.setRenderingIntent(a);break;case"FL":this.setFlatness(a);break;case"Font":this.setFont(a);break;case"CA":this.setStrokeAlpha(a);break;case"ca":this.setFillAlpha(a);break;default:(0,r.warn)("Unimplemented graphic state operator ".concat(o))}}}catch(t){n.e(t)}finally{n.f()}}},{key:"fill",value:function(){var t=this.current;t.element&&(t.element.setAttributeNS(null,"fill",t.fillColor),t.element.setAttributeNS(null,"fill-opacity",t.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var t=this.current;t.element&&(this._setStrokeAttributes(t.element),t.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.current,r=n.dashArray;1!==e&&r.length>0&&(r=r.map((function(t){return e*t}))),t.setAttributeNS(null,"stroke",n.strokeColor),t.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),t.setAttributeNS(null,"stroke-miterlimit",v(n.miterLimit)),t.setAttributeNS(null,"stroke-linecap",n.lineCap),t.setAttributeNS(null,"stroke-linejoin",n.lineJoin),t.setAttributeNS(null,"stroke-width",v(e*n.lineWidth)+"px"),t.setAttributeNS(null,"stroke-dasharray",r.map(v).join(" ")),t.setAttributeNS(null,"stroke-dashoffset",v(e*n.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var t=this.svgFactory.createElement("svg:rect");t.setAttributeNS(null,"x","0"),t.setAttributeNS(null,"y","0"),t.setAttributeNS(null,"width","1px"),t.setAttributeNS(null,"height","1px"),t.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(t)}},{key:"paintImageXObject",value:function(t){var e=this.objs.get(t);e?this.paintInlineImageXObject(e):(0,r.warn)("Dependent image with object ID ".concat(t," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(t,e){var n=t.width,r=t.height,i=_(t,this.forceDataSchema,!!e),o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",v(n)),o.setAttributeNS(null,"height",v(r)),this.current.element=o,this.clip("nonzero");var a=this.svgFactory.createElement("svg:image");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",v(-r)),a.setAttributeNS(null,"width",v(n)+"px"),a.setAttributeNS(null,"height",v(r)+"px"),a.setAttributeNS(null,"transform","scale(".concat(v(1/n)," ").concat(v(-1/r),")")),e?e.appendChild(a):this._ensureTransformGroup().appendChild(a)}},{key:"paintImageMaskXObject",value:function(t){var e=this.current,n=t.width,r=t.height,i=e.fillColor;e.maskId="mask".concat(S++);var o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",e.maskId);var a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",v(n)),a.setAttributeNS(null,"height",v(r)),a.setAttributeNS(null,"fill",i),a.setAttributeNS(null,"mask","url(#".concat(e.maskId,")")),this.defs.appendChild(o),this._ensureTransformGroup().appendChild(a),this.paintInlineImageXObject(t,o)}},{key:"paintFormXObjectBegin",value:function(t,e){if(Array.isArray(t)&&6===t.length&&this.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e){var n=e[2]-e[0],r=e[3]-e[1],i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x",e[0]),i.setAttributeNS(null,"y",e[1]),i.setAttributeNS(null,"width",v(n)),i.setAttributeNS(null,"height",v(r)),this.current.element=i,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(t){var e=this.svgFactory.create(t.width,t.height),n=this.svgFactory.createElement("svg:defs");e.appendChild(n),this.defs=n;var r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",g(t.transform)),e.appendChild(r),this.svg=r,e}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var t=this.svgFactory.createElement("svg:g");t.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(t),this.current.clipGroup=t}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",g(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),t}()},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.PDFNodeStream=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},o=n(5),a=n(213);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function p(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){d(o,r,i,a,s,"next",t)}function s(t){d(o,r,i,a,s,"throw",t)}a(void 0)}))}}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),t}var m=__webpack_require__(27),b=__webpack_require__(28),_=__webpack_require__(29),C=__webpack_require__(30),w=/^file:\/\/\/[a-zA-Z]:\//,S=function(){function t(e){var n,r;v(this,t),this.source=e,this.url=(n=e.url,"file:"===(r=C.parse(n)).protocol||r.host?r:/^[a-z]:[/\\]/i.test(n)?C.parse("file:///".concat(n)):(r.host||(r.protocol="file:"),r)),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return y(t,[{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new L(this):new P(this),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var n=this.isFsUrl?new E(this,t,e):new T(this,t,e);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach((function(e){e.cancel(t)}))}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFNodeStream=S;var x=function(){function t(e){v(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;var n=e.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=(0,o.createPromiseCapability)(),this._headersCapability=(0,o.createPromiseCapability)()}var e;return y(t,[{key:"read",value:(e=p(i.default.mark((function t(){var e,n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(e=this._readableStream.read())){t.next=10;break}return this._readCapability=(0,o.createPromiseCapability)(),t.abrupt("return",this.read());case 10:return this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),n=new Uint8Array(e).buffer,t.abrupt("return",{value:n,done:!1});case 14:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",(function(){e._readCapability.resolve()})),t.on("end",(function(){t.destroy(),e._done=!0,e._readCapability.resolve()})),t.on("error",(function(t){e._error(t)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new o.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}(),A=function(){function t(e){v(this,t),this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,o.createPromiseCapability)();var n=e.source;this._isStreamingSupported=!n.disableStream}var e;return y(t,[{key:"read",value:(e=p(i.default.mark((function t(){var e,n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:if(!this._done){t.next=4;break}return t.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){t.next=6;break}throw this._storedError;case 6:if(null!==(e=this._readableStream.read())){t.next=10;break}return this._readCapability=(0,o.createPromiseCapability)(),t.abrupt("return",this.read());case 10:return this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),n=new Uint8Array(e).buffer,t.abrupt("return",{value:n,done:!1});case 14:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}},{key:"_error",value:function(t){this._storedError=t,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(t){var e=this;this._readableStream=t,t.on("readable",(function(){e._readCapability.resolve()})),t.on("end",(function(){t.destroy(),e._done=!0,e._readCapability.resolve()})),t.on("error",(function(t){e._error(t)})),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}();function k(t,e){return{protocol:t.protocol,auth:t.auth,host:t.hostname,port:t.port,path:t.path,method:"GET",headers:e}}var P=function(t){u(n,t);var e=c(n);function n(t){var r;v(this,n);var i=function(e){if(404===e.statusCode){var n=new o.MissingPDFException('Missing PDF "'.concat(r._url,'".'));return r._storedError=n,void r._headersCapability.reject(n)}r._headersCapability.resolve(),r._setReadableStream(e);var i=function(t){return r._readableStream.headers[t.toLowerCase()]},s=(0,a.validateRangeRequestCapabilities)({getResponseHeader:i,isHttp:t.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),u=s.allowRangeRequests,l=s.suggestedLength;r._isRangeSupported=u,r._contentLength=l||r._contentLength,r._filename=(0,a.extractFilenameFromHeader)(i)};return(r=e.call(this,t))._request=null,"http:"===r._url.protocol?r._request=b.request(k(r._url,t.httpHeaders),i):r._request=_.request(k(r._url,t.httpHeaders),i),r._request.on("error",(function(t){r._storedError=t,r._headersCapability.reject(t)})),r._request.end(),r}return n}(x),T=function(t){u(n,t);var e=c(n);function n(t,r,i){var a;for(var s in v(this,n),(a=e.call(this,t))._httpHeaders={},t.httpHeaders){var u=t.httpHeaders[s];void 0!==u&&(a._httpHeaders[s]=u)}a._httpHeaders.Range="bytes=".concat(r,"-").concat(i-1);var l=function(t){if(404!==t.statusCode)a._setReadableStream(t);else{var e=new o.MissingPDFException('Missing PDF "'.concat(a._url,'".'));a._storedError=e}};return a._request=null,"http:"===a._url.protocol?a._request=b.request(k(a._url,a._httpHeaders),l):a._request=_.request(k(a._url,a._httpHeaders),l),a._request.on("error",(function(t){a._storedError=t})),a._request.end(),a}return n}(A),L=function(t){u(n,t);var e=c(n);function n(t){var r;v(this,n),r=e.call(this,t);var i=decodeURIComponent(r._url.path);return w.test(r._url.href)&&(i=i.replace(/^\//,"")),m.lstat(i,(function(t,e){if(t)return"ENOENT"===t.code&&(t=new o.MissingPDFException('Missing PDF "'.concat(i,'".'))),r._storedError=t,void r._headersCapability.reject(t);r._contentLength=e.size,r._setReadableStream(m.createReadStream(i)),r._headersCapability.resolve()})),r}return n}(x),E=function(t){u(n,t);var e=c(n);function n(t,r,i){var o;v(this,n),o=e.call(this,t);var a=decodeURIComponent(o._url.path);return w.test(o._url.href)&&(a=a.replace(/^\//,"")),o._setReadableStream(m.createReadStream(a,{start:r,end:i-1})),o}return n}(A)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.createResponseStatusError=function(t,e){return 404===t||0===t&&e.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+e+'".'):new r.UnexpectedResponseException("Unexpected server response ("+t+') while retrieving PDF "'+e+'".',t)},e.extractFilenameFromHeader=function(t){var e=t("Content-Disposition");if(e){var n=(0,i.getFilenameFromContentDispositionHeader)(e);if(n.includes("%"))try{n=decodeURIComponent(n)}catch(t){}if(/\.pdf$/i.test(n))return n}return null},e.validateRangeRequestCapabilities=function(t){var e=t.getResponseHeader,n=t.isHttp,i=t.rangeChunkSize,o=t.disableRange;(0,r.assert)(i>0,"Range chunk size must be larger than zero");var a={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(e("Content-Length"),10);return Number.isInteger(s)?(a.suggestedLength=s,s<=2*i||o||!n||"bytes"!==e("Accept-Ranges")||"identity"!==(e("Content-Encoding")||"identity")||(a.allowRangeRequests=!0),a):a},e.validateResponseStatus=function(t){return 200===t||206===t};var r=n(5),i=n(214)},function(t,e,n){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Object.defineProperty(e,"__esModule",{value:!0}),e.getFilenameFromContentDispositionHeader=function(t){var e=!0,n=a("filename\\*","i").exec(t);if(n){var i=l(n=n[1]);return u(i=h(i=c(i=unescape(i))))}if(n=function(t){for(var e,n=[],i=a("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(e=i.exec(t));){var o=r(e,4),s=o[1],u=o[2],h=o[3];if((s=parseInt(s,10))in n){if(0===s)break}else n[s]=[u,h]}for(var f=[],d=0;d<n.length&&d in n;++d){var p=r(n[d],2),v=p[0],g=p[1];g=l(g),v&&(g=unescape(g),0===d&&(g=c(g))),f.push(g)}return f.join("")}(t))return u(h(n));if(n=a("filename","i").exec(t)){var o=l(n=n[1]);return u(o=h(o))}function a(t,e){return new RegExp("(?:^|;)\\s*"+t+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',e)}function s(t,n){if(t){if(!/^[\x00-\xFF]+$/.test(n))return n;try{var r=new TextDecoder(t,{fatal:!0}),i=Array.from(n,(function(t){return 255&t.charCodeAt(0)}));n=r.decode(new Uint8Array(i)),e=!1}catch(r){if(/^utf-?8$/i.test(t))try{n=decodeURIComponent(escape(n)),e=!1}catch(t){}}}return n}function u(t){return e&&/[\x80-\xff]/.test(t)&&(t=s("utf-8",t),e&&(t=s("iso-8859-1",t))),t}function l(t){if(t.startsWith('"')){for(var e=t.slice(1).split('\\"'),n=0;n<e.length;++n){var r=e[n].indexOf('"');-1!==r&&(e[n]=e[n].slice(0,r),e.length=n+1),e[n]=e[n].replace(/\\(.)/g,"$1")}t=e.join('"')}return t}function c(t){var e=t.indexOf("'");return-1===e?t:s(t.slice(0,e),t.slice(e+1).replace(/^[^']*'/,""))}function h(t){return!t.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(t)?t:t.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(t,e,n,r){if("q"===n||"Q"===n)return s(e,r=(r=r.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,(function(t,e){return String.fromCharCode(parseInt(e,16))})));try{r=atob(r)}catch(t){}return s(e,r)}))}return""}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.PDFNetworkStream=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},o=n(5),a=n(213);function s(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){s(o,r,i,a,u,"next",t)}function u(t){s(o,r,i,a,u,"throw",t)}a(void 0)}))}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}var f=function(){function t(e,n){l(this,t),this.url=e,n=n||{},this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&n.httpHeaders||{},this.withCredentials=n.withCredentials||!1,this.getXhr=n.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return h(t,[{key:"requestRange",value:function(t,e,n){var r={begin:t,end:e};for(var i in n)r[i]=n[i];return this.request(r)}},{key:"requestFull",value:function(t){return this.request(t)}},{key:"request",value:function(t){var e=this.getXhr(),n=this.currXhrId++,r=this.pendingRequests[n]={xhr:e};for(var i in e.open("GET",this.url),e.withCredentials=this.withCredentials,this.httpHeaders){var o=this.httpHeaders[i];void 0!==o&&e.setRequestHeader(i,o)}return this.isHttp&&"begin"in t&&"end"in t?(e.setRequestHeader("Range","bytes=".concat(t.begin,"-").concat(t.end-1)),r.expectedStatus=206):r.expectedStatus=200,e.responseType="arraybuffer",t.onError&&(e.onerror=function(n){t.onError(e.status)}),e.onreadystatechange=this.onStateChange.bind(this,n),e.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=t.onHeadersReceived,r.onDone=t.onDone,r.onError=t.onError,r.onProgress=t.onProgress,e.send(null),n}},{key:"onProgress",value:function(t,e){var n=this.pendingRequests[t];n&&n.onProgress&&n.onProgress(e)}},{key:"onStateChange",value:function(t,e){var n=this.pendingRequests[t];if(n){var r=n.xhr;if(r.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4===r.readyState&&t in this.pendingRequests)if(delete this.pendingRequests[t],0===r.status&&this.isHttp)n.onError&&n.onError(r.status);else{var i=r.status||200;if(200===i&&206===n.expectedStatus||i===n.expectedStatus){var a=function(t){var e=t.response;return"string"!=typeof e?e:(0,o.stringToBytes)(e).buffer}(r);if(206===i){var s=r.getResponseHeader("Content-Range"),u=/bytes (\d+)-(\d+)\/(\d+)/.exec(s);n.onDone({begin:parseInt(u[1],10),chunk:a})}else a?n.onDone({begin:0,chunk:a}):n.onError&&n.onError(r.status)}else n.onError&&n.onError(r.status)}}}},{key:"hasPendingRequests",value:function(){for(var t in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(t){return this.pendingRequests[t].xhr}},{key:"isPendingRequest",value:function(t){return t in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var t in this.pendingRequests)this.abortRequest(0|t)}},{key:"abortRequest",value:function(t){var e=this.pendingRequests[t].xhr;delete this.pendingRequests[t],e.abort()}}]),t}(),d=function(){function t(e){l(this,t),this._source=e,this._manager=new f(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return h(t,[{key:"_onRangeRequestReaderClosed",value:function(t){var e=this._rangeRequestReaders.indexOf(t);e>=0&&this._rangeRequestReaders.splice(e,1)}},{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new p(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){var n=new v(this._manager,t,e);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach((function(e){e.cancel(t)}))}}]),t}();e.PDFNetworkStream=d;var p=function(){function t(e,n){l(this,t),this._manager=e;var r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=n.url,this._fullRequestId=e.requestFull(r),this._headersReceivedCapability=(0,o.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}var e;return h(t,[{key:"_onHeadersReceived",value:function(){var t=this._fullRequestId,e=this._manager.getRequestXhr(t),n=function(t){return e.getResponseHeader(t)},r=(0,a.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=r.allowRangeRequests,o=r.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,a.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(t),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(t){t&&(this._requests.length>0?this._requests.shift().resolve({value:t.chunk,done:!1}):this._cachedChunks.push(t.chunk)),this._done=!0,this._cachedChunks.length>0||(this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[])}},{key:"_onError",value:function(t){var e=this._url,n=(0,a.createResponseStatusError)(t,e);this._storedError=n,this._headersReceivedCapability.reject(n),this._requests.forEach((function(t){t.reject(n)})),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(t){this.onProgress&&this.onProgress({loaded:t.loaded,total:t.lengthComputable?t.total:this._contentLength})}},{key:"read",value:(e=u(i.default.mark((function t(){var e,n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._storedError){t.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){t.next=5;break}return e=this._cachedChunks.shift(),t.abrupt("return",{value:e,done:!1});case 5:if(!this._done){t.next=7;break}return t.abrupt("return",{value:void 0,done:!0});case 7:return n=(0,o.createPromiseCapability)(),this._requests.push(n),t.abrupt("return",n.promise);case 10:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0,this._headersReceivedCapability.reject(t),this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),t}(),v=function(){function t(e,n,r){l(this,t),this._manager=e;var i={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=e.requestRange(n,r,i),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}var e;return h(t,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(t){var e=t.chunk;this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunk=e,this._done=!0,this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[],this._close()}},{key:"_onProgress",value:function(t){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:t.loaded})}},{key:"read",value:(e=u(i.default.mark((function t(){var e,n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===this._queuedChunk){t.next=4;break}return e=this._queuedChunk,this._queuedChunk=null,t.abrupt("return",{value:e,done:!1});case 4:if(!this._done){t.next=6;break}return t.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,o.createPromiseCapability)(),this._requests.push(n),t.abrupt("return",n.promise);case 9:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._done=!0,this._requests.forEach((function(t){t.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]),t}()},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.PDFFetchStream=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},o=n(5),a=n(213);function s(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){s(o,r,i,a,u,"next",t)}function u(t){s(o,r,i,a,u,"throw",t)}a(void 0)}))}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e,n){return{method:"GET",headers:t,signal:n&&n.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function d(t){var e=new Headers;for(var n in t){var r=t[n];void 0!==r&&e.append(n,r)}return e}var p=function(){function t(e){l(this,t),this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return h(t,[{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new v(this),this._fullRequestReader}},{key:"getRangeReader",value:function(t,e){if(e<=this._progressiveDataLength)return null;var n=new g(this,t,e);return this._rangeRequestReaders.push(n),n}},{key:"cancelAllRequests",value:function(t){this._fullRequestReader&&this._fullRequestReader.cancel(t),this._rangeRequestReaders.slice(0).forEach((function(e){e.cancel(t)}))}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),t}();e.PDFFetchStream=p;var v=function(){function t(e){var n=this;l(this,t),this._stream=e,this._reader=null,this._loaded=0,this._filename=null;var r=e.source;this._withCredentials=r.withCredentials||!1,this._contentLength=r.length,this._headersCapability=(0,o.createPromiseCapability)(),this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._headers=d(this._stream.httpHeaders);var i=r.url;fetch(i,f(this._headers,this._withCredentials,this._abortController)).then((function(t){if(!(0,a.validateResponseStatus)(t.status))throw(0,a.createResponseStatusError)(t.status,i);n._reader=t.body.getReader(),n._headersCapability.resolve();var e=function(e){return t.headers.get(e)},r=(0,a.validateRangeRequestCapabilities)({getResponseHeader:e,isHttp:n._stream.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),s=r.allowRangeRequests,u=r.suggestedLength;n._isRangeSupported=s,n._contentLength=u||n._contentLength,n._filename=(0,a.extractFilenameFromHeader)(e),!n._isStreamingSupported&&n._isRangeSupported&&n.cancel(new o.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}var e;return h(t,[{key:"read",value:(e=u(i.default.mark((function t(){var e,n,r,o;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._headersCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(e=t.sent,n=e.value,!(r=e.done)){t.next=9;break}return t.abrupt("return",{value:n,done:r});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),o=new Uint8Array(n).buffer,t.abrupt("return",{value:o,done:!1});case 13:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._reader&&this._reader.cancel(t),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}(),g=function(){function t(e,n,r){var i=this;l(this,t),this._stream=e,this._reader=null,this._loaded=0;var s=e.source;this._withCredentials=s.withCredentials||!1,this._readCapability=(0,o.createPromiseCapability)(),this._isStreamingSupported=!s.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=d(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(n,"-").concat(r-1));var u=s.url;fetch(u,f(this._headers,this._withCredentials,this._abortController)).then((function(t){if(!(0,a.validateResponseStatus)(t.status))throw(0,a.createResponseStatusError)(t.status,u);i._readCapability.resolve(),i._reader=t.body.getReader()})),this.onProgress=null}var e;return h(t,[{key:"read",value:(e=u(i.default.mark((function t(){var e,n,r,o;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._readCapability.promise;case 2:return t.next=4,this._reader.read();case 4:if(e=t.sent,n=e.value,!(r=e.done)){t.next=9;break}return t.abrupt("return",{value:n,done:r});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),o=new Uint8Array(n).buffer,t.abrupt("return",{value:o,done:!1});case 13:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(t){this._reader&&this._reader.cancel(t),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),t}()}])},root.pdfjsLib=factory(),"object"==typeof exports&&"object"==typeof module?module.exports=factory():"function"==typeof define&&__webpack_require__(17)?define("pdfjs-dist/build/pdf",[],factory):"object"==typeof exports?exports["pdfjs-dist/build/pdf"]=factory():root["pdfjs-dist/build/pdf"]=root.pdfjsLib=factory()}.call(this,__webpack_require__(10),__webpack_require__(22).Buffer,__webpack_require__(14),__webpack_require__(16)(module))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);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}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,n){var r=n(19),i=n(32);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);t.exports=i.locals||{}},function(t,e,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function u(t,e){for(var n={},r=[],i=0;i<t.length;i++){var o=t[i],u=e.base?o[0]+e.base:o[0],l=n[u]||0,c="".concat(u," ").concat(l);n[u]=l+1;var h=s(c),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==h?(a[h].references++,a[h].updater(f)):a.push({identifier:c,updater:g(f,e),references:1}),r.push(c)}return r}function l(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var c,h=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")});function f(t,e,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=h(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function d(t,e,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var p=null,v=0;function g(t,e){var n,r,i;if(e.singleton){var o=v++;n=p||(p=l(e)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=l(e),r=d.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=u(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=u(t,e),l=0;l<n.length;l++){var c=s(n[l]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}n=o}}}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),o=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,u;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);r&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},function(t,e,n){var r=n(19),i=n(37);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);t.exports=i.locals||{}},function(t,e,n){"use strict";(function(t){
|
|
2
2
|
/*!
|
|
3
3
|
* The buffer module from node.js, for the browser.
|
|
4
4
|
*
|
|
5
5
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
6
6
|
* @license MIT
|
|
7
7
|
*/
|
|
8
|
-
var r=n(19),i=n(20),o=n(21);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=f(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=s(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|d(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?s(t,0):f(t,e);if("Buffer"===e.type&&o(e.data))return f(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(c(e),t=s(t,e<0?0:0|d(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e){var n=e.length<0?0:0|d(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(t).length;default:if(r)return z(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,n);case"utf8":case"utf-8":return C(this,e,n);case"ascii":return P(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return k(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function m(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(t,o)===l(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var h=!0,f=0;f<u;f++)if(l(t,o+f)!==l(e,f)){h=!1;break}if(h)return o}return-1}function b(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function _(t,e,n,r){return W(z(e,t.length-n),t,n,r)}function w(t,e,n,r){return W(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function S(t,e,n,r){return w(t,e,n,r)}function A(t,e,n,r){return W(U(e),t,n,r)}function x(t,e,n,r){return W(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function k(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function C(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,u,l=t[i],c=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return l(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return c(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):v.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),h=0;h<s;++h)if(l[h]!==c[h]){o=l[h],a=c[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return m(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return m(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return S(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function R(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=B(t[o]);return i}function E(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function I(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function M(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function D(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,r,o){return o||D(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function j(t,e,n,r,o){return o||D(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||L(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||L(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):M(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):M(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return j(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return j(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},u.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=u.isBuffer(t)?t:z(new u(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function B(t){return t<16?"0"+t.toString(16):t.toString(16)}function z(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function W(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(8))},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=l(t),a=r[0],s=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),c=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[c++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(c(t,a,a+16383>s?s:a+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var i,o,a=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){
|
|
8
|
+
var r=n(23),i=n(24),o=n(25);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=f(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=s(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|d(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?s(t,0):f(t,e);if("Buffer"===e.type&&o(e.data))return f(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(c(e),t=s(t,e<0?0:0|d(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e){var n=e.length<0?0:0|d(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(t).length;default:if(r)return z(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return k(this,e,n);case"ascii":return P(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(t,o)===l(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var h=!0,f=0;f<u;f++)if(l(t,o+f)!==l(e,f)){h=!1;break}if(h)return o}return-1}function b(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function _(t,e,n,r){return U(z(e,t.length-n),t,n,r)}function C(t,e,n,r){return U(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function w(t,e,n,r){return C(t,e,n,r)}function S(t,e,n,r){return U(H(e),t,n,r)}function x(t,e,n,r){return U(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function k(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,u,l=t[i],c=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return l(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return c(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):v.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),h=0;h<s;++h)if(l[h]!==c[h]){o=l[h],a=c[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function L(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=B(t[o]);return i}function E(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function R(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function O(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function F(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function I(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function M(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,r,o){return o||M(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function j(t,e,n,r,o){return o||M(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||O(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||O(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):F(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):F(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):I(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);O(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);O(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):F(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):F(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):I(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return j(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return j(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},u.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=u.isBuffer(t)?t:z(new u(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function B(t){return t<16?"0"+t.toString(16):t.toString(16)}function z(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(N,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(10))},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=l(t),a=r[0],s=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),c=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[c++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(c(t,a,a+16383>s?s:a+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var i,o,a=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){
|
|
9
9
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
10
|
-
e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[n+d]=255&a,d+=p,a/=256,l-=8);t[n+d-p]|=128*v}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";n(14)},function(t,e,n){(e=n(16)(!1)).push([t.i,"\n@-webkit-keyframes resizeSensorVisibility {\nfrom { top: 0;\n}\n}\n@keyframes resizeSensorVisibility {\nfrom { top: 0;\n}\n}\r\n",""]),t.exports=e},function(t,e,n){"use strict";n.r(e),n(30);const r=window.PDFLinkService;var i=Promise.resolve();e.default=function(t){function e(e,n){var r;if("string"==typeof e)r={url:e};else if(e instanceof Uint8Array)r={data:e};else{if("object"!=typeof e||null===e)throw new TypeError("invalid src type");r=Object.assign({},e)}n&&n.withCredentials&&(r.withCredentials=n.withCredentials);var i=t.getDocument(r);return i.__PDFDocumentLoadingTask=!0,n&&n.onPassword&&(i.onPassword=n.onPassword),n&&n.onProgress&&(i.onProgress=n.onProgress),i}return{createLoadingTask:e,PDFJSWrapper:function(n,o,a){var s=null,u=null,l=null,c=!1;function h(){n.getContext("2d").clearRect(0,0,n.width,n.height)}function f(){for(;o.firstChild;)o.removeChild(o.firstChild)}n.getContext("2d").save(),this.destroy=function(){null!==s&&(i=s.destroy(),s=null)},this.getResolutionScale=function(){return n.offsetWidth/n.width},this.printPage=function(t,e){if(null!==u){var n=(void 0===t?150:t)/72,r=document.createElement("iframe");new Promise((function(t,e){r.frameBorder="0",r.scrolling="no",r.width="0px;",r.height="0px;",r.style.cssText="position: absolute; top: 0; left: 0",r.onload=function(){t(this.contentWindow)},window.document.body.appendChild(r)})).then((function(t){return t.document.title="",s.getPage(1).then((function(e){var r=e.getViewport({scale:1});return t.document.head.appendChild(t.document.createElement("style")).textContent="@supports ((size:A4) and (size:1pt 1pt)) {@page { margin: 1pt; size: "+r.width*n/(96/72)+"pt "+r.height*n/(96/72)+"pt; }}@media print {body { margin: 0 }canvas { page-break-before: avoid; page-break-after: always; page-break-inside: avoid }}@media screen {body { margin: 0 }}",t}))})).then((function(t){for(var r=[],o=1;o<=s.numPages;++o)void 0!==e&&-1===e.indexOf(o)||r.push(s.getPage(o).then((function(e){var r=e.getViewport({scale:1}),i=t.document.body.appendChild(t.document.createElement("canvas"));return i.width=r.width*n,i.height=r.height*n,e.render({canvasContext:i.getContext("2d"),transform:[n,0,0,n,0,0],viewport:r,intent:"print"}).promise})));Promise.all(r).then((function(){t.focus(),t.document.queryCommandSupported("print")?t.document.execCommand("print",!1,null):t.print(),i()})).catch((function(t){i(),a("error",t)}))}))}function i(){r.parentNode.removeChild(r)}},this.renderPage=function(e){if(null!==l){if(c)return;return c=!0,void l.cancel()}if(null!==u){var h=(void 0===u.rotate?0:u.rotate)+(void 0===e?0:e),d=n.offsetWidth/u.getViewport({scale:1}).width*(window.devicePixelRatio||1),p=u.getViewport({scale:d,rotation:h});a("page-size",p.width,p.height,d),n.width=p.width,n.height=p.height,l=u.render({canvasContext:n.getContext("2d"),viewport:p}),o.style.visibility="hidden",f();var v={scrollPageIntoView:function(t){a("link-clicked",t.pageNumber)}},g=new r;g.setDocument(s),g.setViewer(v),i=i.then(function(){var n=u.getAnnotations({intent:"display"}).then((function(e){t.AnnotationLayer.render({viewport:p.clone({dontFlip:!0}),div:o,annotations:e,page:u,linkService:g,renderInteractiveForms:!1})})),r=l.promise.then((function(){o.style.visibility="",c=!1,l=null})).catch(function(n){if(l=null,n instanceof t.RenderingCancelledException)return c=!1,void this.renderPage(e);a("error",n)}.bind(this));return Promise.all([n,r])}.bind(this))}},this.forEachPage=function(t){var e=s.numPages;!function n(r){s.getPage(r).then(t).then((function(){++r<=e&&n(r)}))}(1)},this.loadPage=function(t,e){u=null,null!==s&&(i=i.then((function(){return s.getPage(t)})).then(function(t){u=t,this.renderPage(e),a("page-loaded",t.pageNumber)}.bind(this)).catch((function(t){h(),f(),a("error",t)})))},this.loadDocument=function(r){if(s=null,u=null,a("num-pages",void 0),!r)return n.removeAttribute("width"),n.removeAttribute("height"),void f();i=i.then((function(){var n,i;if("object"==typeof(i=r)&&null!==i&&!0===i.__PDFDocumentLoadingTask){if(r.destroyed)return void a("error",new Error("loadingTask has been destroyed"));n=r}else n=e(r,{onPassword:function(e,n){var r;switch(n){case t.PasswordResponses.NEED_PASSWORD:r="NEED_PASSWORD";break;case t.PasswordResponses.INCORRECT_PASSWORD:r="INCORRECT_PASSWORD"}a("password",e,r)},onProgress:function(t){var e=t.loaded/t.total;a("progress",Math.min(e,1))}});return n.promise})).then((function(t){s=t,a("num-pages",t.numPages),a("loaded")})).catch((function(t){h(),f(),a("error",t)}))},o.style.transformOrigin="0 0"}}}},function(t,e,n){(function(e){var r;"undefined"==typeof window||window,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return r.AnnotationLayerBuilder}}),Object.defineProperty(e,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return r.DefaultAnnotationLayerFactory}}),Object.defineProperty(e,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return i.DefaultTextLayerFactory}}),Object.defineProperty(e,"TextLayerBuilder",{enumerable:!0,get:function(){return i.TextLayerBuilder}}),Object.defineProperty(e,"EventBus",{enumerable:!0,get:function(){return o.EventBus}}),Object.defineProperty(e,"NullL10n",{enumerable:!0,get:function(){return o.NullL10n}}),Object.defineProperty(e,"ProgressBar",{enumerable:!0,get:function(){return o.ProgressBar}}),Object.defineProperty(e,"PDFLinkService",{enumerable:!0,get:function(){return a.PDFLinkService}}),Object.defineProperty(e,"SimpleLinkService",{enumerable:!0,get:function(){return a.SimpleLinkService}}),Object.defineProperty(e,"DownloadManager",{enumerable:!0,get:function(){return s.DownloadManager}}),Object.defineProperty(e,"GenericL10n",{enumerable:!0,get:function(){return u.GenericL10n}}),Object.defineProperty(e,"PDFFindController",{enumerable:!0,get:function(){return l.PDFFindController}}),Object.defineProperty(e,"PDFHistory",{enumerable:!0,get:function(){return c.PDFHistory}}),Object.defineProperty(e,"PDFPageView",{enumerable:!0,get:function(){return h.PDFPageView}}),Object.defineProperty(e,"PDFSinglePageViewer",{enumerable:!0,get:function(){return f.PDFSinglePageViewer}}),Object.defineProperty(e,"PDFViewer",{enumerable:!0,get:function(){return d.PDFViewer}});var r=n(1),i=n(8),o=n(3),a=n(7),s=n(9),u=n(11),l=n(13),c=n(15),h=n(16),f=n(18),d=n(20)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultAnnotationLayerFactory=e.AnnotationLayerBuilder=void 0;var r=n(2),i=n(3),o=n(7);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}var l=function(){function t(e){var n=e.pageDiv,r=e.pdfPage,o=e.linkService,s=e.downloadManager,u=e.imageResourcesPath,l=void 0===u?"":u,c=e.renderInteractiveForms,h=void 0!==c&&c,f=e.l10n,d=void 0===f?i.NullL10n:f;a(this,t),this.pageDiv=n,this.pdfPage=r,this.linkService=o,this.downloadManager=s,this.imageResourcesPath=l,this.renderInteractiveForms=h,this.l10n=d,this.div=null,this._cancelled=!1}return u(t,[{key:"render",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"display";this.pdfPage.getAnnotations({intent:n}).then((function(n){if(!e._cancelled){var i={viewport:t.clone({dontFlip:!0}),div:e.div,annotations:n,page:e.pdfPage,imageResourcesPath:e.imageResourcesPath,renderInteractiveForms:e.renderInteractiveForms,linkService:e.linkService,downloadManager:e.downloadManager};if(e.div)r.AnnotationLayer.update(i);else{if(0===n.length)return;e.div=document.createElement("div"),e.div.className="annotationLayer",e.pageDiv.appendChild(e.div),i.div=e.div,r.AnnotationLayer.render(i),e.l10n.translate(e.div)}}}))}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){this.div&&this.div.setAttribute("hidden","true")}}]),t}();e.AnnotationLayerBuilder=l;var c=function(){function t(){a(this,t)}return u(t,[{key:"createAnnotationLayerBuilder",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.NullL10n;return new l({pageDiv:t,pdfPage:e,imageResourcesPath:n,renderInteractiveForms:r,linkService:new o.SimpleLinkService,l10n:a})}}]),t}();e.DefaultAnnotationLayerFactory=c},function(t,e,r){"use strict";var i;i="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:n(13),t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isValidRotation=function(t){return Number.isInteger(t)&&t%90==0},e.isValidScrollMode=function(t){return Number.isInteger(t)&&Object.values(f).includes(t)&&t!==f.UNKNOWN},e.isValidSpreadMode=function(t){return Number.isInteger(t)&&Object.values(d).includes(t)&&t!==d.UNKNOWN},e.isPortraitOrientation=function(t){return t.width<=t.height},e.clamp=S,e.getPDFFileNameFromURL=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!=typeof t)return e;if(y(t))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),e;var n=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,r=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=n.exec(t),o=r.exec(i[1])||r.exec(i[2])||r.exec(i[3]);if(o&&(o=o[0]).includes("%"))try{o=r.exec(decodeURIComponent(o))[0]}catch(t){}return o||e},e.noContextMenuHandler=function(t){t.preventDefault()},e.parseQueryString=function(t){for(var e=t.split("&"),n=Object.create(null),r=0,i=e.length;r<i;++r){var o=e[r].split("="),a=o[0].toLowerCase(),s=o.length>1?o[1]:null;n[decodeURIComponent(a)]=decodeURIComponent(s)}return n},e.backtrackBeforeAllVisibleElements=m,e.getVisibleElements=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t.scrollTop,o=i+t.clientHeight,a=t.scrollLeft,s=a+t.clientWidth;function u(t){var e=t.div;return e.offsetTop+e.clientTop+e.clientHeight>i}function l(t){var e=t.div;return e.offsetLeft+e.clientLeft+e.clientWidth>a}var c=[],h=e.length,f=0===h?0:g(e,r?l:u);f>0&&f<h&&!r&&(f=m(f,e,i));for(var d=r?s:-1,p=f;p<h;p++){var v=e[p],y=v.div,b=y.offsetLeft+y.clientLeft,_=y.offsetTop+y.clientTop,w=y.clientWidth,S=y.clientHeight,A=b+w,x=_+S;if(-1===d)x>=o&&(d=x);else if((r?b:_)>d)break;if(!(x<=i||_>=o||A<=a||b>=s)){var k=Math.max(0,i-_)+Math.max(0,x-o),C=Math.max(0,a-b)+Math.max(0,A-s),P=(S-k)*(w-C)*100/S/w|0;c.push({id:v.id,x:b,y:_,view:v,percent:P})}}var T=c[0],R=c[c.length-1];return n&&c.sort((function(t,e){var n=t.percent-e.percent;return Math.abs(n)>.001?-n:t.id-e.id})),{first:T,last:R,views:c}},e.roundToDivide=function(t,e){var n=t%e;return 0===n?t:Math.round(t-n+e)},e.getPageSizeInches=function(t){var e,n,r=t.view,i=t.userUnit,o=t.rotate,a=(n=4,function(t){if(Array.isArray(t))return t}(e=r)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,n)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],u=a[1],c=a[2],h=a[3],f=o%180!=0,d=(c-s)/72*i,p=(h-u)/72*i;return{width:f?p:d,height:f?d:p}},e.approximateFraction=function(t){if(Math.floor(t)===t)return[t,1];var e=1/t;if(e>8)return[1,8];if(Math.floor(e)===e)return[1,e];for(var n=t>1?e:t,r=0,i=1,o=1,a=1;;){var s=r+o,u=i+a;if(u>8)break;n<=s/u?(o=s,a=u):(r=s,i=u)}return n-r/i<o/a-n?n===t?[r,i]:[i,r]:n===t?[o,a]:[a,o]},e.getOutputScale=function(t){var e=window.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1,r=e/n;return{sx:r,sy:r,scaled:1!==r}},e.scrollIntoView=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.offsetParent;if(r){for(var i=t.offsetTop+t.clientTop,o=t.offsetLeft+t.clientLeft;r.clientHeight===r.scrollHeight&&r.clientWidth===r.scrollWidth||n&&"hidden"===getComputedStyle(r).overflow;)if(r.dataset._scaleY&&(i/=r.dataset._scaleY,o/=r.dataset._scaleX),i+=r.offsetTop,o+=r.offsetLeft,!(r=r.offsetParent))return;e&&(void 0!==e.top&&(i+=e.top),void 0!==e.left&&(o+=e.left,r.scrollLeft=o)),r.scrollTop=i}else console.error("offsetParent is not set -- cannot scroll")},e.watchScroll=function(t,e){var n=function(n){i||(i=window.requestAnimationFrame((function(){i=null;var n=t.scrollLeft,o=r.lastX;n!==o&&(r.right=n>o),r.lastX=n;var a=t.scrollTop,s=r.lastY;a!==s&&(r.down=a>s),r.lastY=a,e(r)})))},r={right:!0,down:!0,lastX:t.scrollLeft,lastY:t.scrollTop,_eventHandler:n},i=null;return t.addEventListener("scroll",n,!0),r},e.binarySearchFirstItem=g,e.normalizeWheelEventDelta=function(t){var e=Math.sqrt(t.deltaX*t.deltaX+t.deltaY*t.deltaY),n=Math.atan2(t.deltaY,t.deltaX);return-.25*Math.PI<n&&n<.75*Math.PI&&(e=-e),0===t.deltaMode?e/=900:1===t.deltaMode&&(e/=30),e},e.waitOnEventOrTimeout=function(t){var e=t.target,n=t.name,r=t.delay,i=void 0===r?0:r;return new Promise((function(t,r){if("object"!==u(e)||!n||"string"!=typeof n||!(Number.isInteger(i)&&i>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function o(r){e instanceof w?e._off(n,a):e.removeEventListener(n,a),l&&clearTimeout(l),t(r)}var a=o.bind(null,b.EVENT);e instanceof w?e._on(n,a):e.addEventListener(n,a);var s=o.bind(null,b.TIMEOUT),l=setTimeout(s,i)}))},e.moveToEndOfArray=function(t,e){for(var n=[],r=t.length,i=0,o=0;o<r;++o)e(t[o])?n.push(t[o]):(t[i]=t[o],++i);for(var a=0;i<r;++a,++i)t[i]=n[a]},e.WaitOnType=e.animationStarted=e.ProgressBar=e.EventBus=e.NullL10n=e.SpreadMode=e.ScrollMode=e.TextLayerMode=e.RendererType=e.PresentationModeState=e.VERTICAL_PADDING=e.SCROLLBAR_PADDING=e.MAX_AUTO_SCALE=e.UNKNOWN_SCALE=e.MAX_SCALE=e.MIN_SCALE=e.DEFAULT_SCALE=e.DEFAULT_SCALE_VALUE=e.CSS_UNITS=e.AutoPrintRegExp=void 0;var r,i=(r=n(4))&&r.__esModule?r:{default:r};function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function h(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){c(o,r,i,a,s,"next",t)}function s(t){c(o,r,i,a,s,"throw",t)}a(void 0)}))}}e.CSS_UNITS=96/72,e.DEFAULT_SCALE_VALUE="auto",e.DEFAULT_SCALE=1,e.MIN_SCALE=.1,e.MAX_SCALE=10,e.UNKNOWN_SCALE=0,e.MAX_AUTO_SCALE=1.25,e.SCROLLBAR_PADDING=40,e.VERTICAL_PADDING=5,e.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3},e.RendererType={CANVAS:"canvas",SVG:"svg"},e.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};var f={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};e.ScrollMode=f;var d={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function p(t,e){return e?t.replace(/\{\{\s*(\w+)\s*\}\}/g,(function(t,n){return n in e?e[n]:"{{"+n+"}}"})):t}e.SpreadMode=d,e.AutoPrintRegExp=/\bprint\s*\(/;var v={getLanguage:function(){return h(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return","en-us");case 1:case"end":return t.stop()}}),t)})))()},getDirection:function(){return h(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return","ltr");case 1:case"end":return t.stop()}}),t)})))()},get:function(t,e,n){return h(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p(n,e));case 1:case"end":return t.stop()}}),t)})))()},translate:function(t){return h(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()}};function g(t,e){var n=0,r=t.length-1;if(r<0||!e(t[r]))return t.length;if(e(t[n]))return n;for(;n<r;){var i=n+r>>1;e(t[i])?r=i:n=i+1}return n}function m(t,e,n){if(t<2)return t;var r=e[t].div,i=r.offsetTop+r.clientTop;i>=n&&(i=(r=e[t-1].div).offsetTop+r.clientTop);for(var o=t-2;o>=0&&!((r=e[o].div).offsetTop+r.clientTop+r.clientHeight<=i);--o)t=o;return t}function y(t){for(var e=0,n=t.length;e<n&&""===t[e].trim();)e++;return"data:"===t.substring(e,e+5).toLowerCase()}e.NullL10n=v;var b={EVENT:"event",TIMEOUT:"timeout"};e.WaitOnType=b;var _=new Promise((function(t){window.requestAnimationFrame(t)}));e.animationStarted=_;var w=function(){function t(e){o(this,t),this._listeners=Object.create(null)}return s(t,[{key:"on",value:function(t,e){this._on(t,e,{external:!0})}},{key:"off",value:function(t,e){this._off(t,e,{external:!0})}},{key:"dispatch",value:function(t){var e=this._listeners[t];if(e&&0!==e.length){var n,r=Array.prototype.slice.call(arguments,1);e.slice(0).forEach((function(t){var e=t.listener;if(t.external)return n||(n=[]),void n.push(e);e.apply(null,r)})),n&&(n.forEach((function(t){t.apply(null,r)})),n=null)}}},{key:"_on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this._listeners[t];r||(this._listeners[t]=r=[]),r.push({listener:e,external:!0===(n&&n.external)})}},{key:"_off",value:function(t,e){var n=this._listeners[t];if(n)for(var r=0,i=n.length;r<i;r++)if(n[r].listener===e)return void n.splice(r,1)}}]),t}();function S(t,e,n){return Math.min(Math.max(t,e),n)}e.EventBus=w;var A=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.height,i=n.width,a=n.units;o(this,t),this.visible=!0,this.div=document.querySelector(e+" .progress"),this.bar=this.div.parentNode,this.height=r||100,this.width=i||100,this.units=a||"%",this.div.style.height=this.height+this.units,this.percent=0}return s(t,[{key:"_updateBar",value:function(){if(this._indeterminate)return this.div.classList.add("indeterminate"),void(this.div.style.width=this.width+this.units);this.div.classList.remove("indeterminate");var t=this.width*this._percent/100;this.div.style.width=t+this.units}},{key:"setWidth",value:function(t){if(t){var e=t.parentNode.offsetWidth-t.offsetWidth;e>0&&(this.bar.style.width="calc(100% - ".concat(e,"px)"))}}},{key:"hide",value:function(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}},{key:"show",value:function(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}},{key:"percent",get:function(){return this._percent},set:function(t){this._indeterminate=isNaN(t),this._percent=S(t,0,100),this._updateBar()}}]),t}();e.ProgressBar=A},function(t,e,n){"use strict";t.exports=n(5)},function(t,e,n){"use strict";(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=function(t){var n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),a=new A(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var c={};function h(){}function f(){}function d(){}var p={};p[o]=function(){return this};var v=Object.getPrototypeOf,g=v&&v(v(x([])));g&&g!==n&&r.call(g,o)&&(p=g);var m=d.prototype=h.prototype=Object.create(p);function y(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function b(t,n){var i;this._invoke=function(o,a){function s(){return new n((function(i,s){!function i(o,a,s,u){var c=l(t[o],t,a);if("throw"!==c.type){var h=c.arg,f=h.value;return f&&"object"===e(f)&&r.call(f,"__await")?n.resolve(f.__await).then((function(t){i("next",t,s,u)}),(function(t){i("throw",t,s,u)})):n.resolve(f).then((function(t){h.value=t,s(h)}),(function(t){return i("throw",t,s,u)}))}u(c.arg)}(o,a,i,s)}))}return i=i?i.then(s,s):s()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,c;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return f.prototype=m.constructor=d,d.constructor=f,d[s]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},y(b.prototype),b.prototype[a]=function(){return this},t.AsyncIterator=b,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new b(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(m),m[s]="Generator",m[o]=function(){return this},m.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=x,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(6)(t))},function(t,e,n){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleLinkService=e.PDFLinkService=void 0;var r=n(3);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}var u=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.eventBus,r=e.externalLinkTarget,i=void 0===r?null:r,a=e.externalLinkRel,s=void 0===a?null:a,u=e.externalLinkEnabled,l=void 0===u||u,c=e.ignoreDestinationZoom,h=void 0!==c&&c;o(this,t),this.eventBus=n,this.externalLinkTarget=i,this.externalLinkRel=s,this.externalLinkEnabled=l,this._ignoreDestinationZoom=h,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return s(t,[{key:"setDocument",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.baseUrl=e,this.pdfDocument=t,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(t){this.pdfViewer=t}},{key:"setHistory",value:function(t){this.pdfHistory=t}},{key:"navigateTo",value:function(t){var e=this;new Promise((function(n,r){"string"!=typeof t?n({namedDest:"",explicitDest:t}):e.pdfDocument.getDestination(t).then((function(e){n({namedDest:t,explicitDest:e})}))})).then((function(n){Array.isArray(n.explicitDest)?function n(r){var i,o=r.namedDest,a=r.explicitDest,s=a[0];if(s instanceof Object){if(null===(i=e._cachedPageNumber(s)))return void e.pdfDocument.getPageIndex(s).then((function(t){e.cachePageRef(t+1,s),n({namedDest:o,explicitDest:a})})).catch((function(){console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid page reference, for dest="'.concat(t,'".'))}))}else{if(!Number.isInteger(s))return void console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid destination reference, for dest="'.concat(t,'".'));i=s+1}!i||i<1||i>e.pagesCount?console.error('PDFLinkService.navigateTo: "'.concat(i,'" is not ')+'a valid page number, for dest="'.concat(t,'".')):(e.pdfHistory&&(e.pdfHistory.pushCurrentPosition(),e.pdfHistory.push({namedDest:o,explicitDest:a,pageNumber:i})),e.pdfViewer.scrollPageIntoView({pageNumber:i,destArray:a,ignoreDestinationZoom:e._ignoreDestinationZoom}))}(n):console.error('PDFLinkService.navigateTo: "'.concat(n.explicitDest,'" is')+' not a valid destination array, for dest="'.concat(t,'".'))}))}},{key:"getDestinationHash",value:function(t){if("string"==typeof t)return this.getAnchorUrl("#"+escape(t));if(Array.isArray(t)){var e=JSON.stringify(t);return this.getAnchorUrl("#"+escape(e))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(t){return(this.baseUrl||"")+t}},{key:"setHash",value:function(t){var e,n;if(t.includes("=")){var o=(0,r.parseQueryString)(t);if("search"in o&&this.eventBus.dispatch("findfromurlhash",{source:this,query:o.search.replace(/"/g,""),phraseSearch:"true"===o.phrase}),"page"in o&&(e=0|o.page||1),"zoom"in o){var a=o.zoom.split(","),s=a[0],u=parseFloat(s);s.includes("Fit")?"Fit"===s||"FitB"===s?n=[null,{name:s}]:"FitH"===s||"FitBH"===s||"FitV"===s||"FitBV"===s?n=[null,{name:s},a.length>1?0|a[1]:null]:"FitR"===s?5!==a.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:s},0|a[1],0|a[2],0|a[3],0|a[4]]:console.error('PDFLinkService.setHash: "'.concat(s,'" is not ')+"a valid zoom value."):n=[null,{name:"XYZ"},a.length>1?0|a[1]:null,a.length>2?0|a[2]:null,u?u/100:s]}n?this.pdfViewer.scrollPageIntoView({pageNumber:e||this.page,destArray:n,allowNegativeOffset:!0}):e&&(this.page=e),"pagemode"in o&&this.eventBus.dispatch("pagemode",{source:this,mode:o.pagemode}),"nameddest"in o&&this.navigateTo(o.nameddest)}else{n=unescape(t);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch(t){}if("string"==typeof n||function(t){if(!Array.isArray(t))return!1;var e=t.length;if(e<2)return!1;var n=t[0];if(!("object"===i(n)&&Number.isInteger(n.num)&&Number.isInteger(n.gen)||Number.isInteger(n)&&n>=0))return!1;var r=t[1];if("object"!==i(r)||"string"!=typeof r.name)return!1;var o=!0;switch(r.name){case"XYZ":if(5!==e)return!1;break;case"Fit":case"FitB":return 2===e;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==e)return!1;break;case"FitR":if(6!==e)return!1;o=!1;break;default:return!1}for(var a=2;a<e;a++){var s=t[a];if(!("number"==typeof s||o&&null===s))return!1}return!0}(n))return void this.navigateTo(n);console.error('PDFLinkService.setHash: "'.concat(unescape(t),'" is not ')+"a valid destination.")}}},{key:"executeNamedAction",value:function(t){switch(t){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page<this.pagesCount&&this.page++;break;case"PrevPage":this.page>1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:t})}},{key:"cachePageRef",value:function(t,e){if(e){var n=0===e.gen?"".concat(e.num,"R"):"".concat(e.num,"R").concat(e.gen);this._pagesRefCache[n]=t}}},{key:"_cachedPageNumber",value:function(t){var e=0===t.gen?"".concat(t.num,"R"):"".concat(t.num,"R").concat(t.gen);return this._pagesRefCache&&this._pagesRefCache[e]||null}},{key:"isPageVisible",value:function(t){return this.pdfViewer.isPageVisible(t)}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(t){this.pdfViewer.currentPageNumber=t}},{key:"rotation",get:function(){return this.pdfViewer.pagesRotation},set:function(t){this.pdfViewer.pagesRotation=t}}]),t}();e.PDFLinkService=u,window.PDFLinkService=u;var l=function(){function t(){o(this,t),this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}return s(t,[{key:"navigateTo",value:function(t){}},{key:"getDestinationHash",value:function(t){return"#"}},{key:"getAnchorUrl",value:function(t){return"#"}},{key:"setHash",value:function(t){}},{key:"executeNamedAction",value:function(t){}},{key:"cachePageRef",value:function(t,e){}},{key:"isPageVisible",value:function(t){return!0}},{key:"pagesCount",get:function(){return 0}},{key:"page",get:function(){return 0},set:function(t){}},{key:"rotation",get:function(){return 0},set:function(t){}}]),t}();e.SimpleLinkService=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultTextLayerFactory=e.TextLayerBuilder=void 0;var r=n(2);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=function(){function t(e){var n=e.textLayerDiv,r=e.eventBus,o=e.pageIndex,a=e.viewport,s=e.findController,u=void 0===s?null:s,l=e.enhanceTextSelection,c=void 0!==l&&l;i(this,t),this.textLayerDiv=n,this.eventBus=r,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=o,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=a,this.textDivs=[],this.findController=u,this.textLayerRenderTask=null,this.enhanceTextSelection=c,this._onUpdateTextLayerMatches=null,this._bindMouse()}return a(t,[{key:"_finishRendering",value:function(){if(this.renderingDone=!0,!this.enhanceTextSelection){var t=document.createElement("div");t.className="endOfContent",this.textLayerDiv.appendChild(t)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}},{key:"render",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs=[];var n=document.createDocumentFragment();this.textLayerRenderTask=(0,r.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:n,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:e,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then((function(){t.textLayerDiv.appendChild(n),t._finishRendering(),t._updateMatches()}),(function(t){})),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=function(e){e.pageIndex!==t.pageIdx&&-1!==e.pageIndex||t._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}}},{key:"cancel",value:function(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}},{key:"setTextContentStream",value:function(t){this.cancel(),this.textContentStream=t}},{key:"setTextContent",value:function(t){this.cancel(),this.textContent=t}},{key:"_convertMatches",value:function(t,e){if(!t)return[];for(var n=this.findController,r=this.textContentItemsStr,i=0,o=0,a=r.length-1,s=n.state.query.length,u=[],l=0,c=t.length;l<c;l++){for(var h=t[l];i!==a&&h>=o+r[i].length;)o+=r[i].length,i++;i===r.length&&console.error("Could not find a matching mapping");var f={begin:{divIdx:i,offset:h-o}};for(h+=e?e[l]:s;i!==a&&h>o+r[i].length;)o+=r[i].length,i++;f.end={divIdx:i,offset:h-o},u.push(f)}return u}},{key:"_renderMatches",value:function(t){if(0!==t.length){var e=this.findController,n=this.pageIdx,r=this.textContentItemsStr,i=this.textDivs,o=n===e.selected.pageIdx,a=e.selected.matchIdx,s=null,u={divIdx:-1,offset:void 0},l=a,c=l+1;if(e.state.highlightAll)l=0,c=t.length;else if(!o)return;for(var h=l;h<c;h++){var f=t[h],d=f.begin,p=f.end,v=o&&h===a,g=v?" selected":"";if(v&&e.scrollMatchIntoView({element:i[d.divIdx],pageIndex:n,matchIndex:a}),s&&d.divIdx===s.divIdx?_(s.divIdx,s.offset,d.offset):(null!==s&&_(s.divIdx,s.offset,u.offset),b(d)),d.divIdx===p.divIdx)_(d.divIdx,d.offset,p.offset,"highlight"+g);else{_(d.divIdx,d.offset,u.offset,"highlight begin"+g);for(var m=d.divIdx+1,y=p.divIdx;m<y;m++)i[m].className="highlight middle"+g;b(p,"highlight end"+g)}s=p}s&&_(s.divIdx,s.offset,u.offset)}function b(t,e){var n=t.divIdx;i[n].textContent="",_(n,0,t.offset,e)}function _(t,e,n,o){var a=i[t],s=r[t].substring(e,n),u=document.createTextNode(s);if(o){var l=document.createElement("span");return l.className=o,l.appendChild(u),void a.appendChild(l)}a.appendChild(u)}}},{key:"_updateMatches",value:function(){if(this.renderingDone){for(var t=this.findController,e=this.matches,n=this.pageIdx,r=this.textContentItemsStr,i=this.textDivs,o=-1,a=0,s=e.length;a<s;a++){for(var u=e[a],l=Math.max(o,u.begin.divIdx),c=u.end.divIdx;l<=c;l++){var h=i[l];h.textContent=r[l],h.className=""}o=u.end.divIdx+1}if(t&&t.highlightMatches){var f=t.pageMatches[n]||null,d=t.pageMatchesLength[n]||null;this.matches=this._convertMatches(f,d),this._renderMatches(this.matches)}}}},{key:"_bindMouse",value:function(){var t=this,e=this.textLayerDiv,n=null;e.addEventListener("mousedown",(function(r){if(t.enhanceTextSelection&&t.textLayerRenderTask)return t.textLayerRenderTask.expandTextDivs(!0),void(n&&(clearTimeout(n),n=null));var i=e.querySelector(".endOfContent");if(i){var o=r.target!==e;if(o=o&&"none"!==window.getComputedStyle(i).getPropertyValue("-moz-user-select")){var a=e.getBoundingClientRect(),s=Math.max(0,(r.pageY-a.top)/a.height);i.style.top=(100*s).toFixed(2)+"%"}i.classList.add("active")}})),e.addEventListener("mouseup",(function(){if(t.enhanceTextSelection&&t.textLayerRenderTask)n=setTimeout((function(){t.textLayerRenderTask&&t.textLayerRenderTask.expandTextDivs(!1),n=null}),300);else{var r=e.querySelector(".endOfContent");r&&(r.style.top="",r.classList.remove("active"))}}))}}]),t}();e.TextLayerBuilder=s;var u=function(){function t(){i(this,t)}return a(t,[{key:"createTextLayerBuilder",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return new s({textLayerDiv:t,pageIndex:e,viewport:n,enhanceTextSelection:r,eventBus:i})}}]),t}();e.DefaultTextLayerFactory=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DownloadManager=void 0;var r=n(2);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=n(10).viewerCompatibilityParams.disableCreateObjectURL||!1;function a(t,e){var n=document.createElement("a");if(!n.click)throw new Error('DownloadManager: "a.click()" is not supported.');n.href=t,n.target="_parent","download"in n&&(n.download=e),(document.body||document.documentElement).appendChild(n),n.click(),n.remove()}var s=function(){function t(e){var n=e.disableCreateObjectURL,r=void 0===n?o:n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.disableCreateObjectURL=r}var e,n,s;return e=t,(n=[{key:"downloadUrl",value:function(t,e){(0,r.createValidAbsoluteUrl)(t,"http://example.com")&&a(t+"#pdfjs.action=download",e)}},{key:"downloadData",value:function(t,e,n){navigator.msSaveBlob?navigator.msSaveBlob(new Blob([t],{type:n}),e):a((0,r.createObjectURL)(t,n,this.disableCreateObjectURL),e)}},{key:"download",value:function(t,e,n){navigator.msSaveBlob?navigator.msSaveBlob(t,n)||this.downloadUrl(e,n):this.disableCreateObjectURL?this.downloadUrl(e,n):a(URL.createObjectURL(t),n)}}])&&i(e.prototype,n),s&&i(e,s),t}();e.DownloadManager=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.viewerCompatibilityParams=void 0;var r=Object.create(null),i="undefined"!=typeof navigator&&navigator.userAgent||"",o="undefined"!=typeof navigator&&navigator.platform||"",a="undefined"!=typeof navigator&&navigator.maxTouchPoints||1,s=/Android/.test(i),u=/Trident/.test(i),l=/\b(iPad|iPhone|iPod)(?=;)/.test(i)||"MacIntel"===o&&a>1,c=/CriOS/.test(i);(u||c)&&(r.disableCreateObjectURL=!0),(l||s)&&(r.maxCanvasPixels=5242880);var h=Object.freeze(r);e.viewerCompatibilityParams=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GenericL10n=void 0;var r,i=(r=n(4))&&r.__esModule?r:{default:r};function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,"next",t)}function u(t){o(a,r,i,s,u,"throw",t)}s(void 0)}))}}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n(12);var u=document.webL10n,l=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._lang=e,this._ready=new Promise((function(t,n){u.setLanguage(e,(function(){t(u)}))}))}var e,n,r,o,l,c,h;return e=t,(n=[{key:"getLanguage",value:(h=a(i.default.mark((function t(){var e;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready;case 2:return e=t.sent,t.abrupt("return",e.getLanguage());case 4:case"end":return t.stop()}}),t,this)}))),function(){return h.apply(this,arguments)})},{key:"getDirection",value:(c=a(i.default.mark((function t(){var e;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready;case 2:return e=t.sent,t.abrupt("return",e.getDirection());case 4:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"get",value:(l=a(i.default.mark((function t(e,n,r){var o;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready;case 2:return o=t.sent,t.abrupt("return",o.get(e,n,r));case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return l.apply(this,arguments)})},{key:"translate",value:(o=a(i.default.mark((function t(e){var n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready;case 2:return n=t.sent,t.abrupt("return",n.translate(e));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})}])&&s(e.prototype,n),r&&s(e,r),t}();e.GenericL10n=l},function(t,e,n){"use strict";document.webL10n=function(t,e,n){var r={},i="",o="textContent",a="",s={},u="loading";function l(t,e,n){e=e||function(t){},n=n||function(){};var r=new XMLHttpRequest;r.open("GET",t,!0),r.overrideMimeType&&r.overrideMimeType("text/plain; charset=utf-8"),r.onreadystatechange=function(){4==r.readyState&&(200==r.status||0===r.status?e(r.responseText):n())},r.onerror=n,r.ontimeout=n;try{r.send(null)}catch(t){n()}}function c(t,e,n,a){var s=t.replace(/[^\/]*$/,"")||"./";function u(t){return t.lastIndexOf("\\")<0?t:t.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}l(t,(function(t){i+=t,function(t,n){var r={},i=/^\s*|\s*$/,o=/^\s*#|^\s*$/,a=/^\s*\[(.*)\]\s*$/,c=/^\s*@import\s+url\((.*)\)\s*$/i,h=/^([^=\s]*)\s*=\s*(.+)$/;function f(t,n,l){var f=t.replace(i,"").split(/[\r\n]+/),p="*",v=e.split("-",1)[0],g=!1,m="";!function t(){for(;;){if(!f.length)return void l();var i=f.shift();if(!o.test(i)){if(n){if(m=a.exec(i)){p=m[1].toLowerCase(),g="*"!==p&&p!==e&&p!==v;continue}if(g)continue;if(m=c.exec(i))return void d(s+m[1],t)}var y=i.match(h);y&&3==y.length&&(r[y[1]]=u(y[2]))}}}()}function d(t,e){l(t,(function(t){f(t,!1,e)}),(function(){console.warn(t+" not found."),e()}))}f(t,!0,(function(){n(r)}))}(t,(function(t){for(var e in t){var i,a,s=e.lastIndexOf(".");s>0?(i=e.substring(0,s),a=e.substring(s+1)):(i=e,a=o),r[i]||(r[i]={}),r[i][a]=t[e]}n&&n()}))}),a)}function h(t,n){t&&(t=t.toLowerCase()),n=n||function(){},r={},i="",a="",a=t;var o=e.querySelectorAll('link[type="application/l10n"]'),s=o.length;if(0!==s){var l,h,f=0;h=function(){++f>=s&&(n(),u="complete")};for(var d=0;d<s;d++)new m(o[d]).load(t,h)}else{var p=(l=e.querySelector('script[type="application/l10n"]'))?JSON.parse(l.innerHTML):null;if(p&&p.locales&&p.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(r=p.locales[t])){var v=p.default_locale.toLowerCase();for(var g in p.locales){if((g=g.toLowerCase())===t){r=p.locales[t];break}g===v&&(r=p.locales[v])}}n()}else console.log("no resource to load, early way out");u="complete"}function m(t){var e=t.href;this.load=function(t,n){c(e,t,n,(function(){console.warn(e+" not found."),console.warn('"'+t+'" resource not found'),a="",n()}))}}}function f(t,e,n){var i=r[t];if(!i){if(console.warn("#"+t+" is undefined."),!n)return null;i=n}var o={};for(var a in i){var s=i[a];s=p(s=d(s,e,t,a),e,t),o[a]=s}return o}function d(t,e,n,i){var o=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(t);if(!o||!o.length)return t;var a,u=o[1],l=o[2];return e&&l in e?a=e[l]:l in r&&(a=r[l]),u in s&&(t=(0,s[u])(t,a,n,i)),t}function p(t,e,n){return t.replace(/\{\{\s*(.+?)\s*\}\}/g,(function(t,i){return e&&i in e?e[i]:i in r?r[i]:(console.log("argument {{"+i+"}} for #"+n+" is undefined."),t)}))}function v(t){var n=function(t){if(!t)return{};var e=t.getAttribute("data-l10n-id"),n=t.getAttribute("data-l10n-args"),r={};if(n)try{r=JSON.parse(n)}catch(t){console.warn("could not parse arguments for #"+e)}return{id:e,args:r}}(t);if(n.id){var r=f(n.id,n.args);if(r){if(r[o]){if(0===function(t){if(t.children)return t.children.length;if(void 0!==t.childElementCount)return t.childElementCount;for(var e=0,n=0;n<t.childNodes.length;n++)e+=1===t.nodeType?1:0;return e}(t))t[o]=r[o];else{for(var i=t.childNodes,a=!1,s=0,u=i.length;s<u;s++)3===i[s].nodeType&&/\S/.test(i[s].nodeValue)&&(a?i[s].nodeValue="":(i[s].nodeValue=r[o],a=!0));if(!a){var l=e.createTextNode(r[o]);t.insertBefore(l,t.firstChild)}}delete r[o]}for(var c in r)t[c]=r[c]}else console.warn("#"+n.id+" is undefined.")}}return s.plural=function(t,e,n,i){var u=parseFloat(e);if(isNaN(u))return t;if(i!=o)return t;s._pluralRules||(s._pluralRules=function(t){function e(t,e){return-1!==e.indexOf(t)}function n(t,e,n){return e<=t&&t<=n}var r={0:function(t){return"other"},1:function(t){return n(t%100,3,10)?"few":0===t?"zero":n(t%100,11,99)?"many":2==t?"two":1==t?"one":"other"},2:function(t){return 0!==t&&t%10==0?"many":2==t?"two":1==t?"one":"other"},3:function(t){return 1==t?"one":"other"},4:function(t){return n(t,0,1)?"one":"other"},5:function(t){return n(t,0,2)&&2!=t?"one":"other"},6:function(t){return 0===t?"zero":t%10==1&&t%100!=11?"one":"other"},7:function(t){return 2==t?"two":1==t?"one":"other"},8:function(t){return n(t,3,6)?"few":n(t,7,10)?"many":2==t?"two":1==t?"one":"other"},9:function(t){return 0===t||1!=t&&n(t%100,1,19)?"few":1==t?"one":"other"},10:function(t){return n(t%10,2,9)&&!n(t%100,11,19)?"few":t%10!=1||n(t%100,11,19)?"other":"one"},11:function(t){return n(t%10,2,4)&&!n(t%100,12,14)?"few":t%10==0||n(t%10,5,9)||n(t%100,11,14)?"many":t%10==1&&t%100!=11?"one":"other"},12:function(t){return n(t,2,4)?"few":1==t?"one":"other"},13:function(t){return n(t%10,2,4)&&!n(t%100,12,14)?"few":1!=t&&n(t%10,0,1)||n(t%10,5,9)||n(t%100,12,14)?"many":1==t?"one":"other"},14:function(t){return n(t%100,3,4)?"few":t%100==2?"two":t%100==1?"one":"other"},15:function(t){return 0===t||n(t%100,2,10)?"few":n(t%100,11,19)?"many":1==t?"one":"other"},16:function(t){return t%10==1&&11!=t?"one":"other"},17:function(t){return 3==t?"few":0===t?"zero":6==t?"many":2==t?"two":1==t?"one":"other"},18:function(t){return 0===t?"zero":n(t,0,2)&&0!==t&&2!=t?"one":"other"},19:function(t){return n(t,2,10)?"few":n(t,0,1)?"one":"other"},20:function(t){return!n(t%10,3,4)&&t%10!=9||n(t%100,10,19)||n(t%100,70,79)||n(t%100,90,99)?t%1e6==0&&0!==t?"many":t%10!=2||e(t%100,[12,72,92])?t%10!=1||e(t%100,[11,71,91])?"other":"one":"two":"few"},21:function(t){return 0===t?"zero":1==t?"one":"other"},22:function(t){return n(t,0,1)||n(t,11,99)?"one":"other"},23:function(t){return n(t%10,1,2)||t%20==0?"one":"other"},24:function(t){return n(t,3,10)||n(t,13,19)?"few":e(t,[2,12])?"two":e(t,[1,11])?"one":"other"}},i={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3}[t.replace(/-.*$/,"")];return i in r?r[i]:(console.warn("plural form unknown for ["+t+"]"),function(){return"other"})}(a));var l="["+s._pluralRules(u)+"]";return 0===u&&n+"[zero]"in r?t=r[n+"[zero]"][i]:1==u&&n+"[one]"in r?t=r[n+"[one]"][i]:2==u&&n+"[two]"in r?t=r[n+"[two]"][i]:n+l in r?t=r[n+l][i]:n+"[other]"in r&&(t=r[n+"[other]"][i]),t},{get:function(t,e,n){var r,i=t.lastIndexOf("."),a=o;i>0&&(a=t.substring(i+1),t=t.substring(0,i)),n&&((r={})[a]=n);var s=f(t,e,r);return s&&a in s?s[a]:"{{"+t+"}}"},getData:function(){return r},getText:function(){return i},getLanguage:function(){return a},setLanguage:function(t,e){h(t,(function(){e&&e()}))},getDirection:function(){var t=a.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(t)>=0?"rtl":"ltr"},translate:function(t){for(var n=function(t){return t?t.querySelectorAll("*[data-l10n-id]"):[]}(t=t||e.documentElement),r=n.length,i=0;i<r;i++)v(n[i]);v(t)},getReadyState:function(){return u},ready:function(n){n&&("complete"==u||"interactive"==u?t.setTimeout((function(){n()})):e.addEventListener&&e.addEventListener("localized",(function t(){e.removeEventListener("localized",t),n()})))}}}(window,document)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PDFFindController=e.FindState=void 0;var r=n(2),i=n(14),o=n(3);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};e.FindState=s;var u={"‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},l=null;function c(t){if(!l){var e=Object.keys(u).join("");l=new RegExp("[".concat(e,"]"),"g")}return t.replace(l,(function(t){return u[t]}))}var h=function(){function t(e){var n=e.linkService,r=e.eventBus;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._linkService=n,this._eventBus=r,this._reset(),r._on("findbarclose",this._onFindBarClose.bind(this))}var e,n,u;return e=t,(n=[{key:"setDocument",value:function(t){this._pdfDocument&&this._reset(),t&&(this._pdfDocument=t,this._firstPageCapability.resolve())}},{key:"executeCommand",value:function(t,e){var n=this;if(e){var r=this._pdfDocument;(null===this._state||this._shouldDirtyMatch(t,e))&&(this._dirtyMatch=!0),this._state=e,"findhighlightallchange"!==t&&this._updateUIState(s.PENDING),this._firstPageCapability.promise.then((function(){if(n._pdfDocument&&(!r||n._pdfDocument===r)){n._extractText();var e=!n._highlightMatches,i=!!n._findTimeout;n._findTimeout&&(clearTimeout(n._findTimeout),n._findTimeout=null),"find"===t?n._findTimeout=setTimeout((function(){n._nextMatch(),n._findTimeout=null}),250):n._dirtyMatch?n._nextMatch():"findagain"===t?(n._nextMatch(),e&&n._state.highlightAll&&n._updateAllPages()):"findhighlightallchange"===t?(i?n._nextMatch():n._highlightMatches=!0,n._updateAllPages()):n._nextMatch()}}))}}},{key:"scrollMatchIntoView",value:function(t){var e=t.element,n=void 0===e?null:e,r=t.pageIndex,i=void 0===r?-1:r,a=t.matchIndex,s=void 0===a?-1:a;if(this._scrollMatches&&n&&-1!==s&&s===this._selected.matchIdx&&-1!==i&&i===this._selected.pageIdx){this._scrollMatches=!1;var u={top:-50,left:-400};(0,o.scrollIntoView)(n,u,!0)}}},{key:"_reset",value:function(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=Object.create(null),this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,r.createPromiseCapability)()}},{key:"_shouldDirtyMatch",value:function(t,e){if(e.query!==this._state.query)return!0;switch(t){case"findagain":var n=this._selected.pageIdx+1,r=this._linkService;return n>=1&&n<=r.pagesCount&&n!==r.page&&!r.isPageVisible(n);case"findhighlightallchange":return!1}return!0}},{key:"_prepareMatches",value:function(t,e,n){function r(e){var n=t[e],r=t[e+1];if(e<t.length-1&&n.match===r.match)return n.skipped=!0,!0;for(var i=e-1;i>=0;i--){var o=t[i];if(!o.skipped){if(o.match+o.matchLength<n.match)break;if(o.match+o.matchLength>=n.match+n.matchLength)return n.skipped=!0,!0}}return!1}t.sort((function(t,e){return t.match===e.match?t.matchLength-e.matchLength:t.match-e.match}));for(var i=0,o=t.length;i<o;i++)r(i)||(e.push(t[i].match),n.push(t[i].matchLength))}},{key:"_isEntireWord",value:function(t,e,n){if(e>0){var r=t.charCodeAt(e),o=t.charCodeAt(e-1);if((0,i.getCharacterType)(r)===(0,i.getCharacterType)(o))return!1}var a=e+n-1;if(a<t.length-1){var s=t.charCodeAt(a),u=t.charCodeAt(a+1);if((0,i.getCharacterType)(s)===(0,i.getCharacterType)(u))return!1}return!0}},{key:"_calculatePhraseMatch",value:function(t,e,n,r){for(var i=[],o=t.length,a=-o;-1!==(a=n.indexOf(t,a+o));)r&&!this._isEntireWord(n,a,o)||i.push(a);this._pageMatches[e]=i}},{key:"_calculateWordMatch",value:function(t,e,n,r){for(var i=[],o=t.match(/\S+/g),a=0,s=o.length;a<s;a++)for(var u=o[a],l=u.length,c=-l;-1!==(c=n.indexOf(u,c+l));)r&&!this._isEntireWord(n,c,l)||i.push({match:c,matchLength:l,skipped:!1});this._pageMatchesLength[e]=[],this._pageMatches[e]=[],this._prepareMatches(i,this._pageMatches[e],this._pageMatchesLength[e])}},{key:"_calculateMatch",value:function(t){var e=this._pageContents[t],n=this._query,r=this._state,i=r.caseSensitive,o=r.entireWord,a=r.phraseSearch;if(0!==n.length){i||(e=e.toLowerCase(),n=n.toLowerCase()),a?this._calculatePhraseMatch(n,t,e,o):this._calculateWordMatch(n,t,e,o),this._state.highlightAll&&this._updatePage(t),this._resumePageIdx===t&&(this._resumePageIdx=null,this._nextPageMatch());var s=this._pageMatches[t].length;s>0&&(this._matchesCountTotal+=s,this._updateUIResultsCount())}}},{key:"_extractText",value:function(){var t=this;if(!(this._extractTextPromises.length>0))for(var e=Promise.resolve(),n=function(n,i){var o=(0,r.createPromiseCapability)();t._extractTextPromises[n]=o.promise,e=e.then((function(){return t._pdfDocument.getPage(n+1).then((function(t){return t.getTextContent({normalizeWhitespace:!0})})).then((function(e){for(var r=e.items,i=[],a=0,s=r.length;a<s;a++)i.push(r[a].str);t._pageContents[n]=c(i.join("")),o.resolve(n)}),(function(e){console.error("Unable to get text content for page ".concat(n+1),e),t._pageContents[n]="",o.resolve(n)}))}))},i=0,o=this._linkService.pagesCount;i<o;i++)n(i)}},{key:"_updatePage",value:function(t){this._scrollMatches&&this._selected.pageIdx===t&&(this._linkService.page=t+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:t})}},{key:"_updateAllPages",value:function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}},{key:"_nextMatch",value:function(){var t=this,e=this._state.findPrevious,n=this._linkService.page-1,r=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=n,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this._updateAllPages();for(var i=0;i<r;i++)!0!==this._pendingFindMatches[i]&&(this._pendingFindMatches[i]=!0,this._extractTextPromises[i].then((function(e){delete t._pendingFindMatches[e],t._calculateMatch(e)})))}if(""!==this._query){if(!this._resumePageIdx){var o=this._offset;if(this._pagesToSearch=r,null!==o.matchIdx){var a=this._pageMatches[o.pageIdx].length;if(!e&&o.matchIdx+1<a||e&&o.matchIdx>0)return o.matchIdx=e?o.matchIdx-1:o.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(e)}this._nextPageMatch()}}else this._updateUIState(s.FOUND)}},{key:"_matchesReady",value:function(t){var e=this._offset,n=t.length,r=this._state.findPrevious;return n?(e.matchIdx=r?n-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(r),!!(e.wrapped&&(e.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}},{key:"_nextPageMatch",value:function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");var t=null;do{var e=this._offset.pageIdx;if(!(t=this._pageMatches[e])){this._resumePageIdx=e;break}}while(!this._matchesReady(t))}},{key:"_advanceOffsetPage",value:function(t){var e=this._offset,n=this._linkService.pagesCount;e.pageIdx=t?e.pageIdx-1:e.pageIdx+1,e.matchIdx=null,this._pagesToSearch--,(e.pageIdx>=n||e.pageIdx<0)&&(e.pageIdx=t?n-1:0,e.wrapped=!0)}},{key:"_updateMatch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=s.NOT_FOUND,n=this._offset.wrapped;if(this._offset.wrapped=!1,t){var r=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,e=n?s.WRAPPED:s.FOUND,-1!==r&&r!==this._selected.pageIdx&&this._updatePage(r)}this._updateUIState(e,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}},{key:"_onFindBarClose",value:function(t){var e=this,n=this._pdfDocument;this._firstPageCapability.promise.then((function(){!e._pdfDocument||n&&e._pdfDocument!==n||(e._findTimeout&&(clearTimeout(e._findTimeout),e._findTimeout=null),e._resumePageIdx&&(e._resumePageIdx=null,e._dirtyMatch=!0),e._updateUIState(s.FOUND),e._highlightMatches=!1,e._updateAllPages())}))}},{key:"_requestMatchesCount",value:function(){var t=this._selected,e=t.pageIdx,n=t.matchIdx,r=0,i=this._matchesCountTotal;if(-1!==n){for(var o=0;o<e;o++)r+=this._pageMatches[o]&&this._pageMatches[o].length||0;r+=n+1}return(r<1||r>i)&&(r=i=0),{current:r,total:i}}},{key:"_updateUIResultsCount",value:function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}},{key:"_updateUIState",value:function(t,e){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:t,previous:e,matchesCount:this._requestMatchesCount()})}},{key:"highlightMatches",get:function(){return this._highlightMatches}},{key:"pageMatches",get:function(){return this._pageMatches}},{key:"pageMatchesLength",get:function(){return this._pageMatchesLength}},{key:"selected",get:function(){return this._selected}},{key:"state",get:function(){return this._state}},{key:"_query",get:function(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,this._normalizedQuery=c(this._state.query)),this._normalizedQuery}}])&&a(e.prototype,n),u&&a(e,u),t}();e.PDFFindController=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCharacterType=function(t){return function(t){return t<11904}(t)?function(t){return 0==(65408&t)}(t)?function(t){return 32===t||9===t||13===t||10===t}(t)?r.SPACE:function(t){return t>=97&&t<=122||t>=65&&t<=90}(t)||function(t){return t>=48&&t<=57}(t)||95===t?r.ALPHA_LETTER:r.PUNCT:function(t){return 3584==(65408&t)}(t)?r.THAI_LETTER:160===t?r.SPACE:r.ALPHA_LETTER:function(t){return t>=13312&&t<=40959||t>=63744&&t<=64255}(t)?r.HAN_LETTER:function(t){return t>=12448&&t<=12543}(t)?r.KATAKANA_LETTER:function(t){return t>=12352&&t<=12447}(t)?r.HIRAGANA_LETTER:function(t){return t>=65376&&t<=65439}(t)?r.HALFWIDTH_KATAKANA_LETTER:r.ALPHA_LETTER},e.CharacterType=void 0;var r={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};e.CharacterType=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isDestHashesEqual=c,e.isDestArraysEqual=h,e.PDFHistory=void 0;var r=n(3);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(){return document.location.hash}var l=function(){function t(e){var n=this,r=e.linkService,i=e.eventBus;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.linkService=r,this.eventBus=i,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",(function(t){n._isViewerInPresentationMode=t.active||t.switchInProgress})),this.eventBus._on("pagesinit",(function(){n._isPagesLoaded=!1,n.eventBus._on("pagesloaded",(function t(e){n.eventBus._off("pagesloaded",t),n._isPagesLoaded=!!e.pagesCount}))}))}var e,n,a;return e=t,(n=[{key:"initialize",value:function(t){var e=t.fingerprint,n=t.resetHistory,r=void 0!==n&&n,i=t.updateUrl,o=void 0!==i&&i;if(e&&"string"==typeof e){this._initialized&&this.reset();var a=""!==this._fingerprint&&this._fingerprint!==e;this._fingerprint=e,this._updateUrl=!0===o,this._initialized=!0,this._bindEvents();var s=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=u(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(s,!0)||r){var l=this._parseCurrentHash(!0),c=l.hash,h=l.page,f=l.rotation;return!c||a||r?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:c,page:h,rotation:f},!0)}var d=s.destination;this._updateInternalState(d,s.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),void 0!==d.rotation&&(this._initialRotation=d.rotation),d.dest?(this._initialBookmark=JSON.stringify(d.dest),this._destination.page=null):d.hash?this._initialBookmark=d.hash:d.page&&(this._initialBookmark="page=".concat(d.page))}else console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')}},{key:"reset",value:function(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}},{key:"push",value:function(t){var e=this,n=t.namedDest,r=void 0===n?null:n,i=t.explicitDest,o=t.pageNumber;if(this._initialized)if(r&&"string"!=typeof r)console.error("PDFHistory.push: "+'"'.concat(r,'" is not a valid namedDest parameter.'));else if(Array.isArray(i))if(Number.isInteger(o)&&o>0&&o<=this.linkService.pagesCount||null===o&&!this._destination){var a=r||JSON.stringify(i);if(a){var s=!1;if(this._destination&&(c(this._destination.hash,a)||h(this._destination.dest,i))){if(this._destination.page)return;s=!0}this._popStateInProgress&&!s||(this._pushOrReplaceState({dest:i,hash:a,page:o,rotation:this.linkService.rotation},s),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then((function(){e._popStateInProgress=!1}))))}}else console.error("PDFHistory.push: "+'"'.concat(o,'" is not a valid pageNumber parameter.'));else console.error("PDFHistory.push: "+'"'.concat(i,'" is not a valid explicitDest parameter.'))}},{key:"pushCurrentPosition",value:function(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}},{key:"back",value:function(){if(this._initialized&&!this._popStateInProgress){var t=window.history.state;this._isValidState(t)&&t.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this._initialized&&!this._popStateInProgress){var t=window.history.state;this._isValidState(t)&&t.uid<this._maxUid&&window.history.forward()}}},{key:"_pushOrReplaceState",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n||!this._destination,i={fingerprint:this._fingerprint,uid:r?this._uid:this._uid+1,destination:t};if(this._updateInternalState(t,i.uid),this._updateUrl&&t&&t.hash){var o=document.location.href.split("#")[0];o.startsWith("file://")||(e="".concat(o,"#").concat(t.hash))}r?window.history.replaceState(i,"",e):(this._maxUid=this._uid,window.history.pushState(i,"",e))}},{key:"_tryPushCurrentPosition",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._position){var e=this._position;if(t&&((e=Object.assign(Object.create(null),this._position)).temporary=!0),this._destination){if(this._destination.temporary)this._pushOrReplaceState(e,!0);else if(this._destination.hash!==e.hash&&(this._destination.page||!(this._numPositionUpdates<=50))){var n=!1;if(this._destination.page>=e.first&&this._destination.page<=e.page){if(this._destination.dest||!this._destination.first)return;n=!0}this._pushOrReplaceState(e,n)}}else this._pushOrReplaceState(e)}}},{key:"_isValidState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return!1;if(t.fingerprint!==this._fingerprint){if(!e)return!1;if("string"!=typeof t.fingerprint||t.fingerprint.length!==this._fingerprint.length)return!1;var n=performance.getEntriesByType("navigation"),r=o(n,1),a=r[0];if(!a||"reload"!==a.type)return!1}return!(!Number.isInteger(t.uid)||t.uid<0)&&null!==t.destination&&"object"===i(t.destination)}},{key:"_updateInternalState",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&t&&t.temporary&&delete t.temporary,this._destination=t,this._uid=e,this._numPositionUpdates=0}},{key:"_parseCurrentHash",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=unescape(u()).substring(1),n=(0,r.parseQueryString)(e),i=n.nameddest||"",o=0|n.page;return Number.isInteger(o)&&o>0&&o<=this.linkService.pagesCount&&!(t&&i.length>0)||(o=null),{hash:e,page:o,rotation:this.linkService.rotation}}},{key:"_updateViewarea",value:function(t){var e=this,n=t.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?"page=".concat(n.pageNumber):n.pdfOpenParams.substring(1),page:this.linkService.page,first:n.pageNumber,rotation:n.rotation},this._popStateInProgress||(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout((function(){e._popStateInProgress||e._tryPushCurrentPosition(!0),e._updateViewareaTimeout=null}),1e3))}},{key:"_popState",value:function(t){var e=this,n=t.state,i=u(),o=this._currentHash!==i;if(this._currentHash=i,n){if(this._isValidState(n)){this._popStateInProgress=!0,o&&(this._blockHashChange++,(0,r.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then((function(){e._blockHashChange--})));var a=n.destination;this._updateInternalState(a,n.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,r.isValidRotation)(a.rotation)&&(this.linkService.rotation=a.rotation),a.dest?this.linkService.navigateTo(a.dest):a.hash?this.linkService.setHash(a.hash):a.page&&(this.linkService.page=a.page),Promise.resolve().then((function(){e._popStateInProgress=!1}))}}else{this._uid++;var s=this._parseCurrentHash(),l=s.hash,c=s.page,h=s.rotation;this._pushOrReplaceState({hash:l,page:c,rotation:h},!0)}}},{key:"_pageHide",value:function(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}},{key:"_bindEvents",value:function(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}},{key:"_unbindEvents",value:function(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}},{key:"popStateInProgress",get:function(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}},{key:"initialBookmark",get:function(){return this._initialized?this._initialBookmark:null}},{key:"initialRotation",get:function(){return this._initialized?this._initialRotation:null}}])&&s(e.prototype,n),a&&s(e,a),t}();function c(t,e){return"string"==typeof t&&"string"==typeof e&&(t===e||(0,r.parseQueryString)(t).nameddest===e)}function h(t,e){function n(t,e){if(i(t)!==i(e))return!1;if(Array.isArray(t)||Array.isArray(e))return!1;if(null!==t&&"object"===i(t)&&null!==e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var r in t)if(!n(t[r],e[r]))return!1;return!0}return t===e||Number.isNaN(t)&&Number.isNaN(e)}if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t.length!==e.length)return!1;for(var r=0,o=t.length;r<o;r++)if(!n(t[r],e[r]))return!1;return!0}e.PDFHistory=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PDFPageView=void 0;var r,i=(r=n(4))&&r.__esModule?r:{default:r},o=n(3),a=n(2),s=n(17);function u(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var c=n(10).viewerCompatibilityParams.maxCanvasPixels||16777216,h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=e.container,r=e.defaultViewport;this.id=e.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=e.scale||o.DEFAULT_SCALE,this.viewport=r,this.pdfPageRotate=r.rotation,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(e.textLayerMode)?e.textLayerMode:o.TextLayerMode.ENABLE,this.imageResourcesPath=e.imageResourcesPath||"",this.renderInteractiveForms=e.renderInteractiveForms||!1,this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels||c,this.eventBus=e.eventBus,this.renderingQueue=e.renderingQueue,this.textLayerFactory=e.textLayerFactory,this.annotationLayerFactory=e.annotationLayerFactory,this.renderer=e.renderer||o.RendererType.CANVAS,this.enableWebGL=e.enableWebGL||!1,this.l10n=e.l10n||o.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=s.RenderingStates.INITIAL,this.resume=null,this.error=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null;var i=document.createElement("div");i.className="page",i.style.width=Math.floor(this.viewport.width)+"px",i.style.height=Math.floor(this.viewport.height)+"px",i.setAttribute("data-page-number",this.id),this.div=i,n.appendChild(i)}var e,n,r;return e=t,(n=[{key:"setPdfPage",value:function(t){this.pdfPage=t,this.pdfPageRotate=t.rotate;var e=(this.rotation+this.pdfPageRotate)%360;this.viewport=t.getViewport({scale:this.scale*o.CSS_UNITS,rotation:e}),this.stats=t.stats,this.reset()}},{key:"destroy",value:function(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}},{key:"_resetZoomLayer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.zoomLayer){var e=this.zoomLayer.firstChild;this.paintedViewportMap.delete(e),e.width=0,e.height=0,t&&this.zoomLayer.remove(),this.zoomLayer=null}}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.cancelRendering(e),this.renderingState=s.RenderingStates.INITIAL;var n=this.div;n.style.width=Math.floor(this.viewport.width)+"px",n.style.height=Math.floor(this.viewport.height)+"px";for(var r=n.childNodes,i=t&&this.zoomLayer||null,o=e&&this.annotationLayer&&this.annotationLayer.div||null,a=r.length-1;a>=0;a--){var u=r[a];i!==u&&o!==u&&n.removeChild(u)}n.removeAttribute("data-loaded"),o?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),i||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",n.appendChild(this.loadingIconDiv)}},{key:"update",value:function(t,e){this.scale=t||this.scale,void 0!==e&&(this.rotation=e);var n=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*o.CSS_UNITS,rotation:n}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});var r=!1;if(this.canvas&&this.maxCanvasPixels>0){var i=this.outputScale;(Math.floor(this.viewport.width)*i.sx|0)*(Math.floor(this.viewport.height)*i.sy|0)>this.maxCanvasPixels&&(r=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&r)return this.cssTransform(this.canvas,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});this.zoomLayer||this.canvas.hasAttribute("hidden")||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}},{key:"cancelRendering",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!t&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}},{key:"cssTransform",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.viewport.width,r=this.viewport.height,i=this.div;t.style.width=t.parentNode.style.width=i.style.width=Math.floor(n)+"px",t.style.height=t.parentNode.style.height=i.style.height=Math.floor(r)+"px";var o=this.viewport.rotation-this.paintedViewportMap.get(t).rotation,a=Math.abs(o),s=1,u=1;90!==a&&270!==a||(s=r/n,u=n/r);var l="rotate("+o+"deg) scale("+s+","+u+")";if(t.style.transform=l,this.textLayer){var c=this.textLayer.viewport,h=this.viewport.rotation-c.rotation,f=Math.abs(h),d=n/c.width;90!==f&&270!==f||(d=n/c.height);var p,v,g=this.textLayer.textLayerDiv;switch(f){case 0:p=v=0;break;case 90:p=0,v="-"+g.style.height;break;case 180:p="-"+g.style.width,v="-"+g.style.height;break;case 270:p="-"+g.style.width,v=0;break;default:console.error("Bad rotation value.")}g.style.transform="rotate("+f+"deg) scale("+d+", "+d+") translate("+p+", "+v+")",g.style.transformOrigin="0% 0%"}e&&this.annotationLayer&&this.annotationLayer.render(this.viewport,"display")}},{key:"getPagePoint",value:function(t,e){return this.viewport.convertToPdfPoint(t,e)}},{key:"draw",value:function(){var t=this;this.renderingState!==s.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());var e=this.div,n=this.pdfPage;if(!n)return this.renderingState=s.RenderingStates.FINISHED,this.loadingIconDiv&&(e.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=s.RenderingStates.RUNNING;var r=document.createElement("div");r.style.width=e.style.width,r.style.height=e.style.height,r.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?e.insertBefore(r,this.annotationLayer.div):e.appendChild(r);var l=null;if(this.textLayerMode!==o.TextLayerMode.DISABLE&&this.textLayerFactory){var c=document.createElement("div");c.className="textLayer",c.style.width=r.style.width,c.style.height=r.style.height,this.annotationLayer&&this.annotationLayer.div?e.insertBefore(c,this.annotationLayer.div):e.appendChild(c),l=this.textLayerFactory.createTextLayerBuilder(c,this.id-1,this.viewport,this.textLayerMode===o.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=l;var h=null;this.renderingQueue&&(h=function(e){if(!t.renderingQueue.isHighestPriority(t))return t.renderingState=s.RenderingStates.PAUSED,void(t.resume=function(){t.renderingState=s.RenderingStates.RUNNING,e()});e()});var f=function(){var r,o=(r=i.default.mark((function r(o){return i.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(d===t.paintTask&&(t.paintTask=null),!(o instanceof a.RenderingCancelledException)){r.next=4;break}return t.error=null,r.abrupt("return");case 4:if(t.renderingState=s.RenderingStates.FINISHED,t.loadingIconDiv&&(e.removeChild(t.loadingIconDiv),delete t.loadingIconDiv),t._resetZoomLayer(!0),t.error=o,t.stats=n.stats,t.eventBus.dispatch("pagerendered",{source:t,pageNumber:t.id,cssTransform:!1,timestamp:performance.now()}),!o){r.next=12;break}throw o;case 12:case"end":return r.stop()}}),r)})),function(){var t=this,e=arguments;return new Promise((function(n,i){var o=r.apply(t,e);function a(t){u(o,n,i,a,s,"next",t)}function s(t){u(o,n,i,a,s,"throw",t)}a(void 0)}))});return function(t){return o.apply(this,arguments)}}(),d=this.renderer===o.RendererType.SVG?this.paintOnSvg(r):this.paintOnCanvas(r);d.onRenderContinue=h,this.paintTask=d;var p=d.promise.then((function(){return f(null).then((function(){if(l){var t=n.streamTextContent({normalizeWhitespace:!0});l.setTextContentStream(t),l.render()}}))}),(function(t){return f(t)}));return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(e,n,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this.annotationLayer.render(this.viewport,"display")),e.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),p}},{key:"paintOnCanvas",value:function(t){var e=(0,a.createPromiseCapability)(),n={promise:e.promise,onRenderContinue:function(t){t()},cancel:function(){m.cancel()}},r=this.viewport,i=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then((function(t){i.setAttribute("aria-label",t)})),i.setAttribute("hidden","hidden");var s=!0,u=function(){s&&(i.removeAttribute("hidden"),s=!1)};t.appendChild(i),this.canvas=i,i.mozOpaque=!0;var l=i.getContext("2d",{alpha:!1}),c=(0,o.getOutputScale)(l);if(this.outputScale=c,this.useOnlyCssZoom){var h=r.clone({scale:o.CSS_UNITS});c.sx*=h.width/r.width,c.sy*=h.height/r.height,c.scaled=!0}if(this.maxCanvasPixels>0){var f=r.width*r.height,d=Math.sqrt(this.maxCanvasPixels/f);c.sx>d||c.sy>d?(c.sx=d,c.sy=d,c.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var p=(0,o.approximateFraction)(c.sx),v=(0,o.approximateFraction)(c.sy);i.width=(0,o.roundToDivide)(r.width*c.sx,p[0]),i.height=(0,o.roundToDivide)(r.height*c.sy,v[0]),i.style.width=(0,o.roundToDivide)(r.width,p[1])+"px",i.style.height=(0,o.roundToDivide)(r.height,v[1])+"px",this.paintedViewportMap.set(i,r);var g={canvasContext:l,transform:c.scaled?[c.sx,0,0,c.sy,0,0]:null,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms},m=this.pdfPage.render(g);return m.onContinue=function(t){u(),n.onRenderContinue?n.onRenderContinue(t):t()},m.promise.then((function(){u(),e.resolve(void 0)}),(function(t){u(),e.reject(t)})),n}},{key:"paintOnSvg",value:function(t){var e=this,n=!1,r=function(){if(n)throw new a.RenderingCancelledException("Rendering cancelled, page ".concat(e.id),"svg")},i=this.pdfPage,u=this.viewport.clone({scale:o.CSS_UNITS});return{promise:i.getOperatorList().then((function(n){return r(),new a.SVGGraphics(i.commonObjs,i.objs).getSVG(n,u).then((function(n){r(),e.svg=n,e.paintedViewportMap.set(n,u),n.style.width=t.style.width,n.style.height=t.style.height,e.renderingState=s.RenderingStates.FINISHED,t.appendChild(n)}))})),onRenderContinue:function(t){t()},cancel:function(){n=!0}}}},{key:"setPageLabel",value:function(t){this.pageLabel="string"==typeof t?t:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}},{key:"width",get:function(){return this.viewport.width}},{key:"height",get:function(){return this.viewport.height}}])&&l(e.prototype,n),r&&l(e,r),t}();e.PDFPageView=h},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFRenderingQueue=e.RenderingStates=void 0;var i={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};e.RenderingStates=i;var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}var e,n,o;return e=t,(n=[{key:"setViewer",value:function(t){this.pdfViewer=t}},{key:"setThumbnailViewer",value:function(t){this.pdfThumbnailViewer=t}},{key:"isHighestPriority",value:function(t){return this.highestPriorityPage===t.renderingId}},{key:"renderHighestPriority",value:function(t){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(t)||this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4))}},{key:"getHighestPriority",value:function(t,e,n){var r=t.views,i=r.length;if(0===i)return null;for(var o=0;o<i;++o){var a=r[o].view;if(!this.isViewFinished(a))return a}if(n){var s=t.last.id;if(e[s]&&!this.isViewFinished(e[s]))return e[s]}else{var u=t.first.id-2;if(e[u]&&!this.isViewFinished(e[u]))return e[u]}return null}},{key:"isViewFinished",value:function(t){return t.renderingState===i.FINISHED}},{key:"renderView",value:function(t){var e=this;switch(t.renderingState){case i.FINISHED:return!1;case i.PAUSED:this.highestPriorityPage=t.renderingId,t.resume();break;case i.RUNNING:this.highestPriorityPage=t.renderingId;break;case i.INITIAL:this.highestPriorityPage=t.renderingId,t.draw().finally((function(){e.renderHighestPriority()})).catch((function(t){console.error('renderView: "'.concat(t,'"'))}))}return!0}}])&&r(e.prototype,n),o&&r(e,o),t}();e.PDFRenderingQueue=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PDFSinglePageViewer=void 0;var r=n(19),i=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(c,t);var e,n,r,o=l(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=o.call(this,t)).eventBus._on("pagesinit",(function(t){e._ensurePageViewVisible()})),e}return e=c,(n=[{key:"_resetView",value:function(){s(h(c.prototype),"_resetView",this).call(this),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}},{key:"_ensurePageViewVisible",value:function(){var t=this._pages[this._currentPageNumber-1],e=this._pages[this._previousPageNumber-1],n=this.viewer.childNodes;switch(n.length){case 0:this.viewer.appendChild(t.div);break;case 1:if(n[0]!==e.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(t===e)break;this._shadowViewer.appendChild(e.div),this.viewer.appendChild(t.div),this.container.scrollTop=0;break;default:throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.")}this._previousPageNumber=this._currentPageNumber}},{key:"_scrollUpdate",value:function(){this._updateScrollDown&&this._updateScrollDown(),s(h(c.prototype),"_scrollUpdate",this).call(this)}},{key:"_scrollIntoView",value:function(t){var e=this,n=t.pageDiv,r=t.pageSpot,i=void 0===r?null:r,o=t.pageNumber,a=void 0===o?null:o;a&&this._setCurrentPageNumber(a);var u=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),s(h(c.prototype),"_scrollIntoView",this).call(this,{pageDiv:n,pageSpot:i,pageNumber:a}),this._updateScrollDown=function(){e.scroll.down=u,e._updateScrollDown=null}}},{key:"_getVisiblePages",value:function(){return this._getCurrentVisiblePage()}},{key:"_updateHelper",value:function(t){}},{key:"_updateScrollMode",value:function(){}},{key:"_updateSpreadMode",value:function(){}},{key:"_viewerElement",get:function(){return(0,i.shadow)(this,"_viewerElement",this._shadowViewer)}},{key:"_isScrollModeHorizontal",get:function(){return(0,i.shadow)(this,"_isScrollModeHorizontal",!1)}}])&&a(e.prototype,n),r&&a(e,r),c}(r.BaseViewer);e.PDFSinglePageViewer=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseViewer=void 0;var r=n(3),i=n(17),o=n(1),a=n(2),s=n(16),u=n(7),l=n(8);function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t){var e=[];this.push=function(n){var r=e.indexOf(n);r>=0&&e.splice(r,1),e.push(n),e.length>t&&e.shift().destroy()},this.resize=function(n,i){if(t=n,i){for(var o=new Set,a=0,s=i.length;a<s;++a)o.add(i[a].id);(0,r.moveToEndOfArray)(e,(function(t){return o.has(t.id)}))}for(;e.length>t;)e.shift().destroy()}}function f(t,e){return e===t||Math.abs(e-t)<1e-15}var d=function(){function t(e){var n=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.constructor===t)throw new Error("Cannot initialize BaseViewer.");this._name=this.constructor.name,this.container=e.container,this.viewer=e.viewer||e.container.firstElementChild,this.eventBus=e.eventBus,this.linkService=e.linkService||new u.SimpleLinkService,this.downloadManager=e.downloadManager||null,this.findController=e.findController||null,this.removePageBorders=e.removePageBorders||!1,this.textLayerMode=Number.isInteger(e.textLayerMode)?e.textLayerMode:r.TextLayerMode.ENABLE,this.imageResourcesPath=e.imageResourcesPath||"",this.renderInteractiveForms=e.renderInteractiveForms||!1,this.enablePrintAutoRotate=e.enablePrintAutoRotate||!1,this.renderer=e.renderer||r.RendererType.CANVAS,this.enableWebGL=e.enableWebGL||!1,this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels,this.l10n=e.l10n||r.NullL10n,this.defaultRenderingQueue=!e.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new i.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=e.renderingQueue,this.scroll=(0,r.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=r.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then((function(){n.eventBus.dispatch("baseviewerinit",{source:n})}))}var e,n,d;return e=t,(n=[{key:"getPageView",value:function(t){return this._pages[t]}},{key:"_setCurrentPageNumber",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._currentPageNumber===t?(e&&this._resetCurrentPageView(),!0):0<t&&t<=this.pagesCount&&(this._currentPageNumber=t,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:t,pageLabel:this._pageLabels&&this._pageLabels[t-1]}),e&&this._resetCurrentPageView(),!0)}},{key:"_onePageRenderedOrForceFetch",value:function(){return this.container.offsetParent&&0!==this._getVisiblePages().views.length?this._onePageRenderedCapability.promise:Promise.resolve()}},{key:"setDocument",value:function(t){var e=this;if(this.pdfDocument&&(this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null)),this.pdfDocument=t,t){var n=t.numPages,i=t.getPage(1);this._pagesCapability.promise.then((function(){e.eventBus.dispatch("pagesloaded",{source:e,pagesCount:n})})),this._onBeforeDraw=function(t){var n=e._pages[t.pageNumber-1];n&&e._buffer.push(n)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=function(t){t.cssTransform||e._onePageRenderedCapability.settled||(e._onePageRenderedCapability.resolve(),e.eventBus._off("pagerendered",e._onAfterDraw),e._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),i.then((function(i){e._firstPageCapability.resolve(i);for(var o=e.currentScale,a=i.getViewport({scale:o*r.CSS_UNITS}),u=e.textLayerMode!==r.TextLayerMode.DISABLE?e:null,l=1;l<=n;++l){var c=new s.PDFPageView({container:e._viewerElement,eventBus:e.eventBus,id:l,scale:o,defaultViewport:a.clone(),renderingQueue:e.renderingQueue,textLayerFactory:u,textLayerMode:e.textLayerMode,annotationLayerFactory:e,imageResourcesPath:e.imageResourcesPath,renderInteractiveForms:e.renderInteractiveForms,renderer:e.renderer,enableWebGL:e.enableWebGL,useOnlyCssZoom:e.useOnlyCssZoom,maxCanvasPixels:e.maxCanvasPixels,l10n:e.l10n});e._pages.push(c)}var h=e._pages[0];h&&(h.setPdfPage(i),e.linkService.cachePageRef(1,i.ref)),e._spreadMode!==r.SpreadMode.NONE&&e._updateSpreadMode(),e._onePageRenderedOrForceFetch().then((function(){if(e.findController&&e.findController.setDocument(t),t.loadingParams.disableAutoFetch||n>7500)e._pagesCapability.resolve();else{var r=n-1;if(r<=0)e._pagesCapability.resolve();else for(var i=function(n){t.getPage(n).then((function(t){var i=e._pages[n-1];i.pdfPage||i.setPdfPage(t),e.linkService.cachePageRef(n,t.ref),0==--r&&e._pagesCapability.resolve()}),(function(t){console.error("Unable to get page ".concat(n," to initialize viewer"),t),0==--r&&e._pagesCapability.resolve()}))},o=2;o<=n;++o)i(o)}})),e.eventBus.dispatch("pagesinit",{source:e}),e.defaultRenderingQueue&&e.update()})).catch((function(t){console.error("Unable to initialize viewer",t)}))}}},{key:"setPageLabels",value:function(t){if(this.pdfDocument){t?Array.isArray(t)&&this.pdfDocument.numPages===t.length?this._pageLabels=t:(this._pageLabels=null,console.error("".concat(this._name,".setPageLabels: Invalid page labels."))):this._pageLabels=null;for(var e=0,n=this._pages.length;e<n;e++){var r=this._pages[e],i=this._pageLabels&&this._pageLabels[e];r.setPageLabel(i)}}}},{key:"_resetView",value:function(){this._pages=[],this._currentPageNumber=1,this._currentScale=r.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new h(10),this._location=null,this._pagesRotation=0,this._pagesRequests=new WeakMap,this._firstPageCapability=(0,a.createPromiseCapability)(),this._onePageRenderedCapability=(0,a.createPromiseCapability)(),this._pagesCapability=(0,a.createPromiseCapability)(),this._scrollMode=r.ScrollMode.VERTICAL,this._spreadMode=r.SpreadMode.NONE,this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.viewer.textContent="",this._updateScrollMode()}},{key:"_scrollUpdate",value:function(){0!==this.pagesCount&&this.update()}},{key:"_scrollIntoView",value:function(t){var e=t.pageDiv,n=t.pageSpot,i=void 0===n?null:n;t.pageNumber,(0,r.scrollIntoView)(e,i)}},{key:"_setScaleUpdatePages",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._currentScaleValue=e.toString(),f(this._currentScale,t))r&&this.eventBus.dispatch("scalechanging",{source:this,scale:t,presetValue:e});else{for(var i=0,o=this._pages.length;i<o;i++)this._pages[i].update(t);if(this._currentScale=t,!n){var a,s=this._currentPageNumber;!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(s=this._location.pageNumber,a=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:s,destArray:a,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:t,presetValue:r?e:void 0}),this.defaultRenderingQueue&&this.update()}}},{key:"_setScale",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=parseFloat(t);if(n>0)this._setScaleUpdatePages(n,t,e,!1);else{var i=this._pages[this._currentPageNumber-1];if(!i)return;var o=this.isInPresentationMode||this.removePageBorders,a=o?0:r.SCROLLBAR_PADDING,s=o?0:r.VERTICAL_PADDING;if(!o&&this._isScrollModeHorizontal){var u=[s,a];a=u[0],s=u[1]}var l=(this.container.clientWidth-a)/i.width*i.scale,c=(this.container.clientHeight-s)/i.height*i.scale;switch(t){case"page-actual":n=1;break;case"page-width":n=l;break;case"page-height":n=c;break;case"page-fit":n=Math.min(l,c);break;case"auto":var h=(0,r.isPortraitOrientation)(i)?l:Math.min(c,l);n=Math.min(r.MAX_AUTO_SCALE,h);break;default:return void console.error("".concat(this._name,'._setScale: "').concat(t,'" is an unknown zoom value.'))}this._setScaleUpdatePages(n,t,e,!0)}}},{key:"_resetCurrentPageView",value:function(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0);var t=this._pages[this._currentPageNumber-1];this._scrollIntoView({pageDiv:t.div})}},{key:"scrollPageIntoView",value:function(t){var e=t.pageNumber,n=t.destArray,i=void 0===n?null:n,o=t.allowNegativeOffset,a=void 0!==o&&o,s=t.ignoreDestinationZoom,u=void 0!==s&&s;if(this.pdfDocument){var l=Number.isInteger(e)&&this._pages[e-1];if(l)if(!this.isInPresentationMode&&i){var c,h,f=0,d=0,p=0,v=0,g=l.rotation%180!=0,m=(g?l.height:l.width)/l.scale/r.CSS_UNITS,y=(g?l.width:l.height)/l.scale/r.CSS_UNITS,b=0;switch(i[1].name){case"XYZ":f=i[2],d=i[3],b=i[4],f=null!==f?f:0,d=null!==d?d:y;break;case"Fit":case"FitB":b="page-fit";break;case"FitH":case"FitBH":b="page-width",null===(d=i[2])&&this._location&&(f=this._location.left,d=this._location.top);break;case"FitV":case"FitBV":f=i[2],p=m,v=y,b="page-height";break;case"FitR":f=i[2],d=i[3],p=i[4]-f,v=i[5]-d;var _=this.removePageBorders?0:r.SCROLLBAR_PADDING,w=this.removePageBorders?0:r.VERTICAL_PADDING;c=(this.container.clientWidth-_)/p/r.CSS_UNITS,h=(this.container.clientHeight-w)/v/r.CSS_UNITS,b=Math.min(Math.abs(c),Math.abs(h));break;default:return void console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(i[1].name,'" is not a valid destination type.'))}if(u||(b&&b!==this._currentScale?this.currentScaleValue=b:this._currentScale===r.UNKNOWN_SCALE&&(this.currentScaleValue=r.DEFAULT_SCALE_VALUE)),"page-fit"!==b||i[4]){var S=[l.viewport.convertToViewportPoint(f,d),l.viewport.convertToViewportPoint(f+p,d+v)],A=Math.min(S[0][0],S[1][0]),x=Math.min(S[0][1],S[1][1]);a||(A=Math.max(A,0),x=Math.max(x,0)),this._scrollIntoView({pageDiv:l.div,pageSpot:{left:A,top:x},pageNumber:e})}else this._scrollIntoView({pageDiv:l.div,pageNumber:e})}else this._setCurrentPageNumber(e,!0);else console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(e,'" is not a valid pageNumber parameter.'))}}},{key:"_updateLocation",value:function(t){var e=this._currentScale,n=this._currentScaleValue,r=parseFloat(n)===e?Math.round(1e4*e)/100:n,i=t.id,o="#page="+i;o+="&zoom="+r;var a=this._pages[i-1],s=this.container,u=a.getPagePoint(s.scrollLeft-t.x,s.scrollTop-t.y),l=Math.round(u[0]),c=Math.round(u[1]);o+=","+l+","+c,this._location={pageNumber:i,scale:r,top:c,left:l,rotation:this._pagesRotation,pdfOpenParams:o}}},{key:"_updateHelper",value:function(t){throw new Error("Not implemented: _updateHelper")}},{key:"update",value:function(){var t=this._getVisiblePages(),e=t.views,n=e.length;if(0!==n){var r=Math.max(10,2*n+1);this._buffer.resize(r,e),this.renderingQueue.renderHighestPriority(t),this._updateHelper(e),this._updateLocation(t.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}}},{key:"containsElement",value:function(t){return this.container.contains(t)}},{key:"focus",value:function(){this.container.focus()}},{key:"_getCurrentVisiblePage",value:function(){if(!this.pagesCount)return{views:[]};var t=this._pages[this._currentPageNumber-1],e=t.div,n={id:t.id,x:e.offsetLeft+e.clientLeft,y:e.offsetTop+e.clientTop,view:t};return{first:n,last:n,views:[n]}}},{key:"_getVisiblePages",value:function(){return(0,r.getVisibleElements)(this.container,this._pages,!0,this._isScrollModeHorizontal)}},{key:"isPageVisible",value:function(t){return!!this.pdfDocument&&(t<1||t>this.pagesCount?(console.error("".concat(this._name,'.isPageVisible: "').concat(t,'" is out of bounds.')),!1):this._getVisiblePages().views.some((function(e){return e.id===t})))}},{key:"cleanup",value:function(){for(var t=0,e=this._pages.length;t<e;t++)this._pages[t]&&this._pages[t].renderingState!==i.RenderingStates.FINISHED&&this._pages[t].reset()}},{key:"_cancelRendering",value:function(){for(var t=0,e=this._pages.length;t<e;t++)this._pages[t]&&this._pages[t].cancelRendering()}},{key:"_ensurePdfPageLoaded",value:function(t){var e=this;if(t.pdfPage)return Promise.resolve(t.pdfPage);if(this._pagesRequests.has(t))return this._pagesRequests.get(t);var n=this.pdfDocument.getPage(t.id).then((function(n){return t.pdfPage||t.setPdfPage(n),e._pagesRequests.delete(t),n})).catch((function(n){console.error("Unable to get page for page view",n),e._pagesRequests.delete(t)}));return this._pagesRequests.set(t,n),n}},{key:"forceRendering",value:function(t){var e=this,n=t||this._getVisiblePages(),r=this._isScrollModeHorizontal?this.scroll.right:this.scroll.down,i=this.renderingQueue.getHighestPriority(n,this._pages,r);return!!i&&(this._ensurePdfPageLoaded(i).then((function(){e.renderingQueue.renderView(i)})),!0)}},{key:"createTextLayerBuilder",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return new l.TextLayerBuilder({textLayerDiv:t,eventBus:i,pageIndex:e,viewport:n,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&r})}},{key:"createAnnotationLayerBuilder",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.NullL10n;return new o.AnnotationLayerBuilder({pageDiv:t,pdfPage:e,imageResourcesPath:n,renderInteractiveForms:i,linkService:this.linkService,downloadManager:this.downloadManager,l10n:a})}},{key:"getPagesOverview",value:function(){var t=this._pages.map((function(t){var e=t.pdfPage.getViewport({scale:1});return{width:e.width,height:e.height,rotation:e.rotation}}));if(!this.enablePrintAutoRotate)return t;var e=(0,r.isPortraitOrientation)(t[0]);return t.map((function(t){return e===(0,r.isPortraitOrientation)(t)?t:{width:t.height,height:t.width,rotation:(t.rotation+90)%360}}))}},{key:"_updateScrollMode",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this._scrollMode,n=this.viewer;n.classList.toggle("scrollHorizontal",e===r.ScrollMode.HORIZONTAL),n.classList.toggle("scrollWrapped",e===r.ScrollMode.WRAPPED),this.pdfDocument&&t&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(t,!0),this.update())}},{key:"_updateSpreadMode",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.pdfDocument){var e=this.viewer,n=this._pages;if(e.textContent="",this._spreadMode===r.SpreadMode.NONE)for(var i=0,o=n.length;i<o;++i)e.appendChild(n[i].div);else for(var a=this._spreadMode-1,s=null,u=0,l=n.length;u<l;++u)null===s?((s=document.createElement("div")).className="spread",e.appendChild(s)):u%2===a&&(s=s.cloneNode(!1),e.appendChild(s)),s.appendChild(n[u].div);t&&(this._setCurrentPageNumber(t,!0),this.update())}}},{key:"pagesCount",get:function(){return this._pages.length}},{key:"pageViewsReady",get:function(){return!!this._pagesCapability.settled&&this._pages.every((function(t){return t&&t.pdfPage}))}},{key:"currentPageNumber",get:function(){return this._currentPageNumber},set:function(t){if(!Number.isInteger(t))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(t,!0)||console.error("".concat(this._name,'.currentPageNumber: "').concat(t,'" is not a valid page.')))}},{key:"currentPageLabel",get:function(){return this._pageLabels&&this._pageLabels[this._currentPageNumber-1]},set:function(t){if(this.pdfDocument){var e=0|t;if(this._pageLabels){var n=this._pageLabels.indexOf(t);n>=0&&(e=n+1)}this._setCurrentPageNumber(e,!0)||console.error("".concat(this._name,'.currentPageLabel: "').concat(t,'" is not a valid page.'))}}},{key:"currentScale",get:function(){return this._currentScale!==r.UNKNOWN_SCALE?this._currentScale:r.DEFAULT_SCALE},set:function(t){if(isNaN(t))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(t,!1)}},{key:"currentScaleValue",get:function(){return this._currentScaleValue},set:function(t){this.pdfDocument&&this._setScale(t,!1)}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(t){if(!(0,r.isValidRotation)(t))throw new Error("Invalid pages rotation angle.");if(this.pdfDocument&&this._pagesRotation!==t){this._pagesRotation=t;for(var e=this._currentPageNumber,n=0,i=this._pages.length;n<i;n++){var o=this._pages[n];o.update(o.scale,t)}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:t,pageNumber:e}),this.defaultRenderingQueue&&this.update()}}},{key:"firstPagePromise",get:function(){return this.pdfDocument?this._firstPageCapability.promise:null}},{key:"onePageRendered",get:function(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}},{key:"pagesPromise",get:function(){return this.pdfDocument?this._pagesCapability.promise:null}},{key:"_viewerElement",get:function(){throw new Error("Not implemented: _viewerElement")}},{key:"_isScrollModeHorizontal",get:function(){return!this.isInPresentationMode&&this._scrollMode===r.ScrollMode.HORIZONTAL}},{key:"isInPresentationMode",get:function(){return this.presentationModeState===r.PresentationModeState.FULLSCREEN}},{key:"isChangingPresentationMode",get:function(){return this.presentationModeState===r.PresentationModeState.CHANGING}},{key:"isHorizontalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}},{key:"isVerticalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}},{key:"hasEqualPageSizes",get:function(){for(var t=this._pages[0],e=1,n=this._pages.length;e<n;++e){var r=this._pages[e];if(r.width!==t.width||r.height!==t.height)return!1}return!0}},{key:"scrollMode",get:function(){return this._scrollMode},set:function(t){if(this._scrollMode!==t){if(!(0,r.isValidScrollMode)(t))throw new Error("Invalid scroll mode: ".concat(t));this._scrollMode=t,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:t}),this._updateScrollMode(this._currentPageNumber)}}},{key:"spreadMode",get:function(){return this._spreadMode},set:function(t){if(this._spreadMode!==t){if(!(0,r.isValidSpreadMode)(t))throw new Error("Invalid spread mode: ".concat(t));this._spreadMode=t,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:t}),this._updateSpreadMode(this._currentPageNumber)}}}])&&c(e.prototype,n),d&&c(e,d),t}();e.BaseViewer=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PDFViewer=void 0;var r=n(19),i=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(s,t);var e,n,r,o=f(s);function s(){return u(this,s),o.apply(this,arguments)}return e=s,(n=[{key:"_scrollIntoView",value:function(t){var e=t.pageDiv,n=t.pageSpot,r=void 0===n?null:n,i=t.pageNumber,o=void 0===i?null:i;if(!r&&!this.isInPresentationMode){var a=e.offsetLeft+e.clientLeft,u=a+e.clientWidth,l=this.container,h=l.scrollLeft,f=l.clientWidth;(this._isScrollModeHorizontal||a<h||u>h+f)&&(r={left:0,top:0})}c(p(s.prototype),"_scrollIntoView",this).call(this,{pageDiv:e,pageSpot:r,pageNumber:o})}},{key:"_getVisiblePages",value:function(){return this.isInPresentationMode?this._getCurrentVisiblePage():c(p(s.prototype),"_getVisiblePages",this).call(this)}},{key:"_updateHelper",value:function(t){if(!this.isInPresentationMode){var e,n=this._currentPageNumber,r=!1,i=a(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;if(o.percent<100)break;if(o.id===n){r=!0;break}}}catch(t){i.e(t)}finally{i.f()}r||(n=t[0].id),this._setCurrentPageNumber(n)}}},{key:"_viewerElement",get:function(){return(0,i.shadow)(this,"_viewerElement",this.viewer)}}])&&l(e.prototype,n),r&&l(e,r),s}(r.BaseViewer);e.PDFViewer=v}])},t.exports=r()}).call(this,n(8))},function(t,e,n){t.exports=function(){return new Worker(n.p+"b7cf90b4775181215df7.worker.js")}},function(t,e,n){"use strict";n(17)},function(t,e,n){(e=n(16)(!1)).push([t.i,'/* see https://github.com/mozilla/pdf.js/blob/55a853b6678cf3d05681ffbb521e5228e607b5d2/test/annotation_layer_test.css */\n.annotationLayer {\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n}\n.annotationLayer section {\n\tposition: absolute;\n}\n.annotationLayer .linkAnnotation > a {\n\tposition: absolute;\n\tfont-size: 1em;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n}\n.annotationLayer .linkAnnotation > a /* -ms-a */ {\n\tbackground: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;\n}\n.annotationLayer .linkAnnotation > a:hover {\n\topacity: 0.2;\n\tbackground: #ff0;\n\tbox-shadow: 0px 2px 10px #ff0;\n}\n.annotationLayer .textAnnotation img {\n\tposition: absolute;\n\tcursor: pointer;\n}\n.annotationLayer .textWidgetAnnotation input,\n.annotationLayer .textWidgetAnnotation textarea,\n.annotationLayer .choiceWidgetAnnotation select,\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n\tbackground-color: rgba(0, 54, 255, 0.13);\n\tborder: 1px solid transparent;\n\tbox-sizing: border-box;\n\tfont-size: 9px;\n\theight: 100%;\n\tpadding: 0 3px;\n\tvertical-align: top;\n\twidth: 100%;\n}\n.annotationLayer .textWidgetAnnotation textarea {\n\tfont: message-box;\n\tfont-size: 9px;\n\tresize: none;\n}\n.annotationLayer .textWidgetAnnotation input[disabled],\n.annotationLayer .textWidgetAnnotation textarea[disabled],\n.annotationLayer .choiceWidgetAnnotation select[disabled],\n.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],\n.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {\n\tbackground: none;\n\tborder: 1px solid transparent;\n\tcursor: not-allowed;\n}\n.annotationLayer .textWidgetAnnotation input:hover,\n.annotationLayer .textWidgetAnnotation textarea:hover,\n.annotationLayer .choiceWidgetAnnotation select:hover,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:hover {\n\tborder: 1px solid #000;\n}\n.annotationLayer .textWidgetAnnotation input:focus,\n.annotationLayer .textWidgetAnnotation textarea:focus,\n.annotationLayer .choiceWidgetAnnotation select:focus {\n\tbackground: none;\n\tborder: 1px solid transparent;\n}\n.annotationLayer .textWidgetAnnotation input.comb {\n\tfont-family: monospace;\n\tpadding-left: 2px;\n\tpadding-right: 0;\n}\n.annotationLayer .textWidgetAnnotation input.comb:focus {\n\t/*\n\t * Letter spacing is placed on the right side of each character. Hence, the\n\t * letter spacing of the last character may be placed outside the visible\n\t * area, causing horizontal scrolling. We avoid this by extending the width\n\t * when the element has focus and revert this when it loses focus.\n\t */\n\twidth: 115%;\n}\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n\t-webkit-appearance: none;\n\tappearance: none;\n}\n.annotationLayer .popupWrapper {\n\tposition: absolute;\n\twidth: 20em;\n}\n.annotationLayer .popup {\n\tposition: absolute;\n\tz-index: 200;\n\tmax-width: 20em;\n\tbackground-color: #FFFF99;\n\tbox-shadow: 0px 2px 5px #333;\n\tborder-radius: 2px;\n\tpadding: 0.6em;\n\tmargin-left: 5px;\n\tcursor: pointer;\n\tword-wrap: break-word;\n}\n.annotationLayer .popup h1 {\n\tfont-size: 1em;\n\tborder-bottom: 1px solid #000000;\n\tpadding-bottom: 0.2em;\n}\n.annotationLayer .popup p {\n\tpadding-top: 0.2em;\n}\n.annotationLayer .highlightAnnotation,\n.annotationLayer .underlineAnnotation,\n.annotationLayer .squigglyAnnotation,\n.annotationLayer .strikeoutAnnotation,\n.annotationLayer .lineAnnotation svg line,\n.annotationLayer .fileAttachmentAnnotation {\n\tcursor: pointer;\n}\n',""]),t.exports=e},function(t,e,n){(function(t,r){var i;
|
|
10
|
+
e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[n+d]=255&a,d+=p,a/=256,l-=8);t[n+d-p]|=128*v}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";n(18)},function(t,e,n){(e=n(20)(!1)).push([t.i,"\n@-webkit-keyframes resizeSensorVisibility {\nfrom { top: 0;\n}\n}\n@keyframes resizeSensorVisibility {\nfrom { top: 0;\n}\n}\r\n",""]),t.exports=e},function(t,e,n){"use strict";n.r(e);var r=n(1);n(34);var i=window.PDFLinkService,o=Promise.resolve();e.default=function(t){function e(e,n){var i;if("string"==typeof e)i={url:e};else if(e instanceof Uint8Array)i={data:e};else{if("object"!=typeof e||null===e)throw new TypeError("invalid src type");i=Object(r.a)({},e)}n&&n.withCredentials&&(i.withCredentials=n.withCredentials);var o=t.getDocument(i);return o.__PDFDocumentLoadingTask=!0,n&&n.onPassword&&(o.onPassword=n.onPassword),n&&n.onProgress&&(o.onProgress=n.onProgress),o}return{createLoadingTask:e,PDFJSWrapper:function(n,r,a){var s=null,u=null,l=null,c=!1;function h(){n.getContext("2d").clearRect(0,0,n.width,n.height)}function f(){for(;r.firstChild;)r.removeChild(r.firstChild)}n.getContext("2d").save(),this.destroy=function(){null!==s&&(o=s.destroy(),s=null)},this.getResolutionScale=function(){return n.offsetWidth/n.width},this.printPage=function(t,e){if(null!==u){var n=(void 0===t?150:t)/72,r=document.createElement("iframe");new Promise((function(t,e){r.frameBorder="0",r.scrolling="no",r.width="0px;",r.height="0px;",r.style.cssText="position: absolute; top: 0; left: 0",r.onload=function(){t(this.contentWindow)},window.document.body.appendChild(r)})).then((function(t){return t.document.title="",s.getPage(1).then((function(e){var r=e.getViewport({scale:1});return t.document.head.appendChild(t.document.createElement("style")).textContent="@supports ((size:A4) and (size:1pt 1pt)) {@page { margin: 1pt; size: "+r.width*n/(96/72)+"pt "+r.height*n/(96/72)+"pt; }}@media print {body { margin: 0 }canvas { page-break-before: avoid; page-break-after: always; page-break-inside: avoid }}@media screen {body { margin: 0 }}",t}))})).then((function(t){for(var r=[],o=1;o<=s.numPages;++o)void 0!==e&&-1===e.indexOf(o)||r.push(s.getPage(o).then((function(e){var r=e.getViewport({scale:1}),i=t.document.body.appendChild(t.document.createElement("canvas"));return i.width=r.width*n,i.height=r.height*n,e.render({canvasContext:i.getContext("2d"),transform:[n,0,0,n,0,0],viewport:r,intent:"print"}).promise})));Promise.all(r).then((function(){t.focus(),t.document.queryCommandSupported("print")?t.document.execCommand("print",!1,null):t.print(),i()})).catch((function(t){i(),a("error",t)}))}))}function i(){r.parentNode.removeChild(r)}},this.renderPage=function(e){if(null!==l){if(c)return;return c=!0,void l.cancel()}if(null!==u){var h=(void 0===u.rotate?0:u.rotate)+(void 0===e?0:e),d=n.offsetWidth/u.getViewport({scale:1}).width*(window.devicePixelRatio||1),p=u.getViewport({scale:d,rotation:h});a("page-size",p.width,p.height,d),n.width=p.width,n.height=p.height,l=u.render({canvasContext:n.getContext("2d"),viewport:p}),r.style.visibility="hidden",f();var v={scrollPageIntoView:function(t){a("link-clicked",t.pageNumber)}},g=new i;g.setDocument(s),g.setViewer(v),o=o.then(function(){var n=u.getAnnotations({intent:"display"}).then((function(e){t.AnnotationLayer.render({viewport:p.clone({dontFlip:!0}),div:r,annotations:e,page:u,linkService:g,renderInteractiveForms:!1})})),i=l.promise.then((function(){r.style.visibility="",c=!1,l=null})).catch(function(n){if(l=null,n instanceof t.RenderingCancelledException)return c=!1,void this.renderPage(e);a("error",n)}.bind(this));return Promise.all([n,i])}.bind(this))}},this.forEachPage=function(t){var e=s.numPages;!function n(r){s.getPage(r).then(t).then((function(){++r<=e&&n(r)}))}(1)},this.loadPage=function(t,e){u=null,null!==s&&(o=o.then((function(){return s.getPage(t)})).then(function(t){u=t,this.renderPage(e),a("page-loaded",t.pageNumber)}.bind(this)).catch((function(t){h(),f(),a("error",t)})))},this.loadDocument=function(r){if(s=null,u=null,a("num-pages",void 0),!r)return n.removeAttribute("width"),n.removeAttribute("height"),void f();o=o.then((function(){var n,i;if("object"==typeof(i=r)&&null!==i&&!0===i.__PDFDocumentLoadingTask){if(r.destroyed)return void a("error",new Error("loadingTask has been destroyed"));n=r}else n=e(r,{onPassword:function(e,n){var r;switch(n){case t.PasswordResponses.NEED_PASSWORD:r="NEED_PASSWORD";break;case t.PasswordResponses.INCORRECT_PASSWORD:r="INCORRECT_PASSWORD"}a("password",e,r)},onProgress:function(t){var e=t.loaded/t.total;a("progress",Math.min(e,1))}});return n.promise})).then((function(t){s=t,a("num-pages",t.numPages),a("loaded")})).catch((function(t){h(),f(),a("error",t)}))},r.style.transformOrigin="0 0"}}}},function(t,e,n){"use strict";n.r(e),function(t,e){var r,i,o=n(1);r="undefined"==typeof window?t:window,i=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return r.AnnotationLayerBuilder}}),Object.defineProperty(e,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return r.DefaultAnnotationLayerFactory}}),Object.defineProperty(e,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return i.DefaultTextLayerFactory}}),Object.defineProperty(e,"TextLayerBuilder",{enumerable:!0,get:function(){return i.TextLayerBuilder}}),Object.defineProperty(e,"EventBus",{enumerable:!0,get:function(){return o.EventBus}}),Object.defineProperty(e,"NullL10n",{enumerable:!0,get:function(){return o.NullL10n}}),Object.defineProperty(e,"ProgressBar",{enumerable:!0,get:function(){return o.ProgressBar}}),Object.defineProperty(e,"PDFLinkService",{enumerable:!0,get:function(){return a.PDFLinkService}}),Object.defineProperty(e,"SimpleLinkService",{enumerable:!0,get:function(){return a.SimpleLinkService}}),Object.defineProperty(e,"DownloadManager",{enumerable:!0,get:function(){return s.DownloadManager}}),Object.defineProperty(e,"GenericL10n",{enumerable:!0,get:function(){return u.GenericL10n}}),Object.defineProperty(e,"PDFFindController",{enumerable:!0,get:function(){return l.PDFFindController}}),Object.defineProperty(e,"PDFHistory",{enumerable:!0,get:function(){return c.PDFHistory}}),Object.defineProperty(e,"PDFPageView",{enumerable:!0,get:function(){return h.PDFPageView}}),Object.defineProperty(e,"PDFSinglePageViewer",{enumerable:!0,get:function(){return f.PDFSinglePageViewer}}),Object.defineProperty(e,"PDFViewer",{enumerable:!0,get:function(){return d.PDFViewer}});var r=n(1),i=n(8),o=n(3),a=n(7),s=n(9),u=n(11),l=n(13),c=n(15),h=n(16),f=n(18),d=n(20)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultAnnotationLayerFactory=e.AnnotationLayerBuilder=void 0;var r=n(2),i=n(3),o=n(7);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}var l=function(){function t(e){var n=e.pageDiv,r=e.pdfPage,o=e.linkService,s=e.downloadManager,u=e.imageResourcesPath,l=void 0===u?"":u,c=e.renderInteractiveForms,h=void 0!==c&&c,f=e.l10n,d=void 0===f?i.NullL10n:f;a(this,t),this.pageDiv=n,this.pdfPage=r,this.linkService=o,this.downloadManager=s,this.imageResourcesPath=l,this.renderInteractiveForms=h,this.l10n=d,this.div=null,this._cancelled=!1}return u(t,[{key:"render",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"display";this.pdfPage.getAnnotations({intent:n}).then((function(n){if(!e._cancelled){var i={viewport:t.clone({dontFlip:!0}),div:e.div,annotations:n,page:e.pdfPage,imageResourcesPath:e.imageResourcesPath,renderInteractiveForms:e.renderInteractiveForms,linkService:e.linkService,downloadManager:e.downloadManager};if(e.div)r.AnnotationLayer.update(i);else{if(0===n.length)return;e.div=document.createElement("div"),e.div.className="annotationLayer",e.pageDiv.appendChild(e.div),i.div=e.div,r.AnnotationLayer.render(i),e.l10n.translate(e.div)}}}))}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){this.div&&this.div.setAttribute("hidden","true")}}]),t}();e.AnnotationLayerBuilder=l;var c=function(){function t(){a(this,t)}return u(t,[{key:"createAnnotationLayerBuilder",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.NullL10n;return new l({pageDiv:t,pdfPage:e,imageResourcesPath:n,renderInteractiveForms:r,linkService:new o.SimpleLinkService,l10n:a})}}]),t}();e.DefaultAnnotationLayerFactory=c},function(t,e,r){var i;i="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:n(15),t.exports=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.isValidRotation=function(t){return Number.isInteger(t)&&t%90==0},e.isValidScrollMode=function(t){return Number.isInteger(t)&&Object.values(f).includes(t)&&t!==f.UNKNOWN},e.isValidSpreadMode=function(t){return Number.isInteger(t)&&Object.values(d).includes(t)&&t!==d.UNKNOWN},e.isPortraitOrientation=function(t){return t.width<=t.height},e.clamp=w,e.getPDFFileNameFromURL=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!=typeof t)return e;if(m(t))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),e;var n=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,r=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=n.exec(t),o=r.exec(i[1])||r.exec(i[2])||r.exec(i[3]);if(o&&(o=o[0]).includes("%"))try{o=r.exec(decodeURIComponent(o))[0]}catch(t){}return o||e},e.noContextMenuHandler=function(t){t.preventDefault()},e.parseQueryString=function(t){for(var e=t.split("&"),n=Object.create(null),r=0,i=e.length;r<i;++r){var o=e[r].split("="),a=o[0].toLowerCase(),s=o.length>1?o[1]:null;n[decodeURIComponent(a)]=decodeURIComponent(s)}return n},e.backtrackBeforeAllVisibleElements=y,e.getVisibleElements=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t.scrollTop,o=i+t.clientHeight,a=t.scrollLeft,s=a+t.clientWidth;function u(t){var e=t.div;return e.offsetTop+e.clientTop+e.clientHeight>i}function l(t){var e=t.div;return e.offsetLeft+e.clientLeft+e.clientWidth>a}var c=[],h=e.length,f=0===h?0:g(e,r?l:u);f>0&&f<h&&!r&&(f=y(f,e,i));for(var d=r?s:-1,p=f;p<h;p++){var v=e[p],m=v.div,b=m.offsetLeft+m.clientLeft,_=m.offsetTop+m.clientTop,C=m.clientWidth,w=m.clientHeight,S=b+C,x=_+w;if(-1===d)x>=o&&(d=x);else if((r?b:_)>d)break;if(!(x<=i||_>=o||S<=a||b>=s)){var A=Math.max(0,i-_)+Math.max(0,x-o),k=Math.max(0,a-b)+Math.max(0,S-s),P=(w-A)*(C-k)*100/w/C|0;c.push({id:v.id,x:b,y:_,view:v,percent:P})}}var T=c[0],L=c[c.length-1];return n&&c.sort((function(t,e){var n=t.percent-e.percent;return Math.abs(n)>.001?-n:t.id-e.id})),{first:T,last:L,views:c}},e.roundToDivide=function(t,e){var n=t%e;return 0===n?t:Math.round(t-n+e)},e.getPageSizeInches=function(t){var e,n,r=t.view,i=t.userUnit,o=t.rotate,a=(n=4,function(t){if(Array.isArray(t))return t}(e=r)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,n)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0],u=a[1],c=a[2],h=a[3],f=o%180!=0,d=(c-s)/72*i,p=(h-u)/72*i;return{width:f?p:d,height:f?d:p}},e.approximateFraction=function(t){if(Math.floor(t)===t)return[t,1];var e=1/t;if(e>8)return[1,8];if(Math.floor(e)===e)return[1,e];for(var n=t>1?e:t,r=0,i=1,o=1,a=1;;){var s=r+o,u=i+a;if(u>8)break;n<=s/u?(o=s,a=u):(r=s,i=u)}return n-r/i<o/a-n?n===t?[r,i]:[i,r]:n===t?[o,a]:[a,o]},e.getOutputScale=function(t){var e=window.devicePixelRatio||1,n=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1,r=e/n;return{sx:r,sy:r,scaled:1!==r}},e.scrollIntoView=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.offsetParent;if(r){for(var i=t.offsetTop+t.clientTop,o=t.offsetLeft+t.clientLeft;r.clientHeight===r.scrollHeight&&r.clientWidth===r.scrollWidth||n&&"hidden"===getComputedStyle(r).overflow;)if(r.dataset._scaleY&&(i/=r.dataset._scaleY,o/=r.dataset._scaleX),i+=r.offsetTop,o+=r.offsetLeft,!(r=r.offsetParent))return;e&&(void 0!==e.top&&(i+=e.top),void 0!==e.left&&(o+=e.left,r.scrollLeft=o)),r.scrollTop=i}else console.error("offsetParent is not set -- cannot scroll")},e.watchScroll=function(t,e){var n=function(n){i||(i=window.requestAnimationFrame((function(){i=null;var n=t.scrollLeft,o=r.lastX;n!==o&&(r.right=n>o),r.lastX=n;var a=t.scrollTop,s=r.lastY;a!==s&&(r.down=a>s),r.lastY=a,e(r)})))},r={right:!0,down:!0,lastX:t.scrollLeft,lastY:t.scrollTop,_eventHandler:n},i=null;return t.addEventListener("scroll",n,!0),r},e.binarySearchFirstItem=g,e.normalizeWheelEventDelta=function(t){var e=Math.sqrt(t.deltaX*t.deltaX+t.deltaY*t.deltaY),n=Math.atan2(t.deltaY,t.deltaX);return-.25*Math.PI<n&&n<.75*Math.PI&&(e=-e),0===t.deltaMode?e/=900:1===t.deltaMode&&(e/=30),e},e.waitOnEventOrTimeout=function(t){var e=t.target,n=t.name,r=t.delay,i=void 0===r?0:r;return new Promise((function(t,r){if("object"!==u(e)||!n||"string"!=typeof n||!(Number.isInteger(i)&&i>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function o(r){e instanceof C?e._off(n,a):e.removeEventListener(n,a),l&&clearTimeout(l),t(r)}var a=o.bind(null,b.EVENT);e instanceof C?e._on(n,a):e.addEventListener(n,a);var s=o.bind(null,b.TIMEOUT),l=setTimeout(s,i)}))},e.moveToEndOfArray=function(t,e){for(var n=[],r=t.length,i=0,o=0;o<r;++o)e(t[o])?n.push(t[o]):(t[i]=t[o],++i);for(var a=0;i<r;++a,++i)t[i]=n[a]},e.WaitOnType=e.animationStarted=e.ProgressBar=e.EventBus=e.NullL10n=e.SpreadMode=e.ScrollMode=e.TextLayerMode=e.RendererType=e.PresentationModeState=e.VERTICAL_PADDING=e.SCROLLBAR_PADDING=e.MAX_AUTO_SCALE=e.UNKNOWN_SCALE=e.MAX_SCALE=e.MIN_SCALE=e.DEFAULT_SCALE=e.DEFAULT_SCALE_VALUE=e.CSS_UNITS=e.AutoPrintRegExp=void 0;var r,i=(r=n(4))&&r.__esModule?r:{default:r};function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function h(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){c(o,r,i,a,s,"next",t)}function s(t){c(o,r,i,a,s,"throw",t)}a(void 0)}))}}e.CSS_UNITS=96/72,e.DEFAULT_SCALE_VALUE="auto",e.DEFAULT_SCALE=1,e.MIN_SCALE=.1,e.MAX_SCALE=10,e.UNKNOWN_SCALE=0,e.MAX_AUTO_SCALE=1.25,e.SCROLLBAR_PADDING=40,e.VERTICAL_PADDING=5,e.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3},e.RendererType={CANVAS:"canvas",SVG:"svg"},e.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};var f={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};e.ScrollMode=f;var d={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function p(t,e){return e?t.replace(/\{\{\s*(\w+)\s*\}\}/g,(function(t,n){return n in e?e[n]:"{{"+n+"}}"})):t}e.SpreadMode=d,e.AutoPrintRegExp=/\bprint\s*\(/;var v={getLanguage:function(){return h(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return","en-us");case 1:case"end":return t.stop()}}),t)})))()},getDirection:function(){return h(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return","ltr");case 1:case"end":return t.stop()}}),t)})))()},get:function(t,e,n){return h(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p(n,e));case 1:case"end":return t.stop()}}),t)})))()},translate:function(t){return h(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()}};function g(t,e){var n=0,r=t.length-1;if(r<0||!e(t[r]))return t.length;if(e(t[n]))return n;for(;n<r;){var i=n+r>>1;e(t[i])?r=i:n=i+1}return n}function y(t,e,n){if(t<2)return t;var r=e[t].div,i=r.offsetTop+r.clientTop;i>=n&&(i=(r=e[t-1].div).offsetTop+r.clientTop);for(var o=t-2;o>=0&&!((r=e[o].div).offsetTop+r.clientTop+r.clientHeight<=i);--o)t=o;return t}function m(t){for(var e=0,n=t.length;e<n&&""===t[e].trim();)e++;return"data:"===t.substring(e,e+5).toLowerCase()}e.NullL10n=v;var b={EVENT:"event",TIMEOUT:"timeout"};e.WaitOnType=b;var _=new Promise((function(t){window.requestAnimationFrame(t)}));e.animationStarted=_;var C=function(){function t(e){o(this,t),this._listeners=Object.create(null)}return s(t,[{key:"on",value:function(t,e){this._on(t,e,{external:!0})}},{key:"off",value:function(t,e){this._off(t,e,{external:!0})}},{key:"dispatch",value:function(t){var e=this._listeners[t];if(e&&0!==e.length){var n,r=Array.prototype.slice.call(arguments,1);e.slice(0).forEach((function(t){var e=t.listener;if(t.external)return n||(n=[]),void n.push(e);e.apply(null,r)})),n&&(n.forEach((function(t){t.apply(null,r)})),n=null)}}},{key:"_on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this._listeners[t];r||(this._listeners[t]=r=[]),r.push({listener:e,external:!0===(n&&n.external)})}},{key:"_off",value:function(t,e){var n=this._listeners[t];if(n)for(var r=0,i=n.length;r<i;r++)if(n[r].listener===e)return void n.splice(r,1)}}]),t}();function w(t,e,n){return Math.min(Math.max(t,e),n)}e.EventBus=C;var S=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.height,i=n.width,a=n.units;o(this,t),this.visible=!0,this.div=document.querySelector(e+" .progress"),this.bar=this.div.parentNode,this.height=r||100,this.width=i||100,this.units=a||"%",this.div.style.height=this.height+this.units,this.percent=0}return s(t,[{key:"_updateBar",value:function(){if(this._indeterminate)return this.div.classList.add("indeterminate"),void(this.div.style.width=this.width+this.units);this.div.classList.remove("indeterminate");var t=this.width*this._percent/100;this.div.style.width=t+this.units}},{key:"setWidth",value:function(t){if(t){var e=t.parentNode.offsetWidth-t.offsetWidth;e>0&&(this.bar.style.width="calc(100% - ".concat(e,"px)"))}}},{key:"hide",value:function(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}},{key:"show",value:function(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}},{key:"percent",get:function(){return this._percent},set:function(t){this._indeterminate=isNaN(t),this._percent=w(t,0,100),this._updateBar()}}]),t}();e.ProgressBar=S},function(t,e,n){t.exports=n(5)},function(t,e,n){(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=function(t){var n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),a=new S(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var c={};function h(){}function f(){}function d(){}var p={};p[o]=function(){return this};var v=Object.getPrototypeOf,g=v&&v(v(x([])));g&&g!==n&&r.call(g,o)&&(p=g);var y=d.prototype=h.prototype=Object.create(p);function m(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function b(t,n){var i;this._invoke=function(o,a){function s(){return new n((function(i,s){!function i(o,a,s,u){var c=l(t[o],t,a);if("throw"!==c.type){var h=c.arg,f=h.value;return f&&"object"===e(f)&&r.call(f,"__await")?n.resolve(f.__await).then((function(t){i("next",t,s,u)}),(function(t){i("throw",t,s,u)})):n.resolve(f).then((function(t){h.value=t,s(h)}),(function(t){return i("throw",t,s,u)}))}u(c.arg)}(o,a,i,s)}))}return i=i?i.then(s,s):s()}}function _(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,c;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return f.prototype=y.constructor=d,d.constructor=f,d[s]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},m(b.prototype),b.prototype[a]=function(){return this},t.AsyncIterator=b,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new b(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(y),y[s]="Generator",y[o]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=x,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(6)(t))},function(t,e,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleLinkService=e.PDFLinkService=void 0;var r=n(3);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}var u=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.eventBus,r=e.externalLinkTarget,i=void 0===r?null:r,a=e.externalLinkRel,s=void 0===a?null:a,u=e.externalLinkEnabled,l=void 0===u||u,c=e.ignoreDestinationZoom,h=void 0!==c&&c;o(this,t),this.eventBus=n,this.externalLinkTarget=i,this.externalLinkRel=s,this.externalLinkEnabled=l,this._ignoreDestinationZoom=h,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return s(t,[{key:"setDocument",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.baseUrl=e,this.pdfDocument=t,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(t){this.pdfViewer=t}},{key:"setHistory",value:function(t){this.pdfHistory=t}},{key:"navigateTo",value:function(t){var e=this;new Promise((function(n,r){"string"!=typeof t?n({namedDest:"",explicitDest:t}):e.pdfDocument.getDestination(t).then((function(e){n({namedDest:t,explicitDest:e})}))})).then((function(n){Array.isArray(n.explicitDest)?function n(r){var i,o=r.namedDest,a=r.explicitDest,s=a[0];if(s instanceof Object){if(null===(i=e._cachedPageNumber(s)))return void e.pdfDocument.getPageIndex(s).then((function(t){e.cachePageRef(t+1,s),n({namedDest:o,explicitDest:a})})).catch((function(){console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid page reference, for dest="'.concat(t,'".'))}))}else{if(!Number.isInteger(s))return void console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid destination reference, for dest="'.concat(t,'".'));i=s+1}!i||i<1||i>e.pagesCount?console.error('PDFLinkService.navigateTo: "'.concat(i,'" is not ')+'a valid page number, for dest="'.concat(t,'".')):(e.pdfHistory&&(e.pdfHistory.pushCurrentPosition(),e.pdfHistory.push({namedDest:o,explicitDest:a,pageNumber:i})),e.pdfViewer.scrollPageIntoView({pageNumber:i,destArray:a,ignoreDestinationZoom:e._ignoreDestinationZoom}))}(n):console.error('PDFLinkService.navigateTo: "'.concat(n.explicitDest,'" is')+' not a valid destination array, for dest="'.concat(t,'".'))}))}},{key:"getDestinationHash",value:function(t){if("string"==typeof t)return this.getAnchorUrl("#"+escape(t));if(Array.isArray(t)){var e=JSON.stringify(t);return this.getAnchorUrl("#"+escape(e))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(t){return(this.baseUrl||"")+t}},{key:"setHash",value:function(t){var e,n;if(t.includes("=")){var o=(0,r.parseQueryString)(t);if("search"in o&&this.eventBus.dispatch("findfromurlhash",{source:this,query:o.search.replace(/"/g,""),phraseSearch:"true"===o.phrase}),"page"in o&&(e=0|o.page||1),"zoom"in o){var a=o.zoom.split(","),s=a[0],u=parseFloat(s);s.includes("Fit")?"Fit"===s||"FitB"===s?n=[null,{name:s}]:"FitH"===s||"FitBH"===s||"FitV"===s||"FitBV"===s?n=[null,{name:s},a.length>1?0|a[1]:null]:"FitR"===s?5!==a.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:s},0|a[1],0|a[2],0|a[3],0|a[4]]:console.error('PDFLinkService.setHash: "'.concat(s,'" is not ')+"a valid zoom value."):n=[null,{name:"XYZ"},a.length>1?0|a[1]:null,a.length>2?0|a[2]:null,u?u/100:s]}n?this.pdfViewer.scrollPageIntoView({pageNumber:e||this.page,destArray:n,allowNegativeOffset:!0}):e&&(this.page=e),"pagemode"in o&&this.eventBus.dispatch("pagemode",{source:this,mode:o.pagemode}),"nameddest"in o&&this.navigateTo(o.nameddest)}else{n=unescape(t);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch(t){}if("string"==typeof n||function(t){if(!Array.isArray(t))return!1;var e=t.length;if(e<2)return!1;var n=t[0];if(!("object"===i(n)&&Number.isInteger(n.num)&&Number.isInteger(n.gen)||Number.isInteger(n)&&n>=0))return!1;var r=t[1];if("object"!==i(r)||"string"!=typeof r.name)return!1;var o=!0;switch(r.name){case"XYZ":if(5!==e)return!1;break;case"Fit":case"FitB":return 2===e;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==e)return!1;break;case"FitR":if(6!==e)return!1;o=!1;break;default:return!1}for(var a=2;a<e;a++){var s=t[a];if(!("number"==typeof s||o&&null===s))return!1}return!0}(n))return void this.navigateTo(n);console.error('PDFLinkService.setHash: "'.concat(unescape(t),'" is not ')+"a valid destination.")}}},{key:"executeNamedAction",value:function(t){switch(t){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page<this.pagesCount&&this.page++;break;case"PrevPage":this.page>1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:t})}},{key:"cachePageRef",value:function(t,e){if(e){var n=0===e.gen?"".concat(e.num,"R"):"".concat(e.num,"R").concat(e.gen);this._pagesRefCache[n]=t}}},{key:"_cachedPageNumber",value:function(t){var e=0===t.gen?"".concat(t.num,"R"):"".concat(t.num,"R").concat(t.gen);return this._pagesRefCache&&this._pagesRefCache[e]||null}},{key:"isPageVisible",value:function(t){return this.pdfViewer.isPageVisible(t)}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(t){this.pdfViewer.currentPageNumber=t}},{key:"rotation",get:function(){return this.pdfViewer.pagesRotation},set:function(t){this.pdfViewer.pagesRotation=t}}]),t}();e.PDFLinkService=u,window.PDFLinkService=u;var l=function(){function t(){o(this,t),this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}return s(t,[{key:"navigateTo",value:function(t){}},{key:"getDestinationHash",value:function(t){return"#"}},{key:"getAnchorUrl",value:function(t){return"#"}},{key:"setHash",value:function(t){}},{key:"executeNamedAction",value:function(t){}},{key:"cachePageRef",value:function(t,e){}},{key:"isPageVisible",value:function(t){return!0}},{key:"pagesCount",get:function(){return 0}},{key:"page",get:function(){return 0},set:function(t){}},{key:"rotation",get:function(){return 0},set:function(t){}}]),t}();e.SimpleLinkService=l},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultTextLayerFactory=e.TextLayerBuilder=void 0;var r=n(2);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=function(){function t(e){var n=e.textLayerDiv,r=e.eventBus,o=e.pageIndex,a=e.viewport,s=e.findController,u=void 0===s?null:s,l=e.enhanceTextSelection,c=void 0!==l&&l;i(this,t),this.textLayerDiv=n,this.eventBus=r,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=o,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=a,this.textDivs=[],this.findController=u,this.textLayerRenderTask=null,this.enhanceTextSelection=c,this._onUpdateTextLayerMatches=null,this._bindMouse()}return a(t,[{key:"_finishRendering",value:function(){if(this.renderingDone=!0,!this.enhanceTextSelection){var t=document.createElement("div");t.className="endOfContent",this.textLayerDiv.appendChild(t)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}},{key:"render",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs=[];var n=document.createDocumentFragment();this.textLayerRenderTask=(0,r.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:n,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:e,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then((function(){t.textLayerDiv.appendChild(n),t._finishRendering(),t._updateMatches()}),(function(t){})),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=function(e){e.pageIndex!==t.pageIdx&&-1!==e.pageIndex||t._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}}},{key:"cancel",value:function(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}},{key:"setTextContentStream",value:function(t){this.cancel(),this.textContentStream=t}},{key:"setTextContent",value:function(t){this.cancel(),this.textContent=t}},{key:"_convertMatches",value:function(t,e){if(!t)return[];for(var n=this.findController,r=this.textContentItemsStr,i=0,o=0,a=r.length-1,s=n.state.query.length,u=[],l=0,c=t.length;l<c;l++){for(var h=t[l];i!==a&&h>=o+r[i].length;)o+=r[i].length,i++;i===r.length&&console.error("Could not find a matching mapping");var f={begin:{divIdx:i,offset:h-o}};for(h+=e?e[l]:s;i!==a&&h>o+r[i].length;)o+=r[i].length,i++;f.end={divIdx:i,offset:h-o},u.push(f)}return u}},{key:"_renderMatches",value:function(t){if(0!==t.length){var e=this.findController,n=this.pageIdx,r=this.textContentItemsStr,i=this.textDivs,o=n===e.selected.pageIdx,a=e.selected.matchIdx,s=null,u={divIdx:-1,offset:void 0},l=a,c=l+1;if(e.state.highlightAll)l=0,c=t.length;else if(!o)return;for(var h=l;h<c;h++){var f=t[h],d=f.begin,p=f.end,v=o&&h===a,g=v?" selected":"";if(v&&e.scrollMatchIntoView({element:i[d.divIdx],pageIndex:n,matchIndex:a}),s&&d.divIdx===s.divIdx?_(s.divIdx,s.offset,d.offset):(null!==s&&_(s.divIdx,s.offset,u.offset),b(d)),d.divIdx===p.divIdx)_(d.divIdx,d.offset,p.offset,"highlight"+g);else{_(d.divIdx,d.offset,u.offset,"highlight begin"+g);for(var y=d.divIdx+1,m=p.divIdx;y<m;y++)i[y].className="highlight middle"+g;b(p,"highlight end"+g)}s=p}s&&_(s.divIdx,s.offset,u.offset)}function b(t,e){var n=t.divIdx;i[n].textContent="",_(n,0,t.offset,e)}function _(t,e,n,o){var a=i[t],s=r[t].substring(e,n),u=document.createTextNode(s);if(o){var l=document.createElement("span");return l.className=o,l.appendChild(u),void a.appendChild(l)}a.appendChild(u)}}},{key:"_updateMatches",value:function(){if(this.renderingDone){for(var t=this.findController,e=this.matches,n=this.pageIdx,r=this.textContentItemsStr,i=this.textDivs,o=-1,a=0,s=e.length;a<s;a++){for(var u=e[a],l=Math.max(o,u.begin.divIdx),c=u.end.divIdx;l<=c;l++){var h=i[l];h.textContent=r[l],h.className=""}o=u.end.divIdx+1}if(t&&t.highlightMatches){var f=t.pageMatches[n]||null,d=t.pageMatchesLength[n]||null;this.matches=this._convertMatches(f,d),this._renderMatches(this.matches)}}}},{key:"_bindMouse",value:function(){var t=this,e=this.textLayerDiv,n=null;e.addEventListener("mousedown",(function(r){if(t.enhanceTextSelection&&t.textLayerRenderTask)return t.textLayerRenderTask.expandTextDivs(!0),void(n&&(clearTimeout(n),n=null));var i=e.querySelector(".endOfContent");if(i){var o=r.target!==e;if(o=o&&"none"!==window.getComputedStyle(i).getPropertyValue("-moz-user-select")){var a=e.getBoundingClientRect(),s=Math.max(0,(r.pageY-a.top)/a.height);i.style.top=(100*s).toFixed(2)+"%"}i.classList.add("active")}})),e.addEventListener("mouseup",(function(){if(t.enhanceTextSelection&&t.textLayerRenderTask)n=setTimeout((function(){t.textLayerRenderTask&&t.textLayerRenderTask.expandTextDivs(!1),n=null}),300);else{var r=e.querySelector(".endOfContent");r&&(r.style.top="",r.classList.remove("active"))}}))}}]),t}();e.TextLayerBuilder=s;var u=function(){function t(){i(this,t)}return a(t,[{key:"createTextLayerBuilder",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return new s({textLayerDiv:t,pageIndex:e,viewport:n,enhanceTextSelection:r,eventBus:i})}}]),t}();e.DefaultTextLayerFactory=u},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.DownloadManager=void 0;var r=n(2);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=n(10).viewerCompatibilityParams.disableCreateObjectURL||!1;function a(t,e){var n=document.createElement("a");if(!n.click)throw new Error('DownloadManager: "a.click()" is not supported.');n.href=t,n.target="_parent","download"in n&&(n.download=e),(document.body||document.documentElement).appendChild(n),n.click(),n.remove()}var s=function(){function t(e){var n=e.disableCreateObjectURL,r=void 0===n?o:n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.disableCreateObjectURL=r}var e,n,s;return e=t,(n=[{key:"downloadUrl",value:function(t,e){(0,r.createValidAbsoluteUrl)(t,"http://example.com")&&a(t+"#pdfjs.action=download",e)}},{key:"downloadData",value:function(t,e,n){navigator.msSaveBlob?navigator.msSaveBlob(new Blob([t],{type:n}),e):a((0,r.createObjectURL)(t,n,this.disableCreateObjectURL),e)}},{key:"download",value:function(t,e,n){navigator.msSaveBlob?navigator.msSaveBlob(t,n)||this.downloadUrl(e,n):this.disableCreateObjectURL?this.downloadUrl(e,n):a(URL.createObjectURL(t),n)}}])&&i(e.prototype,n),s&&i(e,s),t}();e.DownloadManager=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.viewerCompatibilityParams=void 0;var r=Object.create(null),i="undefined"!=typeof navigator&&navigator.userAgent||"",o="undefined"!=typeof navigator&&navigator.platform||"",a="undefined"!=typeof navigator&&navigator.maxTouchPoints||1,s=/Android/.test(i),u=/Trident/.test(i),l=/\b(iPad|iPhone|iPod)(?=;)/.test(i)||"MacIntel"===o&&a>1,c=/CriOS/.test(i);(u||c)&&(r.disableCreateObjectURL=!0),(l||s)&&(r.maxCanvasPixels=5242880);var h=Object.freeze(r);e.viewerCompatibilityParams=h},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.GenericL10n=void 0;var r,i=(r=n(4))&&r.__esModule?r:{default:r};function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,"next",t)}function u(t){o(a,r,i,s,u,"throw",t)}s(void 0)}))}}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n(12);var u=document.webL10n,l=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._lang=e,this._ready=new Promise((function(t,n){u.setLanguage(e,(function(){t(u)}))}))}var e,n,r,o,l,c,h;return e=t,(n=[{key:"getLanguage",value:(h=a(i.default.mark((function t(){var e;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready;case 2:return e=t.sent,t.abrupt("return",e.getLanguage());case 4:case"end":return t.stop()}}),t,this)}))),function(){return h.apply(this,arguments)})},{key:"getDirection",value:(c=a(i.default.mark((function t(){var e;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready;case 2:return e=t.sent,t.abrupt("return",e.getDirection());case 4:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"get",value:(l=a(i.default.mark((function t(e,n,r){var o;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready;case 2:return o=t.sent,t.abrupt("return",o.get(e,n,r));case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return l.apply(this,arguments)})},{key:"translate",value:(o=a(i.default.mark((function t(e){var n;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready;case 2:return n=t.sent,t.abrupt("return",n.translate(e));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})}])&&s(e.prototype,n),r&&s(e,r),t}();e.GenericL10n=l},function(t,e,n){document.webL10n=function(t,e,n){var r={},i="",o="textContent",a="",s={},u="loading";function l(t,e,n){e=e||function(t){},n=n||function(){};var r=new XMLHttpRequest;r.open("GET",t,!0),r.overrideMimeType&&r.overrideMimeType("text/plain; charset=utf-8"),r.onreadystatechange=function(){4==r.readyState&&(200==r.status||0===r.status?e(r.responseText):n())},r.onerror=n,r.ontimeout=n;try{r.send(null)}catch(t){n()}}function c(t,e,n,a){var s=t.replace(/[^\/]*$/,"")||"./";function u(t){return t.lastIndexOf("\\")<0?t:t.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}l(t,(function(t){i+=t,function(t,n){var r={},i=/^\s*|\s*$/,o=/^\s*#|^\s*$/,a=/^\s*\[(.*)\]\s*$/,c=/^\s*@import\s+url\((.*)\)\s*$/i,h=/^([^=\s]*)\s*=\s*(.+)$/;function f(t,n,l){var f=t.replace(i,"").split(/[\r\n]+/),p="*",v=e.split("-",1)[0],g=!1,y="";!function t(){for(;;){if(!f.length)return void l();var i=f.shift();if(!o.test(i)){if(n){if(y=a.exec(i)){p=y[1].toLowerCase(),g="*"!==p&&p!==e&&p!==v;continue}if(g)continue;if(y=c.exec(i))return void d(s+y[1],t)}var m=i.match(h);m&&3==m.length&&(r[m[1]]=u(m[2]))}}}()}function d(t,e){l(t,(function(t){f(t,!1,e)}),(function(){console.warn(t+" not found."),e()}))}f(t,!0,(function(){n(r)}))}(t,(function(t){for(var e in t){var i,a,s=e.lastIndexOf(".");s>0?(i=e.substring(0,s),a=e.substring(s+1)):(i=e,a=o),r[i]||(r[i]={}),r[i][a]=t[e]}n&&n()}))}),a)}function h(t,n){t&&(t=t.toLowerCase()),n=n||function(){},r={},i="",a="",a=t;var o=e.querySelectorAll('link[type="application/l10n"]'),s=o.length;if(0!==s){var l,h,f=0;h=function(){++f>=s&&(n(),u="complete")};for(var d=0;d<s;d++)new y(o[d]).load(t,h)}else{var p=(l=e.querySelector('script[type="application/l10n"]'))?JSON.parse(l.innerHTML):null;if(p&&p.locales&&p.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(r=p.locales[t])){var v=p.default_locale.toLowerCase();for(var g in p.locales){if((g=g.toLowerCase())===t){r=p.locales[t];break}g===v&&(r=p.locales[v])}}n()}else console.log("no resource to load, early way out");u="complete"}function y(t){var e=t.href;this.load=function(t,n){c(e,t,n,(function(){console.warn(e+" not found."),console.warn('"'+t+'" resource not found'),a="",n()}))}}}function f(t,e,n){var i=r[t];if(!i){if(console.warn("#"+t+" is undefined."),!n)return null;i=n}var o={};for(var a in i){var s=i[a];s=p(s=d(s,e,t,a),e,t),o[a]=s}return o}function d(t,e,n,i){var o=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(t);if(!o||!o.length)return t;var a,u=o[1],l=o[2];return e&&l in e?a=e[l]:l in r&&(a=r[l]),u in s&&(t=(0,s[u])(t,a,n,i)),t}function p(t,e,n){return t.replace(/\{\{\s*(.+?)\s*\}\}/g,(function(t,i){return e&&i in e?e[i]:i in r?r[i]:(console.log("argument {{"+i+"}} for #"+n+" is undefined."),t)}))}function v(t){var n=function(t){if(!t)return{};var e=t.getAttribute("data-l10n-id"),n=t.getAttribute("data-l10n-args"),r={};if(n)try{r=JSON.parse(n)}catch(t){console.warn("could not parse arguments for #"+e)}return{id:e,args:r}}(t);if(n.id){var r=f(n.id,n.args);if(r){if(r[o]){if(0===function(t){if(t.children)return t.children.length;if(void 0!==t.childElementCount)return t.childElementCount;for(var e=0,n=0;n<t.childNodes.length;n++)e+=1===t.nodeType?1:0;return e}(t))t[o]=r[o];else{for(var i=t.childNodes,a=!1,s=0,u=i.length;s<u;s++)3===i[s].nodeType&&/\S/.test(i[s].nodeValue)&&(a?i[s].nodeValue="":(i[s].nodeValue=r[o],a=!0));if(!a){var l=e.createTextNode(r[o]);t.insertBefore(l,t.firstChild)}}delete r[o]}for(var c in r)t[c]=r[c]}else console.warn("#"+n.id+" is undefined.")}}return s.plural=function(t,e,n,i){var u=parseFloat(e);if(isNaN(u))return t;if(i!=o)return t;s._pluralRules||(s._pluralRules=function(t){function e(t,e){return-1!==e.indexOf(t)}function n(t,e,n){return e<=t&&t<=n}var r={0:function(t){return"other"},1:function(t){return n(t%100,3,10)?"few":0===t?"zero":n(t%100,11,99)?"many":2==t?"two":1==t?"one":"other"},2:function(t){return 0!==t&&t%10==0?"many":2==t?"two":1==t?"one":"other"},3:function(t){return 1==t?"one":"other"},4:function(t){return n(t,0,1)?"one":"other"},5:function(t){return n(t,0,2)&&2!=t?"one":"other"},6:function(t){return 0===t?"zero":t%10==1&&t%100!=11?"one":"other"},7:function(t){return 2==t?"two":1==t?"one":"other"},8:function(t){return n(t,3,6)?"few":n(t,7,10)?"many":2==t?"two":1==t?"one":"other"},9:function(t){return 0===t||1!=t&&n(t%100,1,19)?"few":1==t?"one":"other"},10:function(t){return n(t%10,2,9)&&!n(t%100,11,19)?"few":t%10!=1||n(t%100,11,19)?"other":"one"},11:function(t){return n(t%10,2,4)&&!n(t%100,12,14)?"few":t%10==0||n(t%10,5,9)||n(t%100,11,14)?"many":t%10==1&&t%100!=11?"one":"other"},12:function(t){return n(t,2,4)?"few":1==t?"one":"other"},13:function(t){return n(t%10,2,4)&&!n(t%100,12,14)?"few":1!=t&&n(t%10,0,1)||n(t%10,5,9)||n(t%100,12,14)?"many":1==t?"one":"other"},14:function(t){return n(t%100,3,4)?"few":t%100==2?"two":t%100==1?"one":"other"},15:function(t){return 0===t||n(t%100,2,10)?"few":n(t%100,11,19)?"many":1==t?"one":"other"},16:function(t){return t%10==1&&11!=t?"one":"other"},17:function(t){return 3==t?"few":0===t?"zero":6==t?"many":2==t?"two":1==t?"one":"other"},18:function(t){return 0===t?"zero":n(t,0,2)&&0!==t&&2!=t?"one":"other"},19:function(t){return n(t,2,10)?"few":n(t,0,1)?"one":"other"},20:function(t){return!n(t%10,3,4)&&t%10!=9||n(t%100,10,19)||n(t%100,70,79)||n(t%100,90,99)?t%1e6==0&&0!==t?"many":t%10!=2||e(t%100,[12,72,92])?t%10!=1||e(t%100,[11,71,91])?"other":"one":"two":"few"},21:function(t){return 0===t?"zero":1==t?"one":"other"},22:function(t){return n(t,0,1)||n(t,11,99)?"one":"other"},23:function(t){return n(t%10,1,2)||t%20==0?"one":"other"},24:function(t){return n(t,3,10)||n(t,13,19)?"few":e(t,[2,12])?"two":e(t,[1,11])?"one":"other"}},i={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3}[t.replace(/-.*$/,"")];return i in r?r[i]:(console.warn("plural form unknown for ["+t+"]"),function(){return"other"})}(a));var l="["+s._pluralRules(u)+"]";return 0===u&&n+"[zero]"in r?t=r[n+"[zero]"][i]:1==u&&n+"[one]"in r?t=r[n+"[one]"][i]:2==u&&n+"[two]"in r?t=r[n+"[two]"][i]:n+l in r?t=r[n+l][i]:n+"[other]"in r&&(t=r[n+"[other]"][i]),t},{get:function(t,e,n){var r,i=t.lastIndexOf("."),a=o;i>0&&(a=t.substring(i+1),t=t.substring(0,i)),n&&((r={})[a]=n);var s=f(t,e,r);return s&&a in s?s[a]:"{{"+t+"}}"},getData:function(){return r},getText:function(){return i},getLanguage:function(){return a},setLanguage:function(t,e){h(t,(function(){e&&e()}))},getDirection:function(){var t=a.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(t)>=0?"rtl":"ltr"},translate:function(t){for(var n=function(t){return t?t.querySelectorAll("*[data-l10n-id]"):[]}(t=t||e.documentElement),r=n.length,i=0;i<r;i++)v(n[i]);v(t)},getReadyState:function(){return u},ready:function(n){n&&("complete"==u||"interactive"==u?t.setTimeout((function(){n()})):e.addEventListener&&e.addEventListener("localized",(function t(){e.removeEventListener("localized",t),n()})))}}}(window,document)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.PDFFindController=e.FindState=void 0;var r=n(2),i=n(14),o=n(3);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};e.FindState=s;var u={"‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},l=null;function c(t){if(!l){var e=Object.keys(u).join("");l=new RegExp("[".concat(e,"]"),"g")}return t.replace(l,(function(t){return u[t]}))}var h=function(){function t(e){var n=e.linkService,r=e.eventBus;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._linkService=n,this._eventBus=r,this._reset(),r._on("findbarclose",this._onFindBarClose.bind(this))}var e,n,u;return e=t,(n=[{key:"setDocument",value:function(t){this._pdfDocument&&this._reset(),t&&(this._pdfDocument=t,this._firstPageCapability.resolve())}},{key:"executeCommand",value:function(t,e){var n=this;if(e){var r=this._pdfDocument;(null===this._state||this._shouldDirtyMatch(t,e))&&(this._dirtyMatch=!0),this._state=e,"findhighlightallchange"!==t&&this._updateUIState(s.PENDING),this._firstPageCapability.promise.then((function(){if(n._pdfDocument&&(!r||n._pdfDocument===r)){n._extractText();var e=!n._highlightMatches,i=!!n._findTimeout;n._findTimeout&&(clearTimeout(n._findTimeout),n._findTimeout=null),"find"===t?n._findTimeout=setTimeout((function(){n._nextMatch(),n._findTimeout=null}),250):n._dirtyMatch?n._nextMatch():"findagain"===t?(n._nextMatch(),e&&n._state.highlightAll&&n._updateAllPages()):"findhighlightallchange"===t?(i?n._nextMatch():n._highlightMatches=!0,n._updateAllPages()):n._nextMatch()}}))}}},{key:"scrollMatchIntoView",value:function(t){var e=t.element,n=void 0===e?null:e,r=t.pageIndex,i=void 0===r?-1:r,a=t.matchIndex,s=void 0===a?-1:a;if(this._scrollMatches&&n&&-1!==s&&s===this._selected.matchIdx&&-1!==i&&i===this._selected.pageIdx){this._scrollMatches=!1;var u={top:-50,left:-400};(0,o.scrollIntoView)(n,u,!0)}}},{key:"_reset",value:function(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=Object.create(null),this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,r.createPromiseCapability)()}},{key:"_shouldDirtyMatch",value:function(t,e){if(e.query!==this._state.query)return!0;switch(t){case"findagain":var n=this._selected.pageIdx+1,r=this._linkService;return n>=1&&n<=r.pagesCount&&n!==r.page&&!r.isPageVisible(n);case"findhighlightallchange":return!1}return!0}},{key:"_prepareMatches",value:function(t,e,n){function r(e){var n=t[e],r=t[e+1];if(e<t.length-1&&n.match===r.match)return n.skipped=!0,!0;for(var i=e-1;i>=0;i--){var o=t[i];if(!o.skipped){if(o.match+o.matchLength<n.match)break;if(o.match+o.matchLength>=n.match+n.matchLength)return n.skipped=!0,!0}}return!1}t.sort((function(t,e){return t.match===e.match?t.matchLength-e.matchLength:t.match-e.match}));for(var i=0,o=t.length;i<o;i++)r(i)||(e.push(t[i].match),n.push(t[i].matchLength))}},{key:"_isEntireWord",value:function(t,e,n){if(e>0){var r=t.charCodeAt(e),o=t.charCodeAt(e-1);if((0,i.getCharacterType)(r)===(0,i.getCharacterType)(o))return!1}var a=e+n-1;if(a<t.length-1){var s=t.charCodeAt(a),u=t.charCodeAt(a+1);if((0,i.getCharacterType)(s)===(0,i.getCharacterType)(u))return!1}return!0}},{key:"_calculatePhraseMatch",value:function(t,e,n,r){for(var i=[],o=t.length,a=-o;-1!==(a=n.indexOf(t,a+o));)r&&!this._isEntireWord(n,a,o)||i.push(a);this._pageMatches[e]=i}},{key:"_calculateWordMatch",value:function(t,e,n,r){for(var i=[],o=t.match(/\S+/g),a=0,s=o.length;a<s;a++)for(var u=o[a],l=u.length,c=-l;-1!==(c=n.indexOf(u,c+l));)r&&!this._isEntireWord(n,c,l)||i.push({match:c,matchLength:l,skipped:!1});this._pageMatchesLength[e]=[],this._pageMatches[e]=[],this._prepareMatches(i,this._pageMatches[e],this._pageMatchesLength[e])}},{key:"_calculateMatch",value:function(t){var e=this._pageContents[t],n=this._query,r=this._state,i=r.caseSensitive,o=r.entireWord,a=r.phraseSearch;if(0!==n.length){i||(e=e.toLowerCase(),n=n.toLowerCase()),a?this._calculatePhraseMatch(n,t,e,o):this._calculateWordMatch(n,t,e,o),this._state.highlightAll&&this._updatePage(t),this._resumePageIdx===t&&(this._resumePageIdx=null,this._nextPageMatch());var s=this._pageMatches[t].length;s>0&&(this._matchesCountTotal+=s,this._updateUIResultsCount())}}},{key:"_extractText",value:function(){var t=this;if(!(this._extractTextPromises.length>0))for(var e=Promise.resolve(),n=function(n,i){var o=(0,r.createPromiseCapability)();t._extractTextPromises[n]=o.promise,e=e.then((function(){return t._pdfDocument.getPage(n+1).then((function(t){return t.getTextContent({normalizeWhitespace:!0})})).then((function(e){for(var r=e.items,i=[],a=0,s=r.length;a<s;a++)i.push(r[a].str);t._pageContents[n]=c(i.join("")),o.resolve(n)}),(function(e){console.error("Unable to get text content for page ".concat(n+1),e),t._pageContents[n]="",o.resolve(n)}))}))},i=0,o=this._linkService.pagesCount;i<o;i++)n(i)}},{key:"_updatePage",value:function(t){this._scrollMatches&&this._selected.pageIdx===t&&(this._linkService.page=t+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:t})}},{key:"_updateAllPages",value:function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}},{key:"_nextMatch",value:function(){var t=this,e=this._state.findPrevious,n=this._linkService.page-1,r=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=n,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this._updateAllPages();for(var i=0;i<r;i++)!0!==this._pendingFindMatches[i]&&(this._pendingFindMatches[i]=!0,this._extractTextPromises[i].then((function(e){delete t._pendingFindMatches[e],t._calculateMatch(e)})))}if(""!==this._query){if(!this._resumePageIdx){var o=this._offset;if(this._pagesToSearch=r,null!==o.matchIdx){var a=this._pageMatches[o.pageIdx].length;if(!e&&o.matchIdx+1<a||e&&o.matchIdx>0)return o.matchIdx=e?o.matchIdx-1:o.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(e)}this._nextPageMatch()}}else this._updateUIState(s.FOUND)}},{key:"_matchesReady",value:function(t){var e=this._offset,n=t.length,r=this._state.findPrevious;return n?(e.matchIdx=r?n-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(r),!!(e.wrapped&&(e.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}},{key:"_nextPageMatch",value:function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");var t=null;do{var e=this._offset.pageIdx;if(!(t=this._pageMatches[e])){this._resumePageIdx=e;break}}while(!this._matchesReady(t))}},{key:"_advanceOffsetPage",value:function(t){var e=this._offset,n=this._linkService.pagesCount;e.pageIdx=t?e.pageIdx-1:e.pageIdx+1,e.matchIdx=null,this._pagesToSearch--,(e.pageIdx>=n||e.pageIdx<0)&&(e.pageIdx=t?n-1:0,e.wrapped=!0)}},{key:"_updateMatch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=s.NOT_FOUND,n=this._offset.wrapped;if(this._offset.wrapped=!1,t){var r=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,e=n?s.WRAPPED:s.FOUND,-1!==r&&r!==this._selected.pageIdx&&this._updatePage(r)}this._updateUIState(e,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}},{key:"_onFindBarClose",value:function(t){var e=this,n=this._pdfDocument;this._firstPageCapability.promise.then((function(){!e._pdfDocument||n&&e._pdfDocument!==n||(e._findTimeout&&(clearTimeout(e._findTimeout),e._findTimeout=null),e._resumePageIdx&&(e._resumePageIdx=null,e._dirtyMatch=!0),e._updateUIState(s.FOUND),e._highlightMatches=!1,e._updateAllPages())}))}},{key:"_requestMatchesCount",value:function(){var t=this._selected,e=t.pageIdx,n=t.matchIdx,r=0,i=this._matchesCountTotal;if(-1!==n){for(var o=0;o<e;o++)r+=this._pageMatches[o]&&this._pageMatches[o].length||0;r+=n+1}return(r<1||r>i)&&(r=i=0),{current:r,total:i}}},{key:"_updateUIResultsCount",value:function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}},{key:"_updateUIState",value:function(t,e){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:t,previous:e,matchesCount:this._requestMatchesCount()})}},{key:"highlightMatches",get:function(){return this._highlightMatches}},{key:"pageMatches",get:function(){return this._pageMatches}},{key:"pageMatchesLength",get:function(){return this._pageMatchesLength}},{key:"selected",get:function(){return this._selected}},{key:"state",get:function(){return this._state}},{key:"_query",get:function(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,this._normalizedQuery=c(this._state.query)),this._normalizedQuery}}])&&a(e.prototype,n),u&&a(e,u),t}();e.PDFFindController=h},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.getCharacterType=function(t){return function(t){return t<11904}(t)?function(t){return 0==(65408&t)}(t)?function(t){return 32===t||9===t||13===t||10===t}(t)?r.SPACE:function(t){return t>=97&&t<=122||t>=65&&t<=90}(t)||function(t){return t>=48&&t<=57}(t)||95===t?r.ALPHA_LETTER:r.PUNCT:function(t){return 3584==(65408&t)}(t)?r.THAI_LETTER:160===t?r.SPACE:r.ALPHA_LETTER:function(t){return t>=13312&&t<=40959||t>=63744&&t<=64255}(t)?r.HAN_LETTER:function(t){return t>=12448&&t<=12543}(t)?r.KATAKANA_LETTER:function(t){return t>=12352&&t<=12447}(t)?r.HIRAGANA_LETTER:function(t){return t>=65376&&t<=65439}(t)?r.HALFWIDTH_KATAKANA_LETTER:r.ALPHA_LETTER},e.CharacterType=void 0;var r={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};e.CharacterType=r},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.isDestHashesEqual=h,e.isDestArraysEqual=f,e.PDFHistory=void 0;var r=n(3);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(){return document.location.hash}var c=function(){function t(e){var n=this,r=e.linkService,i=e.eventBus;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.linkService=r,this.eventBus=i,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",(function(t){n._isViewerInPresentationMode=t.active||t.switchInProgress})),this.eventBus._on("pagesinit",(function(){n._isPagesLoaded=!1,n.eventBus._on("pagesloaded",(function t(e){n.eventBus._off("pagesloaded",t),n._isPagesLoaded=!!e.pagesCount}))}))}var e,n,s;return e=t,(n=[{key:"initialize",value:function(t){var e=t.fingerprint,n=t.resetHistory,r=void 0!==n&&n,i=t.updateUrl,o=void 0!==i&&i;if(e&&"string"==typeof e){this._initialized&&this.reset();var a=""!==this._fingerprint&&this._fingerprint!==e;this._fingerprint=e,this._updateUrl=!0===o,this._initialized=!0,this._bindEvents();var s=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=l(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(s,!0)||r){var u=this._parseCurrentHash(!0),c=u.hash,h=u.page,f=u.rotation;return!c||a||r?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:c,page:h,rotation:f},!0)}var d=s.destination;this._updateInternalState(d,s.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),void 0!==d.rotation&&(this._initialRotation=d.rotation),d.dest?(this._initialBookmark=JSON.stringify(d.dest),this._destination.page=null):d.hash?this._initialBookmark=d.hash:d.page&&(this._initialBookmark="page=".concat(d.page))}else console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')}},{key:"reset",value:function(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}},{key:"push",value:function(t){var e=this,n=t.namedDest,r=void 0===n?null:n,i=t.explicitDest,o=t.pageNumber;if(this._initialized)if(r&&"string"!=typeof r)console.error("PDFHistory.push: "+'"'.concat(r,'" is not a valid namedDest parameter.'));else if(Array.isArray(i))if(Number.isInteger(o)&&o>0&&o<=this.linkService.pagesCount||null===o&&!this._destination){var a=r||JSON.stringify(i);if(a){var s=!1;if(this._destination&&(h(this._destination.hash,a)||f(this._destination.dest,i))){if(this._destination.page)return;s=!0}this._popStateInProgress&&!s||(this._pushOrReplaceState({dest:i,hash:a,page:o,rotation:this.linkService.rotation},s),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then((function(){e._popStateInProgress=!1}))))}}else console.error("PDFHistory.push: "+'"'.concat(o,'" is not a valid pageNumber parameter.'));else console.error("PDFHistory.push: "+'"'.concat(i,'" is not a valid explicitDest parameter.'))}},{key:"pushCurrentPosition",value:function(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}},{key:"back",value:function(){if(this._initialized&&!this._popStateInProgress){var t=window.history.state;this._isValidState(t)&&t.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this._initialized&&!this._popStateInProgress){var t=window.history.state;this._isValidState(t)&&t.uid<this._maxUid&&window.history.forward()}}},{key:"_pushOrReplaceState",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n||!this._destination,i={fingerprint:this._fingerprint,uid:r?this._uid:this._uid+1,destination:t};if(this._updateInternalState(t,i.uid),this._updateUrl&&t&&t.hash){var o=document.location.href.split("#")[0];o.startsWith("file://")||(e="".concat(o,"#").concat(t.hash))}r?window.history.replaceState(i,"",e):(this._maxUid=this._uid,window.history.pushState(i,"",e))}},{key:"_tryPushCurrentPosition",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._position){var e=this._position;if(t&&((e=Object(o.a)(Object.create(null),this._position)).temporary=!0),this._destination){if(this._destination.temporary)this._pushOrReplaceState(e,!0);else if(this._destination.hash!==e.hash&&(this._destination.page||!(this._numPositionUpdates<=50))){var n=!1;if(this._destination.page>=e.first&&this._destination.page<=e.page){if(this._destination.dest||!this._destination.first)return;n=!0}this._pushOrReplaceState(e,n)}}else this._pushOrReplaceState(e)}}},{key:"_isValidState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return!1;if(t.fingerprint!==this._fingerprint){if(!e)return!1;if("string"!=typeof t.fingerprint||t.fingerprint.length!==this._fingerprint.length)return!1;var n=performance.getEntriesByType("navigation"),r=a(n,1),o=r[0];if(!o||"reload"!==o.type)return!1}return!(!Number.isInteger(t.uid)||t.uid<0)&&null!==t.destination&&"object"===i(t.destination)}},{key:"_updateInternalState",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&t&&t.temporary&&delete t.temporary,this._destination=t,this._uid=e,this._numPositionUpdates=0}},{key:"_parseCurrentHash",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=unescape(l()).substring(1),n=(0,r.parseQueryString)(e),i=n.nameddest||"",o=0|n.page;return Number.isInteger(o)&&o>0&&o<=this.linkService.pagesCount&&!(t&&i.length>0)||(o=null),{hash:e,page:o,rotation:this.linkService.rotation}}},{key:"_updateViewarea",value:function(t){var e=this,n=t.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?"page=".concat(n.pageNumber):n.pdfOpenParams.substring(1),page:this.linkService.page,first:n.pageNumber,rotation:n.rotation},this._popStateInProgress||(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout((function(){e._popStateInProgress||e._tryPushCurrentPosition(!0),e._updateViewareaTimeout=null}),1e3))}},{key:"_popState",value:function(t){var e=this,n=t.state,i=l(),o=this._currentHash!==i;if(this._currentHash=i,n){if(this._isValidState(n)){this._popStateInProgress=!0,o&&(this._blockHashChange++,(0,r.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then((function(){e._blockHashChange--})));var a=n.destination;this._updateInternalState(a,n.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,r.isValidRotation)(a.rotation)&&(this.linkService.rotation=a.rotation),a.dest?this.linkService.navigateTo(a.dest):a.hash?this.linkService.setHash(a.hash):a.page&&(this.linkService.page=a.page),Promise.resolve().then((function(){e._popStateInProgress=!1}))}}else{this._uid++;var s=this._parseCurrentHash(),u=s.hash,c=s.page,h=s.rotation;this._pushOrReplaceState({hash:u,page:c,rotation:h},!0)}}},{key:"_pageHide",value:function(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}},{key:"_bindEvents",value:function(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}},{key:"_unbindEvents",value:function(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}},{key:"popStateInProgress",get:function(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}},{key:"initialBookmark",get:function(){return this._initialized?this._initialBookmark:null}},{key:"initialRotation",get:function(){return this._initialized?this._initialRotation:null}}])&&u(e.prototype,n),s&&u(e,s),t}();function h(t,e){return"string"==typeof t&&"string"==typeof e&&(t===e||(0,r.parseQueryString)(t).nameddest===e)}function f(t,e){function n(t,e){if(i(t)!==i(e))return!1;if(Array.isArray(t)||Array.isArray(e))return!1;if(null!==t&&"object"===i(t)&&null!==e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var r in t)if(!n(t[r],e[r]))return!1;return!0}return t===e||Number.isNaN(t)&&Number.isNaN(e)}if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t.length!==e.length)return!1;for(var r=0,o=t.length;r<o;r++)if(!n(t[r],e[r]))return!1;return!0}e.PDFHistory=c},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.PDFPageView=void 0;var r,i=(r=n(4))&&r.__esModule?r:{default:r},o=n(3),a=n(2),s=n(17);function u(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var c=n(10).viewerCompatibilityParams.maxCanvasPixels||16777216,h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=e.container,r=e.defaultViewport;this.id=e.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=e.scale||o.DEFAULT_SCALE,this.viewport=r,this.pdfPageRotate=r.rotation,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(e.textLayerMode)?e.textLayerMode:o.TextLayerMode.ENABLE,this.imageResourcesPath=e.imageResourcesPath||"",this.renderInteractiveForms=e.renderInteractiveForms||!1,this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels||c,this.eventBus=e.eventBus,this.renderingQueue=e.renderingQueue,this.textLayerFactory=e.textLayerFactory,this.annotationLayerFactory=e.annotationLayerFactory,this.renderer=e.renderer||o.RendererType.CANVAS,this.enableWebGL=e.enableWebGL||!1,this.l10n=e.l10n||o.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=s.RenderingStates.INITIAL,this.resume=null,this.error=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null;var i=document.createElement("div");i.className="page",i.style.width=Math.floor(this.viewport.width)+"px",i.style.height=Math.floor(this.viewport.height)+"px",i.setAttribute("data-page-number",this.id),this.div=i,n.appendChild(i)}var e,n,r;return e=t,(n=[{key:"setPdfPage",value:function(t){this.pdfPage=t,this.pdfPageRotate=t.rotate;var e=(this.rotation+this.pdfPageRotate)%360;this.viewport=t.getViewport({scale:this.scale*o.CSS_UNITS,rotation:e}),this.stats=t.stats,this.reset()}},{key:"destroy",value:function(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}},{key:"_resetZoomLayer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.zoomLayer){var e=this.zoomLayer.firstChild;this.paintedViewportMap.delete(e),e.width=0,e.height=0,t&&this.zoomLayer.remove(),this.zoomLayer=null}}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.cancelRendering(e),this.renderingState=s.RenderingStates.INITIAL;var n=this.div;n.style.width=Math.floor(this.viewport.width)+"px",n.style.height=Math.floor(this.viewport.height)+"px";for(var r=n.childNodes,i=t&&this.zoomLayer||null,o=e&&this.annotationLayer&&this.annotationLayer.div||null,a=r.length-1;a>=0;a--){var u=r[a];i!==u&&o!==u&&n.removeChild(u)}n.removeAttribute("data-loaded"),o?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),i||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",n.appendChild(this.loadingIconDiv)}},{key:"update",value:function(t,e){this.scale=t||this.scale,void 0!==e&&(this.rotation=e);var n=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*o.CSS_UNITS,rotation:n}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});var r=!1;if(this.canvas&&this.maxCanvasPixels>0){var i=this.outputScale;(Math.floor(this.viewport.width)*i.sx|0)*(Math.floor(this.viewport.height)*i.sy|0)>this.maxCanvasPixels&&(r=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&r)return this.cssTransform(this.canvas,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});this.zoomLayer||this.canvas.hasAttribute("hidden")||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}},{key:"cancelRendering",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!t&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}},{key:"cssTransform",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.viewport.width,r=this.viewport.height,i=this.div;t.style.width=t.parentNode.style.width=i.style.width=Math.floor(n)+"px",t.style.height=t.parentNode.style.height=i.style.height=Math.floor(r)+"px";var o=this.viewport.rotation-this.paintedViewportMap.get(t).rotation,a=Math.abs(o),s=1,u=1;90!==a&&270!==a||(s=r/n,u=n/r);var l="rotate("+o+"deg) scale("+s+","+u+")";if(t.style.transform=l,this.textLayer){var c=this.textLayer.viewport,h=this.viewport.rotation-c.rotation,f=Math.abs(h),d=n/c.width;90!==f&&270!==f||(d=n/c.height);var p,v,g=this.textLayer.textLayerDiv;switch(f){case 0:p=v=0;break;case 90:p=0,v="-"+g.style.height;break;case 180:p="-"+g.style.width,v="-"+g.style.height;break;case 270:p="-"+g.style.width,v=0;break;default:console.error("Bad rotation value.")}g.style.transform="rotate("+f+"deg) scale("+d+", "+d+") translate("+p+", "+v+")",g.style.transformOrigin="0% 0%"}e&&this.annotationLayer&&this.annotationLayer.render(this.viewport,"display")}},{key:"getPagePoint",value:function(t,e){return this.viewport.convertToPdfPoint(t,e)}},{key:"draw",value:function(){var t=this;this.renderingState!==s.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());var e=this.div,n=this.pdfPage;if(!n)return this.renderingState=s.RenderingStates.FINISHED,this.loadingIconDiv&&(e.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=s.RenderingStates.RUNNING;var r=document.createElement("div");r.style.width=e.style.width,r.style.height=e.style.height,r.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?e.insertBefore(r,this.annotationLayer.div):e.appendChild(r);var l=null;if(this.textLayerMode!==o.TextLayerMode.DISABLE&&this.textLayerFactory){var c=document.createElement("div");c.className="textLayer",c.style.width=r.style.width,c.style.height=r.style.height,this.annotationLayer&&this.annotationLayer.div?e.insertBefore(c,this.annotationLayer.div):e.appendChild(c),l=this.textLayerFactory.createTextLayerBuilder(c,this.id-1,this.viewport,this.textLayerMode===o.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=l;var h=null;this.renderingQueue&&(h=function(e){if(!t.renderingQueue.isHighestPriority(t))return t.renderingState=s.RenderingStates.PAUSED,void(t.resume=function(){t.renderingState=s.RenderingStates.RUNNING,e()});e()});var f=function(){var r,o=(r=i.default.mark((function r(o){return i.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(d===t.paintTask&&(t.paintTask=null),!(o instanceof a.RenderingCancelledException)){r.next=4;break}return t.error=null,r.abrupt("return");case 4:if(t.renderingState=s.RenderingStates.FINISHED,t.loadingIconDiv&&(e.removeChild(t.loadingIconDiv),delete t.loadingIconDiv),t._resetZoomLayer(!0),t.error=o,t.stats=n.stats,t.eventBus.dispatch("pagerendered",{source:t,pageNumber:t.id,cssTransform:!1,timestamp:performance.now()}),!o){r.next=12;break}throw o;case 12:case"end":return r.stop()}}),r)})),function(){var t=this,e=arguments;return new Promise((function(n,i){var o=r.apply(t,e);function a(t){u(o,n,i,a,s,"next",t)}function s(t){u(o,n,i,a,s,"throw",t)}a(void 0)}))});return function(t){return o.apply(this,arguments)}}(),d=this.renderer===o.RendererType.SVG?this.paintOnSvg(r):this.paintOnCanvas(r);d.onRenderContinue=h,this.paintTask=d;var p=d.promise.then((function(){return f(null).then((function(){if(l){var t=n.streamTextContent({normalizeWhitespace:!0});l.setTextContentStream(t),l.render()}}))}),(function(t){return f(t)}));return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(e,n,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this.annotationLayer.render(this.viewport,"display")),e.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),p}},{key:"paintOnCanvas",value:function(t){var e=(0,a.createPromiseCapability)(),n={promise:e.promise,onRenderContinue:function(t){t()},cancel:function(){y.cancel()}},r=this.viewport,i=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then((function(t){i.setAttribute("aria-label",t)})),i.setAttribute("hidden","hidden");var s=!0,u=function(){s&&(i.removeAttribute("hidden"),s=!1)};t.appendChild(i),this.canvas=i,i.mozOpaque=!0;var l=i.getContext("2d",{alpha:!1}),c=(0,o.getOutputScale)(l);if(this.outputScale=c,this.useOnlyCssZoom){var h=r.clone({scale:o.CSS_UNITS});c.sx*=h.width/r.width,c.sy*=h.height/r.height,c.scaled=!0}if(this.maxCanvasPixels>0){var f=r.width*r.height,d=Math.sqrt(this.maxCanvasPixels/f);c.sx>d||c.sy>d?(c.sx=d,c.sy=d,c.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var p=(0,o.approximateFraction)(c.sx),v=(0,o.approximateFraction)(c.sy);i.width=(0,o.roundToDivide)(r.width*c.sx,p[0]),i.height=(0,o.roundToDivide)(r.height*c.sy,v[0]),i.style.width=(0,o.roundToDivide)(r.width,p[1])+"px",i.style.height=(0,o.roundToDivide)(r.height,v[1])+"px",this.paintedViewportMap.set(i,r);var g={canvasContext:l,transform:c.scaled?[c.sx,0,0,c.sy,0,0]:null,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms},y=this.pdfPage.render(g);return y.onContinue=function(t){u(),n.onRenderContinue?n.onRenderContinue(t):t()},y.promise.then((function(){u(),e.resolve(void 0)}),(function(t){u(),e.reject(t)})),n}},{key:"paintOnSvg",value:function(t){var e=this,n=!1,r=function(){if(n)throw new a.RenderingCancelledException("Rendering cancelled, page ".concat(e.id),"svg")},i=this.pdfPage,u=this.viewport.clone({scale:o.CSS_UNITS});return{promise:i.getOperatorList().then((function(n){return r(),new a.SVGGraphics(i.commonObjs,i.objs).getSVG(n,u).then((function(n){r(),e.svg=n,e.paintedViewportMap.set(n,u),n.style.width=t.style.width,n.style.height=t.style.height,e.renderingState=s.RenderingStates.FINISHED,t.appendChild(n)}))})),onRenderContinue:function(t){t()},cancel:function(){n=!0}}}},{key:"setPageLabel",value:function(t){this.pageLabel="string"==typeof t?t:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}},{key:"width",get:function(){return this.viewport.width}},{key:"height",get:function(){return this.viewport.height}}])&&l(e.prototype,n),r&&l(e,r),t}();e.PDFPageView=h},function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFRenderingQueue=e.RenderingStates=void 0;var i={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};e.RenderingStates=i;var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}var e,n,o;return e=t,(n=[{key:"setViewer",value:function(t){this.pdfViewer=t}},{key:"setThumbnailViewer",value:function(t){this.pdfThumbnailViewer=t}},{key:"isHighestPriority",value:function(t){return this.highestPriorityPage===t.renderingId}},{key:"renderHighestPriority",value:function(t){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(t)||this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4))}},{key:"getHighestPriority",value:function(t,e,n){var r=t.views,i=r.length;if(0===i)return null;for(var o=0;o<i;++o){var a=r[o].view;if(!this.isViewFinished(a))return a}if(n){var s=t.last.id;if(e[s]&&!this.isViewFinished(e[s]))return e[s]}else{var u=t.first.id-2;if(e[u]&&!this.isViewFinished(e[u]))return e[u]}return null}},{key:"isViewFinished",value:function(t){return t.renderingState===i.FINISHED}},{key:"renderView",value:function(t){var e=this;switch(t.renderingState){case i.FINISHED:return!1;case i.PAUSED:this.highestPriorityPage=t.renderingId,t.resume();break;case i.RUNNING:this.highestPriorityPage=t.renderingId;break;case i.INITIAL:this.highestPriorityPage=t.renderingId,t.draw().finally((function(){e.renderHighestPriority()})).catch((function(t){console.error('renderView: "'.concat(t,'"'))}))}return!0}}])&&r(e.prototype,n),o&&r(e,o),t}();e.PDFRenderingQueue=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.PDFSinglePageViewer=void 0;var r=n(19),i=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(c,t);var e,n,r,o=l(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=o.call(this,t)).eventBus._on("pagesinit",(function(t){e._ensurePageViewVisible()})),e}return e=c,(n=[{key:"_resetView",value:function(){s(h(c.prototype),"_resetView",this).call(this),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}},{key:"_ensurePageViewVisible",value:function(){var t=this._pages[this._currentPageNumber-1],e=this._pages[this._previousPageNumber-1],n=this.viewer.childNodes;switch(n.length){case 0:this.viewer.appendChild(t.div);break;case 1:if(n[0]!==e.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(t===e)break;this._shadowViewer.appendChild(e.div),this.viewer.appendChild(t.div),this.container.scrollTop=0;break;default:throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.")}this._previousPageNumber=this._currentPageNumber}},{key:"_scrollUpdate",value:function(){this._updateScrollDown&&this._updateScrollDown(),s(h(c.prototype),"_scrollUpdate",this).call(this)}},{key:"_scrollIntoView",value:function(t){var e=this,n=t.pageDiv,r=t.pageSpot,i=void 0===r?null:r,o=t.pageNumber,a=void 0===o?null:o;a&&this._setCurrentPageNumber(a);var u=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),s(h(c.prototype),"_scrollIntoView",this).call(this,{pageDiv:n,pageSpot:i,pageNumber:a}),this._updateScrollDown=function(){e.scroll.down=u,e._updateScrollDown=null}}},{key:"_getVisiblePages",value:function(){return this._getCurrentVisiblePage()}},{key:"_updateHelper",value:function(t){}},{key:"_updateScrollMode",value:function(){}},{key:"_updateSpreadMode",value:function(){}},{key:"_viewerElement",get:function(){return(0,i.shadow)(this,"_viewerElement",this._shadowViewer)}},{key:"_isScrollModeHorizontal",get:function(){return(0,i.shadow)(this,"_isScrollModeHorizontal",!1)}}])&&a(e.prototype,n),r&&a(e,r),c}(r.BaseViewer);e.PDFSinglePageViewer=f},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.BaseViewer=void 0;var r=n(3),i=n(17),o=n(1),a=n(2),s=n(16),u=n(7),l=n(8);function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t){var e=[];this.push=function(n){var r=e.indexOf(n);r>=0&&e.splice(r,1),e.push(n),e.length>t&&e.shift().destroy()},this.resize=function(n,i){if(t=n,i){for(var o=new Set,a=0,s=i.length;a<s;++a)o.add(i[a].id);(0,r.moveToEndOfArray)(e,(function(t){return o.has(t.id)}))}for(;e.length>t;)e.shift().destroy()}}function f(t,e){return e===t||Math.abs(e-t)<1e-15}var d=function(){function t(e){var n=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.constructor===t)throw new Error("Cannot initialize BaseViewer.");this._name=this.constructor.name,this.container=e.container,this.viewer=e.viewer||e.container.firstElementChild,this.eventBus=e.eventBus,this.linkService=e.linkService||new u.SimpleLinkService,this.downloadManager=e.downloadManager||null,this.findController=e.findController||null,this.removePageBorders=e.removePageBorders||!1,this.textLayerMode=Number.isInteger(e.textLayerMode)?e.textLayerMode:r.TextLayerMode.ENABLE,this.imageResourcesPath=e.imageResourcesPath||"",this.renderInteractiveForms=e.renderInteractiveForms||!1,this.enablePrintAutoRotate=e.enablePrintAutoRotate||!1,this.renderer=e.renderer||r.RendererType.CANVAS,this.enableWebGL=e.enableWebGL||!1,this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels,this.l10n=e.l10n||r.NullL10n,this.defaultRenderingQueue=!e.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new i.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=e.renderingQueue,this.scroll=(0,r.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=r.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then((function(){n.eventBus.dispatch("baseviewerinit",{source:n})}))}var e,n,d;return e=t,(n=[{key:"getPageView",value:function(t){return this._pages[t]}},{key:"_setCurrentPageNumber",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._currentPageNumber===t?(e&&this._resetCurrentPageView(),!0):0<t&&t<=this.pagesCount&&(this._currentPageNumber=t,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:t,pageLabel:this._pageLabels&&this._pageLabels[t-1]}),e&&this._resetCurrentPageView(),!0)}},{key:"_onePageRenderedOrForceFetch",value:function(){return this.container.offsetParent&&0!==this._getVisiblePages().views.length?this._onePageRenderedCapability.promise:Promise.resolve()}},{key:"setDocument",value:function(t){var e=this;if(this.pdfDocument&&(this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null)),this.pdfDocument=t,t){var n=t.numPages,i=t.getPage(1);this._pagesCapability.promise.then((function(){e.eventBus.dispatch("pagesloaded",{source:e,pagesCount:n})})),this._onBeforeDraw=function(t){var n=e._pages[t.pageNumber-1];n&&e._buffer.push(n)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=function(t){t.cssTransform||e._onePageRenderedCapability.settled||(e._onePageRenderedCapability.resolve(),e.eventBus._off("pagerendered",e._onAfterDraw),e._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),i.then((function(i){e._firstPageCapability.resolve(i);for(var o=e.currentScale,a=i.getViewport({scale:o*r.CSS_UNITS}),u=e.textLayerMode!==r.TextLayerMode.DISABLE?e:null,l=1;l<=n;++l){var c=new s.PDFPageView({container:e._viewerElement,eventBus:e.eventBus,id:l,scale:o,defaultViewport:a.clone(),renderingQueue:e.renderingQueue,textLayerFactory:u,textLayerMode:e.textLayerMode,annotationLayerFactory:e,imageResourcesPath:e.imageResourcesPath,renderInteractiveForms:e.renderInteractiveForms,renderer:e.renderer,enableWebGL:e.enableWebGL,useOnlyCssZoom:e.useOnlyCssZoom,maxCanvasPixels:e.maxCanvasPixels,l10n:e.l10n});e._pages.push(c)}var h=e._pages[0];h&&(h.setPdfPage(i),e.linkService.cachePageRef(1,i.ref)),e._spreadMode!==r.SpreadMode.NONE&&e._updateSpreadMode(),e._onePageRenderedOrForceFetch().then((function(){if(e.findController&&e.findController.setDocument(t),t.loadingParams.disableAutoFetch||n>7500)e._pagesCapability.resolve();else{var r=n-1;if(r<=0)e._pagesCapability.resolve();else for(var i=function(n){t.getPage(n).then((function(t){var i=e._pages[n-1];i.pdfPage||i.setPdfPage(t),e.linkService.cachePageRef(n,t.ref),0==--r&&e._pagesCapability.resolve()}),(function(t){console.error("Unable to get page ".concat(n," to initialize viewer"),t),0==--r&&e._pagesCapability.resolve()}))},o=2;o<=n;++o)i(o)}})),e.eventBus.dispatch("pagesinit",{source:e}),e.defaultRenderingQueue&&e.update()})).catch((function(t){console.error("Unable to initialize viewer",t)}))}}},{key:"setPageLabels",value:function(t){if(this.pdfDocument){t?Array.isArray(t)&&this.pdfDocument.numPages===t.length?this._pageLabels=t:(this._pageLabels=null,console.error("".concat(this._name,".setPageLabels: Invalid page labels."))):this._pageLabels=null;for(var e=0,n=this._pages.length;e<n;e++){var r=this._pages[e],i=this._pageLabels&&this._pageLabels[e];r.setPageLabel(i)}}}},{key:"_resetView",value:function(){this._pages=[],this._currentPageNumber=1,this._currentScale=r.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new h(10),this._location=null,this._pagesRotation=0,this._pagesRequests=new WeakMap,this._firstPageCapability=(0,a.createPromiseCapability)(),this._onePageRenderedCapability=(0,a.createPromiseCapability)(),this._pagesCapability=(0,a.createPromiseCapability)(),this._scrollMode=r.ScrollMode.VERTICAL,this._spreadMode=r.SpreadMode.NONE,this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.viewer.textContent="",this._updateScrollMode()}},{key:"_scrollUpdate",value:function(){0!==this.pagesCount&&this.update()}},{key:"_scrollIntoView",value:function(t){var e=t.pageDiv,n=t.pageSpot,i=void 0===n?null:n;t.pageNumber,(0,r.scrollIntoView)(e,i)}},{key:"_setScaleUpdatePages",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._currentScaleValue=e.toString(),f(this._currentScale,t))r&&this.eventBus.dispatch("scalechanging",{source:this,scale:t,presetValue:e});else{for(var i=0,o=this._pages.length;i<o;i++)this._pages[i].update(t);if(this._currentScale=t,!n){var a,s=this._currentPageNumber;!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(s=this._location.pageNumber,a=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:s,destArray:a,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:t,presetValue:r?e:void 0}),this.defaultRenderingQueue&&this.update()}}},{key:"_setScale",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=parseFloat(t);if(n>0)this._setScaleUpdatePages(n,t,e,!1);else{var i=this._pages[this._currentPageNumber-1];if(!i)return;var o=this.isInPresentationMode||this.removePageBorders,a=o?0:r.SCROLLBAR_PADDING,s=o?0:r.VERTICAL_PADDING;if(!o&&this._isScrollModeHorizontal){var u=[s,a];a=u[0],s=u[1]}var l=(this.container.clientWidth-a)/i.width*i.scale,c=(this.container.clientHeight-s)/i.height*i.scale;switch(t){case"page-actual":n=1;break;case"page-width":n=l;break;case"page-height":n=c;break;case"page-fit":n=Math.min(l,c);break;case"auto":var h=(0,r.isPortraitOrientation)(i)?l:Math.min(c,l);n=Math.min(r.MAX_AUTO_SCALE,h);break;default:return void console.error("".concat(this._name,'._setScale: "').concat(t,'" is an unknown zoom value.'))}this._setScaleUpdatePages(n,t,e,!0)}}},{key:"_resetCurrentPageView",value:function(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0);var t=this._pages[this._currentPageNumber-1];this._scrollIntoView({pageDiv:t.div})}},{key:"scrollPageIntoView",value:function(t){var e=t.pageNumber,n=t.destArray,i=void 0===n?null:n,o=t.allowNegativeOffset,a=void 0!==o&&o,s=t.ignoreDestinationZoom,u=void 0!==s&&s;if(this.pdfDocument){var l=Number.isInteger(e)&&this._pages[e-1];if(l)if(!this.isInPresentationMode&&i){var c,h,f=0,d=0,p=0,v=0,g=l.rotation%180!=0,y=(g?l.height:l.width)/l.scale/r.CSS_UNITS,m=(g?l.width:l.height)/l.scale/r.CSS_UNITS,b=0;switch(i[1].name){case"XYZ":f=i[2],d=i[3],b=i[4],f=null!==f?f:0,d=null!==d?d:m;break;case"Fit":case"FitB":b="page-fit";break;case"FitH":case"FitBH":b="page-width",null===(d=i[2])&&this._location&&(f=this._location.left,d=this._location.top);break;case"FitV":case"FitBV":f=i[2],p=y,v=m,b="page-height";break;case"FitR":f=i[2],d=i[3],p=i[4]-f,v=i[5]-d;var _=this.removePageBorders?0:r.SCROLLBAR_PADDING,C=this.removePageBorders?0:r.VERTICAL_PADDING;c=(this.container.clientWidth-_)/p/r.CSS_UNITS,h=(this.container.clientHeight-C)/v/r.CSS_UNITS,b=Math.min(Math.abs(c),Math.abs(h));break;default:return void console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(i[1].name,'" is not a valid destination type.'))}if(u||(b&&b!==this._currentScale?this.currentScaleValue=b:this._currentScale===r.UNKNOWN_SCALE&&(this.currentScaleValue=r.DEFAULT_SCALE_VALUE)),"page-fit"!==b||i[4]){var w=[l.viewport.convertToViewportPoint(f,d),l.viewport.convertToViewportPoint(f+p,d+v)],S=Math.min(w[0][0],w[1][0]),x=Math.min(w[0][1],w[1][1]);a||(S=Math.max(S,0),x=Math.max(x,0)),this._scrollIntoView({pageDiv:l.div,pageSpot:{left:S,top:x},pageNumber:e})}else this._scrollIntoView({pageDiv:l.div,pageNumber:e})}else this._setCurrentPageNumber(e,!0);else console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(e,'" is not a valid pageNumber parameter.'))}}},{key:"_updateLocation",value:function(t){var e=this._currentScale,n=this._currentScaleValue,r=parseFloat(n)===e?Math.round(1e4*e)/100:n,i=t.id,o="#page="+i;o+="&zoom="+r;var a=this._pages[i-1],s=this.container,u=a.getPagePoint(s.scrollLeft-t.x,s.scrollTop-t.y),l=Math.round(u[0]),c=Math.round(u[1]);o+=","+l+","+c,this._location={pageNumber:i,scale:r,top:c,left:l,rotation:this._pagesRotation,pdfOpenParams:o}}},{key:"_updateHelper",value:function(t){throw new Error("Not implemented: _updateHelper")}},{key:"update",value:function(){var t=this._getVisiblePages(),e=t.views,n=e.length;if(0!==n){var r=Math.max(10,2*n+1);this._buffer.resize(r,e),this.renderingQueue.renderHighestPriority(t),this._updateHelper(e),this._updateLocation(t.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}}},{key:"containsElement",value:function(t){return this.container.contains(t)}},{key:"focus",value:function(){this.container.focus()}},{key:"_getCurrentVisiblePage",value:function(){if(!this.pagesCount)return{views:[]};var t=this._pages[this._currentPageNumber-1],e=t.div,n={id:t.id,x:e.offsetLeft+e.clientLeft,y:e.offsetTop+e.clientTop,view:t};return{first:n,last:n,views:[n]}}},{key:"_getVisiblePages",value:function(){return(0,r.getVisibleElements)(this.container,this._pages,!0,this._isScrollModeHorizontal)}},{key:"isPageVisible",value:function(t){return!!this.pdfDocument&&(t<1||t>this.pagesCount?(console.error("".concat(this._name,'.isPageVisible: "').concat(t,'" is out of bounds.')),!1):this._getVisiblePages().views.some((function(e){return e.id===t})))}},{key:"cleanup",value:function(){for(var t=0,e=this._pages.length;t<e;t++)this._pages[t]&&this._pages[t].renderingState!==i.RenderingStates.FINISHED&&this._pages[t].reset()}},{key:"_cancelRendering",value:function(){for(var t=0,e=this._pages.length;t<e;t++)this._pages[t]&&this._pages[t].cancelRendering()}},{key:"_ensurePdfPageLoaded",value:function(t){var e=this;if(t.pdfPage)return Promise.resolve(t.pdfPage);if(this._pagesRequests.has(t))return this._pagesRequests.get(t);var n=this.pdfDocument.getPage(t.id).then((function(n){return t.pdfPage||t.setPdfPage(n),e._pagesRequests.delete(t),n})).catch((function(n){console.error("Unable to get page for page view",n),e._pagesRequests.delete(t)}));return this._pagesRequests.set(t,n),n}},{key:"forceRendering",value:function(t){var e=this,n=t||this._getVisiblePages(),r=this._isScrollModeHorizontal?this.scroll.right:this.scroll.down,i=this.renderingQueue.getHighestPriority(n,this._pages,r);return!!i&&(this._ensurePdfPageLoaded(i).then((function(){e.renderingQueue.renderView(i)})),!0)}},{key:"createTextLayerBuilder",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return new l.TextLayerBuilder({textLayerDiv:t,eventBus:i,pageIndex:e,viewport:n,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&r})}},{key:"createAnnotationLayerBuilder",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.NullL10n;return new o.AnnotationLayerBuilder({pageDiv:t,pdfPage:e,imageResourcesPath:n,renderInteractiveForms:i,linkService:this.linkService,downloadManager:this.downloadManager,l10n:a})}},{key:"getPagesOverview",value:function(){var t=this._pages.map((function(t){var e=t.pdfPage.getViewport({scale:1});return{width:e.width,height:e.height,rotation:e.rotation}}));if(!this.enablePrintAutoRotate)return t;var e=(0,r.isPortraitOrientation)(t[0]);return t.map((function(t){return e===(0,r.isPortraitOrientation)(t)?t:{width:t.height,height:t.width,rotation:(t.rotation+90)%360}}))}},{key:"_updateScrollMode",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this._scrollMode,n=this.viewer;n.classList.toggle("scrollHorizontal",e===r.ScrollMode.HORIZONTAL),n.classList.toggle("scrollWrapped",e===r.ScrollMode.WRAPPED),this.pdfDocument&&t&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(t,!0),this.update())}},{key:"_updateSpreadMode",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.pdfDocument){var e=this.viewer,n=this._pages;if(e.textContent="",this._spreadMode===r.SpreadMode.NONE)for(var i=0,o=n.length;i<o;++i)e.appendChild(n[i].div);else for(var a=this._spreadMode-1,s=null,u=0,l=n.length;u<l;++u)null===s?((s=document.createElement("div")).className="spread",e.appendChild(s)):u%2===a&&(s=s.cloneNode(!1),e.appendChild(s)),s.appendChild(n[u].div);t&&(this._setCurrentPageNumber(t,!0),this.update())}}},{key:"pagesCount",get:function(){return this._pages.length}},{key:"pageViewsReady",get:function(){return!!this._pagesCapability.settled&&this._pages.every((function(t){return t&&t.pdfPage}))}},{key:"currentPageNumber",get:function(){return this._currentPageNumber},set:function(t){if(!Number.isInteger(t))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(t,!0)||console.error("".concat(this._name,'.currentPageNumber: "').concat(t,'" is not a valid page.')))}},{key:"currentPageLabel",get:function(){return this._pageLabels&&this._pageLabels[this._currentPageNumber-1]},set:function(t){if(this.pdfDocument){var e=0|t;if(this._pageLabels){var n=this._pageLabels.indexOf(t);n>=0&&(e=n+1)}this._setCurrentPageNumber(e,!0)||console.error("".concat(this._name,'.currentPageLabel: "').concat(t,'" is not a valid page.'))}}},{key:"currentScale",get:function(){return this._currentScale!==r.UNKNOWN_SCALE?this._currentScale:r.DEFAULT_SCALE},set:function(t){if(isNaN(t))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(t,!1)}},{key:"currentScaleValue",get:function(){return this._currentScaleValue},set:function(t){this.pdfDocument&&this._setScale(t,!1)}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(t){if(!(0,r.isValidRotation)(t))throw new Error("Invalid pages rotation angle.");if(this.pdfDocument&&this._pagesRotation!==t){this._pagesRotation=t;for(var e=this._currentPageNumber,n=0,i=this._pages.length;n<i;n++){var o=this._pages[n];o.update(o.scale,t)}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:t,pageNumber:e}),this.defaultRenderingQueue&&this.update()}}},{key:"firstPagePromise",get:function(){return this.pdfDocument?this._firstPageCapability.promise:null}},{key:"onePageRendered",get:function(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}},{key:"pagesPromise",get:function(){return this.pdfDocument?this._pagesCapability.promise:null}},{key:"_viewerElement",get:function(){throw new Error("Not implemented: _viewerElement")}},{key:"_isScrollModeHorizontal",get:function(){return!this.isInPresentationMode&&this._scrollMode===r.ScrollMode.HORIZONTAL}},{key:"isInPresentationMode",get:function(){return this.presentationModeState===r.PresentationModeState.FULLSCREEN}},{key:"isChangingPresentationMode",get:function(){return this.presentationModeState===r.PresentationModeState.CHANGING}},{key:"isHorizontalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}},{key:"isVerticalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}},{key:"hasEqualPageSizes",get:function(){for(var t=this._pages[0],e=1,n=this._pages.length;e<n;++e){var r=this._pages[e];if(r.width!==t.width||r.height!==t.height)return!1}return!0}},{key:"scrollMode",get:function(){return this._scrollMode},set:function(t){if(this._scrollMode!==t){if(!(0,r.isValidScrollMode)(t))throw new Error("Invalid scroll mode: ".concat(t));this._scrollMode=t,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:t}),this._updateScrollMode(this._currentPageNumber)}}},{key:"spreadMode",get:function(){return this._spreadMode},set:function(t){if(this._spreadMode!==t){if(!(0,r.isValidSpreadMode)(t))throw new Error("Invalid spread mode: ".concat(t));this._spreadMode=t,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:t}),this._updateSpreadMode(this._currentPageNumber)}}}])&&c(e.prototype,n),d&&c(e,d),t}();e.BaseViewer=d},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.PDFViewer=void 0;var r=n(19),i=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(s,t);var e,n,r,o=f(s);function s(){return u(this,s),o.apply(this,arguments)}return e=s,(n=[{key:"_scrollIntoView",value:function(t){var e=t.pageDiv,n=t.pageSpot,r=void 0===n?null:n,i=t.pageNumber,o=void 0===i?null:i;if(!r&&!this.isInPresentationMode){var a=e.offsetLeft+e.clientLeft,u=a+e.clientWidth,l=this.container,h=l.scrollLeft,f=l.clientWidth;(this._isScrollModeHorizontal||a<h||u>h+f)&&(r={left:0,top:0})}c(p(s.prototype),"_scrollIntoView",this).call(this,{pageDiv:e,pageSpot:r,pageNumber:o})}},{key:"_getVisiblePages",value:function(){return this.isInPresentationMode?this._getCurrentVisiblePage():c(p(s.prototype),"_getVisiblePages",this).call(this)}},{key:"_updateHelper",value:function(t){if(!this.isInPresentationMode){var e,n=this._currentPageNumber,r=!1,i=a(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;if(o.percent<100)break;if(o.id===n){r=!0;break}}}catch(t){i.e(t)}finally{i.f()}r||(n=t[0].id),this._setCurrentPageNumber(n)}}},{key:"_viewerElement",get:function(){return(0,i.shadow)(this,"_viewerElement",this.viewer)}}])&&l(e.prototype,n),r&&l(e,r),s}(r.BaseViewer);e.PDFViewer=v}])},"object"==typeof exports&&"object"==typeof e?e.exports=i():"function"==typeof define&&n(17)?define("pdfjs-dist/web/pdf_viewer",[],i):"object"==typeof exports?exports["pdfjs-dist/web/pdf_viewer"]=i():r["pdfjs-dist/web/pdf_viewer"]=r.pdfjsViewer=i()}.call(this,n(10),n(16)(t))},function(t,e,n){t.exports=function(){return new Worker(n.p+"7893e51cf0a4877dac80.worker.js")}},function(t,e,n){"use strict";n(21)},function(t,e,n){(e=n(20)(!1)).push([t.i,'/* see https://github.com/mozilla/pdf.js/blob/55a853b6678cf3d05681ffbb521e5228e607b5d2/test/annotation_layer_test.css */\n.annotationLayer {\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n}\n.annotationLayer section {\n\tposition: absolute;\n}\n.annotationLayer .linkAnnotation > a {\n\tposition: absolute;\n\tfont-size: 1em;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n}\n.annotationLayer .linkAnnotation > a /* -ms-a */ {\n\tbackground: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7") 0 0 repeat;\n}\n.annotationLayer .linkAnnotation > a:hover {\n\topacity: 0.2;\n\tbackground: #ff0;\n\tbox-shadow: 0px 2px 10px #ff0;\n}\n.annotationLayer .textAnnotation img {\n\tposition: absolute;\n\tcursor: pointer;\n}\n.annotationLayer .textWidgetAnnotation input,\n.annotationLayer .textWidgetAnnotation textarea,\n.annotationLayer .choiceWidgetAnnotation select,\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n\tbackground-color: rgba(0, 54, 255, 0.13);\n\tborder: 1px solid transparent;\n\tbox-sizing: border-box;\n\tfont-size: 9px;\n\theight: 100%;\n\tpadding: 0 3px;\n\tvertical-align: top;\n\twidth: 100%;\n}\n.annotationLayer .textWidgetAnnotation textarea {\n\tfont: message-box;\n\tfont-size: 9px;\n\tresize: none;\n}\n.annotationLayer .textWidgetAnnotation input[disabled],\n.annotationLayer .textWidgetAnnotation textarea[disabled],\n.annotationLayer .choiceWidgetAnnotation select[disabled],\n.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],\n.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {\n\tbackground: none;\n\tborder: 1px solid transparent;\n\tcursor: not-allowed;\n}\n.annotationLayer .textWidgetAnnotation input:hover,\n.annotationLayer .textWidgetAnnotation textarea:hover,\n.annotationLayer .choiceWidgetAnnotation select:hover,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:hover {\n\tborder: 1px solid #000;\n}\n.annotationLayer .textWidgetAnnotation input:focus,\n.annotationLayer .textWidgetAnnotation textarea:focus,\n.annotationLayer .choiceWidgetAnnotation select:focus {\n\tbackground: none;\n\tborder: 1px solid transparent;\n}\n.annotationLayer .textWidgetAnnotation input.comb {\n\tfont-family: monospace;\n\tpadding-left: 2px;\n\tpadding-right: 0;\n}\n.annotationLayer .textWidgetAnnotation input.comb:focus {\n\t/*\n\t * Letter spacing is placed on the right side of each character. Hence, the\n\t * letter spacing of the last character may be placed outside the visible\n\t * area, causing horizontal scrolling. We avoid this by extending the width\n\t * when the element has focus and revert this when it loses focus.\n\t */\n\twidth: 115%;\n}\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n\t-webkit-appearance: none;\n\tappearance: none;\n}\n.annotationLayer .popupWrapper {\n\tposition: absolute;\n\twidth: 20em;\n}\n.annotationLayer .popup {\n\tposition: absolute;\n\tz-index: 200;\n\tmax-width: 20em;\n\tbackground-color: #FFFF99;\n\tbox-shadow: 0px 2px 5px #333;\n\tborder-radius: 2px;\n\tpadding: 0.6em;\n\tmargin-left: 5px;\n\tcursor: pointer;\n\tword-wrap: break-word;\n}\n.annotationLayer .popup h1 {\n\tfont-size: 1em;\n\tborder-bottom: 1px solid #000000;\n\tpadding-bottom: 0.2em;\n}\n.annotationLayer .popup p {\n\tpadding-top: 0.2em;\n}\n.annotationLayer .highlightAnnotation,\n.annotationLayer .underlineAnnotation,\n.annotationLayer .squigglyAnnotation,\n.annotationLayer .strikeoutAnnotation,\n.annotationLayer .lineAnnotation svg line,\n.annotationLayer .fileAttachmentAnnotation {\n\tcursor: pointer;\n}\n',""]),t.exports=e},function(t,e,n){(function(t,r){var i;
|
|
11
11
|
/**
|
|
12
12
|
* @license
|
|
13
13
|
* Lodash <https://lodash.com/>
|
|
@@ -15,9 +15,9 @@ e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,h=n?i-1:0,f=
|
|
|
15
15
|
* Released under MIT license <https://lodash.com/license>
|
|
16
16
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
17
17
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
18
|
-
*/(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",l="[object Array]",c="[object Boolean]",h="[object Date]",f="[object Error]",d="[object Function]",p="[object GeneratorFunction]",v="[object Map]",g="[object Number]",m="[object Object]",y="[object RegExp]",b="[object Set]",_="[object String]",w="[object Symbol]",S="[object WeakMap]",A="[object ArrayBuffer]",x="[object DataView]",k="[object Float32Array]",C="[object Float64Array]",P="[object Int8Array]",T="[object Int16Array]",R="[object Int32Array]",E="[object Uint8Array]",O="[object Uint16Array]",L="[object Uint32Array]",I=/\b__p \+= '';/g,M=/\b(__p \+=) '' \+/g,D=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,j=/[&<>"']/g,F=RegExp(N.source),B=RegExp(j.source),z=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,W=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$=/[\\^$.*+?()[\]{}|]/g,G=RegExp($.source),Y=/^\s+/,X=/\s/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Z=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,ut=/^(?:0|[1-9]\d*)$/,lt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ht=/['\n\r\u2028\u2029\\]/g,ft="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",vt="["+dt+"]",gt="["+ft+"]",mt="\\d+",yt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",_t="[^\\ud800-\\udfff"+dt+mt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",wt="\\ud83c[\\udffb-\\udfff]",St="[^\\ud800-\\udfff]",At="(?:\\ud83c[\\udde6-\\uddff]){2}",xt="[\\ud800-\\udbff][\\udc00-\\udfff]",kt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ct="(?:"+bt+"|"+_t+")",Pt="(?:"+kt+"|"+_t+")",Tt="(?:"+gt+"|"+wt+")"+"?",Rt="[\\ufe0e\\ufe0f]?"+Tt+("(?:\\u200d(?:"+[St,At,xt].join("|")+")[\\ufe0e\\ufe0f]?"+Tt+")*"),Et="(?:"+[yt,At,xt].join("|")+")"+Rt,Ot="(?:"+[St+gt+"?",gt,At,xt,pt].join("|")+")",Lt=RegExp("['’]","g"),It=RegExp(gt,"g"),Mt=RegExp(wt+"(?="+wt+")|"+Ot+Rt,"g"),Dt=RegExp([kt+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[vt,kt,"$"].join("|")+")",Pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[vt,kt+Ct,"$"].join("|")+")",kt+"?"+Ct+"+(?:['’](?:d|ll|m|re|s|t|ve))?",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mt,Et].join("|"),"g"),Nt=RegExp("[\\u200d\\ud800-\\udfff"+ft+"\\ufe0e\\ufe0f]"),jt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Bt=-1,zt={};zt[k]=zt[C]=zt[P]=zt[T]=zt[R]=zt[E]=zt["[object Uint8ClampedArray]"]=zt[O]=zt[L]=!0,zt[u]=zt[l]=zt[A]=zt[c]=zt[x]=zt[h]=zt[f]=zt[d]=zt[v]=zt[g]=zt[m]=zt[y]=zt[b]=zt[_]=zt[S]=!1;var Ut={};Ut[u]=Ut[l]=Ut[A]=Ut[x]=Ut[c]=Ut[h]=Ut[k]=Ut[C]=Ut[P]=Ut[T]=Ut[R]=Ut[v]=Ut[g]=Ut[m]=Ut[y]=Ut[b]=Ut[_]=Ut[w]=Ut[E]=Ut["[object Uint8ClampedArray]"]=Ut[O]=Ut[L]=!0,Ut[f]=Ut[d]=Ut[S]=!1;var Wt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vt=parseFloat,qt=parseInt,Ht="object"==typeof t&&t&&t.Object===Object&&t,$t="object"==typeof self&&self&&self.Object===Object&&self,Gt=Ht||$t||Function("return this")(),Yt=e&&!e.nodeType&&e,Xt=Yt&&"object"==typeof r&&r&&!r.nodeType&&r,Kt=Xt&&Xt.exports===Yt,Qt=Kt&&Ht.process,Jt=function(){try{var t=Xt&&Xt.require&&Xt.require("util").types;return t||Qt&&Qt.binding&&Qt.binding("util")}catch(t){}}(),Zt=Jt&&Jt.isArrayBuffer,te=Jt&&Jt.isDate,ee=Jt&&Jt.isMap,ne=Jt&&Jt.isRegExp,re=Jt&&Jt.isSet,ie=Jt&&Jt.isTypedArray;function oe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ae(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ue(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function le(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function ce(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function he(t,e){return!!(null==t?0:t.length)&&we(t,e,0)>-1}function fe(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function de(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function pe(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function ve(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function ge(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function me(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var ye=ke("length");function be(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function _e(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function we(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):_e(t,Ae,n)}function Se(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Ae(t){return t!=t}function xe(t,e){var n=null==t?0:t.length;return n?Te(t,e)/n:NaN}function ke(t){return function(e){return null==e?void 0:e[t]}}function Ce(t){return function(e){return null==t?void 0:t[e]}}function Pe(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Te(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function Re(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ee(t){return t?t.slice(0,Ye(t)+1).replace(Y,""):t}function Oe(t){return function(e){return t(e)}}function Le(t,e){return de(e,(function(e){return t[e]}))}function Ie(t,e){return t.has(e)}function Me(t,e){for(var n=-1,r=t.length;++n<r&&we(e,t[n],0)>-1;);return n}function De(t,e){for(var n=t.length;n--&&we(e,t[n],0)>-1;);return n}function Ne(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var je=Ce({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Fe=Ce({"&":"&","<":"<",">":">",'"':""","'":"'"});function Be(t){return"\\"+Wt[t]}function ze(t){return Nt.test(t)}function Ue(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function We(t,e){return function(n){return t(e(n))}}function Ve(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[i++]=n)}return o}function qe(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function He(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function $e(t){return ze(t)?function(t){var e=Mt.lastIndex=0;for(;Mt.test(t);)++e;return e}(t):ye(t)}function Ge(t){return ze(t)?function(t){return t.match(Mt)||[]}(t):function(t){return t.split("")}(t)}function Ye(t){for(var e=t.length;e--&&X.test(t.charAt(e)););return e}var Xe=Ce({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Ke=function t(e){var n,r=(e=null==e?Gt:Ke.defaults(Gt.Object(),e,Ke.pick(Gt,Ft))).Array,i=e.Date,X=e.Error,ft=e.Function,dt=e.Math,pt=e.Object,vt=e.RegExp,gt=e.String,mt=e.TypeError,yt=r.prototype,bt=ft.prototype,_t=pt.prototype,wt=e["__core-js_shared__"],St=bt.toString,At=_t.hasOwnProperty,xt=0,kt=(n=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ct=_t.toString,Pt=St.call(pt),Tt=Gt._,Rt=vt("^"+St.call(At).replace($,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Et=Kt?e.Buffer:void 0,Ot=e.Symbol,Mt=e.Uint8Array,Nt=Et?Et.allocUnsafe:void 0,Wt=We(pt.getPrototypeOf,pt),Ht=pt.create,$t=_t.propertyIsEnumerable,Yt=yt.splice,Xt=Ot?Ot.isConcatSpreadable:void 0,Qt=Ot?Ot.iterator:void 0,Jt=Ot?Ot.toStringTag:void 0,ye=function(){try{var t=to(pt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ce=e.clearTimeout!==Gt.clearTimeout&&e.clearTimeout,Qe=i&&i.now!==Gt.Date.now&&i.now,Je=e.setTimeout!==Gt.setTimeout&&e.setTimeout,Ze=dt.ceil,tn=dt.floor,en=pt.getOwnPropertySymbols,nn=Et?Et.isBuffer:void 0,rn=e.isFinite,on=yt.join,an=We(pt.keys,pt),sn=dt.max,un=dt.min,ln=i.now,cn=e.parseInt,hn=dt.random,fn=yt.reverse,dn=to(e,"DataView"),pn=to(e,"Map"),vn=to(e,"Promise"),gn=to(e,"Set"),mn=to(e,"WeakMap"),yn=to(pt,"create"),bn=mn&&new mn,_n={},wn=To(dn),Sn=To(pn),An=To(vn),xn=To(gn),kn=To(mn),Cn=Ot?Ot.prototype:void 0,Pn=Cn?Cn.valueOf:void 0,Tn=Cn?Cn.toString:void 0;function Rn(t){if(Ha(t)&&!Ma(t)&&!(t instanceof In)){if(t instanceof Ln)return t;if(At.call(t,"__wrapped__"))return Ro(t)}return new Ln(t)}var En=function(){function t(){}return function(e){if(!qa(e))return{};if(Ht)return Ht(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function On(){}function Ln(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function In(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Mn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Dn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Nn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function jn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Nn;++e<n;)this.add(t[e])}function Fn(t){var e=this.__data__=new Dn(t);this.size=e.size}function Bn(t,e){var n=Ma(t),r=!n&&Ia(t),i=!n&&!r&&Fa(t),o=!n&&!r&&!i&&Za(t),a=n||r||i||o,s=a?Re(t.length,gt):[],u=s.length;for(var l in t)!e&&!At.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||so(l,u))||s.push(l);return s}function zn(t){var e=t.length;return e?t[jr(0,e-1)]:void 0}function Un(t,e){return ko(yi(t),Kn(e,0,t.length))}function Wn(t){return ko(yi(t))}function Vn(t,e,n){(void 0!==n&&!Ea(t[e],n)||void 0===n&&!(e in t))&&Yn(t,e,n)}function qn(t,e,n){var r=t[e];At.call(t,e)&&Ea(r,n)&&(void 0!==n||e in t)||Yn(t,e,n)}function Hn(t,e){for(var n=t.length;n--;)if(Ea(t[n][0],e))return n;return-1}function $n(t,e,n,r){return er(t,(function(t,i,o){e(r,t,n(t),o)})),r}function Gn(t,e){return t&&bi(e,ws(e),t)}function Yn(t,e,n){"__proto__"==e&&ye?ye(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Xn(t,e){for(var n=-1,i=e.length,o=r(i),a=null==t;++n<i;)o[n]=a?void 0:gs(t,e[n]);return o}function Kn(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}function Qn(t,e,n,r,i,o){var a,s=1&e,l=2&e,f=4&e;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!qa(t))return t;var S=Ma(t);if(S){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&At.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!s)return yi(t,a)}else{var I=ro(t),M=I==d||I==p;if(Fa(t))return fi(t,s);if(I==m||I==u||M&&!i){if(a=l||M?{}:oo(t),!s)return l?function(t,e){return bi(t,no(t),e)}(t,function(t,e){return t&&bi(e,Ss(e),t)}(a,t)):function(t,e){return bi(t,eo(t),e)}(t,Gn(a,t))}else{if(!Ut[I])return i?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case A:return di(t);case c:case h:return new r(+t);case x:return function(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case k:case C:case P:case T:case R:case E:case"[object Uint8ClampedArray]":case O:case L:return pi(t,n);case v:return new r;case g:case _:return new r(t);case y:return function(t){var e=new t.constructor(t.source,rt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case b:return new r;case w:return i=t,Pn?pt(Pn.call(i)):{}}var i}(t,I,s)}}o||(o=new Fn);var D=o.get(t);if(D)return D;o.set(t,a),Ka(t)?t.forEach((function(r){a.add(Qn(r,e,n,r,t,o))})):$a(t)&&t.forEach((function(r,i){a.set(i,Qn(r,e,n,i,t,o))}));var N=S?void 0:(f?l?Gi:$i:l?Ss:ws)(t);return se(N||t,(function(r,i){N&&(r=t[i=r]),qn(a,i,Qn(r,e,n,i,t,o))})),a}function Jn(t,e,n){var r=n.length;if(null==t)return!r;for(t=pt(t);r--;){var i=n[r],o=e[i],a=t[i];if(void 0===a&&!(i in t)||!o(a))return!1}return!0}function Zn(t,e,n){if("function"!=typeof t)throw new mt(o);return wo((function(){t.apply(void 0,n)}),e)}function tr(t,e,n,r){var i=-1,o=he,a=!0,s=t.length,u=[],l=e.length;if(!s)return u;n&&(e=de(e,Oe(n))),r?(o=fe,a=!1):e.length>=200&&(o=Ie,a=!1,e=new jn(e));t:for(;++i<s;){var c=t[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,a&&h==h){for(var f=l;f--;)if(e[f]===h)continue t;u.push(c)}else o(e,h,r)||u.push(c)}return u}Rn.templateSettings={escape:z,evaluate:U,interpolate:W,variable:"",imports:{_:Rn}},Rn.prototype=On.prototype,Rn.prototype.constructor=Rn,Ln.prototype=En(On.prototype),Ln.prototype.constructor=Ln,In.prototype=En(On.prototype),In.prototype.constructor=In,Mn.prototype.clear=function(){this.__data__=yn?yn(null):{},this.size=0},Mn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Mn.prototype.get=function(t){var e=this.__data__;if(yn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return At.call(e,t)?e[t]:void 0},Mn.prototype.has=function(t){var e=this.__data__;return yn?void 0!==e[t]:At.call(e,t)},Mn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=yn&&void 0===e?"__lodash_hash_undefined__":e,this},Dn.prototype.clear=function(){this.__data__=[],this.size=0},Dn.prototype.delete=function(t){var e=this.__data__,n=Hn(e,t);return!(n<0)&&(n==e.length-1?e.pop():Yt.call(e,n,1),--this.size,!0)},Dn.prototype.get=function(t){var e=this.__data__,n=Hn(e,t);return n<0?void 0:e[n][1]},Dn.prototype.has=function(t){return Hn(this.__data__,t)>-1},Dn.prototype.set=function(t,e){var n=this.__data__,r=Hn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new Mn,map:new(pn||Dn),string:new Mn}},Nn.prototype.delete=function(t){var e=Ji(this,t).delete(t);return this.size-=e?1:0,e},Nn.prototype.get=function(t){return Ji(this,t).get(t)},Nn.prototype.has=function(t){return Ji(this,t).has(t)},Nn.prototype.set=function(t,e){var n=Ji(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},jn.prototype.add=jn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},jn.prototype.has=function(t){return this.__data__.has(t)},Fn.prototype.clear=function(){this.__data__=new Dn,this.size=0},Fn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Fn.prototype.get=function(t){return this.__data__.get(t)},Fn.prototype.has=function(t){return this.__data__.has(t)},Fn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Dn){var r=n.__data__;if(!pn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(t,e),this.size=n.size,this};var er=Si(lr),nr=Si(cr,!0);function rr(t,e){var n=!0;return er(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function ir(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(void 0===s?a==a&&!Ja(a):n(a,s)))var s=a,u=o}return u}function or(t,e){var n=[];return er(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function ar(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=ao),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?ar(s,e-1,n,r,i):pe(i,s):r||(i[i.length]=s)}return i}var sr=Ai(),ur=Ai(!0);function lr(t,e){return t&&sr(t,e,ws)}function cr(t,e){return t&&ur(t,e,ws)}function hr(t,e){return ce(e,(function(e){return Ua(t[e])}))}function fr(t,e){for(var n=0,r=(e=ui(e,t)).length;null!=t&&n<r;)t=t[Po(e[n++])];return n&&n==r?t:void 0}function dr(t,e,n){var r=e(t);return Ma(t)?r:pe(r,n(t))}function pr(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Jt&&Jt in pt(t)?function(t){var e=At.call(t,Jt),n=t[Jt];try{t[Jt]=void 0;var r=!0}catch(t){}var i=Ct.call(t);r&&(e?t[Jt]=n:delete t[Jt]);return i}(t):function(t){return Ct.call(t)}(t)}function vr(t,e){return t>e}function gr(t,e){return null!=t&&At.call(t,e)}function mr(t,e){return null!=t&&e in pt(t)}function yr(t,e,n){for(var i=n?fe:he,o=t[0].length,a=t.length,s=a,u=r(a),l=1/0,c=[];s--;){var h=t[s];s&&e&&(h=de(h,Oe(e))),l=un(h.length,l),u[s]=!n&&(e||o>=120&&h.length>=120)?new jn(s&&h):void 0}h=t[0];var f=-1,d=u[0];t:for(;++f<o&&c.length<l;){var p=h[f],v=e?e(p):p;if(p=n||0!==p?p:0,!(d?Ie(d,v):i(c,v,n))){for(s=a;--s;){var g=u[s];if(!(g?Ie(g,v):i(t[s],v,n)))continue t}d&&d.push(v),c.push(p)}}return c}function br(t,e,n){var r=null==(t=mo(t,e=ui(e,t)))?t:t[Po(zo(e))];return null==r?void 0:oe(r,t,n)}function _r(t){return Ha(t)&&pr(t)==u}function wr(t,e,n,r,i){return t===e||(null==t||null==e||!Ha(t)&&!Ha(e)?t!=t&&e!=e:function(t,e,n,r,i,o){var a=Ma(t),s=Ma(e),d=a?l:ro(t),p=s?l:ro(e),S=(d=d==u?m:d)==m,k=(p=p==u?m:p)==m,C=d==p;if(C&&Fa(t)){if(!Fa(e))return!1;a=!0,S=!1}if(C&&!S)return o||(o=new Fn),a||Za(t)?qi(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case A:return!(t.byteLength!=e.byteLength||!o(new Mt(t),new Mt(e)));case c:case h:case g:return Ea(+t,+e);case f:return t.name==e.name&&t.message==e.message;case y:case _:return t==e+"";case v:var s=Ue;case b:var u=1&r;if(s||(s=qe),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;r|=2,a.set(t,e);var d=qi(s(t),s(e),r,i,o,a);return a.delete(t),d;case w:if(Pn)return Pn.call(t)==Pn.call(e)}return!1}(t,e,d,n,r,i,o);if(!(1&n)){var P=S&&At.call(t,"__wrapped__"),T=k&&At.call(e,"__wrapped__");if(P||T){var R=P?t.value():t,E=T?e.value():e;return o||(o=new Fn),i(R,E,n,r,o)}}if(!C)return!1;return o||(o=new Fn),function(t,e,n,r,i,o){var a=1&n,s=$i(t),u=s.length,l=$i(e).length;if(u!=l&&!a)return!1;var c=u;for(;c--;){var h=s[c];if(!(a?h in e:At.call(e,h)))return!1}var f=o.get(t),d=o.get(e);if(f&&d)return f==e&&d==t;var p=!0;o.set(t,e),o.set(e,t);var v=a;for(;++c<u;){h=s[c];var g=t[h],m=e[h];if(r)var y=a?r(m,g,h,e,t,o):r(g,m,h,t,e,o);if(!(void 0===y?g===m||i(g,m,n,r,o):y)){p=!1;break}v||(v="constructor"==h)}if(p&&!v){var b=t.constructor,_=e.constructor;b==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,i,o)}(t,e,n,r,wr,i))}function Sr(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=pt(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){var u=(s=n[i])[0],l=t[u],c=s[1];if(a&&s[2]){if(void 0===l&&!(u in t))return!1}else{var h=new Fn;if(r)var f=r(l,c,u,t,e,h);if(!(void 0===f?wr(c,l,3,r,h):f))return!1}}return!0}function Ar(t){return!(!qa(t)||(e=t,kt&&kt in e))&&(Ua(t)?Rt:at).test(To(t));var e}function xr(t){return"function"==typeof t?t:null==t?Gs:"object"==typeof t?Ma(t)?Er(t[0],t[1]):Rr(t):nu(t)}function kr(t){if(!fo(t))return an(t);var e=[];for(var n in pt(t))At.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Cr(t){if(!qa(t))return function(t){var e=[];if(null!=t)for(var n in pt(t))e.push(n);return e}(t);var e=fo(t),n=[];for(var r in t)("constructor"!=r||!e&&At.call(t,r))&&n.push(r);return n}function Pr(t,e){return t<e}function Tr(t,e){var n=-1,i=Na(t)?r(t.length):[];return er(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function Rr(t){var e=Zi(t);return 1==e.length&&e[0][2]?vo(e[0][0],e[0][1]):function(n){return n===t||Sr(n,t,e)}}function Er(t,e){return lo(t)&&po(e)?vo(Po(t),e):function(n){var r=gs(n,t);return void 0===r&&r===e?ms(n,t):wr(e,r,3)}}function Or(t,e,n,r,i){t!==e&&sr(e,(function(o,a){if(i||(i=new Fn),qa(o))!function(t,e,n,r,i,o,a){var s=bo(t,n),u=bo(e,n),l=a.get(u);if(l)return void Vn(t,n,l);var c=o?o(s,u,n+"",t,e,a):void 0,h=void 0===c;if(h){var f=Ma(u),d=!f&&Fa(u),p=!f&&!d&&Za(u);c=u,f||d||p?Ma(s)?c=s:ja(s)?c=yi(s):d?(h=!1,c=fi(u,!0)):p?(h=!1,c=pi(u,!0)):c=[]:Ya(u)||Ia(u)?(c=s,Ia(s)?c=ss(s):qa(s)&&!Ua(s)||(c=oo(u))):h=!1}h&&(a.set(u,c),i(c,u,r,o,a),a.delete(u));Vn(t,n,c)}(t,e,a,n,Or,r,i);else{var s=r?r(bo(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Vn(t,a,s)}}),Ss)}function Lr(t,e){var n=t.length;if(n)return so(e+=e<0?n:0,n)?t[e]:void 0}function Ir(t,e,n){e=e.length?de(e,(function(t){return Ma(t)?function(e){return fr(e,1===t.length?t[0]:t)}:t})):[Gs];var r=-1;return e=de(e,Oe(Qi())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Tr(t,(function(t,n,i){return{criteria:de(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;for(;++r<a;){var u=vi(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return t.index-e.index}(t,e,n)}))}function Mr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=fr(t,a);n(s,a)&&Wr(o,ui(a,t),s)}return o}function Dr(t,e,n,r){var i=r?Se:we,o=-1,a=e.length,s=t;for(t===e&&(e=yi(e)),n&&(s=de(t,Oe(n)));++o<a;)for(var u=0,l=e[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==t&&Yt.call(s,u,1),Yt.call(t,u,1);return t}function Nr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;so(i)?Yt.call(t,i,1):ti(t,i)}}return t}function jr(t,e){return t+tn(hn()*(e-t+1))}function Fr(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=tn(e/2))&&(t+=t)}while(e);return n}function Br(t,e){return So(go(t,e,Gs),t+"")}function zr(t){return zn(Es(t))}function Ur(t,e){var n=Es(t);return ko(n,Kn(e,0,n.length))}function Wr(t,e,n,r){if(!qa(t))return t;for(var i=-1,o=(e=ui(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var u=Po(e[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=a){var c=s[u];void 0===(l=r?r(c,u,s):void 0)&&(l=qa(c)?c:so(e[i+1])?[]:{})}qn(s,u,l),s=s[u]}return t}var Vr=bn?function(t,e){return bn.set(t,e),t}:Gs,qr=ye?function(t,e){return ye(t,"toString",{configurable:!0,enumerable:!1,value:qs(e),writable:!0})}:Gs;function Hr(t){return ko(Es(t))}function $r(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i<o;)a[i]=t[i+e];return a}function Gr(t,e){var n;return er(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function Yr(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!Ja(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return Xr(t,e,Gs,n)}function Xr(t,e,n,r){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=n(e))!=e,s=null===e,u=Ja(e),l=void 0===e;i<o;){var c=tn((i+o)/2),h=n(t[c]),f=void 0!==h,d=null===h,p=h==h,v=Ja(h);if(a)var g=r||p;else g=l?p&&(r||f):s?p&&f&&(r||!d):u?p&&f&&!d&&(r||!v):!d&&!v&&(r?h<=e:h<e);g?i=c+1:o=c}return un(o,4294967294)}function Kr(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Ea(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Qr(t){return"number"==typeof t?t:Ja(t)?NaN:+t}function Jr(t){if("string"==typeof t)return t;if(Ma(t))return de(t,Jr)+"";if(Ja(t))return Tn?Tn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Zr(t,e,n){var r=-1,i=he,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=fe;else if(o>=200){var l=e?null:Fi(t);if(l)return qe(l);a=!1,i=Ie,u=new jn}else u=e?[]:s;t:for(;++r<o;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,a&&h==h){for(var f=u.length;f--;)if(u[f]===h)continue t;e&&u.push(h),s.push(c)}else i(u,h,n)||(u!==s&&u.push(h),s.push(c))}return s}function ti(t,e){return null==(t=mo(t,e=ui(e,t)))||delete t[Po(zo(e))]}function ei(t,e,n,r){return Wr(t,e,n(fr(t,e)),r)}function ni(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?$r(t,r?0:o,r?o+1:i):$r(t,r?o+1:0,r?i:o)}function ri(t,e){var n=t;return n instanceof In&&(n=n.value()),ve(e,(function(t,e){return e.func.apply(e.thisArg,pe([t],e.args))}),n)}function ii(t,e,n){var i=t.length;if(i<2)return i?Zr(t[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=t[o],u=-1;++u<i;)u!=o&&(a[o]=tr(a[o]||s,t[u],e,n));return Zr(ar(a,1),e,n)}function oi(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:void 0;n(a,t[r],s)}return a}function ai(t){return ja(t)?t:[]}function si(t){return"function"==typeof t?t:Gs}function ui(t,e){return Ma(t)?t:lo(t,e)?[t]:Co(us(t))}var li=Br;function ci(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:$r(t,e,n)}var hi=Ce||function(t){return Gt.clearTimeout(t)};function fi(t,e){if(e)return t.slice();var n=t.length,r=Nt?Nt(n):new t.constructor(n);return t.copy(r),r}function di(t){var e=new t.constructor(t.byteLength);return new Mt(e).set(new Mt(t)),e}function pi(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function vi(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Ja(t),a=void 0!==e,s=null===e,u=e==e,l=Ja(e);if(!s&&!l&&!o&&t>e||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t<e||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function gi(t,e,n,i){for(var o=-1,a=t.length,s=n.length,u=-1,l=e.length,c=sn(a-s,0),h=r(l+c),f=!i;++u<l;)h[u]=e[u];for(;++o<s;)(f||o<a)&&(h[n[o]]=t[o]);for(;c--;)h[u++]=t[o++];return h}function mi(t,e,n,i){for(var o=-1,a=t.length,s=-1,u=n.length,l=-1,c=e.length,h=sn(a-u,0),f=r(h+c),d=!i;++o<h;)f[o]=t[o];for(var p=o;++l<c;)f[p+l]=e[l];for(;++s<u;)(d||o<a)&&(f[p+n[s]]=t[o++]);return f}function yi(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function bi(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?Yn(n,s,u):qn(n,s,u)}return n}function _i(t,e){return function(n,r){var i=Ma(n)?ae:$n,o=e?e():{};return i(n,t,Qi(r,2),o)}}function wi(t){return Br((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&uo(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=pt(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e}))}function Si(t,e){return function(n,r){if(null==n)return n;if(!Na(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=pt(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ai(t){return function(e,n,r){for(var i=-1,o=pt(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}function xi(t){return function(e){var n=ze(e=us(e))?Ge(e):void 0,r=n?n[0]:e.charAt(0),i=n?ci(n,1).join(""):e.slice(1);return r[t]()+i}}function ki(t){return function(e){return ve(Us(Is(e).replace(Lt,"")),t,"")}}function Ci(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=En(t.prototype),r=t.apply(n,e);return qa(r)?r:n}}function Pi(t){return function(e,n,r){var i=pt(e);if(!Na(e)){var o=Qi(n,3);e=ws(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:void 0}}function Ti(t){return Hi((function(e){var n=e.length,r=n,i=Ln.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new mt(o);if(i&&!s&&"wrapper"==Xi(a))var s=new Ln([],!0)}for(r=s?r:n;++r<n;){var u=Xi(a=e[r]),l="wrapper"==u?Yi(a):void 0;s=l&&co(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[Xi(l[0])].apply(s,l[3]):1==a.length&&co(a)?s[u]():s.thru(a)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&Ma(r))return s.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function Ri(t,e,n,i,o,a,s,u,l,c){var h=128&e,f=1&e,d=2&e,p=24&e,v=512&e,g=d?void 0:Ci(t);return function m(){for(var y=arguments.length,b=r(y),_=y;_--;)b[_]=arguments[_];if(p)var w=Ki(m),S=Ne(b,w);if(i&&(b=gi(b,i,o,p)),a&&(b=mi(b,a,s,p)),y-=S,p&&y<c){var A=Ve(b,w);return Ni(t,e,Ri,m.placeholder,n,b,A,u,l,c-y)}var x=f?n:this,k=d?x[t]:t;return y=b.length,u?b=yo(b,u):v&&y>1&&b.reverse(),h&&l<y&&(b.length=l),this&&this!==Gt&&this instanceof m&&(k=g||Ci(k)),k.apply(x,b)}}function Ei(t,e){return function(n,r){return function(t,e,n,r){return lr(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Oi(t,e){return function(n,r){var i;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Jr(n),r=Jr(r)):(n=Qr(n),r=Qr(r)),i=t(n,r)}return i}}function Li(t){return Hi((function(e){return e=de(e,Oe(Qi())),Br((function(n){var r=this;return t(e,(function(t){return oe(t,r,n)}))}))}))}function Ii(t,e){var n=(e=void 0===e?" ":Jr(e)).length;if(n<2)return n?Fr(e,t):e;var r=Fr(e,Ze(t/$e(e)));return ze(e)?ci(Ge(r),0,t).join(""):r.slice(0,t)}function Mi(t){return function(e,n,i){return i&&"number"!=typeof i&&uo(e,n,i)&&(n=i=void 0),e=rs(e),void 0===n?(n=e,e=0):n=rs(n),function(t,e,n,i){for(var o=-1,a=sn(Ze((e-t)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=t,t+=n;return s}(e,n,i=void 0===i?e<n?1:-1:rs(i),t)}}function Di(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=as(e),n=as(n)),t(e,n)}}function Ni(t,e,n,r,i,o,a,s,u,l){var c=8&e;e|=c?32:64,4&(e&=~(c?64:32))||(e&=-4);var h=[t,e,i,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,s,u,l],f=n.apply(void 0,h);return co(t)&&_o(f,h),f.placeholder=r,Ao(f,t,e)}function ji(t){var e=dt[t];return function(t,n){if(t=as(t),(n=null==n?0:un(is(n),292))&&rn(t)){var r=(us(t)+"e").split("e");return+((r=(us(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Fi=gn&&1/qe(new gn([,-0]))[1]==1/0?function(t){return new gn(t)}:Js;function Bi(t){return function(e){var n=ro(e);return n==v?Ue(e):n==b?He(e):function(t,e){return de(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function zi(t,e,n,i,s,u,l,c){var h=2&e;if(!h&&"function"!=typeof t)throw new mt(o);var f=i?i.length:0;if(f||(e&=-97,i=s=void 0),l=void 0===l?l:sn(is(l),0),c=void 0===c?c:is(c),f-=s?s.length:0,64&e){var d=i,p=s;i=s=void 0}var v=h?void 0:Yi(t),g=[t,e,n,i,s,d,p,u,l,c];if(v&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var u=e[3];if(u){var l=t[3];t[3]=l?gi(l,u,e[4]):u,t[4]=l?Ve(t[3],a):e[4]}(u=e[5])&&(l=t[5],t[5]=l?mi(l,u,e[6]):u,t[6]=l?Ve(t[5],a):e[6]);(u=e[7])&&(t[7]=u);128&r&&(t[8]=null==t[8]?e[8]:un(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(g,v),t=g[0],e=g[1],n=g[2],i=g[3],s=g[4],!(c=g[9]=void 0===g[9]?h?0:t.length:sn(g[9]-f,0))&&24&e&&(e&=-25),e&&1!=e)m=8==e||16==e?function(t,e,n){var i=Ci(t);return function o(){for(var a=arguments.length,s=r(a),u=a,l=Ki(o);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:Ve(s,l);if((a-=c.length)<n)return Ni(t,e,Ri,o.placeholder,void 0,s,c,void 0,void 0,n-a);var h=this&&this!==Gt&&this instanceof o?i:t;return oe(h,this,s)}}(t,e,c):32!=e&&33!=e||s.length?Ri.apply(void 0,g):function(t,e,n,i){var o=1&e,a=Ci(t);return function e(){for(var s=-1,u=arguments.length,l=-1,c=i.length,h=r(c+u),f=this&&this!==Gt&&this instanceof e?a:t;++l<c;)h[l]=i[l];for(;u--;)h[l++]=arguments[++s];return oe(f,o?n:this,h)}}(t,e,n,i);else var m=function(t,e,n){var r=1&e,i=Ci(t);return function e(){var o=this&&this!==Gt&&this instanceof e?i:t;return o.apply(r?n:this,arguments)}}(t,e,n);return Ao((v?Vr:_o)(m,g),t,e)}function Ui(t,e,n,r){return void 0===t||Ea(t,_t[n])&&!At.call(r,n)?e:t}function Wi(t,e,n,r,i,o){return qa(t)&&qa(e)&&(o.set(e,t),Or(t,e,void 0,Wi,o),o.delete(e)),t}function Vi(t){return Ya(t)?void 0:t}function qi(t,e,n,r,i,o){var a=1&n,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(t),c=o.get(e);if(l&&c)return l==e&&c==t;var h=-1,f=!0,d=2&n?new jn:void 0;for(o.set(t,e),o.set(e,t);++h<s;){var p=t[h],v=e[h];if(r)var g=a?r(v,p,h,e,t,o):r(p,v,h,t,e,o);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!me(e,(function(t,e){if(!Ie(d,e)&&(p===t||i(p,t,n,r,o)))return d.push(e)}))){f=!1;break}}else if(p!==v&&!i(p,v,n,r,o)){f=!1;break}}return o.delete(t),o.delete(e),f}function Hi(t){return So(go(t,void 0,Do),t+"")}function $i(t){return dr(t,ws,eo)}function Gi(t){return dr(t,Ss,no)}var Yi=bn?function(t){return bn.get(t)}:Js;function Xi(t){for(var e=t.name+"",n=_n[e],r=At.call(_n,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Ki(t){return(At.call(Rn,"placeholder")?Rn:t).placeholder}function Qi(){var t=Rn.iteratee||Ys;return t=t===Ys?xr:t,arguments.length?t(arguments[0],arguments[1]):t}function Ji(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Zi(t){for(var e=ws(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,po(i)]}return e}function to(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Ar(n)?n:void 0}var eo=en?function(t){return null==t?[]:(t=pt(t),ce(en(t),(function(e){return $t.call(t,e)})))}:ou,no=en?function(t){for(var e=[];t;)pe(e,eo(t)),t=Wt(t);return e}:ou,ro=pr;function io(t,e,n){for(var r=-1,i=(e=ui(e,t)).length,o=!1;++r<i;){var a=Po(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Va(i)&&so(a,i)&&(Ma(t)||Ia(t))}function oo(t){return"function"!=typeof t.constructor||fo(t)?{}:En(Wt(t))}function ao(t){return Ma(t)||Ia(t)||!!(Xt&&t&&t[Xt])}function so(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ut.test(t))&&t>-1&&t%1==0&&t<e}function uo(t,e,n){if(!qa(n))return!1;var r=typeof e;return!!("number"==r?Na(n)&&so(e,n.length):"string"==r&&e in n)&&Ea(n[e],t)}function lo(t,e){if(Ma(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Ja(t))||(q.test(t)||!V.test(t)||null!=e&&t in pt(e))}function co(t){var e=Xi(t),n=Rn[e];if("function"!=typeof n||!(e in In.prototype))return!1;if(t===n)return!0;var r=Yi(n);return!!r&&t===r[0]}(dn&&ro(new dn(new ArrayBuffer(1)))!=x||pn&&ro(new pn)!=v||vn&&"[object Promise]"!=ro(vn.resolve())||gn&&ro(new gn)!=b||mn&&ro(new mn)!=S)&&(ro=function(t){var e=pr(t),n=e==m?t.constructor:void 0,r=n?To(n):"";if(r)switch(r){case wn:return x;case Sn:return v;case An:return"[object Promise]";case xn:return b;case kn:return S}return e});var ho=wt?Ua:au;function fo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_t)}function po(t){return t==t&&!qa(t)}function vo(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in pt(n)))}}function go(t,e,n){return e=sn(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=sn(i.length-e,0),s=r(a);++o<a;)s[o]=i[e+o];o=-1;for(var u=r(e+1);++o<e;)u[o]=i[o];return u[e]=n(s),oe(t,this,u)}}function mo(t,e){return e.length<2?t:fr(t,$r(e,0,-1))}function yo(t,e){for(var n=t.length,r=un(e.length,n),i=yi(t);r--;){var o=e[r];t[r]=so(o,n)?i[o]:void 0}return t}function bo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var _o=xo(Vr),wo=Je||function(t,e){return Gt.setTimeout(t,e)},So=xo(qr);function Ao(t,e,n){var r=e+"";return So(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(K,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return se(s,(function(n){var r="_."+n[0];e&n[1]&&!he(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(Q);return e?e[1].split(J):[]}(r),n)))}function xo(t){var e=0,n=0;return function(){var r=ln(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function ko(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n<e;){var o=jr(n,i),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var Co=function(t){var e=xa(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(H,(function(t,n,r,i){e.push(r?i.replace(et,"$1"):n||t)})),e}));function Po(t){if("string"==typeof t||Ja(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function To(t){if(null!=t){try{return St.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ro(t){if(t instanceof In)return t.clone();var e=new Ln(t.__wrapped__,t.__chain__);return e.__actions__=yi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Eo=Br((function(t,e){return ja(t)?tr(t,ar(e,1,ja,!0)):[]})),Oo=Br((function(t,e){var n=zo(e);return ja(n)&&(n=void 0),ja(t)?tr(t,ar(e,1,ja,!0),Qi(n,2)):[]})),Lo=Br((function(t,e){var n=zo(e);return ja(n)&&(n=void 0),ja(t)?tr(t,ar(e,1,ja,!0),void 0,n):[]}));function Io(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),_e(t,Qi(e,3),i)}function Mo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=is(n),i=n<0?sn(r+i,0):un(i,r-1)),_e(t,Qi(e,3),i,!0)}function Do(t){return(null==t?0:t.length)?ar(t,1):[]}function No(t){return t&&t.length?t[0]:void 0}var jo=Br((function(t){var e=de(t,ai);return e.length&&e[0]===t[0]?yr(e):[]})),Fo=Br((function(t){var e=zo(t),n=de(t,ai);return e===zo(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?yr(n,Qi(e,2)):[]})),Bo=Br((function(t){var e=zo(t),n=de(t,ai);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?yr(n,void 0,e):[]}));function zo(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Uo=Br(Wo);function Wo(t,e){return t&&t.length&&e&&e.length?Dr(t,e):t}var Vo=Hi((function(t,e){var n=null==t?0:t.length,r=Xn(t,e);return Nr(t,de(e,(function(t){return so(t,n)?+t:t})).sort(vi)),r}));function qo(t){return null==t?t:fn.call(t)}var Ho=Br((function(t){return Zr(ar(t,1,ja,!0))})),$o=Br((function(t){var e=zo(t);return ja(e)&&(e=void 0),Zr(ar(t,1,ja,!0),Qi(e,2))})),Go=Br((function(t){var e=zo(t);return e="function"==typeof e?e:void 0,Zr(ar(t,1,ja,!0),void 0,e)}));function Yo(t){if(!t||!t.length)return[];var e=0;return t=ce(t,(function(t){if(ja(t))return e=sn(t.length,e),!0})),Re(e,(function(e){return de(t,ke(e))}))}function Xo(t,e){if(!t||!t.length)return[];var n=Yo(t);return null==e?n:de(n,(function(t){return oe(e,void 0,t)}))}var Ko=Br((function(t,e){return ja(t)?tr(t,e):[]})),Qo=Br((function(t){return ii(ce(t,ja))})),Jo=Br((function(t){var e=zo(t);return ja(e)&&(e=void 0),ii(ce(t,ja),Qi(e,2))})),Zo=Br((function(t){var e=zo(t);return e="function"==typeof e?e:void 0,ii(ce(t,ja),void 0,e)})),ta=Br(Yo);var ea=Br((function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Xo(t,n)}));function na(t){var e=Rn(t);return e.__chain__=!0,e}function ra(t,e){return e(t)}var ia=Hi((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Xn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof In&&so(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ra,args:[i],thisArg:void 0}),new Ln(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var oa=_i((function(t,e,n){At.call(t,n)?++t[n]:Yn(t,n,1)}));var aa=Pi(Io),sa=Pi(Mo);function ua(t,e){return(Ma(t)?se:er)(t,Qi(e,3))}function la(t,e){return(Ma(t)?ue:nr)(t,Qi(e,3))}var ca=_i((function(t,e,n){At.call(t,n)?t[n].push(e):Yn(t,n,[e])}));var ha=Br((function(t,e,n){var i=-1,o="function"==typeof e,a=Na(t)?r(t.length):[];return er(t,(function(t){a[++i]=o?oe(e,t,n):br(t,e,n)})),a})),fa=_i((function(t,e,n){Yn(t,n,e)}));function da(t,e){return(Ma(t)?de:Tr)(t,Qi(e,3))}var pa=_i((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var va=Br((function(t,e){if(null==t)return[];var n=e.length;return n>1&&uo(t,e[0],e[1])?e=[]:n>2&&uo(e[0],e[1],e[2])&&(e=[e[0]]),Ir(t,ar(e,1),[])})),ga=Qe||function(){return Gt.Date.now()};function ma(t,e,n){return e=n?void 0:e,zi(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ya(t,e){var n;if("function"!=typeof e)throw new mt(o);return t=is(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var ba=Br((function(t,e,n){var r=1;if(n.length){var i=Ve(n,Ki(ba));r|=32}return zi(t,r,e,n,i)})),_a=Br((function(t,e,n){var r=3;if(n.length){var i=Ve(n,Ki(_a));r|=32}return zi(e,r,t,n,i)}));function wa(t,e,n){var r,i,a,s,u,l,c=0,h=!1,f=!1,d=!0;if("function"!=typeof t)throw new mt(o);function p(e){var n=r,o=i;return r=i=void 0,c=e,s=t.apply(o,n)}function v(t){return c=t,u=wo(m,e),h?p(t):s}function g(t){var n=t-l;return void 0===l||n>=e||n<0||f&&t-c>=a}function m(){var t=ga();if(g(t))return y(t);u=wo(m,function(t){var n=e-(t-l);return f?un(n,a-(t-c)):n}(t))}function y(t){return u=void 0,d&&r?p(t):(r=i=void 0,s)}function b(){var t=ga(),n=g(t);if(r=arguments,i=this,l=t,n){if(void 0===u)return v(l);if(f)return hi(u),u=wo(m,e),p(l)}return void 0===u&&(u=wo(m,e)),s}return e=as(e)||0,qa(n)&&(h=!!n.leading,a=(f="maxWait"in n)?sn(as(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==u&&hi(u),c=0,r=l=i=u=void 0},b.flush=function(){return void 0===u?s:y(ga())},b}var Sa=Br((function(t,e){return Zn(t,1,e)})),Aa=Br((function(t,e,n){return Zn(t,as(e)||0,n)}));function xa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new mt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(xa.Cache||Nn),n}function ka(t){if("function"!=typeof t)throw new mt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}xa.Cache=Nn;var Ca=li((function(t,e){var n=(e=1==e.length&&Ma(e[0])?de(e[0],Oe(Qi())):de(ar(e,1),Oe(Qi()))).length;return Br((function(r){for(var i=-1,o=un(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return oe(t,this,r)}))})),Pa=Br((function(t,e){return zi(t,32,void 0,e,Ve(e,Ki(Pa)))})),Ta=Br((function(t,e){return zi(t,64,void 0,e,Ve(e,Ki(Ta)))})),Ra=Hi((function(t,e){return zi(t,256,void 0,void 0,void 0,e)}));function Ea(t,e){return t===e||t!=t&&e!=e}var Oa=Di(vr),La=Di((function(t,e){return t>=e})),Ia=_r(function(){return arguments}())?_r:function(t){return Ha(t)&&At.call(t,"callee")&&!$t.call(t,"callee")},Ma=r.isArray,Da=Zt?Oe(Zt):function(t){return Ha(t)&&pr(t)==A};function Na(t){return null!=t&&Va(t.length)&&!Ua(t)}function ja(t){return Ha(t)&&Na(t)}var Fa=nn||au,Ba=te?Oe(te):function(t){return Ha(t)&&pr(t)==h};function za(t){if(!Ha(t))return!1;var e=pr(t);return e==f||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ya(t)}function Ua(t){if(!qa(t))return!1;var e=pr(t);return e==d||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Wa(t){return"number"==typeof t&&t==is(t)}function Va(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function qa(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ha(t){return null!=t&&"object"==typeof t}var $a=ee?Oe(ee):function(t){return Ha(t)&&ro(t)==v};function Ga(t){return"number"==typeof t||Ha(t)&&pr(t)==g}function Ya(t){if(!Ha(t)||pr(t)!=m)return!1;var e=Wt(t);if(null===e)return!0;var n=At.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&St.call(n)==Pt}var Xa=ne?Oe(ne):function(t){return Ha(t)&&pr(t)==y};var Ka=re?Oe(re):function(t){return Ha(t)&&ro(t)==b};function Qa(t){return"string"==typeof t||!Ma(t)&&Ha(t)&&pr(t)==_}function Ja(t){return"symbol"==typeof t||Ha(t)&&pr(t)==w}var Za=ie?Oe(ie):function(t){return Ha(t)&&Va(t.length)&&!!zt[pr(t)]};var ts=Di(Pr),es=Di((function(t,e){return t<=e}));function ns(t){if(!t)return[];if(Na(t))return Qa(t)?Ge(t):yi(t);if(Qt&&t[Qt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Qt]());var e=ro(t);return(e==v?Ue:e==b?qe:Es)(t)}function rs(t){return t?(t=as(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function is(t){var e=rs(t),n=e%1;return e==e?n?e-n:e:0}function os(t){return t?Kn(is(t),0,4294967295):0}function as(t){if("number"==typeof t)return t;if(Ja(t))return NaN;if(qa(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=qa(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ee(t);var n=ot.test(t);return n||st.test(t)?qt(t.slice(2),n?2:8):it.test(t)?NaN:+t}function ss(t){return bi(t,Ss(t))}function us(t){return null==t?"":Jr(t)}var ls=wi((function(t,e){if(fo(e)||Na(e))bi(e,ws(e),t);else for(var n in e)At.call(e,n)&&qn(t,n,e[n])})),cs=wi((function(t,e){bi(e,Ss(e),t)})),hs=wi((function(t,e,n,r){bi(e,Ss(e),t,r)})),fs=wi((function(t,e,n,r){bi(e,ws(e),t,r)})),ds=Hi(Xn);var ps=Br((function(t,e){t=pt(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&uo(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=Ss(o),s=-1,u=a.length;++s<u;){var l=a[s],c=t[l];(void 0===c||Ea(c,_t[l])&&!At.call(t,l))&&(t[l]=o[l])}return t})),vs=Br((function(t){return t.push(void 0,Wi),oe(xs,void 0,t)}));function gs(t,e,n){var r=null==t?void 0:fr(t,e);return void 0===r?n:r}function ms(t,e){return null!=t&&io(t,e,mr)}var ys=Ei((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ct.call(e)),t[e]=n}),qs(Gs)),bs=Ei((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ct.call(e)),At.call(t,e)?t[e].push(n):t[e]=[n]}),Qi),_s=Br(br);function ws(t){return Na(t)?Bn(t):kr(t)}function Ss(t){return Na(t)?Bn(t,!0):Cr(t)}var As=wi((function(t,e,n){Or(t,e,n)})),xs=wi((function(t,e,n,r){Or(t,e,n,r)})),ks=Hi((function(t,e){var n={};if(null==t)return n;var r=!1;e=de(e,(function(e){return e=ui(e,t),r||(r=e.length>1),e})),bi(t,Gi(t),n),r&&(n=Qn(n,7,Vi));for(var i=e.length;i--;)ti(n,e[i]);return n}));var Cs=Hi((function(t,e){return null==t?{}:function(t,e){return Mr(t,e,(function(e,n){return ms(t,n)}))}(t,e)}));function Ps(t,e){if(null==t)return{};var n=de(Gi(t),(function(t){return[t]}));return e=Qi(e),Mr(t,n,(function(t,n){return e(t,n[0])}))}var Ts=Bi(ws),Rs=Bi(Ss);function Es(t){return null==t?[]:Le(t,ws(t))}var Os=ki((function(t,e,n){return e=e.toLowerCase(),t+(n?Ls(e):e)}));function Ls(t){return zs(us(t).toLowerCase())}function Is(t){return(t=us(t))&&t.replace(lt,je).replace(It,"")}var Ms=ki((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ds=ki((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ns=xi("toLowerCase");var js=ki((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Fs=ki((function(t,e,n){return t+(n?" ":"")+zs(e)}));var Bs=ki((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),zs=xi("toUpperCase");function Us(t,e,n){return t=us(t),void 0===(e=n?void 0:e)?function(t){return jt.test(t)}(t)?function(t){return t.match(Dt)||[]}(t):function(t){return t.match(Z)||[]}(t):t.match(e)||[]}var Ws=Br((function(t,e){try{return oe(t,void 0,e)}catch(t){return za(t)?t:new X(t)}})),Vs=Hi((function(t,e){return se(e,(function(e){e=Po(e),Yn(t,e,ba(t[e],t))})),t}));function qs(t){return function(){return t}}var Hs=Ti(),$s=Ti(!0);function Gs(t){return t}function Ys(t){return xr("function"==typeof t?t:Qn(t,1))}var Xs=Br((function(t,e){return function(n){return br(n,t,e)}})),Ks=Br((function(t,e){return function(n){return br(t,n,e)}}));function Qs(t,e,n){var r=ws(e),i=hr(e,r);null!=n||qa(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=hr(e,ws(e)));var o=!(qa(n)&&"chain"in n&&!n.chain),a=Ua(t);return se(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=yi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,pe([this.value()],arguments))})})),t}function Js(){}var Zs=Li(de),tu=Li(le),eu=Li(me);function nu(t){return lo(t)?ke(Po(t)):function(t){return function(e){return fr(e,t)}}(t)}var ru=Mi(),iu=Mi(!0);function ou(){return[]}function au(){return!1}var su=Oi((function(t,e){return t+e}),0),uu=ji("ceil"),lu=Oi((function(t,e){return t/e}),1),cu=ji("floor");var hu,fu=Oi((function(t,e){return t*e}),1),du=ji("round"),pu=Oi((function(t,e){return t-e}),0);return Rn.after=function(t,e){if("function"!=typeof e)throw new mt(o);return t=is(t),function(){if(--t<1)return e.apply(this,arguments)}},Rn.ary=ma,Rn.assign=ls,Rn.assignIn=cs,Rn.assignInWith=hs,Rn.assignWith=fs,Rn.at=ds,Rn.before=ya,Rn.bind=ba,Rn.bindAll=Vs,Rn.bindKey=_a,Rn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ma(t)?t:[t]},Rn.chain=na,Rn.chunk=function(t,e,n){e=(n?uo(t,e,n):void 0===e)?1:sn(is(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,s=r(Ze(i/e));o<i;)s[a++]=$r(t,o,o+=e);return s},Rn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Rn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return pe(Ma(n)?yi(n):[n],ar(e,1))},Rn.cond=function(t){var e=null==t?0:t.length,n=Qi();return t=e?de(t,(function(t){if("function"!=typeof t[1])throw new mt(o);return[n(t[0]),t[1]]})):[],Br((function(n){for(var r=-1;++r<e;){var i=t[r];if(oe(i[0],this,n))return oe(i[1],this,n)}}))},Rn.conforms=function(t){return function(t){var e=ws(t);return function(n){return Jn(n,t,e)}}(Qn(t,1))},Rn.constant=qs,Rn.countBy=oa,Rn.create=function(t,e){var n=En(t);return null==e?n:Gn(n,e)},Rn.curry=function t(e,n,r){var i=zi(e,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=t.placeholder,i},Rn.curryRight=function t(e,n,r){var i=zi(e,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=t.placeholder,i},Rn.debounce=wa,Rn.defaults=ps,Rn.defaultsDeep=vs,Rn.defer=Sa,Rn.delay=Aa,Rn.difference=Eo,Rn.differenceBy=Oo,Rn.differenceWith=Lo,Rn.drop=function(t,e,n){var r=null==t?0:t.length;return r?$r(t,(e=n||void 0===e?1:is(e))<0?0:e,r):[]},Rn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?$r(t,0,(e=r-(e=n||void 0===e?1:is(e)))<0?0:e):[]},Rn.dropRightWhile=function(t,e){return t&&t.length?ni(t,Qi(e,3),!0,!0):[]},Rn.dropWhile=function(t,e){return t&&t.length?ni(t,Qi(e,3),!0):[]},Rn.fill=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&uo(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=is(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:is(r))<0&&(r+=i),r=n>r?0:os(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Rn.filter=function(t,e){return(Ma(t)?ce:or)(t,Qi(e,3))},Rn.flatMap=function(t,e){return ar(da(t,e),1)},Rn.flatMapDeep=function(t,e){return ar(da(t,e),1/0)},Rn.flatMapDepth=function(t,e,n){return n=void 0===n?1:is(n),ar(da(t,e),n)},Rn.flatten=Do,Rn.flattenDeep=function(t){return(null==t?0:t.length)?ar(t,1/0):[]},Rn.flattenDepth=function(t,e){return(null==t?0:t.length)?ar(t,e=void 0===e?1:is(e)):[]},Rn.flip=function(t){return zi(t,512)},Rn.flow=Hs,Rn.flowRight=$s,Rn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Rn.functions=function(t){return null==t?[]:hr(t,ws(t))},Rn.functionsIn=function(t){return null==t?[]:hr(t,Ss(t))},Rn.groupBy=ca,Rn.initial=function(t){return(null==t?0:t.length)?$r(t,0,-1):[]},Rn.intersection=jo,Rn.intersectionBy=Fo,Rn.intersectionWith=Bo,Rn.invert=ys,Rn.invertBy=bs,Rn.invokeMap=ha,Rn.iteratee=Ys,Rn.keyBy=fa,Rn.keys=ws,Rn.keysIn=Ss,Rn.map=da,Rn.mapKeys=function(t,e){var n={};return e=Qi(e,3),lr(t,(function(t,r,i){Yn(n,e(t,r,i),t)})),n},Rn.mapValues=function(t,e){var n={};return e=Qi(e,3),lr(t,(function(t,r,i){Yn(n,r,e(t,r,i))})),n},Rn.matches=function(t){return Rr(Qn(t,1))},Rn.matchesProperty=function(t,e){return Er(t,Qn(e,1))},Rn.memoize=xa,Rn.merge=As,Rn.mergeWith=xs,Rn.method=Xs,Rn.methodOf=Ks,Rn.mixin=Qs,Rn.negate=ka,Rn.nthArg=function(t){return t=is(t),Br((function(e){return Lr(e,t)}))},Rn.omit=ks,Rn.omitBy=function(t,e){return Ps(t,ka(Qi(e)))},Rn.once=function(t){return ya(2,t)},Rn.orderBy=function(t,e,n,r){return null==t?[]:(Ma(e)||(e=null==e?[]:[e]),Ma(n=r?void 0:n)||(n=null==n?[]:[n]),Ir(t,e,n))},Rn.over=Zs,Rn.overArgs=Ca,Rn.overEvery=tu,Rn.overSome=eu,Rn.partial=Pa,Rn.partialRight=Ta,Rn.partition=pa,Rn.pick=Cs,Rn.pickBy=Ps,Rn.property=nu,Rn.propertyOf=function(t){return function(e){return null==t?void 0:fr(t,e)}},Rn.pull=Uo,Rn.pullAll=Wo,Rn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Dr(t,e,Qi(n,2)):t},Rn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Dr(t,e,void 0,n):t},Rn.pullAt=Vo,Rn.range=ru,Rn.rangeRight=iu,Rn.rearg=Ra,Rn.reject=function(t,e){return(Ma(t)?ce:or)(t,ka(Qi(e,3)))},Rn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Qi(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Nr(t,i),n},Rn.rest=function(t,e){if("function"!=typeof t)throw new mt(o);return Br(t,e=void 0===e?e:is(e))},Rn.reverse=qo,Rn.sampleSize=function(t,e,n){return e=(n?uo(t,e,n):void 0===e)?1:is(e),(Ma(t)?Un:Ur)(t,e)},Rn.set=function(t,e,n){return null==t?t:Wr(t,e,n)},Rn.setWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:Wr(t,e,n,r)},Rn.shuffle=function(t){return(Ma(t)?Wn:Hr)(t)},Rn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&uo(t,e,n)?(e=0,n=r):(e=null==e?0:is(e),n=void 0===n?r:is(n)),$r(t,e,n)):[]},Rn.sortBy=va,Rn.sortedUniq=function(t){return t&&t.length?Kr(t):[]},Rn.sortedUniqBy=function(t,e){return t&&t.length?Kr(t,Qi(e,2)):[]},Rn.split=function(t,e,n){return n&&"number"!=typeof n&&uo(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=us(t))&&("string"==typeof e||null!=e&&!Xa(e))&&!(e=Jr(e))&&ze(t)?ci(Ge(t),0,n):t.split(e,n):[]},Rn.spread=function(t,e){if("function"!=typeof t)throw new mt(o);return e=null==e?0:sn(is(e),0),Br((function(n){var r=n[e],i=ci(n,0,e);return r&&pe(i,r),oe(t,this,i)}))},Rn.tail=function(t){var e=null==t?0:t.length;return e?$r(t,1,e):[]},Rn.take=function(t,e,n){return t&&t.length?$r(t,0,(e=n||void 0===e?1:is(e))<0?0:e):[]},Rn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?$r(t,(e=r-(e=n||void 0===e?1:is(e)))<0?0:e,r):[]},Rn.takeRightWhile=function(t,e){return t&&t.length?ni(t,Qi(e,3),!1,!0):[]},Rn.takeWhile=function(t,e){return t&&t.length?ni(t,Qi(e,3)):[]},Rn.tap=function(t,e){return e(t),t},Rn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new mt(o);return qa(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),wa(t,e,{leading:r,maxWait:e,trailing:i})},Rn.thru=ra,Rn.toArray=ns,Rn.toPairs=Ts,Rn.toPairsIn=Rs,Rn.toPath=function(t){return Ma(t)?de(t,Po):Ja(t)?[t]:yi(Co(us(t)))},Rn.toPlainObject=ss,Rn.transform=function(t,e,n){var r=Ma(t),i=r||Fa(t)||Za(t);if(e=Qi(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:qa(t)&&Ua(o)?En(Wt(t)):{}}return(i?se:lr)(t,(function(t,r,i){return e(n,t,r,i)})),n},Rn.unary=function(t){return ma(t,1)},Rn.union=Ho,Rn.unionBy=$o,Rn.unionWith=Go,Rn.uniq=function(t){return t&&t.length?Zr(t):[]},Rn.uniqBy=function(t,e){return t&&t.length?Zr(t,Qi(e,2)):[]},Rn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Zr(t,void 0,e):[]},Rn.unset=function(t,e){return null==t||ti(t,e)},Rn.unzip=Yo,Rn.unzipWith=Xo,Rn.update=function(t,e,n){return null==t?t:ei(t,e,si(n))},Rn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:ei(t,e,si(n),r)},Rn.values=Es,Rn.valuesIn=function(t){return null==t?[]:Le(t,Ss(t))},Rn.without=Ko,Rn.words=Us,Rn.wrap=function(t,e){return Pa(si(e),t)},Rn.xor=Qo,Rn.xorBy=Jo,Rn.xorWith=Zo,Rn.zip=ta,Rn.zipObject=function(t,e){return oi(t||[],e||[],qn)},Rn.zipObjectDeep=function(t,e){return oi(t||[],e||[],Wr)},Rn.zipWith=ea,Rn.entries=Ts,Rn.entriesIn=Rs,Rn.extend=cs,Rn.extendWith=hs,Qs(Rn,Rn),Rn.add=su,Rn.attempt=Ws,Rn.camelCase=Os,Rn.capitalize=Ls,Rn.ceil=uu,Rn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==e&&(e=(e=as(e))==e?e:0),Kn(as(t),e,n)},Rn.clone=function(t){return Qn(t,4)},Rn.cloneDeep=function(t){return Qn(t,5)},Rn.cloneDeepWith=function(t,e){return Qn(t,5,e="function"==typeof e?e:void 0)},Rn.cloneWith=function(t,e){return Qn(t,4,e="function"==typeof e?e:void 0)},Rn.conformsTo=function(t,e){return null==e||Jn(t,e,ws(e))},Rn.deburr=Is,Rn.defaultTo=function(t,e){return null==t||t!=t?e:t},Rn.divide=lu,Rn.endsWith=function(t,e,n){t=us(t),e=Jr(e);var r=t.length,i=n=void 0===n?r:Kn(is(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},Rn.eq=Ea,Rn.escape=function(t){return(t=us(t))&&B.test(t)?t.replace(j,Fe):t},Rn.escapeRegExp=function(t){return(t=us(t))&&G.test(t)?t.replace($,"\\$&"):t},Rn.every=function(t,e,n){var r=Ma(t)?le:rr;return n&&uo(t,e,n)&&(e=void 0),r(t,Qi(e,3))},Rn.find=aa,Rn.findIndex=Io,Rn.findKey=function(t,e){return be(t,Qi(e,3),lr)},Rn.findLast=sa,Rn.findLastIndex=Mo,Rn.findLastKey=function(t,e){return be(t,Qi(e,3),cr)},Rn.floor=cu,Rn.forEach=ua,Rn.forEachRight=la,Rn.forIn=function(t,e){return null==t?t:sr(t,Qi(e,3),Ss)},Rn.forInRight=function(t,e){return null==t?t:ur(t,Qi(e,3),Ss)},Rn.forOwn=function(t,e){return t&&lr(t,Qi(e,3))},Rn.forOwnRight=function(t,e){return t&&cr(t,Qi(e,3))},Rn.get=gs,Rn.gt=Oa,Rn.gte=La,Rn.has=function(t,e){return null!=t&&io(t,e,gr)},Rn.hasIn=ms,Rn.head=No,Rn.identity=Gs,Rn.includes=function(t,e,n,r){t=Na(t)?t:Es(t),n=n&&!r?is(n):0;var i=t.length;return n<0&&(n=sn(i+n,0)),Qa(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&we(t,e,n)>-1},Rn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),we(t,e,i)},Rn.inRange=function(t,e,n){return e=rs(e),void 0===n?(n=e,e=0):n=rs(n),function(t,e,n){return t>=un(e,n)&&t<sn(e,n)}(t=as(t),e,n)},Rn.invoke=_s,Rn.isArguments=Ia,Rn.isArray=Ma,Rn.isArrayBuffer=Da,Rn.isArrayLike=Na,Rn.isArrayLikeObject=ja,Rn.isBoolean=function(t){return!0===t||!1===t||Ha(t)&&pr(t)==c},Rn.isBuffer=Fa,Rn.isDate=Ba,Rn.isElement=function(t){return Ha(t)&&1===t.nodeType&&!Ya(t)},Rn.isEmpty=function(t){if(null==t)return!0;if(Na(t)&&(Ma(t)||"string"==typeof t||"function"==typeof t.splice||Fa(t)||Za(t)||Ia(t)))return!t.length;var e=ro(t);if(e==v||e==b)return!t.size;if(fo(t))return!kr(t).length;for(var n in t)if(At.call(t,n))return!1;return!0},Rn.isEqual=function(t,e){return wr(t,e)},Rn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?wr(t,e,void 0,n):!!r},Rn.isError=za,Rn.isFinite=function(t){return"number"==typeof t&&rn(t)},Rn.isFunction=Ua,Rn.isInteger=Wa,Rn.isLength=Va,Rn.isMap=$a,Rn.isMatch=function(t,e){return t===e||Sr(t,e,Zi(e))},Rn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:void 0,Sr(t,e,Zi(e),n)},Rn.isNaN=function(t){return Ga(t)&&t!=+t},Rn.isNative=function(t){if(ho(t))throw new X("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ar(t)},Rn.isNil=function(t){return null==t},Rn.isNull=function(t){return null===t},Rn.isNumber=Ga,Rn.isObject=qa,Rn.isObjectLike=Ha,Rn.isPlainObject=Ya,Rn.isRegExp=Xa,Rn.isSafeInteger=function(t){return Wa(t)&&t>=-9007199254740991&&t<=9007199254740991},Rn.isSet=Ka,Rn.isString=Qa,Rn.isSymbol=Ja,Rn.isTypedArray=Za,Rn.isUndefined=function(t){return void 0===t},Rn.isWeakMap=function(t){return Ha(t)&&ro(t)==S},Rn.isWeakSet=function(t){return Ha(t)&&"[object WeakSet]"==pr(t)},Rn.join=function(t,e){return null==t?"":on.call(t,e)},Rn.kebabCase=Ms,Rn.last=zo,Rn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=is(n))<0?sn(r+i,0):un(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):_e(t,Ae,i,!0)},Rn.lowerCase=Ds,Rn.lowerFirst=Ns,Rn.lt=ts,Rn.lte=es,Rn.max=function(t){return t&&t.length?ir(t,Gs,vr):void 0},Rn.maxBy=function(t,e){return t&&t.length?ir(t,Qi(e,2),vr):void 0},Rn.mean=function(t){return xe(t,Gs)},Rn.meanBy=function(t,e){return xe(t,Qi(e,2))},Rn.min=function(t){return t&&t.length?ir(t,Gs,Pr):void 0},Rn.minBy=function(t,e){return t&&t.length?ir(t,Qi(e,2),Pr):void 0},Rn.stubArray=ou,Rn.stubFalse=au,Rn.stubObject=function(){return{}},Rn.stubString=function(){return""},Rn.stubTrue=function(){return!0},Rn.multiply=fu,Rn.nth=function(t,e){return t&&t.length?Lr(t,is(e)):void 0},Rn.noConflict=function(){return Gt._===this&&(Gt._=Tt),this},Rn.noop=Js,Rn.now=ga,Rn.pad=function(t,e,n){t=us(t);var r=(e=is(e))?$e(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Ii(tn(i),n)+t+Ii(Ze(i),n)},Rn.padEnd=function(t,e,n){t=us(t);var r=(e=is(e))?$e(t):0;return e&&r<e?t+Ii(e-r,n):t},Rn.padStart=function(t,e,n){t=us(t);var r=(e=is(e))?$e(t):0;return e&&r<e?Ii(e-r,n)+t:t},Rn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),cn(us(t).replace(Y,""),e||0)},Rn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&uo(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=rs(t),void 0===e?(e=t,t=0):e=rs(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=hn();return un(t+i*(e-t+Vt("1e-"+((i+"").length-1))),e)}return jr(t,e)},Rn.reduce=function(t,e,n){var r=Ma(t)?ve:Pe,i=arguments.length<3;return r(t,Qi(e,4),n,i,er)},Rn.reduceRight=function(t,e,n){var r=Ma(t)?ge:Pe,i=arguments.length<3;return r(t,Qi(e,4),n,i,nr)},Rn.repeat=function(t,e,n){return e=(n?uo(t,e,n):void 0===e)?1:is(e),Fr(us(t),e)},Rn.replace=function(){var t=arguments,e=us(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Rn.result=function(t,e,n){var r=-1,i=(e=ui(e,t)).length;for(i||(i=1,t=void 0);++r<i;){var o=null==t?void 0:t[Po(e[r])];void 0===o&&(r=i,o=n),t=Ua(o)?o.call(t):o}return t},Rn.round=du,Rn.runInContext=t,Rn.sample=function(t){return(Ma(t)?zn:zr)(t)},Rn.size=function(t){if(null==t)return 0;if(Na(t))return Qa(t)?$e(t):t.length;var e=ro(t);return e==v||e==b?t.size:kr(t).length},Rn.snakeCase=js,Rn.some=function(t,e,n){var r=Ma(t)?me:Gr;return n&&uo(t,e,n)&&(e=void 0),r(t,Qi(e,3))},Rn.sortedIndex=function(t,e){return Yr(t,e)},Rn.sortedIndexBy=function(t,e,n){return Xr(t,e,Qi(n,2))},Rn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Yr(t,e);if(r<n&&Ea(t[r],e))return r}return-1},Rn.sortedLastIndex=function(t,e){return Yr(t,e,!0)},Rn.sortedLastIndexBy=function(t,e,n){return Xr(t,e,Qi(n,2),!0)},Rn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=Yr(t,e,!0)-1;if(Ea(t[n],e))return n}return-1},Rn.startCase=Fs,Rn.startsWith=function(t,e,n){return t=us(t),n=null==n?0:Kn(is(n),0,t.length),e=Jr(e),t.slice(n,n+e.length)==e},Rn.subtract=pu,Rn.sum=function(t){return t&&t.length?Te(t,Gs):0},Rn.sumBy=function(t,e){return t&&t.length?Te(t,Qi(e,2)):0},Rn.template=function(t,e,n){var r=Rn.templateSettings;n&&uo(t,e,n)&&(e=void 0),t=us(t),e=hs({},e,r,Ui);var i,o,a=hs({},e.imports,r.imports,Ui),s=ws(a),u=Le(a,s),l=0,c=e.interpolate||ct,h="__p += '",f=vt((e.escape||ct).source+"|"+c.source+"|"+(c===W?nt:ct).source+"|"+(e.evaluate||ct).source+"|$","g"),d="//# sourceURL="+(At.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bt+"]")+"\n";t.replace(f,(function(e,n,r,a,s,u){return r||(r=a),h+=t.slice(l,u).replace(ht,Be),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e})),h+="';\n";var p=At.call(e,"variable")&&e.variable;if(p){if(tt.test(p))throw new X("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(I,""):h).replace(M,"$1").replace(D,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=Ws((function(){return ft(s,d+"return "+h).apply(void 0,u)}));if(v.source=h,za(v))throw v;return v},Rn.times=function(t,e){if((t=is(t))<1||t>9007199254740991)return[];var n=4294967295,r=un(t,4294967295);t-=4294967295;for(var i=Re(r,e=Qi(e));++n<t;)e(n);return i},Rn.toFinite=rs,Rn.toInteger=is,Rn.toLength=os,Rn.toLower=function(t){return us(t).toLowerCase()},Rn.toNumber=as,Rn.toSafeInteger=function(t){return t?Kn(is(t),-9007199254740991,9007199254740991):0===t?t:0},Rn.toString=us,Rn.toUpper=function(t){return us(t).toUpperCase()},Rn.trim=function(t,e,n){if((t=us(t))&&(n||void 0===e))return Ee(t);if(!t||!(e=Jr(e)))return t;var r=Ge(t),i=Ge(e);return ci(r,Me(r,i),De(r,i)+1).join("")},Rn.trimEnd=function(t,e,n){if((t=us(t))&&(n||void 0===e))return t.slice(0,Ye(t)+1);if(!t||!(e=Jr(e)))return t;var r=Ge(t);return ci(r,0,De(r,Ge(e))+1).join("")},Rn.trimStart=function(t,e,n){if((t=us(t))&&(n||void 0===e))return t.replace(Y,"");if(!t||!(e=Jr(e)))return t;var r=Ge(t);return ci(r,Me(r,Ge(e))).join("")},Rn.truncate=function(t,e){var n=30,r="...";if(qa(e)){var i="separator"in e?e.separator:i;n="length"in e?is(e.length):n,r="omission"in e?Jr(e.omission):r}var o=(t=us(t)).length;if(ze(t)){var a=Ge(t);o=a.length}if(n>=o)return t;var s=n-$e(r);if(s<1)return r;var u=a?ci(a,0,s).join(""):t.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),Xa(i)){if(t.slice(s).search(i)){var l,c=u;for(i.global||(i=vt(i.source,us(rt.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var h=l.index;u=u.slice(0,void 0===h?s:h)}}else if(t.indexOf(Jr(i),s)!=s){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+r},Rn.unescape=function(t){return(t=us(t))&&F.test(t)?t.replace(N,Xe):t},Rn.uniqueId=function(t){var e=++xt;return us(t)+e},Rn.upperCase=Bs,Rn.upperFirst=zs,Rn.each=ua,Rn.eachRight=la,Rn.first=No,Qs(Rn,(hu={},lr(Rn,(function(t,e){At.call(Rn.prototype,e)||(hu[e]=t)})),hu),{chain:!1}),Rn.VERSION="4.17.21",se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Rn[t].placeholder=Rn})),se(["drop","take"],(function(t,e){In.prototype[t]=function(n){n=void 0===n?1:sn(is(n),0);var r=this.__filtered__&&!e?new In(this):this.clone();return r.__filtered__?r.__takeCount__=un(n,r.__takeCount__):r.__views__.push({size:un(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},In.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),se(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;In.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Qi(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");In.prototype[t]=function(){return this[n](1).value()[0]}})),se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");In.prototype[t]=function(){return this.__filtered__?new In(this):this[n](1)}})),In.prototype.compact=function(){return this.filter(Gs)},In.prototype.find=function(t){return this.filter(t).head()},In.prototype.findLast=function(t){return this.reverse().find(t)},In.prototype.invokeMap=Br((function(t,e){return"function"==typeof t?new In(this):this.map((function(n){return br(n,t,e)}))})),In.prototype.reject=function(t){return this.filter(ka(Qi(t)))},In.prototype.slice=function(t,e){t=is(t);var n=this;return n.__filtered__&&(t>0||e<0)?new In(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=is(e))<0?n.dropRight(-e):n.take(e-t)),n)},In.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},In.prototype.toArray=function(){return this.take(4294967295)},lr(In.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=Rn[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(Rn.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof In,u=a[0],l=s||Ma(e),c=function(t){var e=i.apply(Rn,pe([t],a));return r&&h?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var h=this.__chain__,f=!!this.__actions__.length,d=o&&!h,p=s&&!f;if(!o&&l){e=p?e:new In(this);var v=t.apply(e,a);return v.__actions__.push({func:ra,args:[c],thisArg:void 0}),new Ln(v,h)}return d&&p?t.apply(this,a):(v=this.thru(c),d?r?v.value()[0]:v.value():v)})})),se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=yt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Rn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ma(i)?i:[],t)}return this[n]((function(n){return e.apply(Ma(n)?n:[],t)}))}})),lr(In.prototype,(function(t,e){var n=Rn[e];if(n){var r=n.name+"";At.call(_n,r)||(_n[r]=[]),_n[r].push({name:e,func:n})}})),_n[Ri(void 0,2).name]=[{name:"wrapper",func:void 0}],In.prototype.clone=function(){var t=new In(this.__wrapped__);return t.__actions__=yi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=yi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=yi(this.__views__),t},In.prototype.reverse=function(){if(this.__filtered__){var t=new In(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},In.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ma(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=un(e,t+a);break;case"takeRight":t=sn(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,h=c.length,f=0,d=un(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return ri(t,this.__actions__);var p=[];t:for(;u--&&f<d;){for(var v=-1,g=t[l+=e];++v<h;){var m=c[v],y=m.iteratee,b=m.type,_=y(g);if(2==b)g=_;else if(!_){if(1==b)continue t;break t}}p[f++]=g}return p},Rn.prototype.at=ia,Rn.prototype.chain=function(){return na(this)},Rn.prototype.commit=function(){return new Ln(this.value(),this.__chain__)},Rn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ns(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Rn.prototype.plant=function(t){for(var e,n=this;n instanceof On;){var r=Ro(n);r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},Rn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof In){var e=t;return this.__actions__.length&&(e=new In(this)),(e=e.reverse()).__actions__.push({func:ra,args:[qo],thisArg:void 0}),new Ln(e,this.__chain__)}return this.thru(qo)},Rn.prototype.toJSON=Rn.prototype.valueOf=Rn.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},Rn.prototype.first=Rn.prototype.head,Qt&&(Rn.prototype[Qt]=function(){return this}),Rn}();Gt._=Ke,void 0===(i=function(){return Ke}.call(e,n,e,r))||(r.exports=i)}).call(this)}).call(this,n(8),n(35)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.r(e),n.d(e,"install",(function(){return Bo})),n.d(e,"version",(function(){return Fo})),n.d(e,"Area",(function(){return X})),n.d(e,"Avatar",(function(){return Z})),n.d(e,"Button",(function(){return yt})),n.d(e,"Calendar",(function(){return Ce})),n.d(e,"Cell",(function(){return Le})),n.d(e,"CellGroup",(function(){return je})),n.d(e,"Checkbox",(function(){return qe})),n.d(e,"CheckboxGroup",(function(){return Ye})),n.d(e,"Col",(function(){return Je})),n.d(e,"DatetimePicker",(function(){return pn})),n.d(e,"Dialog",(function(){return wn})),n.d(e,"Field",(function(){return Pn})),n.d(e,"Form",(function(){return On})),n.d(e,"Icon",(function(){return dt})),n.d(e,"Image",(function(){return Dn})),n.d(e,"ImagePreview",(function(){return tr})),n.d(e,"Info",(function(){return st})),n.d(e,"Lazyload",(function(){return Br})),n.d(e,"Loading",(function(){return T})),n.d(e,"Locale",(function(){return zr.a})),n.d(e,"NavBar",(function(){return qr})),n.d(e,"NumberKeyboard",(function(){return ti})),n.d(e,"Overlay",(function(){return $t})),n.d(e,"PdfViewer",(function(){return ui})),n.d(e,"Picker",(function(){return q})),n.d(e,"Popup",(function(){return se})),n.d(e,"Radio",(function(){return ci})),n.d(e,"RadioGroup",(function(){return pi})),n.d(e,"Rate",(function(){return yi})),n.d(e,"Row",(function(){return Si})),n.d(e,"Slider",(function(){return Pi})),n.d(e,"Step",(function(){return Oi})),n.d(e,"Stepper",(function(){return ji})),n.d(e,"Steps",(function(){return Ui})),n.d(e,"Sticky",(function(){return Hi})),n.d(e,"Swipe",(function(){return Vn})),n.d(e,"SwipeCell",(function(){return Xi})),n.d(e,"SwipeItem",(function(){return Gn})),n.d(e,"Switch",(function(){return to})),n.d(e,"SwitchCell",(function(){return ao})),n.d(e,"Tab",(function(){return co})),n.d(e,"Tabs",(function(){return Ao})),n.d(e,"Tag",(function(){return To})),n.d(e,"Toast",(function(){return we})),n.d(e,"Uploader",(function(){return jo}));var i=n(0),o={title:String,loading:Boolean,readonly:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:6},swipeDuration:{type:[Number,String],default:1e3}},a=!1;if(!i.i)try{var s={};Object.defineProperty(s,"passive",{get:function(){a=!0}}),window.addEventListener("test-passive",null,s)}catch(t){}function u(t,e,n,r){void 0===r&&(r=!1),i.i||t.addEventListener(e,n,!!a&&{capture:!1,passive:r})}function l(t,e,n){i.i||t.removeEventListener(e,n)}function c(t){t.stopPropagation()}function h(t,e){("boolean"!=typeof t.cancelable||t.cancelable)&&t.preventDefault(),e&&c(t)}var f="zt-hairline",d=n(5),p=n(1),v=n.n(p),g=n(2),m=n.n(g),y=["ref","key","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],b={nativeOn:"on"};function _(t,e){var n=y.reduce((function(e,n){return t.data[n]&&(e[b[n]||n]=t.data[n]),e}),{});return e&&(n.on=n.on||{},r(n.on,t.data.on)),n}function w(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=t.listeners[e];o&&(Array.isArray(o)?o.forEach((function(t){t.apply(void 0,r)})):o.apply(void 0,r))}var S=Object(i.b)("loading"),A=S[0],x=S[1];function k(t,e){if("spinner"===e.type){for(var n=[],r=0;r<12;r++)n.push(t("i"));return n}return t("svg",{class:x("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}function C(t,e,n){if(n.default){var r,o={fontSize:Object(i.a)(e.textSize),color:null!=(r=e.textColor)?r:e.color};return t("span",{class:x("text"),style:o},[n.default()])}}function P(t,e,n,r){var o=e.color,a=e.size,s=e.type,u={color:o};if(a){var l=Object(i.a)(a);u.width=l,u.height=l}return t("div",v()([{class:x([s,{vertical:e.vertical}])},_(r,!0)]),[t("span",{class:x("spinner",s),style:u},[k(t,e)]),C(t,e,n)])}P.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}};var T=A(P);function R(t){if(!Object(i.e)(t))return t;if(Array.isArray(t))return t.map((function(t){return R(t)}));if("object"==typeof t){var e={};return Object.keys(t).forEach((function(n){e[n]=R(t[n])})),e}return t}function E(t,e,n){return Math.min(Math.max(t,e),n)}function O(t,e,n){var r=t.indexOf(e),i="";return-1===r?t:"-"===e&&0!==r?t.slice(0,r):("."===e&&t.match(/^(\.|-\.)/)&&(i=r?"-0":"0"),i+t.slice(0,r+1)+t.slice(r).replace(n,""))}function L(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!0),t=e?O(t,".",/\./g):t.split(".")[0];var r=e?/[^-0-9.]/g:/[^-0-9]/g;return(t=n?O(t,"-",/-/g):t.replace(/-/,"")).replace(r,"")}function I(t,e){var n=Math.pow(10,10);return Math.round((t+e)*n)/n}var M={data:function(){return{direction:""}},methods:{touchStart:function(t){this.resetTouchStatus(),this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},touchMove:function(t){var e,n,r=t.touches[0];this.deltaX=r.clientX<0?0:r.clientX-this.startX,this.deltaY=r.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||(e=this.offsetX,n=this.offsetY,e>n&&e>10?"horizontal":n>e&&n>10?"vertical":"")},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(t){var e=this.onTouchStart,n=this.onTouchMove,r=this.onTouchEnd;u(t,"touchstart",e),u(t,"touchmove",n),r&&(u(t,"touchend",r),u(t,"touchcancel",r))}}},D=Object(i.b)("picker-column"),N=D[0],j=D[1];function F(t){return Object(i.g)(t)&&t.disabled}var B=N({mixins:[M],props:{valueKey:String,readonly:Boolean,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:R(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1)},watch:{initialOptions:"setOptions",defaultIndex:function(t){this.setIndex(t)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(t){JSON.stringify(t)!==JSON.stringify(this.options)&&(this.options=R(t),this.setIndex(this.defaultIndex))},onTouchStart:function(t){if(!this.readonly){if(this.touchStart(t),this.moving){var e=function(t){var e=window.getComputedStyle(t),n=e.transform||e.webkitTransform,r=n.slice(7,n.length-1).split(", ")[5];return Number(r)}(this.$refs.wrapper);this.offset=Math.min(0,e-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset}},onTouchMove:function(t){if(!this.readonly){this.touchMove(t),"vertical"===this.direction&&(this.moving=!0,h(t,!0)),this.offset=E(this.startOffset+this.deltaY,-this.count*this.itemHeight,this.itemHeight);var e=Date.now();e-this.touchStartTime>300&&(this.touchStartTime=e,this.momentumOffset=this.offset)}},onTouchEnd:function(){var t=this;if(!this.readonly){var e=this.offset-this.momentumOffset,n=Date.now()-this.touchStartTime;if(n<300&&Math.abs(e)>15)this.momentum(e,n);else{var r=this.getIndexByOffset(this.offset);this.duration=200,this.setIndex(r,!0),setTimeout((function(){t.moving=!1}),0)}}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(t){this.moving||this.readonly||(this.transitionEndTrigger=null,this.duration=200,this.setIndex(t,!0))},adjustIndex:function(t){for(var e=t=E(t,0,this.count);e<this.count;e++)if(!F(this.options[e]))return e;for(var n=t-1;n>=0;n--)if(!F(this.options[n]))return n},getOptionText:function(t){return Object(i.g)(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){var n=this,r=-(t=this.adjustIndex(t)||0)*this.itemHeight,i=function(){t!==n.currentIndex&&(n.currentIndex=t,e&&n.$emit("change",t))};this.moving&&r!==this.offset?this.transitionEndTrigger=i:i(),this.offset=r},setValue:function(t){for(var e=this.options,n=0;n<e.length;n++)if(this.getOptionText(e[n])===t)return this.setIndex(n)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(t){return E(Math.round(-t/this.itemHeight),0,this.count-1)},momentum:function(t,e){var n=Math.abs(t/e);t=this.offset+n/.003*(t<0?-1:1);var r=this.getIndexByOffset(t);this.duration=+this.swipeDuration,this.setIndex(r,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var t=this,e=this.$createElement,n={height:this.itemHeight+"px"};return this.options.map((function(r,i){var o,a=t.getOptionText(r),s=F(r),u={style:n,attrs:{role:"button",tabindex:s?-1:0},class:[j("item",{disabled:s,selected:i===t.currentIndex})],on:{click:function(){t.onClickItem(i)}}},l={class:"zt-ellipsis",domProps:(o={},o[t.allowHtml?"innerHTML":"textContent"]=a,o)};return e("li",v()([{},u]),[t.slots("option",r)||e("div",v()([{},l]))])}))}},render:function(){var t=arguments[0],e={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return t("div",{class:[j(),this.className]},[t("ul",{ref:"wrapper",style:e,class:j("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}}),z=Object(i.b)("picker"),U=z[0],W=z[1],V=z[2],q=U({props:r({},o,{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},headers:{type:Array,default:null},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?Object(d.b)(this.itemHeight):44},dataType:function(){var t=this.columns[0]||{};return t.children?"cascade":t.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var t=this.columns,e=this.dataType;"text"===e?this.formattedColumns=[{values:t}]:"cascade"===e?this.formatCascade():this.formattedColumns=t},formatCascade:function(){for(var t=[],e={children:this.columns};e&&e.children;){for(var n,r=e.children,i=null!=(n=e.defaultIndex)?n:+this.defaultIndex;r[i]&&r[i].disabled;){if(!(i<r.length-1)){i=0;break}i++}t.push({values:e.children,className:e.className,defaultIndex:i}),e=r[i]}this.formattedColumns=t},emit:function(t){var e=this;if("text"===this.dataType)this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0));else{var n=this.getValues();"cascade"===this.dataType&&(n=n.map((function(t){return t[e.valueKey]}))),this.$emit(t,n,this.getIndexes())}},onCascadeChange:function(t){for(var e={children:this.columns},n=this.getIndexes(),r=0;r<=t;r++)e=e.children[n[r]];for(;e&&e.children;)t++,this.setColumnValues(t,e.children),e=e.children[e.defaultIndex||0]},onChange:function(t){var e=this;if("cascade"===this.dataType&&this.onCascadeChange(t),"text"===this.dataType)this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0));else{var n=this.getValues();"cascade"===this.dataType&&(n=n.map((function(t){return t[e.valueKey]}))),this.$emit("change",this,n,t)}},getColumn:function(t){return this.children[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.getValue()},setColumnValue:function(t,e){var n=this.getColumn(t);n&&(n.setValue(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,e){var n=this.getColumn(t);n&&(n.setIndex(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnValues:function(t){return(this.children[t]||{}).options},setColumnValues:function(t,e){var n=this.children[t];n&&n.setOptions(e)},getValues:function(){return this.children.map((function(t){return t.getValue()}))},setValues:function(t){var e=this;t.forEach((function(t,n){e.setColumnValue(n,t)}))},getIndexes:function(){return this.children.map((function(t){return t.currentIndex}))},setIndexes:function(t){var e=this;t.forEach((function(t,n){e.setColumnIndex(n,t)}))},confirm:function(){this.children.forEach((function(t){return t.stopMomentum()})),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var t=this.$createElement,e=this.slots("title");return e||(this.title?t("div",{class:["zt-ellipsis",W("title")]},[this.title]):void 0)},genCancel:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:W("cancel"),on:{click:this.cancel}},[this.slots("cancel")||this.cancelButtonText||V("cancel")])},genConfirm:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:W("confirm"),on:{click:this.confirm}},[this.slots("confirm")||this.confirmButtonText||V("confirm")])},genToolbar:function(){var t=this.$createElement;if(this.showToolbar)return t("div",{class:W("toolbar")},[this.slots()||[this.genCancel(),this.genTitle(),this.genConfirm()]])},genHeaders:function(){return(0,this.$createElement)("ul",{class:W("header")},[this.genHeaderItems()])},genHeaderItems:function(){var t=this.$createElement;return this.headers.map((function(e){return t("li",[e])}))},genColumns:function(){var t=this.$createElement,e=this.itemPxHeight,n=e*this.visibleItemCount,r={height:e+"px"},i={height:n+"px"},o={backgroundSize:"100% "+(n-e)/2+"px"};return t("div",{class:W("columns"),style:i,on:{touchmove:h}},[t("div",{class:W("background")}),this.genColumnItems(),t("div",{class:W("mask"),style:o}),t("div",{class:[W("frame")],style:r})])},genColumnItems:function(){var t=this,e=this.$createElement;return this.formattedColumns.map((function(n,r){var i;return e(B,{attrs:{readonly:t.readonly,valueKey:t.valueKey,allowHtml:t.allowHtml,className:n.className,itemHeight:t.itemPxHeight,defaultIndex:null!=(i=n.defaultIndex)?i:+t.defaultIndex,swipeDuration:t.swipeDuration,visibleItemCount:t.visibleItemCount,initialOptions:n.values},scopedSlots:{option:t.$scopedSlots.option},on:{change:function(){t.onChange(r)}}})}))}},render:function(t){return t("div",{class:W()},["top"===this.toolbarPosition?this.genToolbar():t(),"top"===this.toolbarPosition?t("div",{class:W("border")}):t(),this.loading?t(T,{class:W("loading")}):t(),this.slots("columns-top"),this.headers&&this.headers.length>0?this.genHeaders():t(),this.headers&&this.headers.length>0?t("div",{class:W("border")}):t(),this.genColumns(),this.slots("columns-bottom"),"bottom"===this.toolbarPosition?this.genToolbar():t()])}}),H=Object(i.b)("area"),$=H[0],G=H[1];function Y(t,e){var n=t.$slots,r=t.$scopedSlots,i={};return e.forEach((function(t){r[t]?i[t]=r[t]:n[t]&&(i[t]=function(){return n[t]})})),i}var X=$({props:r({},o,{value:String,areaList:{type:Object,default:function(){return{}}},columnsNum:{type:[Number,String],default:3},isOverseaCode:{type:Function,default:function(t){return"9"===t[0]}},columnsPlaceholder:{type:Array,default:function(){return[]}}}),data:function(){return{code:this.value,columns:[{values:[]},{values:[]},{values:[]}]}},computed:{province:function(){return this.areaList.province_list||{}},city:function(){return this.areaList.city_list||{}},county:function(){return this.areaList.county_list||{}},displayColumns:function(){return this.columns.slice(0,+this.columnsNum)},placeholderMap:function(){return{province:this.columnsPlaceholder[0]||"",city:this.columnsPlaceholder[1]||"",county:this.columnsPlaceholder[2]||""}}},watch:{value:function(t){this.code=t,this.setValues()},areaList:{deep:!0,handler:"setValues"},columnsNum:function(){var t=this;this.$nextTick((function(){t.setValues()}))}},mounted:function(){this.setValues()},methods:{getList:function(t,e){var n=[];if("province"!==t&&!e)return n;var r=this[t];if(n=Object.keys(r).map((function(t){return{code:t,name:r[t]}})),e&&(this.isOverseaCode(e)&&"city"===t&&(e="9"),n=n.filter((function(t){return 0===t.code.indexOf(e)}))),this.placeholderMap[t]&&n.length){var i="";"city"===t?i="000000".slice(2,4):"county"===t&&(i="000000".slice(4,6)),n.unshift({code:""+e+i,name:this.placeholderMap[t]})}return n},getIndex:function(t,e){var n="province"===t?2:"city"===t?4:6,r=this.getList(t,e.slice(0,n-2));this.isOverseaCode(e)&&"province"===t&&(n=1),e=e.slice(0,n);for(var i=0;i<r.length;i++)if(r[i].code.slice(0,n)===e)return i;return 0},parseOutputValues:function(t){var e=this;return t.map((function(t,n){return t?((t=JSON.parse(JSON.stringify(t))).code&&t.name!==e.columnsPlaceholder[n]||(t.code="",t.name=""),t):t}))},onChange:function(t,e,n){this.code=e[n].code,this.setValues();var r=this.parseOutputValues(t.getValues());this.$emit("change",t,r,n)},onConfirm:function(t,e){t=this.parseOutputValues(t),this.setValues(),this.$emit("confirm",t,e)},getDefaultCode:function(){if(this.columnsPlaceholder.length)return"000000";var t=Object.keys(this.county);if(t[0])return t[0];var e=Object.keys(this.city);return e[0]?e[0]:""},setValues:function(){var t=this.code;t||(t=this.getDefaultCode());var e=this.$refs.picker,n=this.getList("province"),r=this.getList("city",t.slice(0,2));e&&(e.setColumnValues(0,n),e.setColumnValues(1,r),r.length&&"00"===t.slice(2,4)&&!this.isOverseaCode(t)&&(t=r[0].code),e.setColumnValues(2,this.getList("county",t.slice(0,4))),e.setIndexes([this.getIndex("province",t),this.getIndex("city",t),this.getIndex("county",t)]))},getValues:function(){var t=this.$refs.picker,e=t?t.getValues().filter((function(t){return!!t})):[];return e=this.parseOutputValues(e),e},getArea:function(){var t=this.getValues(),e={code:"",country:"",province:"",city:"",county:""};if(!t.length)return e;var n=t.map((function(t){return t.name})),r=t.filter((function(t){return!!t.code}));return e.code=r.length?r[r.length-1].code:"",this.isOverseaCode(e.code)?(e.country=n[1]||"",e.province=n[2]||""):(e.province=n[0]||"",e.city=n[1]||"",e.county=n[2]||""),e},reset:function(t){this.code=t||"",this.setValues()}},render:function(){var t=arguments[0],e=r({},this.$listeners,{change:this.onChange,confirm:this.onConfirm});return t(q,{ref:"picker",class:G(),attrs:{showToolbar:!0,valueKey:"name",title:this.title,columns:this.displayColumns,loading:this.loading,readonly:this.readonly,itemHeight:this.itemHeight,swipeDuration:this.swipeDuration,visibleItemCount:this.visibleItemCount,cancelButtonText:this.cancelButtonText,confirmButtonText:this.confirmButtonText},scopedSlots:Y(this,["title","columns-top","columns-bottom"]),on:r({},e)})}}),K=Object(i.b)("avatar"),Q=K[0],J=K[1],Z=Q({props:{src:{type:String,default:"https://zartui.egova.com.cn/static/head_shot.png"},size:{type:String,default:"medium"},shape:{type:String,default:"square"},text:String,textBG:String},data:function(){return{}},computed:{headText:function(){var t=this.text.length;return 1===t?this.text:t>1?this.text.substring(t-2,2):"头像"},style:function(){var t={width:"48px",height:"48px",borderRadius:"none",backgroundColor:"#00AF91",color:"#ffffff",fontSize:"16px"};return"large"===this.size?(t.width="60px",t.height="60px",t.fontSize="20px"):"small"===this.size&&(t.width="32px",t.height="32px",t.fontSize="12px"),"circle"===this.shape&&(t.borderRadius="50%"),this.textBG&&(t.backgroundColor=this.textBG),t}},methods:{},render:function(t){return t("div",[this.text?t("div",{class:J(),style:this.style},[this.headText]):t("img",{class:J(),style:this.style,attrs:{src:this.src,alt:""}})])}});function tt(t,e){var n=e.to,r=e.url,i=e.replace;if(n&&t){var o=t[i?"replace":"push"](n);o&&o.catch&&o.catch((function(t){if(t&&!function(t){return"NavigationDuplicated"===t.name||t.message&&-1!==t.message.indexOf("redundant navigation")}(t))throw t}))}else r&&(i?location.replace(r):location.href=r)}function et(t){tt(t.parent&&t.parent.$router,t.props)}var nt={url:String,replace:Boolean,to:[String,Object]},rt=Object(i.b)("info"),it=rt[0],ot=rt[1];function at(t,e,n,r){var o=e.dot,a=e.info,s=Object(i.e)(a)&&""!==a;if(o||s)return t("div",v()([{class:ot({dot:o})},_(r,!0)]),[o?"":e.info])}at.props={dot:Boolean,info:[Number,String]};var st=it(at),ut=Object(i.b)("icon"),lt=ut[0],ct=ut[1];var ht={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function ft(t,e,n,r){var o,a=function(t){return t&&ht[t]||t}(e.name),s=function(t){return!!t&&-1!==t.indexOf("/")}(a);return t(e.tag,v()([{class:[e.classPrefix,s?"":e.classPrefix+"-"+a],style:{color:e.color,fontSize:Object(i.a)(e.size)}},_(r,!0)]),[n.default&&n.default(),s&&t("img",{class:ct("image"),attrs:{src:a}}),t(st,{attrs:{dot:e.dot,info:null!=(o=e.badge)?o:e.info}})])}ft.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:ct()}};var dt=lt(ft),pt=Object(i.b)("button"),vt=pt[0],gt=pt[1];function mt(t,e,n,r){var i,o=e.tag,a=e.icon,s=e.type,u=e.color,l=e.plain,c=e.disabled,h=e.loading,f=e.hairline,d=e.loadingText,p=e.iconPosition,g={};u&&(g.color=l?u:"white",l||(g.background=u),-1!==u.indexOf("gradient")?g.border=0:g.borderColor=u);var m,y,b=[gt([s,e.size,{plain:l,loading:h,disabled:c,hairline:f,block:e.block,round:e.round,square:e.square}]),(i={},i["zt-hairline--surround"]=f,i)];function S(){return h?n.loading?n.loading():t(T,{class:gt("loading"),attrs:{size:e.loadingSize,type:e.loadingType,color:"currentColor"}}):n.icon?t("div",{class:gt("icon")},[n.icon()]):a?t(dt,{attrs:{name:a,classPrefix:e.iconPrefix},class:gt("icon")}):void 0}return t(o,v()([{style:g,class:b,attrs:{type:e.nativeType,disabled:c},on:{click:function(t){e.loading&&t.preventDefault(),h||c||(w(r,"click",t),et(r))},touchstart:function(t){w(r,"touchstart",t)}}},_(r)]),[t("div",{class:gt("content")},[(y=[],"left"===p&&y.push(S()),(m=h?d:n.default?n.default():e.text)&&y.push(t("span",{class:gt("text")},[m])),"right"===p&&y.push(S()),y)])])}mt.props=r({},nt,{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"},iconPosition:{type:String,default:"left"}});var yt=vt(mt),bt=n(4),_t=n(6);function wt(t){return"[object Date]"===Object.prototype.toString.call(t)&&!Object(_t.a)(t.getTime())}function St(t){return t===window}var At=/scroll|auto/i;function xt(t,e){void 0===e&&(e=window);for(var n=t;n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==e;){var r=window.getComputedStyle(n).overflowY;if(At.test(r))return n;n=n.parentNode}return e}function kt(t){var e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function Ct(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function Pt(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function Tt(t){Ct(window,t),Ct(document.body,t)}function Rt(t,e){if(St(t))return 0;var n=e?kt(e):Pt();return t.getBoundingClientRect().top+n}var Et=Object(i.b)("calendar"),Ot=Et[0],Lt=Et[1],It=Et[2];function Mt(t,e){var n=t.getFullYear(),r=e.getFullYear(),i=t.getMonth(),o=e.getMonth();return n===r?i===o?0:i>o?1:-1:n>r?1:-1}function Dt(t,e){var n=Mt(t,e);if(0===n){var r=t.getDate(),i=e.getDate();return r===i?0:r>i?1:-1}return n}function Nt(t,e){return(t=new Date(t)).setDate(t.getDate()+e),t}function jt(t){return Nt(t,1)}function Ft(t){return new Date(t)}function Bt(t){return Array.isArray(t)?t.map((function(t){return null===t?t:Ft(t)})):Ft(t)}var zt={zIndex:2e3,lockCount:0,stack:[],find:function(t){return this.stack.filter((function(e){return e.vm===t}))[0]},remove:function(t){var e=this.find(t);if(e){e.vm=null,e.overlay=null;var n=this.stack.indexOf(e);this.stack.splice(n,1)}}},Ut=Object(i.b)("overlay"),Wt=Ut[0],Vt=Ut[1];function qt(t){h(t,!0)}function Ht(t,e,n,o){var a=r({zIndex:e.zIndex},e.customStyle);return Object(i.e)(e.duration)&&(a.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"zt-fade"}},[t("div",v()([{directives:[{name:"show",value:e.show}],style:a,class:[Vt(),e.className],on:{touchmove:e.lockScroll?qt:i.j}},_(o,!0)]),[null==n.default?void 0:n.default()])])}Ht.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}};var $t=Wt(Ht);function Gt(t){var e=t.parentNode;e&&e.removeChild(t)}var Yt={className:"",customStyle:{}};function Xt(t){return e=$t,n={on:{click:function(){t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}},i=new m.a({el:document.createElement("div"),props:e.props,render:function(t){return t(e,r({props:this.$props},n))}}),document.body.appendChild(i.$el),i;var e,n,i}function Kt(t){var e=zt.find(t);if(e){var n=t.$el,i=e.config,o=e.overlay;n&&n.parentNode&&n.parentNode.insertBefore(o.$el,n),r(o,Yt,i,{show:!0})}}function Qt(t){var e=zt.find(t);e&&(e.overlay.show=!1)}function Jt(t){var e=void 0===t?{}:t,n=e.ref,r=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var t,e,i=this.getContainer,o=n?this.$refs[n]:this.$el;i?t="string"==typeof(e=i)?document.querySelector(e):e():this.$parent&&(t=this.$parent.$el),t&&t!==o.parentNode&&t.appendChild(o),r&&r.call(this)}}}}var Zt=0;function te(t){var e="binded_"+Zt++;function n(){this[e]||(t.call(this,u,!0),this[e]=!0)}function r(){this[e]&&(t.call(this,l,!1),this[e]=!1)}return{mounted:n,activated:n,deactivated:r,beforeDestroy:r}}var ee={mixins:[te((function(t,e){this.handlePopstate(e&&this.closeOnPopstate)}))],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(t){this.handlePopstate(t)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(t){this.$isServer||this.bindStatus!==t&&(this.bindStatus=t,(t?u:l)(window,"popstate",this.onPopstate))}}},ne={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function re(t){return void 0===t&&(t={}),{mixins:[M,ee,Jt({afterPortal:function(){this.overlay&&Kt()}})],provide:function(){return{vanPopup:this}},props:ne,data:function(){return this.onReopenCallback=[],{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(e){var n=e?"open":"close";this.inited=this.inited||this.value,this[n](),t.skipToggleEvent||this.$emit(n)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){var t,e;t=this,(e=zt.find(t))&&(Gt(e.overlay.$el),zt.remove(t)),this.opened&&this.removeLock(),this.getContainer&&Gt(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(zt.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock(),this.onReopenCallback.forEach((function(t){t()})))},addLock:function(){this.lockScroll&&(u(document,"touchstart",this.touchStart),u(document,"touchmove",this.onTouchMove),zt.lockCount||document.body.classList.add("zt-overflow-hidden"),zt.lockCount++)},removeLock:function(){this.lockScroll&&zt.lockCount&&(zt.lockCount--,l(document,"touchstart",this.touchStart),l(document,"touchmove",this.onTouchMove),zt.lockCount||document.body.classList.remove("zt-overflow-hidden"))},close:function(){this.opened&&(Qt(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",n=xt(t.target,this.$el),r=n.scrollHeight,i=n.offsetHeight,o=n.scrollTop,a="11";0===o?a=i>=r?"00":"01":o+i>=r&&(a="10"),"11"===a||"vertical"!==this.direction||parseInt(a,2)&parseInt(e,2)||h(t,!0)},renderOverlay:function(){var t=this;!this.$isServer&&this.value&&this.$nextTick((function(){t.updateZIndex(t.overlay?1:0),t.overlay?function(t,e){var n=zt.find(t);if(n)n.config=e;else{var r=Xt(t);zt.stack.push({vm:t,config:e,overlay:r})}Kt(t)}(t,{zIndex:zt.zIndex++,duration:t.duration,className:t.overlayClass,customStyle:t.overlayStyle}):Qt(t)}))},updateZIndex:function(t){void 0===t&&(t=0),this.$el.style.zIndex=++zt.zIndex+t},onReopen:function(t){this.onReopenCallback.push(t)}}}}var ie=Object(i.b)("popup"),oe=ie[0],ae=ie[1],se=oe({mixins:[re()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(n){return t.$emit(e,n)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},methods:{onClickCloseIcon:function(t){this.$emit("click-close-icon",t),this.close()}},render:function(){var t,e=arguments[0];if(this.shouldRender){var n=this.round,r=this.position,o=this.duration,a="center"===r,s=this.transition||(a?"zt-fade":"zt-popup-slide-"+r),u={};if(Object(i.e)(o)){var l=a?"animationDuration":"transitionDuration";u[l]=o+"s"}return e("transition",{attrs:{appear:this.transitionAppear,name:s},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:u,class:ae((t={round:n},t[r]=r,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(dt,{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:ae("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}}),ue=0;var le=Object(i.b)("toast"),ce=le[0],he=le[1],fe=ce({mixins:[re()],props:{icon:String,className:null,iconPrefix:String,loadingType:String,forbidClick:Boolean,closeOnClick:Boolean,message:[Number,String],type:{type:String,default:"text"},position:{type:String,default:"middle"},transition:{type:String,default:"zt-fade"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickable()},destroyed:function(){this.toggleClickable()},watch:{value:"toggleClickable",forbidClick:"toggleClickable"},methods:{onClick:function(){this.closeOnClick&&this.close()},toggleClickable:function(){var t=this.value&&this.forbidClick;this.clickable!==t&&(this.clickable=t,t?(ue||document.body.classList.add("zt-toast--unclickable"),ue++):--ue||document.body.classList.remove("zt-toast--unclickable"))},onAfterEnter:function(){this.$emit("opened"),this.onOpened&&this.onOpened()},onAfterLeave:function(){this.$emit("closed")},genIcon:function(){var t=this.$createElement,e=this.icon,n=this.type,r=this.iconPrefix,i=this.loadingType;return e||"success"===n||"fail"===n?t(dt,{class:he("icon"),attrs:{classPrefix:r,name:e||n}}):"loading"===n?t(T,{class:he("loading"),attrs:{type:i}}):void 0},genMessage:function(){var t=this.$createElement,e=this.type,n=this.message;if(Object(i.e)(n)&&""!==n)return"html"===e?t("div",{class:he("text"),domProps:{innerHTML:n}}):t("div",{class:he("text")},[n])}},render:function(){var t,e=arguments[0];return e("transition",{attrs:{name:this.transition},on:{afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[e("div",{directives:[{name:"show",value:this.value}],class:[he([this.position,(t={},t[this.type]=!this.icon,t)]),this.className],on:{click:this.onClick}},[this.genIcon(),this.genMessage()])])}}),de={icon:"",type:"text",mask:!1,value:!0,message:"",className:"",overlay:!1,onClose:null,onOpened:null,duration:2e3,iconPrefix:void 0,position:"middle",transition:"zt-fade",forbidClick:!1,loadingType:void 0,getContainer:"body",overlayStyle:null,closeOnClick:!1,closeOnClickOverlay:!1},pe={},ve=[],ge=!1,me=r({},de);function ye(t){return Object(i.g)(t)?t:{message:t}}function be(){if(i.i)return{};if(!(ve=ve.filter((function(t){return!t.$el.parentNode||(e=t.$el,document.body.contains(e));var e}))).length||ge){var t=new(m.a.extend(fe))({el:document.createElement("div")});t.$on("input",(function(e){t.value=e})),ve.push(t)}return ve[ve.length-1]}function _e(t){void 0===t&&(t={});var e=be();return e.value&&e.updateZIndex(),t=ye(t),(t=r({},me,pe[t.type||me.type],t)).clear=function(){e.value=!1,t.onClose&&(t.onClose(),t.onClose=null),ge&&!i.i&&e.$on("closed",(function(){clearTimeout(e.timer),ve=ve.filter((function(t){return t!==e})),Gt(e.$el),e.$destroy()}))},r(e,function(t){return r({},t,{overlay:t.mask||t.overlay,mask:void 0,duration:void 0})}(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout((function(){e.clear()}),t.duration)),e}["loading","success","fail"].forEach((function(t){var e;_e[t]=(e=t,function(t){return _e(r({type:e},ye(t)))})})),_e.clear=function(t){ve.length&&(t?(ve.forEach((function(t){t.clear()})),ve=[]):ge?ve.shift().clear():ve[0].clear())},_e.setDefaultOptions=function(t,e){"string"==typeof t?pe[t]=e:r(me,t)},_e.resetDefaultOptions=function(t){"string"==typeof t?pe[t]=null:(me=r({},de),pe={})},_e.allowMultiple=function(t){void 0===t&&(t=!0),ge=t},_e.install=function(){m.a.use(fe)},m.a.prototype.$toast=_e;var we=_e;function Se(t){if(!t)return 0;for(;Object(_t.a)(parseInt(t,10));){if(!(t.length>1))return 0;t=t.slice(1)}return parseInt(t,10)}function Ae(t,e){return 32-new Date(t,e-1,32).getDate()}var xe=(0,Object(i.b)("calendar-month")[0])({props:{date:Date,type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:[Number,String],formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number},data:function(){return{visible:!1}},computed:{title:function(){return t=this.date,It("monthTitle",t.getFullYear(),t.getMonth()+1);var t},rowHeightWithUnit:function(){return Object(i.a)(this.rowHeight)},offset:function(){var t=this.firstDayOfWeek,e=this.date.getDay();return t?(e+7-this.firstDayOfWeek)%7:e},totalDay:function(){return Ae(this.date.getFullYear(),this.date.getMonth()+1)},shouldRender:function(){return this.visible||!this.lazyRender},placeholders:function(){for(var t=[],e=Math.ceil((this.totalDay+this.offset)/7),n=1;n<=e;n++)t.push({type:"placeholder"});return t},days:function(){for(var t=[],e=this.date.getFullYear(),n=this.date.getMonth(),r=1;r<=this.totalDay;r++){var i=new Date(e,n,r),o=this.getDayType(i),a={date:i,type:o,text:r,bottomInfo:this.getBottomInfo(o)};this.formatter&&(a=this.formatter(a)),t.push(a)}return t}},methods:{getHeight:function(){return this.height||(this.height=this.$el.getBoundingClientRect().height),this.height},scrollIntoView:function(t){var e=this.$refs,n=e.days,r=e.month,i=(this.showSubtitle?n:r).getBoundingClientRect().top-t.getBoundingClientRect().top+t.scrollTop;Ct(t,i)},getMultipleDayType:function(t){var e=this,n=function(t){return e.currentDate.some((function(e){return 0===Dt(e,t)}))};if(n(t)){var r=Nt(t,-1),i=jt(t),o=n(r),a=n(i);return o&&a?"multiple-middle":o?"end":a?"start":"multiple-selected"}return""},getRangeDayType:function(t){var e=this.currentDate,n=e[0],r=e[1];if(!n)return"";var i=Dt(t,n);if(!r)return 0===i?"start":"";var o=Dt(t,r);return 0===i&&0===o&&this.allowSameDay?"start-end":0===i?"start":0===o?"end":i>0&&o<0?"middle":void 0},getDayType:function(t){var e=this.type,n=this.minDate,r=this.maxDate,i=this.currentDate;return Dt(t,n)<0||Dt(t,r)>0?"disabled":null!==i?"single"===e?0===Dt(t,i)?"selected":"":"multiple"===e?this.getMultipleDayType(t):"range"===e?this.getRangeDayType(t):void 0:void 0},getBottomInfo:function(t){if("range"===this.type){if("start"===t||"end"===t)return It(t);if("start-end"===t)return It("startEnd")}},getDayStyle:function(t,e){var n={height:this.rowHeightWithUnit};return"placeholder"===t?(n.width="100%",n):(0===e&&(n.marginLeft=100*this.offset/7+"%"),this.color&&("start"===t||"end"===t||"start-end"===t||"multiple-selected"===t||"multiple-middle"===t?n.background=this.color:"middle"===t&&(n.color=this.color)),n)},genTitle:function(){var t=this.$createElement;if(this.showMonthTitle)return t("div",{class:Lt("month-title")},[this.title])},genMark:function(){var t=this.$createElement;if(this.showMark&&this.shouldRender)return t("div",{class:Lt("month-mark")},[this.date.getMonth()+1])},genDays:function(){var t=this.$createElement,e=this.shouldRender?this.days:this.placeholders;return t("div",{ref:"days",attrs:{role:"grid"},class:Lt("days")},[this.genMark(),e.map(this.genDay)])},genTopInfo:function(t){var e=this.$createElement,n=this.$scopedSlots["top-info"];if(t.topInfo||n)return e("div",{class:Lt("top-info")},[n?n(t):t.topInfo])},genBottomInfo:function(t){var e=this.$createElement,n=this.$scopedSlots["bottom-info"];if(t.bottomInfo||n)return e("div",{class:Lt("bottom-info")},[n?n(t):t.bottomInfo])},genDay:function(t,e){var n=this,r=this.$createElement,i=t.type,o=this.getDayStyle(i,e),a="disabled"===i,s=function(){a||n.$emit("click",t)};return"selected"===i?r("div",{attrs:{role:"gridcell",tabindex:-1},style:o,class:[Lt("day"),t.className],on:{click:s}},[r("div",{class:Lt("selected-day"),style:{width:this.rowHeightWithUnit,height:this.rowHeightWithUnit,background:this.color}},[this.genTopInfo(t),t.text,this.genBottomInfo(t)])]):r("div",{attrs:{role:"gridcell",tabindex:a?null:-1},style:o,class:[Lt("day",i),t.className],on:{click:s}},[this.genTopInfo(t),t.text,this.genBottomInfo(t)])}},render:function(){var t=arguments[0];return t("div",{class:Lt("month"),ref:"month"},[this.genTitle(),this.genDays()])}}),ke=(0,Object(i.b)("calendar-header")[0])({props:{title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},methods:{genTitle:function(){var t=this.$createElement;if(this.showTitle){var e=this.slots("title")||this.title||It("title");return t("div",{class:Lt("header-title")},[e])}},genSubtitle:function(){var t=this.$createElement;if(this.showSubtitle)return t("div",{class:Lt("header-subtitle")},[this.subtitle])},genWeekDays:function(){var t=this.$createElement,e=It("weekdays"),n=this.firstDayOfWeek,r=[].concat(e.slice(n,7),e.slice(0,n));return t("div",{class:Lt("weekdays")},[r.map((function(e){return t("span",{class:Lt("weekday")},[e])}))])}},render:function(){var t=arguments[0];return t("div",{class:Lt("header")},[this.genTitle(),this.genSubtitle(),this.genWeekDays()])}}),Ce=Ot({props:{title:String,color:String,value:Boolean,readonly:Boolean,formatter:Function,rowHeight:[Number,String],confirmText:String,rangePrompt:String,defaultDate:[Date,Array],getContainer:[String,Function],allowSameDay:Boolean,confirmDisabledText:String,type:{type:String,default:"single"},round:{type:Boolean,default:!0},position:{type:String,default:"bottom"},poppable:{type:Boolean,default:!0},maxRange:{type:[Number,String],default:null},lazyRender:{type:Boolean,default:!0},showMark:{type:Boolean,default:!1},showTitle:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},minDate:{type:Date,validator:wt,default:function(){return new Date}},maxDate:{type:Date,validator:wt,default:function(){var t=new Date;return new Date(t.getFullYear(),t.getMonth()+6,t.getDate())}},firstDayOfWeek:{type:[Number,String],default:0,validator:function(t){return t>=0&&t<=6}}},data:function(){return{subtitle:"",currentDate:this.getInitialDate()}},computed:{months:function(){var t=[],e=new Date(this.minDate);e.setDate(1);do{t.push(new Date(e)),e.setMonth(e.getMonth()+1)}while(1!==Mt(e,this.maxDate));return t},buttonDisabled:function(){var t=this.type,e=this.currentDate;if(e){if("range"===t)return!e[0]||!e[1];if("multiple"===t)return!e.length}return!e},dayOffset:function(){return this.firstDayOfWeek?this.firstDayOfWeek%7:0}},watch:{value:"init",type:function(){this.reset()},defaultDate:function(t){this.currentDate=t,this.scrollIntoView()}},mounted:function(){this.init()},activated:function(){this.init()},methods:{reset:function(t){void 0===t&&(t=this.getInitialDate()),this.currentDate=t,this.scrollIntoView()},init:function(){var t=this;this.poppable&&!this.value||this.$nextTick((function(){t.bodyHeight=Math.floor(t.$refs.body.getBoundingClientRect().height),t.onScroll(),t.scrollIntoView()}))},scrollToDate:function(t){var e=this;Object(bt.c)((function(){var n=e.value||!e.poppable;t&&n&&(e.months.some((function(n,r){if(0===Mt(n,t)){var i=e.$refs,o=i.body;return i.months[r].scrollIntoView(o),!0}return!1})),e.onScroll())}))},scrollIntoView:function(){var t=this.currentDate;if(t){var e="single"===this.type?t:t[0];this.scrollToDate(e)}},getInitialDate:function(){var t=this.type,e=this.minDate,n=this.maxDate,r=this.defaultDate;if(null===r)return r;var i=new Date;if(-1===Dt(i,e)?i=e:1===Dt(i,n)&&(i=n),"range"===t){var o=r||[];return[o[0]||i,o[1]||jt(i)]}return"multiple"===t?r||[i]:r||i},onScroll:function(){var t=this.$refs,e=t.body,n=t.months,r=kt(e),i=r+this.bodyHeight,o=n.map((function(t){return t.getHeight()}));if(!(i>o.reduce((function(t,e){return t+e}),0)&&r>0)){for(var a,s=0,u=[-1,-1],l=0;l<n.length;l++){s<=i&&s+o[l]>=r&&(u[1]=l,a||(a=n[l],u[0]=l),n[l].showed||(n[l].showed=!0,this.$emit("month-show",{date:n[l].date,title:n[l].title}))),s+=o[l]}n.forEach((function(t,e){t.visible=e>=u[0]-1&&e<=u[1]+1})),a&&(this.subtitle=a.title)}},onClickDay:function(t){if(!this.readonly){var e=t.date,n=this.type,r=this.currentDate;if("range"===n){if(!r)return void this.select([e,null]);var i=r[0],o=r[1];if(i&&!o){var a=Dt(e,i);1===a?this.select([i,e],!0):-1===a?this.select([e,null]):this.allowSameDay&&this.select([e,e],!0)}else this.select([e,null])}else if("multiple"===n){if(!r)return void this.select([e]);var s;if(this.currentDate.some((function(t,n){var r=0===Dt(t,e);return r&&(s=n),r}))){var u=r.splice(s,1)[0];this.$emit("unselect",Ft(u))}else this.maxRange&&r.length>=this.maxRange?we(this.rangePrompt||It("rangePrompt",this.maxRange)):this.select([].concat(r,[e]))}else this.select(e,!0)}},togglePopup:function(t){this.$emit("input",t)},select:function(t,e){var n=this,r=function(t){n.currentDate=t,n.$emit("select",Bt(n.currentDate))};if(e&&"range"===this.type&&!this.checkRange(t))return void(this.showConfirm?r([t[0],Nt(t[0],this.maxRange-1)]):r(t));r(t),e&&!this.showConfirm&&this.onConfirm()},checkRange:function(t){var e=this.maxRange,n=this.rangePrompt;return!(e&&function(t){var e=t[0].getTime();return(t[1].getTime()-e)/864e5+1}(t)>e)||(we(n||It("rangePrompt",e)),!1)},onConfirm:function(){this.$emit("confirm",Bt(this.currentDate))},genMonth:function(t,e){var n=this.$createElement,r=0!==e||!this.showSubtitle;return n(xe,{ref:"months",refInFor:!0,attrs:{date:t,type:this.type,color:this.color,minDate:this.minDate,maxDate:this.maxDate,showMark:this.showMark,formatter:this.formatter,rowHeight:this.rowHeight,lazyRender:this.lazyRender,currentDate:this.currentDate,showSubtitle:this.showSubtitle,allowSameDay:this.allowSameDay,showMonthTitle:r,firstDayOfWeek:this.dayOffset},scopedSlots:{"top-info":this.$scopedSlots["top-info"],"bottom-info":this.$scopedSlots["bottom-info"]},on:{click:this.onClickDay}})},genFooterContent:function(){var t=this.$createElement,e=this.slots("footer");if(e)return e;if(this.showConfirm){var n=this.buttonDisabled?this.confirmDisabledText:this.confirmText;return t(yt,{attrs:{block:!0,type:"primary",color:this.color,disabled:this.buttonDisabled,nativeType:"button"},class:Lt("confirm"),on:{click:this.onConfirm}},[n||It("confirm")])}},genFooter:function(){return(0,this.$createElement)("div",{class:Lt("footer",{unfit:!this.safeAreaInsetBottom})},[this.genFooterContent()])},genCalendar:function(){var t=this,e=this.$createElement;return e("div",{class:Lt()},[e(ke,{attrs:{title:this.title,showTitle:this.showTitle,subtitle:this.subtitle,showSubtitle:this.showSubtitle,firstDayOfWeek:this.dayOffset},scopedSlots:{title:function(){return t.slots("title")}}}),e("div",{ref:"body",class:Lt("body"),on:{scroll:this.onScroll}},[this.months.map(this.genMonth)]),this.genFooter()])}},render:function(){var t=this,e=arguments[0];if(this.poppable){var n,r=function(e){return function(){return t.$emit(e)}};return e(se,{attrs:(n={round:!0,value:this.value},n.round=this.round,n.position=this.position,n.closeable=this.showTitle||this.showSubtitle,n.getContainer=this.getContainer,n.closeOnPopstate=this.closeOnPopstate,n.closeOnClickOverlay=this.closeOnClickOverlay,n),class:Lt("popup"),on:{input:this.togglePopup,open:r("open"),opened:r("opened"),close:r("close"),closed:r("closed")}},[this.genCalendar()])}return this.genCalendar()}}),Pe={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}},Te=Object(i.b)("cell"),Re=Te[0],Ee=Te[1];function Oe(t,e,n,r){var o,a=e.icon,s=e.size,u=e.title,l=e.label,c=e.value,h=e.isLink,f=n.title||Object(i.e)(u);function d(){if(n.label||Object(i.e)(l))return t("div",{class:[Ee("label"),e.labelClass]},[n.label?n.label():l])}var p=null!=(o=e.clickable)?o:h,g={clickable:p,center:e.center,required:e.required,borderless:!e.border};return s&&(g[s]=s),t("div",v()([{class:Ee(g),attrs:{role:p?"button":null,tabindex:p?0:null},on:{click:function(t){w(r,"click",t),et(r)}}},_(r)]),[n.icon?n.icon():a?t(dt,{class:Ee("left-icon"),attrs:{name:a,classPrefix:e.iconPrefix}}):void 0,function(){if(f)return t("div",{class:[Ee("title"),e.titleClass],style:e.titleStyle},[n.title?n.title():t("span",[u]),d()])}(),function(){if(n.default||Object(i.e)(c))return t("div",{class:[Ee("value",{alone:!f}),e.valueClass]},[n.default?n.default():t("span",[c])])}(),function(){var r=n["right-icon"];if(r)return r();if(h){var i=e.arrowDirection;return t(dt,{class:Ee("right-icon"),attrs:{name:i?"arrow-"+i:"arrow"}})}}(),null==n.extra?void 0:n.extra()])}Oe.props=r({},Pe,nt);var Le=Re(Oe),Ie=Object(i.b)("cell-group"),Me=Ie[0],De=Ie[1];function Ne(t,e,n,r){var i,o=t("div",v()([{class:[De({inset:e.inset}),(i={},i["zt-hairline--top-bottom"]=e.border,i)]},_(r,!0)]),[null==n.default?void 0:n.default()]);return e.title||n.title?t("div",{key:r.data.key},[t("div",{class:De("title",{inset:e.inset})},[n.title?n.title():e.title]),o]):o}Ne.props={title:String,inset:Boolean,border:{type:Boolean,default:!0}};var je=Me(Ne),Fe={inject:{ztField:{default:null}},watch:{value:function(){var t=this.ztField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.ztField;t&&!t.children&&(t.children=this)}};function Be(t,e){var n=e.$vnode.componentOptions;if(n&&n.children){var r=function(t){var e=[];return function t(n){n.forEach((function(n){e.push(n),n.componentInstance&&t(n.componentInstance.$children.map((function(t){return t.$vnode}))),n.children&&t(n.children)}))}(t),e}(n.children);t.sort((function(t,e){return r.indexOf(t.$vnode)-r.indexOf(e.$vnode)}))}}function ze(t,e){var n,r;void 0===e&&(e={});var i=e.indexKey||"index";return{inject:(n={},n[t]={default:null},n),computed:(r={parent:function(){return this.disableBindRelation?null:this[t]}},r[i]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},r),watch:{disableBindRelation:function(t){t||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(e){return e!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);Be(t,this.parent),this.parent.children=t}}}}}function Ue(t){return{provide:function(){var e;return(e={})[t]=this,e},data:function(){return{children:[]}}}}var We=function(t){var e=t.parent,n=t.bem,r=t.role;return{mixins:[ze(e),Fe],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===r&&!this.checked?-1:0}},methods:{onClick:function(t){var e=this,n=t.target,r=this.$refs.icon,i=r===n||r.contains(n);this.isDisabled||!i&&this.labelDisabled?this.$emit("click",t):(this.toggle(),setTimeout((function(){e.$emit("click",t)})))},genIcon:function(){var t=this.$createElement,e=this.checked,r=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:n("icon",[this.shape,{disabled:this.isDisabled,checked:e}]),style:{fontSize:Object(i.a)(r)}},[this.slots("icon",{checked:e})||t(dt,{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,e=this.slots();if(e)return t("span",{class:n("label",[this.labelPosition,{disabled:this.isDisabled}])},[e])}},render:function(){var t=arguments[0],e=[this.genIcon()];return"left"===this.labelPosition?e.unshift(this.genLabel()):e.push(this.genLabel()),t("div",{attrs:{role:r,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:n([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[e])}}},Ve=Object(i.b)("checkbox"),qe=(0,Ve[0])({mixins:[We({bem:Ve[1],role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(t){var e=this;void 0===t&&(t=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout((function(){e.checked=t}))},setParentValue:function(t){var e=this.parent,n=e.value.slice();if(t){if(e.max&&n.length>=e.max)return;-1===n.indexOf(this.name)&&(n.push(this.name),e.$emit("input",n))}else{var r=n.indexOf(this.name);-1!==r&&(n.splice(r,1),e.$emit("input",n))}}}}),He=Object(i.b)("checkbox-group"),$e=He[0],Ge=He[1],Ye=$e({mixins:[Ue("vanCheckbox"),Fe],props:{max:[Number,String],disabled:Boolean,direction:String,iconSize:[Number,String],checkedColor:String,value:{type:Array,default:function(){return[]}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggleAll:function(t){void 0===t&&(t={}),"boolean"==typeof t&&(t={checked:t});var e=t,n=e.checked,r=e.skipDisabled,i=this.children.filter((function(t){return t.disabled&&r?t.checked:null!=n?n:!t.checked})).map((function(t){return t.name}));this.$emit("input",i)}},render:function(){var t=arguments[0];return t("div",{class:Ge([this.direction])},[this.slots()])}}),Xe=Object(i.b)("col"),Ke=Xe[0],Qe=Xe[1],Je=Ke({mixins:[ze("ztRow")],props:{span:[Number,String],offset:[Number,String],tag:{type:String,default:"div"}},computed:{style:function(){var t=this.index,e=(this.parent||{}).spaces;if(e&&e[t]){var n=e[t],r=n.left,i=n.right;return{paddingLeft:r?r+"px":null,paddingRight:i?i+"px":null}}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],n=this.span,r=this.offset;return e(this.tag,{style:this.style,class:Qe((t={},t[n]=n,t["offset-"+r]=r,t)),on:{click:this.onClick}},[this.slots()])}}),Ze=n(3),tn=Object(i.b)("dateTimePicker")[2],en=r({},o,{value:null,filter:Function,columnsOrder:Array,showToolbar:{type:Boolean,default:!0},formatter:{type:Function,default:function(t,e){return e}}}),nn={data:function(){return{innerValue:this.formatValue(this.value)}},computed:{originColumns:function(){var t=this;return this.ranges.map((function(e){var n=e.type,r=e.range,i=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(r[1]-r[0]+1,(function(t){return Object(Ze.b)(r[0]+t)}));return t.filter&&(i=t.filter(n,i)),{type:n,values:i}}))},columns:function(){var t=this;return this.originColumns.map((function(e){return{values:e.values.map((function(n){return t.formatter(e.type,n)}))}}))},headers:function(){if(this.columnsOrder)return[];var t=tn("year"),e=tn("month"),n=tn("day"),r=tn("hour"),i=tn("minute");return{date:[t,e,n],"year-month":[t,e],"month-day":[e,n],time:[r,i],datetime:[t,e,n,r,i],datehour:[t,e,n,r]}[this.type]||[]}},watch:{columns:"updateColumnValue",innerValue:function(t,e){e?this.$emit("input",t):this.$emit("input",null)}},mounted:function(){var t=this;this.updateColumnValue(),this.$nextTick((function(){t.updateInnerValue()}))},methods:{getPicker:function(){return this.$refs.picker},onConfirm:function(){this.$emit("input",this.innerValue),this.$emit("confirm",this.innerValue)},onCancel:function(){this.$emit("cancel")}},render:function(){var t=this,e=arguments[0],n={};return Object.keys(o).forEach((function(e){n[e]=t[e]})),e(q,{ref:"picker",attrs:{headers:this.headers,columns:this.columns,readonly:this.readonly},scopedSlots:this.$scopedSlots,on:{change:this.onChange,confirm:this.onConfirm,cancel:this.onCancel},props:r({},n)})}},rn=(0,Object(i.b)("time-picker")[0])({mixins:[nn],props:r({},en,{type:{type:String,default:"time"},minHour:{type:[Number,String],default:0},maxHour:{type:[Number,String],default:23},minMinute:{type:[Number,String],default:0},maxMinute:{type:[Number,String],default:59}}),computed:{ranges:function(){return[{type:"hour",range:[+this.minHour,+this.maxHour]},{type:"minute",range:[+this.minMinute,+this.maxMinute]}]}},watch:{filter:"updateInnerValue",minHour:function(){var t=this;this.$nextTick((function(){t.updateInnerValue()}))},maxHour:function(t){var e=this.innerValue.split(":"),n=e[0],r=e[1];n>=t?(this.innerValue=this.formatValue(t+":"+r),this.updateColumnValue()):this.updateInnerValue()},minMinute:"updateInnerValue",maxMinute:function(t){var e=this.innerValue.split(":"),n=e[0];e[1]>=t?(this.innerValue=this.formatValue(n+":"+t),this.updateColumnValue()):this.updateInnerValue()},value:function(t){(t=this.formatValue(t))!==this.innerValue&&(this.innerValue=t,this.updateColumnValue())}},methods:{formatValue:function(t){t||(t=Object(Ze.b)(this.minHour)+":"+Object(Ze.b)(this.minMinute));var e=t.split(":"),n=e[0],r=e[1];return(n=Object(Ze.b)(E(n,this.minHour,this.maxHour)))+":"+(r=Object(Ze.b)(E(r,this.minMinute,this.maxMinute)))},updateInnerValue:function(){var t=this.getPicker().getIndexes(),e=t[0],n=t[1],r=this.originColumns,i=r[0],o=r[1],a=i.values[e]||i.values[0],s=o.values[n]||o.values[0];this.innerValue=this.formatValue(a+":"+s),this.updateColumnValue()},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick((function(){e.$nextTick((function(){e.$emit("change",t)}))}))},updateColumnValue:function(){var t=this,e=this.formatter,n=this.innerValue.split(":"),r=[e("hour",n[0]),e("minute",n[1])];this.$nextTick((function(){t.getPicker().setValues(r)}))}}});function on(t,e){return(on=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function an(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function sn(t,e,n){return(sn=an()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&on(i,n.prototype),i}).apply(null,arguments)}var un,ln=(new Date).getFullYear(),cn=(0,Object(i.b)("date-picker")[0])({mixins:[nn],props:r({},en,{type:{type:String,default:"datetime"},minDate:{type:Date,default:function(){return new Date(ln-10,0,1)},validator:wt},maxDate:{type:Date,default:function(){return new Date(ln+10,11,31)},validator:wt}}),watch:{filter:"updateInnerValue",minDate:function(){var t=this;this.$nextTick((function(){t.updateInnerValue()}))},maxDate:function(t){this.innerValue.valueOf()>=t.valueOf()?this.innerValue=t:this.updateInnerValue()},value:function(t){(t=this.formatValue(t))&&t.valueOf()!==this.innerValue.valueOf()&&(this.innerValue=t)}},computed:{ranges:function(){var t=this.getBoundary("max",this.innerValue?this.innerValue:this.minDate),e=t.maxYear,n=t.maxDate,r=t.maxMonth,i=t.maxHour,o=t.maxMinute,a=this.getBoundary("min",this.innerValue?this.innerValue:this.minDate),s=a.minYear,u=a.minDate,l=[{type:"year",range:[s,e]},{type:"month",range:[a.minMonth,r]},{type:"day",range:[u,n]},{type:"hour",range:[a.minHour,i]},{type:"minute",range:[a.minMinute,o]}];switch(this.type){case"date":l=l.slice(0,3);break;case"year-month":l=l.slice(0,2);break;case"month-day":l=l.slice(1,3);break;case"datehour":l=l.slice(0,4)}if(this.columnsOrder){var c=this.columnsOrder.concat(l.map((function(t){return t.type})));l.sort((function(t,e){return c.indexOf(t.type)-c.indexOf(e.type)}))}return l}},methods:{formatValue:function(t){var e=this;if(!wt(t))return null;var n=new Date(this.minDate),r=new Date(this.maxDate),i={year:"getFullYear",month:"getMonth",day:"getDate",hour:"getHours",minute:"getMinutes"};if(this.originColumns){var o=this.originColumns.map((function(t,o){var a=t.type,s=t.values,u=e.ranges[o].range,l=n[i[a]](),c=r[i[a]](),h="month"===a?+s[0]-1:+s[0],f="month"===a?+s[s.length-1]-1:+s[s.length-1];return{type:a,values:[l<u[0]?Math.max(l,h):h||l,c>u[1]?Math.min(c,f):f||c]}}));if("month-day"===this.type){var a=(this.innerValue||this.minDate).getFullYear();o.unshift({type:"year",values:[a,a]})}var s=Object.keys(i).map((function(t){var e;return null==(e=o.filter((function(e){return e.type===t}))[0])?void 0:e.values})).filter((function(t){return t}));n=sn(Date,s.map((function(t){return Se(t[0])}))),r=sn(Date,s.map((function(t){return Se(t[1])})))}return t=Math.max(t,n.getTime()),t=Math.min(t,r.getTime()),new Date(t)},getBoundary:function(t,e){var n,r=this[t+"Date"],i=r.getFullYear(),o=1,a=1,s=0,u=0;return"max"===t&&(o=12,a=Ae(e.getFullYear(),e.getMonth()+1),s=23,u=59),e.getFullYear()===i&&(o=r.getMonth()+1,e.getMonth()+1===o&&(a=r.getDate(),e.getDate()===a&&(s=r.getHours(),e.getHours()===s&&(u=r.getMinutes())))),(n={})[t+"Year"]=i,n[t+"Month"]=o,n[t+"Date"]=a,n[t+"Hour"]=s,n[t+"Minute"]=u,n},updateInnerValue:function(){var t,e,n,r=this,i=this.type,o=this.getPicker().getIndexes(),a=function(t){var e=0;return r.originColumns.forEach((function(n,r){t===n.type&&(e=r)})),Se(r.originColumns[e].values[o[e]])};"month-day"===i?(t=(this.innerValue||this.minDate).getFullYear(),e=a("month"),n=a("day")):(t=a("year"),e=a("month"),n="year-month"===i?1:a("day"));var s=Ae(t,e);n=n>s?s:n;var u=0,l=0;"datehour"===i&&(u=a("hour")),"datetime"===i&&(u=a("hour"),l=a("minute"));var c=new Date(t,e-1,n,u,l);this.innerValue=this.formatValue(c)},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick((function(){e.$nextTick((function(){e.$emit("change",t)}))}))},updateColumnValue:function(){var t=this,e=this.innerValue?this.innerValue:this.minDate,n=this.formatter,r=this.originColumns.map((function(t){switch(t.type){case"year":return n("year",""+e.getFullYear());case"month":return n("month",Object(Ze.b)(e.getMonth()+1));case"day":return n("day",Object(Ze.b)(e.getDate()));case"hour":return n("hour",Object(Ze.b)(e.getHours()));case"minute":return n("minute",Object(Ze.b)(e.getMinutes()));default:return null}}));this.$nextTick((function(){t.getPicker().setValues(r)}))}}}),hn=Object(i.b)("datetime-picker"),fn=hn[0],dn=hn[1],pn=fn({props:r({},rn.props,cn.props),methods:{getPicker:function(){return this.$refs.root.getPicker()}},render:function(){var t=arguments[0],e="time"===this.type?rn:cn;return t(e,{ref:"root",class:dn(),scopedSlots:this.$scopedSlots,props:r({},this.$props),on:r({},this.$listeners)})}}),vn=Object(i.b)("dialog"),gn=vn[0],mn=vn[1],yn=vn[2],bn=gn({mixins:[re()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"zt-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var e=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(n){!1!==n&&e.loading[t]&&e.onClose(t),e.loading.confirm=!1,e.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genButtons:function(){var t,e=this,n=this.$createElement,r=this.showCancelButton&&this.showConfirmButton;return n("div",{class:["zt-hairline--top",mn("footer")]},[this.showCancelButton&&n(yt,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||yn("cancel")},class:mn("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&n(yt,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||yn("confirm")},class:[mn("confirm"),(t={},t["zt-hairline--left"]=r,t)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(t,e){var n=this.$createElement;if(e)return n("div",{class:mn("content")},[e]);var r=this.message,i=this.messageAlign;if(r){var o,a,s={class:mn("message",(o={"has-title":t},o[i]=i,o)),domProps:(a={},a[this.allowHtml?"innerHTML":"textContent"]=r,a)};return n("div",{class:mn("content",{isolated:!t})},[n("div",v()([{},s]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var e=this.message,n=this.slots(),r=this.slots("title"),o=r||this.title,a=o&&t("div",{class:mn("header",{isolated:!e&&!n,"custom-title":!!r})},[o]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||e},class:[mn([this.theme]),this.className],style:{width:Object(i.a)(this.width)}},[a,this.genContent(o,n),this.genButtons()])])}}});function _n(t){return i.i?Promise.resolve():new Promise((function(e,n){var i;un&&(i=un.$el,document.body.contains(i))||(un&&un.$destroy(),(un=new(m.a.extend(bn))({el:document.createElement("div"),propsData:{lazyRender:!1}})).$on("input",(function(t){un.value=t}))),r(un,_n.currentOptions,t,{resolve:e,reject:n})}))}_n.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"zt-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(t){un["confirm"===t?"resolve":"reject"](t)}},_n.alert=_n,_n.confirm=function(t){return _n(r({showCancelButton:!0},t))},_n.close=function(){un&&(un.value=!1)},_n.setDefaultOptions=function(t){r(_n.currentOptions,t)},_n.resetDefaultOptions=function(){_n.currentOptions=r({},_n.defaultOptions)},_n.resetDefaultOptions(),_n.install=function(){m.a.use(bn)},_n.Component=bn,m.a.prototype.$dialog=_n;var wn=_n;var Sn=!i.i&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function An(){Sn&&Tt(Pt())}var xn=Object(i.b)("field"),kn=xn[0],Cn=xn[1],Pn=kn({inheritAttrs:!1,provide:function(){return{ztField:this}},inject:{ztForm:{default:null}},props:r({},Pe,{name:String,rules:Array,disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},autosize:[Boolean,Object],leftIcon:String,rightIcon:String,clearable:Boolean,formatter:Function,maxlength:[Number,String],labelWidth:[Number,String],labelClass:null,labelAlign:String,inputAlign:String,placeholder:String,errorMessage:String,errorMessageAlign:String,showWordLimit:Boolean,value:{type:[Number,String],default:""},type:{type:String,default:"text"},error:{type:Boolean,default:null},colon:{type:Boolean,default:null},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),data:function(){return{focused:!1,validateFailed:!1,validateMessage:""}},watch:{value:function(){this.updateValue(this.value),this.resetValidation(),this.validateWithTrigger("onChange"),this.$nextTick(this.adjustSize)}},mounted:function(){this.updateValue(this.value,this.formatTrigger),this.$nextTick(this.adjustSize),this.ztForm&&this.ztForm.addField(this)},beforeDestroy:function(){this.ztForm&&this.ztForm.removeField(this)},computed:{showClear:function(){var t=this.getProp("readonly");if(this.clearable&&!t){var e=Object(i.e)(this.value)&&""!==this.value,n="always"===this.clearTrigger||"focus"===this.clearTrigger&&this.focused;return e&&n}},showError:function(){return null!==this.error?this.error:!!(this.ztForm&&this.ztForm.showError&&this.validateFailed)||void 0},listeners:function(){return r({},this.$listeners,{blur:this.onBlur,focus:this.onFocus,input:this.onInput,click:this.onClickInput,keypress:this.onKeypress})},labelStyle:function(){var t=this.getProp("labelWidth");if(t)return{width:Object(i.a)(t)}},formValue:function(){return this.children&&(this.$scopedSlots.input||this.$slots.input)?this.children.value:this.value}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},runValidator:function(t,e){return new Promise((function(n){var r=e.validator(t,e);if(Object(i.h)(r))return r.then(n);n(r)}))},isEmptyValue:function(t){return Array.isArray(t)?!t.length:0!==t&&!t},runSyncRule:function(t,e){return(!e.required||!this.isEmptyValue(t))&&!(e.pattern&&!e.pattern.test(t))},getRuleMessage:function(t,e){var n=e.message;return Object(i.f)(n)?n(t,e):n},runRules:function(t){var e=this;return t.reduce((function(t,n){return t.then((function(){if(!e.validateFailed){var t=e.formValue;return n.formatter&&(t=n.formatter(t,n)),e.runSyncRule(t,n)?n.validator?e.runValidator(t,n).then((function(r){!1===r&&(e.validateFailed=!0,e.validateMessage=e.getRuleMessage(t,n))})):void 0:(e.validateFailed=!0,void(e.validateMessage=e.getRuleMessage(t,n)))}}))}),Promise.resolve())},validate:function(t){var e=this;return void 0===t&&(t=this.rules),new Promise((function(n){t||n(),e.resetValidation(),e.runRules(t).then((function(){e.validateFailed?n({name:e.name,message:e.validateMessage}):n()}))}))},validateWithTrigger:function(t){if(this.ztForm&&this.rules){var e=this.ztForm.validateTrigger===t,n=this.rules.filter((function(n){return n.trigger?n.trigger===t:e}));n.length&&this.validate(n)}},resetValidation:function(){this.validateFailed&&(this.validateFailed=!1,this.validateMessage="")},updateValue:function(t,e){void 0===e&&(e="onChange"),t=Object(i.e)(t)?String(t):"";var n=this.maxlength;if(Object(i.e)(n)&&t.length>n&&(t=this.value&&this.value.length===+n?this.value:t.slice(0,n)),"number"===this.type||"digit"===this.type){var r="number"===this.type;t=L(t,r,r)}this.formatter&&e===this.formatTrigger&&(t=this.formatter(t));var o=this.$refs.input;o&&t!==o.value&&(o.value=t),t!==this.value&&this.$emit("input",t)},onInput:function(t){t.target.composing||this.updateValue(t.target.value)},onFocus:function(t){this.focused=!0,this.$emit("focus",t),this.getProp("readonly")&&this.blur()},onBlur:function(t){this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",t),this.validateWithTrigger("onBlur"),An()},onClick:function(t){this.$emit("click",t)},onClickInput:function(t){this.$emit("click-input",t)},onClickLeftIcon:function(t){this.$emit("click-left-icon",t)},onClickRightIcon:function(t){this.$emit("click-right-icon",t)},onClear:function(t){h(t),this.$emit("input",""),this.$emit("clear",t)},onKeypress:function(t){13===t.keyCode&&(this.getProp("submitOnEnter")||"textarea"===this.type||h(t),"search"===this.type&&this.blur());this.$emit("keypress",t)},adjustSize:function(){var t=this.$refs.input;if("textarea"===this.type&&this.autosize&&t){var e=Pt();t.style.height="auto";var n=t.scrollHeight;if(Object(i.g)(this.autosize)){var r=this.autosize,o=r.maxHeight,a=r.minHeight;o&&(n=Math.min(n,o)),a&&(n=Math.max(n,a))}n&&(t.style.height=n+"px",Tt(e))}},genInput:function(){var t=this.$createElement,e=this.type,n=this.getProp("disabled"),i=this.getProp("readonly"),o=this.slots("input"),a=this.getProp("inputAlign");if(o)return t("div",{class:Cn("control",[a,"custom"]),on:{click:this.onClickInput}},[o]);var s={ref:"input",class:Cn("control",a),domProps:{value:this.value},attrs:r({},this.$attrs,{name:this.name,disabled:n,readonly:i,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]};if("textarea"===e)return t("textarea",v()([{},s]));var u,l=e;return"number"===e&&(l="text",u="decimal"),"digit"===e&&(l="tel",u="numeric"),t("input",v()([{attrs:{type:l,inputmode:u}},s]))},genLeftIcon:function(){var t=this.$createElement;if(this.slots("left-icon")||this.leftIcon)return t("div",{class:Cn("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||t(dt,{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var t=this.$createElement,e=this.slots;if(e("right-icon")||this.rightIcon)return t("div",{class:Cn("right-icon"),on:{click:this.onClickRightIcon}},[e("right-icon")||t(dt,{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var t=this.$createElement;if(this.showWordLimit&&this.maxlength){var e=(this.value||"").length;return t("div",{class:Cn("word-limit")},[t("span",{class:Cn("word-num")},[e]),"/",this.maxlength])}},genMessage:function(){var t=this.$createElement;if(!this.ztForm||!1!==this.ztForm.showErrorMessage){var e=this.errorMessage||this.validateMessage;if(e){var n=this.getProp("errorMessageAlign");return t("div",{class:Cn("error-message",n)},[e])}}},getProp:function(t){return Object(i.e)(this[t])?this[t]:this.ztForm&&Object(i.e)(this.ztForm[t])?this.ztForm[t]:void 0},genLabel:function(){var t=this.$createElement,e=this.getProp("colon")?":":"";return this.slots("label")?[this.slots("label"),e]:this.label?t("span",[this.label+e]):void 0}},render:function(){var t,e=arguments[0],n=this.slots,r=this.getProp("disabled"),i=this.getProp("labelAlign"),o={icon:this.genLeftIcon},a=this.genLabel();a&&(o.title=function(){return a});var s=this.slots("extra");return s&&(o.extra=function(){return s}),e(Le,{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:Cn("value"),titleClass:[Cn("label",i),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:o,class:Cn((t={error:this.showError,disabled:r},t["label-"+i]=i,t["min-height"]="textarea"===this.type&&!this.autosize,t)),on:{click:this.onClick}},[e("div",{class:Cn("body")},[this.genInput(),this.showClear&&e(dt,{attrs:{name:"clear"},class:Cn("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),n("button")&&e("div",{class:Cn("button")},[n("button")])]),this.genWordLimit(),this.genMessage()])}}),Tn=Object(i.b)("form"),Rn=Tn[0],En=Tn[1],On=Rn({props:{colon:Boolean,disabled:Boolean,readonly:Boolean,labelWidth:[Number,String],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,errorMessageAlign:String,submitOnEnter:{type:Boolean,default:!0},validateTrigger:{type:String,default:"onBlur"},showError:{type:Boolean,default:!0},showErrorMessage:{type:Boolean,default:!0}},provide:function(){return{ztForm:this}},data:function(){return{fields:[]}},methods:{getFieldsByNames:function(t){return t?this.fields.filter((function(e){return-1!==t.indexOf(e.name)})):this.fields},validateSeq:function(t){var e=this;return new Promise((function(n,r){var i=[];e.getFieldsByNames(t).reduce((function(t,e){return t.then((function(){if(!i.length)return e.validate().then((function(t){t&&i.push(t)}))}))}),Promise.resolve()).then((function(){i.length?r(i):n()}))}))},validateFields:function(t){var e=this;return new Promise((function(n,r){var i=e.getFieldsByNames(t);Promise.all(i.map((function(t){return t.validate()}))).then((function(t){(t=t.filter((function(t){return t}))).length?r(t):n()}))}))},validate:function(t){return t&&!Array.isArray(t)?this.validateField(t):this.validateFirst?this.validateSeq(t):this.validateFields(t)},validateField:function(t){var e=this.fields.filter((function(e){return e.name===t}));return e.length?new Promise((function(t,n){e[0].validate().then((function(e){e?n(e):t()}))})):Promise.reject()},resetValidation:function(t){t&&!Array.isArray(t)&&(t=[t]),this.getFieldsByNames(t).forEach((function(t){t.resetValidation()}))},scrollToField:function(t,e){this.fields.some((function(n){return n.name===t&&(n.$el.scrollIntoView(e),!0)}))},addField:function(t){this.fields.push(t),Be(this.fields,this)},removeField:function(t){this.fields=this.fields.filter((function(e){return e!==t}))},getValues:function(){return this.fields.reduce((function(t,e){return t[e.name]=e.formValue,t}),{})},onSubmit:function(t){t.preventDefault(),this.submit()},submit:function(){var t=this,e=this.getValues();this.validate().then((function(){t.$emit("submit",e)})).catch((function(n){t.$emit("failed",{values:e,errors:n}),t.scrollToError&&t.scrollToField(n[0].name)}))}},render:function(){var t=arguments[0];return t("form",{class:En(),on:{submit:this.onSubmit}},[this.slots()])}}),Ln=Object(i.b)("image"),In=Ln[0],Mn=Ln[1],Dn=In({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var t={};return Object(i.e)(this.width)&&(t.width=Object(i.a)(this.width)),Object(i.e)(this.height)&&(t.height=Object(i.a)(this.height)),Object(i.e)(this.radius)&&(t.overflow="hidden",t.borderRadius=Object(i.a)(this.radius)),t}},created:function(){var t=this.$Lazyload;t&&i.d&&(t.$on("loaded",this.onLazyLoaded),t.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var t=this.$Lazyload;t&&(t.$off("loaded",this.onLazyLoaded),t.$off("error",this.onLazyLoadError))},methods:{onLoad:function(t){this.loading=!1,this.$emit("load",t)},onLazyLoaded:function(t){t.el===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(t){t.el!==this.$refs.image||this.error||this.onError()},onError:function(t){this.error=!0,this.loading=!1,this.$emit("error",t)},onClick:function(t){this.$emit("click",t)},genPlaceholder:function(){var t=this.$createElement;return this.loading&&this.showLoading?t("div",{class:Mn("loading")},[this.slots("loading")||t(dt,{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:Mn("loading-icon")})]):this.error&&this.showError?t("div",{class:Mn("error")},[this.slots("error")||t(dt,{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:Mn("error-icon")})]):void 0},genImage:function(){var t=this.$createElement,e={class:Mn("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?t("img",v()([{ref:"image",directives:[{name:"lazy",value:this.src}]},e])):t("img",v()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},e]))}},render:function(){var t=arguments[0];return t("div",{class:Mn({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}}),Nn=Object(i.b)("image-preview"),jn=Nn[0],Fn=Nn[1];function Bn(t){var e=window.getComputedStyle(t),n="none"===e.display,r=null===t.offsetParent&&"fixed"!==e.position;return n||r}var zn=Object(i.b)("swipe"),Un=zn[0],Wn=zn[1],Vn=Un({mixins:[M,Ue("vanSwipe"),te((function(t,e){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()}))],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var e=this.vertical?"height":"width",n=this.vertical?"width":"height";t[e]=this.trackSize+"px",t[n]=this[n]?this[n]+"px":""}return t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),this.$el&&!Bn(this.$el)){clearTimeout(this.timer);var e={width:this.$el.offsetWidth,height:this.$el.offsetHeight};this.rect=e,this.swiping=!0,this.active=t,this.computedWidth=+this.width||e.width,this.computedHeight=+this.height||e.height,this.offset=this.getTargetOffset(t),this.children.forEach((function(t){t.offset=0})),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(h(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var t=this.size,e=this.delta,n=e/(Date.now()-this.touchStartTime);if((Math.abs(n)>.25||Math.abs(e)>t/2)&&this.isCorrectDirection){var r=this.vertical?this.offsetY:this.offsetX,i=0;i=this.loop?r>0?e>0?-1:1:0:-Math[e>0?"ceil":"floor"](e/t),this.move({pace:i,emitChange:!0})}else e&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,n=this.count,r=this.maxCount;return t?this.loop?E(e+t,-1,n):E(e+t,0,r):e},getTargetOffset:function(t,e){void 0===e&&(e=0);var n=t*this.size;this.loop||(n=Math.min(n,-this.minOffset));var r=e-n;return this.loop||(r=E(r,this.minOffset,0)),r},move:function(t){var e=t.pace,n=void 0===e?0:e,r=t.offset,i=void 0===r?0:r,o=t.emitChange,a=this.loop,s=this.count,u=this.active,l=this.children,c=this.trackSize,h=this.minOffset;if(!(s<=1)){var f=this.getTargetActive(n),d=this.getTargetOffset(f,i);if(a){if(l[0]&&d!==h){var p=d<h;l[0].offset=p?c:0}if(l[s-1]&&0!==d){var v=d>0;l[s-1].offset=v?-c:0}}this.active=f,this.offset=d,o&&f!==u&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(bt.b)((function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})}))},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(bt.b)((function(){t.swiping=!1,t.move({pace:1,emitChange:!0})}))},swipeTo:function(t,e){var n=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),Object(bt.b)((function(){var r;r=n.loop&&t===n.count?0===n.active?0:t:t%n.count,e.immediate?Object(bt.b)((function(){n.swiping=!1})):n.swiping=!1,n.move({pace:r-n.active,emitChange:!0})}))},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout((function(){t.next(),t.autoPlay()}),e))},genIndicator:function(){var t=this,e=this.$createElement,n=this.count,r=this.activeIndicator,i=this.slots("indicator");return i||(this.showIndicators&&n>1?e("div",{class:Wn("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(n)).map((function(n,i){return e("i",{class:Wn("indicator",{active:i===r}),style:i===r?t.indicatorStyle:null})}))]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:Wn()},[t("div",{ref:"track",style:this.trackStyle,class:Wn("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}}),qn=Object(i.b)("swipe-item"),Hn=qn[0],$n=qn[1],Gn=Hn({mixins:[ze("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var t=this;this.$nextTick((function(){t.mounted=!0}))},computed:{style:function(){var t={},e=this.parent,n=e.size,r=e.vertical;return n&&(t[r?"height":"width"]=n+"px"),this.offset&&(t.transform="translate"+(r?"Y":"X")+"("+this.offset+"px)"),t},shouldRender:function(){var t=this.index,e=this.inited,n=this.parent,r=this.mounted;if(!n.lazyRender||e)return!0;if(!r)return!1;var i=n.activeIndicator,o=n.count-1,a=0===i&&n.loop?o:i-1,s=i===o&&n.loop?0:i+1,u=t===i||t===a||t===s;return u&&(this.inited=!0),u}},render:function(){var t=arguments[0];return t("div",{class:$n(),style:this.style,on:r({},this.$listeners)},[this.shouldRender&&this.slots()])}});function Yn(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}var Xn,Kn={mixins:[M],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var t=this.rootWidth,e=this.rootHeight/t;return this.imageRatio>e},imageStyle:function(){var t=this.scale,e={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(1!==t){var n=this.moveX/t,r=this.moveY/t;e.transform="scale("+t+", "+t+") translate("+n+"px, "+r+"px)"}return e},maxMoveX:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*t-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*t-this.rootHeight)/2)}return 0}},watch:{active:"resetScale",show:function(t){t||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(t){(t=E(t,+this.minZoom,+this.maxZoom))!==this.scale&&(this.scale=t,this.$emit("scale",{scale:this.scale,index:this.active}))},toggleScale:function(){var t=this.scale>1?1:2;this.setScale(t),this.moveX=0,this.moveY=0},onTouchStart:function(t){var e=t.touches,n=this.offsetX,r=void 0===n?0:n;this.touchStart(t),this.touchStartTime=new Date,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=1===e.length&&1!==this.scale,this.zooming=2===e.length&&!r,this.zooming&&(this.startScale=this.scale,this.startDistance=Yn(t.touches))},onTouchMove:function(t){var e=t.touches;if(this.touchMove(t),(this.moving||this.zooming)&&h(t,!0),this.moving){var n=this.deltaX+this.startMoveX,r=this.deltaY+this.startMoveY;this.moveX=E(n,-this.maxMoveX,this.maxMoveX),this.moveY=E(r,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var i=Yn(e),o=this.startScale*i/this.startDistance;this.setScale(o)}},onTouchEnd:function(t){var e=!1;(this.moving||this.zooming)&&(e=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.zooming&&(this.moveX=E(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=E(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),h(t,e),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var t=this,e=this.offsetX,n=void 0===e?0:e,r=this.offsetY,i=void 0===r?0:r,o=new Date-this.touchStartTime;n<10&&i<10&&o<250&&(this.doubleTapTimer?(clearTimeout(this.doubleTapTimer),this.doubleTapTimer=null,this.toggleScale()):this.doubleTapTimer=setTimeout((function(){t.$emit("close"),t.doubleTapTimer=null}),250))},onLoad:function(t){var e=t.target,n=e.naturalWidth,r=e.naturalHeight;this.imageRatio=r/n}},render:function(){var t=arguments[0],e={loading:function(){return t(T,{attrs:{type:"spinner"}})}};return t(Gn,{class:Fn("swipe-item")},[t(Dn,{attrs:{src:this.src,fit:"contain"},class:Fn("image",{vertical:this.vertical}),style:this.imageStyle,scopedSlots:e,on:{load:this.onLoad}})])}},Qn=jn({mixins:[M,re({skipToggleEvent:!0}),te((function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)}))],props:{className:null,closeable:Boolean,asyncClose:Boolean,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},transition:{type:String,default:"zt-fade"},showIndex:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:300},startPosition:{type:[Number,String],default:0},overlayClass:{type:String,default:Fn("overlay")},closeIcon:{type:String,default:"clear"},closeOnPopstate:{type:Boolean,default:!0},closeIconPosition:{type:String,default:"top-right"}},data:function(){return{active:0,rootWidth:0,rootHeight:0,doubleClickTimer:null}},mounted:function(){this.resize()},watch:{startPosition:"setActive",value:function(t){var e=this;t?(this.setActive(+this.startPosition),this.$nextTick((function(){e.resize(),e.$refs.swipe.swipeTo(+e.startPosition,{immediate:!0})}))):this.$emit("close",{index:this.active,url:this.images[this.active]})}},methods:{resize:function(){if(this.$el&&this.$el.getBoundingClientRect){var t=this.$el.getBoundingClientRect();this.rootWidth=t.width,this.rootHeight=t.height}},emitClose:function(){this.asyncClose||this.$emit("input",!1)},emitScale:function(t){this.$emit("scale",t)},setActive:function(t){t!==this.active&&(this.active=t,this.$emit("change",t))},genIndex:function(){var t=this.$createElement;if(this.showIndex)return t("div",{class:Fn("index")},[this.slots("index",{index:this.active})||this.active+1+" / "+this.images.length])},genCover:function(){var t=this.$createElement,e=this.slots("cover");if(e)return t("div",{class:Fn("cover")},[e])},genImages:function(){var t=this,e=this.$createElement;return e(Vn,{ref:"swipe",attrs:{lazyRender:!0,loop:this.loop,duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators,indicatorColor:"white"},class:Fn("swipe"),on:{change:this.setActive}},[this.images.map((function(n){return e(Kn,{attrs:{src:n,show:t.value,active:t.active,maxZoom:t.maxZoom,minZoom:t.minZoom,rootWidth:t.rootWidth,rootHeight:t.rootHeight},on:{scale:t.emitScale,close:t.emitClose}})}))])},genClose:function(){var t=this.$createElement;if(this.closeable)return t(dt,{attrs:{role:"button",name:this.closeIcon},class:Fn("close-icon",this.closeIconPosition),on:{click:this.emitClose}})},onClosed:function(){this.$emit("closed")},swipeTo:function(t,e){this.$refs.swipe&&this.$refs.swipe.swipeTo(t,e)}},render:function(){var t=arguments[0];return t("transition",{attrs:{name:this.transition},on:{afterLeave:this.onClosed}},[this.shouldRender?t("div",{directives:[{name:"show",value:this.value}],class:[Fn(),this.className]},[this.genClose(),this.genImages(),this.genIndex(),this.genCover()]):null])}}),Jn={loop:!0,value:!0,images:[],maxZoom:3,minZoom:1/3,onClose:null,onChange:null,className:"",showIndex:!0,closeable:!1,closeIcon:"clear",asyncClose:!1,transition:"zt-fade",getContainer:"body",startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"},Zn=function(t,e){if(void 0===e&&(e=0),!i.i){Xn||(Xn=new(m.a.extend(Qn))({el:document.createElement("div")}),document.body.appendChild(Xn.$el),Xn.$on("change",(function(t){Xn.onChange&&Xn.onChange(t)})),Xn.$on("scale",(function(t){Xn.onScale&&Xn.onScale(t)})));var n=Array.isArray(t)?{images:t,startPosition:e}:t;return r(Xn,Jn,n),Xn.$once("input",(function(t){Xn.value=t})),Xn.$once("closed",(function(){Xn.images=[]})),n.onClose&&(Xn.$off("close"),Xn.$once("close",n.onClose)),Xn}};Zn.Component=Qn,Zn.install=function(){m.a.use(Qn)};var tr=Zn,er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nr=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},rr=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),ir=function(t){return null==t||"function"!=typeof t&&"object"!==(void 0===t?"undefined":er(t))},or=Object.prototype.toString,ar=function(t){var e=void 0===t?"undefined":er(t);return"undefined"===e?"undefined":null===t?"null":!0===t||!1===t||t instanceof Boolean?"boolean":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?void 0!==t.constructor.name&&"Generator"===t.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(t)?"array":t instanceof RegExp?"regexp":t instanceof Date?"date":"[object RegExp]"===(e=or.call(t))?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":"[object Promise]"===e?"promise":function(t){return t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Map Iterator]"===e?"mapiterator":"[object Set Iterator]"===e?"setiterator":"[object String Iterator]"===e?"stringiterator":"[object Array Iterator]"===e?"arrayiterator":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"};
|
|
18
|
+
*/(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",l="[object Array]",c="[object Boolean]",h="[object Date]",f="[object Error]",d="[object Function]",p="[object GeneratorFunction]",v="[object Map]",g="[object Number]",y="[object Object]",m="[object RegExp]",b="[object Set]",_="[object String]",C="[object Symbol]",w="[object WeakMap]",S="[object ArrayBuffer]",x="[object DataView]",A="[object Float32Array]",k="[object Float64Array]",P="[object Int8Array]",T="[object Int16Array]",L="[object Int32Array]",E="[object Uint8Array]",R="[object Uint16Array]",O="[object Uint32Array]",F=/\b__p \+= '';/g,I=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D=/&(?:amp|lt|gt|quot|#39);/g,j=/[&<>"']/g,N=RegExp(D.source),B=RegExp(j.source),z=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W=/^\w*$/,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$=/[\\^$.*+?()[\]{}|]/g,G=RegExp($.source),Y=/^\s+/,X=/\s/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,K=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,J=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,ut=/^(?:0|[1-9]\d*)$/,lt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ht=/['\n\r\u2028\u2029\\]/g,ft="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",vt="["+dt+"]",gt="["+ft+"]",yt="\\d+",mt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",_t="[^\\ud800-\\udfff"+dt+yt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ct="\\ud83c[\\udffb-\\udfff]",wt="[^\\ud800-\\udfff]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",xt="[\\ud800-\\udbff][\\udc00-\\udfff]",At="[A-Z\\xc0-\\xd6\\xd8-\\xde]",kt="(?:"+bt+"|"+_t+")",Pt="(?:"+At+"|"+_t+")",Tt="(?:"+gt+"|"+Ct+")"+"?",Lt="[\\ufe0e\\ufe0f]?"+Tt+("(?:\\u200d(?:"+[wt,St,xt].join("|")+")[\\ufe0e\\ufe0f]?"+Tt+")*"),Et="(?:"+[mt,St,xt].join("|")+")"+Lt,Rt="(?:"+[wt+gt+"?",gt,St,xt,pt].join("|")+")",Ot=RegExp("['’]","g"),Ft=RegExp(gt,"g"),It=RegExp(Ct+"(?="+Ct+")|"+Rt+Lt,"g"),Mt=RegExp([At+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[vt,At,"$"].join("|")+")",Pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[vt,At+kt,"$"].join("|")+")",At+"?"+kt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",At+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yt,Et].join("|"),"g"),Dt=RegExp("[\\u200d\\ud800-\\udfff"+ft+"\\ufe0e\\ufe0f]"),jt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Bt=-1,zt={};zt[A]=zt[k]=zt[P]=zt[T]=zt[L]=zt[E]=zt["[object Uint8ClampedArray]"]=zt[R]=zt[O]=!0,zt[u]=zt[l]=zt[S]=zt[c]=zt[x]=zt[h]=zt[f]=zt[d]=zt[v]=zt[g]=zt[y]=zt[m]=zt[b]=zt[_]=zt[w]=!1;var Ht={};Ht[u]=Ht[l]=Ht[S]=Ht[x]=Ht[c]=Ht[h]=Ht[A]=Ht[k]=Ht[P]=Ht[T]=Ht[L]=Ht[v]=Ht[g]=Ht[y]=Ht[m]=Ht[b]=Ht[_]=Ht[C]=Ht[E]=Ht["[object Uint8ClampedArray]"]=Ht[R]=Ht[O]=!0,Ht[f]=Ht[d]=Ht[w]=!1;var Ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vt=parseFloat,Wt=parseInt,qt="object"==typeof t&&t&&t.Object===Object&&t,$t="object"==typeof self&&self&&self.Object===Object&&self,Gt=qt||$t||Function("return this")(),Yt=e&&!e.nodeType&&e,Xt=Yt&&"object"==typeof r&&r&&!r.nodeType&&r,Zt=Xt&&Xt.exports===Yt,Kt=Zt&&qt.process,Qt=function(){try{var t=Xt&&Xt.require&&Xt.require("util").types;return t||Kt&&Kt.binding&&Kt.binding("util")}catch(t){}}(),Jt=Qt&&Qt.isArrayBuffer,te=Qt&&Qt.isDate,ee=Qt&&Qt.isMap,ne=Qt&&Qt.isRegExp,re=Qt&&Qt.isSet,ie=Qt&&Qt.isTypedArray;function oe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ae(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ue(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function le(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function ce(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function he(t,e){return!!(null==t?0:t.length)&&Ce(t,e,0)>-1}function fe(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function de(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function pe(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function ve(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function ge(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function ye(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var me=Ae("length");function be(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function _e(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Ce(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):_e(t,Se,n)}function we(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Se(t){return t!=t}function xe(t,e){var n=null==t?0:t.length;return n?Te(t,e)/n:NaN}function Ae(t){return function(e){return null==e?void 0:e[t]}}function ke(t){return function(e){return null==t?void 0:t[e]}}function Pe(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Te(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function Le(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ee(t){return t?t.slice(0,Ye(t)+1).replace(Y,""):t}function Re(t){return function(e){return t(e)}}function Oe(t,e){return de(e,(function(e){return t[e]}))}function Fe(t,e){return t.has(e)}function Ie(t,e){for(var n=-1,r=t.length;++n<r&&Ce(e,t[n],0)>-1;);return n}function Me(t,e){for(var n=t.length;n--&&Ce(e,t[n],0)>-1;);return n}function De(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var je=ke({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Ne=ke({"&":"&","<":"<",">":">",'"':""","'":"'"});function Be(t){return"\\"+Ut[t]}function ze(t){return Dt.test(t)}function He(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Ue(t,e){return function(n){return t(e(n))}}function Ve(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[i++]=n)}return o}function We(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function qe(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function $e(t){return ze(t)?function(t){var e=It.lastIndex=0;for(;It.test(t);)++e;return e}(t):me(t)}function Ge(t){return ze(t)?function(t){return t.match(It)||[]}(t):function(t){return t.split("")}(t)}function Ye(t){for(var e=t.length;e--&&X.test(t.charAt(e)););return e}var Xe=ke({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Ze=function t(e){var n,r=(e=null==e?Gt:Ze.defaults(Gt.Object(),e,Ze.pick(Gt,Nt))).Array,i=e.Date,X=e.Error,ft=e.Function,dt=e.Math,pt=e.Object,vt=e.RegExp,gt=e.String,yt=e.TypeError,mt=r.prototype,bt=ft.prototype,_t=pt.prototype,Ct=e["__core-js_shared__"],wt=bt.toString,St=_t.hasOwnProperty,xt=0,At=(n=/[^.]+$/.exec(Ct&&Ct.keys&&Ct.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",kt=_t.toString,Pt=wt.call(pt),Tt=Gt._,Lt=vt("^"+wt.call(St).replace($,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Et=Zt?e.Buffer:void 0,Rt=e.Symbol,It=e.Uint8Array,Dt=Et?Et.allocUnsafe:void 0,Ut=Ue(pt.getPrototypeOf,pt),qt=pt.create,$t=_t.propertyIsEnumerable,Yt=mt.splice,Xt=Rt?Rt.isConcatSpreadable:void 0,Kt=Rt?Rt.iterator:void 0,Qt=Rt?Rt.toStringTag:void 0,me=function(){try{var t=to(pt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ke=e.clearTimeout!==Gt.clearTimeout&&e.clearTimeout,Ke=i&&i.now!==Gt.Date.now&&i.now,Qe=e.setTimeout!==Gt.setTimeout&&e.setTimeout,Je=dt.ceil,tn=dt.floor,en=pt.getOwnPropertySymbols,nn=Et?Et.isBuffer:void 0,rn=e.isFinite,on=mt.join,an=Ue(pt.keys,pt),sn=dt.max,un=dt.min,ln=i.now,cn=e.parseInt,hn=dt.random,fn=mt.reverse,dn=to(e,"DataView"),pn=to(e,"Map"),vn=to(e,"Promise"),gn=to(e,"Set"),yn=to(e,"WeakMap"),mn=to(pt,"create"),bn=yn&&new yn,_n={},Cn=To(dn),wn=To(pn),Sn=To(vn),xn=To(gn),An=To(yn),kn=Rt?Rt.prototype:void 0,Pn=kn?kn.valueOf:void 0,Tn=kn?kn.toString:void 0;function Ln(t){if(qa(t)&&!Ia(t)&&!(t instanceof Fn)){if(t instanceof On)return t;if(St.call(t,"__wrapped__"))return Lo(t)}return new On(t)}var En=function(){function t(){}return function(e){if(!Wa(e))return{};if(qt)return qt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Rn(){}function On(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Fn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function In(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Mn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Dn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function jn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Dn;++e<n;)this.add(t[e])}function Nn(t){var e=this.__data__=new Mn(t);this.size=e.size}function Bn(t,e){var n=Ia(t),r=!n&&Fa(t),i=!n&&!r&&Na(t),o=!n&&!r&&!i&&Ja(t),a=n||r||i||o,s=a?Le(t.length,gt):[],u=s.length;for(var l in t)!e&&!St.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||so(l,u))||s.push(l);return s}function zn(t){var e=t.length;return e?t[jr(0,e-1)]:void 0}function Hn(t,e){return Ao(mi(t),Zn(e,0,t.length))}function Un(t){return Ao(mi(t))}function Vn(t,e,n){(void 0!==n&&!Ea(t[e],n)||void 0===n&&!(e in t))&&Yn(t,e,n)}function Wn(t,e,n){var r=t[e];St.call(t,e)&&Ea(r,n)&&(void 0!==n||e in t)||Yn(t,e,n)}function qn(t,e){for(var n=t.length;n--;)if(Ea(t[n][0],e))return n;return-1}function $n(t,e,n,r){return er(t,(function(t,i,o){e(r,t,n(t),o)})),r}function Gn(t,e){return t&&bi(e,Cs(e),t)}function Yn(t,e,n){"__proto__"==e&&me?me(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Xn(t,e){for(var n=-1,i=e.length,o=r(i),a=null==t;++n<i;)o[n]=a?void 0:gs(t,e[n]);return o}function Zn(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}function Kn(t,e,n,r,i,o){var a,s=1&e,l=2&e,f=4&e;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!Wa(t))return t;var w=Ia(t);if(w){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&St.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!s)return mi(t,a)}else{var F=ro(t),I=F==d||F==p;if(Na(t))return fi(t,s);if(F==y||F==u||I&&!i){if(a=l||I?{}:oo(t),!s)return l?function(t,e){return bi(t,no(t),e)}(t,function(t,e){return t&&bi(e,ws(e),t)}(a,t)):function(t,e){return bi(t,eo(t),e)}(t,Gn(a,t))}else{if(!Ht[F])return i?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case S:return di(t);case c:case h:return new r(+t);case x:return function(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case A:case k:case P:case T:case L:case E:case"[object Uint8ClampedArray]":case R:case O:return pi(t,n);case v:return new r;case g:case _:return new r(t);case m:return function(t){var e=new t.constructor(t.source,rt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case b:return new r;case C:return i=t,Pn?pt(Pn.call(i)):{}}var i}(t,F,s)}}o||(o=new Nn);var M=o.get(t);if(M)return M;o.set(t,a),Za(t)?t.forEach((function(r){a.add(Kn(r,e,n,r,t,o))})):$a(t)&&t.forEach((function(r,i){a.set(i,Kn(r,e,n,i,t,o))}));var D=w?void 0:(f?l?Gi:$i:l?ws:Cs)(t);return se(D||t,(function(r,i){D&&(r=t[i=r]),Wn(a,i,Kn(r,e,n,i,t,o))})),a}function Qn(t,e,n){var r=n.length;if(null==t)return!r;for(t=pt(t);r--;){var i=n[r],o=e[i],a=t[i];if(void 0===a&&!(i in t)||!o(a))return!1}return!0}function Jn(t,e,n){if("function"!=typeof t)throw new yt(o);return Co((function(){t.apply(void 0,n)}),e)}function tr(t,e,n,r){var i=-1,o=he,a=!0,s=t.length,u=[],l=e.length;if(!s)return u;n&&(e=de(e,Re(n))),r?(o=fe,a=!1):e.length>=200&&(o=Fe,a=!1,e=new jn(e));t:for(;++i<s;){var c=t[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,a&&h==h){for(var f=l;f--;)if(e[f]===h)continue t;u.push(c)}else o(e,h,r)||u.push(c)}return u}Ln.templateSettings={escape:z,evaluate:H,interpolate:U,variable:"",imports:{_:Ln}},Ln.prototype=Rn.prototype,Ln.prototype.constructor=Ln,On.prototype=En(Rn.prototype),On.prototype.constructor=On,Fn.prototype=En(Rn.prototype),Fn.prototype.constructor=Fn,In.prototype.clear=function(){this.__data__=mn?mn(null):{},this.size=0},In.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},In.prototype.get=function(t){var e=this.__data__;if(mn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return St.call(e,t)?e[t]:void 0},In.prototype.has=function(t){var e=this.__data__;return mn?void 0!==e[t]:St.call(e,t)},In.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=mn&&void 0===e?"__lodash_hash_undefined__":e,this},Mn.prototype.clear=function(){this.__data__=[],this.size=0},Mn.prototype.delete=function(t){var e=this.__data__,n=qn(e,t);return!(n<0)&&(n==e.length-1?e.pop():Yt.call(e,n,1),--this.size,!0)},Mn.prototype.get=function(t){var e=this.__data__,n=qn(e,t);return n<0?void 0:e[n][1]},Mn.prototype.has=function(t){return qn(this.__data__,t)>-1},Mn.prototype.set=function(t,e){var n=this.__data__,r=qn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Dn.prototype.clear=function(){this.size=0,this.__data__={hash:new In,map:new(pn||Mn),string:new In}},Dn.prototype.delete=function(t){var e=Qi(this,t).delete(t);return this.size-=e?1:0,e},Dn.prototype.get=function(t){return Qi(this,t).get(t)},Dn.prototype.has=function(t){return Qi(this,t).has(t)},Dn.prototype.set=function(t,e){var n=Qi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},jn.prototype.add=jn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},jn.prototype.has=function(t){return this.__data__.has(t)},Nn.prototype.clear=function(){this.__data__=new Mn,this.size=0},Nn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Nn.prototype.get=function(t){return this.__data__.get(t)},Nn.prototype.has=function(t){return this.__data__.has(t)},Nn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Mn){var r=n.__data__;if(!pn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Dn(r)}return n.set(t,e),this.size=n.size,this};var er=wi(lr),nr=wi(cr,!0);function rr(t,e){var n=!0;return er(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function ir(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(void 0===s?a==a&&!Qa(a):n(a,s)))var s=a,u=o}return u}function or(t,e){var n=[];return er(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function ar(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=ao),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?ar(s,e-1,n,r,i):pe(i,s):r||(i[i.length]=s)}return i}var sr=Si(),ur=Si(!0);function lr(t,e){return t&&sr(t,e,Cs)}function cr(t,e){return t&&ur(t,e,Cs)}function hr(t,e){return ce(e,(function(e){return Ha(t[e])}))}function fr(t,e){for(var n=0,r=(e=ui(e,t)).length;null!=t&&n<r;)t=t[Po(e[n++])];return n&&n==r?t:void 0}function dr(t,e,n){var r=e(t);return Ia(t)?r:pe(r,n(t))}function pr(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Qt&&Qt in pt(t)?function(t){var e=St.call(t,Qt),n=t[Qt];try{t[Qt]=void 0;var r=!0}catch(t){}var i=kt.call(t);r&&(e?t[Qt]=n:delete t[Qt]);return i}(t):function(t){return kt.call(t)}(t)}function vr(t,e){return t>e}function gr(t,e){return null!=t&&St.call(t,e)}function yr(t,e){return null!=t&&e in pt(t)}function mr(t,e,n){for(var i=n?fe:he,o=t[0].length,a=t.length,s=a,u=r(a),l=1/0,c=[];s--;){var h=t[s];s&&e&&(h=de(h,Re(e))),l=un(h.length,l),u[s]=!n&&(e||o>=120&&h.length>=120)?new jn(s&&h):void 0}h=t[0];var f=-1,d=u[0];t:for(;++f<o&&c.length<l;){var p=h[f],v=e?e(p):p;if(p=n||0!==p?p:0,!(d?Fe(d,v):i(c,v,n))){for(s=a;--s;){var g=u[s];if(!(g?Fe(g,v):i(t[s],v,n)))continue t}d&&d.push(v),c.push(p)}}return c}function br(t,e,n){var r=null==(t=yo(t,e=ui(e,t)))?t:t[Po(zo(e))];return null==r?void 0:oe(r,t,n)}function _r(t){return qa(t)&&pr(t)==u}function Cr(t,e,n,r,i){return t===e||(null==t||null==e||!qa(t)&&!qa(e)?t!=t&&e!=e:function(t,e,n,r,i,o){var a=Ia(t),s=Ia(e),d=a?l:ro(t),p=s?l:ro(e),w=(d=d==u?y:d)==y,A=(p=p==u?y:p)==y,k=d==p;if(k&&Na(t)){if(!Na(e))return!1;a=!0,w=!1}if(k&&!w)return o||(o=new Nn),a||Ja(t)?Wi(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case S:return!(t.byteLength!=e.byteLength||!o(new It(t),new It(e)));case c:case h:case g:return Ea(+t,+e);case f:return t.name==e.name&&t.message==e.message;case m:case _:return t==e+"";case v:var s=He;case b:var u=1&r;if(s||(s=We),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;r|=2,a.set(t,e);var d=Wi(s(t),s(e),r,i,o,a);return a.delete(t),d;case C:if(Pn)return Pn.call(t)==Pn.call(e)}return!1}(t,e,d,n,r,i,o);if(!(1&n)){var P=w&&St.call(t,"__wrapped__"),T=A&&St.call(e,"__wrapped__");if(P||T){var L=P?t.value():t,E=T?e.value():e;return o||(o=new Nn),i(L,E,n,r,o)}}if(!k)return!1;return o||(o=new Nn),function(t,e,n,r,i,o){var a=1&n,s=$i(t),u=s.length,l=$i(e).length;if(u!=l&&!a)return!1;var c=u;for(;c--;){var h=s[c];if(!(a?h in e:St.call(e,h)))return!1}var f=o.get(t),d=o.get(e);if(f&&d)return f==e&&d==t;var p=!0;o.set(t,e),o.set(e,t);var v=a;for(;++c<u;){h=s[c];var g=t[h],y=e[h];if(r)var m=a?r(y,g,h,e,t,o):r(g,y,h,t,e,o);if(!(void 0===m?g===y||i(g,y,n,r,o):m)){p=!1;break}v||(v="constructor"==h)}if(p&&!v){var b=t.constructor,_=e.constructor;b==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,i,o)}(t,e,n,r,Cr,i))}function wr(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=pt(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){var u=(s=n[i])[0],l=t[u],c=s[1];if(a&&s[2]){if(void 0===l&&!(u in t))return!1}else{var h=new Nn;if(r)var f=r(l,c,u,t,e,h);if(!(void 0===f?Cr(c,l,3,r,h):f))return!1}}return!0}function Sr(t){return!(!Wa(t)||(e=t,At&&At in e))&&(Ha(t)?Lt:at).test(To(t));var e}function xr(t){return"function"==typeof t?t:null==t?Gs:"object"==typeof t?Ia(t)?Er(t[0],t[1]):Lr(t):nu(t)}function Ar(t){if(!fo(t))return an(t);var e=[];for(var n in pt(t))St.call(t,n)&&"constructor"!=n&&e.push(n);return e}function kr(t){if(!Wa(t))return function(t){var e=[];if(null!=t)for(var n in pt(t))e.push(n);return e}(t);var e=fo(t),n=[];for(var r in t)("constructor"!=r||!e&&St.call(t,r))&&n.push(r);return n}function Pr(t,e){return t<e}function Tr(t,e){var n=-1,i=Da(t)?r(t.length):[];return er(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function Lr(t){var e=Ji(t);return 1==e.length&&e[0][2]?vo(e[0][0],e[0][1]):function(n){return n===t||wr(n,t,e)}}function Er(t,e){return lo(t)&&po(e)?vo(Po(t),e):function(n){var r=gs(n,t);return void 0===r&&r===e?ys(n,t):Cr(e,r,3)}}function Rr(t,e,n,r,i){t!==e&&sr(e,(function(o,a){if(i||(i=new Nn),Wa(o))!function(t,e,n,r,i,o,a){var s=bo(t,n),u=bo(e,n),l=a.get(u);if(l)return void Vn(t,n,l);var c=o?o(s,u,n+"",t,e,a):void 0,h=void 0===c;if(h){var f=Ia(u),d=!f&&Na(u),p=!f&&!d&&Ja(u);c=u,f||d||p?Ia(s)?c=s:ja(s)?c=mi(s):d?(h=!1,c=fi(u,!0)):p?(h=!1,c=pi(u,!0)):c=[]:Ya(u)||Fa(u)?(c=s,Fa(s)?c=ss(s):Wa(s)&&!Ha(s)||(c=oo(u))):h=!1}h&&(a.set(u,c),i(c,u,r,o,a),a.delete(u));Vn(t,n,c)}(t,e,a,n,Rr,r,i);else{var s=r?r(bo(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Vn(t,a,s)}}),ws)}function Or(t,e){var n=t.length;if(n)return so(e+=e<0?n:0,n)?t[e]:void 0}function Fr(t,e,n){e=e.length?de(e,(function(t){return Ia(t)?function(e){return fr(e,1===t.length?t[0]:t)}:t})):[Gs];var r=-1;return e=de(e,Re(Ki())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Tr(t,(function(t,n,i){return{criteria:de(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;for(;++r<a;){var u=vi(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return t.index-e.index}(t,e,n)}))}function Ir(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=fr(t,a);n(s,a)&&Ur(o,ui(a,t),s)}return o}function Mr(t,e,n,r){var i=r?we:Ce,o=-1,a=e.length,s=t;for(t===e&&(e=mi(e)),n&&(s=de(t,Re(n)));++o<a;)for(var u=0,l=e[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==t&&Yt.call(s,u,1),Yt.call(t,u,1);return t}function Dr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;so(i)?Yt.call(t,i,1):ti(t,i)}}return t}function jr(t,e){return t+tn(hn()*(e-t+1))}function Nr(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=tn(e/2))&&(t+=t)}while(e);return n}function Br(t,e){return wo(go(t,e,Gs),t+"")}function zr(t){return zn(Es(t))}function Hr(t,e){var n=Es(t);return Ao(n,Zn(e,0,n.length))}function Ur(t,e,n,r){if(!Wa(t))return t;for(var i=-1,o=(e=ui(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var u=Po(e[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=a){var c=s[u];void 0===(l=r?r(c,u,s):void 0)&&(l=Wa(c)?c:so(e[i+1])?[]:{})}Wn(s,u,l),s=s[u]}return t}var Vr=bn?function(t,e){return bn.set(t,e),t}:Gs,Wr=me?function(t,e){return me(t,"toString",{configurable:!0,enumerable:!1,value:Ws(e),writable:!0})}:Gs;function qr(t){return Ao(Es(t))}function $r(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i<o;)a[i]=t[i+e];return a}function Gr(t,e){var n;return er(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function Yr(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!Qa(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return Xr(t,e,Gs,n)}function Xr(t,e,n,r){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=n(e))!=e,s=null===e,u=Qa(e),l=void 0===e;i<o;){var c=tn((i+o)/2),h=n(t[c]),f=void 0!==h,d=null===h,p=h==h,v=Qa(h);if(a)var g=r||p;else g=l?p&&(r||f):s?p&&f&&(r||!d):u?p&&f&&!d&&(r||!v):!d&&!v&&(r?h<=e:h<e);g?i=c+1:o=c}return un(o,4294967294)}function Zr(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Ea(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Kr(t){return"number"==typeof t?t:Qa(t)?NaN:+t}function Qr(t){if("string"==typeof t)return t;if(Ia(t))return de(t,Qr)+"";if(Qa(t))return Tn?Tn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Jr(t,e,n){var r=-1,i=he,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=fe;else if(o>=200){var l=e?null:Ni(t);if(l)return We(l);a=!1,i=Fe,u=new jn}else u=e?[]:s;t:for(;++r<o;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,a&&h==h){for(var f=u.length;f--;)if(u[f]===h)continue t;e&&u.push(h),s.push(c)}else i(u,h,n)||(u!==s&&u.push(h),s.push(c))}return s}function ti(t,e){return null==(t=yo(t,e=ui(e,t)))||delete t[Po(zo(e))]}function ei(t,e,n,r){return Ur(t,e,n(fr(t,e)),r)}function ni(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?$r(t,r?0:o,r?o+1:i):$r(t,r?o+1:0,r?i:o)}function ri(t,e){var n=t;return n instanceof Fn&&(n=n.value()),ve(e,(function(t,e){return e.func.apply(e.thisArg,pe([t],e.args))}),n)}function ii(t,e,n){var i=t.length;if(i<2)return i?Jr(t[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=t[o],u=-1;++u<i;)u!=o&&(a[o]=tr(a[o]||s,t[u],e,n));return Jr(ar(a,1),e,n)}function oi(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:void 0;n(a,t[r],s)}return a}function ai(t){return ja(t)?t:[]}function si(t){return"function"==typeof t?t:Gs}function ui(t,e){return Ia(t)?t:lo(t,e)?[t]:ko(us(t))}var li=Br;function ci(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:$r(t,e,n)}var hi=ke||function(t){return Gt.clearTimeout(t)};function fi(t,e){if(e)return t.slice();var n=t.length,r=Dt?Dt(n):new t.constructor(n);return t.copy(r),r}function di(t){var e=new t.constructor(t.byteLength);return new It(e).set(new It(t)),e}function pi(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function vi(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Qa(t),a=void 0!==e,s=null===e,u=e==e,l=Qa(e);if(!s&&!l&&!o&&t>e||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t<e||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function gi(t,e,n,i){for(var o=-1,a=t.length,s=n.length,u=-1,l=e.length,c=sn(a-s,0),h=r(l+c),f=!i;++u<l;)h[u]=e[u];for(;++o<s;)(f||o<a)&&(h[n[o]]=t[o]);for(;c--;)h[u++]=t[o++];return h}function yi(t,e,n,i){for(var o=-1,a=t.length,s=-1,u=n.length,l=-1,c=e.length,h=sn(a-u,0),f=r(h+c),d=!i;++o<h;)f[o]=t[o];for(var p=o;++l<c;)f[p+l]=e[l];for(;++s<u;)(d||o<a)&&(f[p+n[s]]=t[o++]);return f}function mi(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function bi(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?Yn(n,s,u):Wn(n,s,u)}return n}function _i(t,e){return function(n,r){var i=Ia(n)?ae:$n,o=e?e():{};return i(n,t,Ki(r,2),o)}}function Ci(t){return Br((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&uo(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=pt(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e}))}function wi(t,e){return function(n,r){if(null==n)return n;if(!Da(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=pt(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Si(t){return function(e,n,r){for(var i=-1,o=pt(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}function xi(t){return function(e){var n=ze(e=us(e))?Ge(e):void 0,r=n?n[0]:e.charAt(0),i=n?ci(n,1).join(""):e.slice(1);return r[t]()+i}}function Ai(t){return function(e){return ve(Hs(Fs(e).replace(Ot,"")),t,"")}}function ki(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=En(t.prototype),r=t.apply(n,e);return Wa(r)?r:n}}function Pi(t){return function(e,n,r){var i=pt(e);if(!Da(e)){var o=Ki(n,3);e=Cs(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:void 0}}function Ti(t){return qi((function(e){var n=e.length,r=n,i=On.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new yt(o);if(i&&!s&&"wrapper"==Xi(a))var s=new On([],!0)}for(r=s?r:n;++r<n;){var u=Xi(a=e[r]),l="wrapper"==u?Yi(a):void 0;s=l&&co(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[Xi(l[0])].apply(s,l[3]):1==a.length&&co(a)?s[u]():s.thru(a)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&Ia(r))return s.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function Li(t,e,n,i,o,a,s,u,l,c){var h=128&e,f=1&e,d=2&e,p=24&e,v=512&e,g=d?void 0:ki(t);return function y(){for(var m=arguments.length,b=r(m),_=m;_--;)b[_]=arguments[_];if(p)var C=Zi(y),w=De(b,C);if(i&&(b=gi(b,i,o,p)),a&&(b=yi(b,a,s,p)),m-=w,p&&m<c){var S=Ve(b,C);return Di(t,e,Li,y.placeholder,n,b,S,u,l,c-m)}var x=f?n:this,A=d?x[t]:t;return m=b.length,u?b=mo(b,u):v&&m>1&&b.reverse(),h&&l<m&&(b.length=l),this&&this!==Gt&&this instanceof y&&(A=g||ki(A)),A.apply(x,b)}}function Ei(t,e){return function(n,r){return function(t,e,n,r){return lr(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Ri(t,e){return function(n,r){var i;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Qr(n),r=Qr(r)):(n=Kr(n),r=Kr(r)),i=t(n,r)}return i}}function Oi(t){return qi((function(e){return e=de(e,Re(Ki())),Br((function(n){var r=this;return t(e,(function(t){return oe(t,r,n)}))}))}))}function Fi(t,e){var n=(e=void 0===e?" ":Qr(e)).length;if(n<2)return n?Nr(e,t):e;var r=Nr(e,Je(t/$e(e)));return ze(e)?ci(Ge(r),0,t).join(""):r.slice(0,t)}function Ii(t){return function(e,n,i){return i&&"number"!=typeof i&&uo(e,n,i)&&(n=i=void 0),e=rs(e),void 0===n?(n=e,e=0):n=rs(n),function(t,e,n,i){for(var o=-1,a=sn(Je((e-t)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=t,t+=n;return s}(e,n,i=void 0===i?e<n?1:-1:rs(i),t)}}function Mi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=as(e),n=as(n)),t(e,n)}}function Di(t,e,n,r,i,o,a,s,u,l){var c=8&e;e|=c?32:64,4&(e&=~(c?64:32))||(e&=-4);var h=[t,e,i,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,s,u,l],f=n.apply(void 0,h);return co(t)&&_o(f,h),f.placeholder=r,So(f,t,e)}function ji(t){var e=dt[t];return function(t,n){if(t=as(t),(n=null==n?0:un(is(n),292))&&rn(t)){var r=(us(t)+"e").split("e");return+((r=(us(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Ni=gn&&1/We(new gn([,-0]))[1]==1/0?function(t){return new gn(t)}:Qs;function Bi(t){return function(e){var n=ro(e);return n==v?He(e):n==b?qe(e):function(t,e){return de(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function zi(t,e,n,i,s,u,l,c){var h=2&e;if(!h&&"function"!=typeof t)throw new yt(o);var f=i?i.length:0;if(f||(e&=-97,i=s=void 0),l=void 0===l?l:sn(is(l),0),c=void 0===c?c:is(c),f-=s?s.length:0,64&e){var d=i,p=s;i=s=void 0}var v=h?void 0:Yi(t),g=[t,e,n,i,s,d,p,u,l,c];if(v&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var u=e[3];if(u){var l=t[3];t[3]=l?gi(l,u,e[4]):u,t[4]=l?Ve(t[3],a):e[4]}(u=e[5])&&(l=t[5],t[5]=l?yi(l,u,e[6]):u,t[6]=l?Ve(t[5],a):e[6]);(u=e[7])&&(t[7]=u);128&r&&(t[8]=null==t[8]?e[8]:un(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(g,v),t=g[0],e=g[1],n=g[2],i=g[3],s=g[4],!(c=g[9]=void 0===g[9]?h?0:t.length:sn(g[9]-f,0))&&24&e&&(e&=-25),e&&1!=e)y=8==e||16==e?function(t,e,n){var i=ki(t);return function o(){for(var a=arguments.length,s=r(a),u=a,l=Zi(o);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:Ve(s,l);if((a-=c.length)<n)return Di(t,e,Li,o.placeholder,void 0,s,c,void 0,void 0,n-a);var h=this&&this!==Gt&&this instanceof o?i:t;return oe(h,this,s)}}(t,e,c):32!=e&&33!=e||s.length?Li.apply(void 0,g):function(t,e,n,i){var o=1&e,a=ki(t);return function e(){for(var s=-1,u=arguments.length,l=-1,c=i.length,h=r(c+u),f=this&&this!==Gt&&this instanceof e?a:t;++l<c;)h[l]=i[l];for(;u--;)h[l++]=arguments[++s];return oe(f,o?n:this,h)}}(t,e,n,i);else var y=function(t,e,n){var r=1&e,i=ki(t);return function e(){var o=this&&this!==Gt&&this instanceof e?i:t;return o.apply(r?n:this,arguments)}}(t,e,n);return So((v?Vr:_o)(y,g),t,e)}function Hi(t,e,n,r){return void 0===t||Ea(t,_t[n])&&!St.call(r,n)?e:t}function Ui(t,e,n,r,i,o){return Wa(t)&&Wa(e)&&(o.set(e,t),Rr(t,e,void 0,Ui,o),o.delete(e)),t}function Vi(t){return Ya(t)?void 0:t}function Wi(t,e,n,r,i,o){var a=1&n,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(t),c=o.get(e);if(l&&c)return l==e&&c==t;var h=-1,f=!0,d=2&n?new jn:void 0;for(o.set(t,e),o.set(e,t);++h<s;){var p=t[h],v=e[h];if(r)var g=a?r(v,p,h,e,t,o):r(p,v,h,t,e,o);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!ye(e,(function(t,e){if(!Fe(d,e)&&(p===t||i(p,t,n,r,o)))return d.push(e)}))){f=!1;break}}else if(p!==v&&!i(p,v,n,r,o)){f=!1;break}}return o.delete(t),o.delete(e),f}function qi(t){return wo(go(t,void 0,Mo),t+"")}function $i(t){return dr(t,Cs,eo)}function Gi(t){return dr(t,ws,no)}var Yi=bn?function(t){return bn.get(t)}:Qs;function Xi(t){for(var e=t.name+"",n=_n[e],r=St.call(_n,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Zi(t){return(St.call(Ln,"placeholder")?Ln:t).placeholder}function Ki(){var t=Ln.iteratee||Ys;return t=t===Ys?xr:t,arguments.length?t(arguments[0],arguments[1]):t}function Qi(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Ji(t){for(var e=Cs(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,po(i)]}return e}function to(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Sr(n)?n:void 0}var eo=en?function(t){return null==t?[]:(t=pt(t),ce(en(t),(function(e){return $t.call(t,e)})))}:ou,no=en?function(t){for(var e=[];t;)pe(e,eo(t)),t=Ut(t);return e}:ou,ro=pr;function io(t,e,n){for(var r=-1,i=(e=ui(e,t)).length,o=!1;++r<i;){var a=Po(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Va(i)&&so(a,i)&&(Ia(t)||Fa(t))}function oo(t){return"function"!=typeof t.constructor||fo(t)?{}:En(Ut(t))}function ao(t){return Ia(t)||Fa(t)||!!(Xt&&t&&t[Xt])}function so(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ut.test(t))&&t>-1&&t%1==0&&t<e}function uo(t,e,n){if(!Wa(n))return!1;var r=typeof e;return!!("number"==r?Da(n)&&so(e,n.length):"string"==r&&e in n)&&Ea(n[e],t)}function lo(t,e){if(Ia(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Qa(t))||(W.test(t)||!V.test(t)||null!=e&&t in pt(e))}function co(t){var e=Xi(t),n=Ln[e];if("function"!=typeof n||!(e in Fn.prototype))return!1;if(t===n)return!0;var r=Yi(n);return!!r&&t===r[0]}(dn&&ro(new dn(new ArrayBuffer(1)))!=x||pn&&ro(new pn)!=v||vn&&"[object Promise]"!=ro(vn.resolve())||gn&&ro(new gn)!=b||yn&&ro(new yn)!=w)&&(ro=function(t){var e=pr(t),n=e==y?t.constructor:void 0,r=n?To(n):"";if(r)switch(r){case Cn:return x;case wn:return v;case Sn:return"[object Promise]";case xn:return b;case An:return w}return e});var ho=Ct?Ha:au;function fo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_t)}function po(t){return t==t&&!Wa(t)}function vo(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in pt(n)))}}function go(t,e,n){return e=sn(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=sn(i.length-e,0),s=r(a);++o<a;)s[o]=i[e+o];o=-1;for(var u=r(e+1);++o<e;)u[o]=i[o];return u[e]=n(s),oe(t,this,u)}}function yo(t,e){return e.length<2?t:fr(t,$r(e,0,-1))}function mo(t,e){for(var n=t.length,r=un(e.length,n),i=mi(t);r--;){var o=e[r];t[r]=so(o,n)?i[o]:void 0}return t}function bo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var _o=xo(Vr),Co=Qe||function(t,e){return Gt.setTimeout(t,e)},wo=xo(Wr);function So(t,e,n){var r=e+"";return wo(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Z,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return se(s,(function(n){var r="_."+n[0];e&n[1]&&!he(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(K);return e?e[1].split(Q):[]}(r),n)))}function xo(t){var e=0,n=0;return function(){var r=ln(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Ao(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n<e;){var o=jr(n,i),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var ko=function(t){var e=xa(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(q,(function(t,n,r,i){e.push(r?i.replace(et,"$1"):n||t)})),e}));function Po(t){if("string"==typeof t||Qa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function To(t){if(null!=t){try{return wt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Lo(t){if(t instanceof Fn)return t.clone();var e=new On(t.__wrapped__,t.__chain__);return e.__actions__=mi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Eo=Br((function(t,e){return ja(t)?tr(t,ar(e,1,ja,!0)):[]})),Ro=Br((function(t,e){var n=zo(e);return ja(n)&&(n=void 0),ja(t)?tr(t,ar(e,1,ja,!0),Ki(n,2)):[]})),Oo=Br((function(t,e){var n=zo(e);return ja(n)&&(n=void 0),ja(t)?tr(t,ar(e,1,ja,!0),void 0,n):[]}));function Fo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),_e(t,Ki(e,3),i)}function Io(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=is(n),i=n<0?sn(r+i,0):un(i,r-1)),_e(t,Ki(e,3),i,!0)}function Mo(t){return(null==t?0:t.length)?ar(t,1):[]}function Do(t){return t&&t.length?t[0]:void 0}var jo=Br((function(t){var e=de(t,ai);return e.length&&e[0]===t[0]?mr(e):[]})),No=Br((function(t){var e=zo(t),n=de(t,ai);return e===zo(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?mr(n,Ki(e,2)):[]})),Bo=Br((function(t){var e=zo(t),n=de(t,ai);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?mr(n,void 0,e):[]}));function zo(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Ho=Br(Uo);function Uo(t,e){return t&&t.length&&e&&e.length?Mr(t,e):t}var Vo=qi((function(t,e){var n=null==t?0:t.length,r=Xn(t,e);return Dr(t,de(e,(function(t){return so(t,n)?+t:t})).sort(vi)),r}));function Wo(t){return null==t?t:fn.call(t)}var qo=Br((function(t){return Jr(ar(t,1,ja,!0))})),$o=Br((function(t){var e=zo(t);return ja(e)&&(e=void 0),Jr(ar(t,1,ja,!0),Ki(e,2))})),Go=Br((function(t){var e=zo(t);return e="function"==typeof e?e:void 0,Jr(ar(t,1,ja,!0),void 0,e)}));function Yo(t){if(!t||!t.length)return[];var e=0;return t=ce(t,(function(t){if(ja(t))return e=sn(t.length,e),!0})),Le(e,(function(e){return de(t,Ae(e))}))}function Xo(t,e){if(!t||!t.length)return[];var n=Yo(t);return null==e?n:de(n,(function(t){return oe(e,void 0,t)}))}var Zo=Br((function(t,e){return ja(t)?tr(t,e):[]})),Ko=Br((function(t){return ii(ce(t,ja))})),Qo=Br((function(t){var e=zo(t);return ja(e)&&(e=void 0),ii(ce(t,ja),Ki(e,2))})),Jo=Br((function(t){var e=zo(t);return e="function"==typeof e?e:void 0,ii(ce(t,ja),void 0,e)})),ta=Br(Yo);var ea=Br((function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Xo(t,n)}));function na(t){var e=Ln(t);return e.__chain__=!0,e}function ra(t,e){return e(t)}var ia=qi((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Xn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Fn&&so(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ra,args:[i],thisArg:void 0}),new On(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var oa=_i((function(t,e,n){St.call(t,n)?++t[n]:Yn(t,n,1)}));var aa=Pi(Fo),sa=Pi(Io);function ua(t,e){return(Ia(t)?se:er)(t,Ki(e,3))}function la(t,e){return(Ia(t)?ue:nr)(t,Ki(e,3))}var ca=_i((function(t,e,n){St.call(t,n)?t[n].push(e):Yn(t,n,[e])}));var ha=Br((function(t,e,n){var i=-1,o="function"==typeof e,a=Da(t)?r(t.length):[];return er(t,(function(t){a[++i]=o?oe(e,t,n):br(t,e,n)})),a})),fa=_i((function(t,e,n){Yn(t,n,e)}));function da(t,e){return(Ia(t)?de:Tr)(t,Ki(e,3))}var pa=_i((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var va=Br((function(t,e){if(null==t)return[];var n=e.length;return n>1&&uo(t,e[0],e[1])?e=[]:n>2&&uo(e[0],e[1],e[2])&&(e=[e[0]]),Fr(t,ar(e,1),[])})),ga=Ke||function(){return Gt.Date.now()};function ya(t,e,n){return e=n?void 0:e,zi(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ma(t,e){var n;if("function"!=typeof e)throw new yt(o);return t=is(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var ba=Br((function(t,e,n){var r=1;if(n.length){var i=Ve(n,Zi(ba));r|=32}return zi(t,r,e,n,i)})),_a=Br((function(t,e,n){var r=3;if(n.length){var i=Ve(n,Zi(_a));r|=32}return zi(e,r,t,n,i)}));function Ca(t,e,n){var r,i,a,s,u,l,c=0,h=!1,f=!1,d=!0;if("function"!=typeof t)throw new yt(o);function p(e){var n=r,o=i;return r=i=void 0,c=e,s=t.apply(o,n)}function v(t){return c=t,u=Co(y,e),h?p(t):s}function g(t){var n=t-l;return void 0===l||n>=e||n<0||f&&t-c>=a}function y(){var t=ga();if(g(t))return m(t);u=Co(y,function(t){var n=e-(t-l);return f?un(n,a-(t-c)):n}(t))}function m(t){return u=void 0,d&&r?p(t):(r=i=void 0,s)}function b(){var t=ga(),n=g(t);if(r=arguments,i=this,l=t,n){if(void 0===u)return v(l);if(f)return hi(u),u=Co(y,e),p(l)}return void 0===u&&(u=Co(y,e)),s}return e=as(e)||0,Wa(n)&&(h=!!n.leading,a=(f="maxWait"in n)?sn(as(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==u&&hi(u),c=0,r=l=i=u=void 0},b.flush=function(){return void 0===u?s:m(ga())},b}var wa=Br((function(t,e){return Jn(t,1,e)})),Sa=Br((function(t,e,n){return Jn(t,as(e)||0,n)}));function xa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new yt(o);var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(xa.Cache||Dn),n}function Aa(t){if("function"!=typeof t)throw new yt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}xa.Cache=Dn;var ka=li((function(t,e){var n=(e=1==e.length&&Ia(e[0])?de(e[0],Re(Ki())):de(ar(e,1),Re(Ki()))).length;return Br((function(r){for(var i=-1,o=un(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return oe(t,this,r)}))})),Pa=Br((function(t,e){return zi(t,32,void 0,e,Ve(e,Zi(Pa)))})),Ta=Br((function(t,e){return zi(t,64,void 0,e,Ve(e,Zi(Ta)))})),La=qi((function(t,e){return zi(t,256,void 0,void 0,void 0,e)}));function Ea(t,e){return t===e||t!=t&&e!=e}var Ra=Mi(vr),Oa=Mi((function(t,e){return t>=e})),Fa=_r(function(){return arguments}())?_r:function(t){return qa(t)&&St.call(t,"callee")&&!$t.call(t,"callee")},Ia=r.isArray,Ma=Jt?Re(Jt):function(t){return qa(t)&&pr(t)==S};function Da(t){return null!=t&&Va(t.length)&&!Ha(t)}function ja(t){return qa(t)&&Da(t)}var Na=nn||au,Ba=te?Re(te):function(t){return qa(t)&&pr(t)==h};function za(t){if(!qa(t))return!1;var e=pr(t);return e==f||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ya(t)}function Ha(t){if(!Wa(t))return!1;var e=pr(t);return e==d||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ua(t){return"number"==typeof t&&t==is(t)}function Va(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Wa(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function qa(t){return null!=t&&"object"==typeof t}var $a=ee?Re(ee):function(t){return qa(t)&&ro(t)==v};function Ga(t){return"number"==typeof t||qa(t)&&pr(t)==g}function Ya(t){if(!qa(t)||pr(t)!=y)return!1;var e=Ut(t);if(null===e)return!0;var n=St.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&wt.call(n)==Pt}var Xa=ne?Re(ne):function(t){return qa(t)&&pr(t)==m};var Za=re?Re(re):function(t){return qa(t)&&ro(t)==b};function Ka(t){return"string"==typeof t||!Ia(t)&&qa(t)&&pr(t)==_}function Qa(t){return"symbol"==typeof t||qa(t)&&pr(t)==C}var Ja=ie?Re(ie):function(t){return qa(t)&&Va(t.length)&&!!zt[pr(t)]};var ts=Mi(Pr),es=Mi((function(t,e){return t<=e}));function ns(t){if(!t)return[];if(Da(t))return Ka(t)?Ge(t):mi(t);if(Kt&&t[Kt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Kt]());var e=ro(t);return(e==v?He:e==b?We:Es)(t)}function rs(t){return t?(t=as(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function is(t){var e=rs(t),n=e%1;return e==e?n?e-n:e:0}function os(t){return t?Zn(is(t),0,4294967295):0}function as(t){if("number"==typeof t)return t;if(Qa(t))return NaN;if(Wa(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Wa(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ee(t);var n=ot.test(t);return n||st.test(t)?Wt(t.slice(2),n?2:8):it.test(t)?NaN:+t}function ss(t){return bi(t,ws(t))}function us(t){return null==t?"":Qr(t)}var ls=Ci((function(t,e){if(fo(e)||Da(e))bi(e,Cs(e),t);else for(var n in e)St.call(e,n)&&Wn(t,n,e[n])})),cs=Ci((function(t,e){bi(e,ws(e),t)})),hs=Ci((function(t,e,n,r){bi(e,ws(e),t,r)})),fs=Ci((function(t,e,n,r){bi(e,Cs(e),t,r)})),ds=qi(Xn);var ps=Br((function(t,e){t=pt(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&uo(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=ws(o),s=-1,u=a.length;++s<u;){var l=a[s],c=t[l];(void 0===c||Ea(c,_t[l])&&!St.call(t,l))&&(t[l]=o[l])}return t})),vs=Br((function(t){return t.push(void 0,Ui),oe(xs,void 0,t)}));function gs(t,e,n){var r=null==t?void 0:fr(t,e);return void 0===r?n:r}function ys(t,e){return null!=t&&io(t,e,yr)}var ms=Ei((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=kt.call(e)),t[e]=n}),Ws(Gs)),bs=Ei((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=kt.call(e)),St.call(t,e)?t[e].push(n):t[e]=[n]}),Ki),_s=Br(br);function Cs(t){return Da(t)?Bn(t):Ar(t)}function ws(t){return Da(t)?Bn(t,!0):kr(t)}var Ss=Ci((function(t,e,n){Rr(t,e,n)})),xs=Ci((function(t,e,n,r){Rr(t,e,n,r)})),As=qi((function(t,e){var n={};if(null==t)return n;var r=!1;e=de(e,(function(e){return e=ui(e,t),r||(r=e.length>1),e})),bi(t,Gi(t),n),r&&(n=Kn(n,7,Vi));for(var i=e.length;i--;)ti(n,e[i]);return n}));var ks=qi((function(t,e){return null==t?{}:function(t,e){return Ir(t,e,(function(e,n){return ys(t,n)}))}(t,e)}));function Ps(t,e){if(null==t)return{};var n=de(Gi(t),(function(t){return[t]}));return e=Ki(e),Ir(t,n,(function(t,n){return e(t,n[0])}))}var Ts=Bi(Cs),Ls=Bi(ws);function Es(t){return null==t?[]:Oe(t,Cs(t))}var Rs=Ai((function(t,e,n){return e=e.toLowerCase(),t+(n?Os(e):e)}));function Os(t){return zs(us(t).toLowerCase())}function Fs(t){return(t=us(t))&&t.replace(lt,je).replace(Ft,"")}var Is=Ai((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ms=Ai((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ds=xi("toLowerCase");var js=Ai((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Ns=Ai((function(t,e,n){return t+(n?" ":"")+zs(e)}));var Bs=Ai((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),zs=xi("toUpperCase");function Hs(t,e,n){return t=us(t),void 0===(e=n?void 0:e)?function(t){return jt.test(t)}(t)?function(t){return t.match(Mt)||[]}(t):function(t){return t.match(J)||[]}(t):t.match(e)||[]}var Us=Br((function(t,e){try{return oe(t,void 0,e)}catch(t){return za(t)?t:new X(t)}})),Vs=qi((function(t,e){return se(e,(function(e){e=Po(e),Yn(t,e,ba(t[e],t))})),t}));function Ws(t){return function(){return t}}var qs=Ti(),$s=Ti(!0);function Gs(t){return t}function Ys(t){return xr("function"==typeof t?t:Kn(t,1))}var Xs=Br((function(t,e){return function(n){return br(n,t,e)}})),Zs=Br((function(t,e){return function(n){return br(t,n,e)}}));function Ks(t,e,n){var r=Cs(e),i=hr(e,r);null!=n||Wa(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=hr(e,Cs(e)));var o=!(Wa(n)&&"chain"in n&&!n.chain),a=Ha(t);return se(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=mi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,pe([this.value()],arguments))})})),t}function Qs(){}var Js=Oi(de),tu=Oi(le),eu=Oi(ye);function nu(t){return lo(t)?Ae(Po(t)):function(t){return function(e){return fr(e,t)}}(t)}var ru=Ii(),iu=Ii(!0);function ou(){return[]}function au(){return!1}var su=Ri((function(t,e){return t+e}),0),uu=ji("ceil"),lu=Ri((function(t,e){return t/e}),1),cu=ji("floor");var hu,fu=Ri((function(t,e){return t*e}),1),du=ji("round"),pu=Ri((function(t,e){return t-e}),0);return Ln.after=function(t,e){if("function"!=typeof e)throw new yt(o);return t=is(t),function(){if(--t<1)return e.apply(this,arguments)}},Ln.ary=ya,Ln.assign=ls,Ln.assignIn=cs,Ln.assignInWith=hs,Ln.assignWith=fs,Ln.at=ds,Ln.before=ma,Ln.bind=ba,Ln.bindAll=Vs,Ln.bindKey=_a,Ln.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ia(t)?t:[t]},Ln.chain=na,Ln.chunk=function(t,e,n){e=(n?uo(t,e,n):void 0===e)?1:sn(is(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,s=r(Je(i/e));o<i;)s[a++]=$r(t,o,o+=e);return s},Ln.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Ln.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return pe(Ia(n)?mi(n):[n],ar(e,1))},Ln.cond=function(t){var e=null==t?0:t.length,n=Ki();return t=e?de(t,(function(t){if("function"!=typeof t[1])throw new yt(o);return[n(t[0]),t[1]]})):[],Br((function(n){for(var r=-1;++r<e;){var i=t[r];if(oe(i[0],this,n))return oe(i[1],this,n)}}))},Ln.conforms=function(t){return function(t){var e=Cs(t);return function(n){return Qn(n,t,e)}}(Kn(t,1))},Ln.constant=Ws,Ln.countBy=oa,Ln.create=function(t,e){var n=En(t);return null==e?n:Gn(n,e)},Ln.curry=function t(e,n,r){var i=zi(e,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=t.placeholder,i},Ln.curryRight=function t(e,n,r){var i=zi(e,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=t.placeholder,i},Ln.debounce=Ca,Ln.defaults=ps,Ln.defaultsDeep=vs,Ln.defer=wa,Ln.delay=Sa,Ln.difference=Eo,Ln.differenceBy=Ro,Ln.differenceWith=Oo,Ln.drop=function(t,e,n){var r=null==t?0:t.length;return r?$r(t,(e=n||void 0===e?1:is(e))<0?0:e,r):[]},Ln.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?$r(t,0,(e=r-(e=n||void 0===e?1:is(e)))<0?0:e):[]},Ln.dropRightWhile=function(t,e){return t&&t.length?ni(t,Ki(e,3),!0,!0):[]},Ln.dropWhile=function(t,e){return t&&t.length?ni(t,Ki(e,3),!0):[]},Ln.fill=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&uo(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=is(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:is(r))<0&&(r+=i),r=n>r?0:os(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Ln.filter=function(t,e){return(Ia(t)?ce:or)(t,Ki(e,3))},Ln.flatMap=function(t,e){return ar(da(t,e),1)},Ln.flatMapDeep=function(t,e){return ar(da(t,e),1/0)},Ln.flatMapDepth=function(t,e,n){return n=void 0===n?1:is(n),ar(da(t,e),n)},Ln.flatten=Mo,Ln.flattenDeep=function(t){return(null==t?0:t.length)?ar(t,1/0):[]},Ln.flattenDepth=function(t,e){return(null==t?0:t.length)?ar(t,e=void 0===e?1:is(e)):[]},Ln.flip=function(t){return zi(t,512)},Ln.flow=qs,Ln.flowRight=$s,Ln.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Ln.functions=function(t){return null==t?[]:hr(t,Cs(t))},Ln.functionsIn=function(t){return null==t?[]:hr(t,ws(t))},Ln.groupBy=ca,Ln.initial=function(t){return(null==t?0:t.length)?$r(t,0,-1):[]},Ln.intersection=jo,Ln.intersectionBy=No,Ln.intersectionWith=Bo,Ln.invert=ms,Ln.invertBy=bs,Ln.invokeMap=ha,Ln.iteratee=Ys,Ln.keyBy=fa,Ln.keys=Cs,Ln.keysIn=ws,Ln.map=da,Ln.mapKeys=function(t,e){var n={};return e=Ki(e,3),lr(t,(function(t,r,i){Yn(n,e(t,r,i),t)})),n},Ln.mapValues=function(t,e){var n={};return e=Ki(e,3),lr(t,(function(t,r,i){Yn(n,r,e(t,r,i))})),n},Ln.matches=function(t){return Lr(Kn(t,1))},Ln.matchesProperty=function(t,e){return Er(t,Kn(e,1))},Ln.memoize=xa,Ln.merge=Ss,Ln.mergeWith=xs,Ln.method=Xs,Ln.methodOf=Zs,Ln.mixin=Ks,Ln.negate=Aa,Ln.nthArg=function(t){return t=is(t),Br((function(e){return Or(e,t)}))},Ln.omit=As,Ln.omitBy=function(t,e){return Ps(t,Aa(Ki(e)))},Ln.once=function(t){return ma(2,t)},Ln.orderBy=function(t,e,n,r){return null==t?[]:(Ia(e)||(e=null==e?[]:[e]),Ia(n=r?void 0:n)||(n=null==n?[]:[n]),Fr(t,e,n))},Ln.over=Js,Ln.overArgs=ka,Ln.overEvery=tu,Ln.overSome=eu,Ln.partial=Pa,Ln.partialRight=Ta,Ln.partition=pa,Ln.pick=ks,Ln.pickBy=Ps,Ln.property=nu,Ln.propertyOf=function(t){return function(e){return null==t?void 0:fr(t,e)}},Ln.pull=Ho,Ln.pullAll=Uo,Ln.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Mr(t,e,Ki(n,2)):t},Ln.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Mr(t,e,void 0,n):t},Ln.pullAt=Vo,Ln.range=ru,Ln.rangeRight=iu,Ln.rearg=La,Ln.reject=function(t,e){return(Ia(t)?ce:or)(t,Aa(Ki(e,3)))},Ln.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Ki(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Dr(t,i),n},Ln.rest=function(t,e){if("function"!=typeof t)throw new yt(o);return Br(t,e=void 0===e?e:is(e))},Ln.reverse=Wo,Ln.sampleSize=function(t,e,n){return e=(n?uo(t,e,n):void 0===e)?1:is(e),(Ia(t)?Hn:Hr)(t,e)},Ln.set=function(t,e,n){return null==t?t:Ur(t,e,n)},Ln.setWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:Ur(t,e,n,r)},Ln.shuffle=function(t){return(Ia(t)?Un:qr)(t)},Ln.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&uo(t,e,n)?(e=0,n=r):(e=null==e?0:is(e),n=void 0===n?r:is(n)),$r(t,e,n)):[]},Ln.sortBy=va,Ln.sortedUniq=function(t){return t&&t.length?Zr(t):[]},Ln.sortedUniqBy=function(t,e){return t&&t.length?Zr(t,Ki(e,2)):[]},Ln.split=function(t,e,n){return n&&"number"!=typeof n&&uo(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=us(t))&&("string"==typeof e||null!=e&&!Xa(e))&&!(e=Qr(e))&&ze(t)?ci(Ge(t),0,n):t.split(e,n):[]},Ln.spread=function(t,e){if("function"!=typeof t)throw new yt(o);return e=null==e?0:sn(is(e),0),Br((function(n){var r=n[e],i=ci(n,0,e);return r&&pe(i,r),oe(t,this,i)}))},Ln.tail=function(t){var e=null==t?0:t.length;return e?$r(t,1,e):[]},Ln.take=function(t,e,n){return t&&t.length?$r(t,0,(e=n||void 0===e?1:is(e))<0?0:e):[]},Ln.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?$r(t,(e=r-(e=n||void 0===e?1:is(e)))<0?0:e,r):[]},Ln.takeRightWhile=function(t,e){return t&&t.length?ni(t,Ki(e,3),!1,!0):[]},Ln.takeWhile=function(t,e){return t&&t.length?ni(t,Ki(e,3)):[]},Ln.tap=function(t,e){return e(t),t},Ln.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new yt(o);return Wa(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ca(t,e,{leading:r,maxWait:e,trailing:i})},Ln.thru=ra,Ln.toArray=ns,Ln.toPairs=Ts,Ln.toPairsIn=Ls,Ln.toPath=function(t){return Ia(t)?de(t,Po):Qa(t)?[t]:mi(ko(us(t)))},Ln.toPlainObject=ss,Ln.transform=function(t,e,n){var r=Ia(t),i=r||Na(t)||Ja(t);if(e=Ki(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Wa(t)&&Ha(o)?En(Ut(t)):{}}return(i?se:lr)(t,(function(t,r,i){return e(n,t,r,i)})),n},Ln.unary=function(t){return ya(t,1)},Ln.union=qo,Ln.unionBy=$o,Ln.unionWith=Go,Ln.uniq=function(t){return t&&t.length?Jr(t):[]},Ln.uniqBy=function(t,e){return t&&t.length?Jr(t,Ki(e,2)):[]},Ln.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Jr(t,void 0,e):[]},Ln.unset=function(t,e){return null==t||ti(t,e)},Ln.unzip=Yo,Ln.unzipWith=Xo,Ln.update=function(t,e,n){return null==t?t:ei(t,e,si(n))},Ln.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:ei(t,e,si(n),r)},Ln.values=Es,Ln.valuesIn=function(t){return null==t?[]:Oe(t,ws(t))},Ln.without=Zo,Ln.words=Hs,Ln.wrap=function(t,e){return Pa(si(e),t)},Ln.xor=Ko,Ln.xorBy=Qo,Ln.xorWith=Jo,Ln.zip=ta,Ln.zipObject=function(t,e){return oi(t||[],e||[],Wn)},Ln.zipObjectDeep=function(t,e){return oi(t||[],e||[],Ur)},Ln.zipWith=ea,Ln.entries=Ts,Ln.entriesIn=Ls,Ln.extend=cs,Ln.extendWith=hs,Ks(Ln,Ln),Ln.add=su,Ln.attempt=Us,Ln.camelCase=Rs,Ln.capitalize=Os,Ln.ceil=uu,Ln.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==e&&(e=(e=as(e))==e?e:0),Zn(as(t),e,n)},Ln.clone=function(t){return Kn(t,4)},Ln.cloneDeep=function(t){return Kn(t,5)},Ln.cloneDeepWith=function(t,e){return Kn(t,5,e="function"==typeof e?e:void 0)},Ln.cloneWith=function(t,e){return Kn(t,4,e="function"==typeof e?e:void 0)},Ln.conformsTo=function(t,e){return null==e||Qn(t,e,Cs(e))},Ln.deburr=Fs,Ln.defaultTo=function(t,e){return null==t||t!=t?e:t},Ln.divide=lu,Ln.endsWith=function(t,e,n){t=us(t),e=Qr(e);var r=t.length,i=n=void 0===n?r:Zn(is(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},Ln.eq=Ea,Ln.escape=function(t){return(t=us(t))&&B.test(t)?t.replace(j,Ne):t},Ln.escapeRegExp=function(t){return(t=us(t))&&G.test(t)?t.replace($,"\\$&"):t},Ln.every=function(t,e,n){var r=Ia(t)?le:rr;return n&&uo(t,e,n)&&(e=void 0),r(t,Ki(e,3))},Ln.find=aa,Ln.findIndex=Fo,Ln.findKey=function(t,e){return be(t,Ki(e,3),lr)},Ln.findLast=sa,Ln.findLastIndex=Io,Ln.findLastKey=function(t,e){return be(t,Ki(e,3),cr)},Ln.floor=cu,Ln.forEach=ua,Ln.forEachRight=la,Ln.forIn=function(t,e){return null==t?t:sr(t,Ki(e,3),ws)},Ln.forInRight=function(t,e){return null==t?t:ur(t,Ki(e,3),ws)},Ln.forOwn=function(t,e){return t&&lr(t,Ki(e,3))},Ln.forOwnRight=function(t,e){return t&&cr(t,Ki(e,3))},Ln.get=gs,Ln.gt=Ra,Ln.gte=Oa,Ln.has=function(t,e){return null!=t&&io(t,e,gr)},Ln.hasIn=ys,Ln.head=Do,Ln.identity=Gs,Ln.includes=function(t,e,n,r){t=Da(t)?t:Es(t),n=n&&!r?is(n):0;var i=t.length;return n<0&&(n=sn(i+n,0)),Ka(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Ce(t,e,n)>-1},Ln.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),Ce(t,e,i)},Ln.inRange=function(t,e,n){return e=rs(e),void 0===n?(n=e,e=0):n=rs(n),function(t,e,n){return t>=un(e,n)&&t<sn(e,n)}(t=as(t),e,n)},Ln.invoke=_s,Ln.isArguments=Fa,Ln.isArray=Ia,Ln.isArrayBuffer=Ma,Ln.isArrayLike=Da,Ln.isArrayLikeObject=ja,Ln.isBoolean=function(t){return!0===t||!1===t||qa(t)&&pr(t)==c},Ln.isBuffer=Na,Ln.isDate=Ba,Ln.isElement=function(t){return qa(t)&&1===t.nodeType&&!Ya(t)},Ln.isEmpty=function(t){if(null==t)return!0;if(Da(t)&&(Ia(t)||"string"==typeof t||"function"==typeof t.splice||Na(t)||Ja(t)||Fa(t)))return!t.length;var e=ro(t);if(e==v||e==b)return!t.size;if(fo(t))return!Ar(t).length;for(var n in t)if(St.call(t,n))return!1;return!0},Ln.isEqual=function(t,e){return Cr(t,e)},Ln.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?Cr(t,e,void 0,n):!!r},Ln.isError=za,Ln.isFinite=function(t){return"number"==typeof t&&rn(t)},Ln.isFunction=Ha,Ln.isInteger=Ua,Ln.isLength=Va,Ln.isMap=$a,Ln.isMatch=function(t,e){return t===e||wr(t,e,Ji(e))},Ln.isMatchWith=function(t,e,n){return n="function"==typeof n?n:void 0,wr(t,e,Ji(e),n)},Ln.isNaN=function(t){return Ga(t)&&t!=+t},Ln.isNative=function(t){if(ho(t))throw new X("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Sr(t)},Ln.isNil=function(t){return null==t},Ln.isNull=function(t){return null===t},Ln.isNumber=Ga,Ln.isObject=Wa,Ln.isObjectLike=qa,Ln.isPlainObject=Ya,Ln.isRegExp=Xa,Ln.isSafeInteger=function(t){return Ua(t)&&t>=-9007199254740991&&t<=9007199254740991},Ln.isSet=Za,Ln.isString=Ka,Ln.isSymbol=Qa,Ln.isTypedArray=Ja,Ln.isUndefined=function(t){return void 0===t},Ln.isWeakMap=function(t){return qa(t)&&ro(t)==w},Ln.isWeakSet=function(t){return qa(t)&&"[object WeakSet]"==pr(t)},Ln.join=function(t,e){return null==t?"":on.call(t,e)},Ln.kebabCase=Is,Ln.last=zo,Ln.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=is(n))<0?sn(r+i,0):un(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):_e(t,Se,i,!0)},Ln.lowerCase=Ms,Ln.lowerFirst=Ds,Ln.lt=ts,Ln.lte=es,Ln.max=function(t){return t&&t.length?ir(t,Gs,vr):void 0},Ln.maxBy=function(t,e){return t&&t.length?ir(t,Ki(e,2),vr):void 0},Ln.mean=function(t){return xe(t,Gs)},Ln.meanBy=function(t,e){return xe(t,Ki(e,2))},Ln.min=function(t){return t&&t.length?ir(t,Gs,Pr):void 0},Ln.minBy=function(t,e){return t&&t.length?ir(t,Ki(e,2),Pr):void 0},Ln.stubArray=ou,Ln.stubFalse=au,Ln.stubObject=function(){return{}},Ln.stubString=function(){return""},Ln.stubTrue=function(){return!0},Ln.multiply=fu,Ln.nth=function(t,e){return t&&t.length?Or(t,is(e)):void 0},Ln.noConflict=function(){return Gt._===this&&(Gt._=Tt),this},Ln.noop=Qs,Ln.now=ga,Ln.pad=function(t,e,n){t=us(t);var r=(e=is(e))?$e(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Fi(tn(i),n)+t+Fi(Je(i),n)},Ln.padEnd=function(t,e,n){t=us(t);var r=(e=is(e))?$e(t):0;return e&&r<e?t+Fi(e-r,n):t},Ln.padStart=function(t,e,n){t=us(t);var r=(e=is(e))?$e(t):0;return e&&r<e?Fi(e-r,n)+t:t},Ln.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),cn(us(t).replace(Y,""),e||0)},Ln.random=function(t,e,n){if(n&&"boolean"!=typeof n&&uo(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=rs(t),void 0===e?(e=t,t=0):e=rs(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=hn();return un(t+i*(e-t+Vt("1e-"+((i+"").length-1))),e)}return jr(t,e)},Ln.reduce=function(t,e,n){var r=Ia(t)?ve:Pe,i=arguments.length<3;return r(t,Ki(e,4),n,i,er)},Ln.reduceRight=function(t,e,n){var r=Ia(t)?ge:Pe,i=arguments.length<3;return r(t,Ki(e,4),n,i,nr)},Ln.repeat=function(t,e,n){return e=(n?uo(t,e,n):void 0===e)?1:is(e),Nr(us(t),e)},Ln.replace=function(){var t=arguments,e=us(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Ln.result=function(t,e,n){var r=-1,i=(e=ui(e,t)).length;for(i||(i=1,t=void 0);++r<i;){var o=null==t?void 0:t[Po(e[r])];void 0===o&&(r=i,o=n),t=Ha(o)?o.call(t):o}return t},Ln.round=du,Ln.runInContext=t,Ln.sample=function(t){return(Ia(t)?zn:zr)(t)},Ln.size=function(t){if(null==t)return 0;if(Da(t))return Ka(t)?$e(t):t.length;var e=ro(t);return e==v||e==b?t.size:Ar(t).length},Ln.snakeCase=js,Ln.some=function(t,e,n){var r=Ia(t)?ye:Gr;return n&&uo(t,e,n)&&(e=void 0),r(t,Ki(e,3))},Ln.sortedIndex=function(t,e){return Yr(t,e)},Ln.sortedIndexBy=function(t,e,n){return Xr(t,e,Ki(n,2))},Ln.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Yr(t,e);if(r<n&&Ea(t[r],e))return r}return-1},Ln.sortedLastIndex=function(t,e){return Yr(t,e,!0)},Ln.sortedLastIndexBy=function(t,e,n){return Xr(t,e,Ki(n,2),!0)},Ln.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=Yr(t,e,!0)-1;if(Ea(t[n],e))return n}return-1},Ln.startCase=Ns,Ln.startsWith=function(t,e,n){return t=us(t),n=null==n?0:Zn(is(n),0,t.length),e=Qr(e),t.slice(n,n+e.length)==e},Ln.subtract=pu,Ln.sum=function(t){return t&&t.length?Te(t,Gs):0},Ln.sumBy=function(t,e){return t&&t.length?Te(t,Ki(e,2)):0},Ln.template=function(t,e,n){var r=Ln.templateSettings;n&&uo(t,e,n)&&(e=void 0),t=us(t),e=hs({},e,r,Hi);var i,o,a=hs({},e.imports,r.imports,Hi),s=Cs(a),u=Oe(a,s),l=0,c=e.interpolate||ct,h="__p += '",f=vt((e.escape||ct).source+"|"+c.source+"|"+(c===U?nt:ct).source+"|"+(e.evaluate||ct).source+"|$","g"),d="//# sourceURL="+(St.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bt+"]")+"\n";t.replace(f,(function(e,n,r,a,s,u){return r||(r=a),h+=t.slice(l,u).replace(ht,Be),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e})),h+="';\n";var p=St.call(e,"variable")&&e.variable;if(p){if(tt.test(p))throw new X("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(F,""):h).replace(I,"$1").replace(M,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=Us((function(){return ft(s,d+"return "+h).apply(void 0,u)}));if(v.source=h,za(v))throw v;return v},Ln.times=function(t,e){if((t=is(t))<1||t>9007199254740991)return[];var n=4294967295,r=un(t,4294967295);t-=4294967295;for(var i=Le(r,e=Ki(e));++n<t;)e(n);return i},Ln.toFinite=rs,Ln.toInteger=is,Ln.toLength=os,Ln.toLower=function(t){return us(t).toLowerCase()},Ln.toNumber=as,Ln.toSafeInteger=function(t){return t?Zn(is(t),-9007199254740991,9007199254740991):0===t?t:0},Ln.toString=us,Ln.toUpper=function(t){return us(t).toUpperCase()},Ln.trim=function(t,e,n){if((t=us(t))&&(n||void 0===e))return Ee(t);if(!t||!(e=Qr(e)))return t;var r=Ge(t),i=Ge(e);return ci(r,Ie(r,i),Me(r,i)+1).join("")},Ln.trimEnd=function(t,e,n){if((t=us(t))&&(n||void 0===e))return t.slice(0,Ye(t)+1);if(!t||!(e=Qr(e)))return t;var r=Ge(t);return ci(r,0,Me(r,Ge(e))+1).join("")},Ln.trimStart=function(t,e,n){if((t=us(t))&&(n||void 0===e))return t.replace(Y,"");if(!t||!(e=Qr(e)))return t;var r=Ge(t);return ci(r,Ie(r,Ge(e))).join("")},Ln.truncate=function(t,e){var n=30,r="...";if(Wa(e)){var i="separator"in e?e.separator:i;n="length"in e?is(e.length):n,r="omission"in e?Qr(e.omission):r}var o=(t=us(t)).length;if(ze(t)){var a=Ge(t);o=a.length}if(n>=o)return t;var s=n-$e(r);if(s<1)return r;var u=a?ci(a,0,s).join(""):t.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),Xa(i)){if(t.slice(s).search(i)){var l,c=u;for(i.global||(i=vt(i.source,us(rt.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var h=l.index;u=u.slice(0,void 0===h?s:h)}}else if(t.indexOf(Qr(i),s)!=s){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+r},Ln.unescape=function(t){return(t=us(t))&&N.test(t)?t.replace(D,Xe):t},Ln.uniqueId=function(t){var e=++xt;return us(t)+e},Ln.upperCase=Bs,Ln.upperFirst=zs,Ln.each=ua,Ln.eachRight=la,Ln.first=Do,Ks(Ln,(hu={},lr(Ln,(function(t,e){St.call(Ln.prototype,e)||(hu[e]=t)})),hu),{chain:!1}),Ln.VERSION="4.17.21",se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ln[t].placeholder=Ln})),se(["drop","take"],(function(t,e){Fn.prototype[t]=function(n){n=void 0===n?1:sn(is(n),0);var r=this.__filtered__&&!e?new Fn(this):this.clone();return r.__filtered__?r.__takeCount__=un(n,r.__takeCount__):r.__views__.push({size:un(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Fn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),se(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Fn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ki(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Fn.prototype[t]=function(){return this[n](1).value()[0]}})),se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Fn.prototype[t]=function(){return this.__filtered__?new Fn(this):this[n](1)}})),Fn.prototype.compact=function(){return this.filter(Gs)},Fn.prototype.find=function(t){return this.filter(t).head()},Fn.prototype.findLast=function(t){return this.reverse().find(t)},Fn.prototype.invokeMap=Br((function(t,e){return"function"==typeof t?new Fn(this):this.map((function(n){return br(n,t,e)}))})),Fn.prototype.reject=function(t){return this.filter(Aa(Ki(t)))},Fn.prototype.slice=function(t,e){t=is(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Fn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=is(e))<0?n.dropRight(-e):n.take(e-t)),n)},Fn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Fn.prototype.toArray=function(){return this.take(4294967295)},lr(Fn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=Ln[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(Ln.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof Fn,u=a[0],l=s||Ia(e),c=function(t){var e=i.apply(Ln,pe([t],a));return r&&h?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var h=this.__chain__,f=!!this.__actions__.length,d=o&&!h,p=s&&!f;if(!o&&l){e=p?e:new Fn(this);var v=t.apply(e,a);return v.__actions__.push({func:ra,args:[c],thisArg:void 0}),new On(v,h)}return d&&p?t.apply(this,a):(v=this.thru(c),d?r?v.value()[0]:v.value():v)})})),se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=mt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Ln.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ia(i)?i:[],t)}return this[n]((function(n){return e.apply(Ia(n)?n:[],t)}))}})),lr(Fn.prototype,(function(t,e){var n=Ln[e];if(n){var r=n.name+"";St.call(_n,r)||(_n[r]=[]),_n[r].push({name:e,func:n})}})),_n[Li(void 0,2).name]=[{name:"wrapper",func:void 0}],Fn.prototype.clone=function(){var t=new Fn(this.__wrapped__);return t.__actions__=mi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=mi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=mi(this.__views__),t},Fn.prototype.reverse=function(){if(this.__filtered__){var t=new Fn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Fn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ia(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=un(e,t+a);break;case"takeRight":t=sn(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,h=c.length,f=0,d=un(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return ri(t,this.__actions__);var p=[];t:for(;u--&&f<d;){for(var v=-1,g=t[l+=e];++v<h;){var y=c[v],m=y.iteratee,b=y.type,_=m(g);if(2==b)g=_;else if(!_){if(1==b)continue t;break t}}p[f++]=g}return p},Ln.prototype.at=ia,Ln.prototype.chain=function(){return na(this)},Ln.prototype.commit=function(){return new On(this.value(),this.__chain__)},Ln.prototype.next=function(){void 0===this.__values__&&(this.__values__=ns(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Ln.prototype.plant=function(t){for(var e,n=this;n instanceof Rn;){var r=Lo(n);r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},Ln.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fn){var e=t;return this.__actions__.length&&(e=new Fn(this)),(e=e.reverse()).__actions__.push({func:ra,args:[Wo],thisArg:void 0}),new On(e,this.__chain__)}return this.thru(Wo)},Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},Ln.prototype.first=Ln.prototype.head,Kt&&(Ln.prototype[Kt]=function(){return this}),Ln}();Gt._=Ze,void 0===(i=function(){return Ze}.call(e,n,e,r))||(r.exports=i)}).call(this)}).call(this,n(10),n(39)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return fa})),n.d(e,"version",(function(){return ha})),n.d(e,"Area",(function(){return Mt})),n.d(e,"Avatar",(function(){return zt})),n.d(e,"Button",(function(){return Zt})),n.d(e,"Calendar",(function(){return Te})),n.d(e,"Cell",(function(){return Ie})),n.d(e,"CellGroup",(function(){return Be})),n.d(e,"Checkbox",(function(){return $e})),n.d(e,"CheckboxGroup",(function(){return Ze})),n.d(e,"Col",(function(){return tn})),n.d(e,"DatetimePicker",(function(){return gn})),n.d(e,"Dialog",(function(){return Sn})),n.d(e,"Empty",(function(){return jn})),n.d(e,"Field",(function(){return Vn})),n.d(e,"Form",(function(){return Gn})),n.d(e,"Icon",(function(){return Ct})),n.d(e,"Image",(function(){return Kn})),n.d(e,"ImagePreview",(function(){return gr})),n.d(e,"Info",(function(){return vt})),n.d(e,"Lazyload",(function(){return ei})),n.d(e,"Loading",(function(){return P})),n.d(e,"Locale",(function(){return ni.a})),n.d(e,"NavBar",(function(){return ai})),n.d(e,"NumberKeyboard",(function(){return gi})),n.d(e,"Overlay",(function(){return q})),n.d(e,"PasswordInput",(function(){return Ci})),n.d(e,"PdfViewer",(function(){return Li})),n.d(e,"Picker",(function(){return Et})),n.d(e,"Popup",(function(){return At})),n.d(e,"Radio",(function(){return Ri})),n.d(e,"RadioGroup",(function(){return Mi})),n.d(e,"Rate",(function(){return Bi})),n.d(e,"Row",(function(){return Vi})),n.d(e,"Signature",(function(){return Xi})),n.d(e,"Slider",(function(){return to})),n.d(e,"Step",(function(){return io})),n.d(e,"Stepper",(function(){return co})),n.d(e,"Steps",(function(){return vo})),n.d(e,"Sticky",(function(){return bo})),n.d(e,"Swipe",(function(){return or})),n.d(e,"SwipeCell",(function(){return So})),n.d(e,"SwipeItem",(function(){return lr})),n.d(e,"Switch",(function(){return To})),n.d(e,"SwitchCell",(function(){return Io})),n.d(e,"Tab",(function(){return No})),n.d(e,"Tabs",(function(){return Zo})),n.d(e,"Tag",(function(){return ea})),n.d(e,"Toast",(function(){return Se})),n.d(e,"Uploader",(function(){return ca}));var r=n(1),i=n(0),o={title:String,loading:Boolean,readonly:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,showPicker:{type:Boolean,default:!1},allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:6},swipeDuration:{type:[Number,String],default:1e3}},a=!1;if(!i.i)try{var s={};Object.defineProperty(s,"passive",{get:function(){a=!0}}),window.addEventListener("test-passive",null,s)}catch(t){}function u(t,e,n,r){void 0===r&&(r=!1),i.i||t.addEventListener(e,n,!!a&&{capture:!1,passive:r})}function l(t,e,n){i.i||t.removeEventListener(e,n)}function c(t){t.stopPropagation()}function h(t,e){("boolean"!=typeof t.cancelable||t.cancelable)&&t.preventDefault(),e&&c(t)}var f=n(7),d=n(2),p=n.n(d),v=n(3),g=n.n(v),y=["ref","key","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],m={nativeOn:"on"};function b(t,e){var n=y.reduce((function(e,n){return t.data[n]&&(e[m[n]||n]=t.data[n]),e}),{});return e&&(n.on=n.on||{},Object(r.a)(n.on,t.data.on)),n}function _(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=t.listeners[e];o&&(Array.isArray(o)?o.forEach((function(t){t.apply(void 0,r)})):o.apply(void 0,r))}var C=Object(i.b)("loading"),w=C[0],S=C[1];function x(t,e){if("spinner"===e.type){for(var n=[],r=0;r<12;r++)n.push(t("i"));return n}return t("svg",{class:S("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}function A(t,e,n){if(n.default){var r,o={fontSize:Object(i.a)(e.textSize),color:null!=(r=e.textColor)?r:e.color};return t("span",{class:S("text"),style:o},[n.default()])}}function k(t,e,n,r){var o=e.color,a=e.size,s=e.type,u={color:o};if(a){var l=Object(i.a)(a);u.width=l,u.height=l}return t("div",p()([{class:S([s,{vertical:e.vertical}])},b(r,!0)]),[t("span",{class:S("spinner",s),style:u},[x(t,e)]),A(t,e,n)])}k.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}};var P=w(k);function T(t){if(!Object(i.e)(t))return t;if(Array.isArray(t))return t.map((function(t){return T(t)}));if("object"==typeof t){var e={};return Object.keys(t).forEach((function(n){e[n]=T(t[n])})),e}return t}function L(t,e,n){return Math.min(Math.max(t,e),n)}function E(t,e,n){var r=t.indexOf(e),i="";return-1===r?t:"-"===e&&0!==r?t.slice(0,r):("."===e&&t.match(/^(\.|-\.)/)&&(i=r?"-0":"0"),i+t.slice(0,r+1)+t.slice(r).replace(n,""))}function R(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!0),t=e?E(t,".",/\./g):t.split(".")[0];var r=e?/[^-0-9.]/g:/[^-0-9]/g;return(t=n?E(t,"-",/-/g):t.replace(/-/,"")).replace(r,"")}function O(t,e){var n=Math.pow(10,10);return Math.round((t+e)*n)/n}var F={data:function(){return{direction:""}},methods:{touchStart:function(t){this.resetTouchStatus(),this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},touchMove:function(t){var e,n,r=t.touches[0];this.deltaX=r.clientX<0?0:r.clientX-this.startX,this.deltaY=r.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||(e=this.offsetX,n=this.offsetY,e>n&&e>10?"horizontal":n>e&&n>10?"vertical":"")},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(t){var e=this.onTouchStart,n=this.onTouchMove,r=this.onTouchEnd;u(t,"touchstart",e),u(t,"touchmove",n),r&&(u(t,"touchend",r),u(t,"touchcancel",r))}}},I=Object(i.b)("picker-column"),M=I[0],D=I[1];function j(t){return Object(i.g)(t)&&t.disabled}var N=M({mixins:[F],props:{columnCollector:Array,valueKey:String,readonly:Boolean,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:T(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.columnCollector&&this.columnCollector.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el)},destroyed:function(){this.columnCollector&&this.columnCollector.splice(this.columnCollector.indexOf(this),1)},watch:{initialOptions:"setOptions",defaultIndex:function(t){this.setIndex(t)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(t){JSON.stringify(t)!==JSON.stringify(this.options)&&(this.options=T(t),this.setIndex(this.defaultIndex))},onTouchStart:function(t){if(!this.readonly){if(this.touchStart(t),this.moving){var e=function(t){var e=window.getComputedStyle(t),n=e.transform||e.webkitTransform,r=n.slice(7,n.length-1).split(", ")[5];return Number(r)}(this.$refs.wrapper);this.offset=Math.min(0,e-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset}},onTouchMove:function(t){if(!this.readonly){this.touchMove(t),"vertical"===this.direction&&(this.moving=!0,h(t,!0)),this.offset=L(this.startOffset+this.deltaY,-this.count*this.itemHeight,this.itemHeight);var e=Date.now();e-this.touchStartTime>300&&(this.touchStartTime=e,this.momentumOffset=this.offset)}},onTouchEnd:function(){var t=this;if(!this.readonly){var e=this.offset-this.momentumOffset,n=Date.now()-this.touchStartTime;if(n<300&&Math.abs(e)>15)this.momentum(e,n);else{var r=this.getIndexByOffset(this.offset);this.duration=200,this.setIndex(r,!0),setTimeout((function(){t.moving=!1}),0)}}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(t){this.moving||this.readonly||(this.transitionEndTrigger=null,this.duration=200,this.setIndex(t,!0))},adjustIndex:function(t){for(var e=t=L(t,0,this.count);e<this.count;e++)if(!j(this.options[e]))return e;for(var n=t-1;n>=0;n--)if(!j(this.options[n]))return n},getOptionText:function(t){return Object(i.g)(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){var n=this,r=-(t=this.adjustIndex(t)||0)*this.itemHeight,i=function(){t!==n.currentIndex&&(n.currentIndex=t,e&&n.$emit("change",t))};this.moving&&r!==this.offset?this.transitionEndTrigger=i:i(),this.offset=r},setValue:function(t){for(var e=this.options,n=0;n<e.length;n++)if(this.getOptionText(e[n])===t)return this.setIndex(n)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(t){return L(Math.round(-t/this.itemHeight),0,this.count-1)},momentum:function(t,e){var n=Math.abs(t/e);t=this.offset+n/.003*(t<0?-1:1);var r=this.getIndexByOffset(t);this.duration=+this.swipeDuration,this.setIndex(r,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var t=this,e=this.$createElement,n={height:this.itemHeight+"px"};return this.options.map((function(r,i){var o,a=t.getOptionText(r),s=j(r),u={style:n,attrs:{role:"button",tabindex:s?-1:0},class:[D("item",{disabled:s,selected:i===t.currentIndex})],on:{click:function(){t.onClickItem(i)}}},l={class:"zt-ellipsis",domProps:(o={},o[t.allowHtml?"innerHTML":"textContent"]=a,o)};return e("li",p()([{},u]),[t.slots("option",r)||e("div",p()([{},l]))])}))}},render:function(){var t=arguments[0],e={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return t("div",{class:[D(),this.className]},[t("ul",{ref:"wrapper",style:e,class:D("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}}),B={zIndex:2e3,lockCount:0,stack:[],find:function(t){return this.stack.filter((function(e){return e.vm===t}))[0]},remove:function(t){var e=this.find(t);if(e){e.vm=null,e.overlay=null;var n=this.stack.indexOf(e);this.stack.splice(n,1)}}},z=Object(i.b)("overlay"),H=z[0],U=z[1];function V(t){h(t,!0)}function W(t,e,n,o){var a=Object(r.a)({zIndex:e.zIndex},e.customStyle);return Object(i.e)(e.duration)&&(a.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"zt-fade"}},[t("div",p()([{directives:[{name:"show",value:e.show}],style:a,class:[U(),e.className],on:{touchmove:e.lockScroll?V:i.j}},b(o,!0)]),[null==n.default?void 0:n.default()])])}W.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}};var q=H(W);function $(t){var e=t.parentNode;e&&e.removeChild(t)}var G={className:"",customStyle:{}};function Y(t){return e=q,n={on:{click:function(){t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}},i=new g.a({el:document.createElement("div"),props:e.props,render:function(t){return t(e,Object(r.a)({props:this.$props},n))}}),document.body.appendChild(i.$el),i;var e,n,i}function X(t){var e=B.find(t);if(e){var n=t.$el,i=e.config,o=e.overlay;n&&n.parentNode&&n.parentNode.insertBefore(o.$el,n),Object(r.a)(o,G,i,{show:!0})}}function Z(t){var e=B.find(t);e&&(e.overlay.show=!1)}function K(t){return t===window}var Q=/scroll|auto/i;function J(t,e){void 0===e&&(e=window);for(var n=t;n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==e;){var r=window.getComputedStyle(n).overflowY;if(Q.test(r))return n;n=n.parentNode}return e}function tt(t){var e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function et(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function nt(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function rt(t){et(window,t),et(document.body,t)}function it(t,e){if(K(t))return 0;var n=e?tt(e):nt();return t.getBoundingClientRect().top+n}function ot(t){var e=void 0===t?{}:t,n=e.ref,r=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var t,e,i=this.getContainer,o=n?this.$refs[n]:this.$el;i?t="string"==typeof(e=i)?document.querySelector(e):e():this.$parent&&(t=this.$parent.$el),t&&t!==o.parentNode&&t.appendChild(o),r&&r.call(this)}}}}var at=0;function st(t){var e="binded_"+at++;function n(){this[e]||(t.call(this,u,!0),this[e]=!0)}function r(){this[e]&&(t.call(this,l,!1),this[e]=!1)}return{mounted:n,activated:n,deactivated:r,beforeDestroy:r}}var ut={mixins:[st((function(t,e){this.handlePopstate(e&&this.closeOnPopstate)}))],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(t){this.handlePopstate(t)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(t){this.$isServer||this.bindStatus!==t&&(this.bindStatus=t,(t?u:l)(window,"popstate",this.onPopstate))}}},lt={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function ct(t){return void 0===t&&(t={}),{mixins:[F,ut,ot({afterPortal:function(){this.overlay&&X()}})],provide:function(){return{vanPopup:this}},props:lt,data:function(){return this.onReopenCallback=[],{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(e){var n=e?"open":"close";this.inited=this.inited||this.value,this[n](),t.skipToggleEvent||this.$emit(n)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){var t,e;t=this,(e=B.find(t))&&($(e.overlay.$el),B.remove(t)),this.opened&&this.removeLock(),this.getContainer&&$(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(B.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock(),this.onReopenCallback.forEach((function(t){t()})))},addLock:function(){this.lockScroll&&(u(document,"touchstart",this.touchStart),u(document,"touchmove",this.onTouchMove),B.lockCount||document.body.classList.add("zt-overflow-hidden"),B.lockCount++)},removeLock:function(){this.lockScroll&&B.lockCount&&(B.lockCount--,l(document,"touchstart",this.touchStart),l(document,"touchmove",this.onTouchMove),B.lockCount||document.body.classList.remove("zt-overflow-hidden"))},close:function(){this.opened&&(Z(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",n=J(t.target,this.$el),r=n.scrollHeight,i=n.offsetHeight,o=n.scrollTop,a="11";0===o?a=i>=r?"00":"01":o+i>=r&&(a="10"),"11"===a||"vertical"!==this.direction||parseInt(a,2)&parseInt(e,2)||h(t,!0)},renderOverlay:function(){var t=this;!this.$isServer&&this.value&&this.$nextTick((function(){t.updateZIndex(t.overlay?1:0),t.overlay?function(t,e){var n=B.find(t);if(n)n.config=e;else{var r=Y(t);B.stack.push({vm:t,config:e,overlay:r})}X(t)}(t,{zIndex:B.zIndex++,duration:t.duration,className:t.overlayClass,customStyle:t.overlayStyle}):Z(t)}))},updateZIndex:function(t){void 0===t&&(t=0),this.$el.style.zIndex=++B.zIndex+t},onReopen:function(t){this.onReopenCallback.push(t)}}}}var ht=Object(i.b)("info"),ft=ht[0],dt=ht[1];function pt(t,e,n,r){var o=e.dot,a=e.info,s=Object(i.e)(a)&&""!==a;if(o||s)return t("div",p()([{class:dt({dot:o})},b(r,!0)]),[o?"":e.info])}pt.props={dot:Boolean,info:[Number,String]};var vt=ft(pt),gt=Object(i.b)("icon"),yt=gt[0],mt=gt[1];var bt={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function _t(t,e,n,r){var o,a=function(t){return t&&bt[t]||t}(e.name),s=function(t){return!!t&&-1!==t.indexOf("/")}(a);return t(e.tag,p()([{class:[e.classPrefix,s?"":e.classPrefix+"-"+a],style:{color:e.color,fontSize:Object(i.a)(e.size)}},b(r,!0)]),[n.default&&n.default(),s&&t("img",{class:mt("image"),attrs:{src:a}}),t(vt,{attrs:{dot:e.dot,info:null!=(o=e.badge)?o:e.info}})])}_t.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:mt()}};var Ct=yt(_t),wt=Object(i.b)("popup"),St=wt[0],xt=wt[1],At=St({mixins:[ct()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(n){return t.$emit(e,n)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},methods:{onClickCloseIcon:function(t){this.$emit("click-close-icon",t),this.close()}},render:function(){var t,e=arguments[0];if(this.shouldRender){var n=this.round,r=this.position,o=this.duration,a="center"===r,s=this.transition||(a?"zt-fade":"zt-popup-slide-"+r),u={};if(Object(i.e)(o)){var l=a?"animationDuration":"transitionDuration";u[l]=o+"s"}return e("transition",{attrs:{appear:this.transitionAppear,name:s},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:u,class:xt((t={round:n},t[r]=r,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(Ct,{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:xt("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}}),kt=Object(i.b)("picker"),Pt=kt[0],Tt=kt[1],Lt=kt[2],Et=Pt({mixins:[ct()],props:Object(r.a)({},o,{showPicker:{type:Boolean,default:!0},showToolbar:{type:Boolean,default:!0},defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},headers:{type:Array,default:null},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[],show:!1}},computed:{itemPxHeight:function(){return this.itemHeight?Object(f.b)(this.itemHeight):44},dataType:function(){var t=this.columns[0]||{};return t.children?"cascade":t.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0},showPicker:function(t){this.show=t}},methods:{format:function(){var t=this.columns,e=this.dataType;"text"===e?this.formattedColumns=[{values:t}]:"cascade"===e?this.formatCascade():this.formattedColumns=t},formatCascade:function(){for(var t=[],e={children:this.columns};e&&e.children;){for(var n,r=e.children,i=null!=(n=e.defaultIndex)?n:+this.defaultIndex;r[i]&&r[i].disabled;){if(!(i<r.length-1)){i=0;break}i++}t.push({values:e.children,className:e.className,defaultIndex:i}),e=r[i]}this.formattedColumns=t},emit:function(t){var e=this;if("text"===this.dataType)this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0));else{var n=this.getValues();"cascade"===this.dataType&&(n=n.map((function(t){return t[e.valueKey]}))),this.$emit(t,n,this.getIndexes())}},onCascadeChange:function(t){for(var e={children:this.columns},n=this.getIndexes(),r=0;r<=t;r++)e=e.children[n[r]];for(;e&&e.children;)t++,this.setColumnValues(t,e.children),e=e.children[e.defaultIndex||0]},onChange:function(t){var e=this;if("cascade"===this.dataType&&this.onCascadeChange(t),"text"===this.dataType)this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0));else{var n=this.getValues();"cascade"===this.dataType&&(n=n.map((function(t){return t[e.valueKey]}))),this.$emit("change",this,n,t)}},getColumn:function(t){return this.children[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.getValue()},setColumnValue:function(t,e){var n=this.getColumn(t);n&&(n.setValue(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,e){var n=this.getColumn(t);n&&(n.setIndex(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnValues:function(t){return(this.children[t]||{}).options},setColumnValues:function(t,e){var n=this.children[t];n&&n.setOptions(e)},getValues:function(){return this.children.map((function(t){return t.getValue()}))},setValues:function(t){var e=this;t.forEach((function(t,n){e.setColumnValue(n,t)}))},getIndexes:function(){return this.children.map((function(t){return t.currentIndex}))},setIndexes:function(t){var e=this;t.forEach((function(t,n){e.setColumnIndex(n,t)}))},confirm:function(){this.children.forEach((function(t){return t.stopMomentum()})),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var t=this.$createElement,e=this.slots("title");return e||(this.title?t("div",{class:["zt-ellipsis",Tt("title")]},[this.title]):void 0)},genCancel:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:Tt("cancel"),on:{click:this.cancel}},[this.slots("cancel")||this.cancelButtonText||Lt("cancel")])},genConfirm:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:Tt("confirm"),on:{click:this.confirm}},[this.slots("confirm")||this.confirmButtonText||Lt("confirm")])},genToolbar:function(){var t=this.$createElement;if(this.showToolbar)return t("div",{class:Tt("toolbar")},[this.slots()||[this.genCancel(),this.genTitle(),this.genConfirm()]])},genHeaders:function(){return(0,this.$createElement)("ul",{class:Tt("header")},[this.genHeaderItems()])},genHeaderItems:function(){var t=this.$createElement;return this.headers.map((function(e){return t("li",[e])}))},genColumns:function(){var t=this.$createElement,e=this.itemPxHeight,n=e*this.visibleItemCount,r={height:e+"px"},i={height:n+"px"},o={backgroundSize:"100% "+(n-e)/2+"px"};return t("div",{class:Tt("columns"),style:i,on:{touchmove:h}},[t("div",{class:Tt("background")}),this.genColumnItems(),t("div",{class:Tt("mask"),style:o}),t("div",{class:[Tt("frame")],style:r})])},genColumnItems:function(){var t=this,e=this.$createElement;return this.formattedColumns.map((function(n,r){var i;return e(N,{attrs:{columnCollector:t.children,readonly:t.readonly,valueKey:t.valueKey,allowHtml:t.allowHtml,className:n.className,itemHeight:t.itemPxHeight,defaultIndex:null!=(i=n.defaultIndex)?i:+t.defaultIndex,swipeDuration:t.swipeDuration,visibleItemCount:t.visibleItemCount,initialOptions:n.values},scopedSlots:{option:t.$scopedSlots.option},on:{change:function(){t.onChange(r)}}})}))}},render:function(t){var e=this;return t(At,{attrs:{round:!0,position:"bottom"},model:{value:e.show,callback:function(t){e.show=t}}},[t("div",{class:Tt(),ref:"columnParent"},["top"===this.toolbarPosition?this.genToolbar():t(),"top"===this.toolbarPosition?t("div",{class:Tt("border")}):t(),this.loading?t(P,{class:Tt("loading")}):t(),this.slots("columns-top"),this.headers&&this.headers.length>0?this.genHeaders():t(),this.headers&&this.headers.length>0?t("div",{class:Tt("border")}):t(),this.genColumns(),this.slots("columns-bottom"),"bottom"===this.toolbarPosition?this.genToolbar():t()])])}}),Rt=Object(i.b)("area"),Ot=Rt[0],Ft=Rt[1];function It(t,e){var n=t.$slots,r=t.$scopedSlots,i={};return e.forEach((function(t){r[t]?i[t]=r[t]:n[t]&&(i[t]=function(){return n[t]})})),i}var Mt=Ot({props:Object(r.a)({},o,{value:String,areaList:{type:Object,default:function(){return{}}},columnsNum:{type:[Number,String],default:3},isOverseaCode:{type:Function,default:function(t){return"9"===t[0]}},columnsPlaceholder:{type:Array,default:function(){return[]}}}),data:function(){return{code:this.value,columns:[{values:[]},{values:[]},{values:[]}]}},computed:{province:function(){return this.areaList.province_list||{}},city:function(){return this.areaList.city_list||{}},county:function(){return this.areaList.county_list||{}},displayColumns:function(){return this.columns.slice(0,+this.columnsNum)},placeholderMap:function(){return{province:this.columnsPlaceholder[0]||"",city:this.columnsPlaceholder[1]||"",county:this.columnsPlaceholder[2]||""}}},watch:{value:function(t){this.code=t,this.setValues()},areaList:{deep:!0,handler:"setValues"},columnsNum:function(){var t=this;this.$nextTick((function(){t.setValues()}))}},mounted:function(){this.setValues()},methods:{getList:function(t,e){var n=[];if("province"!==t&&!e)return n;var r=this[t];if(n=Object.keys(r).map((function(t){return{code:t,name:r[t]}})),e&&(this.isOverseaCode(e)&&"city"===t&&(e="9"),n=n.filter((function(t){return 0===t.code.indexOf(e)}))),this.placeholderMap[t]&&n.length){var i="";"city"===t?i="000000".slice(2,4):"county"===t&&(i="000000".slice(4,6)),n.unshift({code:""+e+i,name:this.placeholderMap[t]})}return n},getIndex:function(t,e){var n="province"===t?2:"city"===t?4:6,r=this.getList(t,e.slice(0,n-2));this.isOverseaCode(e)&&"province"===t&&(n=1),e=e.slice(0,n);for(var i=0;i<r.length;i++)if(r[i].code.slice(0,n)===e)return i;return 0},parseOutputValues:function(t){var e=this;return t.map((function(t,n){return t?((t=JSON.parse(JSON.stringify(t))).code&&t.name!==e.columnsPlaceholder[n]||(t.code="",t.name=""),t):t}))},onChange:function(t,e,n){this.code=e[n].code,this.setValues();var r=this.parseOutputValues(t.getValues());this.$emit("change",t,r,n)},onConfirm:function(t,e){t=this.parseOutputValues(t),this.setValues(),this.$emit("confirm",t,e)},getDefaultCode:function(){if(this.columnsPlaceholder.length)return"000000";var t=Object.keys(this.county);if(t[0])return t[0];var e=Object.keys(this.city);return e[0]?e[0]:""},setValues:function(){var t=this.code;t||(t=this.getDefaultCode());var e=this.$refs.picker,n=this.getList("province"),r=this.getList("city",t.slice(0,2));e&&(e.setColumnValues(0,n),e.setColumnValues(1,r),r.length&&"00"===t.slice(2,4)&&!this.isOverseaCode(t)&&(t=r[0].code),e.setColumnValues(2,this.getList("county",t.slice(0,4))),e.setIndexes([this.getIndex("province",t),this.getIndex("city",t),this.getIndex("county",t)]))},getValues:function(){var t=this.$refs.picker,e=t?t.getValues().filter((function(t){return!!t})):[];return e=this.parseOutputValues(e),e},getArea:function(){var t=this.getValues(),e={code:"",country:"",province:"",city:"",county:""};if(!t.length)return e;var n=t.map((function(t){return t.name})),r=t.filter((function(t){return!!t.code}));return e.code=r.length?r[r.length-1].code:"",this.isOverseaCode(e.code)?(e.country=n[1]||"",e.province=n[2]||""):(e.province=n[0]||"",e.city=n[1]||"",e.county=n[2]||""),e},reset:function(t){this.code=t||"",this.setValues()}},render:function(){var t=arguments[0],e=Object(r.a)({},this.$listeners,{change:this.onChange,confirm:this.onConfirm});return t(Et,{ref:"picker",class:Ft(),attrs:{showToolbar:!0,valueKey:"name",title:this.title,columns:this.displayColumns,loading:this.loading,readonly:this.readonly,itemHeight:this.itemHeight,swipeDuration:this.swipeDuration,visibleItemCount:this.visibleItemCount,cancelButtonText:this.cancelButtonText,confirmButtonText:this.confirmButtonText},scopedSlots:It(this,["title","columns-top","columns-bottom"]),on:Object(r.a)({},e)})}}),Dt=Object(i.b)("avatar"),jt=Dt[0],Nt=Dt[1],Bt=Dt[2],zt=jt({props:{src:{type:String,default:Bt("defaultSrc")},size:{type:String,default:Bt("medium")},shape:{type:String,default:Bt("square")},text:String,textBG:String},data:function(){return{}},computed:{headText:function(){var t=this.text.length;return 1===t?this.text:t>1?this.text.substring(t-2,2):Bt("defaultText")},classArr:function(){var t=[];switch(this.size){case Bt("small"):t.push("small");break;case Bt("medium"):t.push("medium");break;case Bt("large"):t.push("large")}switch(this.shape){case Bt("square"):t.push("square");break;case Bt("circle"):t.push("circle")}return t},style:function(){var t={};return this.textBG&&(t.backgroundColor=this.textBG),t}},render:function(t){return this.text?t("div",{class:Nt("img",this.classArr),style:this.style},[this.headText]):t("img",{class:Nt("img",this.classArr),style:this.style,attrs:{src:this.src,alt:""}})}}),Ht="zt-hairline";function Ut(t,e){var n=e.to,r=e.url,i=e.replace;if(n&&t){var o=t[i?"replace":"push"](n);o&&o.catch&&o.catch((function(t){if(t&&!function(t){return"NavigationDuplicated"===t.name||t.message&&-1!==t.message.indexOf("redundant navigation")}(t))throw t}))}else r&&(i?location.replace(r):location.href=r)}function Vt(t){Ut(t.parent&&t.parent.$router,t.props)}var Wt={url:String,replace:Boolean,to:[String,Object]},qt=n(5),$t=Object(i.b)("button"),Gt=$t[0],Yt=$t[1];function Xt(t,e,n,r){var i,o=e.tag,a=e.icon,s=e.type,u=e.color,l=e.plain,c=e.disabled,h=e.loading,f=e.hairline,d=e.loadingText,v=e.iconPosition,g={};u&&(g.color=l?u:"white",l||(g.background=u),-1!==u.indexOf("gradient")?g.border=0:g.borderColor=u);var y,m,C=[Yt([s,e.size,{plain:l,loading:h,disabled:c,hairline:f,block:e.block,round:e.round,square:e.square}]),(i={},i["zt-hairline--surround"]=f,i)];function w(){return h?n.loading?n.loading():t(P,{class:Yt("loading"),attrs:{size:e.loadingSize,type:e.loadingType,color:"currentColor"}}):n.icon?t("div",{class:Yt("icon")},[n.icon()]):a?t(Ct,{attrs:{name:a,classPrefix:e.iconPrefix},class:Yt("icon")}):void 0}return t(o,p()([{style:g,class:C,attrs:{type:e.nativeType,disabled:c},on:{click:function(t){if(e.loading&&t.preventDefault(),!h&&!c){_(r,"click",t),Vt(r);var n=new qt.b("button",{});qt.a.sharedInstance.trackClick(n)}},touchstart:function(t){_(r,"touchstart",t)}}},b(r)]),[t("div",{class:Yt("content")},[(m=[],"left"===v&&m.push(w()),(y=h?d:n.default?n.default():e.text)&&m.push(t("span",{class:Yt("text")},[y])),"right"===v&&m.push(w()),m)])])}Xt.props=Object(r.a)({},Wt,{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"},iconPosition:{type:String,default:"left"}});var Zt=Gt(Xt),Kt=n(6),Qt=n(8);function Jt(t){return"[object Date]"===Object.prototype.toString.call(t)&&!Object(Qt.a)(t.getTime())}var te=Object(i.b)("calendar"),ee=te[0],ne=te[1],re=te[2];function ie(t,e){var n=t.getFullYear(),r=e.getFullYear(),i=t.getMonth(),o=e.getMonth();return n===r?i===o?0:i>o?1:-1:n>r?1:-1}function oe(t,e){var n=ie(t,e);if(0===n){var r=t.getDate(),i=e.getDate();return r===i?0:r>i?1:-1}return n}function ae(t,e){return(t=new Date(t)).setDate(t.getDate()+e),t}function se(t){return ae(t,1)}function ue(t){return new Date(t)}function le(t){return Array.isArray(t)?t.map((function(t){return null===t?t:ue(t)})):ue(t)}var ce=0;var he=Object(i.b)("toast"),fe=he[0],de=he[1],pe=fe({mixins:[ct()],props:{icon:String,className:null,iconPrefix:String,loadingType:String,forbidClick:Boolean,closeOnClick:Boolean,message:[Number,String],type:{type:String,default:"text"},position:{type:String,default:"middle"},transition:{type:String,default:"zt-fade"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickable()},destroyed:function(){this.toggleClickable()},watch:{value:"toggleClickable",forbidClick:"toggleClickable"},methods:{onClick:function(){this.closeOnClick&&this.close()},toggleClickable:function(){var t=this.value&&this.forbidClick;this.clickable!==t&&(this.clickable=t,t?(ce||document.body.classList.add("zt-toast--unclickable"),ce++):--ce||document.body.classList.remove("zt-toast--unclickable"))},onAfterEnter:function(){this.$emit("opened"),this.onOpened&&this.onOpened()},onAfterLeave:function(){this.$emit("closed")},genIcon:function(){var t=this.$createElement,e=this.icon,n=this.type,r=this.iconPrefix,i=this.loadingType;return e||"success"===n||"fail"===n?t(Ct,{class:de("icon"),attrs:{classPrefix:r,name:e||n}}):"loading"===n?t(P,{class:de("loading"),attrs:{type:i}}):void 0},genMessage:function(){var t=this.$createElement,e=this.type,n=this.message;if(Object(i.e)(n)&&""!==n)return"html"===e?t("div",{class:de("text"),domProps:{innerHTML:n}}):t("div",{class:de("text")},[n])}},render:function(){var t,e=arguments[0];return e("transition",{attrs:{name:this.transition},on:{afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[e("div",{directives:[{name:"show",value:this.value}],class:[de([this.position,(t={},t[this.type]=!this.icon,t)]),this.className],on:{click:this.onClick}},[this.genIcon(),this.genMessage()])])}}),ve={icon:"",type:"text",mask:!1,value:!0,message:"",className:"",overlay:!1,onClose:null,onOpened:null,duration:2e3,iconPrefix:void 0,position:"middle",transition:"zt-fade",forbidClick:!1,loadingType:void 0,getContainer:"body",overlayStyle:null,closeOnClick:!1,closeOnClickOverlay:!1},ge={},ye=[],me=!1,be=Object(r.a)({},ve);function _e(t){return Object(i.g)(t)?t:{message:t}}function Ce(){if(i.i)return{};if(!(ye=ye.filter((function(t){return!t.$el.parentNode||(e=t.$el,document.body.contains(e));var e}))).length||me){var t=new(g.a.extend(pe))({el:document.createElement("div")});t.$on("input",(function(e){t.value=e})),ye.push(t)}return ye[ye.length-1]}function we(t){void 0===t&&(t={});var e=Ce();return e.value&&e.updateZIndex(),t=_e(t),(t=Object(r.a)({},be,ge[t.type||be.type],t)).clear=function(){e.value=!1,t.onClose&&(t.onClose(),t.onClose=null),me&&!i.i&&e.$on("closed",(function(){clearTimeout(e.timer),ye=ye.filter((function(t){return t!==e})),$(e.$el),e.$destroy()}))},Object(r.a)(e,function(t){return Object(r.a)({},t,{overlay:t.mask||t.overlay,mask:void 0,duration:void 0})}(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout((function(){e.clear()}),t.duration)),e}["loading","success","fail"].forEach((function(t){var e;we[t]=(e=t,function(t){return we(Object(r.a)({type:e},_e(t)))})})),we.clear=function(t){ye.length&&(t?(ye.forEach((function(t){t.clear()})),ye=[]):me?ye.shift().clear():ye[0].clear())},we.setDefaultOptions=function(t,e){"string"==typeof t?ge[t]=e:Object(r.a)(be,t)},we.resetDefaultOptions=function(t){"string"==typeof t?ge[t]=null:(be=Object(r.a)({},ve),ge={})},we.allowMultiple=function(t){void 0===t&&(t=!0),me=t},we.install=function(){g.a.use(pe)},g.a.prototype.$toast=we;var Se=we;function xe(t){if(!t)return 0;for(;Object(Qt.a)(parseInt(t,10));){if(!(t.length>1))return 0;t=t.slice(1)}return parseInt(t,10)}function Ae(t,e){return 32-new Date(t,e-1,32).getDate()}var ke=(0,Object(i.b)("calendar-month")[0])({props:{date:Date,type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:[Number,String],formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number},data:function(){return{visible:!1}},computed:{title:function(){return t=this.date,re("monthTitle",t.getFullYear(),t.getMonth()+1);var t},rowHeightWithUnit:function(){return Object(i.a)(this.rowHeight)},offset:function(){var t=this.firstDayOfWeek,e=this.date.getDay();return t?(e+7-this.firstDayOfWeek)%7:e},totalDay:function(){return Ae(this.date.getFullYear(),this.date.getMonth()+1)},shouldRender:function(){return this.visible||!this.lazyRender},placeholders:function(){for(var t=[],e=Math.ceil((this.totalDay+this.offset)/7),n=1;n<=e;n++)t.push({type:"placeholder"});return t},days:function(){for(var t=[],e=this.date.getFullYear(),n=this.date.getMonth(),r=1;r<=this.totalDay;r++){var i=new Date(e,n,r),o=this.getDayType(i),a={date:i,type:o,text:r,bottomInfo:this.getBottomInfo(o)};this.formatter&&(a=this.formatter(a)),t.push(a)}return t}},methods:{getHeight:function(){return this.height||(this.height=this.$el.getBoundingClientRect().height),this.height},scrollIntoView:function(t){var e=this.$refs,n=e.days,r=e.month,i=(this.showSubtitle?n:r).getBoundingClientRect().top-t.getBoundingClientRect().top+t.scrollTop;et(t,i)},getMultipleDayType:function(t){var e=this,n=function(t){return e.currentDate.some((function(e){return 0===oe(e,t)}))};if(n(t)){var r=ae(t,-1),i=se(t),o=n(r),a=n(i);return o&&a?"multiple-middle":o?"end":a?"start":"multiple-selected"}return""},getRangeDayType:function(t){var e=this.currentDate,n=e[0],r=e[1];if(!n)return"";var i=oe(t,n);if(!r)return 0===i?"start":"";var o=oe(t,r);return 0===i&&0===o&&this.allowSameDay?"start-end":0===i?"start":0===o?"end":i>0&&o<0?"middle":void 0},getDayType:function(t){var e=this.type,n=this.minDate,r=this.maxDate,i=this.currentDate;return oe(t,n)<0||oe(t,r)>0?"disabled":null!==i?"single"===e?0===oe(t,i)?"selected":"":"multiple"===e?this.getMultipleDayType(t):"range"===e?this.getRangeDayType(t):void 0:void 0},getBottomInfo:function(t){if("range"===this.type){if("start"===t||"end"===t)return re(t);if("start-end"===t)return re("startEnd")}},getDayStyle:function(t,e){var n={height:this.rowHeightWithUnit};return"placeholder"===t?(n.width="100%",n):(0===e&&(n.marginLeft=100*this.offset/7+"%"),this.color&&("start"===t||"end"===t||"start-end"===t||"multiple-selected"===t||"multiple-middle"===t?n.background=this.color:"middle"===t&&(n.color=this.color)),n)},genTitle:function(){var t=this.$createElement;if(this.showMonthTitle)return t("div",{class:ne("month-title")},[this.title])},genMark:function(){var t=this.$createElement;if(this.showMark&&this.shouldRender)return t("div",{class:ne("month-mark")},[this.date.getMonth()+1])},genDays:function(){var t=this.$createElement,e=this.shouldRender?this.days:this.placeholders;return t("div",{ref:"days",attrs:{role:"grid"},class:ne("days")},[this.genMark(),e.map(this.genDay)])},genTopInfo:function(t){var e=this.$createElement,n=this.$scopedSlots["top-info"];if(t.topInfo||n)return e("div",{class:ne("top-info")},[n?n(t):t.topInfo])},genBottomInfo:function(t){var e=this.$createElement,n=this.$scopedSlots["bottom-info"];if(t.bottomInfo||n)return e("div",{class:ne("bottom-info")},[n?n(t):t.bottomInfo])},genDay:function(t,e){var n=this,r=this.$createElement,i=t.type,o=this.getDayStyle(i,e),a="disabled"===i,s=function(){a||n.$emit("click",t)};return"selected"===i?r("div",{attrs:{role:"gridcell",tabindex:-1},style:o,class:[ne("day"),t.className],on:{click:s}},[r("div",{class:ne("selected-day"),style:{width:this.rowHeightWithUnit,height:this.rowHeightWithUnit,background:this.color}},[this.genTopInfo(t),t.text,this.genBottomInfo(t)])]):r("div",{attrs:{role:"gridcell",tabindex:a?null:-1},style:o,class:[ne("day",i),t.className],on:{click:s}},[this.genTopInfo(t),t.text,this.genBottomInfo(t)])}},render:function(){var t=arguments[0];return t("div",{class:ne("month"),ref:"month"},[this.genTitle(),this.genDays()])}}),Pe=(0,Object(i.b)("calendar-header")[0])({props:{title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},methods:{genTitle:function(){var t=this.$createElement;if(this.showTitle){var e=this.slots("title")||this.title||re("title");return t("div",{class:ne("header-title")},[e])}},genSubtitle:function(){var t=this.$createElement;if(this.showSubtitle)return t("div",{class:ne("header-subtitle")},[this.subtitle])},genWeekDays:function(){var t=this.$createElement,e=re("weekdays"),n=this.firstDayOfWeek,r=[].concat(e.slice(n,7),e.slice(0,n));return t("div",{class:ne("weekdays")},[r.map((function(e){return t("span",{class:ne("weekday")},[e])}))])}},render:function(){var t=arguments[0];return t("div",{class:ne("header")},[this.genTitle(),this.genSubtitle(),this.genWeekDays()])}}),Te=ee({props:{title:String,color:String,value:Boolean,readonly:Boolean,formatter:Function,rowHeight:[Number,String],confirmText:String,rangePrompt:String,defaultDate:[Date,Array],getContainer:[String,Function],allowSameDay:Boolean,confirmDisabledText:String,type:{type:String,default:"single"},round:{type:Boolean,default:!0},position:{type:String,default:"bottom"},poppable:{type:Boolean,default:!0},maxRange:{type:[Number,String],default:null},lazyRender:{type:Boolean,default:!0},showMark:{type:Boolean,default:!1},showTitle:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},minDate:{type:Date,validator:Jt,default:function(){return new Date}},maxDate:{type:Date,validator:Jt,default:function(){var t=new Date;return new Date(t.getFullYear(),t.getMonth()+6,t.getDate())}},firstDayOfWeek:{type:[Number,String],default:0,validator:function(t){return t>=0&&t<=6}}},data:function(){return{subtitle:"",currentDate:this.getInitialDate()}},computed:{months:function(){var t=[],e=new Date(this.minDate);e.setDate(1);do{t.push(new Date(e)),e.setMonth(e.getMonth()+1)}while(1!==ie(e,this.maxDate));return t},buttonDisabled:function(){var t=this.type,e=this.currentDate;if(e){if("range"===t)return!e[0]||!e[1];if("multiple"===t)return!e.length}return!e},dayOffset:function(){return this.firstDayOfWeek?this.firstDayOfWeek%7:0}},watch:{value:"init",type:function(){this.reset()},defaultDate:function(t){this.currentDate=t,this.scrollIntoView()}},mounted:function(){this.init()},activated:function(){this.init()},methods:{reset:function(t){void 0===t&&(t=this.getInitialDate()),this.currentDate=t,this.scrollIntoView()},init:function(){var t=this;this.poppable&&!this.value||this.$nextTick((function(){t.bodyHeight=Math.floor(t.$refs.body.getBoundingClientRect().height),t.onScroll(),t.scrollIntoView()}))},scrollToDate:function(t){var e=this;Object(Kt.c)((function(){var n=e.value||!e.poppable;t&&n&&(e.months.some((function(n,r){if(0===ie(n,t)){var i=e.$refs,o=i.body;return i.months[r].scrollIntoView(o),!0}return!1})),e.onScroll())}))},scrollIntoView:function(){var t=this.currentDate;if(t){var e="single"===this.type?t:t[0];this.scrollToDate(e)}},getInitialDate:function(){var t=this.type,e=this.minDate,n=this.maxDate,r=this.defaultDate;if(null===r)return r;var i=new Date;if(-1===oe(i,e)?i=e:1===oe(i,n)&&(i=n),"range"===t){var o=r||[];return[o[0]||i,o[1]||se(i)]}return"multiple"===t?r||[i]:r||i},onScroll:function(){var t=this.$refs,e=t.body,n=t.months,r=tt(e),i=r+this.bodyHeight,o=n.map((function(t){return t.getHeight()}));if(!(i>o.reduce((function(t,e){return t+e}),0)&&r>0)){for(var a,s=0,u=[-1,-1],l=0;l<n.length;l++){s<=i&&s+o[l]>=r&&(u[1]=l,a||(a=n[l],u[0]=l),n[l].showed||(n[l].showed=!0,this.$emit("month-show",{date:n[l].date,title:n[l].title}))),s+=o[l]}n.forEach((function(t,e){t.visible=e>=u[0]-1&&e<=u[1]+1})),a&&(this.subtitle=a.title)}},onClickDay:function(t){if(!this.readonly){var e=t.date,n=this.type,r=this.currentDate;if("range"===n){if(!r)return void this.select([e,null]);var i=r[0],o=r[1];if(i&&!o){var a=oe(e,i);1===a?this.select([i,e],!0):-1===a?this.select([e,null]):this.allowSameDay&&this.select([e,e],!0)}else this.select([e,null])}else if("multiple"===n){if(!r)return void this.select([e]);var s;if(this.currentDate.some((function(t,n){var r=0===oe(t,e);return r&&(s=n),r}))){var u=r.splice(s,1)[0];this.$emit("unselect",ue(u))}else this.maxRange&&r.length>=this.maxRange?Se(this.rangePrompt||re("rangePrompt",this.maxRange)):this.select([].concat(r,[e]))}else this.select(e,!0)}},togglePopup:function(t){this.$emit("input",t)},select:function(t,e){var n=this,r=function(t){n.currentDate=t,n.$emit("select",le(n.currentDate))};if(e&&"range"===this.type&&!this.checkRange(t))return void(this.showConfirm?r([t[0],ae(t[0],this.maxRange-1)]):r(t));r(t),e&&!this.showConfirm&&this.onConfirm()},checkRange:function(t){var e=this.maxRange,n=this.rangePrompt;return!(e&&function(t){var e=t[0].getTime();return(t[1].getTime()-e)/864e5+1}(t)>e)||(Se(n||re("rangePrompt",e)),!1)},onConfirm:function(){this.$emit("confirm",le(this.currentDate))},genMonth:function(t,e){var n=this.$createElement,r=0!==e||!this.showSubtitle;return n(ke,{ref:"months",refInFor:!0,attrs:{date:t,type:this.type,color:this.color,minDate:this.minDate,maxDate:this.maxDate,showMark:this.showMark,formatter:this.formatter,rowHeight:this.rowHeight,lazyRender:this.lazyRender,currentDate:this.currentDate,showSubtitle:this.showSubtitle,allowSameDay:this.allowSameDay,showMonthTitle:r,firstDayOfWeek:this.dayOffset},scopedSlots:{"top-info":this.$scopedSlots["top-info"],"bottom-info":this.$scopedSlots["bottom-info"]},on:{click:this.onClickDay}})},genFooterContent:function(){var t=this.$createElement,e=this.slots("footer");if(e)return e;if(this.showConfirm){var n=this.buttonDisabled?this.confirmDisabledText:this.confirmText;return t(Zt,{attrs:{block:!0,type:"primary",color:this.color,disabled:this.buttonDisabled,nativeType:"button"},class:ne("confirm"),on:{click:this.onConfirm}},[n||re("confirm")])}},genFooter:function(){return(0,this.$createElement)("div",{class:ne("footer",{unfit:!this.safeAreaInsetBottom})},[this.genFooterContent()])},genCalendar:function(){var t=this,e=this.$createElement;return e("div",{class:ne()},[e(Pe,{attrs:{title:this.title,showTitle:this.showTitle,subtitle:this.subtitle,showSubtitle:this.showSubtitle,firstDayOfWeek:this.dayOffset},scopedSlots:{title:function(){return t.slots("title")}}}),e("div",{ref:"body",class:ne("body"),on:{scroll:this.onScroll}},[this.months.map(this.genMonth)]),this.genFooter()])}},render:function(){var t=this,e=arguments[0];if(this.poppable){var n,r=function(e){return function(){return t.$emit(e)}};return e(At,{attrs:(n={round:!0,value:this.value},n.round=this.round,n.position=this.position,n.closeable=this.showTitle||this.showSubtitle,n.getContainer=this.getContainer,n.closeOnPopstate=this.closeOnPopstate,n.closeOnClickOverlay=this.closeOnClickOverlay,n),class:ne("popup"),on:{input:this.togglePopup,open:r("open"),opened:r("opened"),close:r("close"),closed:r("closed")}},[this.genCalendar()])}return this.genCalendar()}}),Le={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}},Ee=Object(i.b)("cell"),Re=Ee[0],Oe=Ee[1];function Fe(t,e,n,r){var o,a=e.icon,s=e.size,u=e.title,l=e.label,c=e.value,h=e.isLink,f=n.title||Object(i.e)(u);function d(){if(n.label||Object(i.e)(l))return t("div",{class:[Oe("label"),e.labelClass]},[n.label?n.label():l])}var v=null!=(o=e.clickable)?o:h,g={clickable:v,center:e.center,required:e.required,borderless:!e.border};return s&&(g[s]=s),t("div",p()([{class:Oe(g),attrs:{role:v?"button":null,tabindex:v?0:null},on:{click:function(t){_(r,"click",t),Vt(r)}}},b(r)]),[n.icon?n.icon():a?t(Ct,{class:Oe("left-icon"),attrs:{name:a,classPrefix:e.iconPrefix}}):void 0,function(){if(f)return t("div",{class:[Oe("title"),e.titleClass],style:e.titleStyle},[n.title?n.title():t("span",[u]),d()])}(),function(){if(n.default||Object(i.e)(c))return t("div",{class:[Oe("value",{alone:!f}),e.valueClass]},[n.default?n.default():t("span",[c])])}(),function(){var r=n["right-icon"];if(r)return r();if(h){var i=e.arrowDirection;return t(Ct,{class:Oe("right-icon"),attrs:{name:i?"arrow-"+i:"arrow"}})}}(),null==n.extra?void 0:n.extra()])}Fe.props=Object(r.a)({},Le,Wt);var Ie=Re(Fe),Me=Object(i.b)("cell-group"),De=Me[0],je=Me[1];function Ne(t,e,n,r){var i,o=t("div",p()([{class:[je({inset:e.inset}),(i={},i["zt-hairline--top-bottom"]=e.border,i)]},b(r,!0)]),[null==n.default?void 0:n.default()]);return e.title||n.title?t("div",{key:r.data.key},[t("div",{class:je("title",{inset:e.inset})},[n.title?n.title():e.title]),o]):o}Ne.props={title:String,inset:Boolean,border:{type:Boolean,default:!0}};var Be=De(Ne),ze={inject:{ztField:{default:null}},watch:{value:function(){var t=this.ztField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.ztField;t&&!t.children&&(t.children=this)}};function He(t,e){var n=e.$vnode.componentOptions;if(n&&n.children){var r=function(t){var e=[];return function t(n){n.forEach((function(n){e.push(n),n.componentInstance&&t(n.componentInstance.$children.map((function(t){return t.$vnode}))),n.children&&t(n.children)}))}(t),e}(n.children);t.sort((function(t,e){return r.indexOf(t.$vnode)-r.indexOf(e.$vnode)}))}}function Ue(t,e){var n,r;void 0===e&&(e={});var i=e.indexKey||"index";return{inject:(n={},n[t]={default:null},n),computed:(r={parent:function(){return this.disableBindRelation?null:this[t]}},r[i]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},r),watch:{disableBindRelation:function(t){t||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(e){return e!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);He(t,this.parent),this.parent.children=t}}}}}function Ve(t){return{provide:function(){var e;return(e={})[t]=this,e},data:function(){return{children:[]}}}}var We=function(t){var e=t.parent,n=t.bem,r=t.role;return{mixins:[Ue(e),ze],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===r&&!this.checked?-1:0}},methods:{onClick:function(t){var e=this,n=t.target,r=this.$refs.icon,i=r===n||r.contains(n);this.isDisabled||!i&&this.labelDisabled?this.$emit("click",t):(this.toggle(),setTimeout((function(){e.$emit("click",t)})))},genIcon:function(){var t=this.$createElement,e=this.checked,r=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:n("icon",[this.shape,{disabled:this.isDisabled,checked:e}]),style:{fontSize:Object(i.a)(r)}},[this.slots("icon",{checked:e})||t(Ct,{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,e=this.slots();if(e)return t("span",{class:n("label",[this.labelPosition,{disabled:this.isDisabled}])},[e])}},render:function(){var t=arguments[0],e=[this.genIcon()];return"left"===this.labelPosition?e.unshift(this.genLabel()):e.push(this.genLabel()),t("div",{attrs:{role:r,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:n([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[e])}}},qe=Object(i.b)("checkbox"),$e=(0,qe[0])({mixins:[We({bem:qe[1],role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(t){var e=this;void 0===t&&(t=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout((function(){e.checked=t}))},setParentValue:function(t){var e=this.parent,n=e.value.slice();if(t){if(e.max&&n.length>=e.max)return;-1===n.indexOf(this.name)&&(n.push(this.name),e.$emit("input",n))}else{var r=n.indexOf(this.name);-1!==r&&(n.splice(r,1),e.$emit("input",n))}}}}),Ge=Object(i.b)("checkbox-group"),Ye=Ge[0],Xe=Ge[1],Ze=Ye({mixins:[Ve("vanCheckbox"),ze],props:{max:[Number,String],disabled:Boolean,direction:String,iconSize:[Number,String],checkedColor:String,value:{type:Array,default:function(){return[]}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggleAll:function(t){void 0===t&&(t={}),"boolean"==typeof t&&(t={checked:t});var e=t,n=e.checked,r=e.skipDisabled,i=this.children.filter((function(t){return t.disabled&&r?t.checked:null!=n?n:!t.checked})).map((function(t){return t.name}));this.$emit("input",i)}},render:function(){var t=arguments[0];return t("div",{class:Xe([this.direction])},[this.slots()])}}),Ke=Object(i.b)("col"),Qe=Ke[0],Je=Ke[1],tn=Qe({mixins:[Ue("ztRow")],props:{span:[Number,String],offset:[Number,String],tag:{type:String,default:"div"}},computed:{style:function(){var t=this.index,e=(this.parent||{}).spaces;if(e&&e[t]){var n=e[t],r=n.left,i=n.right;return{paddingLeft:r?r+"px":null,paddingRight:i?i+"px":null}}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],n=this.span,r=this.offset;return e(this.tag,{style:this.style,class:Je((t={},t[n]=n,t["offset-"+r]=r,t)),on:{click:this.onClick}},[this.slots()])}}),en=n(4),nn=Object(i.b)("dateTimePicker")[2],rn=Object(r.a)({},o,{value:null,filter:Function,columnsOrder:Array,showToolbar:{type:Boolean,default:!0},formatter:{type:Function,default:function(t,e){return e}}}),on={data:function(){return{innerValue:this.formatValue(this.value)}},computed:{originColumns:function(){var t=this;return this.ranges.map((function(e){var n=e.type,r=e.range,i=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(r[1]-r[0]+1,(function(t){return Object(en.b)(r[0]+t)}));return t.filter&&(i=t.filter(n,i)),{type:n,values:i}}))},columns:function(){var t=this;return this.originColumns.map((function(e){return{values:e.values.map((function(n){return t.formatter(e.type,n)}))}}))},headers:function(){if(this.columnsOrder)return[];var t=nn("year"),e=nn("month"),n=nn("day"),r=nn("hour"),i=nn("minute");return{date:[t,e,n],"year-month":[t,e],"month-day":[e,n],time:[r,i],datetime:[t,e,n,r,i],datehour:[t,e,n,r]}[this.type]||[]}},watch:{columns:"updateColumnValue",innerValue:function(t,e){e?this.$emit("input",t):this.$emit("input",null)}},mounted:function(){var t=this;this.updateColumnValue(),this.$nextTick((function(){t.updateInnerValue()}))},methods:{getPicker:function(){return this.$refs.picker},onConfirm:function(){this.$emit("input",this.innerValue),this.$emit("confirm",this.innerValue)},onCancel:function(){this.$emit("cancel")}},render:function(){var t=this,e=arguments[0],n={};return Object.keys(o).forEach((function(e){n[e]=t[e]})),e(Et,{ref:"picker",attrs:{headers:this.headers,columns:this.columns,readonly:this.readonly},scopedSlots:this.$scopedSlots,on:{change:this.onChange,confirm:this.onConfirm,cancel:this.onCancel},props:Object(r.a)({},n)})}},an=(0,Object(i.b)("time-picker")[0])({mixins:[on],props:Object(r.a)({},rn,{type:{type:String,default:"time"},minHour:{type:[Number,String],default:0},maxHour:{type:[Number,String],default:23},minMinute:{type:[Number,String],default:0},maxMinute:{type:[Number,String],default:59}}),computed:{ranges:function(){return[{type:"hour",range:[+this.minHour,+this.maxHour]},{type:"minute",range:[+this.minMinute,+this.maxMinute]}]}},watch:{filter:"updateInnerValue",minHour:function(){var t=this;this.$nextTick((function(){t.updateInnerValue()}))},maxHour:function(t){var e=this.innerValue.split(":"),n=e[0],r=e[1];n>=t?(this.innerValue=this.formatValue(t+":"+r),this.updateColumnValue()):this.updateInnerValue()},minMinute:"updateInnerValue",maxMinute:function(t){var e=this.innerValue.split(":"),n=e[0];e[1]>=t?(this.innerValue=this.formatValue(n+":"+t),this.updateColumnValue()):this.updateInnerValue()},value:function(t){(t=this.formatValue(t))!==this.innerValue&&(this.innerValue=t,this.updateColumnValue())}},methods:{formatValue:function(t){t||(t=Object(en.b)(this.minHour)+":"+Object(en.b)(this.minMinute));var e=t.split(":"),n=e[0],r=e[1];return(n=Object(en.b)(L(n,this.minHour,this.maxHour)))+":"+(r=Object(en.b)(L(r,this.minMinute,this.maxMinute)))},updateInnerValue:function(){var t=this.getPicker().getIndexes(),e=t[0],n=t[1],r=this.originColumns,i=r[0],o=r[1],a=i.values[e]||i.values[0],s=o.values[n]||o.values[0];this.innerValue=this.formatValue(a+":"+s),this.updateColumnValue()},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick((function(){e.$nextTick((function(){e.$emit("change",t)}))}))},updateColumnValue:function(){var t=this,e=this.formatter,n=this.innerValue.split(":"),r=[e("hour",n[0]),e("minute",n[1])];this.$nextTick((function(){t.getPicker().setValues(r)}))}}});function sn(t,e){return(sn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function un(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function ln(t,e,n){return(ln=un()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&sn(i,n.prototype),i}).apply(null,arguments)}var cn,hn=(new Date).getFullYear(),fn=(0,Object(i.b)("date-picker")[0])({mixins:[on],props:Object(r.a)({},rn,{type:{type:String,default:"datetime"},minDate:{type:Date,default:function(){return new Date(hn-10,0,1)},validator:Jt},maxDate:{type:Date,default:function(){return new Date(hn+10,11,31)},validator:Jt}}),watch:{filter:"updateInnerValue",minDate:function(){var t=this;this.$nextTick((function(){t.updateInnerValue()}))},maxDate:function(t){this.innerValue.valueOf()>=t.valueOf()?this.innerValue=t:this.updateInnerValue()},value:function(t){(t=this.formatValue(t))&&t.valueOf()!==this.innerValue.valueOf()&&(this.innerValue=t)}},computed:{ranges:function(){var t=this.getBoundary("max",this.innerValue?this.innerValue:this.minDate),e=t.maxYear,n=t.maxDate,r=t.maxMonth,i=t.maxHour,o=t.maxMinute,a=this.getBoundary("min",this.innerValue?this.innerValue:this.minDate),s=a.minYear,u=a.minDate,l=[{type:"year",range:[s,e]},{type:"month",range:[a.minMonth,r]},{type:"day",range:[u,n]},{type:"hour",range:[a.minHour,i]},{type:"minute",range:[a.minMinute,o]}];switch(this.type){case"date":l=l.slice(0,3);break;case"year-month":l=l.slice(0,2);break;case"month-day":l=l.slice(1,3);break;case"datehour":l=l.slice(0,4)}if(this.columnsOrder){var c=this.columnsOrder.concat(l.map((function(t){return t.type})));l.sort((function(t,e){return c.indexOf(t.type)-c.indexOf(e.type)}))}return l}},methods:{formatValue:function(t){var e=this;if(!Jt(t))return null;var n=new Date(this.minDate),r=new Date(this.maxDate),i={year:"getFullYear",month:"getMonth",day:"getDate",hour:"getHours",minute:"getMinutes"};if(this.originColumns){var o=this.originColumns.map((function(t,o){var a=t.type,s=t.values,u=e.ranges[o].range,l=n[i[a]](),c=r[i[a]](),h="month"===a?+s[0]-1:+s[0],f="month"===a?+s[s.length-1]-1:+s[s.length-1];return{type:a,values:[l<u[0]?Math.max(l,h):h||l,c>u[1]?Math.min(c,f):f||c]}}));if("month-day"===this.type){var a=(this.innerValue||this.minDate).getFullYear();o.unshift({type:"year",values:[a,a]})}var s=Object.keys(i).map((function(t){var e;return null==(e=o.filter((function(e){return e.type===t}))[0])?void 0:e.values})).filter((function(t){return t}));n=ln(Date,s.map((function(t){return xe(t[0])}))),r=ln(Date,s.map((function(t){return xe(t[1])})))}return t=Math.max(t,n.getTime()),t=Math.min(t,r.getTime()),new Date(t)},getBoundary:function(t,e){var n,r=this[t+"Date"],i=r.getFullYear(),o=1,a=1,s=0,u=0;return"max"===t&&(o=12,a=Ae(e.getFullYear(),e.getMonth()+1),s=23,u=59),e.getFullYear()===i&&(o=r.getMonth()+1,e.getMonth()+1===o&&(a=r.getDate(),e.getDate()===a&&(s=r.getHours(),e.getHours()===s&&(u=r.getMinutes())))),(n={})[t+"Year"]=i,n[t+"Month"]=o,n[t+"Date"]=a,n[t+"Hour"]=s,n[t+"Minute"]=u,n},updateInnerValue:function(){var t,e,n,r=this,i=this.type,o=this.getPicker().getIndexes(),a=function(t){var e=0;return r.originColumns.forEach((function(n,r){t===n.type&&(e=r)})),xe(r.originColumns[e].values[o[e]])};"month-day"===i?(t=(this.innerValue||this.minDate).getFullYear(),e=a("month"),n=a("day")):(t=a("year"),e=a("month"),n="year-month"===i?1:a("day"));var s=Ae(t,e);n=n>s?s:n;var u=0,l=0;"datehour"===i&&(u=a("hour")),"datetime"===i&&(u=a("hour"),l=a("minute"));var c=new Date(t,e-1,n,u,l);this.innerValue=this.formatValue(c)},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick((function(){e.$nextTick((function(){e.$emit("change",t)}))}))},updateColumnValue:function(){var t=this,e=this.innerValue?this.innerValue:this.minDate,n=this.formatter,r=this.originColumns.map((function(t){switch(t.type){case"year":return n("year",""+e.getFullYear());case"month":return n("month",Object(en.b)(e.getMonth()+1));case"day":return n("day",Object(en.b)(e.getDate()));case"hour":return n("hour",Object(en.b)(e.getHours()));case"minute":return n("minute",Object(en.b)(e.getMinutes()));default:return null}}));this.$nextTick((function(){t.getPicker().setValues(r)}))}}}),dn=Object(i.b)("datetime-picker"),pn=dn[0],vn=dn[1],gn=pn({props:Object(r.a)({},an.props,fn.props),methods:{getPicker:function(){return this.$refs.root.getPicker()}},render:function(){var t=arguments[0],e="time"===this.type?an:fn;return t(e,{ref:"root",class:vn(),scopedSlots:this.$scopedSlots,props:Object(r.a)({},this.$props),on:Object(r.a)({},this.$listeners)})}}),yn=Object(i.b)("dialog"),mn=yn[0],bn=yn[1],_n=yn[2],Cn=mn({mixins:[ct()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"zt-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var e=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(n){!1!==n&&e.loading[t]&&e.onClose(t),e.loading.confirm=!1,e.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genButtons:function(){var t,e=this,n=this.$createElement,r=this.showCancelButton&&this.showConfirmButton;return n("div",{class:["zt-hairline--top",bn("footer")]},[this.showCancelButton&&n(Zt,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||_n("cancel")},class:bn("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&n(Zt,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||_n("confirm")},class:[bn("confirm"),(t={},t["zt-hairline--left"]=r,t)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(t,e){var n=this.$createElement;if(e)return n("div",{class:bn("content")},[e]);var r=this.message,i=this.messageAlign;if(r){var o,a,s={class:bn("message",(o={"has-title":t},o[i]=i,o)),domProps:(a={},a[this.allowHtml?"innerHTML":"textContent"]=r,a)};return n("div",{class:bn("content",{isolated:!t})},[n("div",p()([{},s]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var e=this.message,n=this.slots(),r=this.slots("title"),o=r||this.title,a=o&&t("div",{class:bn("header",{isolated:!e&&!n,"custom-title":!!r})},[o]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||e},class:[bn([this.theme]),this.className],style:{width:Object(i.a)(this.width)}},[a,this.genContent(o,n),this.genButtons()])])}}});function wn(t){return i.i?Promise.resolve():new Promise((function(e,n){var i;cn&&(i=cn.$el,document.body.contains(i))||(cn&&cn.$destroy(),(cn=new(g.a.extend(Cn))({el:document.createElement("div"),propsData:{lazyRender:!1}})).$on("input",(function(t){cn.value=t}))),Object(r.a)(cn,wn.currentOptions,t,{resolve:e,reject:n})}))}wn.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"zt-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(t){cn["confirm"===t?"resolve":"reject"](t)}},wn.alert=wn,wn.confirm=function(t){return wn(Object(r.a)({showCancelButton:!0},t))},wn.close=function(){cn&&(cn.value=!1)},wn.setDefaultOptions=function(t){Object(r.a)(wn.currentOptions,t)},wn.resetDefaultOptions=function(){wn.currentOptions=Object(r.a)({},wn.defaultOptions)},wn.resetDefaultOptions(),wn.install=function(){g.a.use(Cn)},wn.Component=Cn,g.a.prototype.$dialog=wn;var Sn=wn,xn={render:function(){var t=arguments[0];return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280 260"}},[t("defs",[t("linearGradient",{attrs:{x1:"23.226575%",y1:"239.989869%",x2:"113.740933%",y2:"-331.46119%",id:"zt-empty-search-1"}},[t("stop",{attrs:{offset:"1%"}}),t("stop",{attrs:{"stop-opacity":".69",offset:"8%"}}),t("stop",{attrs:{"stop-opacity":".32",offset:"21%"}}),t("stop",{attrs:{"stop-opacity":"0",offset:"100%"}})])]),t("g",{attrs:{transform:"translate(10 31.366093)",fill:"none","fill-rule":"evenodd"}},[t("path",{attrs:{d:"M114.994008,0.189504285 C113.786795,0.147392222 112.586601,0.119317513 111.393426,0.0912428039 C92.239456,-0.308821798 72.69244,0.336896507 54.6053088,6.64668733 C36.5181776,12.9564782 19.8488192,25.744508 12.8933101,43.5719482 C9.29272864,52.8295834 8.4434687,62.8803292 7.10290135,72.7205147 C4.59723358,91.1726171 0.238635026,109.46329 0.00701867722,128.076822 C-0.224597671,146.690354 4.21822501,166.286501 16.9992362,179.846585 C39.1712376,203.401266 69.9270812,189.441117 96.3102888,183.096233 C111.968045,179.344271 128.255967,179.054442 144.037294,182.246973 C154.453011,184.352576 164.510775,187.981232 174.919474,190.213171 C182.408402,191.820448 190.199134,192.704802 197.828436,191.715168 C205.155935,190.767647 210.80597,187.272346 217.480732,184.457856 C230.184538,179.067512 243.028717,172.203246 251.128271,160.629447 C257.335742,151.543597 260.184755,140.579365 259.185712,129.620931 C256.694082,100.732055 229.707268,88.6037812 215.775194,65.8983604 C207.661603,52.7032473 202.130885,37.7394274 191.694112,26.2989835 C172.968281,5.80444606 142.970455,1.08087629 114.994008,0.189504285 Z",fill:"#32A5FB","fill-rule":"nonzero",opacity:".18"}}),t("path",{attrs:{d:"M156.355074,29.3029774 L156.355074,172.589273 C156.355074,179.500731 150.752229,185.103574 143.840771,185.103574 L81.823739,185.103574 C74.9122812,185.103574 69.3094356,179.500731 69.3094356,172.589273 L69.3094356,29.3029774 C69.3075754,25.9827624 70.6252206,22.7978974 72.9723092,20.4494924 C75.3193978,18.1010874 78.5035235,16.7816572 81.823739,16.7816572 L143.840771,16.7816572 C147.160987,16.7816572 150.345112,18.1010874 152.692201,20.4494924 C155.039289,22.7978974 156.356935,25.9827624 156.355074,29.3029774 Z",fill:"#32A5FB","fill-rule":"nonzero"}}),t("rect",{attrs:{fill:"#473F47","fill-rule":"nonzero",x:"71.0219948",y:"18.9083164",width:"83.6135017",height:"163.808908",rx:"17.5885043"}}),t("path",{attrs:{d:"M152.36145,32.377158 L152.36145,167.5639 C152.295876,173.945556 147.071073,179.066679 140.689385,179.004907 L85.0242559,179.004907 C82.9907282,179.010757 80.9904744,178.488321 79.2198098,177.48831 C75.604151,175.49201 73.3532974,171.69403 73.3381583,167.5639 L73.3381583,32.377158 C73.4075638,25.99161 78.6386744,20.8704627 85.0242559,20.9360785 L94.4292833,20.9360785 L94.4292833,22.6001407 C94.4780527,24.8315299 95.8616039,26.8155423 97.9386219,27.6325322 C98.6203251,27.9013396 99.3465317,28.0394379 100.079318,28.0396155 L125.936125,28.0396155 C129.018229,28.0592249 131.53999,25.5907181 131.586161,22.5088978 L131.586161,20.9360785 L140.710441,20.9360785 C143.704228,20.9301104 146.588028,22.0645559 148.774901,24.1091563 C151.065267,26.2485323 152.364243,29.2430397 152.36145,32.377158 Z",fill:"#FFF","fill-rule":"nonzero"}}),t("rect",{attrs:{fill:"#32A5FB","fill-rule":"nonzero",opacity:".31",x:"83.150269",y:"112.888404",width:"34.3844997",height:"2.04243507",rx:"1.02121754"}}),t("rect",{attrs:{fill:"#32A5FB","fill-rule":"nonzero",opacity:".31",x:"83.150269",y:"117.878684",width:"34.3844997",height:"2.04243507",rx:"1.02121754"}}),t("path",{attrs:{fill:"#32A5FB","fill-rule":"nonzero",opacity:".18",d:"M69.3024189 94.5064888H156.3550725V99.97403836H69.3024189z"}}),t("path",{attrs:{d:"M56.2827726,80.714788 L162.306911,80.714788 C166.233611,80.714788 169.416831,83.8980077 169.416831,87.8247081 L169.416831,87.8247081 C169.416831,91.7514085 166.233611,94.9346281 162.306911,94.9346281 L56.2827726,94.9346281 L56.2827726,80.714788 Z",fill:"#32A5FB","fill-rule":"nonzero"}}),t("path",{attrs:{fill:"#FFF","fill-rule":"nonzero",d:"M56.2827726 80.714788H141.8965973V94.9276094H56.2827726z"}}),t("path",{attrs:{stroke:"#FFF","stroke-width":"1.47931156",d:"M154.607422 83.58542704A3.43213316 3.43213316 0 1 0 154.607422 90.44969336000001A3.43213316 3.43213316 0 1 0 154.607422 83.58542704Z"}}),t("path",{attrs:{stroke:"#FFF","stroke-width":"1.47931156",d:"M157.744771 92.5974086L156.341035 89.979442"}}),t("rect",{attrs:{fill:"#32A5FB","fill-rule":"nonzero",x:"83.150269",y:"107.827938",width:"55.3352512",height:"3.28474094",rx:"1.64237047"}}),t("rect",{attrs:{fill:"#32A5FB","fill-rule":"nonzero",opacity:".31",x:"83.150269",y:"130.063108",width:"34.3844997",height:"2.04243507",rx:"1.02121754"}}),t("rect",{attrs:{fill:"#32A5FB","fill-rule":"nonzero",opacity:".31",x:"83.150269",y:"135.053387",width:"34.3844997",height:"2.04243507",rx:"1.02121754"}}),t("rect",{attrs:{fill:"#32A5FB","fill-rule":"nonzero",x:"83.150269",y:"124.995623",width:"55.3352512",height:"3.28474094",rx:"1.64237047"}}),t("rect",{attrs:{fill:"#32A5FB","fill-rule":"nonzero",opacity:".31",x:"83.150269",y:"147.230792",width:"34.3844997",height:"2.04243507",rx:"1.02121754"}}),t("rect",{attrs:{fill:"#32A5FB","fill-rule":"nonzero",opacity:".31",x:"83.150269",y:"152.22809",width:"34.3844997",height:"2.04243507",rx:"1.02121754"}}),t("rect",{attrs:{fill:"#32A5FB","fill-rule":"nonzero",x:"83.150269",y:"142.170326",width:"55.3352512",height:"3.28474094",rx:"1.64237047"}}),t("path",{attrs:{d:"M42.0138018,5.20083982 C45.8044844,5.19643287 49.5724389,5.78613788 53.1805173,6.94849045 L53.1805173,1.8178374 C36.2923861,-2.90243326 18.2610998,3.51448464 8.15181697,17.8425107 C-1.95746583,32.1705369 -1.95746583,51.30961 8.15181697,65.6376361 C18.2610998,79.9656622 36.2923861,86.3825801 53.1805173,81.6623095 L53.1805173,76.5316564 C39.4549547,80.9364125 24.4224825,76.8598706 14.8027176,66.1242724 C5.18295264,55.3886743 2.77398915,40.0006819 8.65265009,26.8388321 C14.531311,13.6769823 27.5987769,5.20144381 42.0138018,5.20083982 L42.0138018,5.20083982 Z",opacity:".41",transform:"translate(103.174555 54.745682)",fill:"url(#w3e5gupfla)","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M147.39924,135.93774 C130.629517,135.93774 115.511844,125.833639 109.098289,110.338802 C102.684735,94.8439657 106.238944,77.0112897 118.102954,65.1593323 C129.966964,53.3073748 147.803244,49.7712935 163.291553,56.200594 C178.779863,62.6298944 188.868585,77.7578297 188.85157,94.5275448 C188.801292,117.393351 170.265086,135.910726 147.39924,135.93774 Z M147.39924,57.9461991 C127.224664,57.9461991 110.867775,74.2968364 110.860031,94.4714116 C110.852292,114.645987 127.196627,131.009159 147.371198,131.024667 C167.545769,131.040152 183.915222,114.702108 183.938474,94.5275448 C183.930738,74.3472797 167.579498,57.9866168 147.39924,57.9672552 L147.39924,57.9461991 Z",fill:"#32A5FB","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M203.541639,155.905879 C202.412361,155.906812 201.330023,155.454152 200.537646,154.649534 L173.375365,127.087188 C172.31478,126.016166 171.907488,124.459974 172.307407,123.006704 C172.707326,121.553434 173.853464,120.424723 175.31269,120.047116 C176.771916,119.669509 178.321686,120.100594 179.376334,121.177462 L206.538615,148.739808 C207.729175,149.948757 208.077902,151.754123 207.423234,153.319499 C206.768566,154.884876 205.238398,155.904455 203.541639,155.905879 L203.541639,155.905879 Z",fill:"#32A5FB","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M216.554267,164.665186 C215.618034,165.591351 214.351631,166.106732 213.03473,166.097635 C211.717829,166.088295 210.458766,165.555236 209.53559,164.616056 L177.558496,132.161692 C177.379884,131.98499 177.217782,131.792346 177.074208,131.586161 C176.989983,131.473862 176.912778,131.361563 176.842591,131.249264 C176.37602,130.46285 176.454714,129.467939 177.039114,128.764652 C177.660383,128.024962 178.338586,127.335026 179.067512,126.701161 C179.904609,125.957595 180.811937,125.297079 181.776721,124.728913 C182.584023,124.244353 183.611053,124.332061 184.324501,124.946492 L184.324501,124.946492 C184.420889,125.022456 184.512318,125.104508 184.59823,125.192146 L216.631472,157.653528 C217.551804,158.593174 218.060801,159.860167 218.04662,161.175361 C218.031838,162.490555 217.495066,163.746033 216.554267,164.665186 Z",fill:"#473F47","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M101.560259,51.9873422 L101.560259,66.277369 C101.560259,70.1776265 98.4067156,73.3437524 94.5064888,73.3592143 L69.3094376,73.3592143 L69.3094376,44.9054969 L94.5064888,44.9054969 C98.4067156,44.9209587 101.560259,48.0870847 101.560259,51.9873422 L101.560259,51.9873422 Z",fill:"#32A5FB","fill-rule":"nonzero",opacity:".18"}}),t("rect",{attrs:{fill:"#FFF","fill-rule":"nonzero",x:"39.2765177",y:"41.1505045",width:"61.0624918",height:"28.4537175",rx:"10.293968"}}),t("path",{attrs:{fill:"#32A5FB","fill-rule":"nonzero",d:"M98.198313 36.90420486A5.10257834 5.10257834 0 1 0 98.198313 47.10936154A5.10257834 5.10257834 0 1 0 98.198313 36.90420486Z"}}),t("rect",{attrs:{fill:"#32A5FB","fill-rule":"nonzero",x:"51.3346052",y:"50.2396916",width:"35.9637021",height:"2.81448957",rx:"1.40724478"}}),t("rect",{attrs:{fill:"#32A5FB","fill-rule":"nonzero",x:"51.3346052",y:"57.7286201",width:"35.9637021",height:"2.81448957",rx:"1.40724478"}}),t("path",{attrs:{d:"M213.318657,186.77402 C213.93303,187.542277 214.016477,188.607626 213.529217,189.462173 C213.016797,190.279411 212.036139,190.673375 211.100755,190.437769 C210.94034,190.397417 210.791416,190.320553 210.665597,190.213171 C210.405906,189.960499 210.363794,189.511304 210.11814,189.258631 C209.862498,189.048652 209.554217,188.912717 209.226768,188.865585 C208.646666,188.653264 208.100515,188.357728 207.605454,187.988251 C207.525231,187.942825 207.455794,187.88057 207.401912,187.805765 C207.351932,187.712973 207.325425,187.609356 207.324706,187.503962 C207.204836,186.964707 207.287264,186.400206 207.556323,185.917741 C207.703758,185.737138 207.884932,185.586954 208.089742,185.475564 C208.476422,185.236037 208.919499,185.102872 209.37416,185.089537 C209.728575,185.113723 210.076865,185.19428 210.405906,185.328172 C211.338872,185.596367 212.214443,186.034153 212.988779,186.619609",fill:"#32A5FB","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M211.500819,182.47157 L213.065984,187.861915 C213.065984,187.861915 212.7712,189.216519 211.114792,188.648006 C209.458384,188.079494 208.068686,183.833194 208.068686,183.833194 L211.500819,182.47157 Z",fill:"#FCBDBA","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M194.978853,193.743566 C194.552385,193.671066 194.119842,193.640506 193.687417,193.652323 C193.249418,193.671353 192.838407,193.869247 192.550391,194.19978 C192.126215,194.883072 192.25669,195.772673 192.859213,196.305383 C193.447996,196.791822 194.169346,197.090143 194.929722,197.161662 C195.391683,197.267199 195.871497,197.267199 196.333458,197.161662 C196.916008,196.993214 197.470484,196.508925 198.053034,196.69141 C198.307458,196.797489 198.544152,196.941873 198.754902,197.11955 C199.580434,197.71725 200.727912,197.573048 201.379887,196.789672 C201.54861,196.537687 201.669916,196.257019 201.737839,195.961468 C201.983493,195.027984 201.871194,193.855865 201.09914,193.315427 C200.186712,192.66269 199.477825,193.111885 198.600491,193.413688 C197.430185,193.778498 196.19581,193.890932 194.978853,193.743566 Z",fill:"#32A5FB","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M195.73687,188.514651 L198.024959,194.129593 C198.024959,194.129593 199.337452,194.922704 200.270936,194.57177 L201.190383,194.192761 L200.383235,186.352899 L195.73687,188.514651 Z",fill:"#FCBDBA","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M178.730615,131.438768 C178.576205,131.235227 178.372663,131.010629 178.127009,131.045722 C177.881355,131.080816 177.839243,131.179077 177.691851,131.136965 C177.599923,131.104408 177.521087,131.042817 177.467254,130.961498 C177.117969,130.590902 176.729692,130.259101 176.309172,129.971865 C176.052846,129.746652 175.743849,129.58974 175.410781,129.515651 C174.914001,129.49069 174.45121,129.76781 174.238662,130.217518 C174.029496,130.654538 173.977439,131.15032 174.09127,131.621254 C174.215029,132.092099 174.404024,132.543324 174.652764,132.961821 C174.80347,133.275497 174.994599,133.568089 175.221277,133.832137 C175.923145,134.597173 177.088245,134.723509 178.028748,135.193761 C178.129121,135.254974 178.241751,135.293316 178.358626,135.306059 C178.561123,135.272667 178.735688,135.145 178.828877,134.962144 C179.192376,134.443598 179.412685,133.838354 179.467577,133.207475 C179.417108,132.554334 179.158847,131.934509 178.730615,131.438768 L178.730615,131.438768 Z",fill:"#FCBDBA","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M187.854896,125.353575 C187.742193,125.322325 187.621841,125.334861 187.517999,125.388669 C187.45959,125.435384 187.407663,125.489671 187.363588,125.550098 C187.167065,125.760658 186.844206,125.767677 186.577497,125.886995 C186.231281,126.061685 185.975977,126.375709 185.875629,126.750292 C185.782483,127.119399 185.742308,127.499878 185.756311,127.880299 C185.738344,128.081377 185.759801,128.284029 185.819479,128.476887 C185.883838,128.668609 186.053632,128.805539 186.254637,128.82782 C186.414464,128.798905 186.56565,128.734111 186.696814,128.638316 C186.964239,128.491512 187.27427,128.441908 187.574149,128.497943 C187.959087,128.62233 188.326923,128.794458 188.669062,129.010306 C189.023999,129.220368 189.465189,129.220368 189.820125,129.010306 C189.975575,128.870606 190.097868,128.697956 190.178078,128.504961 C190.493918,127.803094 190.879946,127.02402 190.178078,126.455507 C189.519271,125.882281 188.715624,125.501095 187.854896,125.353575 L187.854896,125.353575 Z",fill:"#FCBDBA","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M208.714405,151.147214 C208.549985,154.099597 208.219585,157.040391 207.724771,159.955654 C207.09309,162.847349 206.714082,166.13209 206.714082,166.13209 L212.56064,182.976915 C212.56064,182.976915 209.00217,185.342209 206.714082,184.422763 C204.425993,183.503316 198.635584,170.58895 198.635584,170.58895 L196.431719,155.898858 L202.26424,149.20304 L208.714405,151.147214 Z",fill:"#473F47","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M192.578466,149.975095 C192.578466,149.975095 188.409371,163.640459 188.409371,167.19191 C188.409371,170.743361 193.40667,188.247942 193.40667,188.247942 C193.40667,188.247942 198.832107,190.086835 200.102488,188.247942 L201.372868,186.409048 L198.319744,168.792168 C198.319744,168.792168 202.643249,159.597701 203.408285,157.232407 C203.871142,155.774686 204.202346,154.278395 204.397918,152.76151 L192.578466,149.975095 Z",fill:"#473F47","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M194.333135,112.544489 C193.845578,113.518538 193.534293,114.571203 193.413688,115.653763 C193.30181,116.743488 193.774265,117.811181 194.655994,118.461234 C194.921259,118.587774 195.168982,118.748204 195.392955,118.938504 C196.179047,119.738633 195.280656,121.1915 195.729852,122.230264 C196.104482,122.921228 196.936724,123.222765 197.667007,122.932132 C198.36668,122.60247 198.881795,121.976606 199.070742,121.226593 C199.27237,120.474116 199.362235,119.696076 199.337452,118.917448 L199.414657,114.278103 C199.52501,113.245983 199.36287,112.202966 198.944406,111.253053 C198.375251,110.252662 197.285596,109.664249 196.136935,109.737018 C195.056059,109.968635 194.726181,111.63908 194.333135,112.544489 Z",fill:"#FCBDBA","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M178.148065,135.706124 C178.148065,135.706124 187.047748,143.658285 187.679429,143.658285 C188.31111,143.658285 192.262625,138.660987 192.262625,138.660987 L192.578466,149.968076 C193.67738,150.616727 194.822118,151.184405 196.00358,151.666596 C197.926698,152.452688 200.362179,153.18263 202.488838,152.986107 C206.812343,152.593061 208.714405,151.147214 208.714405,151.147214 L206.054326,124.518353 C206.054326,124.518353 201.014916,120.889696 199.29534,121.444172 C198.062761,121.664023 196.801001,121.664023 195.568422,121.444172 C193.08381,121.121313 190.543049,124.518353 190.543049,124.518353 L187.237252,135.376246 L179.481614,132.624925 C178.444862,133.279256 177.915475,134.502419 178.148065,135.706124 Z",fill:"#32A5FB","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M195.084133,107.512098 C196.017617,106.662838 198.130239,106.311904 199.161985,106.199605 C200.766386,105.971207 202.391228,106.447145 203.618845,107.505079 C205.303327,109.105337 205.478794,111.716285 205.457738,114.116673 C205.436682,116.517061 205.401589,119.092915 206.805324,120.917771 C208.012537,122.475918 209.984785,123.121636 211.521875,124.32183 C213.057154,125.460279 214.028716,127.203977 214.188973,129.108567 C214.546925,136.323768 203.527602,133.228531 199.884909,131.621254 C199.240321,131.372555 198.647673,131.006017 198.137258,130.540378 C197.598548,129.958233 197.202142,129.259117 196.979176,128.497943 C196.1241,125.919327 196.269401,123.113521 197.386259,120.637024 C197.554708,120.272053 197.737193,119.815839 197.505577,119.49298 C197.379039,119.350052 197.220234,119.23937 197.042344,119.170121 C196.091205,118.775322 195.457688,117.86207 195.42103,116.832901 C195.571841,116.09362 195.904758,115.403661 196.389607,114.825559 C196.872507,114.238155 197.035256,113.450661 196.824765,112.719956 C196.572093,112.151443 195.968487,111.870696 195.519291,111.456594 C194.7332,110.754727 194.164687,108.866702 194.817424,107.856013 C194.892006,107.730952 194.981571,107.61546 195.084133,107.512098 Z",fill:"#F6A569","fill-rule":"nonzero"}})])])}},An="zt-empty-not-found-",kn={render:function(){var t=arguments[0];return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280 260"}},[t("defs",[t("linearGradient",{attrs:{x1:"47.190027%",y1:"49.7417137%",x2:"-18.4366577%",y2:"43.6792183%",id:An+"1"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"95%"}})]),t("linearGradient",{attrs:{x1:"51.0994315%",y1:"105.246994%",x2:"49.2116272%",y2:"10.6863496%",id:An+"2"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"95%"}})]),t("linearGradient",{attrs:{x1:"-55.8147576%",y1:"-23.5317523%",x2:"173.522234%",y2:"122.497215%",id:An+"3"}},[t("stop",{attrs:{"stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{offset:"99%"}})]),t("linearGradient",{attrs:{x1:"124.083696%",y1:"117.846056%",x2:"-77.3333199%",y2:"-77.5849717%",id:An+"4"}},[t("stop",{attrs:{"stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{offset:"99%"}})]),t("linearGradient",{attrs:{x1:"107.760587%",y1:"52.8644443%",x2:"-87.8484676%",y2:"43.1459303%",id:An+"5"}},[t("stop",{attrs:{"stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{offset:"99%"}})]),t("linearGradient",{attrs:{x1:"90.8931762%",y1:"-12.4547117%",x2:"-55.4231897%",y2:"224.749818%",id:An+"6"}},[t("stop",{attrs:{"stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{offset:"99%"}})]),t("linearGradient",{attrs:{x1:"57.1869256%",y1:"119.088653%",x2:"28.6409948%",y2:"-51.3581775%",id:An+"7"}},[t("stop",{attrs:{"stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{offset:"99%"}})]),t("linearGradient",{attrs:{x1:"40.9439754%",y1:"53.5951126%",x2:"70.8394199%",y2:"33.7024579%",id:An+"8"}},[t("stop",{attrs:{"stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{offset:"99%"}})]),t("linearGradient",{attrs:{x1:"-4.75564601%",y1:"15.1416564%",x2:"175.010216%",y2:"121.890033%",id:An+"9"}},[t("stop",{attrs:{"stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{offset:"99%"}})])]),t("g",{attrs:{transform:"translate(12 15)","fill-rule":"nonzero",fill:"none"}},[t("path",{attrs:{d:"M243.960471,131.989478 C236.673706,139.400615 233.264928,150.083887 225.181267,157.092571 C213.312353,167.367977 198.821166,175.728458 182.750439,182.58301 C175.149745,185.819763 166.353708,187.266883 157.732747,188.671189 C143.877631,190.931778 129.521436,193.192368 115.557652,191.282855 C104.853895,189.822891 95.1402212,185.995302 85.6257709,182.21909 L78.0975225,179.222096 C76.4373233,178.554195 74.7590129,177.899138 73.0807025,177.231236 L68.1906615,175.287472 C53.8344668,169.55037 39.5688285,163.564946 27.4705046,155.657164 C13.9896877,146.880254 7.0543103,135.311049 4.82662492,122.411133 C2.24275136,107.503231 5.08276542,89.0956237 22.4816523,80.5285036 C32.026288,75.8189423 44.700221,70.4436932 54.0758183,65.5585937 C68.8727204,57.8520389 78.9910114,51.0492449 89.1514301,40.2215353 C107.981107,20.14596 144.191559,10.5384549 174.684889,24.8084256 C186.535693,30.3485823 195.500768,38.5774703 202.087231,47.4999482 C207.653425,55.0224021 213.767636,61.2653217 221.169105,67.9443359 C229.621028,75.5738252 240.991208,76.0895447 248.38664,84.2542114 C259.464696,96.4733822 255.69657,120.061444 243.960471,131.989478 Z",fill:"#D0EAFF",opacity:".18"}}),t("path",{attrs:{d:"M240.231798,136.989478 C232.945033,144.400615 229.536254,155.083887 221.452594,162.092571 C209.583679,172.367977 195.092493,180.728458 179.021765,187.58301 C171.421072,190.819763 162.625035,192.266883 154.004073,193.671189 C140.148957,195.931778 125.792762,198.192368 111.828978,196.282855 C101.125222,194.822891 91.4115477,190.995302 81.8970974,187.21909 L74.368849,184.222096 C72.7086499,183.554195 71.0303395,182.899138 69.3520291,182.231236 L64.461988,180.287472 C50.1057933,174.55037 35.840155,168.564946 23.7418312,160.657164 C10.2610142,151.880254 3.32563683,140.311049 1.09795145,127.411133 C-1.4859221,112.503231 1.35409195,94.0956237 18.7529788,85.5285036 C28.2976146,80.8189423 40.9715476,75.4436932 50.3471448,70.5585937 C65.1440469,62.8520389 75.262338,56.0492449 85.4227566,45.2215353 C104.252433,25.14596 140.462886,15.5384549 170.956216,29.8084256 C182.807019,35.3485823 191.772094,43.5774703 198.358557,52.4999482 C203.924752,60.0224021 210.038962,66.2653217 217.440432,72.9443359 C225.892355,80.5738252 237.262534,81.0895447 244.657967,89.2542114 C255.736023,101.473382 251.967896,125.061444 240.231798,136.989478 Z",fill:"#51B2FF",opacity:".18"}}),t("rect",{attrs:{fill:"#51B2FF",opacity:".10053943",transform:"rotate(-180 174.824228 192.10285)",x:"129",y:"164",width:"91.6484561",height:"56.2057007",rx:"8.01493333"}}),t("rect",{attrs:{fill:"#51B2FF",opacity:".10053943",transform:"rotate(-180 61.824228 35.10285)",x:"16",y:"7",width:"91.6484561",height:"56.2057007",rx:"8.01493333"}}),t("rect",{attrs:{fill:"url(#9xtlpep8ga)",transform:"rotate(-180 188.824228 201.10285)",x:"143",y:"173",width:"91.6484561",height:"56.2057007",rx:"8.01493333"}}),t("rect",{attrs:{fill:"url(#9xtlpep8ga)",transform:"rotate(-180 73.824228 28.10285)",x:"28",width:"91.6484561",height:"56.2057007",rx:"8.01493333"}}),t("rect",{attrs:{fill:"#51B2FF",opacity:".20370629",transform:"rotate(-180 52.788361 30.656532)",x:"24",y:"13",width:"57.5767221",height:"35.3130641",rx:"5.0336"}}),t("rect",{attrs:{fill:"url(#knxd8yvbpb)",transform:"rotate(-180 54.788361 29.656532)",x:"26",y:"12",width:"57.5767221",height:"35.3130641",rx:"5.0336"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M33.3059382 18.8294537H43.8912114V19.8294537H33.3059382z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M33.3059382 20.336342H39.76579568V21.336342H33.3059382z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M42.3719715 20.336342H62.7026128V21.336342H42.3719715z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M64.5985748 20.336342H76.04228029999999V21.336342H64.5985748z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M36.6655582 21.8370546H45.546318299999996V22.8370546H36.6655582z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M39.5187648 23.343943H50.104038V24.343943H39.5187648z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M50.7895487 23.343943H59.657957249999995V24.343943H50.7895487z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M39.5002375 24.8446556H47.67078382V25.8446556H39.5002375z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M48.4612827 24.8446556H65.327316V25.8446556H48.4612827z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M33.3059382 26.8764846H43.8912114V27.8764846H33.3059382z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M33.3059382 28.3771971H39.76579568V29.3771971H33.3059382z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M42.3719715 28.3771971H62.7026128V29.3771971H42.3719715z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M64.5985748 28.3771971H76.04228029999999V29.3771971H64.5985748z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M36.6655582 29.8779097H45.546318299999996V30.8779097H36.6655582z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M39.5187648 31.3847981H50.104038V32.3847981H39.5187648z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M50.7895487 31.3847981H59.657957249999995V32.3847981H50.7895487z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M39.5002375 32.8855107H47.67078382V33.8855107H39.5002375z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M48.4612827 32.8855107H65.327316V33.8855107H48.4612827z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M33.3059382 34.9173397H43.8912114V35.9173397H33.3059382z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M33.3059382 36.424228H39.76579568V37.424228H33.3059382z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M42.3719715 36.424228H62.7026128V37.424228H42.3719715z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M64.5985748 36.424228H76.04228029999999V37.424228H64.5985748z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M36.6655582 37.9249406H45.546318299999996V38.9249406H36.6655582z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M39.5187648 39.4256532H50.104038V40.4256532H39.5187648z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M50.7895487 39.4256532H59.657957249999995V40.4256532H50.7895487z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M39.5002375 40.9325416H47.67078382V41.9325416H39.5002375z"}}),t("path",{attrs:{fill:"#74C2FF",opacity:".45189267",d:"M48.4612827 40.9325416H65.327316V41.9325416H48.4612827z"}}),t("rect",{attrs:{fill:"#51B2FF",opacity:".20370629",transform:"rotate(-180 187.311876 194.512352)",x:"161",y:"175",width:"52.623753",height:"39.0247031",rx:"7.64053333"}}),t("rect",{attrs:{"fill-opacity":".79627404",fill:"#FFF",transform:"rotate(-180 188.165083 193.155107)",x:"161.853207",y:"173.642755",width:"52.623753",height:"39.0247031",rx:"7.64053333"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M167.695487 183.740143H181.7762471V184.77149691999998H167.695487z"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M167.695487 185.734917H176.29216158000003V186.734917H167.695487z"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M179.75677 185.734917H206.8004755V186.734917H179.75677z"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M172.166746 187.742043H183.98717359999998V188.76722114999998H172.166746z"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M175.95867 189.736817H190.0394301V190.76817092H175.95867z"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M190.953444 189.736817H202.7553442V190.88551059H190.953444z"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M175.933967 191.737767H186.8095014V192.737767H175.933967z"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M187.853207 191.737767H210.2897866V192.81235132H187.853207z"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M167.695487 194.442755H181.7762471V195.47410892H167.695487z"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M167.695487 196.43753H176.29216158000003V197.43753H167.695487z"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M179.75677 196.43753H206.8004755V197.43753H179.75677z"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M172.166746 198.43848H183.98717359999998V199.46365815H172.166746z"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M175.95867 200.43943H190.0394301V201.47078391999997H175.95867z"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M190.953444 200.43943H202.7553442V201.58812358999998H190.953444z"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M175.933967 202.44038H186.8095014V203.44038H175.933967z"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".60044643",d:"M187.853207 202.44038H210.2897866V203.51496432000002H187.853207z"}}),t("path",{attrs:{d:"M16.0337292,120.501663 C20.2270784,115.838955 20.2270784,115.838955 24.9824228,110.243705 L45.2204276,86.55962 C49.6978622,81.4275534 51.4703088,79.0992874 53.8665083,75.4432304 L73.0114014,75.4432304 C72.4640431,80.5833296 72.2145367,85.7507924 72.264133,90.919715 L72.264133,121.248931 L74.9691211,121.248931 C78.0708226,121.219875 81.1665256,120.970155 84.2327791,120.501663 L84.2327791,137.472684 C81.2003431,137.10018 78.1478652,136.914556 75.0926366,136.916865 L72.2950119,136.916865 L72.2950119,141.579572 C72.2056715,145.416927 72.4557343,149.254667 73.0422803,153.047981 L53.7985748,153.047981 C54.328057,149.186492 54.5777969,145.291789 54.5458432,141.394299 L54.5458432,136.824228 L28.1567696,136.824228 C22.0921615,136.824228 19.5106888,136.916865 16.0337292,137.194774 L16.0337292,120.501663 Z M54.6384798,110.620428 C54.6384798,106.420903 54.823753,101.295012 55.2004751,97.1881235 C53.3477435,99.8004751 51.9334917,101.665558 49.4199525,104.833729 L35.8023753,121.434204 L54.6384798,121.434204 L54.6384798,110.620428 Z",fill:"#51B2FF"}}),t("path",{attrs:{d:"M16.0337292,120.501663 C20.2270784,115.838955 20.2270784,115.838955 24.9824228,110.243705 L45.2204276,86.55962 C49.6978622,81.4275534 51.4703088,79.0992874 53.8665083,75.4432304 L73.0114014,75.4432304 C72.4640431,80.5833296 72.2145367,85.7507924 72.264133,90.919715 L72.264133,121.248931 L74.9691211,121.248931 C78.0708226,121.219875 81.1665256,120.970155 84.2327791,120.501663 L84.2327791,137.472684 C81.2003431,137.10018 78.1478652,136.914556 75.0926366,136.916865 L72.2950119,136.916865 L72.2950119,141.579572 C72.2056715,145.416927 72.4557343,149.254667 73.0422803,153.047981 L53.7985748,153.047981 C54.328057,149.186492 54.5777969,145.291789 54.5458432,141.394299 L54.5458432,136.824228 L28.1567696,136.824228 C22.0921615,136.824228 19.5106888,136.916865 16.0337292,137.194774 L16.0337292,120.501663 Z M54.6384798,110.620428 C54.6384798,106.420903 54.823753,101.295012 55.2004751,97.1881235 C53.3477435,99.8004751 51.9334917,101.665558 49.4199525,104.833729 L35.8023753,121.434204 L54.6384798,121.434204 L54.6384798,110.620428 Z",fill:"url(#d0d3q7amrc)"}}),t("path",{attrs:{d:"M119.811401,97.1140143 C121.664133,97.4228029 123.387173,98.5591449 125.246081,98.9667458 C126.870309,99.3372922 128.580998,99.1458432 130.186698,99.7140143 C133.181948,100.776247 135.127316,104.389074 135.553444,108.014252 C135.979572,111.63943 135.219952,115.307838 134.355344,118.828029 C132.08266,128.104038 128.994774,137.367696 123.43658,144.4019 C123.047506,144.889786 122.578147,145.402375 122.0038,145.390243 C121.605264,145.335186 121.232731,145.160763 120.935392,144.889786 C119.768543,144.09074 118.70087,143.155749 117.754869,142.104513 C116.272684,140.319715 115.414252,137.966746 114.666983,135.632304 C112.561045,129.061283 108.540618,124.898812 107.793349,117.932542 C106.978147,110.626603 110.973872,95.6565321 119.811401,97.1140143 Z",fill:"#FFF"}}),t("path",{attrs:{d:"M113.833254,101.795249 C113.044609,101.652874 112.231072,101.799793 111.542043,102.209026 C110.081126,103.107389 109.055551,104.568666 108.707363,106.247981 C108.372966,107.913004 108.312472,109.621433 108.528266,111.305938 C108.950877,116.249369 109.909636,121.132209 111.387648,125.868409 C111.819952,127.23943 110.584798,130.494062 111.480285,131.618052 C112.209026,132.532067 111.844656,138.022328 112.795724,138.701663 C115.432779,140.6038 120.910689,139.553919 123.547743,141.456057 C126.962945,143.926366 126.734442,137.404751 126.190974,134.71829 C125.573397,131.72304 120.935392,132.247981 117.384323,122.132067 C112.659857,108.668884 115.043705,102.073159 113.833254,101.795249 Z",fill:"#1692F5",opacity:".24762835"}}),t("path",{attrs:{d:"M160.021853,120.155819 C164.215202,115.493112 164.215202,115.493112 168.970546,109.897862 L189.208551,86.207601 C192.367158,82.7257884 195.257455,79.0096921 197.854632,75.0912114 L216.999525,75.0912114 C216.451929,80.2333583 216.202422,85.40289 216.252257,90.5738717 L216.252257,120.884561 L218.957245,120.884561 C222.048492,120.850958 225.133608,120.60126 228.190024,120.137292 L228.190024,137.108314 C225.158,136.730666 222.105331,136.542968 219.049881,136.546318 L216.252257,136.546318 L216.252257,141.209026 C216.162464,145.04639 216.412529,148.88417 216.999525,152.677435 L197.786698,152.677435 C198.31381,148.832274 198.563544,144.954168 198.533967,141.073159 L198.533967,136.503088 L172.144893,136.503088 C166.080285,136.503088 163.467933,136.595724 160.021853,136.87981 L160.021853,120.155819 Z M198.626603,110.274584 C198.626603,106.075059 198.811876,100.949169 199.182423,96.8484561 C197.329691,99.4546318 195.921615,101.319715 193.4019,104.494062 L179.815202,121.094537 L198.651306,121.094537 L198.626603,110.274584 Z",fill:"#51B2FF"}}),t("path",{attrs:{d:"M160,120.064608 C164.193349,115.4019 164.193349,115.4019 168.948694,109.806651 L189.186698,86.1163895 C192.345305,82.634577 195.235602,78.9184807 197.832779,75 L216.977672,75 C216.430076,80.1421469 216.180569,85.3116786 216.230404,90.4826603 L216.230404,120.793349 L218.935392,120.793349 C222.02664,120.759747 225.111755,120.510048 228.168171,120.046081 L228.168171,137.017102 C225.136148,136.639454 222.083478,136.451756 219.028029,136.455107 L216.230404,136.455107 L216.230404,141.117815 C216.140611,144.955178 216.390677,148.792958 216.977672,152.586223 L197.764846,152.586223 C198.291957,148.741063 198.541692,144.862956 198.512114,140.981948 L198.512114,136.411876 L172.12304,136.411876 C166.058432,136.411876 163.446081,136.504513 160,136.788599 L160,120.064608 Z M198.604751,110.183373 C198.604751,105.983848 198.790024,100.857957 199.16057,96.7572447 C197.307838,99.3634204 195.899762,101.228504 193.380048,104.40285 L179.793349,121.003325 L198.629454,121.003325 L198.604751,110.183373 Z",fill:"url(#3oerpozpud)"}}),t("path",{attrs:{d:"M99.6783848,145.359145 C96.704682,142.42805 94.3889235,138.897571 92.8850356,135.002375 C90.4279761,128.152576 89.1966545,120.923527 89.2475059,113.646556 C89.2475059,103.857957 91.5819477,93.6926366 95.1268409,87.8194774 C100.814727,78.3026128 110.510689,73.0840855 122.263183,73.0840855 C131.310689,73.0840855 139.234204,76.1719715 144.92209,81.7301663 C147.89565,84.6589836 150.211453,88.1874251 151.715439,92.0807601 C154.177627,98.9611087 155.40691,106.221826 155.346793,113.529216 C155.346793,123.32399 153.018527,133.581948 149.473634,139.467458 C143.878385,148.805226 134.089786,154.04228 122.244656,154.04228 C113.104513,154.04228 105.366271,151.040855 99.6783848,145.359145 Z M108.324466,112.905463 C108.324466,129.580048 113.07981,138.176722 122.312589,138.176722 C131.545368,138.176722 136.115439,129.783848 136.115439,113.183373 C136.115439,97.2375297 131.267458,88.8446556 122.219952,88.8446556 C113.481235,88.8446556 108.349169,97.7007126 108.349169,112.905463 L108.324466,112.905463 Z",fill:"#51B2FF"}}),t("path",{attrs:{d:"M99.6783848,145.359145 C96.704682,142.42805 94.3889235,138.897571 92.8850356,135.002375 C90.4279761,128.152576 89.1966545,120.923527 89.2475059,113.646556 C89.2475059,103.857957 91.5819477,93.6926366 95.1268409,87.8194774 C100.814727,78.3026128 110.510689,73.0840855 122.263183,73.0840855 C131.310689,73.0840855 139.234204,76.1719715 144.92209,81.7301663 C147.89565,84.6589836 150.211453,88.1874251 151.715439,92.0807601 C154.177627,98.9611087 155.40691,106.221826 155.346793,113.529216 C155.346793,123.32399 153.018527,133.581948 149.473634,139.467458 C143.878385,148.805226 134.089786,154.04228 122.244656,154.04228 C113.104513,154.04228 105.366271,151.040855 99.6783848,145.359145 Z M108.324466,112.905463 C108.324466,129.580048 113.07981,138.176722 122.312589,138.176722 C131.545368,138.176722 136.115439,129.783848 136.115439,113.183373 C136.115439,97.2375297 131.267458,88.8446556 122.219952,88.8446556 C113.481235,88.8446556 108.349169,97.7007126 108.349169,112.905463 L108.324466,112.905463 Z",fill:"url(#6zbsv6cove)"}}),t("path",{attrs:{d:"M18.1273159,120.155819 C22.3268409,115.493112 22.3268409,115.493112 27.0821853,109.897862 L47.32019,86.207601 C50.4787971,82.7257884 53.3690942,79.0096921 55.9662708,75.0912114 L75.1111639,75.0912114 C74.5635675,80.2333583 74.3140608,85.40289 74.3638955,90.5738717 L74.3638955,120.884561 L77.0688836,120.884561 C80.1704446,120.852399 83.2659288,120.602696 86.3325416,120.137292 L86.3325416,137.108314 C83.3005183,136.730666 80.2478486,136.542968 77.192399,136.546318 L74.3947743,136.546318 L74.3947743,141.209026 C74.3049817,145.04639 74.5550471,148.88417 75.1420428,152.677435 L55.8983373,152.677435 C56.4254489,148.832274 56.6751832,144.954168 56.6456057,141.073159 L56.6456057,136.503088 L30.2503563,136.503088 C24.191924,136.503088 21.6042755,136.595724 18.1273159,136.87981 L18.1273159,120.155819 Z M56.7382423,110.274584 C56.7382423,106.075059 56.9235154,100.949169 57.2940618,96.8484561 C55.4413302,99.4546318 54.0332542,101.319715 51.5135392,104.494062 L37.9268409,121.094537 L56.7382423,121.094537 L56.7382423,110.274584 Z",fill:"#51B2FF"}}),t("path",{attrs:{d:"M101.771971,145.704988 C98.7987049,142.77593 96.4829461,139.247556 94.9786223,135.354394 C92.5152544,128.505731 91.2776556,121.276649 91.3225653,113.998575 C91.3225653,104.209976 93.6570071,94.0446556 97.2019002,88.1653207 C102.889786,78.6546318 112.585748,73.4361045 124.338242,73.4361045 C133.379572,73.4361045 141.309264,76.5239905 146.99715,82.0821853 C149.972477,85.0095531 152.288546,88.5383998 153.790499,92.4327791 C156.266648,99.3165681 157.504437,106.584401 157.446556,113.899762 C157.446556,123.688361 155.11829,133.952494 151.573397,139.838005 C145.978147,149.16342 136.183373,154.381948 124.344418,154.381948 C115.204276,154.375772 107.466033,151.392874 101.771971,145.704988 Z M110.467458,113.282185 C110.467458,129.95677 115.222803,138.553444 124.455582,138.553444 C133.595724,138.553444 138.258432,130.16057 138.258432,113.566271 C138.258432,97.6142518 133.404276,89.2213261 124.362945,89.2213261 C115.574822,89.1966746 110.467458,98.0527316 110.467458,113.282185 Z",fill:"#51B2FF"}}),t("path",{attrs:{d:"M139.555344,80.8285036 C140.976066,81.8639272 141.635976,83.6512848 141.228979,85.3615202 C143.582304,85.5862342 145.748105,86.7425139 147.244181,88.5729216 C148.571651,90.3244411 149.37474,92.4167552 149.560095,94.6066508 C149.73812,96.7837127 149.690519,98.973349 149.418052,101.140618 C149.387376,101.889581 149.232954,102.628304 148.961045,103.326841 C148.314244,104.55377 147.151657,105.426277 145.792874,105.704513 C144.451485,105.972311 143.077449,106.03685 141.716865,105.895962 L138.474584,105.72304 C138.367698,105.725472 138.261793,105.702173 138.165796,105.655107 C138.034971,105.543454 137.956634,105.382302 137.949644,105.210451 C137.727316,103.88266 137.387648,103.302138 137.146793,101.974347 C136.545048,99.1709888 135.367343,96.5232555 133.688361,94.1990499 C133.390873,93.8516352 133.179312,93.4390915 133.070784,92.9947743 C133.03356,92.380543 133.170568,91.768287 133.466033,91.2285036 C133.905053,90.1665482 134.268275,89.07482 134.552969,87.9615202 C134.814746,86.629218 135.155006,85.313545 135.571971,84.0213777 C135.996596,82.7153748 136.872318,81.6032085 138.04228,80.8840855",fill:"url(#mf2fnkwdrf)"}}),t("path",{attrs:{d:"M138.04228,119.618527 C138.04228,119.618527 149.912114,120.668409 155.334442,113.442755 C157.495962,110.577197 152.67886,97.0769596 152.67886,97.0769596 L147.20095,106.884086 L138.554869,108.847981 L138.04228,119.618527 Z",fill:"url(#5avtbuky0g)"}}),t("path",{attrs:{d:"M162.294537,120.155819 C166.487886,115.493112 166.487886,115.493112 171.24323,109.897862 L191.481235,86.207601 C195.95867,81.0817102 197.731116,78.7472684 200.127316,75.0912114 L219.272209,75.0912114 C218.730086,80.2398604 218.486764,85.415598 218.543468,90.592399 L218.543468,120.903088 L221.248456,120.903088 C224.339704,120.869485 227.42482,120.619787 230.481235,120.155819 L230.481235,137.126841 C227.449212,136.749193 224.396542,136.561495 221.341093,136.564846 L218.543468,136.564846 L218.543468,141.227553 C218.453675,145.064917 218.703741,148.902697 219.290736,152.695962 L200.059382,152.695962 C200.587382,148.844679 200.837118,144.960348 200.806651,141.073159 L200.806651,136.503088 L174.417577,136.503088 C168.352969,136.503088 165.740618,136.595724 162.294537,136.87981 L162.294537,120.155819 Z M200.899287,110.274584 C200.899287,106.075059 201.084561,100.949169 201.461283,96.8484561 C199.608551,99.4546318 198.194299,101.319715 195.68076,104.494062 L182.063183,121.094537 L200.899287,121.094537 L200.899287,110.274584 Z",fill:"#51B2FF"}}),t("path",{attrs:{d:"M110.189549,98.4973872 C109.869732,98.6141132 109.559924,98.7566245 109.263183,98.9235154 C108.984484,99.0645368 108.73998,99.2647768 108.546793,99.5102138 C108.355073,99.7631769 108.308315,100.097493 108.423278,100.393349 C108.680169,100.789032 109.152867,100.987419 109.615202,100.893587 C110.374822,100.819477 111.07886,100.442755 111.83848,100.313064 C112.5981,100.183373 113.314489,99.6584323 112.777197,98.8494062 C112.239905,98.04038 110.949169,98.2133017 110.189549,98.4973872 Z",fill:"#FFCAAC"}}),t("path",{attrs:{d:"M112.610451,100.313064 C111.498812,100.022803 110.337767,100.510689 109.337292,101.072684 C109.101279,101.187617 108.891149,101.349417 108.719715,101.548219 C108.508385,101.716517 108.430973,102.002639 108.528617,102.254532 C108.626261,102.506425 108.876295,102.665616 109.145843,102.647506 C109.37313,102.670252 109.602608,102.655649 109.825178,102.604276 L111.362945,102.338717 C111.720609,102.296876 112.069005,102.196738 112.394299,102.04228 C113.092162,101.634679 113.685036,100.578622 112.610451,100.313064 Z",fill:"#FFCAAC"}}),t("path",{attrs:{d:"M110.467458,102.357245 C110.148585,102.478668 109.838978,102.623151 109.541093,102.789549 C109.25928,102.939483 109.014523,103.15048 108.824703,103.407126 C108.636321,103.659109 108.589734,103.989872 108.701188,104.284086 C108.958078,104.679769 109.430777,104.878155 109.893112,104.784323 C110.652732,104.710214 111.35677,104.333492 112.11639,104.2038 C112.87601,104.074109 113.592399,103.555344 113.055107,102.740143 C112.517815,101.924941 111.214727,102.073159 110.467458,102.357245 Z",fill:"#FFCAAC"}}),t("path",{attrs:{d:"M112.863658,103.913539 C111.72114,103.820903 110.665083,104.531116 109.775772,105.235154 C109.559655,105.393283 109.377036,105.592694 109.23848,105.821853 C109.064427,106.025863 109.041924,106.318885 109.182785,106.54708 C109.323646,106.775275 109.595676,106.886486 109.856057,106.822328 C110.081667,106.80551 110.302903,106.751245 110.510689,106.661758 L111.974347,106.124466 C112.32148,106.020308 112.64907,105.859643 112.943943,105.648931 C113.555344,105.142518 113.969121,104.018527 112.863658,103.913539 Z",fill:"#FFCAAC"}}),t("path",{attrs:{d:"M145.595249,86.4793349 C143.794718,85.6211717 141.814362,85.2081562 139.820903,85.2750594 C139.483917,85.2587863 139.147272,85.3134911 138.832779,85.4356295 C138.518333,85.5728639 138.31478,85.8830408 138.314014,86.2261283 C138.374031,86.5191078 138.541451,86.7790488 138.783373,86.9548694 C139.512731,87.6180724 140.331861,88.1752468 141.216627,88.6099762 C141.483747,88.715394 141.727258,88.8728367 141.933017,89.0731591 C142.139949,89.2814694 142.182865,89.6020816 142.038005,89.8574822 C141.834204,90.1415677 141.364846,90.1539192 141.210451,90.4750594 C141.006651,90.8764846 141.51924,91.271734 141.963895,91.3458432 C142.43651,91.4267497 142.922087,91.3820255 143.371971,91.216152 C143.686951,91.0540814 144.031478,90.9574459 144.384798,90.9320665 C144.733848,91.0068982 145.062533,91.1564919 145.348219,91.3705463 C146.32399,91.9263658 149.356295,91.9448931 149.164846,90.2527316 C148.985748,88.6840855 146.842755,87.127791 145.595249,86.4793349 Z",fill:"#FFCAAC"}}),t("path",{attrs:{d:"M130.674584,100.096912 C130.674584,100.096912 144.329216,105.72304 145.891686,105.432779 C147.454157,105.142518 144.928266,91.6669834 144.928266,91.6669834 L149.584798,89.536342 C149.584798,89.536342 160.08361,110.348694 151.486936,113.374822 C146.170796,115.153715 140.410827,115.092809 135.133492,113.2019 L130.674584,100.096912 Z",fill:"#FFF"}}),t("path",{attrs:{d:"M137.937292,92.2845606 C137.88922,93.4935224 137.603835,94.6812254 137.097387,95.7800475 C136.09229,97.440016 134.365417,98.5310339 132.434679,98.7258907 C131.74079,98.7706443 131.051265,98.8676733 130.371971,99.016152 C129.732514,99.1471754 129.201387,99.5901671 128.95772,100.195724 C128.408076,101.529691 127.839905,102.882185 126.067458,102.431354 C125.901026,102.394424 125.739394,102.338475 125.585748,102.264608 C125.028594,102.003009 124.527366,101.636001 124.109739,101.183848 C123.589703,100.657533 123.137431,100.068334 122.76342,99.4299287 C122.569928,99.1345235 122.439569,98.8023194 122.380523,98.4541568 C122.344161,98.0264703 122.394576,97.5958458 122.528741,97.1881235 C123.146318,94.7178147 123.245131,91.92019 124.12209,89.511639 C125.019877,87.0701309 126.735004,85.0145966 128.976247,83.6940618 C131.193349,82.4033254 134.275059,82.3847981 136.15867,84.1448931 C137.189202,85.1765967 137.841914,86.5255335 138.011401,87.9738717 C138.159647,89.4085411 138.134765,90.8558348 137.937292,92.2845606 L137.937292,92.2845606 Z",fill:"#FFC8AA"}}),t("path",{attrs:{d:"M122.917815,89.1966746 C123.035154,88.0356295 123.028979,86.856057 123.257482,85.7135392 C123.430325,84.5462603 124.015242,83.4793901 124.906413,82.7059382 C125.13006,82.5282047 125.380108,82.3865112 125.647506,82.2859857 C125.888361,82.1995249 126.141568,82.1501188 126.388599,82.0821853 C127.114323,81.823311 127.80674,81.4791756 128.451306,81.0570071 C129.428778,80.471282 130.497622,80.0537645 131.613302,79.8218527 C132.367301,79.7065314 133.129441,79.6528304 133.892162,79.6612827 C135.292003,79.6365796 136.698021,79.624228 138.110214,79.624228 C138.441607,79.5993373 138.774132,79.6544051 139.07981,79.7847981 C139.415506,79.9920052 139.660397,80.3185263 139.765321,80.6988124 C140.03401,81.5509769 140.03401,82.4651751 139.765321,83.3173397 C139.491994,84.1603718 139.129699,84.9719119 138.684561,85.7382423 C138.467553,86.2211929 138.161687,86.6590425 137.782898,87.0289786 C137.455582,86.4608076 137.165321,85.8741093 136.868884,85.2812352 C135.92399,86.2631829 134.435629,86.5163895 133.07696,86.4114014 C131.71829,86.3064133 130.384323,85.9543943 129.025653,85.935867 C128.373087,85.8666937 127.719814,86.0600092 127.209976,86.4731591 C126.905659,86.8278145 126.693533,87.2520665 126.592399,87.7083135 C126.306667,88.7248814 126.073735,89.7555551 125.894537,90.7961995 C125.733967,90.4935867 125.085511,89.7030879 124.745843,89.7154394 C124.547732,89.7345641 124.366506,89.8352449 124.245606,89.9933492 C123.68361,90.6109264 123.96152,92.8774347 124.480285,93.5320665 C124.584275,93.631249 124.66268,93.7541547 124.708789,93.8902613 C124.729928,94.0740711 124.676545,94.258688 124.56057,94.4028504 C124.271061,94.7447043 123.833372,94.9243873 123.387173,94.8845606 C122.843705,94.8845606 122.738717,93.8470309 122.683135,93.464133 C122.454632,92.0375297 122.781948,90.5985748 122.917815,89.1966746 Z",fill:"#606060"}}),t("path",{attrs:{d:"M125.085511,91.8028504 C125.009161,91.6432882 124.975134,91.4667708 124.986698,91.2902613 C124.999464,91.1133692 124.980643,90.935617 124.931116,90.7653207 C124.874658,90.6091766 124.762484,90.4794068 124.616152,90.4009501 C124.57378,90.3887677 124.528833,90.3887677 124.486461,90.4009501 C124.413585,90.431761 124.360489,90.4963993 124.344418,90.5738717 C124.128354,91.2507754 124.152347,91.9814838 124.412352,92.6427553 C124.48177,92.8829405 124.656803,93.0784325 124.887886,93.1738717 C125.092399,93.2148307 125.303769,93.1497937 125.449881,93.0009501 C125.648012,92.7912184 125.710222,92.4873465 125.610451,92.2166271 C125.505463,91.9695962 125.215202,92.0251781 125.085511,91.8028504 Z",fill:"url(#di3l474enh)"}}),t("path",{attrs:{d:"M130.371971,99.0038005 C129.732514,99.1348239 129.201387,99.5778156 128.95772,100.183373 C128.408076,101.51734 127.839905,102.869834 126.067458,102.419002 C125.901026,102.382073 125.739394,102.326123 125.585748,102.252257 C125.435867,102.124043 125.313945,101.966385 125.227553,101.789074 C125.06749,101.367954 125.085321,100.899883 125.27696,100.492162 C125.714406,99.4317779 126.736412,98.7294515 127.883135,98.7011876 C128.354852,98.722984 128.823851,98.7849663 129.285036,98.8864608 C129.569121,98.9235154 129.902613,98.8864608 130.161995,98.9173397 C130.237348,98.9308712 130.308939,98.9603498 130.371971,99.0038005 L130.371971,99.0038005 Z",fill:"url(#4szjca59si)"}})])])}},Pn="zt-empty-developing-",Tn={render:function(){var t=arguments[0];return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280 260"}},[t("defs",[t("linearGradient",{attrs:{x1:"48.860455%",y1:"22.1475143%",x2:"53.1968857%",y2:"127.940777%",id:Pn+"1"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"95%"}})]),t("linearGradient",{attrs:{x1:"47.190027%",y1:"49.7417137%",x2:"-18.4366577%",y2:"43.6792183%",id:Pn+"2"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"95%"}})]),t("linearGradient",{attrs:{x1:"51.0994315%",y1:"105.246994%",x2:"49.2116272%",y2:"10.6863496%",id:Pn+"3"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"95%"}})]),t("linearGradient",{attrs:{x1:"47.8552822%",y1:"15.5070373%",x2:"53.2908828%",y2:"103.00972%",id:Pn+"4"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"95%"}})]),t("linearGradient",{attrs:{x1:"53.8171263%",y1:"35.1233841%",x2:"48.3018868%",y2:"56.7225634%",id:Pn+"5"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"450.784593%",y1:"180.340089%",x2:"441.749881%",y2:"126.049805%",id:Pn+"6"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"177.361342%",y1:"63.2235597%",x2:"174.48995%",y2:"57.692978%",id:Pn+"7"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"276.208378%",y1:"91.5599319%",x2:"271.13319%",y2:"74.1021927%",id:Pn+"8"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"341.85403%",y1:"121.18132%",x2:"335.281909%",y2:"90.8775861%",id:Pn+"9"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"295.181422%",y1:"99.641659%",x2:"289.637155%",y2:"78.0424797%",id:Pn+"10"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"342.382271%",y1:"128.191405%",x2:"335.83795%",y2:"94.0558374%",id:Pn+"11"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"367.857143%",y1:"126.408015%",x2:"360.714286%",y2:"92.4738326%",id:Pn+"12"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"203.970856%",y1:"69.8231011%",x2:"200.528233%",y2:"60.982875%",id:Pn+"13"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"294.397678%",y1:"91.6858618%",x2:"288.882438%",y2:"70.0866825%",id:Pn+"14"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"450.784593%",y1:"152.281267%",x2:"441.749881%",y2:"97.9856234%",id:Pn+"15"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"177.361342%",y1:"60.3643822%",x2:"174.48995%",y2:"54.8338005%",id:Pn+"16"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"276.208378%",y1:"82.536366%",x2:"271.13319%",y2:"65.07518%",id:Pn+"17"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"341.85403%",y1:"105.525438%",x2:"335.281909%",y2:"75.2187127%",id:Pn+"18"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"295.181422%",y1:"88.4754034%",x2:"289.637155%",y2:"66.8762241%",id:Pn+"19"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"342.382271%",y1:"110.547507%",x2:"335.83795%",y2:"76.4119403%",id:Pn+"20"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"367.857143%",y1:"108.866478%",x2:"360.714286%",y2:"74.9322955%",id:Pn+"21"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"203.970856%",y1:"65.2542112%",x2:"200.528233%",y2:"56.4131124%",id:Pn+"22"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"294.397678%",y1:"80.5238698%",x2:"288.882438%",y2:"58.9268223%",id:Pn+"23"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"450.784593%",y1:"124.222444%",x2:"441.749881%",y2:"69.9268011%",id:Pn+"24"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"177.361342%",y1:"57.5062963%",x2:"174.48995%",y2:"51.9762605%",id:Pn+"25"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"276.208378%",y1:"73.5128001%",x2:"271.13319%",y2:"56.0516141%",id:Pn+"26"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"341.85403%",y1:"89.8635731%",x2:"335.281909%",y2:"59.5568482%",id:Pn+"27"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"295.181422%",y1:"77.3155432%",x2:"289.637155%",y2:"55.7163639%",id:Pn+"28"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"342.382271%",y1:"92.9069794%",x2:"335.83795%",y2:"58.7714123%",id:Pn+"29"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"367.857143%",y1:"91.3282902%",x2:"360.714286%",y2:"57.3907584%",id:Pn+"30"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:"203.970856%",y1:"60.6844486%",x2:"200.528233%",y2:"51.8433499%",id:Pn+"31"}},[t("stop",{attrs:{"stop-color":"#FFF","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#FFF",offset:"99%"}})]),t("linearGradient",{attrs:{x1:".15759965%",y1:"50.0645643%",x2:"99.9963699%",y2:"50.0645643%",id:Pn+"32"}},[t("stop",{attrs:{"stop-color":"#E5C6D6",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#EAD4D0",offset:"42%"}}),t("stop",{attrs:{"stop-color":"#F0E9CB",offset:"100%"}})]),t("linearGradient",{attrs:{x1:"-.13095819%",y1:"50.038758%",x2:"100.054988%",y2:"50.038758%",id:Pn+"33"}},[t("stop",{attrs:{"stop-color":"#E5C6D6",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#EAD4D0",offset:"42%"}}),t("stop",{attrs:{"stop-color":"#F0E9CB",offset:"100%"}})]),t("linearGradient",{attrs:{x1:"-.29160665%",y1:"49.9114649%",x2:"99.7692962%",y2:"49.9114649%",id:Pn+"34"}},[t("stop",{attrs:{"stop-color":"#E5C6D6",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#EAD4D0",offset:"42%"}}),t("stop",{attrs:{"stop-color":"#F0E9CB",offset:"100%"}})]),t("linearGradient",{attrs:{x1:"-.43575933%",y1:"49.7843136%",x2:"99.7806048%",y2:"49.7843136%",id:Pn+"35"}},[t("stop",{attrs:{"stop-color":"#E5C6D6",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#EAD4D0",offset:"42%"}}),t("stop",{attrs:{"stop-color":"#F0E9CB",offset:"100%"}})]),t("linearGradient",{attrs:{x1:"-.00859098%",y1:"49.9990858%",x2:"100.102726%",y2:"49.9990858%",id:Pn+"36"}},[t("stop",{attrs:{"stop-color":"#E5C6D6",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#EAD4D0",offset:"42%"}}),t("stop",{attrs:{"stop-color":"#F0E9CB",offset:"100%"}})]),t("linearGradient",{attrs:{x1:"0%",y1:"50.0075169%",x2:"100.075387%",y2:"50.0075169%",id:Pn+"37"}},[t("stop",{attrs:{"stop-color":"#010101","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#010101",offset:"95%"}})]),t("linearGradient",{attrs:{x1:"0%",y1:"49.9877059%",x2:"100%",y2:"49.9877059%",id:Pn+"38"}},[t("stop",{attrs:{"stop-color":"#010101","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#010101",offset:"95%"}})]),t("linearGradient",{attrs:{x1:"50.9452485%",y1:"19.7899284%",x2:"46.4910638%",y2:"157.964103%",id:Pn+"39"}},[t("stop",{attrs:{"stop-color":"#010101","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#010101",offset:"95%"}})]),t("linearGradient",{attrs:{x1:"44.3146837%",y1:"86.6089922%",x2:"59.0429339%",y2:"-32.408747%",id:Pn+"40"}},[t("stop",{attrs:{"stop-color":"#010101","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#010101",offset:"95%"}})]),t("linearGradient",{attrs:{x1:"50.509165%",y1:"56.5270866%",x2:"49.454894%",y2:"43.2833993%",id:Pn+"41"}},[t("stop",{attrs:{"stop-color":"#010101","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#010101",offset:"95%"}})]),t("linearGradient",{attrs:{x1:"50.0097289%",y1:"62.244865%",x2:"50.1644612%",y2:"167.603242%",id:Pn+"42"}},[t("stop",{attrs:{"stop-color":"#010101","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#010101",offset:"95%"}})]),t("linearGradient",{attrs:{x1:"45.5378241%",y1:"32.5941231%",x2:"76.6349334%",y2:"135.454181%",id:Pn+"43"}},[t("stop",{attrs:{"stop-color":"#010101","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#010101",offset:"95%"}})]),t("linearGradient",{attrs:{x1:"57.3044615%",y1:"23.8288558%",x2:"5.20024135%",y2:"168.890597%",id:Pn+"44"}},[t("stop",{attrs:{"stop-color":"#010101","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#010101",offset:"95%"}})]),t("linearGradient",{attrs:{x1:"57.0947488%",y1:"9.64161116%",x2:"8.35461553%",y2:"179.892166%",id:Pn+"45"}},[t("stop",{attrs:{"stop-color":"#010101","stop-opacity":"0",offset:"0%"}}),t("stop",{attrs:{"stop-color":"#010101",offset:"95%"}})])]),t("g",{attrs:{transform:"translate(20 14)","fill-rule":"nonzero",fill:"none"}},[t("path",{attrs:{d:"M229.767221,151.781473 C222.886461,161.649406 213.235154,169.242755 205.6019,178.574822 C194.394299,192.256532 187.142993,210.019952 171.967696,219.146793 C164.790499,223.456532 156.484561,225.383373 148.343943,227.253207 C135.260808,230.263183 121.704513,233.273159 108.518765,230.730641 C98.4114014,228.786698 89.2389549,223.690261 80.2546318,218.662233 L73.1458432,214.671734 C71.5781473,213.782423 69.9933492,212.910214 68.4085511,212.020903 L63.7909739,209.432779 C50.2346793,201.793824 36.7638955,193.824228 25.3396675,183.295012 C12.6099762,171.608551 2.4912114,156.228029 0.387648456,139.051781 C-2.05225653,119.2019 7.28551069,98.3543943 23.7149644,86.9472684 C32.727791,80.6764846 43.4736342,77.1876485 52.3268409,70.6831354 C66.2992874,60.4218527 73.9895487,44.0095012 83.583848,29.592399 C101.364371,2.86175772 135.557245,-9.93064133 164.351544,9.06983373 C175.542043,16.4465558 184.007601,27.4033254 190.227078,39.2836105 C195.483135,49.2997625 199.348219,60.1653207 206.337292,69.0584323 C214.31829,79.2171021 225.936342,86.2517815 232.919715,97.1230404 C243.380523,113.392874 240.849406,135.899287 229.767221,151.781473 Z",fill:"#51B2FF",opacity:".24"}}),t("path",{attrs:{d:"M82.0788599,212.608076 C81.2408551,213.525891 82.6147268,214.80285 83.7890736,215.247506 C91.4513638,218.179477 99.584984,219.686418 107.789074,219.694062 L106.392399,222.071259 C119.251718,225.641963 132.831439,225.712814 145.727316,222.276485 L143.743468,219.1981 L155.264608,218.628029 C157.094537,218.542518 163.513539,219.295012 164.727791,217.670309 C168.222328,212.990024 153.99905,212.807601 152.471259,212.744893 C137.295962,212.110214 122.111164,211.865083 106.916865,212.009501 C102.774347,212.047506 98.631829,212.114014 94.4893112,212.209026 C92.528266,212.277435 83.2988124,211.308314 82.0788599,212.608076 Z",fill:"#51B2FF",opacity:".42"}}),t("path",{attrs:{d:"M146.850356,170.428504 C146.542518,176.509264 146.175772,182.601425 145.750119,188.704988 C145.623579,191.790015 145.222952,194.857679 144.552969,197.871734 C144.103407,199.66365 143.469132,201.404085 142.660333,203.065083 C142.312589,203.777672 141.816627,204.552969 141.035629,204.632779 C140.049406,204.735392 139.365321,203.68076 139.011876,202.751544 C137.250356,198.190974 137.250356,193.19715 137.136342,188.31734 C137.071734,185.793824 136.971021,183.268409 136.834204,180.741093 C136.668884,177.691211 136.338242,174.390499 134.274584,172.133017 C133.647506,171.448931 132.88361,170.890261 132.267933,170.189074 C129.753919,167.338717 130.506413,162.533017 133.214252,159.847981 C135.317815,157.767221 141.423278,155.019477 144.370546,156.741093 C147.870784,158.781948 147.015677,167.139192 146.850356,170.428504 Z",fill:"#606161"}}),t("path",{attrs:{d:"M129.20095,159.990499 C130.082357,161.387369 130.495702,163.028769 130.380998,164.676485 C130.23848,169.630404 127.296912,174.014252 125.820428,178.751544 C123.608551,185.905938 124.839905,193.573397 125.062233,201.081235 C125.165109,202.115063 125.036586,203.158828 124.685986,204.136817 C124.304693,205.129488 123.349358,205.783019 122.285986,205.778644 C121.533678,205.638827 120.856247,205.234391 120.376247,204.63848 C116.750594,200.761995 116.870309,194.850356 116.271734,189.582898 C115.59905,183.716865 113.780523,178.050356 112.229929,172.355344 C111.528741,169.784323 110.873159,167.150594 111.03848,164.494062 C111.2038,161.83753 112.32114,159.106888 114.515914,157.6019 C118.500713,154.87696 126.356295,155.914489 129.20095,159.990499 Z",fill:"#606161"}}),t("rect",{attrs:{fill:"#51B2FF",opacity:".52",transform:"rotate(-180 65.940143 64.606176)",x:"27.8764846",y:"22.6375297",width:"76.1273159",height:"83.9372922",rx:"7.7696"}}),t("rect",{attrs:{fill:"url(#aeoizh7mra)",transform:"rotate(-180 65.940143 64.606176)",x:"27.8764846",y:"22.6375297",width:"76.1273159",height:"83.9372922",rx:"7.7696"}}),t("rect",{attrs:{fill:"#51B2FF",opacity:".52",transform:"rotate(-180 190.249881 64.443705)",x:"147.950594",y:"38.5026128",width:"84.5985748",height:"51.8821853",rx:"7.3984"}}),t("rect",{attrs:{fill:"url(#nosejk6e4b)",transform:"rotate(-180 190.249881 64.443705)",x:"147.950594",y:"38.5026128",width:"84.5985748",height:"51.8821853",rx:"7.3984"}}),t("rect",{attrs:{fill:"#51B2FF",opacity:".52",transform:"rotate(-180 155.136342 36.188124)",x:"128.56247",y:"19.8897862",width:"53.1477435",height:"32.5966746",rx:"4.6464"}}),t("rect",{attrs:{fill:"url(#4jj5shr2ac)",transform:"rotate(-180 155.136342 36.188124)",x:"128.56247",y:"19.8897862",width:"53.1477435",height:"32.5966746",rx:"4.6464"}}),t("path",{attrs:{fill:"#51B2FF",opacity:".52",transform:"rotate(-180 125.595249 148.657482)",d:"M61.2655582 145.573397H189.92494019999998V151.74156802H61.2655582z"}}),t("rect",{attrs:{fill:"#51B2FF",transform:"rotate(-180 128.457007 101.287411)",x:"79.2171021",y:"64.9368171",width:"98.47981",height:"72.7011876",rx:"8.0384"}}),t("rect",{attrs:{fill:"url(#dmdcdcdd5d)",transform:"rotate(-180 128.457007 101.287411)",x:"79.2171021",y:"64.9368171",width:"98.47981",height:"72.7011876",rx:"8.0384"}}),t("path",{attrs:{fill:"url(#5bq2j01ree)",d:"M91.3254157 76.3211401H110.9643706V77.76342039H91.3254157z"}}),t("path",{attrs:{fill:"url(#8jy9u5ammf)",d:"M91.3254157 79.1087886H103.3140143V80.45985748H91.3254157z"}}),t("path",{attrs:{fill:"url(#6kfafk78tg)",d:"M108.148219 79.1087886H145.8698342V80.47125891H108.148219z"}}),t("path",{attrs:{fill:"url(#jcj1ghg49h)",d:"M149.398575 79.1087886H170.6280287V80.47125891H149.398575z"}}),t("path",{attrs:{fill:"url(#w3zt7b77ii)",d:"M97.5619952 81.9078385H114.0427553V83.33301664999999H97.5619952z"}}),t("path",{attrs:{fill:"url(#xgma4j4qcj)",d:"M102.852257 84.6897862H122.4912119V86.13206649H102.852257z"}}),t("path",{attrs:{fill:"url(#dqw9vw30yk)",d:"M123.773872 84.6897862H140.23753V86.29168644H123.773872z"}}),t("path",{attrs:{fill:"url(#p81mkc8fbl)",d:"M102.823753 87.4774347H117.98764849999999V88.82850358H102.823753z"}}),t("path",{attrs:{fill:"url(#n6q8n0s2lm)",d:"M119.44133 87.4774347H150.73824209999998V88.97672211H119.44133z"}}),t("path",{attrs:{fill:"url(#pt6e4ozx9n)",d:"M91.3254157 91.2513064H110.9643706V92.69358669H91.3254157z"}}),t("path",{attrs:{fill:"url(#valbxld46o)",d:"M91.3254157 94.0389549H103.3140143V95.39002377999999H91.3254157z"}}),t("path",{attrs:{fill:"url(#mdfq4eaqnp)",d:"M108.148219 94.0389549H145.8698342V95.40142521H108.148219z"}}),t("path",{attrs:{fill:"url(#w9zqugrizq)",d:"M149.398575 94.0389549H170.6280287V95.40142521H149.398575z"}}),t("path",{attrs:{fill:"url(#a54bqusopr)",d:"M97.5619952 96.8266033H114.0427553V98.25178145H97.5619952z"}}),t("path",{attrs:{fill:"url(#srw09ij8vs)",d:"M102.852257 99.6199525H122.4912119V101.06223279H102.852257z"}}),t("path",{attrs:{fill:"url(#zu1gzgi3xt)",d:"M123.773872 99.6199525H140.23753V101.22185274H123.773872z"}}),t("path",{attrs:{fill:"url(#95maaxi5wu)",d:"M102.823753 102.407601H117.98764849999999V103.75866988H102.823753z"}}),t("path",{attrs:{fill:"url(#bnbtj22pev)",d:"M119.44133 102.407601H150.73824209999998V103.90688841H119.44133z"}}),t("path",{attrs:{fill:"url(#v3ulh7mxbw)",d:"M91.3254157 106.175772H110.9643706V107.61805229H91.3254157z"}}),t("path",{attrs:{fill:"url(#qa4j7xuxdx)",d:"M91.3254157 108.96342H103.3140143V110.31448888H91.3254157z"}}),t("path",{attrs:{fill:"url(#tcbnlnxq6y)",d:"M108.148219 108.96342H145.8698342V110.32589031H108.148219z"}}),t("path",{attrs:{fill:"url(#ob59s4vknz)",d:"M149.398575 108.96342H170.6280287V110.32589031H149.398575z"}}),t("path",{attrs:{fill:"url(#0o6ynpe7wA)",d:"M97.5619952 111.751069H114.0427553V113.17624715H97.5619952z"}}),t("path",{attrs:{fill:"url(#f41e6tn45B)",d:"M102.852257 114.538717H122.4912119V115.98099729H102.852257z"}}),t("path",{attrs:{fill:"url(#mk6wrlasyC)",d:"M123.773872 114.538717H140.23753V116.14061724000001H123.773872z"}}),t("path",{attrs:{fill:"url(#5rd5hmw66D)",d:"M102.823753 117.332067H117.98764849999999V118.68313588H102.823753z"}}),t("path",{attrs:{fill:"url(#kei1glm24E)",d:"M119.44133 117.332067H150.73824209999998V118.83135440999999H119.44133z"}}),t("g",{attrs:{opacity:".52",fill:"#51B2FF"}},[t("path",{attrs:{d:"M0.19952494 0.40475059H9.97054632V1.40475059H0.19952494z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M0.19952494 1.79572447H6.16247031V2.7957244699999997H0.19952494z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M8.56817102 1.79572447H27.334916819999997V2.7957244699999997H8.56817102z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M29.0850356 1.79572447H39.648456V2.7957244699999997H29.0850356z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M3.30071259 3.18099762H11.49833729V4.180997619999999H3.30071259z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M5.93444181 4.5719715H15.70546319V5.5719715H5.93444181z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M16.3382423 4.5719715H24.52446558V5.5719715H16.3382423z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M5.91733967 5.95724466H13.45938243V6.95724466H5.91733967z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M14.1890736 5.95724466H29.757719700000003V6.95724466H14.1890736z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M0.19952494 7.8327791H9.97054632V8.8327791H0.19952494z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M0.19952494 9.21805226H6.16247031V10.21805226H0.19952494z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M8.56817102 9.21805226H27.334916819999997V10.21805226H8.56817102z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M29.0850356 9.21805226H39.648456V10.21805226H29.0850356z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M3.30071259 10.6033254H11.49833729V11.6033254H3.30071259z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M5.93444181 11.9942993H15.70546319V12.9942993H5.93444181z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M16.3382423 11.9942993H24.52446558V12.9942993H16.3382423z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M5.91733967 13.3795724H13.45938243V14.3795724H5.91733967z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M14.1890736 13.3795724H29.757719700000003V14.3795724H14.1890736z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M0.19952494 15.2551069H9.97054632V16.2551069H0.19952494z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M0.19952494 16.6460808H6.16247031V17.6460808H0.19952494z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M8.56817102 16.6460808H27.334916819999997V17.6460808H8.56817102z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M29.0850356 16.6460808H39.648456V17.6460808H29.0850356z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M3.30071259 18.0313539H11.49833729V19.0313539H3.30071259z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M5.93444181 19.4166271H15.70546319V20.4166271H5.93444181z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M16.3382423 19.4166271H24.52446558V20.4166271H16.3382423z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M5.91733967 20.807601H13.45938243V21.807601H5.91733967z",transform:"translate(135.106888 23.942993)"}}),t("path",{attrs:{d:"M14.1890736 20.807601H29.757719700000003V21.807601H14.1890736z",transform:"translate(135.106888 23.942993)"}})]),t("path",{attrs:{d:"M152.15772,141.577197 C152.56247,142.71734 152.944418,143.914489 152.693587,145.088836 C152.602811,145.49521 152.438598,145.881593 152.209026,146.228979 C151.068884,147.9962 148.366746,148.269834 146.508314,147.209501 C144.649881,146.149169 143.60095,144.119715 143.087886,142.07886 C142.885622,141.395295 142.817862,140.678971 142.888361,139.969596 C143.053682,138.732542 143.874584,137.689311 144.729691,136.777197 C145.869834,135.591449 147.961995,134.040855 149.495487,135.466033 C150.875059,136.742993 151.547743,139.872684 152.15772,141.577197 Z",fill:"url(#yoc5sjl4xF)"}}),t("path",{attrs:{d:"M105.531591,141.235154 C105.282078,141.706209 105.16579,142.236404 105.195249,142.768646 C105.264454,143.11088 105.400022,143.436245 105.594299,143.726366 C106.073933,144.587154 106.714529,145.347741 107.481235,145.966746 C108.254802,146.586721 109.234702,146.890266 110.223278,146.816152 C111.68266,146.656532 112.839905,145.499287 113.615202,144.250831 C114.421051,143.064547 114.844756,141.660153 114.829454,140.226128 C114.739079,138.696338 113.969607,137.287033 112.731591,136.383848 C111.631354,135.585748 109.339667,134.861758 108.096912,135.773872 C106.854157,136.685986 106.152969,139.764371 105.531591,141.235154 Z",fill:"url(#3l7a5nlqrG)"}}),t("path",{attrs:{d:"M139.2,99.3634204 C139.610188,99.244656 140.052252,99.3225436 140.39715,99.5743468 C140.63496,99.8453152 140.773655,100.189038 140.790499,100.549169 C140.935807,101.275374 140.964671,102.020071 140.87601,102.755344 C140.780603,103.486189 140.421829,104.157118 139.866983,104.64228 C139.434917,104.960397 138.947924,105.196164 138.430404,105.337767 C138.041863,105.514063 137.599567,105.530445 137.19905,105.383373 C136.845366,105.142586 136.619163,104.755109 136.583373,104.328741 C136.133017,102.122565 136.822803,99.7966746 139.2,99.3634204 Z",fill:"url(#9au0rryihH)"}}),t("path",{attrs:{d:"M118.443705,98.5995249 C118.217303,98.5425731 117.980321,98.5425731 117.753919,98.5995249 C117.249142,98.8373859 116.928691,99.3469926 116.933017,99.9049881 C116.896104,100.441143 116.93061,100.979825 117.035629,101.506888 C117.133974,102.389155 117.495485,103.221425 118.073159,103.895487 C118.671856,104.563111 119.650358,104.732876 120.438955,104.305938 C122.861758,102.629929 120.581473,99.0669834 118.443705,98.5995249 Z",fill:"url(#rt21sor7sI)"}}),t("path",{attrs:{d:"M133.790024,114.533017 C133.902477,115.049491 133.933254,115.580404 133.881235,116.106413 C133.670309,117.565796 132.216627,118.586223 130.757245,118.768646 C129.297862,118.951069 127.83848,118.460808 126.47601,117.91924 C126.057577,117.778235 125.670405,117.557547 125.335867,117.269359 C125.001845,116.92039 124.774404,116.483306 124.680285,116.009501 C124.516809,115.187907 124.466937,114.347754 124.532067,113.512589 L124.623278,110.571021 C124.595264,109.995592 124.708793,109.422073 124.953919,108.900713 C125.52399,107.925891 126.829454,107.76057 127.963895,107.686461 C129.451781,107.623753 131.692162,107.686461 132.672684,109.04323 C133.653207,110.4 133.539192,112.953919 133.790024,114.533017 Z",fill:"url(#52suc04ikJ)"}}),t("path",{attrs:{d:"M138.373397,90.5216152 C138.816497,91.7626882 138.972426,93.0880771 138.829454,94.3980998 C138.702474,97.4229639 138.386417,100.436924 137.883135,103.422328 C137.506888,105.662708 136.914014,108.068409 135.141093,109.482185 C134.634215,109.823089 134.155699,110.204376 133.710214,110.622328 C133.402375,110.952969 133.185748,111.36342 132.900713,111.722565 C131.458432,113.529691 128.551069,113.529691 126.567221,112.326841 C124.583373,111.12399 123.312114,109.060333 122.149169,107.053682 C120.866508,104.841805 119.595249,102.527316 119.367221,99.9790974 C119.179097,97.9610451 119.652257,95.8346793 118.88266,93.9591449 C118.312589,92.5795724 117.132542,91.4736342 116.870309,90.0085511 C116.768974,89.0214457 116.889737,88.0241734 117.223753,87.0897862 C117.685511,85.4308789 118.392399,83.5154394 120.074109,83.0650831 C121.299762,82.7344418 122.565321,83.3615202 123.83658,83.4014252 C125.455582,83.4584323 127.103088,82.552019 128.64228,83.0650831 C130.620428,83.7263658 131.492637,86.0066508 133.465083,86.7477435 C135.43753,87.4888361 137.455582,88.423753 138.373397,90.5216152 Z",fill:"#606161"}}),t("path",{attrs:{d:"M144.917815,119.737767 C139.137292,114.943468 130.79715,115.063183 123.35772,116.07791 C120.285036,116.494062 117.155344,117.047031 114.453207,118.574822 C109.926841,121.140143 107.247506,126.099762 105.83943,131.11639 C105.092637,133.778622 104.699287,136.817102 106.192874,139.154394 C107.76057,141.571496 110.884561,142.4038 113.746318,142.72304 C114.184726,142.732828 114.613029,142.856604 114.989074,143.082185 C115.383286,143.447488 115.630593,143.944129 115.684561,144.47886 C116.48266,148.64038 114.863658,153.314964 117.001425,156.969121 C119.070784,160.497862 123.694062,161.427078 127.770071,161.740618 C133.04323,162.145368 138.761045,161.99715 143.04228,158.890261 C143.75247,158.412993 144.356121,157.793814 144.815202,157.071734 C145.52209,155.863183 145.561995,154.392399 145.579097,152.995724 C145.624703,149.951544 144.513064,143.828979 145.995249,141.143943 C147.238005,138.909264 150.778147,138.897862 152.020903,136.343943 C154.375297,131.486936 148.457957,122.667933 144.917815,119.737767 Z",fill:"#FFF"}}),t("path",{attrs:{d:"M123.9962,158.531116 L124.036105,165.012827 C124.064372,165.262425 124.016689,165.514747 123.899287,165.736817 C123.709661,165.971039 123.435015,166.120659 123.135392,166.152969 C121.379572,166.56342 119.543943,166.329691 117.742518,166.335392 C115.941093,166.341093 113.99715,166.660333 112.703088,167.92019 C114.669834,169.373872 117.206651,169.772922 119.640855,170.057957 C123.243705,170.487411 126.854157,170.772447 130.472209,170.913064 C132.817447,171.08606 135.175132,170.963483 137.489786,170.548219 C139.524713,170.139634 141.432409,169.250288 143.053682,167.954394 C141.463183,166.244181 138.829454,166.278385 136.503563,166.278385 C134.240559,166.277612 131.979429,166.148187 129.731116,165.890736 C129.217577,165.897769 128.724159,165.691318 128.368646,165.320665 C128.17919,164.982903 128.10325,164.593212 128.152019,164.209026 C128.195325,162.769803 128.376679,161.338059 128.693587,159.933492 C128.761132,159.470034 128.94773,159.03202 129.235154,158.662233 C129.742986,158.22828 130.380743,157.975584 131.047981,157.943943 C133.687552,157.50409 136.275645,156.797378 138.772447,155.834679 C139.800771,155.493872 140.757398,154.966278 141.594299,154.278385 C143.84038,152.23753 143.743468,148.72019 143.224703,145.727316 C139.091116,148.127052 134.423323,149.455668 129.645606,149.592399 C126.379097,149.68361 119.293112,148.281235 116.995724,151.428029 C115.855582,153.018527 117.069834,154.489311 118.329691,155.589549 C118.87696,156.057007 123.9962,158.468409 123.9962,158.531116 Z",fill:"url(#oh9bf8lq8K)"}}),t("rect",{attrs:{fill:"#51B2FF",x:"112.56057",y:"129.075534",width:"32.7106888",height:"23.1847981",rx:"10.7456"}}),t("rect",{attrs:{fill:"url(#zb8f34pwsL)",x:"112.56057",y:"129.075534",width:"32.7106888",height:"23.1847981",rx:"10.7456"}}),t("rect",{attrs:{fill:"#51B2FF",x:"112.56057",y:"131.207601",width:"32.7106888",height:"23.1847981",rx:"10.7456"}}),t("path",{attrs:{d:"M133.949644,144.005701 C132.970605,144.439854 131.939837,144.746402 130.88266,144.917815 C128.032304,145.44228 124.703088,145.328266 122.650831,143.258907 C122.32922,142.944453 122.068329,142.573408 121.881235,142.164371 C121.311164,140.779097 122.057957,139.108789 123.28361,138.230879 C124.509264,137.352969 126.065558,137.11924 127.564846,137.045131 C129.400475,136.953919 132.889311,136.64038 134.491211,137.877435 C136.406651,139.35962 136.110214,142.990974 133.949644,144.005701 Z",fill:"url(#tkz07f3rvM)"}}),t("rect",{attrs:{fill:"#FFF",transform:"rotate(180 128.371496 158.873159)",x:"126.139667",y:"140.448456",width:"4.46365796",height:"36.8494062",rx:"2.23182898"}}),t("path",{attrs:{d:"M142.101663,202.973872 C143.241805,203.914489 143.526841,205.544893 144.028504,206.964371 C144.72399,208.902613 146.012352,210.664133 146.183373,212.71639 C146.258003,213.324857 146.157128,213.941978 145.892637,214.495012 C145.373831,215.365508 144.431858,215.895096 143.418527,215.886101 C142.420819,215.865329 141.448218,215.569405 140.608076,215.030879 C139.122298,214.145977 137.895487,212.885743 137.050831,211.376722 C136.619828,210.638388 136.344352,209.819719 136.24133,208.971021 C136.007601,206.4 138.675534,200.23753 142.101663,202.973872 Z",fill:"#51B2FF"}}),t("path",{attrs:{d:"M144.228029,213.850831 C144.391199,214.155288 144.391199,214.521197 144.228029,214.825653 C144.096394,214.966717 143.922206,215.060819 143.732067,215.093587 C142.946678,215.245461 142.132892,215.096945 141.451781,214.677435 C140.779637,214.265294 140.162786,213.769131 139.616152,213.20095 C138.769934,212.458343 138.021002,211.611725 137.387173,210.681235 C136.752089,209.735683 136.493824,208.586706 136.663183,207.460333 C137.267458,204.370546 139.992399,207.141093 140.995724,208.281235 C142.427818,209.90795 143.526084,211.800377 144.228029,213.850831 Z",fill:"#606161"}}),t("path",{attrs:{d:"M119.783373,203.03658 C118.64323,203.977197 118.358195,205.607601 117.856532,207.027078 C117.161045,208.965321 115.872684,210.732542 115.701663,212.779097 C115.627204,213.389412 115.728047,214.008312 115.992399,214.56342 C116.512629,215.431727 117.454337,215.958997 118.466508,215.948694 C119.46469,215.931021 120.438087,215.634856 121.27696,215.093587 C122.764083,214.210391 123.99129,212.94975 124.834204,211.43943 C125.266094,210.701499 125.541634,209.882642 125.643705,209.033729 C125.871734,206.462708 123.2038,200.277435 119.783373,203.03658 Z",fill:"#51B2FF"}}),t("path",{attrs:{d:"M117.366271,214.073159 C117.206109,214.378364 117.206109,214.742776 117.366271,215.047981 C117.500167,215.189127 117.676165,215.283126 117.867933,215.315914 C118.653343,215.461694 119.464936,215.313579 120.148219,214.899762 C120.817033,214.485348 121.431724,213.989382 121.978147,213.423278 C122.827614,212.68014 123.578595,211.831456 124.212827,210.897862 C124.846504,209.953845 125.104708,208.807173 124.936817,207.68266 C124.326841,204.587173 121.607601,207.35772 120.598575,208.503563 C119.167928,210.131318 118.069837,212.023444 117.366271,214.073159 Z",fill:"#606161"}}),t("path",{attrs:{d:"M132,189.406176 C131.081634,189.842503 130.067564,190.038648 129.052732,189.976247 C127.929486,190.040731 126.802627,189.958324 125.700713,189.731116 C125.329203,189.657718 124.98102,189.495363 124.685986,189.257957 C124.439796,189.032402 124.245324,188.756251 124.115914,188.448456 C123.186698,186.3962 122.137767,182.143468 123.580048,180.416152 C125.227553,178.432304 131.766271,178.084561 133.84133,180.165321 C135.853682,182.114964 134.394299,187.9981 132,189.406176 Z",fill:"#51B2FF"}}),t("path",{attrs:{d:"M132,189.406176 C131.081634,189.842503 130.067564,190.038648 129.052732,189.976247 C127.929486,190.040731 126.802627,189.958324 125.700713,189.731116 C125.329203,189.657718 124.98102,189.495363 124.685986,189.257957 C124.439796,189.032402 124.245324,188.756251 124.115914,188.448456 C123.186698,186.3962 122.137767,182.143468 123.580048,180.416152 C125.227553,178.432304 131.766271,178.084561 133.84133,180.165321 C135.853682,182.114964 134.394299,187.9981 132,189.406176 Z",fill:"url(#n68fc14f9N)"}}),t("path",{attrs:{fill:"#FFF",transform:"rotate(-180 128.950119 199.091686)",d:"M127.462233 189.491686H130.43800497V208.69168599999998H127.462233z"}}),t("path",{attrs:{d:"M140.71639,210.287886 C141.377672,210.829454 142.021853,211.507838 142.871259,211.610451 C143.486936,211.67886 144.102613,211.416627 144.729691,211.416627 C145.555085,211.474704 146.332971,211.824247 146.924466,212.40285 C147.483138,212.845084 147.902695,213.438796 148.133017,214.113064 C148.594774,215.686461 147.192399,217.408076 145.556295,217.567696 C143.92019,217.727316 142.346793,216.609976 141.628504,215.139192 C141.473739,214.736192 141.270843,214.35337 141.024228,213.99905 C140.787649,213.7448 140.512554,213.529341 140.209026,213.36057 C137.788084,211.859094 135.117962,210.803015 132.324941,210.24228 C131.84038,210.145368 131.247506,210.099762 130.939667,210.48171 C130.790559,210.700374 130.709257,210.95816 130.705938,211.222803 C130.579718,212.358339 130.528301,213.500947 130.552019,214.64323 C130.536988,214.862774 130.578191,215.082524 130.671734,215.28171 C130.819707,215.486937 131.000803,215.666107 131.207601,215.811876 C131.884354,216.531504 132.005113,217.611366 131.504038,218.462708 C130.98832,219.279943 130.197948,219.886366 129.275059,220.172922 C128.180523,220.577672 126.80095,220.646081 125.985748,219.808076 C125.39882,219.14747 125.233495,218.212834 125.558195,217.390974 C125.886672,216.586271 126.493716,215.926617 127.268409,215.532542 C127.53772,215.430504 127.771471,215.252219 127.941093,215.019477 C128.03538,214.80459 128.070796,214.568486 128.043705,214.335392 L127.963895,211.792874 C128.012919,211.399317 127.868482,211.006364 127.576247,210.738242 C127.348461,210.619715 127.087334,210.58155 126.835154,210.629929 C122.645191,210.953241 118.632661,212.457446 115.262708,214.968171 C115.878385,215.447031 115.770071,216.484561 115.217102,217.031829 C114.608045,217.533943 113.825565,217.775651 113.03943,217.704513 C112.17535,217.713394 111.328109,217.465372 110.605226,216.991924 C109.869345,216.511071 109.437259,215.681467 109.465083,214.80285 C109.583329,213.912456 110.161611,213.150078 110.987173,212.7962 C111.802706,212.454736 112.69991,212.357688 113.569596,212.516865 C114.017112,212.612051 114.475132,212.648463 114.932067,212.625178 C115.444593,212.518691 115.932143,212.315545 116.368646,212.026603 C120.316956,209.797209 124.695841,208.436704 129.212352,208.036105 C132.997625,207.699762 137.655107,207.779572 140.71639,210.287886 Z",fill:"#FFF"}}),t("rect",{attrs:{fill:"#FFF",transform:"rotate(-180 194.921615 115.527791)",x:"170.633729",y:"97.5163895",width:"48.575772",height:"36.0228029",rx:"7.0528"}}),t("rect",{attrs:{fill:"#FFF",transform:"rotate(-180 57.865083 126.276485)",x:"29.9401425",y:"116.032304",width:"55.8498812",height:"20.488361",rx:"6.8288"}}),t("path",{attrs:{fill:"#51B2FF",d:"M39.7567696 46.175772L53.9686461 38.856057 53.9686461 40.9767221 41.9971496 46.9453682 41.9971496 47.0137767 53.9686461 53.0109264 53.9686461 55.1315914 39.7567696 47.8118765z"}}),t("path",{attrs:{fill:"#51B2FF",d:"M55.9353919 56.3857482L64.4864608 34.1529691 66.5672209 34.1529691 58.016152 56.3857482z"}}),t("path",{attrs:{fill:"#51B2FF",d:"M82.7287411 47.92019L68.5111639 55.2114014 68.5111639 53.0394299 80.5738717 47.0422803 80.5738717 46.9453682 68.5111639 40.9482185 68.5111639 38.856057 82.7287411 46.1472684z"}}),t("rect",{attrs:{fill:"#51B2FF",transform:"rotate(-180 127.790024 174.986223)",x:"103.9981",y:"167.606651",width:"47.583848",height:"14.7591449",rx:"7.37957245"}}),t("rect",{attrs:{fill:"url(#q70he0ss9O)",transform:"rotate(-180 127.790024 174.986223)",x:"103.9981",y:"167.606651",width:"47.583848",height:"14.7591449",rx:"7.37957245"}}),t("g",{attrs:{opacity:".52",fill:"#51B2FF"}},[t("path",{attrs:{d:"M0.44465558 0.23372922H13.442280279999999V1.23372922H0.44465558z",transform:"translate(175.581948 106.603325)"}}),t("path",{attrs:{d:"M0.44465558 2.07505938H8.3800475V3.07505938H0.44465558z",transform:"translate(175.581948 106.603325)"}}),t("path",{attrs:{d:"M11.5781473 2.07505938H36.5415677V3.07505938H11.5781473z",transform:"translate(175.581948 106.603325)"}}),t("path",{attrs:{d:"M4.5719715 3.92779097H15.4831354V4.92779097H4.5719715z",transform:"translate(175.581948 106.603325)"}}),t("path",{attrs:{d:"M8.07220903 5.76912114H21.06983373V6.76912114H8.07220903z",transform:"translate(175.581948 106.603325)"}}),t("path",{attrs:{d:"M21.9135392 5.76912114H32.807601V6.82945368H21.9135392z",transform:"translate(175.581948 106.603325)"}}),t("path",{attrs:{d:"M8.04940618 7.61615202H18.08836108V8.616152020000001H8.04940618z",transform:"translate(175.581948 106.603325)"}}),t("path",{attrs:{d:"M19.0517815 7.61615202H39.762470300000004V8.616152020000001H19.0517815z",transform:"translate(175.581948 106.603325)"}}),t("path",{attrs:{d:"M0.44465558 10.1130641H13.442280279999999V11.1130641H0.44465558z",transform:"translate(175.581948 106.603325)"}}),t("path",{attrs:{d:"M0.44465558 11.9543943H8.3800475V12.9543943H0.44465558z",transform:"translate(175.581948 106.603325)"}}),t("path",{attrs:{d:"M11.5781473 11.9543943H36.5415677V12.9543943H11.5781473z",transform:"translate(175.581948 106.603325)"}}),t("path",{attrs:{d:"M4.5719715 13.8014252H15.4831354V14.8014252H4.5719715z",transform:"translate(175.581948 106.603325)"}}),t("path",{attrs:{d:"M8.07220903 15.6484561H21.06983373V16.6484561H8.07220903z",transform:"translate(175.581948 106.603325)"}}),t("path",{attrs:{d:"M21.9135392 15.6484561H32.807601V16.70878864H21.9135392z",transform:"translate(175.581948 106.603325)"}}),t("path",{attrs:{d:"M8.04940618 17.4954869H18.08836108V18.4954869H8.04940618z",transform:"translate(175.581948 106.603325)"}}),t("path",{attrs:{d:"M19.0517815 17.4954869H39.762470300000004V18.4954869H19.0517815z",transform:"translate(175.581948 106.603325)"}})]),t("g",{attrs:{opacity:".52",fill:"#51B2FF"}},[t("path",{attrs:{d:"M0.36484561 0.26223278H13.362470309999999V1.26223278H0.36484561z",transform:"translate(38.194774 120.285036)"}}),t("path",{attrs:{d:"M0.36484561 2.10926366H8.30023753V3.10926366H0.36484561z",transform:"translate(38.194774 120.285036)"}}),t("path",{attrs:{d:"M11.4983373 2.10926366H36.4617577V3.10926366H11.4983373z",transform:"translate(38.194774 120.285036)"}}),t("path",{attrs:{d:"M4.49216152 3.95629454H15.40332542V4.95629454H4.49216152z",transform:"translate(38.194774 120.285036)"}}),t("path",{attrs:{d:"M7.99239905 5.80332542H20.99002375V6.80332542H7.99239905z",transform:"translate(38.194774 120.285036)"}}),t("path",{attrs:{d:"M21.8394299 5.80332542H32.7334917V6.86365796H21.8394299z",transform:"translate(38.194774 120.285036)"}}),t("path",{attrs:{d:"M7.97529691 7.64465558H18.01425181V8.64465558H7.97529691z",transform:"translate(38.194774 120.285036)"}}),t("path",{attrs:{d:"M18.9719715 7.64465558H39.682660299999995V8.64465558H18.9719715z",transform:"translate(38.194774 120.285036)"}}),t("path",{attrs:{d:"M0.36484561 10.1415677H13.362470309999999V11.1415677H0.36484561z",transform:"translate(38.194774 120.285036)"}}),t("path",{attrs:{d:"M0.36484561 11.9885986H8.30023753V12.9885986H0.36484561z",transform:"translate(38.194774 120.285036)"}}),t("path",{attrs:{d:"M11.4983373 11.9885986H36.4617577V12.9885986H11.4983373z",transform:"translate(38.194774 120.285036)"}})]),t("path",{attrs:{d:"M64.0874109,186.470309 C62.2004751,182.742043 59.8916865,178.871259 60.336342,174.715439 C60.6042755,172.201425 61.8755344,169.92114 63.1182898,167.714964 L68.7163895,157.790024 C70.4266033,160.013302 73.2427553,161.364371 74.3714964,163.929691 C76.184323,168.051306 72.6612827,172.611876 72.8494062,177.109739 C72.9748219,180.570071 75.272209,183.722565 75.1296912,187.182898 C75.0384798,189.696912 71.0593824,197.934442 67.8384798,197.620903 C66.1339667,197.455582 65.1591449,188.579572 64.0874109,186.470309 Z",fill:"#51B2FF"}}),t("path",{attrs:{d:"M64.0874109,186.470309 C62.2004751,182.742043 59.8916865,178.871259 60.336342,174.715439 C60.6042755,172.201425 61.8755344,169.92114 63.1182898,167.714964 L68.7163895,157.790024 C70.4266033,160.013302 73.2427553,161.364371 74.3714964,163.929691 C76.184323,168.051306 72.6612827,172.611876 72.8494062,177.109739 C72.9748219,180.570071 75.272209,183.722565 75.1296912,187.182898 C75.0384798,189.696912 71.0593824,197.934442 67.8384798,197.620903 C66.1339667,197.455582 65.1591449,188.579572 64.0874109,186.470309 Z",fill:"url(#ipaqweplnP)"}}),t("path",{attrs:{d:"M83.3615202,184.87981 C84.6327791,184.87981 86.2118765,185.136342 86.5767221,186.361995 C86.8731591,187.433729 85.9325416,188.419952 85.0375297,189.081235 C81.9192399,191.36152 78.0142518,193.111639 76.4864608,196.663183 C73.9496437,202.55772 66.7667458,198.778147 70.4836105,193.67601 C72.0228029,191.566746 73.3339667,188.733492 75.2494062,186.971971 C77.4498812,184.936817 80.528266,184.845606 83.3615202,184.87981 Z",fill:"#51B2FF"}}),t("path",{attrs:{d:"M83.3615202,184.87981 C84.6327791,184.87981 86.2118765,185.136342 86.5767221,186.361995 C86.8731591,187.433729 85.9325416,188.419952 85.0375297,189.081235 C81.9192399,191.36152 78.0142518,193.111639 76.4864608,196.663183 C73.9496437,202.55772 66.7667458,198.778147 70.4836105,193.67601 C72.0228029,191.566746 73.3339667,188.733492 75.2494062,186.971971 C77.4498812,184.936817 80.528266,184.845606 83.3615202,184.87981 Z",fill:"url(#e6nc3l4ohQ)"}}),t("path",{attrs:{d:"M64.7372922,187.604751 C63.3064133,185.974347 61.1800475,185.170546 59.1505938,184.418052 C58.1871734,184.064608 56.9501188,183.773872 56.3002375,184.549169 C55.8611297,185.169072 55.8611297,185.998623 56.3002375,186.618527 C56.7472977,187.210967 57.2930393,187.721997 57.9135392,188.129216 C59.1620774,189.043934 60.1856382,190.231264 60.9064133,191.60095 C61.6304038,193.077435 61.824228,194.759145 62.4684086,196.275534 C63.1125891,197.791924 64.4579572,199.222803 66.0997625,199.154394 C67.4152557,199.022097 68.5218808,198.111156 68.9045131,196.845606 C69.5429929,194.87886 68.6935867,193.995249 67.6389549,192.604276 C66.4703088,191.059382 66.0427553,189.081235 64.7372922,187.604751 Z",fill:"#51B2FF"}}),t("path",{attrs:{d:"M64.7372922,187.604751 C63.3064133,185.974347 61.1800475,185.170546 59.1505938,184.418052 C58.1871734,184.064608 56.9501188,183.773872 56.3002375,184.549169 C55.8611297,185.169072 55.8611297,185.998623 56.3002375,186.618527 C56.7472977,187.210967 57.2930393,187.721997 57.9135392,188.129216 C59.1620774,189.043934 60.1856382,190.231264 60.9064133,191.60095 C61.6304038,193.077435 61.824228,194.759145 62.4684086,196.275534 C63.1125891,197.791924 64.4579572,199.222803 66.0997625,199.154394 C67.4152557,199.022097 68.5218808,198.111156 68.9045131,196.845606 C69.5429929,194.87886 68.6935867,193.995249 67.6389549,192.604276 C66.4703088,191.059382 66.0427553,189.081235 64.7372922,187.604751 Z",fill:"url(#9kfjsl9yoR)"}}),t("path",{attrs:{d:"M77.1135392,196.714489 L75.192399,214.688836 L73.1572447,214.688836 C71.5895487,213.799525 70.0047506,212.927316 68.4199525,212.038005 L63.8023753,209.449881 L62.1662708,196.714489 L77.1135392,196.714489 Z",fill:"#51B2FF"}}),t("path",{attrs:{d:"M77.1135392,196.714489 L75.192399,214.688836 L73.1572447,214.688836 C71.5895487,213.799525 70.0047506,212.927316 68.4199525,212.038005 L63.8023753,209.449881 L62.1662708,196.714489 L77.1135392,196.714489 Z",fill:"url(#rd4gk66dwS)"}})])])}},Ln="zt-empty-error-",En={render:function(){var t,e=arguments[0];return e("svg",{attrs:(t={xmlns:"http://www.w3.org/2000/svg"},t.xmlns="http://www.w3.org/1999/xlink",t.viewBox="0 0 280 260",t)},[e("defs",[e("filter",{attrs:{x:"-1.4%",y:"-7%",width:"105.4%",height:"128.1%",filterUnits:"objectBoundingBox",id:Ln+"1"}},[e("feOffset",{attrs:{dx:"2",dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}}),e("feColorMatrix",{attrs:{values:"0 0 0 0 0.317647059 0 0 0 0 0.698039216 0 0 0 0 1 0 0 0 0.131446678 0",in:"shadowOffsetOuter1"}})]),e("filter",{attrs:{x:"0%",y:"2%",width:"105.7%",height:"111.7%",filterUnits:"objectBoundingBox",id:Ln+"2"}},[e("feMorphology",{attrs:{radius:"1.5",operator:"dilate",in:"SourceAlpha",result:"shadowSpreadOuter1"}}),e("feOffset",{attrs:{dx:"3",dy:"3",in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}}),e("feComposite",{attrs:{in:"shadowOffsetOuter1",in2:"SourceAlpha",operator:"out",result:"shadowOffsetOuter1"}}),e("feColorMatrix",{attrs:{values:"0 0 0 0 0.317647059 0 0 0 0 0.698039216 0 0 0 0 1 0 0 0 0.24448208 0",in:"shadowOffsetOuter1"}})]),e("filter",{attrs:{x:"-4.9%",y:"-4.9%",width:"119.6%",height:"119.6%",filterUnits:"objectBoundingBox",id:Ln+"3"}},[e("feOffset",{attrs:{dx:"1",dy:"1",in:"SourceAlpha",result:"shadowOffsetOuter1"}}),e("feColorMatrix",{attrs:{values:"0 0 0 0 0.317647059 0 0 0 0 0.698039216 0 0 0 0 1 0 0 0 0.131446678 0",in:"shadowOffsetOuter1"}})]),e("path",{attrs:{id:Ln+"4",d:"M52 77H126V91.22972970000001H52z"}}),e("path",{attrs:{d:"M149.443706,74.8278103 L168.433913,106.965083 C169.557766,108.866989 168.92703,111.319852 167.025124,112.443706 C166.408817,112.807887 165.706071,113 164.990206,113 L127.009794,113 C124.800655,113 123.009794,111.209139 123.009794,109 C123.009794,108.284136 123.201906,107.581389 123.566087,106.965083 L142.556294,74.8278103 C143.680148,72.925904 146.133011,72.2951677 148.034917,73.4190215 C148.615818,73.762281 149.100447,74.2469097 149.443706,74.8278103 Z",id:Ln+"5"}}),e("path",{attrs:{id:Ln+"6",d:"M96.3151351 36.94810815A5.10864865 5.10864865 0 1 0 96.3151351 47.16540545A5.10864865 5.10864865 0 1 0 96.3151351 36.94810815Z"}}),e("linearGradient",{attrs:{x1:"23.226575%",y1:"239.989869%",x2:"113.740933%",y2:"-331.46119%",id:Ln+"7"}},[e("stop",{attrs:{offset:"1%"}}),e("stop",{attrs:{"stop-opacity":".69",offset:"8%"}}),e("stop",{attrs:{"stop-opacity":".32",offset:"21%"}}),e("stop",{attrs:{"stop-opacity":"0",offset:"100%"}})])]),e("g",{attrs:{transform:"translate(12 31)",fill:"none","fill-rule":"evenodd"}},[e("path",{attrs:{d:"M114.185676,0.18972973 C112.994208,0.147567568 111.809667,0.119459459 110.632053,0.0913513514 C91.7278882,-0.309189189 72.4358036,0.337297297 54.584564,6.65459459 C36.7333245,12.9718919 20.2813672,25.7751351 13.4165716,43.6237838 C9.86294879,52.8924324 9.02476486,62.9551351 7.70168114,72.807027 C5.22869219,91.2810811 0.926938308,109.593514 0.698342692,128.229189 C0.469747075,146.864865 4.85462663,166.484324 17.4689484,180.060541 C39.3517834,203.643243 69.7065104,189.666486 95.7456293,183.314054 C111.199177,179.557629 127.274673,179.267455 142.850181,182.463784 C153.130056,184.571892 163.056648,188.204865 173.329596,190.439459 C180.720855,192.048649 188.40998,192.934054 195.939781,191.943243 C203.171715,190.994595 208.748063,187.495135 215.335773,184.677297 C227.873896,179.280541 240.550562,172.408108 248.544481,160.820541 C254.670995,151.723881 257.482851,140.746606 256.496838,129.775135 C254.037703,100.851892 227.40285,88.7091892 213.652478,65.9767568 C205.644704,52.7659459 200.186118,37.7843243 189.885461,26.3302703 C171.403851,5.81135135 141.797255,1.08216216 114.185676,0.18972973 Z",fill:"#51B2FF","fill-rule":"nonzero",opacity:".18"}}),e("path",{attrs:{d:"M154.541083,29.3378378 L154.541083,172.794595 C154.541083,179.714275 148.931572,185.323784 142.011892,185.323784 L79.9210811,185.323784 C73.001401,185.323784 67.3918899,179.714275 67.3918899,172.794595 L67.3918899,29.3378378 C67.3900275,26.0136729 68.7092402,22.8250191 71.0591211,20.4738203 C73.409002,18.1226214 76.5969156,16.8016216 79.9210811,16.8016216 L142.011892,16.8016216 C145.336057,16.8016216 148.523971,18.1226214 150.873852,20.4738203 C153.223733,22.8250191 154.542945,26.0136729 154.541083,29.3378378 Z",fill:"#51B2FF","fill-rule":"nonzero"}}),e("rect",{attrs:{fill:"#473F47","fill-rule":"nonzero",x:"69.1064865",y:"18.9308108",width:"83.712973",height:"164.003784",rx:"12.1145946"}}),e("path",{attrs:{d:"M150.542707,32.4156757 L150.542707,167.763243 C150.477056,174.152491 145.246037,179.279707 138.856757,179.217861 L83.1254054,179.217861 C81.0894586,179.223718 79.0868251,178.70066 77.3140541,177.699459 C73.6940938,175.700785 71.4405625,171.898287 71.4254054,167.763243 L71.4254054,32.4156757 C71.4948935,26.0225311 76.7322273,20.8952914 83.1254054,20.9609852 L92.5416216,20.9609852 L92.5416216,22.627027 C92.590449,24.8610709 93.9756462,26.8474435 96.0551351,27.6654054 C96.7376493,27.9345326 97.4647198,28.0727952 98.1983784,28.072973 L124.085946,28.072973 C127.171716,28.0926057 129.696478,25.6211622 129.742703,22.5356757 L129.742703,20.9609852 L138.877838,20.9609852 C141.875186,20.95501 144.762418,22.0908051 146.951892,24.1378378 C149.244983,26.279759 150.545503,29.2778288 150.542707,32.4156757 Z",fill:"#FFF","fill-rule":"nonzero"}}),e("rect",{attrs:{fill:"#51B2FF","fill-rule":"nonzero",opacity:".31",x:"81.2491892",y:"113.022703",width:"34.4254054",height:"2.04486486",rx:"1.01891892"}}),e("rect",{attrs:{fill:"#51B2FF","fill-rule":"nonzero",opacity:".31",x:"81.2491892",y:"118.018919",width:"34.4254054",height:"2.04486486",rx:"1.01891892"}}),e("path",{attrs:{fill:"#51B2FF","fill-rule":"nonzero",opacity:".18",d:"M67.3848649 94.6189189H154.54108109999999V100.09297295H67.3848649z"}}),e("g",{attrs:{"fill-rule":"nonzero"}},[e("use",{attrs:{fill:"#000",filter:"url(#98fg2y47pa)",xlink:"#46hlndswgb"}}),e("use",{attrs:{fill:"#FFF",xlink:"#46hlndswgb"}})]),e("rect",{attrs:{fill:"#51B2FF","fill-rule":"nonzero",x:"58",y:"85",width:"36.0064865",height:"2",rx:"1"}}),e("rect",{attrs:{fill:"#51B2FF","fill-rule":"nonzero",x:"58",y:"81",width:"20",height:"2",rx:"1"}}),e("rect",{attrs:{fill:"#51B2FF","fill-rule":"nonzero",x:"81.2491892",y:"107.956216",width:"55.4010811",height:"3.28864865",rx:"1.64432432"}}),e("rect",{attrs:{fill:"#51B2FF","fill-rule":"nonzero",opacity:".31",x:"81.2491892",y:"130.217838",width:"34.4254054",height:"2.04486486",rx:"1.01891892"}}),e("rect",{attrs:{fill:"#51B2FF","fill-rule":"nonzero",opacity:".31",x:"81.2491892",y:"135.214054",width:"34.4254054",height:"2.04486486",rx:"1.01891892"}}),e("rect",{attrs:{fill:"#51B2FF","fill-rule":"nonzero",x:"81.2491892",y:"125.144324",width:"55.4010811",height:"3.28864865",rx:"1.64432432"}}),e("rect",{attrs:{fill:"#51B2FF","fill-rule":"nonzero",opacity:".31",x:"81.2491892",y:"147.405946",width:"34.4254054",height:"2.04486486",rx:"1.01891892"}}),e("rect",{attrs:{fill:"#51B2FF","fill-rule":"nonzero",opacity:".31",x:"81.2491892",y:"152.409189",width:"34.4254054",height:"2.04486486",rx:"1.01891892"}}),e("rect",{attrs:{fill:"#51B2FF","fill-rule":"nonzero",x:"81.2491892",y:"142.339459",width:"55.4010811",height:"3.28864865",rx:"1.64432432"}}),e("path",{attrs:{d:"M42.0637838,5.20702703 C45.8589759,5.20261483 49.631413,5.79302139 53.2437838,6.95675676 L53.2437838,1.82 C36.3355615,-2.90588615 18.2828242,3.51866567 8.16151483,17.8637372 C-1.95979454,32.2088087 -1.95979454,51.3706508 8.16151483,65.7157223 C18.2828242,80.0607938 36.3355615,86.4853456 53.2437838,81.7594595 L53.2437838,76.6227027 C39.5018925,81.032699 24.4515368,76.9513073 14.8203277,66.2029375 C5.18911857,55.4545677 2.77728924,40.0482689 8.66294376,26.870761 C14.5485983,13.6932532 27.6316099,5.20763173 42.0637838,5.20702703 L42.0637838,5.20702703 Z",opacity:".41",transform:"translate(101.297297 54.810811)",fill:"url(#cnji2zfo7c)","fill-rule":"nonzero"}}),e("path",{attrs:{d:"M145.574595,136.099459 C128.784921,136.099459 113.649263,125.983337 107.228079,110.470067 C100.806894,94.9567973 104.365331,77.1029066 116.243456,65.2368494 C128.12158,53.3707922 145.979079,49.8305042 161.485814,56.2674533 C176.992549,62.7044024 187.093273,77.8503347 187.076238,94.64 C187.025901,117.533009 168.467643,136.072413 145.574595,136.099459 Z M145.574595,58.0151351 C125.376017,58.0151351 108.99967,74.3852241 108.991916,94.5838 C108.984168,114.782376 125.347947,131.165015 145.546519,131.180541 C165.74509,131.196045 182.134018,114.838564 182.157297,94.64 C182.149552,74.4357273 165.778859,58.0556009 145.574595,58.0362162 L145.574595,58.0151351 Z",fill:"#51B2FF","fill-rule":"nonzero"}}),e("path",{attrs:{d:"M145.574595,58.0151351 C125.376017,58.0151351 108.99967,74.3852241 108.991916,94.5838 C108.984168,114.782376 125.347947,131.165015 145.546519,131.180541 C165.74509,131.196045 182.134018,114.838564 182.157297,94.64 C182.149552,74.4357273 165.778859,58.0556009 145.574595,58.0362162 L145.574595,58.0151351 Z","fill-opacity":".7",fill:"#FFF"}}),e("g",{attrs:{"fill-rule":"nonzero"}},[e("use",{attrs:{fill:"#000",filter:"url(#xndpudg2hd)",xlink:"#tjeyi4ch6e"}}),e("use",{attrs:{stroke:"#51B2FF","stroke-width":"3",fill:"#FFF",xlink:"#tjeyi4ch6e"}})]),e("text",{attrs:{"font-family":"PingFangSC-Semibold, PingFang SC","font-size":"36","font-weight":"500",fill:"#51B2FF"}},[e("tspan",{attrs:{x:"137",y:"108"}},["!"])]),e("path",{attrs:{d:"M201.783784,156.091353 C200.653161,156.092287 199.569536,155.639089 198.776216,154.833514 L171.581622,127.238378 C170.519775,126.166082 170.111999,124.608038 170.512393,123.15304 C170.912788,121.698041 172.060289,120.567987 173.521251,120.18993 C174.982213,119.811874 176.533827,120.243472 177.58973,121.321622 L204.784324,148.916757 C205.976301,150.127145 206.325443,151.934658 205.669996,153.501897 C205.014549,155.069135 203.482561,156.089927 201.783784,156.091353 L201.783784,156.091353 Z",fill:"#51B2FF","fill-rule":"nonzero"}}),e("path",{attrs:{d:"M214.811892,164.861081 C213.874545,165.788347 212.606636,166.304341 211.288168,166.295234 C209.9697,166.285883 208.709139,165.75219 207.784865,164.811892 L175.76973,132.318919 C175.590905,132.142006 175.42861,131.949134 175.284865,131.742703 C175.200541,131.63027 175.123243,131.517838 175.052973,131.405405 C174.585847,130.618056 174.664634,129.621961 175.24973,128.917838 C175.871738,128.177268 176.550748,127.48651 177.280541,126.851892 C178.118633,126.107441 179.027041,125.446139 179.992973,124.877297 C180.801235,124.392161 181.829486,124.479973 182.543784,125.095135 L182.543784,125.095135 C182.640286,125.171189 182.731824,125.253339 182.817838,125.341081 L214.889189,157.841081 C215.810616,158.781845 216.320218,160.050346 216.306021,161.367104 C216.291221,162.683863 215.75381,163.940835 214.811892,164.861081 Z",fill:"#473F47","fill-rule":"nonzero"}}),e("path",{attrs:{d:"M99.6810811,52.0491892 L99.6810811,66.3562162 C99.6810811,70.2611137 96.5237857,73.4310062 92.6189189,73.4464865 L67.3918919,73.4464865 L67.3918919,44.9589189 L92.6189189,44.9589189 C96.5237857,44.9743992 99.6810811,48.1442917 99.6810811,52.0491892 L99.6810811,52.0491892 Z",fill:"#51B2FF","fill-rule":"nonzero",opacity:".18"}}),e("rect",{attrs:{fill:"#FFF","fill-rule":"nonzero",x:"37.3232432",y:"41.1994595",width:"61.1351351",height:"28.4875676",rx:"7.09027027"}}),e("g",{attrs:{"fill-rule":"nonzero"}},[e("use",{attrs:{fill:"#000",filter:"url(#0ju5g236if)",xlink:"#os3fh6qhtg"}}),e("use",{attrs:{fill:"#51B2FF",xlink:"#os3fh6qhtg"}})]),e("rect",{attrs:{fill:"#51B2FF","fill-rule":"nonzero",x:"49.3956757",y:"50.2994595",width:"36.0064865",height:"2.81783784",rx:"1.40540541"}}),e("rect",{attrs:{fill:"#51B2FF","fill-rule":"nonzero",x:"49.3956757",y:"57.7972973",width:"36.0064865",height:"2.81783784",rx:"1.40540541"}}),e("path",{attrs:{d:"M211.572432,186.996216 C212.187536,187.765387 212.271083,188.832004 211.783243,189.687568 C211.270213,190.505778 210.288389,190.900211 209.351892,190.664324 C209.191286,190.623924 209.042185,190.546969 208.916216,190.439459 C208.656216,190.186486 208.614054,189.736757 208.368108,189.483784 C208.112162,189.273555 207.803514,189.137458 207.475676,189.09027 C206.894883,188.877696 206.348083,188.581809 205.852432,188.211892 C205.772115,188.166412 205.702595,188.104084 205.648649,188.029189 C205.598609,187.936286 205.572071,187.832547 205.571351,187.727027 C205.451339,187.18713 205.533864,186.621957 205.803243,186.138919 C205.950854,185.958101 206.132244,185.807738 206.337297,185.696216 C206.724437,185.456404 207.168041,185.32308 207.623243,185.30973 C207.97808,185.333944 208.326784,185.414597 208.656216,185.548649 C209.590292,185.817163 210.466905,186.255469 211.242162,186.841622",fill:"#51B2FF","fill-rule":"nonzero"}}),e("path",{attrs:{d:"M209.752432,182.688649 L211.319459,188.085405 C211.319459,188.085405 211.024324,189.441622 209.365946,188.872432 C207.707568,188.303243 206.316216,184.051892 206.316216,184.051892 L209.752432,182.688649 Z",fill:"#FCBDBA","fill-rule":"nonzero"}}),e("path",{attrs:{d:"M193.210811,193.974054 C192.783835,193.901468 192.350778,193.870871 191.917838,193.882703 C191.479318,193.901755 191.067818,194.099885 190.779459,194.430811 C190.354779,195.114916 190.485409,196.005575 191.088649,196.538919 C191.678132,197.025936 192.40034,197.324612 193.161622,197.396216 C193.624132,197.501879 194.104517,197.501879 194.567027,197.396216 C195.15027,197.227568 195.705405,196.742703 196.288649,196.925405 C196.543375,197.03161 196.780352,197.176166 196.991351,197.354054 C197.817866,197.952466 198.966709,197.808092 199.619459,197.023784 C199.788384,196.771499 199.909834,196.490497 199.977838,196.194595 C200.223784,195.26 200.111351,194.086486 199.338378,193.545405 C198.424865,192.891892 197.715135,193.341622 196.836757,193.643784 C195.665059,194.009028 194.429216,194.121595 193.210811,193.974054 Z",fill:"#51B2FF","fill-rule":"nonzero"}}),e("path",{attrs:{d:"M193.96973,188.738919 L196.260541,194.360541 C196.260541,194.360541 197.574595,195.154595 198.509189,194.803243 L199.42973,194.423784 L198.621622,186.574595 L193.96973,188.738919 Z",fill:"#FCBDBA","fill-rule":"nonzero"}}),e("path",{attrs:{d:"M176.943243,131.595135 C176.788649,131.391351 176.584865,131.166486 176.338919,131.201622 C176.092973,131.236757 176.050811,131.335135 175.903243,131.292973 C175.811205,131.260377 175.732276,131.198713 175.678378,131.117297 C175.328678,130.74626 174.939939,130.414064 174.518919,130.126486 C174.262288,129.901006 173.952924,129.743907 173.619459,129.66973 C173.122088,129.64474 172.658747,129.922189 172.445946,130.372432 C172.236531,130.809972 172.184412,131.306344 172.298378,131.777838 C172.422285,132.249243 172.611504,132.701005 172.860541,133.12 C173.011426,133.434048 173.202782,133.726989 173.42973,133.991351 C174.132432,134.757297 175.298919,134.883784 176.240541,135.354595 C176.341034,135.415881 176.453798,135.454269 176.570811,135.467027 C176.773549,135.433594 176.948322,135.305776 177.041622,135.122703 C177.405553,134.60354 177.626124,133.997576 177.681081,133.365946 C177.630552,132.712028 177.371984,132.091465 176.943243,131.595135 L176.943243,131.595135 Z",fill:"#FCBDBA","fill-rule":"nonzero"}}),e("path",{attrs:{d:"M186.078378,125.502703 C185.965542,125.471415 185.845047,125.483966 185.741081,125.537838 C185.682602,125.584609 185.630613,125.63896 185.586486,125.699459 C185.38973,125.91027 185.066486,125.917297 184.799459,126.036757 C184.452832,126.211655 184.197224,126.526053 184.096757,126.901081 C184.0035,127.270627 183.963277,127.651559 183.977297,128.032432 C183.959308,128.23375 183.980791,128.436643 184.040541,128.62973 C184.104976,128.82168 184.274972,128.958774 184.476216,128.981081 C184.636233,128.952131 184.787599,128.88726 184.918919,128.791351 C185.186662,128.644373 185.497062,128.594709 185.797297,128.650811 C186.182693,128.775346 186.550967,128.947679 186.893514,129.163784 C187.248872,129.374096 187.690587,129.374096 188.045946,129.163784 C188.20158,129.023917 188.324019,128.851063 188.404324,128.657838 C188.720541,127.955135 189.107027,127.175135 188.404324,126.605946 C187.744734,126.032037 186.940131,125.650398 186.078378,125.502703 L186.078378,125.502703 Z",fill:"#FCBDBA","fill-rule":"nonzero"}}),e("path",{attrs:{d:"M206.962703,151.327027 C206.798087,154.282922 206.467294,157.227215 205.971892,160.145946 C205.339459,163.041081 204.96,166.32973 204.96,166.32973 L210.813514,183.194595 C210.813514,183.194595 207.250811,185.562703 204.96,184.642162 C202.669189,183.721622 196.871892,170.791892 196.871892,170.791892 L194.665405,156.084324 L200.504865,149.380541 L206.962703,151.327027 Z",fill:"#473F47","fill-rule":"nonzero"}}),e("path",{attrs:{d:"M190.807568,150.153514 C190.807568,150.153514 186.633514,163.835135 186.633514,167.390811 C186.633514,170.946486 191.636757,188.471892 191.636757,188.471892 C191.636757,188.471892 197.068649,190.312973 198.340541,188.471892 L199.612432,186.630811 L196.555676,168.992973 C196.555676,168.992973 200.884324,159.787568 201.65027,157.419459 C202.113678,155.960004 202.445276,154.461933 202.641081,152.943243 L190.807568,150.153514 Z",fill:"#473F47","fill-rule":"nonzero"}}),e("path",{attrs:{d:"M192.564324,112.678378 C192.076188,113.653586 191.764533,114.707503 191.643784,115.791351 C191.531773,116.882372 192.004789,117.951336 192.887568,118.602162 C193.153149,118.728853 193.401166,118.889474 193.625405,119.08 C194.412432,119.881081 193.512973,121.335676 193.962703,122.375676 C194.337779,123.067462 195.171011,123.369358 195.902162,123.078378 C196.602668,122.748325 197.118396,122.121716 197.307568,121.370811 C197.509436,120.617439 197.599408,119.838473 197.574595,119.058919 L197.651892,114.414054 C197.762376,113.380707 197.600043,112.336449 197.181081,111.385405 C196.611249,110.383825 195.520298,109.794711 194.37027,109.867568 C193.288108,110.099459 192.957838,111.771892 192.564324,112.678378 Z",fill:"#FCBDBA","fill-rule":"nonzero"}}),e("path",{attrs:{d:"M176.36,135.867568 C176.36,135.867568 185.27027,143.829189 185.902703,143.829189 C186.535135,143.829189 190.491351,138.825946 190.491351,138.825946 L190.807568,150.146486 C191.907789,150.795909 193.05389,151.364262 194.236757,151.847027 C196.162162,152.634054 198.600541,153.364865 200.72973,153.168108 C205.058378,152.774595 206.962703,151.327027 206.962703,151.327027 L204.299459,124.666486 C204.299459,124.666486 199.254054,121.033514 197.532432,121.588649 C196.298387,121.808761 195.035127,121.808761 193.801081,121.588649 C191.313514,121.265405 188.76973,124.666486 188.76973,124.666486 L185.46,135.537297 L177.695135,132.782703 C176.65715,133.437813 176.127133,134.66243 176.36,135.867568 Z",fill:"#51B2FF","fill-rule":"nonzero"}}),e("path",{attrs:{d:"M193.316216,107.64 C194.250811,106.78973 196.365946,106.438378 197.398919,106.325946 C199.005228,106.097276 200.632004,106.57378 201.861081,107.632973 C203.547568,109.235135 203.723243,111.849189 203.702162,114.252432 C203.681081,116.655676 203.645946,119.234595 205.051351,121.061622 C206.26,122.621622 208.234595,123.268108 209.773514,124.46973 C211.310619,125.609533 212.283336,127.355306 212.443784,129.262162 C212.802162,136.485946 201.76973,133.387027 198.122703,131.777838 C197.477349,131.528843 196.883995,131.161869 196.372973,130.695676 C195.833622,130.112839 195.436744,129.412891 195.213514,128.650811 C194.357421,126.069128 194.502894,123.259984 195.621081,120.780541 C195.78973,120.415135 195.972432,119.958378 195.740541,119.635135 C195.613852,119.492038 195.454858,119.381224 195.276757,119.311892 C194.324485,118.916623 193.690215,118.002285 193.653514,116.971892 C193.804504,116.231731 194.137817,115.540952 194.623243,114.962162 C195.106717,114.374059 195.26966,113.585628 195.058919,112.854054 C194.805946,112.284865 194.201622,112.003784 193.751892,111.589189 C192.964865,110.886486 192.395676,108.996216 193.049189,107.984324 C193.12386,107.859114 193.213532,107.743485 193.316216,107.64 Z",fill:"#606161","fill-rule":"nonzero"}})])])}},Rn="zt-empty-not-right-",On={render:function(){var t=arguments[0];return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280 260"}},[t("defs",[t("linearGradient",{attrs:{x1:"-44.5781427%",y1:"25.3482533%",x2:"138.766988%",y2:"72.5970182%",id:Rn+"1"}},[t("stop",{attrs:{offset:"1%"}}),t("stop",{attrs:{"stop-opacity":".69",offset:"13%"}}),t("stop",{attrs:{"stop-opacity":".32",offset:"25%"}}),t("stop",{attrs:{"stop-opacity":"0",offset:"100%"}})]),t("linearGradient",{attrs:{x1:"25.440977%",y1:"97.9479769%",x2:"71.6060343%",y2:"-1.82080925%",id:Rn+"2"}},[t("stop",{attrs:{offset:"1%"}}),t("stop",{attrs:{"stop-opacity":".69",offset:"13%"}}),t("stop",{attrs:{"stop-opacity":".32",offset:"25%"}}),t("stop",{attrs:{"stop-opacity":"0",offset:"100%"}})]),t("linearGradient",{attrs:{x1:"64.8755124%",y1:"34.4079163%",x2:"27.0571382%",y2:"69.5637804%",id:Rn+"3"}},[t("stop",{attrs:{offset:"1%"}}),t("stop",{attrs:{"stop-opacity":".69",offset:"13%"}}),t("stop",{attrs:{"stop-opacity":".32",offset:"25%"}}),t("stop",{attrs:{"stop-opacity":"0",offset:"100%"}})]),t("linearGradient",{attrs:{x1:"161.272198%",y1:"90.5631721%",x2:"-93.0864745%",y2:"-3.28709521%",id:Rn+"4"}},[t("stop",{attrs:{offset:"1%"}}),t("stop",{attrs:{"stop-opacity":".69",offset:"13%"}}),t("stop",{attrs:{"stop-opacity":".32",offset:"25%"}}),t("stop",{attrs:{"stop-opacity":"0",offset:"100%"}})]),t("linearGradient",{attrs:{x1:"5.98844122%",y1:"91.3932197%",x2:"91.9808313%",y2:"-3.65501882%",id:Rn+"5"}},[t("stop",{attrs:{offset:"1%"}}),t("stop",{attrs:{"stop-opacity":".69",offset:"13%"}}),t("stop",{attrs:{"stop-opacity":".32",offset:"25%"}}),t("stop",{attrs:{"stop-opacity":"0",offset:"100%"}})])]),t("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[t("path",{attrs:{d:"M121.340909,0.30077894 C105.299365,1.81804159 89.6187563,8.98994833 78.8909741,21.0211059 C72.1401578,28.5940513 67.5282141,37.7711509 62.3681843,46.5137921 C53.9500173,60.8097605 44.0038516,74.1490075 32.7046968,86.29682 C23.841744,95.8281704 14.0564025,104.751279 7.57294532,116.033831 C2.07871668,125.57855 -0.82881308,136.754158 0.220571223,147.695828 C1.26995553,158.637497 6.41661739,169.338543 14.9253194,176.303247 C27.7585542,186.783722 45.6716111,187.666007 62.2345047,188.033626 L143.966169,189.951927 C163.202653,190.406437 182.499293,190.854264 201.615466,188.702023 C209.602818,187.80637 217.657009,186.409419 224.90244,182.907016 C238.457544,176.343351 247.5277,163.182601 254.612715,149.90154 C256.978843,145.46338 259.224659,140.838068 259.826217,135.865189 C261.062752,125.571866 255.067225,115.733052 247.881951,108.260367 C240.696676,100.787681 232.094398,94.6451066 225.918404,86.29682 C214.64922,71.1108255 212.898018,50.6511736 202.577958,34.8302013 C187.305072,11.356076 148.17039,-2.23913211 121.340909,0.30077894 Z",fill:"#32A5FB","fill-rule":"nonzero",opacity:".18",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M137.476028,162.948662 L173.288773,190.319545 C173.288773,190.319545 215.437929,190.673796 231.907247,178.689426 L152.715494,155.228669 L151.091288,158.203039 L172.747371,172.774107 L144.246896,161.157356 L137.476028,162.948662 Z",fill:"url(#p6gfkphkia)","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{fill:"#FFF","fill-rule":"nonzero",d:"M74.1186149 142.482326L144.627882 102.104424 144.627882 6.83770791 74.1186149 47.2156097z",transform:"translate(10 34)"}}),t("path",{attrs:{fill:"#32A5FB","fill-rule":"nonzero",opacity:".38",d:"M118.921309 44.000617L118.921309 72.2270495 138.819507 59.7614335 138.819507 32.3303941z",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M124.522481,69.4665673 C125.144091,72.0733181 126.708142,74.3458701 128.298928,76.5047945 C129.889714,78.6637189 131.560709,80.8226433 132.476413,83.3425024 C133.54585,86.3035039 133.485694,89.5385485 133.41217,92.7000694 L133.184915,102.338363 C133.201059,102.766898 133.130586,103.194286 132.977712,103.594951 C132.680497,104.088132 132.249378,104.486802 131.734492,104.744595 C128.599707,106.716368 125.331242,108.754981 121.655055,109.196123 C120.498727,109.343171 119.268876,109.343171 118.246227,109.904625 C117.066105,110.550235 116.400749,111.851787 116.568549,113.186457 C116.796989,114.523471 117.927152,115.520019 119.282244,115.579321 C120.705931,115.579321 121.842207,114.476465 122.985167,113.620916 C124.896449,112.327769 126.976941,111.304392 129.167845,110.579706 L140.797964,106.11481 C142.101339,105.613512 143.504974,105.025322 144.139952,103.788786 C144.375346,103.287517 144.522329,102.749334 144.574411,102.198 C145.336384,96.2826808 142.341963,90.5946168 139.441117,85.3744312 L132.930924,73.5972647 C130.865575,69.8876578 129.060901,65.4962853 126.474202,62.147613 C124.208334,63.4844083 123.974395,67.1806473 124.522481,69.4665673 Z",fill:"#32A5FB","fill-rule":"nonzero",opacity:".18",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M149.975064,87.6336153 L144.955397,93.0743721 L144.661302,92.9540605 C143.424767,92.4327104 138.679143,90.4208334 137.629759,89.6789121 C136.580375,88.9369907 129.334944,73.6373686 127.911257,70.6362631 L127.66395,70.114913 L131.600812,67.6953135 L141.285894,83.736857 L149.975064,87.6336153 Z",fill:"#32A5FB","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M147.602252,89.7323839 L144.661302,92.9206406 C143.424767,92.3992905 138.679143,90.3874136 137.629759,89.6454922 C136.580375,88.9035708 129.334944,73.6039487 127.911257,70.6028433 L129.248053,69.7940821 L138.933135,85.8356256 L147.602252,89.7323839 Z",fill:"url(#h88x09499b)","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M137.476028,78.0220571 C137.479142,78.2592094 137.548605,78.4907508 137.676547,78.6904548 C138.006071,79.3606496 138.181899,80.0959284 138.191213,80.8426952 C138.119834,81.4455874 138.1908,82.0568174 138.398416,82.6273169 C138.702371,83.05473 139.083145,83.4219042 139.521324,83.7101211 C140.011745,84.1282433 140.398422,84.6544901 140.650916,85.2474357 C140.864804,85.7487339 141.145531,86.4171315 141.693617,86.3636597 C141.880432,86.3370115 142.052561,86.2474102 142.181547,86.1096686 C142.541289,85.7156273 142.796388,85.2376039 142.923468,84.7194015 C143.725546,82.2463302 144.480835,78.91771 143.859225,76.3310111 C143.357927,74.2723463 141.132163,74.2857143 139.888943,75.6626134 C139.520555,76.2099899 139.069612,76.6970086 138.552148,77.1063523 C138.197897,77.3402915 137.549551,77.4739711 137.476028,78.0220571 Z",fill:"#FFBBAB","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M128.579655,114.135582 C127.512973,114.556495 126.383382,114.795968 125.237667,114.844083 C124.940464,114.864171 124.652068,114.953436 124.395486,115.104758 C124.132601,115.261146 123.998276,115.567407 124.061287,115.866732 C124.148179,116.127407 124.428906,116.307874 124.475693,116.575233 C124.497624,116.703977 124.473988,116.836339 124.408854,116.949536 C124.161547,117.44415 123.539937,117.584514 123.072058,117.878609 C122.725723,118.085142 122.463084,118.406933 122.330137,118.78763 C122.198646,119.169921 122.235069,119.590003 122.430397,119.943957 C122.635462,120.253722 122.935767,120.488336 123.285946,120.612355 C123.841481,120.798479 124.424597,120.888885 125.010412,120.879714 C126.137061,121.086025 127.297517,120.787971 128.1853,120.064269 C128.460968,119.867465 128.716232,119.643549 128.947274,119.395871 C129.568884,118.68737 129.722615,117.671405 130.284069,116.896064 C130.519664,116.652835 130.689825,116.353903 130.778683,116.027147 C130.794406,115.816491 130.750388,115.605671 130.651688,115.418905 C130.204255,114.674403 129.436005,114.180352 128.572971,114.08211",fill:"#FFBBAB","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M142.275123,158.28993 C142.275123,158.28993 136.607111,158.757809 136.473431,161.157356 C136.339752,163.556904 142.308543,165.608885 145.617111,164.853595 C148.925679,164.098306 147.121006,159.112059 147.121006,159.112059 L142.275123,158.28993 Z",fill:"#32A5FB","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M150.743721,151.572534 C150.743721,151.572534 148.183758,150.416206 148.183758,152.909329 C148.183758,155.402453 149.045991,156.999923 151.091288,158.182987 C153.136584,159.366051 155.322245,158.483766 155.442556,157.888892 C155.562868,157.294018 155.589604,153.878506 155.589604,153.878506 L150.743721,151.572534 Z",fill:"#32A5FB","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M147.121006,143.832489 L147.121006,157.73516 C147.117337,158.863223 146.203772,159.776789 145.075709,159.780457 L144.246896,159.780457 C143.333547,159.770779 142.533525,159.166017 142.275123,158.28993 C142.229139,158.128973 142.204421,157.962689 142.201599,157.795316 L142.014448,151.686162 L141.847348,146.118409 L141.847348,145.209388 L141.813928,143.832489 L147.121006,143.832489 Z",fill:"#FFBBAB","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M147.121006,157.73516 L147.121006,159.112059 C147.117337,160.240123 146.203772,161.153688 145.075709,161.157356 L144.246896,161.157356 C143.152535,161.117437 142.292597,160.206914 142.315227,159.112059 L142.275123,158.28993 C142.533525,159.166017 143.333547,159.770779 144.246896,159.780457 L145.075709,159.780457 C146.203772,159.776789 147.117337,158.863223 147.121006,157.73516 L147.121006,157.73516 Z",fill:"#FFF","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M155.589604,151.799789 L155.589604,153.176688 C155.585935,154.304752 154.67237,155.218317 153.544307,155.221985 L152.715494,155.221985 C151.621133,155.182066 150.761195,154.271543 150.783825,153.176688 L150.743721,152.354559 C151.003708,153.243828 151.822448,153.852425 152.748914,153.845086 L153.517571,153.845086 C154.0641,153.85043 154.590177,153.637519 154.979151,153.253564 C155.368125,152.869609 155.58785,152.346341 155.589604,151.799789 Z",fill:"#FFF","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M150.262475,138.151109 L150.670197,151.853261 C150.706366,153.096946 151.725275,154.086235 152.969485,154.085709 L153.290316,154.085709 C154.554975,154.085709 155.582251,153.064427 155.589604,151.799789 L155.589604,138.151109 L150.262475,138.151109 Z",fill:"#FFBBAB","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M159.345999,136.533587 C158.958328,138.812823 157.126918,139.701792 155.629708,141.158899 C154.493432,142.268439 153.764878,143.331191 152.287719,144.073112 C150.865065,144.81143 149.312188,145.265488 147.71588,145.409908 C145.020458,145.595732 142.361528,144.703812 140.323402,142.930152 C139.716438,142.484383 139.227682,141.896958 138.899715,141.219054 C138.696142,140.654908 138.587722,140.060856 138.578884,139.461169 C138.057534,130.892311 139.334173,122.323453 139.287385,113.741227 C139.3093,111.64331 139.146023,109.547551 138.799455,107.478341 C138.371681,105.145634 137.569603,102.893133 137.088357,100.56711 C136.486799,97.6729479 135.992185,94.5515309 136.419959,91.5905293 C136.921258,88.2485411 139.695108,86.7513304 142.48901,85.441271 L143.324507,85.0536003 C143.80534,84.8032321 144.321449,84.6274392 144.855138,84.5322502 C145.340502,84.48331 145.83075,84.5287034 146.298877,84.6659297 C147.981681,85.1608511 149.475298,86.1534884 150.583305,87.5133037 C151.680261,88.8733796 152.59272,90.3724203 153.297,91.971516 C154.098947,93.5419358 154.597808,95.2494005 154.767475,97.0045502 C154.767475,97.1783336 154.767475,97.352117 154.767475,97.5325844 C154.767475,99.0030592 154.30628,100.346538 154.099077,101.803645 C153.878506,103.467955 153.664619,105.145634 153.430679,106.80326 C153.145095,108.478366 153.068758,110.182467 153.203424,111.876398 C153.460001,113.449058 153.888101,114.988874 154.480064,116.46829 C156.435119,122.0642 157.974389,127.796807 159.085324,133.619373 C159.343507,134.567784 159.43176,135.554411 159.345999,136.533587 L159.345999,136.533587 Z",fill:"#32A5FB","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M159.345999,136.533587 C158.958328,138.812823 157.126918,139.701792 155.629708,141.158899 C154.493432,142.268439 153.764878,143.331191 152.287719,144.073112 C150.865065,144.81143 149.312188,145.265488 147.71588,145.409908 C147.553574,145.312353 147.407075,145.190646 147.281421,145.048973 C146.836172,144.437228 146.631567,143.683046 146.706599,142.930152 C146.753387,139.982519 147.842875,137.161881 148.310753,134.240983 C148.82542,131.005938 148.564745,127.704054 148.310753,124.43559 C147.896347,119.262192 147.479712,114.091022 147.06085,108.92208 C147.018166,107.736232 146.811219,106.562034 146.445924,105.433045 C145.969334,104.383569 145.410599,103.373376 144.77493,102.411887 C143.017044,99.3105221 143.398031,96.3227846 142.62269,93.0543202 C141.954292,90.3072058 141.285894,88.2351731 142.52243,85.441271 L143.357927,85.0536003 C143.838759,84.8032321 144.354869,84.6274392 144.888558,84.5322502 C145.373922,84.48331 145.86417,84.5287034 146.332296,84.6659297 C148.015101,85.1608511 149.508717,86.1534884 150.616725,87.5133037 C151.71368,88.8733796 152.62614,90.3724203 153.33042,91.971516 C154.132367,93.5419358 154.631228,95.2494005 154.800895,97.0045502 C154.800895,97.1783336 154.800895,97.352117 154.800895,97.5325844 C154.800895,99.0030592 154.3397,100.346538 154.132497,101.803645 C153.911926,103.467955 153.698039,105.145634 153.464099,106.80326 C153.178514,108.478366 153.102178,110.182467 153.236844,111.876398 C153.49342,113.449058 153.921521,114.988874 154.513484,116.46829 C156.468539,122.0642 158.007809,127.796807 159.118743,133.619373 C159.365709,134.569784 159.442645,135.556381 159.345999,136.533587 L159.345999,136.533587 Z",fill:"url(#gez4e667cc)","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M144.099848,90.3072058 C144.099848,90.3072058 141.847348,106.18165 140.6576,109.02234 C139.467853,111.86303 131.420345,117.551094 131.420345,117.551094 L128.746754,115.12481 L127.503535,113.995218 C127.503535,113.995218 133.666161,108.781717 135.203476,107.97964 C136.74079,107.177562 137.689915,95.5407594 137.676547,91.7175249 C137.663179,87.8942903 141.553253,88.1014936 141.553253,88.1014936 C144.454099,87.0454253 144.099848,90.3072058 144.099848,90.3072058 Z",fill:"#32A5FB","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M166.624849,103.361012 C166.342337,104.825334 165.427415,106.090078 164.125042,106.816628 C162.676207,107.756583 160.971341,108.22367 159.245739,108.153423 C157.508977,108.074179 155.871434,107.321341 154.680583,106.054654 C154.294856,105.560023 153.879699,105.089065 153.437363,104.644335 C152.174092,103.528111 150.302578,103.474639 148.75858,102.746086 C146.5395,101.683334 145.256176,99.2637343 144.801666,96.8508188 C144.347155,94.4379033 144.574411,91.951464 144.567727,89.4984447 C144.630013,88.610037 144.45225,87.7212263 144.05306,86.9251138 C143.257667,85.5883185 141.880768,85.1003882 141.37947,83.4962338 C141.366399,83.4413009 141.366399,83.3840674 141.37947,83.3291344 C141.427529,83.2403574 141.513844,83.1787042 141.613409,83.162035 C141.962484,83.0759677 142.290111,82.9189798 142.575902,82.7008406 C142.861497,82.4673769 142.977689,82.0844702 142.869997,81.7316641 C142.801799,81.5669978 142.658639,81.4451246 142.485199,81.4040816 C142.311759,81.3630385 142.129162,81.4078242 141.994396,81.5244608 C142.255071,80.8025913 141.680249,80.0874058 141.325998,79.4256922 L141.178951,79.1516491 C140.666503,78.0890891 140.568787,76.8735995 140.904908,75.7428212 C140.972721,75.5699563 141.011127,75.3869616 141.018535,75.2014191 C140.99009,75.0065954 140.938481,74.8158657 140.864804,74.6332811 C140.590761,73.7108923 141.192319,72.7483997 141.927556,72.1267899 C144.172011,70.3878106 147.266876,70.2460407 149.660917,71.7725391 C151.773053,73.1628062 152.481555,75.8898686 152.875909,78.3829919 C152.897474,78.6579333 152.989557,78.922672 153.143268,79.1516491 C153.288766,79.3037174 153.463939,79.4242908 153.657935,79.5058999 C154.914522,80.0874058 156.331525,80.341397 157.454433,81.176894 C159.459626,82.6674208 159.740353,85.4746909 159.733669,87.9477622 C159.726985,90.4208334 159.653462,93.1412119 161.217512,95.0528291 C161.991861,95.852262 162.827691,96.5897588 163.717319,97.2585414 C164.898745,98.313401 165.79527,99.6489934 166.32407,101.141932 C166.35749,101.228823 166.384226,101.322399 166.417646,101.409291 C166.62196,102.038318 166.692537,102.703107 166.624849,103.361012 Z",fill:"#FC682D","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M129.789455,62.9029024 C129.713675,62.2307714 129.540295,61.5732815 129.274789,60.9511813 C128.996985,60.3240631 128.425976,59.8757705 127.750842,59.7547495 C126.728194,59.6544898 125.865961,60.6570863 125.745649,61.6797347 C125.684518,62.7101844 125.832297,63.7423591 126.180107,64.71426 C126.333839,65.3158179 126.400679,66.0510553 125.892696,66.425358 C125.744789,66.4994261 125.603855,66.5866705 125.471606,66.6860331 C125.117355,67.0335998 125.471606,67.6685776 125.89938,67.8824648 C126.327155,68.0963521 126.888609,68.0963521 127.316383,68.3436592 C127.610034,68.5496716 127.891251,68.77286 128.158564,69.0120569 C128.980694,69.6202987 130.965835,69.3796756 131.106198,68.1431399 C131.186406,67.4747423 130.591532,66.3585182 130.4378,65.6767526 C130.123654,64.7877837 129.943186,63.858711 129.789455,62.9029024 Z",fill:"#FFBBAB","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M144.099848,90.3072058 C144.099848,90.3072058 141.847348,106.18165 140.6576,109.02234 C139.467853,111.86303 131.420345,117.551094 131.420345,117.551094 L128.746754,115.12481 C130.564796,113.667704 136.239492,109.149335 137.750071,108.213579 C139.554744,107.104039 141.553253,88.0747577 141.553253,88.0747577 C144.454099,87.0454253 144.099848,90.3072058 144.099848,90.3072058 Z",fill:"url(#8mkgemue9d)","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M166.624849,103.361012 C166.342337,104.825334 165.427415,106.090078 164.125042,106.816628 C162.676207,107.756583 160.971341,108.22367 159.245739,108.153423 C157.508977,108.074179 155.871434,107.321341 154.680583,106.054654 C154.294856,105.560023 153.879699,105.089065 153.437363,104.644335 C152.174092,103.528111 150.302578,103.474639 148.75858,102.746086 C146.5395,101.683334 145.256176,99.2637343 144.801666,96.8508188 C144.347155,94.4379033 144.574411,91.951464 144.567727,89.4984447 C144.630013,88.610037 144.45225,87.7212263 144.05306,86.9251138 C143.257667,85.5883185 141.880768,85.1003882 141.37947,83.4962338 C141.366399,83.4413009 141.366399,83.3840674 141.37947,83.3291344 C142.261755,84.2515232 143.712178,84.7127176 144.67467,85.6351063 C146.011466,86.9384817 146.272141,88.9770945 146.486028,90.8486079 C146.699915,92.7201213 147.080902,94.7787861 148.578113,95.9150621 L149.340086,94.7854701 C149.991148,97.6275202 152.133205,99.8924189 154.934574,100.700789 L156.271369,98.207666 C156.324841,100.152703 156.786036,102.284892 158.336718,103.447904 C160.502327,105.065426 164.953855,104.818119 166.090131,102.23142 C166.177023,102.030901 166.277282,101.736806 166.404278,101.409291 C166.613102,102.037364 166.688234,102.702175 166.624849,103.361012 Z",fill:"url(#8xqk6orvqe)","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{stroke:"#FFF","stroke-width":".96917659",d:"M62.5152318 134.327875L29.8706908 148.65832 29.8706908 121.574848 62.5152318 107.251086z",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M58.7387851,126.901977 C58.7111603,127.683404 58.4530256,128.439204 57.9968637,129.074269 C57.5550391,129.738411 56.9306467,130.260672 56.198874,130.578164 L38.7536955,137.529499 C37.3500604,138.08427 36.2071004,137.335664 36.2071004,135.858505 C36.2331433,135.069554 36.4937756,134.306273 36.9557058,133.666161 C37.3975304,133.00202 38.0219228,132.479759 38.7536955,132.162266 L39.3418854,131.928327 C39.2167461,131.49379 39.1537374,131.043728 39.1547341,130.591532 C39.2072128,129.036462 39.7188685,127.531729 40.6252089,126.266999 C41.497066,124.95757 42.7299081,123.92904 44.1744004,123.305998 L45.6515592,122.717808 C47.5899123,121.942466 49.2675904,122.430397 50.1030875,123.793928 C50.4885911,123.415897 50.9421757,123.114263 51.4398828,122.904959 L51.8208694,122.751228 C53.4851796,122.08283 54.8353428,122.971799 54.8353428,124.75642 L54.8353428,124.910152 C54.8334365,125.223189 54.7953069,125.534954 54.7217152,125.839225 L56.1654541,125.264403 C57.6025091,124.676213 58.7387851,125.424818 58.7387851,126.901977 Z",fill:"#FFF","fill-rule":"nonzero",transform:"translate(10 34)"}}),t("path",{attrs:{d:"M28.5806833,12.478984 C27.2973598,4.99961439 23.9018998,1.19643178 18.6148744,0.187151341 C12.5992956,-0.969176586 6.04899869,3.28851641 2.61343479,10.5406309 C0.703822048,14.4202565 0.00516530237,18.7845323 0.608241857,23.0664027 C1.08948816,26.408391 3.52913957,28.3133242 6.23615003,27.5179311 C8.94316049,26.7225379 10.9884573,23.7414844 11.1221368,20.446284 C11.1257833,19.9032293 11.0922853,19.3605611 11.0218772,18.8220777 C10.7553669,16.6434279 11.8472956,14.5231779 13.7756755,13.4748965 C15.5736651,12.6327155 17.4050747,13.4748965 17.9531607,15.5469292 C18.353317,17.2396446 18.4281685,18.9929825 18.173732,20.713643 C17.7202537,25.2945869 15.5409047,29.5314134 12.0779454,32.5643333 C11.8774262,32.7381167 11.6702229,32.8918481 11.4763876,33.0789995 C11.0458435,33.4842508 10.9220947,34.119136 11.1689247,34.6564179 C11.2490391,34.8764014 11.4384117,35.0384333 11.6681393,35.0835583 C11.897867,35.1286834 12.1344594,35.0503233 12.2918327,34.8769891 C17.2847631,31.0002828 20.2658166,24.2294146 19.9917736,17.6390139 C20.0007671,16.3304186 19.7743649,15.0308703 19.3233759,13.8024114 C18.2071519,11.1756086 15.4399856,10.1997481 13.053806,11.5833312 C10.3513997,13.2976784 8.90286081,16.4353079 9.35088306,19.6041029 C9.69176586,22.0638063 8.40844238,24.4834057 6.34309365,25.2787989 C4.39137253,26.0407723 2.57333093,24.7641328 2.29260392,22.3311653 C1.53686976,16.7224543 3.31233202,11.0679131 7.13848685,6.8978637 C11.7838505,1.63757423 18.4009872,0.741921386 22.8792514,4.64536363 C25.0314918,6.51687704 26.2880794,9.1971516 26.7893776,12.5725597 C27.1472971,15.0462802 27.1810013,17.5561218 26.8896373,20.0385614 C26.8896373,20.1922929 26.8428494,20.3527083 26.8361655,20.5064398 C26.8361655,21.1748374 27.1035245,21.58256 27.5714029,21.58256 C28.1182191,21.5176233 28.52779,21.0503663 28.5205275,20.4997558 C28.6642705,19.3306123 28.7490416,18.1549714 28.7745186,16.9773002 C28.7611507,15.2327823 28.6274711,13.5083164 28.5806833,12.478984 Z",transform:"translate(95.554899 98.834572)",opacity:".43",fill:"#32A5FB","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M19.590735,9.47119463 C18.8087097,3.02784133 14.7047482,-0.661713669 9.95244094,0.267359058 C5.62790817,1.11622407 1.97845703,4.94614257 0.594873904,10.1663282 C0.0875420904,12.0725363 -0.0351549564,14.0606829 0.233939176,16.0148076 C0.347566775,16.8168848 0.842181033,17.1310316 1.40363505,16.7901488 C1.82421845,16.4838876 2.03625934,15.9667147 1.95172112,15.4533536 C1.90493329,14.8451117 1.81804159,14.2435538 1.82472557,13.628628 C1.88488136,9.47787861 4.13069745,5.3070773 7.24543047,3.54250752 C10.2599039,1.83140955 13.0137022,1.96508908 15.4333016,4.21090516 C16.6207114,5.39470732 17.3942992,6.93016196 17.6390139,8.58890974 C18.4633939,13.3898354 17.7889239,18.3281697 15.7073447,22.7322039 C15.5201933,23.1466105 15.319674,23.547649 15.1392067,23.9553716 C14.82184,24.4572413 14.9060198,25.1138438 15.339726,25.5194221 C15.7741844,25.820201 16.2687987,25.5929458 16.5963135,24.9312322 C19.1696445,19.7712023 20.2858685,14.4440731 19.590735,9.47119463 Z",transform:"translate(100.233682 104.181753)",opacity:".43",fill:"#32A5FB","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M12.6928713,1.8447775 C8.48196612,3.70960693 4.257693,7.8068845 1.33011131,14.1767141 C0.94244068,15.038947 0.614925834,15.9479678 0.280727011,16.8503046 C0.00668397645,17.612278 0.147047482,18.1870999 0.614925834,18.4210391 C1.08280419,18.6549783 1.57073447,18.3140955 1.8447775,17.5120183 C3.55587547,12.5591918 6.22278208,8.62232962 9.9056531,5.93537109 C15.8142883,1.62420628 21.6026119,0.868916939 27.1168925,4.55178796 C27.7983332,5.04908116 28.4417759,5.59645429 29.0418777,6.18936219 C29.2066766,6.41320145 29.4786896,6.53169604 29.7548313,6.49993975 C30.030973,6.46818346 30.2689872,6.29103573 30.378673,6.03563074 C30.7416086,5.52157541 30.6733672,4.81925771 30.2182575,4.38468855 C27.980358,1.9692992 24.9485375,0.439154996 21.6761356,0.073523741 C19.0359649,-0.173783388 16.3891103,0.280727011 12.6928713,1.8447775 Z",transform:"translate(92.881308 93.48739)",opacity:".43",fill:"#32A5FB","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M9.86554924,1.78462171 C6.66392452,3.06794519 3.52913957,5.61454022 0.701817527,8.93647652 C0.229408898,9.37224009 0.133958889,10.0825004 0.474562328,10.6275226 C0.808761151,11.1020849 1.28332348,11.061981 1.75788581,10.507211 C3.44050633,8.44151455 5.43918889,6.65488182 7.67988894,5.21350163 C11.7704825,2.72706239 15.90118,1.79130569 20.0786653,2.63348672 C20.2190288,2.63348672 20.3593923,2.70032649 20.5064398,2.72037842 C21.0577872,2.72984142 21.5236064,2.31351553 21.575876,1.76456978 C21.6961876,1.16969588 21.4622484,0.614925834 20.9743181,0.541402093 C19.8852392,0.338559683 18.7847919,0.20239886 17.6791177,0.133679529 C14.9830331,0.083656799 12.3109573,0.648244237 9.86554924,1.78462171 L9.86554924,1.78462171 Z",transform:"translate(95.554899 88.140209)",opacity:".43",fill:"#32A5FB","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M3.39546004,16.0682794 C8.32155068,13.9895627 10.7478341,8.36165454 10.9283015,3.89675827 C10.9465529,3.00389122 10.9063632,2.11078663 10.8079899,1.22316769 C10.7411502,0.494614257 10.3133757,0.160415435 9.81876141,0.340882799 C9.28012226,0.628686678 9.00501092,1.24493608 9.15036376,1.83809352 C9.59684335,5.0847948 8.73619076,8.37594952 6.75750019,10.9884573 C5.68331114,12.4624733 4.16552464,13.5539679 2.42628345,14.1031903 C2.01856089,14.2435538 1.59747037,14.3237615 1.18306383,14.4507571 C0.639742818,14.6378462 0.298395458,15.1762315 0.360934728,15.7474485 C0.360934728,16.3490064 0.761973316,16.736677 1.29669143,16.6163655 C1.97845703,16.4826859 2.68695853,16.2621147 3.39546004,16.0682794 Z",transform:"translate(100.233682 114.876115)",opacity:".43",fill:"#32A5FB","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M11.8172704,31.0136507 C12.199399,30.8269764 12.4699023,30.4696143 12.5458238,30.0511581 C12.7554789,29.4829173 12.4737098,28.8511613 11.910846,28.6274711 C6.42330137,27.4109874 3.26846448,22.5717885 2.553279,14.2569218 C2.23919173,10.0468373 2.43443919,5.81423146 3.13478496,1.65094218 C3.32187259,1.08842346 3.02486399,0.479555821 2.46638731,0.280727011 C1.95172112,0.20720327 1.43037096,0.688449575 1.30337541,1.3635312 C0.541587847,5.79431328 0.328323698,10.3020439 0.668397645,14.7849559 C1.48384277,24.0489473 5.1934497,29.6835394 11.4095478,31.0604386 C11.546999,31.0879847 11.689632,31.071617 11.8172704,31.0136507 Z",transform:"translate(90.876115 112.870922)",opacity:".43",fill:"#32A5FB","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M1.75120183,10.9884573 C3.08799712,10.4403712 8.43517828,7.88709221 11.1087689,2.10545258 C11.4073705,1.55604055 11.2852074,0.873037509 10.8146739,0.461194375 C10.3668475,0.173783388 9.77865755,0.461194375 9.47787861,1.06275226 C6.97138744,6.52356102 1.21648371,8.71590529 1.15632793,8.73595722 C0.58417164,9.01996036 0.262242034,9.64217724 0.360934728,10.2732718 C0.447826422,10.9416695 0.935756703,11.2959202 1.45710687,11.1020849 L1.75120183,10.9884573 Z",transform:"translate(103.57567 132.254454)",opacity:".43",fill:"#32A5FB","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M1.30337541,19.8447261 C1.39731415,19.8075853 1.48346371,19.753175 1.55736651,19.6843107 C8.62232962,13.8024114 11.4362837,1.97177305 11.5499113,1.4771588 C11.7571023,0.909054883 11.4801498,0.278546028 10.9216175,0.0467878352 C10.4136353,-0.0668397645 9.8789172,0.387670634 9.72518574,1.05606828 C9.68508188,1.21648371 7.00480732,12.4188282 0.668397645,17.6657498 C0.188595505,18.0981065 0.0286006928,18.7834176 0.267359058,19.3835317 C0.335682588,19.5880874 0.486797648,19.7545307 0.683821775,19.8422383 C0.880845903,19.9299458 1.10565326,19.9308485 1.30337541,19.8447261 Z",transform:"translate(112.26484 122.228489)",opacity:".43",fill:"#32A5FB","fill-rule":"nonzero"}}),t("path",{attrs:{d:"M7.4660017,3.28183244 C7.97400723,3.06946936 8.45983244,2.80752673 8.91642459,2.49980719 C9.43145248,2.10987486 9.64776869,1.43956169 9.45782668,0.822129104 C9.40551605,0.556811821 9.22092337,0.336792685 8.96873368,0.239170867 C8.71654398,0.141549049 8.43192276,0.179936998 8.21460706,0.340882799 C6.27137404,1.74484192 3.63421219,1.69580379 1.74451785,0.220571223 C1.33011131,-0.126995553 0.728553433,0.0601557881 0.407722564,0.641661739 C0.0717424947,1.17448315 0.131863655,1.8658765 0.554770046,2.33270778 C2.51172458,3.88885814 5.16199319,4.25282153 7.4660017,3.28183244 Z",transform:"translate(96.223296 133.591249)",opacity:".43",fill:"#32A5FB","fill-rule":"nonzero"}})])])}},Fn=Object(i.b)("empty"),In=Fn[0],Mn=Fn[1],Dn=Fn[2],jn=In({props:{imageWidth:[Number,String],imageHeight:[Number,String],description:String,image:{type:String,default:"default"}},methods:{genImageContent:function(){var t=this.$createElement,e=this.slots("image");return e||("default"===this.image||"not-search-result"===this.image?t(xn):"not-found"===this.image?t(kn):"developing"===this.image?t(Tn):"error"===this.image?t(En):"not-right"===this.image?t(On):t("img",{attrs:{src:this.image}}))},genImage:function(){var t=this.$createElement,e={width:Object(i.a)(this.imageWidth),height:Object(i.a)(this.imageHeight)};return t("div",{class:Mn("image"),style:e},[this.genImageContent()])},genDescription:function(){var t=this.$createElement,e=this.slots("description")||this.description;if(e||("not-search-result"===this.image?e=Dn("notSearchResult"):"not-found"===this.image?e=Dn("notFound"):"developing"===this.image?e=Dn("developing"):"error"===this.image?e=Dn("error"):"not-right"===this.image&&(e=Dn("notRight"))),e)return t("p",{class:Mn("description")},[e])},genBottom:function(){var t=this.$createElement,e=this.slots();if(e)return t("div",{class:Mn("bottom")},[e])}},render:function(){var t=arguments[0];return t("div",{class:Mn()},[this.genImage(),this.genDescription(),this.genBottom()])}});var Nn=!i.i&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function Bn(){Nn&&rt(nt())}var zn=Object(i.b)("field"),Hn=zn[0],Un=zn[1],Vn=Hn({inheritAttrs:!1,provide:function(){return{ztField:this}},inject:{ztForm:{default:null}},props:Object(r.a)({},Le,{name:String,rules:Array,disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},autosize:[Boolean,Object],leftIcon:String,rightIcon:String,clearable:Boolean,formatter:Function,maxlength:[Number,String],labelWidth:[Number,String],labelClass:null,labelAlign:String,inputAlign:String,placeholder:String,errorMessage:String,errorMessageAlign:String,showWordLimit:Boolean,value:{type:[Number,String],default:""},type:{type:String,default:"text"},error:{type:Boolean,default:null},colon:{type:Boolean,default:null},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),data:function(){return{focused:!1,validateFailed:!1,validateMessage:""}},watch:{value:function(){this.updateValue(this.value),this.resetValidation(),this.validateWithTrigger("onChange"),this.$nextTick(this.adjustSize)}},mounted:function(){this.updateValue(this.value,this.formatTrigger),this.$nextTick(this.adjustSize),this.ztForm&&this.ztForm.addField(this)},beforeDestroy:function(){this.ztForm&&this.ztForm.removeField(this)},computed:{showClear:function(){var t=this.getProp("readonly");if(this.clearable&&!t){var e=Object(i.e)(this.value)&&""!==this.value,n="always"===this.clearTrigger||"focus"===this.clearTrigger&&this.focused;return e&&n}},showError:function(){return null!==this.error?this.error:!!(this.ztForm&&this.ztForm.showError&&this.validateFailed)||void 0},listeners:function(){return Object(r.a)({},this.$listeners,{blur:this.onBlur,focus:this.onFocus,input:this.onInput,click:this.onClickInput,keypress:this.onKeypress})},labelStyle:function(){var t=this.getProp("labelWidth");if(t)return{width:Object(i.a)(t)}},formValue:function(){return this.children&&(this.$scopedSlots.input||this.$slots.input)?this.children.value:this.value}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},runValidator:function(t,e){return new Promise((function(n){var r=e.validator(t,e);if(Object(i.h)(r))return r.then(n);n(r)}))},isEmptyValue:function(t){return Array.isArray(t)?!t.length:0!==t&&!t},runSyncRule:function(t,e){return(!e.required||!this.isEmptyValue(t))&&!(e.pattern&&!e.pattern.test(t))},getRuleMessage:function(t,e){var n=e.message;return Object(i.f)(n)?n(t,e):n},runRules:function(t){var e=this;return t.reduce((function(t,n){return t.then((function(){if(!e.validateFailed){var t=e.formValue;return n.formatter&&(t=n.formatter(t,n)),e.runSyncRule(t,n)?n.validator?e.runValidator(t,n).then((function(r){!1===r&&(e.validateFailed=!0,e.validateMessage=e.getRuleMessage(t,n))})):void 0:(e.validateFailed=!0,void(e.validateMessage=e.getRuleMessage(t,n)))}}))}),Promise.resolve())},validate:function(t){var e=this;return void 0===t&&(t=this.rules),new Promise((function(n){t||n(),e.resetValidation(),e.runRules(t).then((function(){e.validateFailed?n({name:e.name,message:e.validateMessage}):n()}))}))},validateWithTrigger:function(t){if(this.ztForm&&this.rules){var e=this.ztForm.validateTrigger===t,n=this.rules.filter((function(n){return n.trigger?n.trigger===t:e}));n.length&&this.validate(n)}},resetValidation:function(){this.validateFailed&&(this.validateFailed=!1,this.validateMessage="")},updateValue:function(t,e){void 0===e&&(e="onChange"),t=Object(i.e)(t)?String(t):"";var n=this.maxlength;if(Object(i.e)(n)&&t.length>n&&(t=this.value&&this.value.length===+n?this.value:t.slice(0,n)),"number"===this.type||"digit"===this.type){var r="number"===this.type;t=R(t,r,r)}this.formatter&&e===this.formatTrigger&&(t=this.formatter(t));var o=this.$refs.input;o&&t!==o.value&&(o.value=t),t!==this.value&&this.$emit("input",t)},onInput:function(t){t.target.composing||this.updateValue(t.target.value)},onFocus:function(t){this.focused=!0,this.$emit("focus",t),this.getProp("readonly")&&this.blur()},onBlur:function(t){this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",t),this.validateWithTrigger("onBlur"),Bn()},onClick:function(t){this.$emit("click",t)},onClickInput:function(t){this.$emit("click-input",t)},onClickLeftIcon:function(t){this.$emit("click-left-icon",t)},onClickRightIcon:function(t){this.$emit("click-right-icon",t)},onClear:function(t){h(t),this.$emit("input",""),this.$emit("clear",t)},onKeypress:function(t){13===t.keyCode&&(this.getProp("submitOnEnter")||"textarea"===this.type||h(t),"search"===this.type&&this.blur());this.$emit("keypress",t)},adjustSize:function(){var t=this.$refs.input;if("textarea"===this.type&&this.autosize&&t){var e=nt();t.style.height="auto";var n=t.scrollHeight;if(Object(i.g)(this.autosize)){var r=this.autosize,o=r.maxHeight,a=r.minHeight;o&&(n=Math.min(n,o)),a&&(n=Math.max(n,a))}n&&(t.style.height=n+"px",rt(e))}},genInput:function(){var t=this.$createElement,e=this.type,n=this.getProp("disabled"),i=this.getProp("readonly"),o=this.slots("input"),a=this.getProp("inputAlign");if(o)return t("div",{class:Un("control",[a,"custom"]),on:{click:this.onClickInput}},[o]);var s={ref:"input",class:Un("control",a),domProps:{value:this.value},attrs:Object(r.a)({},this.$attrs,{name:this.name,disabled:n,readonly:i,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]};if("textarea"===e)return t("textarea",p()([{},s]));var u,l=e;return"number"===e&&(l="text",u="decimal"),"digit"===e&&(l="tel",u="numeric"),t("input",p()([{attrs:{type:l,inputmode:u}},s]))},genLeftIcon:function(){var t=this.$createElement;if(this.slots("left-icon")||this.leftIcon)return t("div",{class:Un("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||t(Ct,{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var t=this.$createElement,e=this.slots;if(e("right-icon")||this.rightIcon)return t("div",{class:Un("right-icon"),on:{click:this.onClickRightIcon}},[e("right-icon")||t(Ct,{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var t=this.$createElement;if(this.showWordLimit&&this.maxlength){var e=(this.value||"").length;return t("div",{class:Un("word-limit")},[t("span",{class:Un("word-num")},[e]),"/",this.maxlength])}},genMessage:function(){var t=this.$createElement;if(!this.ztForm||!1!==this.ztForm.showErrorMessage){var e=this.errorMessage||this.validateMessage;if(e){var n=this.getProp("errorMessageAlign");return t("div",{class:Un("error-message",n)},[e])}}},getProp:function(t){return Object(i.e)(this[t])?this[t]:this.ztForm&&Object(i.e)(this.ztForm[t])?this.ztForm[t]:void 0},genLabel:function(){var t=this.$createElement,e=this.getProp("colon")?":":"";return this.slots("label")?[this.slots("label"),e]:this.label?t("span",[this.label+e]):void 0}},render:function(){var t,e=arguments[0],n=this.slots,r=this.getProp("disabled"),i=this.getProp("labelAlign"),o={icon:this.genLeftIcon},a=this.genLabel();a&&(o.title=function(){return a});var s=this.slots("extra");return s&&(o.extra=function(){return s}),e(Ie,{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:Un("value"),titleClass:[Un("label",i),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:o,class:Un((t={error:this.showError,disabled:r},t["label-"+i]=i,t["min-height"]="textarea"===this.type&&!this.autosize,t)),on:{click:this.onClick}},[e("div",{class:Un("body")},[this.genInput(),this.showClear&&e(Ct,{attrs:{name:"clear"},class:Un("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),n("button")&&e("div",{class:Un("button")},[n("button")])]),this.genWordLimit(),this.genMessage()])}}),Wn=Object(i.b)("form"),qn=Wn[0],$n=Wn[1],Gn=qn({props:{colon:Boolean,disabled:Boolean,readonly:Boolean,labelWidth:[Number,String],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,errorMessageAlign:String,submitOnEnter:{type:Boolean,default:!0},validateTrigger:{type:String,default:"onBlur"},showError:{type:Boolean,default:!0},showErrorMessage:{type:Boolean,default:!0}},provide:function(){return{ztForm:this}},data:function(){return{fields:[]}},methods:{getFieldsByNames:function(t){return t?this.fields.filter((function(e){return-1!==t.indexOf(e.name)})):this.fields},validateSeq:function(t){var e=this;return new Promise((function(n,r){var i=[];e.getFieldsByNames(t).reduce((function(t,e){return t.then((function(){if(!i.length)return e.validate().then((function(t){t&&i.push(t)}))}))}),Promise.resolve()).then((function(){i.length?r(i):n()}))}))},validateFields:function(t){var e=this;return new Promise((function(n,r){var i=e.getFieldsByNames(t);Promise.all(i.map((function(t){return t.validate()}))).then((function(t){(t=t.filter((function(t){return t}))).length?r(t):n()}))}))},validate:function(t){return t&&!Array.isArray(t)?this.validateField(t):this.validateFirst?this.validateSeq(t):this.validateFields(t)},validateField:function(t){var e=this.fields.filter((function(e){return e.name===t}));return e.length?new Promise((function(t,n){e[0].validate().then((function(e){e?n(e):t()}))})):Promise.reject()},resetValidation:function(t){t&&!Array.isArray(t)&&(t=[t]),this.getFieldsByNames(t).forEach((function(t){t.resetValidation()}))},scrollToField:function(t,e){this.fields.some((function(n){return n.name===t&&(n.$el.scrollIntoView(e),!0)}))},addField:function(t){this.fields.push(t),He(this.fields,this)},removeField:function(t){this.fields=this.fields.filter((function(e){return e!==t}))},getValues:function(){return this.fields.reduce((function(t,e){return t[e.name]=e.formValue,t}),{})},onSubmit:function(t){t.preventDefault(),this.submit()},submit:function(){var t=this,e=this.getValues();this.validate().then((function(){t.$emit("submit",e)})).catch((function(n){t.$emit("failed",{values:e,errors:n}),t.scrollToError&&t.scrollToField(n[0].name)}))}},render:function(){var t=arguments[0];return t("form",{class:$n(),on:{submit:this.onSubmit}},[this.slots()])}}),Yn=Object(i.b)("image"),Xn=Yn[0],Zn=Yn[1],Kn=Xn({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var t={};return Object(i.e)(this.width)&&(t.width=Object(i.a)(this.width)),Object(i.e)(this.height)&&(t.height=Object(i.a)(this.height)),Object(i.e)(this.radius)&&(t.overflow="hidden",t.borderRadius=Object(i.a)(this.radius)),t}},created:function(){var t=this.$Lazyload;t&&i.d&&(t.$on("loaded",this.onLazyLoaded),t.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var t=this.$Lazyload;t&&(t.$off("loaded",this.onLazyLoaded),t.$off("error",this.onLazyLoadError))},methods:{onLoad:function(t){this.loading=!1,this.$emit("load",t)},onLazyLoaded:function(t){t.el===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(t){t.el!==this.$refs.image||this.error||this.onError()},onError:function(t){this.error=!0,this.loading=!1,this.$emit("error",t)},onClick:function(t){this.$emit("click",t)},genPlaceholder:function(){var t=this.$createElement;return this.loading&&this.showLoading?t("div",{class:Zn("loading")},[this.slots("loading")||t(Ct,{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:Zn("loading-icon")})]):this.error&&this.showError?t("div",{class:Zn("error")},[this.slots("error")||t(Ct,{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:Zn("error-icon")})]):void 0},genImage:function(){var t=this.$createElement,e={class:Zn("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?t("img",p()([{ref:"image",directives:[{name:"lazy",value:this.src}]},e])):t("img",p()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},e]))}},render:function(){var t=arguments[0];return t("div",{class:Zn({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}}),Qn=Object(i.b)("image-preview"),Jn=Qn[0],tr=Qn[1];function er(t){var e=window.getComputedStyle(t),n="none"===e.display,r=null===t.offsetParent&&"fixed"!==e.position;return n||r}var nr=Object(i.b)("swipe"),rr=nr[0],ir=nr[1],or=rr({mixins:[F,Ve("vanSwipe"),st((function(t,e){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()}))],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var e=this.vertical?"height":"width",n=this.vertical?"width":"height";t[e]=this.trackSize+"px",t[n]=this[n]?this[n]+"px":""}return t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),this.$el&&!er(this.$el)){clearTimeout(this.timer);var e={width:this.$el.offsetWidth,height:this.$el.offsetHeight};this.rect=e,this.swiping=!0,this.active=t,this.computedWidth=+this.width||e.width,this.computedHeight=+this.height||e.height,this.offset=this.getTargetOffset(t),this.children.forEach((function(t){t.offset=0})),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(h(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var t=this.size,e=this.delta,n=e/(Date.now()-this.touchStartTime);if((Math.abs(n)>.25||Math.abs(e)>t/2)&&this.isCorrectDirection){var r=this.vertical?this.offsetY:this.offsetX,i=0;i=this.loop?r>0?e>0?-1:1:0:-Math[e>0?"ceil":"floor"](e/t),this.move({pace:i,emitChange:!0})}else e&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,n=this.count,r=this.maxCount;return t?this.loop?L(e+t,-1,n):L(e+t,0,r):e},getTargetOffset:function(t,e){void 0===e&&(e=0);var n=t*this.size;this.loop||(n=Math.min(n,-this.minOffset));var r=e-n;return this.loop||(r=L(r,this.minOffset,0)),r},move:function(t){var e=t.pace,n=void 0===e?0:e,r=t.offset,i=void 0===r?0:r,o=t.emitChange,a=this.loop,s=this.count,u=this.active,l=this.children,c=this.trackSize,h=this.minOffset;if(!(s<=1)){var f=this.getTargetActive(n),d=this.getTargetOffset(f,i);if(a){if(l[0]&&d!==h){var p=d<h;l[0].offset=p?c:0}if(l[s-1]&&0!==d){var v=d>0;l[s-1].offset=v?-c:0}}this.active=f,this.offset=d,o&&f!==u&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(Kt.b)((function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})}))},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(Kt.b)((function(){t.swiping=!1,t.move({pace:1,emitChange:!0})}))},swipeTo:function(t,e){var n=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),Object(Kt.b)((function(){var r;r=n.loop&&t===n.count?0===n.active?0:t:t%n.count,e.immediate?Object(Kt.b)((function(){n.swiping=!1})):n.swiping=!1,n.move({pace:r-n.active,emitChange:!0})}))},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout((function(){t.next(),t.autoPlay()}),e))},genIndicator:function(){var t=this,e=this.$createElement,n=this.count,r=this.activeIndicator,i=this.slots("indicator");return i||(this.showIndicators&&n>1?e("div",{class:ir("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(n)).map((function(n,i){return e("i",{class:ir("indicator",{active:i===r}),style:i===r?t.indicatorStyle:null})}))]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:ir()},[t("div",{ref:"track",style:this.trackStyle,class:ir("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}}),ar=Object(i.b)("swipe-item"),sr=ar[0],ur=ar[1],lr=sr({mixins:[Ue("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var t=this;this.$nextTick((function(){t.mounted=!0}))},computed:{style:function(){var t={},e=this.parent,n=e.size,r=e.vertical;return n&&(t[r?"height":"width"]=n+"px"),this.offset&&(t.transform="translate"+(r?"Y":"X")+"("+this.offset+"px)"),t},shouldRender:function(){var t=this.index,e=this.inited,n=this.parent,r=this.mounted;if(!n.lazyRender||e)return!0;if(!r)return!1;var i=n.activeIndicator,o=n.count-1,a=0===i&&n.loop?o:i-1,s=i===o&&n.loop?0:i+1,u=t===i||t===a||t===s;return u&&(this.inited=!0),u}},render:function(){var t=arguments[0];return t("div",{class:ur(),style:this.style,on:Object(r.a)({},this.$listeners)},[this.shouldRender&&this.slots()])}});function cr(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}var hr,fr={mixins:[F],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var t=this.rootWidth,e=this.rootHeight/t;return this.imageRatio>e},imageStyle:function(){var t=this.scale,e={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(1!==t){var n=this.moveX/t,r=this.moveY/t;e.transform="scale("+t+", "+t+") translate("+n+"px, "+r+"px)"}return e},maxMoveX:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*t-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*t-this.rootHeight)/2)}return 0}},watch:{active:"resetScale",show:function(t){t||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(t){(t=L(t,+this.minZoom,+this.maxZoom))!==this.scale&&(this.scale=t,this.$emit("scale",{scale:this.scale,index:this.active}))},toggleScale:function(){var t=this.scale>1?1:2;this.setScale(t),this.moveX=0,this.moveY=0},onTouchStart:function(t){var e=t.touches,n=this.offsetX,r=void 0===n?0:n;this.touchStart(t),this.touchStartTime=new Date,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=1===e.length&&1!==this.scale,this.zooming=2===e.length&&!r,this.zooming&&(this.startScale=this.scale,this.startDistance=cr(t.touches))},onTouchMove:function(t){var e=t.touches;if(this.touchMove(t),(this.moving||this.zooming)&&h(t,!0),this.moving){var n=this.deltaX+this.startMoveX,r=this.deltaY+this.startMoveY;this.moveX=L(n,-this.maxMoveX,this.maxMoveX),this.moveY=L(r,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var i=cr(e),o=this.startScale*i/this.startDistance;this.setScale(o)}},onTouchEnd:function(t){var e=!1;(this.moving||this.zooming)&&(e=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.zooming&&(this.moveX=L(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=L(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),h(t,e),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var t=this,e=this.offsetX,n=void 0===e?0:e,r=this.offsetY,i=void 0===r?0:r,o=new Date-this.touchStartTime;n<10&&i<10&&o<250&&(this.doubleTapTimer?(clearTimeout(this.doubleTapTimer),this.doubleTapTimer=null,this.toggleScale()):this.doubleTapTimer=setTimeout((function(){t.$emit("close"),t.doubleTapTimer=null}),250))},onLoad:function(t){var e=t.target,n=e.naturalWidth,r=e.naturalHeight;this.imageRatio=r/n}},render:function(){var t=arguments[0],e={loading:function(){return t(P,{attrs:{type:"spinner"}})}};return t(lr,{class:tr("swipe-item")},[t(Kn,{attrs:{src:this.src,fit:"contain"},class:tr("image",{vertical:this.vertical}),style:this.imageStyle,scopedSlots:e,on:{load:this.onLoad}})])}},dr=Jn({mixins:[F,ct({skipToggleEvent:!0}),st((function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)}))],props:{className:null,closeable:Boolean,asyncClose:Boolean,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},transition:{type:String,default:"zt-fade"},showIndex:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:300},startPosition:{type:[Number,String],default:0},overlayClass:{type:String,default:tr("overlay")},closeIcon:{type:String,default:"clear"},closeOnPopstate:{type:Boolean,default:!0},closeIconPosition:{type:String,default:"top-right"}},data:function(){return{active:0,rootWidth:0,rootHeight:0,doubleClickTimer:null}},mounted:function(){this.resize()},watch:{startPosition:"setActive",value:function(t){var e=this;t?(this.setActive(+this.startPosition),this.$nextTick((function(){e.resize(),e.$refs.swipe.swipeTo(+e.startPosition,{immediate:!0})}))):this.$emit("close",{index:this.active,url:this.images[this.active]})}},methods:{resize:function(){if(this.$el&&this.$el.getBoundingClientRect){var t=this.$el.getBoundingClientRect();this.rootWidth=t.width,this.rootHeight=t.height}},emitClose:function(){this.asyncClose||this.$emit("input",!1)},emitScale:function(t){this.$emit("scale",t)},setActive:function(t){t!==this.active&&(this.active=t,this.$emit("change",t))},genIndex:function(){var t=this.$createElement;if(this.showIndex)return t("div",{class:tr("index")},[this.slots("index",{index:this.active})||this.active+1+" / "+this.images.length])},genCover:function(){var t=this.$createElement,e=this.slots("cover");if(e)return t("div",{class:tr("cover")},[e])},genImages:function(){var t=this,e=this.$createElement;return e(or,{ref:"swipe",attrs:{lazyRender:!0,loop:this.loop,duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators,indicatorColor:"white"},class:tr("swipe"),on:{change:this.setActive}},[this.images.map((function(n){return e(fr,{attrs:{src:n,show:t.value,active:t.active,maxZoom:t.maxZoom,minZoom:t.minZoom,rootWidth:t.rootWidth,rootHeight:t.rootHeight},on:{scale:t.emitScale,close:t.emitClose}})}))])},genClose:function(){var t=this.$createElement;if(this.closeable)return t(Ct,{attrs:{role:"button",name:this.closeIcon},class:tr("close-icon",this.closeIconPosition),on:{click:this.emitClose}})},onClosed:function(){this.$emit("closed")},swipeTo:function(t,e){this.$refs.swipe&&this.$refs.swipe.swipeTo(t,e)}},render:function(){var t=arguments[0];return t("transition",{attrs:{name:this.transition},on:{afterLeave:this.onClosed}},[this.shouldRender?t("div",{directives:[{name:"show",value:this.value}],class:[tr(),this.className]},[this.genClose(),this.genImages(),this.genIndex(),this.genCover()]):null])}}),pr={loop:!0,value:!0,images:[],maxZoom:3,minZoom:1/3,onClose:null,onChange:null,className:"",showIndex:!0,closeable:!1,closeIcon:"clear",asyncClose:!1,transition:"zt-fade",getContainer:"body",startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"},vr=function(t,e){if(void 0===e&&(e=0),!i.i){hr||(hr=new(g.a.extend(dr))({el:document.createElement("div")}),document.body.appendChild(hr.$el),hr.$on("change",(function(t){hr.onChange&&hr.onChange(t)})),hr.$on("scale",(function(t){hr.onScale&&hr.onScale(t)})));var n=Array.isArray(t)?{images:t,startPosition:e}:t;return Object(r.a)(hr,pr,n),hr.$once("input",(function(t){hr.value=t})),hr.$once("closed",(function(){hr.images=[]})),n.onClose&&(hr.$off("close"),hr.$once("close",n.onClose)),hr}};vr.Component=dr,vr.install=function(){g.a.use(dr)};var gr=vr,yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mr=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},br=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),_r=function(t){return null==t||"function"!=typeof t&&"object"!==(void 0===t?"undefined":yr(t))},Cr=Object.prototype.toString,wr=function(t){var e=void 0===t?"undefined":yr(t);return"undefined"===e?"undefined":null===t?"null":!0===t||!1===t||t instanceof Boolean?"boolean":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?void 0!==t.constructor.name&&"Generator"===t.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(t)?"array":t instanceof RegExp?"regexp":t instanceof Date?"date":"[object RegExp]"===(e=Cr.call(t))?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":"[object Promise]"===e?"promise":function(t){return t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Map Iterator]"===e?"mapiterator":"[object Set Iterator]"===e?"setiterator":"[object String Iterator]"===e?"stringiterator":"[object Array Iterator]"===e?"arrayiterator":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"};
|
|
19
19
|
/*!
|
|
20
20
|
* Vue-Lazyload.js v1.3.3
|
|
21
21
|
* (c) 2019 Awe <hilongjw@gmail.com>
|
|
22
22
|
* Released under the MIT License.
|
|
23
|
-
*/function sr(t){t=t||{};var e=arguments.length,n=0;if(1===e)return t;for(;++n<e;){var r=arguments[n];ir(t)&&(t=r),lr(r)&&ur(t,r)}return t}function ur(t,e){for(var n in function(t,e){if(null==t)throw new TypeError("expected first argument to be an object.");if(void 0===e||"undefined"==typeof Symbol)return t;if("function"!=typeof Object.getOwnPropertySymbols)return t;for(var n=Object.prototype.propertyIsEnumerable,r=Object(t),i=arguments.length,o=0;++o<i;)for(var a=Object(arguments[o]),s=Object.getOwnPropertySymbols(a),u=0;u<s.length;u++){var l=s[u];n.call(a,l)&&(r[l]=a[l])}}(t,e),e)if("__proto__"!==n&&cr(e,n)){var r=e[n];lr(r)?("undefined"===ar(t[n])&&"function"===ar(r)&&(t[n]=r),t[n]=sr(t[n]||{},r)):t[n]=r}return t}function lr(t){return"object"===ar(t)||"function"===ar(t)}function cr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var hr=sr,fr="undefined"!=typeof window,dr=function(){if(fr&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)return"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}),!0;return!1}();var pr="event",vr="observer",gr=function(){if(fr)return"function"==typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t);function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}}();function mr(t,e){if(t.length){var n=t.indexOf(e);return n>-1?t.splice(n,1):void 0}}function yr(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var n=t.getAttribute("data-srcset"),r=[],i=t.parentNode.offsetWidth*e,o=void 0,a=void 0,s=void 0;(n=n.trim().split(",")).map((function(t){t=t.trim(),-1===(o=t.lastIndexOf(" "))?(a=t,s=999998):(a=t.substr(0,o),s=parseInt(t.substr(o+1,t.length-o-2),10)),r.push([s,a])})),r.sort((function(t,e){if(t[0]<e[0])return 1;if(t[0]>e[0])return-1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0}));for(var u="",l=void 0,c=0;c<r.length;c++){u=(l=r[c])[1];var h=r[c+1];if(h&&h[0]<i){u=l[1];break}if(!h){u=l[1];break}}return u}}function br(t,e){for(var n=void 0,r=0,i=t.length;r<i;r++)if(e(t[r])){n=t[r];break}return n}var _r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return fr&&window.devicePixelRatio||t};function wr(){if(!fr)return!1;var t=!0,e=document;try{var n=e.createElement("object");n.type="image/webp",n.style.visibility="hidden",n.innerHTML="!",e.body.appendChild(n),t=!n.offsetWidth,e.body.removeChild(n)}catch(e){t=!1}return t}var Sr=function(){if(fr){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}(),Ar={on:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Sr?t.addEventListener(e,n,{capture:r,passive:!0}):t.addEventListener(e,n,r)},off:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,n,r)}},xr=function(t,e,n){var r=new Image;if(!t||!t.src){var i=new Error("image src is required");return n(i)}r.src=t.src,r.onload=function(){e({naturalHeight:r.naturalHeight,naturalWidth:r.naturalWidth,src:r.src})},r.onerror=function(t){n(t)}},kr=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},Cr=function(t){return kr(t,"overflow")+kr(t,"overflow-y")+kr(t,"overflow-x")};function Pr(){}var Tr=function(){function t(e){var n=e.max;nr(this,t),this.options={max:n||100},this._caches=[]}return rr(t,[{key:"has",value:function(t){return this._caches.indexOf(t)>-1}},{key:"add",value:function(t){this.has(t)||(this._caches.push(t),this._caches.length>this.options.max&&this.free())}},{key:"free",value:function(){this._caches.shift()}}]),t}(),Rr=function(){function t(e){var n=e.el,r=e.src,i=e.error,o=e.loading,a=e.bindType,s=e.$parent,u=e.options,l=e.elRenderer,c=e.imageCache;nr(this,t),this.el=n,this.src=r,this.error=i,this.loading=o,this.bindType=a,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=u,this.rect=null,this.$parent=s,this.elRenderer=l,this._imageCache=c,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return rr(t,[{key:"initState",value:function(){"dataset"in this.el?this.el.dataset.src=this.src:this.el.setAttribute("data-src",this.src),this.state={loading:!1,error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,n=t.loading,r=t.error,i=this.src;this.src=e,this.loading=n,this.error=r,this.filter(),i!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var t=this;(function(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e})(this.options.filter).map((function(e){t.options.filter[e](t,t.options)}))}},{key:"renderLoading",value:function(t){var e=this;this.state.loading=!0,xr({src:this.loading},(function(n){e.render("loading",!1),e.state.loading=!1,t()}),(function(){t(),e.state.loading=!1,e.options.silent||console.warn("VueLazyload log: load failed with loading image("+e.loading+")")}))}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pr;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void e()):this.state.rendered&&this.state.loaded?void 0:this._imageCache.has(this.src)?(this.state.loaded=!0,this.render("loaded",!0),this.state.rendered=!0,e()):void this.renderLoading((function(){t.attempt++,t.options.adapter.beforeLoad&&t.options.adapter.beforeLoad(t,t.options),t.record("loadStart"),xr({src:t.src},(function(n){t.naturalHeight=n.naturalHeight,t.naturalWidth=n.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),t.state.rendered=!0,t._imageCache.add(t.src),e()}),(function(e){!t.options.silent&&console.error(e),t.state.error=!0,t.state.loaded=!1,t.render("error",!1)}))}))}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"$destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),Er="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Or=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],Lr={rootMargin:"0px",threshold:0},Ir=function(t){return function(){function e(t){var n,r,i,o,a=t.preLoad,s=t.error,u=t.throttleWait,l=t.preLoadTop,c=t.dispatchEvent,h=t.loading,f=t.attempt,d=t.silent,p=void 0===d||d,v=t.scale,g=t.listenEvents,m=(t.hasbind,t.filter),y=t.adapter,b=t.observer,_=t.observerOptions;nr(this,e),this.version="1.3.3",this.mode=pr,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:p,dispatchEvent:!!c,throttleWait:u||200,preLoad:a||1.3,preLoadTop:l||0,error:s||Er,loading:h||Er,attempt:f||3,scale:v||_r(v),ListenEvents:g||Or,hasbind:!1,supportWebp:wr(),filter:m||{},adapter:y||{},observer:!!b,observerOptions:_||Lr},this._initEvent(),this._imageCache=new Tr({max:200}),this.lazyLoadHandler=(n=this._lazyLoadHandler.bind(this),r=this.options.throttleWait,i=null,o=0,function(){if(!i){var t=Date.now()-o,e=this,a=arguments,s=function(){o=Date.now(),i=!1,n.apply(e,a)};t>=r?s():i=setTimeout(s,r)}}),this.setMode(this.options.observer?vr:pr)}return rr(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};hr(this.options,t)}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map((function(e){t.push(e.performance())})),t}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),fr&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}},{key:"add",value:function(e,n,r){var i=this;if(function(t,e){for(var n=!1,r=0,i=t.length;r<i;r++)if(e(t[r])){n=!0;break}return n}(this.ListenerQueue,(function(t){return t.el===e})))return this.update(e,n),t.nextTick(this.lazyLoadHandler);var o=this._valueFormatter(n.value),a=o.src,s=o.loading,u=o.error;t.nextTick((function(){a=yr(e,i.options.scale)||a,i._observer&&i._observer.observe(e);var o=Object.keys(n.modifiers)[0],l=void 0;o&&(l=(l=r.context.$refs[o])?l.$el||l:document.getElementById(o)),l||(l=function(t){if(fr){if(!(t instanceof HTMLElement))return window;for(var e=t;e&&e!==document.body&&e!==document.documentElement&&e.parentNode;){if(/(scroll|auto)/.test(Cr(e)))return e;e=e.parentNode}return window}}(e));var c=new Rr({bindType:n.arg,$parent:l,el:e,loading:s,error:u,src:a,elRenderer:i._elRenderer.bind(i),options:i.options,imageCache:i._imageCache});i.ListenerQueue.push(c),fr&&(i._addListenerTarget(window),i._addListenerTarget(l)),i.lazyLoadHandler(),t.nextTick((function(){return i.lazyLoadHandler()}))}))}},{key:"update",value:function(e,n,r){var i=this,o=this._valueFormatter(n.value),a=o.src,s=o.loading,u=o.error;a=yr(e,this.options.scale)||a;var l=br(this.ListenerQueue,(function(t){return t.el===e}));l?l.update({src:a,loading:s,error:u}):this.add(e,n,r),this._observer&&(this._observer.unobserve(e),this._observer.observe(e)),this.lazyLoadHandler(),t.nextTick((function(){return i.lazyLoadHandler()}))}},{key:"remove",value:function(t){if(t){this._observer&&this._observer.unobserve(t);var e=br(this.ListenerQueue,(function(e){return e.el===t}));e&&(this._removeListenerTarget(e.$parent),this._removeListenerTarget(window),mr(this.ListenerQueue,e),e.$destroy())}}},{key:"removeComponent",value:function(t){t&&(mr(this.ListenerQueue,t),this._observer&&this._observer.unobserve(t.el),t.$parent&&t.$el.parentNode&&this._removeListenerTarget(t.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(t){var e=this;dr||t!==vr||(t=pr),this.mode=t,t===pr?(this._observer&&(this.ListenerQueue.forEach((function(t){e._observer.unobserve(t.el)})),this._observer=null),this.TargetQueue.forEach((function(t){e._initListen(t.el,!0)}))):(this.TargetQueue.forEach((function(t){e._initListen(t.el,!1)})),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(t){if(t){var e=br(this.TargetQueue,(function(e){return e.el===t}));return e?e.childrenCount++:(e={el:t,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===pr&&this._initListen(e.el,!0),this.TargetQueue.push(e)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(t){var e=this;this.TargetQueue.forEach((function(n,r){n.el===t&&(n.childrenCount--,n.childrenCount||(e._initListen(n.el,!1),e.TargetQueue.splice(r,1),n=null))}))}},{key:"_initListen",value:function(t,e){var n=this;this.options.ListenEvents.forEach((function(r){return Ar[e?"on":"off"](t,r,n.lazyLoadHandler)}))}},{key:"_initEvent",value:function(){var t=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(e,n){t.Event.listeners[e]||(t.Event.listeners[e]=[]),t.Event.listeners[e].push(n)},this.$once=function(e,n){var r=t;t.$on(e,(function t(){r.$off(e,t),n.apply(r,arguments)}))},this.$off=function(e,n){if(n)mr(t.Event.listeners[e],n);else{if(!t.Event.listeners[e])return;t.Event.listeners[e].length=0}},this.$emit=function(e,n,r){t.Event.listeners[e]&&t.Event.listeners[e].forEach((function(t){return t(n,r)}))}}},{key:"_lazyLoadHandler",value:function(){var t=this,e=[];this.ListenerQueue.forEach((function(t,n){t.el&&t.el.parentNode||e.push(t),t.checkInView()&&t.load()})),e.forEach((function(e){mr(t.ListenerQueue,e),e.$destroy()}))}},{key:"_initIntersectionObserver",value:function(){var t=this;dr&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach((function(e){t._observer.observe(e.el)})))}},{key:"_observerHandler",value:function(t,e){var n=this;t.forEach((function(t){t.isIntersecting&&n.ListenerQueue.forEach((function(e){if(e.el===t.target){if(e.state.loaded)return n._observer.unobserve(e.el);e.load()}}))}))}},{key:"_elRenderer",value:function(t,e,n){if(t.el){var r=t.el,i=t.bindType,o=void 0;switch(e){case"loading":o=t.loading;break;case"error":o=t.error;break;default:o=t.src}if(i?r.style[i]='url("'+o+'")':r.getAttribute("src")!==o&&r.setAttribute("src",o),r.setAttribute("lazy",e),this.$emit(e,t,n),this.options.adapter[e]&&this.options.adapter[e](t,this.options),this.options.dispatchEvent){var a=new gr(e,{detail:t});r.dispatchEvent(a)}}}},{key:"_valueFormatter",value:function(t){var e,n=t,r=this.options.loading,i=this.options.error;return null!==(e=t)&&"object"===(void 0===e?"undefined":er(e))&&(t.src||this.options.silent||console.error("Vue Lazyload warning: miss src with "+t),n=t.src,r=t.loading||this.options.loading,i=t.error||this.options.error),{src:n,loading:r,error:i}}}]),e}()},Mr=function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return!1===this.show?t(this.tag):t(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),fr&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)},destroy:function(){return this.$destroy}}}},Dr=function(){function t(e){var n=e.lazy;nr(this,t),this.lazy=n,n.lazyContainerMananger=this,this._queue=[]}return rr(t,[{key:"bind",value:function(t,e,n){var r=new jr({el:t,binding:e,vnode:n,lazy:this.lazy});this._queue.push(r)}},{key:"update",value:function(t,e,n){var r=br(this._queue,(function(e){return e.el===t}));r&&r.update({el:t,binding:e,vnode:n})}},{key:"unbind",value:function(t,e,n){var r=br(this._queue,(function(e){return e.el===t}));r&&(r.clear(),mr(this._queue,r))}}]),t}(),Nr={selector:"img"},jr=function(){function t(e){var n=e.el,r=e.binding,i=e.vnode,o=e.lazy;nr(this,t),this.el=null,this.vnode=i,this.binding=r,this.options={},this.lazy=o,this._queue=[],this.update({el:n,binding:r})}return rr(t,[{key:"update",value:function(t){var e=this,n=t.el,r=t.binding;this.el=n,this.options=hr({},Nr,r.value),this.getImgs().forEach((function(t){e.lazy.add(t,hr({},e.binding,{value:{src:"dataset"in t?t.dataset.src:t.getAttribute("data-src"),error:("dataset"in t?t.dataset.error:t.getAttribute("data-error"))||e.options.error,loading:("dataset"in t?t.dataset.loading:t.getAttribute("data-loading"))||e.options.loading}}),e.vnode)}))}},{key:"getImgs",value:function(){return function(t){for(var e=t.length,n=[],r=0;r<e;r++)n.push(t[r]);return n}(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var t=this;this.getImgs().forEach((function(e){return t.lazy.remove(e)})),this.vnode=null,this.binding=null,this.lazy=null}}]),t}(),Fr=function(t){return{props:{src:[String,Object],tag:{type:String,default:"img"}},render:function(t){return t(this.tag,{attrs:{src:this.renderSrc}},this.$slots.default)},data:function(){return{el:null,options:{src:"",error:"",loading:"",attempt:t.options.attempt},state:{loaded:!1,error:!1,attempt:0},rect:{},renderSrc:""}},watch:{src:function(){this.init(),t.addLazyBox(this),t.lazyLoadHandler()}},created:function(){this.init(),this.renderSrc=this.options.loading},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{init:function(){var e=t._valueFormatter(this.src),n=e.src,r=e.loading,i=e.error;this.state.loaded=!1,this.options.src=n,this.options.error=i,this.options.loading=r,this.renderSrc=this.options.loading},getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),fr&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pr;if(this.state.attempt>this.options.attempt-1&&this.state.error)return t.options.silent||console.log("VueLazyload log: "+this.options.src+" tried too more than "+this.options.attempt+" times"),void n();var r=this.options.src;xr({src:r},(function(t){var n=t.src;e.renderSrc=n,e.state.loaded=!0}),(function(t){e.state.attempt++,e.renderSrc=e.options.error,e.state.error=!0}))}}}},Br={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ir(t),r=new n(e),i=new Dr({lazy:r}),o="2"===t.version.split(".")[0];t.prototype.$Lazyload=r,e.lazyComponent&&t.component("lazy-component",Mr(r)),e.lazyImage&&t.component("lazy-image",Fr(r)),o?(t.directive("lazy",{bind:r.add.bind(r),update:r.update.bind(r),componentUpdated:r.lazyLoadHandler.bind(r),unbind:r.remove.bind(r)}),t.directive("lazy-container",{bind:i.bind.bind(i),componentUpdated:i.update.bind(i),unbind:i.unbind.bind(i)})):(t.directive("lazy",{bind:r.lazyLoadHandler.bind(r),update:function(t,e){hr(this.vm.$refs,this.vm.$els),r.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){r.remove(this.el)}}),t.directive("lazy-container",{update:function(t,e){i.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){i.unbind(this.el)}}))}},zr=n(7),Ur=Object(i.b)("nav-bar"),Wr=Ur[0],Vr=Ur[1],qr=Wr({props:{title:String,fixed:Boolean,zIndex:[Number,String],leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,border:{type:Boolean,default:!0},themeColor:{type:String,default:"#0091FA"},contentColor:{type:String,default:"#ffffff"}},data:function(){return{height:null}},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.navBar.getBoundingClientRect().height)},methods:{genLeft:function(){var t=this.$createElement,e=this.slots("left");return e||[this.leftArrow&&t(dt,{class:Vr("arrow"),attrs:{name:"arrow-left",color:this.contentColor}}),this.leftText&&t("span",{class:Vr("text"),style:{color:this.contentColor}},[this.leftText])]},genRight:function(){var t=this.$createElement,e=this.slots("right");return e||(this.rightText?t("span",{class:Vr("text"),style:{color:this.contentColor}},[this.rightText]):void 0)},genNavBar:function(){var t,e=this.$createElement;return e("div",{ref:"navBar",style:{zIndex:this.zIndex,backgroundColor:this.themeColor,color:this.contentColor},class:[Vr({fixed:this.fixed,"safe-area-inset-top":this.safeAreaInsetTop}),(t={},t["zt-hairline--bottom"]=this.border,t)]},[e("div",{class:Vr("content")},[this.hasLeft()&&e("div",{class:Vr("left"),on:{click:this.onClickLeft}},[this.genLeft()]),e("div",{class:[Vr("title"),"van-ellipsis"],style:{color:this.contentColor}},[this.slots("title")||this.title]),this.hasRight()&&e("div",{class:Vr("right"),on:{click:this.onClickRight}},[this.genRight()])])])},hasLeft:function(){return this.leftArrow||this.leftText||this.slots("left")},hasRight:function(){return this.rightText||this.slots("right")},onClickLeft:function(t){this.$emit("click-left",t)},onClickRight:function(t){this.$emit("click-right",t)}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:Vr("placeholder"),style:{height:this.height+"px"}},[this.genNavBar()]):this.genNavBar()}}),Hr={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 32 22",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",fill:"currentColor"}})])}},$r={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 30 24",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",fill:"currentColor"}})])}},Gr=Object(i.b)("key"),Yr=Gr[0],Xr=Gr[1],Kr=Yr({mixins:[M],props:{type:String,text:[Number,String],color:String,wider:Boolean,large:Boolean,loading:Boolean},data:function(){return{active:!1}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{onTouchStart:function(t){t.stopPropagation(),this.touchStart(t),this.active=!0},onTouchMove:function(t){this.touchMove(t),this.direction&&(this.active=!1)},onTouchEnd:function(t){this.active&&(this.slots("default")||t.preventDefault(),this.active=!1,this.$emit("press",this.text,this.type))},genContent:function(){var t=this.$createElement,e="extra"===this.type,n="delete"===this.type,r=this.slots("default")||this.text;return this.loading?t(T,{class:Xr("loading-icon")}):n?r||t(Hr,{class:Xr("delete-icon")}):e?r||t($r,{class:Xr("collapse-icon")}):r}},render:function(){var t=arguments[0];return t("div",{class:Xr("wrapper",{wider:this.wider})},[t("div",{attrs:{role:"button",tabindex:"0"},class:Xr([this.color,{large:this.large,active:this.active,delete:"delete"===this.type}])},[this.genContent()])])}}),Qr=Object(i.b)("number-keyboard"),Jr=Qr[0],Zr=Qr[1],ti=Jr({mixins:[Jt(),te((function(t){this.hideOnClickOutside&&t(document.body,"touchstart",this.onBlur)}))],model:{event:"update:value"},props:{show:Boolean,title:String,zIndex:[Number,String],randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,theme:{type:String,default:"default"},value:{type:String,default:""},extraKey:{type:[String,Array],default:""},maxlength:{type:[Number,String],default:Number.MAX_VALUE},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0}},watch:{show:function(t){this.transition||this.$emit(t?"show":"hide")}},computed:{keys:function(){return"custom"===this.theme?this.genCustomKeys():this.genDefaultKeys()}},methods:{genBasicKeys:function(){for(var t=[],e=1;e<=9;e++)t.push({text:e});return this.randomKeyOrder&&t.sort((function(){return Math.random()>.5?1:-1})),t},genDefaultKeys:function(){return[].concat(this.genBasicKeys(),[{text:this.extraKey,type:"extra"},{text:0},{text:this.showDeleteKey?this.deleteButtonText:"",type:this.showDeleteKey?"delete":""}])},genCustomKeys:function(){var t=this.genBasicKeys(),e=this.extraKey,n=Array.isArray(e)?e:[e];return 1===n.length?t.push({text:0,wider:!0},{text:n[0],type:"extra"}):2===n.length&&t.push({text:n[0],type:"extra"},{text:0},{text:n[1],type:"extra"}),t},onBlur:function(){this.show&&this.$emit("blur")},onClose:function(){this.$emit("close"),this.onBlur()},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPress:function(t,e){if(""!==t){var n=this.value;"delete"===e?(this.$emit("delete"),this.$emit("update:value",n.slice(0,n.length-1))):"close"===e?this.onClose():n.length<this.maxlength&&(this.$emit("input",t),this.$emit("update:value",n+t))}else"extra"===e&&this.onBlur()},genTitle:function(){var t=this.$createElement,e=this.title,n=this.theme,r=this.closeButtonText,i=this.slots("title-left"),o=r&&"default"===n;if(e||o||i)return t("div",{class:Zr("header")},[i&&t("span",{class:Zr("title-left")},[i]),e&&t("h2",{class:Zr("title")},[e]),o&&t("button",{attrs:{type:"button"},class:Zr("close"),on:{click:this.onClose}},[r])])},genKeys:function(){var t=this,e=this.$createElement;return this.keys.map((function(n){return e(Kr,{key:n.text,attrs:{text:n.text,type:n.type,wider:n.wider,color:n.color},on:{press:t.onPress}},["delete"===n.type&&t.slots("delete"),"extra"===n.type&&t.slots("extra-key")])}))},genSidebar:function(){var t=this.$createElement;if("custom"===this.theme)return t("div",{class:Zr("sidebar")},[this.showDeleteKey&&t(Kr,{attrs:{large:!0,text:this.deleteButtonText,type:"delete"},on:{press:this.onPress}},[this.slots("delete")]),t(Kr,{attrs:{large:!0,text:this.closeButtonText,type:"close",color:"blue",loading:this.closeButtonLoading},on:{press:this.onPress}})])}},render:function(){var t=arguments[0],e=this.genTitle();return t("transition",{attrs:{name:this.transition?"zt-slide-up":""}},[t("div",{directives:[{name:"show",value:this.show}],style:{zIndex:this.zIndex},class:Zr({unfit:!this.safeAreaInsetBottom,"with-title":e}),on:{touchstart:c,animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[e,t("div",{class:Zr("body")},[t("div",{class:Zr("keys")},[this.genKeys()]),this.genSidebar()])])])}}),ei=n(9).a,ni=(n(32),n(10)),ri=Object(ni.a)(ei,void 0,void 0,!1,null,null,null).exports,ii=Object(i.b)("pdf-viewer"),oi=ii[0],ai=ii[1];m.a.use(ri);var si=n(34),ui=oi({props:{url:{type:String,default:""}},data:function(){return{pdfPageCount:0,pageNum:1,loadedRatio:0,loading:!1,rotateDegree:0,pdfArr:[],pageChangeByButton:!1,showPicker:!1,bodyInitialHeight:"auto",bodyInitialMinHeight:"auto"}},activated:function(){this.bodyInitialHeight=document.body.style.height,this.bodyInitialMinHeight=document.body.style.minHeight,document.body.style.height="auto",document.body.style.minHeight="100%"},deactivated:function(){document.body.style.height=this.bodyInitialHeight,document.body.style.minHeight=this.bodyInitialMinHeight},watch:{url:function(){this.reset(),this.getPdfNumPages()},pageNum:function(t){this.pageChangeByButton&&document.getElementById("pdfContent"+t)&&document.getElementById("pdfContent"+t).scrollIntoView()}},methods:{reset:function(){this.pdfPageCount=0,this.pageNum=1},getPdfNumPages:function(){var t=this;this.url&&(this.loading=!0,ri.createLoadingTask(this.url).promise.then((function(e){t.pdfPageCount=e.numPages;for(var n=[],r=0;r<t.pdfPageCount;r++)n.push({});t.pdfArr=n,window.onscroll=si.throttle((function(){t.pageChangeByButton?t.pageChangeByButton=!1:t.changePage()}),300)})).catch((function(t){console.error("pdf 加载失败",t)})).finally((function(){t.loading=!1})))},changePage:function(){var t=1,e=this.pdfPageCount;do{window.pageYOffset>=this.findPos(document.getElementById("pdfContent"+t))&&window.pageYOffset<=this.findPos(document.getElementById("pdfContent"+(t+1)))&&(this.pageNum=t),t++}while(t<e);window.pageYOffset>=this.findPos(document.getElementById("pdfContent"+t))&&(this.pageNum=t)},findPos:function(t){return t?t.offsetTop:0},perPage:function(){this.pageNum>1?(this.pageNum=this.pageNum-1,this.pageChangeByButton=!0):we("已经是首页!")},nextPage:function(){this.pageNum<this.pdfPageCount?(this.pageNum=this.pageNum+1,this.pageChangeByButton=!0):we("已经是尾页!")},onPdfLoaded:function(){this.$emit("loaded"),console.log("pdf loaded")},onPdfError:function(t){this.$emit("error",t),console.log("pdf viewer error: "+t)},rotate:function(){this.rotateDegree+=90},genPdf:function(t){var e=this.$createElement;return e("div",[e(ri,{attrs:{src:this.url,page:t,id:"pdfContent"+t,rotate:this.rotateDegree},ref:"pdfContent"+t,on:{loaded:this.onPdfLoaded,error:this.onPdfError}}),e("div",{class:ai("page-margin")})])},showPagePicker:function(){this.showPicker=!0},genPageList:function(){var t=this,e=this.$createElement;return this.pdfArr.map((function(n,r){return e("div",{class:ai("page-item"),on:{click:function(){return t.setPage(r+1)}}},[r+1])}))},setPage:function(t){this.pageNum=t,this.pageChangeByButton=!0,this.showPicker=!1}},render:function(t){var e=this;return t("div",{class:ai()},[this.loading?t(T,{class:ai("loading")}):t(),t("div",{class:ai("pdf-top")},[t("div",{class:ai("page-btn")},[t("svg",{attrs:{t:"1635239576536",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3862",width:"20",height:"20"},class:ai("handle-btn"),on:{click:this.perPage}},[t("path",{attrs:{d:"M410.7 512.4L749.1 174c24.9-24.9 24.9-65.6 0-90.5-24.9-24.9-65.6-24.9-90.5 0L274.9 467.2c-6.2 6.2-10.9 13.4-14 21.1-5.4 13.5-6.1 28.5-2 42.4 0.6 2 1.3 3.9 2 5.9 3.1 7.7 7.8 14.9 14 21.1l383.6 383.6c24.9 24.9 65.6 24.9 90.5 0 24.9-24.9 24.9-65.6 0-90.5L410.7 512.4z","p-id":"3863",fill:"#0091fa"}})]),t("span",{directives:[{name:"show",value:this.pdfPageCount>0}],class:ai("page-count"),on:{click:this.showPagePicker}},[this.pageNum," / ",this.pdfPageCount]),t("svg",{attrs:{t:"1635239716959",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4119",width:"20",height:"20"},class:ai("handle-btn"),on:{click:this.nextPage}},[t("path",{attrs:{d:"M613.3 512.4L274.9 850.8c-24.9 24.9-24.9 65.6 0 90.5 24.9 24.9 65.6 24.9 90.5 0L749 557.7c6.2-6.2 10.9-13.4 14-21.1 5.4-13.5 6.1-28.5 2-42.4-0.6-2-1.3-3.9-2-5.9-3.1-7.7-7.8-14.9-14-21.1L365.4 83.5c-24.9-24.9-65.6-24.9-90.5 0-24.9 24.9-24.9 65.6 0 90.5l338.4 338.4z","p-id":"4120",fill:"#0091fa"}})])])]),this.pdfArr.length?t("div",{class:ai("container"),attrs:{id:"pdfContainer"}},[this.pdfArr.map((function(t,n){return e.genPdf(n+1)}))]):t(),t(se,{class:ai("popup"),attrs:{value:this.showPicker,position:"bottom",closeOnClickOverlay:!1}},[this.genPageList()])])}}),li=Object(i.b)("radio"),ci=(0,li[0])({mixins:[We({bem:li[1],role:"radio",parent:"vanRadio"})],computed:{currentValue:{get:function(){return this.parent?this.parent.value:this.value},set:function(t){(this.parent||this).$emit("input",t)}},checked:function(){return this.currentValue===this.name}},methods:{toggle:function(){this.currentValue=this.name}}}),hi=Object(i.b)("radio-group"),fi=hi[0],di=hi[1],pi=fi({mixins:[Ue("vanRadio"),Fe],props:{value:null,disabled:Boolean,direction:String,checkedColor:String,iconSize:[Number,String]},watch:{value:function(t){this.$emit("change",t)}},render:function(){var t=arguments[0];return t("div",{class:di([this.direction]),attrs:{role:"radiogroup"}},[this.slots()])}}),vi=Object(i.b)("rate"),gi=vi[0],mi=vi[1];var yi=gi({mixins:[M,Fe],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var t,e,n,r=[],i=1;i<=this.count;i++)r.push((t=this.value,e=i,n=this.allowHalf,t>=e?"full":t+.5>=e&&n?"half":"void"));return r},sizeWithUnit:function(){return Object(i.a)(this.size)},gutterWithUnit:function(){return Object(i.a)(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(t){this.disabled||this.readonly||t===this.value||(this.$emit("input",t),this.$emit("change",t))},onTouchStart:function(t){var e=this;if(!this.readonly&&!this.disabled&&this.touchable){this.touchStart(t);var n=this.$refs.items.map((function(t){return t.getBoundingClientRect()})),r=[];n.forEach((function(t,n){e.allowHalf?r.push({score:n+.5,left:t.left},{score:n+1,left:t.left+t.width/2}):r.push({score:n+1,left:t.left})})),this.ranges=r}},onTouchMove:function(t){if(!this.readonly&&!this.disabled&&this.touchable&&(this.touchMove(t),"horizontal"===this.direction)){h(t);var e=t.touches[0].clientX;this.select(this.getScoreByPosition(e))}},getScoreByPosition:function(t){for(var e=this.ranges.length-1;e>0;e--)if(t>this.ranges[e].left)return this.ranges[e].score;return this.allowHalf?.5:1},genStar:function(t,e){var n,r=this,i=this.$createElement,o=this.icon,a=this.color,s=this.count,u=this.voidIcon,l=this.disabled,c=this.voidColor,h=this.disabledColor,f=e+1,d="full"===t,p="void"===t;return this.gutterWithUnit&&f!==+s&&(n={paddingRight:this.gutterWithUnit}),i("div",{ref:"items",refInFor:!0,key:e,attrs:{role:"radio",tabindex:"0","aria-setsize":s,"aria-posinset":f,"aria-checked":String(!p)},style:n,class:mi("item")},[i(dt,{attrs:{size:this.sizeWithUnit,name:d?o:u,color:l?h:d?a:c,classPrefix:this.iconPrefix,"data-score":f},class:mi("icon",{disabled:l,full:d}),on:{click:function(){r.select(f)}}}),this.allowHalf&&i(dt,{attrs:{size:this.sizeWithUnit,name:p?u:o,color:l?h:p?c:a,classPrefix:this.iconPrefix,"data-score":f-.5},class:mi("icon",["half",{disabled:l,full:!p}]),on:{click:function(){r.select(f-.5)}}})])}},render:function(){var t=this,e=arguments[0];return e("div",{class:mi({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map((function(e,n){return t.genStar(e,n)}))])}}),bi=Object(i.b)("row"),_i=bi[0],wi=bi[1],Si=_i({mixins:[Ue("ztRow")],props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},computed:{spaces:function(){var t=Number(this.gutter);if(t){var e=[],n=[[]],r=0;return this.children.forEach((function(t,e){(r+=Number(t.span))>24?(n.push([e]),r-=24):n[n.length-1].push(e)})),n.forEach((function(n){var r=t*(n.length-1)/n.length;n.forEach((function(n,i){if(0===i)e.push({right:r});else{var o=t-e[n-1].right,a=r-o;e.push({left:o,right:a})}}))})),e}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],n=this.align,r=this.justify,i="flex"===this.type;return e(this.tag,{class:wi((t={flex:i},t["align-"+n]=i&&n,t["justify-"+r]=i&&r,t)),on:{click:this.onClick}},[this.slots()])}}),Ai=Object(i.b)("slider"),xi=Ai[0],ki=Ai[1],Ci=function(t,e){return JSON.stringify(t)===JSON.stringify(e)},Pi=xi({mixins:[M,Fe],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var t=Object(i.a)(this.buttonSize);return{width:t,height:t}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(t){this.disabled||(this.touchStart(t),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(t){if(!this.disabled){"start"===this.dragStatus&&this.$emit("drag-start"),h(t,!0),this.touchMove(t),this.dragStatus="draging";var e=this.$el.getBoundingClientRect(),n=(this.vertical?this.deltaY:this.deltaX)/(this.vertical?e.height:e.width)*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+n:this.currentValue=this.startValue+n,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||("draging"===this.dragStatus&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(t){if(t.stopPropagation(),!this.disabled){var e=this.$el.getBoundingClientRect(),n=this.vertical?t.clientY-e.top:t.clientX-e.left,r=this.vertical?e.height:e.width,i=+this.min+n/r*this.scope;if(this.range){var o=this.value,a=o[0],s=o[1];i<=(a+s)/2?a=i:s=i,i=[a,s]}this.startValue=this.value,this.updateValue(i,!0)}},handleOverlap:function(t){return t[0]>t[1]?(t=R(t)).reverse():t},updateValue:function(t,e){t=this.range?this.handleOverlap(t).map(this.format):this.format(t),Ci(t,this.value)||this.$emit("input",t),e&&!Ci(t,this.startValue)&&this.$emit("change",t)},format:function(t){var e=+this.min,n=+this.max,r=+this.step;return t=E(t,e,n),I(e,Math.round((t-e)/r)*r)}},render:function(){var t,e,n=this,r=arguments[0],o=this.vertical,a=o?"height":"width",s=o?"width":"height",u=((t={background:this.inactiveColor})[s]=Object(i.a)(this.barHeight),t),l=function(){var t=n.value,e=n.min,r=n.range,i=n.scope;return r?100*(t[1]-t[0])/i+"%":100*(t-e)/i+"%"},c=function(){var t=n.value,e=n.min,r=n.range,i=n.scope;return r?100*(t[0]-e)/i+"%":null},h=((e={})[a]=l(),e.left=this.vertical?null:c(),e.top=this.vertical?c():null,e.background=this.activeColor,e);this.dragStatus&&(h.transition="none");var f=function(t){var e=["left","right"],i="number"==typeof t;return r("div",{ref:i?"wrapper"+t:"wrapper",attrs:{role:"slider",tabindex:n.disabled?-1:0,"aria-valuemin":n.min,"aria-valuenow":n.value,"aria-valuemax":n.max,"aria-orientation":n.vertical?"vertical":"horizontal"},class:ki(i?"button-wrapper-"+e[t]:"button-wrapper"),on:{touchstart:function(){i&&(n.index=t)},click:function(t){return t.stopPropagation()}}},[n.slots("button")||r("div",{class:ki("button"),style:n.buttonStyle})])};return r("div",{style:u,class:ki({disabled:this.disabled,vertical:o}),on:{click:this.onClick}},[r("div",{class:ki("bar"),style:h},[this.range?[f(0),f(1)]:f()])])}}),Ti=Object(i.b)("step"),Ri=Ti[0],Ei=Ti[1],Oi=Ri({mixins:[ze("ztSteps")],computed:{status:function(){return this.index<this.parent.active?"finish":this.index===+this.parent.active?"process":void 0},active:function(){return"process"===this.status},lineStyle:function(){return"finish"===this.status?{background:this.parent.activeColor}:{background:this.parent.inactiveColor}},titleStyle:function(){return this.active?{color:this.parent.activeColor}:this.status?void 0:{color:this.parent.inactiveColor}}},methods:{genCircle:function(){var t=this.$createElement,e=this.parent,n=e.activeIcon,r=e.iconPrefix,i=e.activeColor,o=e.finishIcon,a=e.inactiveIcon;if(this.active)return this.slots("active-icon")||t(dt,{class:Ei("icon","active"),attrs:{name:n,color:i,classPrefix:r}});var s=this.slots("finish-icon");if("finish"===this.status&&(o||s))return s||t(dt,{class:Ei("icon","finish"),attrs:{name:o,color:i,classPrefix:r}});var u=this.slots("inactive-icon");return a||u?u||t(dt,{class:Ei("icon"),attrs:{name:a,classPrefix:r}}):t("i",{class:Ei("circle"),style:this.lineStyle})},onClickStep:function(){this.parent.$emit("click-step",this.index)}},render:function(){var t,e=arguments[0],n=this.status,r=this.active,i=this.parent.direction;return e("div",{class:[f,Ei([i,(t={},t[n]=n,t)])]},[e("div",{class:Ei("title",{active:r}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),e("div",{class:Ei("circle-container"),on:{click:this.onClickStep}},[this.genCircle()]),e("div",{class:Ei("line"),style:this.lineStyle})])}}),Li=Object(i.b)("stepper"),Ii=Li[0],Mi=Li[1];function Di(t,e){return String(t)===String(e)}var Ni,ji=Ii({mixins:[Fe],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var t,e=null!=(t=this.value)?t:this.defaultValue,n=this.format(e);return Di(n,this.value)||this.$emit("input",n),{currentValue:n}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var t={};return this.inputWidth&&(t.width=Object(i.a)(this.inputWidth)),this.buttonSize&&(t.height=Object(i.a)(this.buttonSize)),t},buttonStyle:function(){if(this.buttonSize){var t=Object(i.a)(this.buttonSize);return{width:t,height:t}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(t){Di(t,this.currentValue)||(this.currentValue=this.format(t))},currentValue:function(t){this.$emit("input",t),this.$emit("change",t,{name:this.name})}},methods:{check:function(){var t=this.format(this.currentValue);Di(t,this.currentValue)||(this.currentValue=t)},formatNumber:function(t){return L(String(t),!this.integer)},format:function(t){return this.allowEmpty&&""===t||(t=""===(t=this.formatNumber(t))?0:+t,t=Object(_t.a)(t)?this.min:t,t=Math.max(Math.min(this.max,t),this.min),Object(i.e)(this.decimalLength)&&(t=t.toFixed(this.decimalLength))),t},onInput:function(t){var e=t.target.value,n=this.formatNumber(e);if(Object(i.e)(this.decimalLength)&&-1!==n.indexOf(".")){var r=n.split(".");n=r[0]+"."+r[1].slice(0,this.decimalLength)}Di(e,n)||(t.target.value=n),n===String(+n)&&(n=+n),this.emitChange(n)},emitChange:function(t){this.asyncChange?(this.$emit("input",t),this.$emit("change",t,{name:this.name})):this.currentValue=t},onChange:function(){var t=this.type;if(this[t+"Disabled"])this.$emit("overlimit",t);else{var e="minus"===t?-this.step:+this.step,n=this.format(I(+this.currentValue,e));this.emitChange(n),this.$emit(t)}},onFocus:function(t){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",t)},onBlur:function(t){var e=this.format(t.target.value);t.target.value=e,this.emitChange(e),this.$emit("blur",t),An()},longPressStep:function(){var t=this;this.longPressTimer=setTimeout((function(){t.onChange(),t.longPressStep(t.type)}),200)},onTouchStart:function(){var t=this;this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout((function(){t.isLongPress=!0,t.onChange(),t.longPressStep()}),600))},onTouchEnd:function(t){this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress&&h(t))},onMousedown:function(t){this.disableInput&&t.preventDefault()}},render:function(){var t=this,e=arguments[0],n=function(e){return{on:{click:function(n){n.preventDefault(),t.type=e,t.onChange()},touchstart:function(){t.type=e,t.onTouchStart()},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}}};return e("div",{class:Mi([this.theme])},[e("button",v()([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:Mi("minus",{disabled:this.minusDisabled})},n("minus")])),e("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:Mi("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),e("button",v()([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:Mi("plus",{disabled:this.plusDisabled})},n("plus")]))])}}),Fi=Object(i.b)("steps"),Bi=Fi[0],zi=Fi[1],Ui=Bi({mixins:[Ue("ztSteps")],props:{iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String,active:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},activeIcon:{type:String,default:"checked"}},render:function(){var t=arguments[0];return t("div",{class:zi([this.direction])},[t("div",{class:zi("items")},[this.slots()])])}}),Wi=Object(i.b)("sticky"),Vi=Wi[0],qi=Wi[1],Hi=Vi({mixins:[te((function(t,e){if(this.scroller||(this.scroller=xt(this.$el)),this.observer){var n=e?"observe":"unobserve";this.observer[n](this.$el)}t(this.scroller,"scroll",this.onScroll,!0),this.onScroll()}))],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return Object(d.b)(this.offsetTop)},style:function(){if(this.fixed){var t={};return Object(i.e)(this.zIndex)&&(t.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(t.top=this.offsetTopPx+"px"),this.transform&&(t.transform="translate3d(0, "+this.transform+"px, 0)"),t}}},watch:{fixed:function(t){this.$emit("change",t)}},created:function(){var t=this;!i.i&&window.IntersectionObserver&&(this.observer=new IntersectionObserver((function(e){e[0].intersectionRatio>0&&t.onScroll()}),{root:document.body}))},methods:{onScroll:function(){var t=this;if(!Bn(this.$el)){this.height=this.$el.offsetHeight;var e=this.container,n=this.offsetTopPx,r=kt(window),i=Rt(this.$el),o=function(){t.$emit("scroll",{scrollTop:r,isFixed:t.fixed})};if(e){var a=i+e.offsetHeight;if(r+n+this.height>a){var s=this.height+r-a;return s<this.height?(this.fixed=!0,this.transform=-(s+n)):this.fixed=!1,void o()}}r+n>i?(this.fixed=!0,this.transform=0):this.fixed=!1,o()}}},render:function(){var t=arguments[0],e=this.fixed,n={height:e?this.height+"px":null};return t("div",{style:n},[t("div",{class:qi({fixed:e}),style:this.style},[this.slots()])])}}),$i=Object(i.b)("swipe-cell"),Gi=$i[0],Yi=$i[1],Xi=Gi({mixins:[M,(Ni={event:"touchstart",method:"onClick"},{props:{closeOnClickOutside:{type:Boolean,default:!0}},data:function(){var t=this;return{clickOutsideHandler:function(e){t.closeOnClickOutside&&!t.$el.contains(e.target)&&t[Ni.method]()}}},mounted:function(){u(document,Ni.event,this.clickOutsideHandler)},beforeDestroy:function(){l(document,Ni.event,this.clickOutsideHandler)}})],props:{onClose:Function,disabled:Boolean,leftWidth:[Number,String],rightWidth:[Number,String],beforeClose:Function,stopPropagation:Boolean,name:{type:[Number,String],default:""}},data:function(){return{offset:0,dragging:!1}},computed:{computedLeftWidth:function(){return+this.leftWidth||this.getWidthByRef("left")},computedRightWidth:function(){return+this.rightWidth||this.getWidthByRef("right")}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{getWidthByRef:function(t){return this.$refs[t]?this.$refs[t].getBoundingClientRect().width:0},open:function(t){var e="left"===t?this.computedLeftWidth:-this.computedRightWidth;this.opened=!0,this.offset=e,this.$emit("open",{position:t,name:this.name,detail:this.name})},close:function(t){this.offset=0,this.opened&&(this.opened=!1,this.$emit("close",{position:t,name:this.name}))},onTouchStart:function(t){this.disabled||(this.startOffset=this.offset,this.touchStart(t))},onTouchMove:function(t){this.disabled||(this.touchMove(t),"horizontal"===this.direction&&(this.dragging=!0,this.lockClick=!0,(!this.opened||this.deltaX*this.startOffset<0)&&h(t,this.stopPropagation),this.offset=E(this.deltaX+this.startOffset,-this.computedRightWidth,this.computedLeftWidth)))},onTouchEnd:function(){var t=this;this.disabled||this.dragging&&(this.toggle(this.offset>0?"left":"right"),this.dragging=!1,setTimeout((function(){t.lockClick=!1}),0))},toggle:function(t){var e=Math.abs(this.offset),n=this.opened?.85:.15,r=this.computedLeftWidth,i=this.computedRightWidth;i&&"right"===t&&e>i*n?this.open("right"):r&&"left"===t&&e>r*n?this.open("left"):this.close()},onClick:function(t){void 0===t&&(t="outside"),this.$emit("click",t),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:t,name:this.name,instance:this}):this.onClose?this.onClose(t,this,{name:this.name}):this.close(t))},getClickHandler:function(t,e){var n=this;return function(r){e&&r.stopPropagation(),n.onClick(t)}},genLeftPart:function(){var t=this.$createElement,e=this.slots("left");if(e)return t("div",{ref:"left",class:Yi("left"),on:{click:this.getClickHandler("left",!0)}},[e])},genRightPart:function(){var t=this.$createElement,e=this.slots("right");if(e)return t("div",{ref:"right",class:Yi("right"),on:{click:this.getClickHandler("right",!0)}},[e])}},render:function(){var t=arguments[0],e={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return t("div",{class:Yi(),on:{click:this.getClickHandler("cell")}},[t("div",{class:Yi("wrapper"),style:e},[this.genLeftPart(),this.slots(),this.genRightPart()])])}}),Ki={size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}},Qi=Object(i.b)("switch"),Ji=Qi[0],Zi=Qi[1],to=Ji({mixins:[Fe],props:Ki,computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:Object(i.a)(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(t){if(this.$emit("click",t),!this.disabled&&!this.loading){var e=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",e),this.$emit("change",e)}},genLoading:function(){var t=this.$createElement;if(this.loading){var e=this.checked?this.activeColor:this.inactiveColor;return t(T,{class:Zi("loading"),attrs:{color:e}})}}},render:function(){var t=arguments[0],e=this.checked,n=this.loading,r=this.disabled;return t("div",{class:Zi({on:e,loading:n,disabled:r}),attrs:{role:"switch","aria-checked":String(e)},style:this.style,on:{click:this.onClick}},[t("div",{class:Zi("node")},[this.genLoading()])])}}),eo=Object(i.b)("switch-cell"),no=eo[0],ro=eo[1];function io(t,e,n,i){return t(Le,v()([{attrs:{center:!0,size:e.cellSize,title:e.title,border:e.border},class:ro([e.cellSize])},_(i)]),[t(to,{props:r({},e),on:r({},i.listeners)})])}io.props=r({},Ki,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var oo,ao=no(io),so=Object(i.b)("tab"),uo=so[0],lo=so[1],co=uo({mixins:[ze("vanTabs")],props:r({},nt,{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var t;return null!=(t=this.name)?t:this.index},isActive:function(){var t=this.computedName===this.parent.currentName;return t&&(this.inited=!0),t}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick((function(){e.parent.$emit("rendered",e.computedName,e.title)}))}},render:function(t){var e=this.slots,n=this.parent,r=this.isActive,i=e();if(i||n.animated){var o=n.scrollspy||r,a=this.inited||n.scrollspy||!n.lazyRender?i:t();return n.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!r},class:lo("pane-wrapper",{inactive:!r})},[t("div",{class:lo("pane")},[a])]):t("div",{directives:[{name:"show",value:o}],attrs:{role:"tabpanel"},class:lo("pane")},[a])}}});var ho=Object(i.b)("tab"),fo=ho[0],po=ho[1],vo=fo({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var t={},e=this.color,n=this.isActive,r="card"===this.type;e&&r&&(t.borderColor=e,this.disabled||(n?t.backgroundColor=e:t.color=e));var i=n?this.activeColor:this.inactiveColor;return i&&(t.color=i),t}},methods:{onClick:function(){this.$emit("click")},genText:function(){var t=this.$createElement,e=t("span",{class:po("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||Object(i.e)(this.info)&&""!==this.info?t("span",{class:po("text-wrapper")},[e,t(st,{attrs:{dot:this.dot,info:this.info}})]):e}},render:function(){var t=arguments[0];return t("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[po({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}}),go=Object(i.b)("tabs"),mo=go[0],yo=go[1],bo=mo({mixins:[M],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,n=this.currentIndex;"horizontal"===t&&this.offsetX>=50&&(e>0&&0!==n?this.$emit("change",n-1):e<0&&n!==this.count-1&&this.$emit("change",n+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:yo("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var t=arguments[0];return t("div",{class:yo("content",{animated:this.animated}),on:r({},this.listeners)},[this.genChildren()])}}),_o=Object(i.b)("tabs"),wo=_o[0],So=_o[1],Ao=wo({mixins:[Ue("vanTabs"),te((function(t){this.scroller||(this.scroller=xt(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)}))],inject:{vanPopup:{default:null}},model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},offsetTopPx:function(){return Object(d.b)(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.active),this.setLine(),this.$nextTick((function(){t.scrollIntoView(!0)}))},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&Tt(Math.ceil(Rt(this.$el)-this.offsetTopPx))},scrollspy:function(t){t?u(this.scroller,"scroll",this.onScroll,!0):l(this.scroller,"scroll",this.onScroll)}},mounted:function(){var t=this;this.init(),this.vanPopup&&this.vanPopup.onReopen((function(){t.setLine()}))},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var t=this;this.$nextTick((function(){var e;t.inited=!0,t.tabHeight=St(e=t.$refs.wrap)?e.innerHeight:e.getBoundingClientRect().height,t.scrollIntoView(!0)}))},setLine:function(){var t=this,e=this.inited;this.$nextTick((function(){var n=t.$refs.titles;if(n&&n[t.currentIndex]&&"line"===t.type&&!Bn(t.$el)){var r=n[t.currentIndex].$el,o=t.lineWidth,a=t.lineHeight,s=r.offsetLeft+r.offsetWidth/2,u={width:Object(i.a)(o),backgroundColor:t.color,transform:"translateX("+s+"px) translateX(-50%)"};if(e&&(u.transitionDuration=t.duration+"s"),Object(i.e)(a)){var l=Object(i.a)(a);u.height=l,u.borderRadius=l}t.lineStyle=u}}))},setCurrentIndexByName:function(t){var e=this.children.filter((function(e){return e.computedName===t})),n=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:n)},setCurrentIndex:function(t){var e=this.findAvailableTab(t);if(Object(i.e)(e)){var n=this.children[e],r=n.computedName,o=null!==this.currentIndex;this.currentIndex=e,r!==this.active&&(this.$emit("input",r),o&&this.$emit("change",r,n.title))}},findAvailableTab:function(t){for(var e=t<this.currentIndex?-1:1;t>=0&&t<this.children.length;){if(!this.children[t].disabled)return t;t+=e}},onClick:function(t,e){var n=this,r=this.children[e],o=r.title,a=r.disabled,s=r.computedName;a?this.$emit("disabled",s,o):(!function(t){var e=t.interceptor,n=t.args,r=t.done;if(e){var o=e.apply(void 0,n);Object(i.h)(o)?o.then((function(t){t&&r()})).catch(i.j):o&&r()}else r()}({interceptor:this.beforeChange,args:[s],done:function(){n.setCurrentIndex(e),n.scrollToCurrentContent()}}),this.$emit("click",s,o),tt(t.$router,t))},scrollIntoView:function(t){var e=this.$refs.titles;if(this.scrollable&&e&&e[this.currentIndex]){var n=this.$refs.nav,r=e[this.currentIndex].$el;!function(t,e,n){Object(bt.a)(oo);var r=0,i=t.scrollLeft,o=0===n?1:Math.round(1e3*n/16);!function n(){t.scrollLeft+=(e-i)/o,++r<o&&(oo=Object(bt.c)(n))}()}(n,r.offsetLeft-(n.offsetWidth-r.offsetWidth)/2,t?0:+this.duration)}},onSticktScroll:function(t){this.stickyFixed=t.isFixed,this.$emit("scroll",t)},scrollTo:function(t){var e=this;this.$nextTick((function(){e.setCurrentIndexByName(t),e.scrollToCurrentContent(!0)}))},scrollToCurrentContent:function(t){var e=this;if(void 0===t&&(t=!1),this.scrollspy){var n=this.children[this.currentIndex],r=null==n?void 0:n.$el;if(r){var i=Rt(r,this.scroller)-this.scrollOffset;this.lockScroll=!0,function(t,e,n,r){var i=kt(t),o=i<e,a=0===n?1:Math.round(1e3*n/16),s=(e-i)/a;!function n(){i+=s,(o&&i>e||!o&&i<e)&&(i=e),Ct(t,i),o&&i<e||!o&&i>e?Object(bt.c)(n):r&&Object(bt.c)(r)}()}(this.scroller,i,t?0:+this.duration,(function(){e.lockScroll=!1}))}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var t=this.getCurrentIndexOnScroll();this.setCurrentIndex(t)}},getCurrentIndexOnScroll:function(){for(var t,e=this.children,n=0;n<e.length;n++){if((St(t=e[n].$el)?0:t.getBoundingClientRect().top)>this.scrollOffset)return 0===n?0:n-1}return e.length-1}},render:function(){var t,e=this,n=arguments[0],r=this.type,i=this.animated,o=this.scrollable,a=this.children.map((function(t,i){var a;return n(vo,{ref:"titles",refInFor:!0,attrs:{type:r,dot:t.dot,info:null!=(a=t.badge)?a:t.info,title:t.title,color:e.color,isActive:i===e.currentIndex,disabled:t.disabled,scrollable:o,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:t.titleStyle,class:t.titleClass,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(t,i)}}})})),s=n("div",{ref:"wrap",class:[So("wrap",{scrollable:o}),(t={},t["zt-hairline--top-bottom"]="line"===r&&this.border,t)]},[n("div",{ref:"nav",attrs:{role:"tablist"},class:So("nav",[r,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),a,"line"===r&&n("div",{class:So("line"),style:this.lineStyle}),this.slots("nav-right")])]);return n("div",{class:So([r])},[this.sticky?n(Hi,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[s]):s,n(bo,{attrs:{count:this.children.length,animated:i,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}}),xo=Object(i.b)("tag"),ko=xo[0],Co=xo[1];function Po(t,e,n,r){var i,o=e.type,a=e.mark,s=e.plain,u=e.color,l=e.round,c=e.size,h=e.textColor,f=((i={})[s?"color":"backgroundColor"]=u,i);s?(f.color=h||u,f.borderColor=u):(f.color=h,f.background=u);var d={mark:a,plain:s,round:l};c&&(d[c]=c);var p=e.closeable&&t(dt,{attrs:{name:"cross"},class:Co("close"),on:{click:function(t){t.stopPropagation(),w(r,"close")}}});return t("transition",{attrs:{name:e.closeable?"zt-fade":null}},[t("span",v()([{key:"content",style:f,class:Co([d,o])},_(r,!0)]),[null==n.default?void 0:n.default(),p])])}Po.props={size:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}};var To=ko(Po);function Ro(t){return Array.isArray(t)?t:[t]}function Eo(t,e){return new Promise((function(n){if("file"!==e){var r=new FileReader;r.onload=function(t){n(t.target.result)},"dataUrl"===e?r.readAsDataURL(t):"text"===e&&r.readAsText(t)}else n(null)}))}function Oo(t,e){return Ro(t).some((function(t){return!!t&&(Object(i.f)(e)?e(t):t.size>e)}))}var Lo=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function Io(t){return!!t.isImage||(t.file&&t.file.type?0===t.file.type.indexOf("image"):t.url?(e=t.url,Lo.test(e)):!!t.content&&0===t.content.indexOf("data:image"));var e}var Mo=Object(i.b)("uploader"),Do=Mo[0],No=Mo[1],jo=Do({inheritAttrs:!1,mixins:[Fe],model:{prop:"fileList"},props:{disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String,Function],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return Object(i.a)(this.previewSize)},value:function(){return this.fileList}},methods:{getDetail:function(t){return void 0===t&&(t=this.fileList.length),{name:this.name,index:t}},onChange:function(t){var e=this,n=t.target.files;if(!this.disabled&&n.length){if(n=1===n.length?n[0]:[].slice.call(n),this.beforeRead){var r=this.beforeRead(n,this.getDetail());if(!r)return void this.resetInput();if(Object(i.h)(r))return void r.then((function(t){t?e.readFile(t):e.readFile(n)})).catch(this.resetInput)}this.readFile(n)}},readFile:function(t){var e=this,n=Oo(t,this.maxSize);if(Array.isArray(t)){var r=this.maxCount-this.fileList.length;t.length>r&&(t=t.slice(0,r)),Promise.all(t.map((function(t){return Eo(t,e.resultType)}))).then((function(r){var i=t.map((function(t,e){var n={file:t,status:"",message:""};return r[e]&&(n.content=r[e]),n}));e.onAfterRead(i,n)}))}else Eo(t,this.resultType).then((function(r){var i={file:t,status:"",message:""};r&&(i.content=r),e.onAfterRead(i,n)}))},onAfterRead:function(t,e){var n=this;this.resetInput();var r=t;if(e){var i=t;Array.isArray(t)?(i=[],r=[],t.forEach((function(t){t.file&&(Oo(t.file,n.maxSize)?i.push(t):r.push(t))}))):r=null,this.$emit("oversize",i,this.getDetail())}(Array.isArray(r)?Boolean(r.length):Boolean(r))&&(this.$emit("input",[].concat(this.fileList,Ro(r))),this.afterRead&&this.afterRead(r,this.getDetail()))},onDelete:function(t,e){var n,r=this,o=null!=(n=t.beforeDelete)?n:this.beforeDelete;if(o){var a=o(t,this.getDetail(e));if(!a)return;if(Object(i.h)(a))return void a.then((function(){r.deleteFile(t,e)})).catch(i.j)}this.deleteFile(t,e)},deleteFile:function(t,e){var n=this.fileList.slice(0);n.splice(e,1),this.$emit("input",n),this.$emit("delete",t,this.getDetail(e))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onClickUpload:function(t){this.$emit("click-upload",t)},onPreviewImage:function(t){var e=this;if(this.previewFullImage){var n=this.fileList.filter((function(t){return Io(t)})),i=n.map((function(t){return t.content||t.url}));this.imagePreview=tr(r({images:i,startPosition:n.indexOf(t),onClose:function(){e.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(t){var e=this.$createElement,n=t.status,r=t.message;if("uploading"===n||"failed"===n){var o="failed"===n?e(dt,{attrs:{name:"close"},class:No("mask-icon")}):e(T,{class:No("loading")}),a=Object(i.e)(r)&&""!==r;return e("div",{class:No("mask")},[o,a&&e("div",{class:No("mask-message")},[r])])}},genPreviewItem:function(t,e){var n,i,o,a=this,s=this.$createElement,u=null!=(n=t.deletable)?n:this.deletable,l="uploading"!==t.status&&u&&s("div",{class:No("preview-delete"),on:{click:function(n){n.stopPropagation(),a.onDelete(t,e)}}},[s(dt,{attrs:{name:"cross"},class:No("preview-delete-icon")})]),c=this.slots("preview-cover",r({index:e},t)),h=c&&s("div",{class:No("preview-cover")},[c]),f=null!=(i=t.previewSize)?i:this.previewSize,d=null!=(o=t.imageFit)?o:this.imageFit,p=Io(t)?s(Dn,{attrs:{fit:d,src:t.content||t.url,width:f,height:f,lazyLoad:this.lazyLoad},class:No("preview-image"),on:{click:function(){a.onPreviewImage(t)}}},[h]):s("div",{class:No("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[s(dt,{class:No("file-icon"),attrs:{name:"description"}}),s("div",{class:[No("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),h]);return s("div",{class:No("preview"),on:{click:function(){a.$emit("click-preview",t,a.getDetail(e))}}},[p,this.genPreviewMask(t),l])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var t=this.$createElement;if(!(this.fileList.length>=this.maxCount)&&this.showUpload){var e,n=this.slots(),i=this.readonly?null:t("input",{attrs:r({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:No("input"),on:{change:this.onChange}});if(n)return t("div",{class:No("input-wrapper"),key:"input-wrapper",on:{click:this.onClickUpload}},[n,i]);if(this.previewSize){var o=this.previewSizeWithUnit;e={width:o,height:o}}return t("div",{class:No("upload",{readonly:this.readonly}),style:e,on:{click:this.onClickUpload}},[t(dt,{attrs:{name:this.uploadIcon},class:No("upload-icon")}),this.uploadText&&t("span",{class:No("upload-text")},[this.uploadText]),i])}}},render:function(){var t=arguments[0];return t("div",{class:No()},[t("div",{class:No("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}}),Fo="0.1.21";function Bo(t){[X,Z,yt,Ce,Le,je,qe,Ye,Je,pn,wn,Pn,On,dt,Dn,tr,st,Br,T,zr.a,qr,ti,$t,ui,q,se,ci,pi,yi,Si,Pi,Oi,ji,Ui,Hi,Vn,Xi,Gn,to,ao,co,Ao,To,we,jo].forEach((function(e){e.install?t.use(e):e.name&&t.component(e.name,e)}))}"undefined"!=typeof window&&window.Vue&&Bo(window.Vue);e.default={install:Bo,version:Fo}}])}));
|
|
23
|
+
*/function Sr(t){t=t||{};var e=arguments.length,n=0;if(1===e)return t;for(;++n<e;){var r=arguments[n];_r(t)&&(t=r),Ar(r)&&xr(t,r)}return t}function xr(t,e){for(var n in function(t,e){if(null==t)throw new TypeError("expected first argument to be an object.");if(void 0===e||"undefined"==typeof Symbol)return t;if("function"!=typeof Object.getOwnPropertySymbols)return t;for(var n=Object.prototype.propertyIsEnumerable,r=Object(t),i=arguments.length,o=0;++o<i;)for(var a=Object(arguments[o]),s=Object.getOwnPropertySymbols(a),u=0;u<s.length;u++){var l=s[u];n.call(a,l)&&(r[l]=a[l])}}(t,e),e)if("__proto__"!==n&&kr(e,n)){var r=e[n];Ar(r)?("undefined"===wr(t[n])&&"function"===wr(r)&&(t[n]=r),t[n]=Sr(t[n]||{},r)):t[n]=r}return t}function Ar(t){return"object"===wr(t)||"function"===wr(t)}function kr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Pr=Sr,Tr="undefined"!=typeof window,Lr=function(){if(Tr&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)return"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}),!0;return!1}();var Er="event",Rr="observer",Or=function(){if(Tr)return"function"==typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t);function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}}();function Fr(t,e){if(t.length){var n=t.indexOf(e);return n>-1?t.splice(n,1):void 0}}function Ir(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var n=t.getAttribute("data-srcset"),r=[],i=t.parentNode.offsetWidth*e,o=void 0,a=void 0,s=void 0;(n=n.trim().split(",")).map((function(t){t=t.trim(),-1===(o=t.lastIndexOf(" "))?(a=t,s=999998):(a=t.substr(0,o),s=parseInt(t.substr(o+1,t.length-o-2),10)),r.push([s,a])})),r.sort((function(t,e){if(t[0]<e[0])return 1;if(t[0]>e[0])return-1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0}));for(var u="",l=void 0,c=0;c<r.length;c++){u=(l=r[c])[1];var h=r[c+1];if(h&&h[0]<i){u=l[1];break}if(!h){u=l[1];break}}return u}}function Mr(t,e){for(var n=void 0,r=0,i=t.length;r<i;r++)if(e(t[r])){n=t[r];break}return n}var Dr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Tr&&window.devicePixelRatio||t};function jr(){if(!Tr)return!1;var t=!0,e=document;try{var n=e.createElement("object");n.type="image/webp",n.style.visibility="hidden",n.innerHTML="!",e.body.appendChild(n),t=!n.offsetWidth,e.body.removeChild(n)}catch(e){t=!1}return t}var Nr=function(){if(Tr){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}(),Br={on:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Nr?t.addEventListener(e,n,{capture:r,passive:!0}):t.addEventListener(e,n,r)},off:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,n,r)}},zr=function(t,e,n){var r=new Image;if(!t||!t.src){var i=new Error("image src is required");return n(i)}r.src=t.src,r.onload=function(){e({naturalHeight:r.naturalHeight,naturalWidth:r.naturalWidth,src:r.src})},r.onerror=function(t){n(t)}},Hr=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},Ur=function(t){return Hr(t,"overflow")+Hr(t,"overflow-y")+Hr(t,"overflow-x")};function Vr(){}var Wr=function(){function t(e){var n=e.max;mr(this,t),this.options={max:n||100},this._caches=[]}return br(t,[{key:"has",value:function(t){return this._caches.indexOf(t)>-1}},{key:"add",value:function(t){this.has(t)||(this._caches.push(t),this._caches.length>this.options.max&&this.free())}},{key:"free",value:function(){this._caches.shift()}}]),t}(),qr=function(){function t(e){var n=e.el,r=e.src,i=e.error,o=e.loading,a=e.bindType,s=e.$parent,u=e.options,l=e.elRenderer,c=e.imageCache;mr(this,t),this.el=n,this.src=r,this.error=i,this.loading=o,this.bindType=a,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=u,this.rect=null,this.$parent=s,this.elRenderer=l,this._imageCache=c,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return br(t,[{key:"initState",value:function(){"dataset"in this.el?this.el.dataset.src=this.src:this.el.setAttribute("data-src",this.src),this.state={loading:!1,error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,n=t.loading,r=t.error,i=this.src;this.src=e,this.loading=n,this.error=r,this.filter(),i!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var t=this;(function(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e})(this.options.filter).map((function(e){t.options.filter[e](t,t.options)}))}},{key:"renderLoading",value:function(t){var e=this;this.state.loading=!0,zr({src:this.loading},(function(n){e.render("loading",!1),e.state.loading=!1,t()}),(function(){t(),e.state.loading=!1,e.options.silent||console.warn("VueLazyload log: load failed with loading image("+e.loading+")")}))}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vr;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void e()):this.state.rendered&&this.state.loaded?void 0:this._imageCache.has(this.src)?(this.state.loaded=!0,this.render("loaded",!0),this.state.rendered=!0,e()):void this.renderLoading((function(){t.attempt++,t.options.adapter.beforeLoad&&t.options.adapter.beforeLoad(t,t.options),t.record("loadStart"),zr({src:t.src},(function(n){t.naturalHeight=n.naturalHeight,t.naturalWidth=n.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),t.state.rendered=!0,t._imageCache.add(t.src),e()}),(function(e){!t.options.silent&&console.error(e),t.state.error=!0,t.state.loaded=!1,t.render("error",!1)}))}))}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"$destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),$r="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Gr=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],Yr={rootMargin:"0px",threshold:0},Xr=function(t){return function(){function e(t){var n,r,i,o,a=t.preLoad,s=t.error,u=t.throttleWait,l=t.preLoadTop,c=t.dispatchEvent,h=t.loading,f=t.attempt,d=t.silent,p=void 0===d||d,v=t.scale,g=t.listenEvents,y=(t.hasbind,t.filter),m=t.adapter,b=t.observer,_=t.observerOptions;mr(this,e),this.version="1.3.3",this.mode=Er,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:p,dispatchEvent:!!c,throttleWait:u||200,preLoad:a||1.3,preLoadTop:l||0,error:s||$r,loading:h||$r,attempt:f||3,scale:v||Dr(v),ListenEvents:g||Gr,hasbind:!1,supportWebp:jr(),filter:y||{},adapter:m||{},observer:!!b,observerOptions:_||Yr},this._initEvent(),this._imageCache=new Wr({max:200}),this.lazyLoadHandler=(n=this._lazyLoadHandler.bind(this),r=this.options.throttleWait,i=null,o=0,function(){if(!i){var t=Date.now()-o,e=this,a=arguments,s=function(){o=Date.now(),i=!1,n.apply(e,a)};t>=r?s():i=setTimeout(s,r)}}),this.setMode(this.options.observer?Rr:Er)}return br(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Pr(this.options,t)}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map((function(e){t.push(e.performance())})),t}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),Tr&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}},{key:"add",value:function(e,n,r){var i=this;if(function(t,e){for(var n=!1,r=0,i=t.length;r<i;r++)if(e(t[r])){n=!0;break}return n}(this.ListenerQueue,(function(t){return t.el===e})))return this.update(e,n),t.nextTick(this.lazyLoadHandler);var o=this._valueFormatter(n.value),a=o.src,s=o.loading,u=o.error;t.nextTick((function(){a=Ir(e,i.options.scale)||a,i._observer&&i._observer.observe(e);var o=Object.keys(n.modifiers)[0],l=void 0;o&&(l=(l=r.context.$refs[o])?l.$el||l:document.getElementById(o)),l||(l=function(t){if(Tr){if(!(t instanceof HTMLElement))return window;for(var e=t;e&&e!==document.body&&e!==document.documentElement&&e.parentNode;){if(/(scroll|auto)/.test(Ur(e)))return e;e=e.parentNode}return window}}(e));var c=new qr({bindType:n.arg,$parent:l,el:e,loading:s,error:u,src:a,elRenderer:i._elRenderer.bind(i),options:i.options,imageCache:i._imageCache});i.ListenerQueue.push(c),Tr&&(i._addListenerTarget(window),i._addListenerTarget(l)),i.lazyLoadHandler(),t.nextTick((function(){return i.lazyLoadHandler()}))}))}},{key:"update",value:function(e,n,r){var i=this,o=this._valueFormatter(n.value),a=o.src,s=o.loading,u=o.error;a=Ir(e,this.options.scale)||a;var l=Mr(this.ListenerQueue,(function(t){return t.el===e}));l?l.update({src:a,loading:s,error:u}):this.add(e,n,r),this._observer&&(this._observer.unobserve(e),this._observer.observe(e)),this.lazyLoadHandler(),t.nextTick((function(){return i.lazyLoadHandler()}))}},{key:"remove",value:function(t){if(t){this._observer&&this._observer.unobserve(t);var e=Mr(this.ListenerQueue,(function(e){return e.el===t}));e&&(this._removeListenerTarget(e.$parent),this._removeListenerTarget(window),Fr(this.ListenerQueue,e),e.$destroy())}}},{key:"removeComponent",value:function(t){t&&(Fr(this.ListenerQueue,t),this._observer&&this._observer.unobserve(t.el),t.$parent&&t.$el.parentNode&&this._removeListenerTarget(t.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(t){var e=this;Lr||t!==Rr||(t=Er),this.mode=t,t===Er?(this._observer&&(this.ListenerQueue.forEach((function(t){e._observer.unobserve(t.el)})),this._observer=null),this.TargetQueue.forEach((function(t){e._initListen(t.el,!0)}))):(this.TargetQueue.forEach((function(t){e._initListen(t.el,!1)})),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(t){if(t){var e=Mr(this.TargetQueue,(function(e){return e.el===t}));return e?e.childrenCount++:(e={el:t,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===Er&&this._initListen(e.el,!0),this.TargetQueue.push(e)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(t){var e=this;this.TargetQueue.forEach((function(n,r){n.el===t&&(n.childrenCount--,n.childrenCount||(e._initListen(n.el,!1),e.TargetQueue.splice(r,1),n=null))}))}},{key:"_initListen",value:function(t,e){var n=this;this.options.ListenEvents.forEach((function(r){return Br[e?"on":"off"](t,r,n.lazyLoadHandler)}))}},{key:"_initEvent",value:function(){var t=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(e,n){t.Event.listeners[e]||(t.Event.listeners[e]=[]),t.Event.listeners[e].push(n)},this.$once=function(e,n){var r=t;t.$on(e,(function t(){r.$off(e,t),n.apply(r,arguments)}))},this.$off=function(e,n){if(n)Fr(t.Event.listeners[e],n);else{if(!t.Event.listeners[e])return;t.Event.listeners[e].length=0}},this.$emit=function(e,n,r){t.Event.listeners[e]&&t.Event.listeners[e].forEach((function(t){return t(n,r)}))}}},{key:"_lazyLoadHandler",value:function(){var t=this,e=[];this.ListenerQueue.forEach((function(t,n){t.el&&t.el.parentNode||e.push(t),t.checkInView()&&t.load()})),e.forEach((function(e){Fr(t.ListenerQueue,e),e.$destroy()}))}},{key:"_initIntersectionObserver",value:function(){var t=this;Lr&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach((function(e){t._observer.observe(e.el)})))}},{key:"_observerHandler",value:function(t,e){var n=this;t.forEach((function(t){t.isIntersecting&&n.ListenerQueue.forEach((function(e){if(e.el===t.target){if(e.state.loaded)return n._observer.unobserve(e.el);e.load()}}))}))}},{key:"_elRenderer",value:function(t,e,n){if(t.el){var r=t.el,i=t.bindType,o=void 0;switch(e){case"loading":o=t.loading;break;case"error":o=t.error;break;default:o=t.src}if(i?r.style[i]='url("'+o+'")':r.getAttribute("src")!==o&&r.setAttribute("src",o),r.setAttribute("lazy",e),this.$emit(e,t,n),this.options.adapter[e]&&this.options.adapter[e](t,this.options),this.options.dispatchEvent){var a=new Or(e,{detail:t});r.dispatchEvent(a)}}}},{key:"_valueFormatter",value:function(t){var e,n=t,r=this.options.loading,i=this.options.error;return null!==(e=t)&&"object"===(void 0===e?"undefined":yr(e))&&(t.src||this.options.silent||console.error("Vue Lazyload warning: miss src with "+t),n=t.src,r=t.loading||this.options.loading,i=t.error||this.options.error),{src:n,loading:r,error:i}}}]),e}()},Zr=function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return!1===this.show?t(this.tag):t(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),Tr&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)},destroy:function(){return this.$destroy}}}},Kr=function(){function t(e){var n=e.lazy;mr(this,t),this.lazy=n,n.lazyContainerMananger=this,this._queue=[]}return br(t,[{key:"bind",value:function(t,e,n){var r=new Jr({el:t,binding:e,vnode:n,lazy:this.lazy});this._queue.push(r)}},{key:"update",value:function(t,e,n){var r=Mr(this._queue,(function(e){return e.el===t}));r&&r.update({el:t,binding:e,vnode:n})}},{key:"unbind",value:function(t,e,n){var r=Mr(this._queue,(function(e){return e.el===t}));r&&(r.clear(),Fr(this._queue,r))}}]),t}(),Qr={selector:"img"},Jr=function(){function t(e){var n=e.el,r=e.binding,i=e.vnode,o=e.lazy;mr(this,t),this.el=null,this.vnode=i,this.binding=r,this.options={},this.lazy=o,this._queue=[],this.update({el:n,binding:r})}return br(t,[{key:"update",value:function(t){var e=this,n=t.el,r=t.binding;this.el=n,this.options=Pr({},Qr,r.value),this.getImgs().forEach((function(t){e.lazy.add(t,Pr({},e.binding,{value:{src:"dataset"in t?t.dataset.src:t.getAttribute("data-src"),error:("dataset"in t?t.dataset.error:t.getAttribute("data-error"))||e.options.error,loading:("dataset"in t?t.dataset.loading:t.getAttribute("data-loading"))||e.options.loading}}),e.vnode)}))}},{key:"getImgs",value:function(){return function(t){for(var e=t.length,n=[],r=0;r<e;r++)n.push(t[r]);return n}(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var t=this;this.getImgs().forEach((function(e){return t.lazy.remove(e)})),this.vnode=null,this.binding=null,this.lazy=null}}]),t}(),ti=function(t){return{props:{src:[String,Object],tag:{type:String,default:"img"}},render:function(t){return t(this.tag,{attrs:{src:this.renderSrc}},this.$slots.default)},data:function(){return{el:null,options:{src:"",error:"",loading:"",attempt:t.options.attempt},state:{loaded:!1,error:!1,attempt:0},rect:{},renderSrc:""}},watch:{src:function(){this.init(),t.addLazyBox(this),t.lazyLoadHandler()}},created:function(){this.init(),this.renderSrc=this.options.loading},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{init:function(){var e=t._valueFormatter(this.src),n=e.src,r=e.loading,i=e.error;this.state.loaded=!1,this.options.src=n,this.options.error=i,this.options.loading=r,this.renderSrc=this.options.loading},getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),Tr&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vr;if(this.state.attempt>this.options.attempt-1&&this.state.error)return t.options.silent||console.log("VueLazyload log: "+this.options.src+" tried too more than "+this.options.attempt+" times"),void n();var r=this.options.src;zr({src:r},(function(t){var n=t.src;e.renderSrc=n,e.state.loaded=!0}),(function(t){e.state.attempt++,e.renderSrc=e.options.error,e.state.error=!0}))}}}},ei={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Xr(t),r=new n(e),i=new Kr({lazy:r}),o="2"===t.version.split(".")[0];t.prototype.$Lazyload=r,e.lazyComponent&&t.component("lazy-component",Zr(r)),e.lazyImage&&t.component("lazy-image",ti(r)),o?(t.directive("lazy",{bind:r.add.bind(r),update:r.update.bind(r),componentUpdated:r.lazyLoadHandler.bind(r),unbind:r.remove.bind(r)}),t.directive("lazy-container",{bind:i.bind.bind(i),componentUpdated:i.update.bind(i),unbind:i.unbind.bind(i)})):(t.directive("lazy",{bind:r.lazyLoadHandler.bind(r),update:function(t,e){Pr(this.vm.$refs,this.vm.$els),r.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){r.remove(this.el)}}),t.directive("lazy-container",{update:function(t,e){i.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){i.unbind(this.el)}}))}},ni=n(9),ri=Object(i.b)("nav-bar"),ii=ri[0],oi=ri[1],ai=ii({props:{title:String,fixed:Boolean,zIndex:[Number,String],leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,border:{type:Boolean,default:!0},themeColor:{type:String,default:"#0091FA"},contentColor:{type:String,default:"#ffffff"}},data:function(){return{height:null}},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.navBar.getBoundingClientRect().height)},methods:{genLeft:function(){var t=this.$createElement,e=this.slots("left");return e||[this.leftArrow&&t(Ct,{class:oi("arrow"),attrs:{name:"arrow-left",color:this.contentColor}}),this.leftText&&t("span",{class:oi("text"),style:{color:this.contentColor}},[this.leftText])]},genRight:function(){var t=this.$createElement,e=this.slots("right");return e||(this.rightText?t("span",{class:oi("text"),style:{color:this.contentColor}},[this.rightText]):void 0)},genNavBar:function(){var t,e=this.$createElement;return e("div",{ref:"navBar",style:{zIndex:this.zIndex,backgroundColor:this.themeColor,color:this.contentColor},class:[oi({fixed:this.fixed,"safe-area-inset-top":this.safeAreaInsetTop}),(t={},t["zt-hairline--bottom"]=this.border,t)]},[e("div",{class:oi("content")},[this.hasLeft()&&e("div",{class:oi("left"),on:{click:this.onClickLeft}},[this.genLeft()]),e("div",{class:[oi("title"),"van-ellipsis"],style:{color:this.contentColor}},[this.slots("title")||this.title]),this.hasRight()&&e("div",{class:oi("right"),on:{click:this.onClickRight}},[this.genRight()])])])},hasLeft:function(){return this.leftArrow||this.leftText||this.slots("left")},hasRight:function(){return this.rightText||this.slots("right")},onClickLeft:function(t){this.$emit("click-left",t)},onClickRight:function(t){this.$emit("click-right",t)}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:oi("placeholder"),style:{height:this.height+"px"}},[this.genNavBar()]):this.genNavBar()}}),si={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 32 22",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",fill:"currentColor"}})])}},ui={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 30 24",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",fill:"currentColor"}})])}},li=Object(i.b)("key"),ci=li[0],hi=li[1],fi=ci({mixins:[F],props:{type:String,text:[Number,String],color:String,wider:Boolean,large:Boolean,loading:Boolean},data:function(){return{active:!1}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{onTouchStart:function(t){t.stopPropagation(),this.touchStart(t),this.active=!0},onTouchMove:function(t){this.touchMove(t),this.direction&&(this.active=!1)},onTouchEnd:function(t){this.active&&(this.slots("default")||t.preventDefault(),this.active=!1,this.$emit("press",this.text,this.type))},genContent:function(){var t=this.$createElement,e="extra"===this.type,n="delete"===this.type,r=this.slots("default")||this.text;return this.loading?t(P,{class:hi("loading-icon")}):n?r||t(si,{class:hi("delete-icon")}):e?r||t(ui,{class:hi("collapse-icon")}):r}},render:function(){var t=arguments[0];return t("div",{class:hi("wrapper",{wider:this.wider})},[t("div",{attrs:{role:"button",tabindex:"0"},class:hi([this.color,{large:this.large,active:this.active,delete:"delete"===this.type}])},[this.genContent()])])}}),di=Object(i.b)("number-keyboard"),pi=di[0],vi=di[1],gi=pi({mixins:[ot(),st((function(t){this.hideOnClickOutside&&t(document.body,"touchstart",this.onBlur)}))],model:{event:"update:value"},props:{show:Boolean,title:String,zIndex:[Number,String],randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,theme:{type:String,default:"default"},value:{type:String,default:""},extraKey:{type:[String,Array],default:""},maxlength:{type:[Number,String],default:Number.MAX_VALUE},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0}},watch:{show:function(t){this.transition||this.$emit(t?"show":"hide")}},computed:{keys:function(){return"custom"===this.theme?this.genCustomKeys():this.genDefaultKeys()}},methods:{genBasicKeys:function(){for(var t=[],e=1;e<=9;e++)t.push({text:e});return this.randomKeyOrder&&t.sort((function(){return Math.random()>.5?1:-1})),t},genDefaultKeys:function(){return[].concat(this.genBasicKeys(),[{text:this.extraKey,type:"extra"},{text:0},{text:this.showDeleteKey?this.deleteButtonText:"",type:this.showDeleteKey?"delete":""}])},genCustomKeys:function(){var t=this.genBasicKeys(),e=this.extraKey,n=Array.isArray(e)?e:[e];return 1===n.length?t.push({text:0,wider:!0},{text:n[0],type:"extra"}):2===n.length&&t.push({text:n[0],type:"extra"},{text:0},{text:n[1],type:"extra"}),t},onBlur:function(){this.show&&this.$emit("blur")},onClose:function(){this.$emit("close"),this.onBlur()},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPress:function(t,e){if(""!==t){var n=this.value;"delete"===e?(this.$emit("delete"),this.$emit("update:value",n.slice(0,n.length-1))):"close"===e?this.onClose():n.length<this.maxlength&&(this.$emit("input",t),this.$emit("update:value",n+t))}else"extra"===e&&this.onBlur()},genTitle:function(){var t=this.$createElement,e=this.title,n=this.theme,r=this.closeButtonText,i=this.slots("title-left"),o=r&&"default"===n;if(e||o||i)return t("div",{class:vi("header")},[i&&t("span",{class:vi("title-left")},[i]),e&&t("h2",{class:vi("title")},[e]),o&&t("button",{attrs:{type:"button"},class:vi("close"),on:{click:this.onClose}},[r])])},genKeys:function(){var t=this,e=this.$createElement;return this.keys.map((function(n){return e(fi,{key:n.text,attrs:{text:n.text,type:n.type,wider:n.wider,color:n.color},on:{press:t.onPress}},["delete"===n.type&&t.slots("delete"),"extra"===n.type&&t.slots("extra-key")])}))},genSidebar:function(){var t=this.$createElement;if("custom"===this.theme)return t("div",{class:vi("sidebar")},[this.showDeleteKey&&t(fi,{attrs:{large:!0,text:this.deleteButtonText,type:"delete"},on:{press:this.onPress}},[this.slots("delete")]),t(fi,{attrs:{large:!0,text:this.closeButtonText,type:"close",color:"blue",loading:this.closeButtonLoading},on:{press:this.onPress}})])}},render:function(){var t=arguments[0],e=this.genTitle();return t("transition",{attrs:{name:this.transition?"zt-slide-up":""}},[t("div",{directives:[{name:"show",value:this.show}],style:{zIndex:this.zIndex},class:vi({unfit:!this.safeAreaInsetBottom,"with-title":e}),on:{touchstart:c,animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[e,t("div",{class:vi("body")},[t("div",{class:vi("keys")},[this.genKeys()]),this.genSidebar()])])])}}),yi=Object(i.b)("password-input"),mi=yi[0],bi=yi[1];function _i(t,e,n,r){for(var o,a=e.mask,s=e.value,u=e.length,l=e.gutter,c=e.focused,h=(e.errorInfo,[]),f=0;f<u;f++){var d,v=s[f],g=0!==f&&!l,y=c&&f===s.length,m=void 0;0!==f&&l&&(m={marginLeft:Object(i.a)(l)}),h.push(t("li",{class:[(d={},d["zt-hairline--left"]=g,d),bi("item",{focus:y})],style:m},[a?t("i",{style:{visibility:v?"visible":"hidden"}}):v,y&&t("div",{class:bi("cursor")})]))}return t("div",{class:bi()},[t("ul",p()([{class:[bi("security"),(o={},o["zt-hairline--surround"]=!l,o)],on:{touchstart:function(t){t.stopPropagation(),_(r,"focus",t)}}},b(r,!0)]),[h])])}_i.props={gutter:[Number,String],focused:Boolean,errorInfo:String,mask:{type:Boolean,default:!0},value:{type:String,default:""},length:{type:[Number,String],default:6}};var Ci=mi(_i),wi=n(11).a,Si=(n(36),n(12)),xi=Object(Si.a)(wi,void 0,void 0,!1,null,null,null).exports,Ai=Object(i.b)("pdf-viewer"),ki=Ai[0],Pi=Ai[1];g.a.use(xi);var Ti=n(38),Li=ki({props:{url:{type:String,default:""}},data:function(){return{pdfPageCount:0,pageNum:1,loadedRatio:0,loading:!1,rotateDegree:0,pdfArr:[],pageChangeByButton:!1,showPicker:!1,bodyInitialHeight:"auto",bodyInitialMinHeight:"auto"}},activated:function(){this.bodyInitialHeight=document.body.style.height,this.bodyInitialMinHeight=document.body.style.minHeight,document.body.style.height="auto",document.body.style.minHeight="100%"},deactivated:function(){document.body.style.height=this.bodyInitialHeight,document.body.style.minHeight=this.bodyInitialMinHeight},watch:{url:function(){this.reset(),this.getPdfNumPages()},pageNum:function(t){this.pageChangeByButton&&document.getElementById("pdfContent"+t)&&document.getElementById("pdfContent"+t).scrollIntoView()}},methods:{reset:function(){this.pdfPageCount=0,this.pageNum=1},getPdfNumPages:function(){var t=this;this.url&&(this.loading=!0,xi.createLoadingTask(this.url).promise.then((function(e){t.pdfPageCount=e.numPages;for(var n=[],r=0;r<t.pdfPageCount;r++)n.push({});t.pdfArr=n,window.onscroll=Ti.throttle((function(){t.pageChangeByButton?t.pageChangeByButton=!1:t.changePage()}),300)})).catch((function(t){console.error("pdf 加载失败",t)})).finally((function(){t.loading=!1})))},changePage:function(){var t=1,e=this.pdfPageCount;do{window.pageYOffset>=this.findPos(document.getElementById("pdfContent"+t))&&window.pageYOffset<=this.findPos(document.getElementById("pdfContent"+(t+1)))&&(this.pageNum=t),t++}while(t<e);window.pageYOffset>=this.findPos(document.getElementById("pdfContent"+t))&&(this.pageNum=t)},findPos:function(t){return t?t.offsetTop:0},perPage:function(){this.pageNum>1?(this.pageNum=this.pageNum-1,this.pageChangeByButton=!0):Se("已经是首页!")},nextPage:function(){this.pageNum<this.pdfPageCount?(this.pageNum=this.pageNum+1,this.pageChangeByButton=!0):Se("已经是尾页!")},onPdfLoaded:function(){this.$emit("loaded"),console.log("pdf loaded")},onPdfError:function(t){this.$emit("error",t),console.log("pdf viewer error: "+t)},rotate:function(){this.rotateDegree+=90},genPdf:function(t){var e=this.$createElement;return e("div",[e(xi,{attrs:{src:this.url,page:t,id:"pdfContent"+t,rotate:this.rotateDegree},ref:"pdfContent"+t,on:{loaded:this.onPdfLoaded,error:this.onPdfError}}),e("div",{class:Pi("page-margin")})])},showPagePicker:function(){this.showPicker=!0},genPageList:function(){var t=this,e=this.$createElement;return this.pdfArr.map((function(n,r){return e("div",{class:Pi("page-item"),on:{click:function(){return t.setPage(r+1)}}},[r+1])}))},setPage:function(t){this.pageNum=t,this.pageChangeByButton=!0,this.showPicker=!1}},render:function(t){var e=this;return t("div",{class:Pi()},[this.loading?t(P,{class:Pi("loading")}):t(),t("div",{class:Pi("pdf-top")},[t("div",{class:Pi("page-btn")},[t("svg",{attrs:{t:"1635239576536",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3862",width:"20",height:"20"},class:Pi("handle-btn"),on:{click:this.perPage}},[t("path",{attrs:{d:"M410.7 512.4L749.1 174c24.9-24.9 24.9-65.6 0-90.5-24.9-24.9-65.6-24.9-90.5 0L274.9 467.2c-6.2 6.2-10.9 13.4-14 21.1-5.4 13.5-6.1 28.5-2 42.4 0.6 2 1.3 3.9 2 5.9 3.1 7.7 7.8 14.9 14 21.1l383.6 383.6c24.9 24.9 65.6 24.9 90.5 0 24.9-24.9 24.9-65.6 0-90.5L410.7 512.4z","p-id":"3863",fill:"#0091fa"}})]),t("span",{directives:[{name:"show",value:this.pdfPageCount>0}],class:Pi("page-count"),on:{click:this.showPagePicker}},[this.pageNum," / ",this.pdfPageCount]),t("svg",{attrs:{t:"1635239716959",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4119",width:"20",height:"20"},class:Pi("handle-btn"),on:{click:this.nextPage}},[t("path",{attrs:{d:"M613.3 512.4L274.9 850.8c-24.9 24.9-24.9 65.6 0 90.5 24.9 24.9 65.6 24.9 90.5 0L749 557.7c6.2-6.2 10.9-13.4 14-21.1 5.4-13.5 6.1-28.5 2-42.4-0.6-2-1.3-3.9-2-5.9-3.1-7.7-7.8-14.9-14-21.1L365.4 83.5c-24.9-24.9-65.6-24.9-90.5 0-24.9 24.9-24.9 65.6 0 90.5l338.4 338.4z","p-id":"4120",fill:"#0091fa"}})])])]),this.pdfArr.length?t("div",{class:Pi("container"),attrs:{id:"pdfContainer"}},[this.pdfArr.map((function(t,n){return e.genPdf(n+1)}))]):t(),t(At,{class:Pi("popup"),attrs:{value:this.showPicker,position:"bottom",closeOnClickOverlay:!1}},[this.genPageList()])])}}),Ei=Object(i.b)("radio"),Ri=(0,Ei[0])({mixins:[We({bem:Ei[1],role:"radio",parent:"vanRadio"})],computed:{currentValue:{get:function(){return this.parent?this.parent.value:this.value},set:function(t){(this.parent||this).$emit("input",t)}},checked:function(){return this.currentValue===this.name}},methods:{toggle:function(){this.currentValue=this.name}}}),Oi=Object(i.b)("radio-group"),Fi=Oi[0],Ii=Oi[1],Mi=Fi({mixins:[Ve("vanRadio"),ze],props:{value:null,disabled:Boolean,direction:String,checkedColor:String,iconSize:[Number,String]},watch:{value:function(t){this.$emit("change",t)}},render:function(){var t=arguments[0];return t("div",{class:Ii([this.direction]),attrs:{role:"radiogroup"}},[this.slots()])}}),Di=Object(i.b)("rate"),ji=Di[0],Ni=Di[1];var Bi=ji({mixins:[F,ze],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var t,e,n,r=[],i=1;i<=this.count;i++)r.push((t=this.value,e=i,n=this.allowHalf,t>=e?"full":t+.5>=e&&n?"half":"void"));return r},sizeWithUnit:function(){return Object(i.a)(this.size)},gutterWithUnit:function(){return Object(i.a)(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(t){this.disabled||this.readonly||t===this.value||(this.$emit("input",t),this.$emit("change",t))},onTouchStart:function(t){var e=this;if(!this.readonly&&!this.disabled&&this.touchable){this.touchStart(t);var n=this.$refs.items.map((function(t){return t.getBoundingClientRect()})),r=[];n.forEach((function(t,n){e.allowHalf?r.push({score:n+.5,left:t.left},{score:n+1,left:t.left+t.width/2}):r.push({score:n+1,left:t.left})})),this.ranges=r}},onTouchMove:function(t){if(!this.readonly&&!this.disabled&&this.touchable&&(this.touchMove(t),"horizontal"===this.direction)){h(t);var e=t.touches[0].clientX;this.select(this.getScoreByPosition(e))}},getScoreByPosition:function(t){for(var e=this.ranges.length-1;e>0;e--)if(t>this.ranges[e].left)return this.ranges[e].score;return this.allowHalf?.5:1},genStar:function(t,e){var n,r=this,i=this.$createElement,o=this.icon,a=this.color,s=this.count,u=this.voidIcon,l=this.disabled,c=this.voidColor,h=this.disabledColor,f=e+1,d="full"===t,p="void"===t;return this.gutterWithUnit&&f!==+s&&(n={paddingRight:this.gutterWithUnit}),i("div",{ref:"items",refInFor:!0,key:e,attrs:{role:"radio",tabindex:"0","aria-setsize":s,"aria-posinset":f,"aria-checked":String(!p)},style:n,class:Ni("item")},[i(Ct,{attrs:{size:this.sizeWithUnit,name:d?o:u,color:l?h:d?a:c,classPrefix:this.iconPrefix,"data-score":f},class:Ni("icon",{disabled:l,full:d}),on:{click:function(){r.select(f)}}}),this.allowHalf&&i(Ct,{attrs:{size:this.sizeWithUnit,name:p?u:o,color:l?h:p?c:a,classPrefix:this.iconPrefix,"data-score":f-.5},class:Ni("icon",["half",{disabled:l,full:!p}]),on:{click:function(){r.select(f-.5)}}})])}},render:function(){var t=this,e=arguments[0];return e("div",{class:Ni({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map((function(e,n){return t.genStar(e,n)}))])}}),zi=Object(i.b)("row"),Hi=zi[0],Ui=zi[1],Vi=Hi({mixins:[Ve("ztRow")],props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},computed:{spaces:function(){var t=Number(this.gutter);if(t){var e=[],n=[[]],r=0;return this.children.forEach((function(t,e){(r+=Number(t.span))>24?(n.push([e]),r-=24):n[n.length-1].push(e)})),n.forEach((function(n){var r=t*(n.length-1)/n.length;n.forEach((function(n,i){if(0===i)e.push({right:r});else{var o=t-e[n-1].right,a=r-o;e.push({left:o,right:a})}}))})),e}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],n=this.align,r=this.justify,i="flex"===this.type;return e(this.tag,{class:Ui((t={flex:i},t["align-"+n]=i&&n,t["justify-"+r]=i&&r,t)),on:{click:this.onClick}},[this.slots()])}});function Wi(t,e,n,r,i){return void 0===r&&(r="image/jpeg"),void 0===i&&(i=.8),new Promise((function(o,a){t.toBlob((function(t){if(t){var i=new File([t],e,{lastModified:n,type:r});o(i)}else a(new Error("canvas文件导出失败"))}),r,i)}))}var qi=Object(i.b)("signature"),$i=qi[0],Gi=qi[1],Yi=qi[2],Xi=$i({props:{customClass:{type:String,default:""},lineWidth:{type:Number|String,default:2},strokeStyle:{type:String,default:"#000"},imageType:{type:String,default:"png"},resultTypes:{type:String,default:"file,dataUrl"},unSupportTpl:{type:String,default:Yi("browserUnsupported")}},data:function(){return{canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"],isHintHidden:!1,isCompleteButtonDisabled:!0}},methods:{addEvent:function(){var t=this;this.startEventHandler=this.startEventHandler.bind(this),this.$refs.canvas.addEventListener(this.events[0],this.startEventHandler,!1),this.isCanvasSupported&&window.addEventListener("orientationchange",(function(){setTimeout((function(){t.canvasWidth=t.$refs.canvasWrapper.offsetWidth,t.canvasHeight=t.$refs.canvasWrapper.offsetHeight,t.isCompleteButtonDisabled||(Se(Yi("orientationChangeTip")),t.clear(!0))}),100)}))},startEventHandler:function(t){t.preventDefault(),this.ctx.beginPath(),this.ctx.lineWidth=this.lineWidth,this.ctx.strokeStyle=this.strokeStyle,this.moveEventHandler=this.moveEventHandler.bind(this),this.leaveEventHandler=this.leaveEventHandler.bind(this),this.endEventHandler=this.endEventHandler.bind(this),this.$refs.canvas.addEventListener(this.events[1],this.moveEventHandler,!1),this.$refs.canvas.addEventListener(this.events[2],this.endEventHandler,!1),this.$refs.canvas.addEventListener(this.events[3],this.leaveEventHandler,!1)},moveEventHandler:function(t){t.preventDefault(),this.isHintHidden=!0,this.isCompleteButtonDisabled=!1;var e=this.isSupportTouch?t.touches[0]:t,n=this.$refs.canvas.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;this.ctx.lineTo(r,i),this.ctx.stroke()},endEventHandler:function(t){t.preventDefault(),this.$refs.canvas.removeEventListener(this.events[1],this.moveEventHandler,!1),this.$refs.canvas.removeEventListener(this.events[2],this.endEventHandler,!1)},leaveEventHandler:function(t){t.preventDefault(),this.$refs.canvas.removeEventListener(this.events[1],this.moveEventHandler,!1),this.$refs.canvas.removeEventListener(this.events[2],this.endEventHandler,!1)},clear:function(t){this.$refs.canvas.addEventListener(this.events[2],this.endEventHandler,!1),this.ctx.clearRect(0,0,this.canvasWidth,this.canvasHeight),this.ctx.closePath(),this.isHintHidden=!1,this.isCompleteButtonDisabled=!0,t||this.$emit("clear")},confirm:function(){this.onSave(this.$refs.canvas)},cancel:function(){this.clear(!0),this.$emit("cancel")},onSave:function(t){var e=this,n=this.resultTypes?this.resultTypes.split(","):["file","dataUrl"];Promise.all(n.map((function(n){if("dataUrl"===n.trim()){var r;switch(e.imageType){case"png":r=t.toDataURL("image/png");break;case"jpg":r=t.toDataURL("image/jpeg",.8)}return Promise.resolve(r)}if("file"===n.trim()){var i=(new Date).getTime()+".jpg";return Wi(t,i)}return Promise.resolve(null)}))).then((function(n){e.clear(!0),e.$emit("confirm",t,n)}))},onMounted:function(){this.isCanvasSupported&&(this.ctx=this.$refs.canvas.getContext("2d"),this.canvasWidth=this.$refs.canvasWrapper.offsetWidth,this.canvasHeight=this.$refs.canvasWrapper.offsetHeight,this.addEvent())}},computed:{isCanvasSupported:function(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))}},render:function(){var t=arguments[0];return t("transition",{attrs:{appear:!0},on:{afterEnter:this.onMounted}},[t("div",{class:[Gi(""),this.customClass?this.customClass:""]},[t("label",{class:Gi("placeholder"),directives:[{name:"show",value:!this.isHintHidden}]},[this.isCanvasSupported?Yi("hint"):this.unSupportTpl]),t("div",{class:Gi("canvasWrapper"),ref:"canvasWrapper"},[t("canvas",{class:Gi("canvas"),directives:[{name:"show",value:this.isCanvasSupported}],ref:"canvas",attrs:{width:this.canvasWidth,height:this.canvasHeight}})]),t("div",{class:Gi("actions")},[t(Zt,{attrs:{plain:!0,type:"warning"},on:{click:this.clear}},[Yi("reSign")]),t(Zt,{attrs:{plain:!0,type:"default"},on:{click:this.cancel}},[Yi("cancel")]),t(Zt,{attrs:{block:!0,type:"primary",disabled:this.isCompleteButtonDisabled},on:{click:this.confirm}},[Yi("complete")])])])])}}),Zi=Object(i.b)("slider"),Ki=Zi[0],Qi=Zi[1],Ji=function(t,e){return JSON.stringify(t)===JSON.stringify(e)},to=Ki({mixins:[F,ze],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var t=Object(i.a)(this.buttonSize);return{width:t,height:t}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(t){this.disabled||(this.touchStart(t),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(t){if(!this.disabled){"start"===this.dragStatus&&this.$emit("drag-start"),h(t,!0),this.touchMove(t),this.dragStatus="draging";var e=this.$el.getBoundingClientRect(),n=(this.vertical?this.deltaY:this.deltaX)/(this.vertical?e.height:e.width)*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+n:this.currentValue=this.startValue+n,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||("draging"===this.dragStatus&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(t){if(t.stopPropagation(),!this.disabled){var e=this.$el.getBoundingClientRect(),n=this.vertical?t.clientY-e.top:t.clientX-e.left,r=this.vertical?e.height:e.width,i=+this.min+n/r*this.scope;if(this.range){var o=this.value,a=o[0],s=o[1];i<=(a+s)/2?a=i:s=i,i=[a,s]}this.startValue=this.value,this.updateValue(i,!0)}},handleOverlap:function(t){return t[0]>t[1]?(t=T(t)).reverse():t},updateValue:function(t,e){t=this.range?this.handleOverlap(t).map(this.format):this.format(t),Ji(t,this.value)||this.$emit("input",t),e&&!Ji(t,this.startValue)&&this.$emit("change",t)},format:function(t){var e=+this.min,n=+this.max,r=+this.step;return t=L(t,e,n),O(e,Math.round((t-e)/r)*r)}},render:function(){var t,e,n=this,r=arguments[0],o=this.vertical,a=o?"height":"width",s=o?"width":"height",u=((t={background:this.inactiveColor})[s]=Object(i.a)(this.barHeight),t),l=function(){var t=n.value,e=n.min,r=n.range,i=n.scope;return r?100*(t[1]-t[0])/i+"%":100*(t-e)/i+"%"},c=function(){var t=n.value,e=n.min,r=n.range,i=n.scope;return r?100*(t[0]-e)/i+"%":null},h=((e={})[a]=l(),e.left=this.vertical?null:c(),e.top=this.vertical?c():null,e.background=this.activeColor,e);this.dragStatus&&(h.transition="none");var f=function(t){var e=["left","right"],i="number"==typeof t;return r("div",{ref:i?"wrapper"+t:"wrapper",attrs:{role:"slider",tabindex:n.disabled?-1:0,"aria-valuemin":n.min,"aria-valuenow":n.value,"aria-valuemax":n.max,"aria-orientation":n.vertical?"vertical":"horizontal"},class:Qi(i?"button-wrapper-"+e[t]:"button-wrapper"),on:{touchstart:function(){i&&(n.index=t)},click:function(t){return t.stopPropagation()}}},[n.slots("button")||r("div",{class:Qi("button"),style:n.buttonStyle})])};return r("div",{style:u,class:Qi({disabled:this.disabled,vertical:o}),on:{click:this.onClick}},[r("div",{class:Qi("bar"),style:h},[this.range?[f(0),f(1)]:f()])])}}),eo=Object(i.b)("step"),no=eo[0],ro=eo[1],io=no({mixins:[Ue("ztSteps")],computed:{status:function(){return this.index<this.parent.active?"finish":this.index===+this.parent.active?"process":void 0},active:function(){return"process"===this.status},lineStyle:function(){return"finish"===this.status?{background:this.parent.activeColor}:{background:this.parent.inactiveColor}},titleStyle:function(){return this.active?{color:this.parent.activeColor}:this.status?void 0:{color:this.parent.inactiveColor}}},methods:{genCircle:function(){var t=this.$createElement,e=this.parent,n=e.activeIcon,r=e.iconPrefix,i=e.activeColor,o=e.finishIcon,a=e.inactiveIcon;if(this.active)return this.slots("active-icon")||t(Ct,{class:ro("icon","active"),attrs:{name:n,color:i,classPrefix:r}});var s=this.slots("finish-icon");if("finish"===this.status&&(o||s))return s||t(Ct,{class:ro("icon","finish"),attrs:{name:o,color:i,classPrefix:r}});var u=this.slots("inactive-icon");return a||u?u||t(Ct,{class:ro("icon"),attrs:{name:a,classPrefix:r}}):t("i",{class:ro("circle"),style:this.lineStyle})},onClickStep:function(){this.parent.$emit("click-step",this.index)}},render:function(){var t,e=arguments[0],n=this.status,r=this.active,i=this.parent.direction;return e("div",{class:[Ht,ro([i,(t={},t[n]=n,t)])]},[e("div",{class:ro("title",{active:r}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),e("div",{class:ro("circle-container"),on:{click:this.onClickStep}},[this.genCircle()]),e("div",{class:ro("line"),style:this.lineStyle})])}}),oo=Object(i.b)("stepper"),ao=oo[0],so=oo[1];function uo(t,e){return String(t)===String(e)}var lo,co=ao({mixins:[ze],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var t,e=null!=(t=this.value)?t:this.defaultValue,n=this.format(e);return uo(n,this.value)||this.$emit("input",n),{currentValue:n}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var t={};return this.inputWidth&&(t.width=Object(i.a)(this.inputWidth)),this.buttonSize&&(t.height=Object(i.a)(this.buttonSize)),t},buttonStyle:function(){if(this.buttonSize){var t=Object(i.a)(this.buttonSize);return{width:t,height:t}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(t){uo(t,this.currentValue)||(this.currentValue=this.format(t))},currentValue:function(t){this.$emit("input",t),this.$emit("change",t,{name:this.name})}},methods:{check:function(){var t=this.format(this.currentValue);uo(t,this.currentValue)||(this.currentValue=t)},formatNumber:function(t){return R(String(t),!this.integer)},format:function(t){return this.allowEmpty&&""===t||(t=""===(t=this.formatNumber(t))?0:+t,t=Object(Qt.a)(t)?this.min:t,t=Math.max(Math.min(this.max,t),this.min),Object(i.e)(this.decimalLength)&&(t=t.toFixed(this.decimalLength))),t},onInput:function(t){var e=t.target.value,n=this.formatNumber(e);if(Object(i.e)(this.decimalLength)&&-1!==n.indexOf(".")){var r=n.split(".");n=r[0]+"."+r[1].slice(0,this.decimalLength)}uo(e,n)||(t.target.value=n),n===String(+n)&&(n=+n),this.emitChange(n)},emitChange:function(t){this.asyncChange?(this.$emit("input",t),this.$emit("change",t,{name:this.name})):this.currentValue=t},onChange:function(){var t=this.type;if(this[t+"Disabled"])this.$emit("overlimit",t);else{var e="minus"===t?-this.step:+this.step,n=this.format(O(+this.currentValue,e));this.emitChange(n),this.$emit(t)}},onFocus:function(t){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",t)},onBlur:function(t){var e=this.format(t.target.value);t.target.value=e,this.emitChange(e),this.$emit("blur",t),Bn()},longPressStep:function(){var t=this;this.longPressTimer=setTimeout((function(){t.onChange(),t.longPressStep(t.type)}),200)},onTouchStart:function(){var t=this;this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout((function(){t.isLongPress=!0,t.onChange(),t.longPressStep()}),600))},onTouchEnd:function(t){this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress&&h(t))},onMousedown:function(t){this.disableInput&&t.preventDefault()}},render:function(){var t=this,e=arguments[0],n=function(e){return{on:{click:function(n){n.preventDefault(),t.type=e,t.onChange()},touchstart:function(){t.type=e,t.onTouchStart()},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}}};return e("div",{class:so([this.theme])},[e("button",p()([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:so("minus",{disabled:this.minusDisabled})},n("minus")])),e("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:so("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),e("button",p()([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:so("plus",{disabled:this.plusDisabled})},n("plus")]))])}}),ho=Object(i.b)("steps"),fo=ho[0],po=ho[1],vo=fo({mixins:[Ve("ztSteps")],props:{iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String,active:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},activeIcon:{type:String,default:"checked"}},render:function(){var t=arguments[0];return t("div",{class:po([this.direction])},[t("div",{class:po("items")},[this.slots()])])}}),go=Object(i.b)("sticky"),yo=go[0],mo=go[1],bo=yo({mixins:[st((function(t,e){if(this.scroller||(this.scroller=J(this.$el)),this.observer){var n=e?"observe":"unobserve";this.observer[n](this.$el)}t(this.scroller,"scroll",this.onScroll,!0),this.onScroll()}))],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return Object(f.b)(this.offsetTop)},style:function(){if(this.fixed){var t={};return Object(i.e)(this.zIndex)&&(t.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(t.top=this.offsetTopPx+"px"),this.transform&&(t.transform="translate3d(0, "+this.transform+"px, 0)"),t}}},watch:{fixed:function(t){this.$emit("change",t)}},created:function(){var t=this;!i.i&&window.IntersectionObserver&&(this.observer=new IntersectionObserver((function(e){e[0].intersectionRatio>0&&t.onScroll()}),{root:document.body}))},methods:{onScroll:function(){var t=this;if(!er(this.$el)){this.height=this.$el.offsetHeight;var e=this.container,n=this.offsetTopPx,r=tt(window),i=it(this.$el),o=function(){t.$emit("scroll",{scrollTop:r,isFixed:t.fixed})};if(e){var a=i+e.offsetHeight;if(r+n+this.height>a){var s=this.height+r-a;return s<this.height?(this.fixed=!0,this.transform=-(s+n)):this.fixed=!1,void o()}}r+n>i?(this.fixed=!0,this.transform=0):this.fixed=!1,o()}}},render:function(){var t=arguments[0],e=this.fixed,n={height:e?this.height+"px":null};return t("div",{style:n},[t("div",{class:mo({fixed:e}),style:this.style},[this.slots()])])}}),_o=Object(i.b)("swipe-cell"),Co=_o[0],wo=_o[1],So=Co({mixins:[F,(lo={event:"touchstart",method:"onClick"},{props:{closeOnClickOutside:{type:Boolean,default:!0}},data:function(){var t=this;return{clickOutsideHandler:function(e){t.closeOnClickOutside&&!t.$el.contains(e.target)&&t[lo.method]()}}},mounted:function(){u(document,lo.event,this.clickOutsideHandler)},beforeDestroy:function(){l(document,lo.event,this.clickOutsideHandler)}})],props:{onClose:Function,disabled:Boolean,leftWidth:[Number,String],rightWidth:[Number,String],beforeClose:Function,stopPropagation:Boolean,name:{type:[Number,String],default:""}},data:function(){return{offset:0,dragging:!1}},computed:{computedLeftWidth:function(){return+this.leftWidth||this.getWidthByRef("left")},computedRightWidth:function(){return+this.rightWidth||this.getWidthByRef("right")}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{getWidthByRef:function(t){return this.$refs[t]?this.$refs[t].getBoundingClientRect().width:0},open:function(t){var e="left"===t?this.computedLeftWidth:-this.computedRightWidth;this.opened=!0,this.offset=e,this.$emit("open",{position:t,name:this.name,detail:this.name})},close:function(t){this.offset=0,this.opened&&(this.opened=!1,this.$emit("close",{position:t,name:this.name}))},onTouchStart:function(t){this.disabled||(this.startOffset=this.offset,this.touchStart(t))},onTouchMove:function(t){this.disabled||(this.touchMove(t),"horizontal"===this.direction&&(this.dragging=!0,this.lockClick=!0,(!this.opened||this.deltaX*this.startOffset<0)&&h(t,this.stopPropagation),this.offset=L(this.deltaX+this.startOffset,-this.computedRightWidth,this.computedLeftWidth)))},onTouchEnd:function(){var t=this;this.disabled||this.dragging&&(this.toggle(this.offset>0?"left":"right"),this.dragging=!1,setTimeout((function(){t.lockClick=!1}),0))},toggle:function(t){var e=Math.abs(this.offset),n=this.opened?.85:.15,r=this.computedLeftWidth,i=this.computedRightWidth;i&&"right"===t&&e>i*n?this.open("right"):r&&"left"===t&&e>r*n?this.open("left"):this.close()},onClick:function(t){void 0===t&&(t="outside"),this.$emit("click",t),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:t,name:this.name,instance:this}):this.onClose?this.onClose(t,this,{name:this.name}):this.close(t))},getClickHandler:function(t,e){var n=this;return function(r){e&&r.stopPropagation(),n.onClick(t)}},genLeftPart:function(){var t=this.$createElement,e=this.slots("left");if(e)return t("div",{ref:"left",class:wo("left"),on:{click:this.getClickHandler("left",!0)}},[e])},genRightPart:function(){var t=this.$createElement,e=this.slots("right");if(e)return t("div",{ref:"right",class:wo("right"),on:{click:this.getClickHandler("right",!0)}},[e])}},render:function(){var t=arguments[0],e={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return t("div",{class:wo(),on:{click:this.getClickHandler("cell")}},[t("div",{class:wo("wrapper"),style:e},[this.genLeftPart(),this.slots(),this.genRightPart()])])}}),xo={size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}},Ao=Object(i.b)("switch"),ko=Ao[0],Po=Ao[1],To=ko({mixins:[ze],props:xo,computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:Object(i.a)(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(t){if(this.$emit("click",t),!this.disabled&&!this.loading){var e=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",e),this.$emit("change",e)}},genLoading:function(){var t=this.$createElement;if(this.loading){var e=this.checked?this.activeColor:this.inactiveColor;return t(P,{class:Po("loading"),attrs:{color:e}})}}},render:function(){var t=arguments[0],e=this.checked,n=this.loading,r=this.disabled;return t("div",{class:Po({on:e,loading:n,disabled:r}),attrs:{role:"switch","aria-checked":String(e)},style:this.style,on:{click:this.onClick}},[t("div",{class:Po("node")},[this.genLoading()])])}}),Lo=Object(i.b)("switch-cell"),Eo=Lo[0],Ro=Lo[1];function Oo(t,e,n,i){return t(Ie,p()([{attrs:{center:!0,size:e.cellSize,title:e.title,border:e.border},class:Ro([e.cellSize])},b(i)]),[t(To,{props:Object(r.a)({},e),on:Object(r.a)({},i.listeners)})])}Oo.props=Object(r.a)({},xo,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var Fo,Io=Eo(Oo),Mo=Object(i.b)("tab"),Do=Mo[0],jo=Mo[1],No=Do({mixins:[Ue("vanTabs")],props:Object(r.a)({},Wt,{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var t;return null!=(t=this.name)?t:this.index},isActive:function(){var t=this.computedName===this.parent.currentName;return t&&(this.inited=!0),t}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick((function(){e.parent.$emit("rendered",e.computedName,e.title)}))}},render:function(t){var e=this.slots,n=this.parent,r=this.isActive,i=e();if(i||n.animated){var o=n.scrollspy||r,a=this.inited||n.scrollspy||!n.lazyRender?i:t();return n.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!r},class:jo("pane-wrapper",{inactive:!r})},[t("div",{class:jo("pane")},[a])]):t("div",{directives:[{name:"show",value:o}],attrs:{role:"tabpanel"},class:jo("pane")},[a])}}});var Bo=Object(i.b)("tab"),zo=Bo[0],Ho=Bo[1],Uo=zo({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var t={},e=this.color,n=this.isActive,r="card"===this.type;e&&r&&(t.borderColor=e,this.disabled||(n?t.backgroundColor=e:t.color=e));var i=n?this.activeColor:this.inactiveColor;return i&&(t.color=i),t}},methods:{onClick:function(){this.$emit("click")},genText:function(){var t=this.$createElement,e=t("span",{class:Ho("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||Object(i.e)(this.info)&&""!==this.info?t("span",{class:Ho("text-wrapper")},[e,t(vt,{attrs:{dot:this.dot,info:this.info}})]):e}},render:function(){var t=arguments[0];return t("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[Ho({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}}),Vo=Object(i.b)("tabs"),Wo=Vo[0],qo=Vo[1],$o=Wo({mixins:[F],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,n=this.currentIndex;"horizontal"===t&&this.offsetX>=50&&(e>0&&0!==n?this.$emit("change",n-1):e<0&&n!==this.count-1&&this.$emit("change",n+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:qo("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var t=arguments[0];return t("div",{class:qo("content",{animated:this.animated}),on:Object(r.a)({},this.listeners)},[this.genChildren()])}}),Go=Object(i.b)("tabs"),Yo=Go[0],Xo=Go[1],Zo=Yo({mixins:[Ve("vanTabs"),st((function(t){this.scroller||(this.scroller=J(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)}))],inject:{vanPopup:{default:null}},model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},offsetTopPx:function(){return Object(f.b)(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.active),this.setLine(),this.$nextTick((function(){t.scrollIntoView(!0)}))},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&rt(Math.ceil(it(this.$el)-this.offsetTopPx))},scrollspy:function(t){t?u(this.scroller,"scroll",this.onScroll,!0):l(this.scroller,"scroll",this.onScroll)}},mounted:function(){var t=this;this.init(),this.vanPopup&&this.vanPopup.onReopen((function(){t.setLine()}))},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var t=this;this.$nextTick((function(){var e;t.inited=!0,t.tabHeight=K(e=t.$refs.wrap)?e.innerHeight:e.getBoundingClientRect().height,t.scrollIntoView(!0)}))},setLine:function(){var t=this,e=this.inited;this.$nextTick((function(){var n=t.$refs.titles;if(n&&n[t.currentIndex]&&"line"===t.type&&!er(t.$el)){var r=n[t.currentIndex].$el,o=t.lineWidth,a=t.lineHeight,s=r.offsetLeft+r.offsetWidth/2,u={width:Object(i.a)(o),backgroundColor:t.color,transform:"translateX("+s+"px) translateX(-50%)"};if(e&&(u.transitionDuration=t.duration+"s"),Object(i.e)(a)){var l=Object(i.a)(a);u.height=l,u.borderRadius=l}t.lineStyle=u}}))},setCurrentIndexByName:function(t){var e=this.children.filter((function(e){return e.computedName===t})),n=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:n)},setCurrentIndex:function(t){var e=this.findAvailableTab(t);if(Object(i.e)(e)){var n=this.children[e],r=n.computedName,o=null!==this.currentIndex;this.currentIndex=e,r!==this.active&&(this.$emit("input",r),o&&this.$emit("change",r,n.title))}},findAvailableTab:function(t){for(var e=t<this.currentIndex?-1:1;t>=0&&t<this.children.length;){if(!this.children[t].disabled)return t;t+=e}},onClick:function(t,e){var n=this,r=this.children[e],o=r.title,a=r.disabled,s=r.computedName;a?this.$emit("disabled",s,o):(!function(t){var e=t.interceptor,n=t.args,r=t.done;if(e){var o=e.apply(void 0,n);Object(i.h)(o)?o.then((function(t){t&&r()})).catch(i.j):o&&r()}else r()}({interceptor:this.beforeChange,args:[s],done:function(){n.setCurrentIndex(e),n.scrollToCurrentContent()}}),this.$emit("click",s,o),Ut(t.$router,t))},scrollIntoView:function(t){var e=this.$refs.titles;if(this.scrollable&&e&&e[this.currentIndex]){var n=this.$refs.nav,r=e[this.currentIndex].$el;!function(t,e,n){Object(Kt.a)(Fo);var r=0,i=t.scrollLeft,o=0===n?1:Math.round(1e3*n/16);!function n(){t.scrollLeft+=(e-i)/o,++r<o&&(Fo=Object(Kt.c)(n))}()}(n,r.offsetLeft-(n.offsetWidth-r.offsetWidth)/2,t?0:+this.duration)}},onSticktScroll:function(t){this.stickyFixed=t.isFixed,this.$emit("scroll",t)},scrollTo:function(t){var e=this;this.$nextTick((function(){e.setCurrentIndexByName(t),e.scrollToCurrentContent(!0)}))},scrollToCurrentContent:function(t){var e=this;if(void 0===t&&(t=!1),this.scrollspy){var n=this.children[this.currentIndex],r=null==n?void 0:n.$el;if(r){var i=it(r,this.scroller)-this.scrollOffset;this.lockScroll=!0,function(t,e,n,r){var i=tt(t),o=i<e,a=0===n?1:Math.round(1e3*n/16),s=(e-i)/a;!function n(){i+=s,(o&&i>e||!o&&i<e)&&(i=e),et(t,i),o&&i<e||!o&&i>e?Object(Kt.c)(n):r&&Object(Kt.c)(r)}()}(this.scroller,i,t?0:+this.duration,(function(){e.lockScroll=!1}))}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var t=this.getCurrentIndexOnScroll();this.setCurrentIndex(t)}},getCurrentIndexOnScroll:function(){for(var t,e=this.children,n=0;n<e.length;n++){if((K(t=e[n].$el)?0:t.getBoundingClientRect().top)>this.scrollOffset)return 0===n?0:n-1}return e.length-1}},render:function(){var t,e=this,n=arguments[0],r=this.type,i=this.animated,o=this.scrollable,a=this.children.map((function(t,i){var a;return n(Uo,{ref:"titles",refInFor:!0,attrs:{type:r,dot:t.dot,info:null!=(a=t.badge)?a:t.info,title:t.title,color:e.color,isActive:i===e.currentIndex,disabled:t.disabled,scrollable:o,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:t.titleStyle,class:t.titleClass,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(t,i)}}})})),s=n("div",{ref:"wrap",class:[Xo("wrap",{scrollable:o}),(t={},t["zt-hairline--top-bottom"]="line"===r&&this.border,t)]},[n("div",{ref:"nav",attrs:{role:"tablist"},class:Xo("nav",[r,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),a,"line"===r&&n("div",{class:Xo("line"),style:this.lineStyle}),this.slots("nav-right")])]);return n("div",{class:Xo([r])},[this.sticky?n(bo,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[s]):s,n($o,{attrs:{count:this.children.length,animated:i,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}}),Ko=Object(i.b)("tag"),Qo=Ko[0],Jo=Ko[1];function ta(t,e,n,r){var i,o=e.type,a=e.mark,s=e.plain,u=e.color,l=e.round,c=e.size,h=e.textColor,f=((i={})[s?"color":"backgroundColor"]=u,i);s?(f.color=h||u,f.borderColor=u):(f.color=h,f.background=u);var d={mark:a,plain:s,round:l};c&&(d[c]=c);var v=e.closeable&&t(Ct,{attrs:{name:"cross"},class:Jo("close"),on:{click:function(t){t.stopPropagation(),_(r,"close")}}});return t("transition",{attrs:{name:e.closeable?"zt-fade":null}},[t("span",p()([{key:"content",style:f,class:Jo([d,o])},b(r,!0)]),[null==n.default?void 0:n.default(),v])])}ta.props={size:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}};var ea=Qo(ta);function na(t){return Array.isArray(t)?t:[t]}function ra(t,e){return new Promise((function(n){if("file"!==e){var r=new FileReader;r.onload=function(t){n(t.target.result)},"dataUrl"===e?r.readAsDataURL(t):"text"===e&&r.readAsText(t)}else n(null)}))}function ia(t,e){return na(t).some((function(t){return!!t&&(Object(i.f)(e)?e(t):t.size>e)}))}var oa=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function aa(t){return!!t.isImage||(t.file&&t.file.type?0===t.file.type.indexOf("image"):t.url?(e=t.url,oa.test(e)):!!t.content&&0===t.content.indexOf("data:image"));var e}var sa=Object(i.b)("uploader"),ua=sa[0],la=sa[1],ca=ua({inheritAttrs:!1,mixins:[ze],model:{prop:"fileList"},props:{disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String,Function],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return Object(i.a)(this.previewSize)},value:function(){return this.fileList}},methods:{getDetail:function(t){return void 0===t&&(t=this.fileList.length),{name:this.name,index:t}},onChange:function(t){var e=this,n=t.target.files;if(!this.disabled&&n.length){if(n=1===n.length?n[0]:[].slice.call(n),this.beforeRead){var r=this.beforeRead(n,this.getDetail());if(!r)return void this.resetInput();if(Object(i.h)(r))return void r.then((function(t){t?e.readFile(t):e.readFile(n)})).catch(this.resetInput)}this.readFile(n)}},readFile:function(t){var e=this,n=ia(t,this.maxSize);if(Array.isArray(t)){var r=this.maxCount-this.fileList.length;t.length>r&&(t=t.slice(0,r)),Promise.all(t.map((function(t){return ra(t,e.resultType)}))).then((function(r){var i=t.map((function(t,e){var n={file:t,status:"",message:""};return r[e]&&(n.content=r[e]),n}));e.onAfterRead(i,n)}))}else ra(t,this.resultType).then((function(r){var i={file:t,status:"",message:""};r&&(i.content=r),e.onAfterRead(i,n)}))},onAfterRead:function(t,e){var n=this;this.resetInput();var r=t;if(e){var i=t;Array.isArray(t)?(i=[],r=[],t.forEach((function(t){t.file&&(ia(t.file,n.maxSize)?i.push(t):r.push(t))}))):r=null,this.$emit("oversize",i,this.getDetail())}(Array.isArray(r)?Boolean(r.length):Boolean(r))&&(this.$emit("input",[].concat(this.fileList,na(r))),this.afterRead&&this.afterRead(r,this.getDetail()))},onDelete:function(t,e){var n,r=this,o=null!=(n=t.beforeDelete)?n:this.beforeDelete;if(o){var a=o(t,this.getDetail(e));if(!a)return;if(Object(i.h)(a))return void a.then((function(){r.deleteFile(t,e)})).catch(i.j)}this.deleteFile(t,e)},deleteFile:function(t,e){var n=this.fileList.slice(0);n.splice(e,1),this.$emit("input",n),this.$emit("delete",t,this.getDetail(e))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onClickUpload:function(t){this.$emit("click-upload",t)},onPreviewImage:function(t){var e=this;if(this.previewFullImage){var n=this.fileList.filter((function(t){return aa(t)})),i=n.map((function(t){return t.content||t.url}));this.imagePreview=gr(Object(r.a)({images:i,startPosition:n.indexOf(t),onClose:function(){e.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(t){var e=this.$createElement,n=t.status,r=t.message;if("uploading"===n||"failed"===n){var o="failed"===n?e(Ct,{attrs:{name:"close"},class:la("mask-icon")}):e(P,{class:la("loading")}),a=Object(i.e)(r)&&""!==r;return e("div",{class:la("mask")},[o,a&&e("div",{class:la("mask-message")},[r])])}},genPreviewItem:function(t,e){var n,i,o,a=this,s=this.$createElement,u=null!=(n=t.deletable)?n:this.deletable,l="uploading"!==t.status&&u&&s("div",{class:la("preview-delete"),on:{click:function(n){n.stopPropagation(),a.onDelete(t,e)}}},[s(Ct,{attrs:{name:"cross"},class:la("preview-delete-icon")})]),c=this.slots("preview-cover",Object(r.a)({index:e},t)),h=c&&s("div",{class:la("preview-cover")},[c]),f=null!=(i=t.previewSize)?i:this.previewSize,d=null!=(o=t.imageFit)?o:this.imageFit,p=aa(t)?s(Kn,{attrs:{fit:d,src:t.content||t.url,width:f,height:f,lazyLoad:this.lazyLoad},class:la("preview-image"),on:{click:function(){a.onPreviewImage(t)}}},[h]):s("div",{class:la("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[s(Ct,{class:la("file-icon"),attrs:{name:"description"}}),s("div",{class:[la("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),h]);return s("div",{class:la("preview"),on:{click:function(){a.$emit("click-preview",t,a.getDetail(e))}}},[p,this.genPreviewMask(t),l])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var t=this.$createElement;if(!(this.fileList.length>=this.maxCount)&&this.showUpload){var e,n=this.slots(),i=this.readonly?null:t("input",{attrs:Object(r.a)({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:la("input"),on:{change:this.onChange}});if(n)return t("div",{class:la("input-wrapper"),key:"input-wrapper",on:{click:this.onClickUpload}},[n,i]);if(this.previewSize){var o=this.previewSizeWithUnit;e={width:o,height:o}}return t("div",{class:la("upload",{readonly:this.readonly}),style:e,on:{click:this.onClickUpload}},[t(Ct,{attrs:{name:this.uploadIcon},class:la("upload-icon")}),this.uploadText&&t("span",{class:la("upload-text")},[this.uploadText]),i])}}},render:function(){var t=arguments[0];return t("div",{class:la()},[t("div",{class:la("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}}),ha="0.1.25";function fa(t){[Mt,zt,Zt,Te,Ie,Be,$e,Ze,tn,gn,Sn,jn,Vn,Gn,Ct,Kn,gr,vt,ei,P,ni.a,ai,gi,q,Ci,Li,Et,At,Ri,Mi,Bi,Vi,Xi,to,io,co,vo,bo,or,So,lr,To,Io,No,Zo,ea,Se,ca].forEach((function(e){e.install?t.use(e):e.name&&t.component(e.name,e)}))}"undefined"!=typeof window&&window.Vue&&fa(window.Vue);e.default={install:fa,version:ha}}])}));
|