You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
429 lines
1.2 MiB
429 lines
1.2 MiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[100,5,7,8,9,18],{"+ua5":function(ot,we,Q){},"/cxE":function(ot,we,Q){"use strict";Q.d(we,"f",function(){return O}),Q.d(we,"g",function(){return G}),Q.d(we,"h",function(){return U}),Q.d(we,"e",function(){return Y}),Q.d(we,"b",function(){return M}),Q.d(we,"c",function(){return e}),Q.d(we,"d",function(){return I}),Q.d(we,"a",function(){return p});class de{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(g){setTimeout(()=>{throw g.stack?new Error(g.message+`
|
|
|
|
`+g.stack):g},0)}}emit(g){this.listeners.forEach(c=>{c(g)})}onUnexpectedError(g){this.unexpectedErrorHandler(g),this.emit(g)}onUnexpectedExternalError(g){this.unexpectedErrorHandler(g)}}const K=new de;function O(g){Y(g)||K.onUnexpectedError(g);return}function G(g){Y(g)||K.onUnexpectedExternalError(g);return}function U(g){if(g instanceof Error){let{name:c,message:s}=g;const i=g.stacktrace||g.stack;return{$isError:!0,name:c,message:s,stack:i}}return g}const S="Canceled";function Y(g){return g instanceof Error&&g.name===S&&g.message===S}function M(){const g=new Error(S);return g.name=g.message,g}function e(g){return g?new Error(`Illegal argument: ${g}`):new Error("Illegal argument")}function I(g){return g?new Error(`Illegal state: ${g}`):new Error("Illegal state")}class p extends Error{constructor(g){super("NotSupported");g&&(this.message=g)}}},"24hK":function(ot,we,Q){"use strict";Q.d(we,"a",function(){return K});class de{constructor(O){this.element=O,this.next=de.Undefined,this.prev=de.Undefined}}de.Undefined=new de(void 0);class K{constructor(){this._first=de.Undefined,this._last=de.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===de.Undefined}clear(){let O=this._first;for(;O!==de.Undefined;){const G=O.next;O.prev=de.Undefined,O.next=de.Undefined,O=G}this._first=de.Undefined,this._last=de.Undefined,this._size=0}unshift(O){return this._insert(O,!1)}push(O){return this._insert(O,!0)}_insert(O,G){const U=new de(O);if(this._first===de.Undefined)this._first=U,this._last=U;else if(G){const Y=this._last;this._last=U,U.prev=Y,Y.next=U}else{const Y=this._first;this._first=U,U.next=Y,Y.prev=U}this._size+=1;let S=!1;return()=>{S||(S=!0,this._remove(U))}}shift(){if(this._first===de.Undefined)return;{const O=this._first.element;return this._remove(this._first),O}}pop(){if(this._last===de.Undefined)return;{const O=this._last.element;return this._remove(this._last),O}}_remove(O){if(O.prev!==de.Undefined&&O.next!==de.Undefined){const G=O.prev;G.next=O.next,O.next.prev=G}else O.prev===de.Undefined&&O.next===de.Undefined?(this._first=de.Undefined,this._last=de.Undefined):O.next===de.Undefined?(this._last=this._last.prev,this._last.next=de.Undefined):O.prev===de.Undefined&&(this._first=this._first.next,this._first.prev=de.Undefined);this._size-=1}*[Symbol.iterator](){let O=this._first;for(;O!==de.Undefined;)yield O.element,O=O.next}}},"3/fG":function(ot,we,Q){"use strict";Q.d(we,"a",function(){return K});function de(O,G){let U;return G.length===0?U=O:U=O.replace(/\{(\d+)\}/g,function(S,Y){const M=Y[0];return typeof G[M]!="undefined"?G[M]:S}),U}function K(O,G,...U){return de(G,U)}},"49sm":function(ot,we){var Q={}.toString;ot.exports=Array.isArray||function(de){return Q.call(de)=="[object Array]"}},"55Ip":function(ot,we,Q){"use strict";Q.d(we,"a",function(){return r});var de=Q("Ty5D"),K=Q("dI71"),O=Q("q1tI"),G=Q.n(O),U=Q("YS25"),S=Q("17x9"),Y=Q.n(S),M=Q("wx14"),e=Q("zLVn"),I=Q("9R94"),p=function(n){Object(K.a)(l,n);function l(){for(var _,m=arguments.length,h=new Array(m),R=0;R<m;R++)h[R]=arguments[R];return _=n.call.apply(n,[this].concat(h))||this,_.history=Object(U.a)(_.props),_}var u=l.prototype;return u.render=function(){return G.a.createElement(de.c,{history:this.history,children:this.props.children})},l}(G.a.Component),g=function(n){Object(K.a)(l,n);function l(){for(var _,m=arguments.length,h=new Array(m),R=0;R<m;R++)h[R]=arguments[R];return _=n.call.apply(n,[this].concat(h))||this,_.history=Object(U.b)(_.props),_}var u=l.prototype;return u.render=function(){return G.a.createElement(de.c,{history:this.history,children:this.props.children})},l}(G.a.Component),c=function(l,u){return typeof l=="function"?l(u):l},s=function(l,u){return typeof l=="string"?Object(U.c)(l,null,null,u):l},i=function(l){return l},A=G.a.forwardRef;typeof A=="undefined"&&(A=i);function o(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}var a=A(function(n,l){var u=n.innerRef,_=n.navigate,m=n.onClick,h=Object(e.a)(n,["innerRef","navigate","onClick"]),R=h.target,F=Object(M.a)({},h,{onClick:function(P){try{m&&m(P)}catch(j){throw P.preventDefault(),j}!P.defaultPrevented&&P.button===0&&(!R||R==="_self")&&!o(P)&&(P.preventDefault(),_())}});return i!==A?F.ref=l||u:F.ref=u,G.a.createElement("a",F)}),r=A(function(n,l){var u=n.component,_=u===void 0?a:u,m=n.replace,h=n.to,R=n.innerRef,F=Object(e.a)(n,["component","replace","to","innerRef"]);return G.a.createElement(de.e.Consumer,null,function(C){C||Object(I.a)(!1);var P=C.history,j=s(c(h,C.location),C.location),D=j?P.createHref(j):"",$=Object(M.a)({},F,{href:D,navigate:function(){var Ee=c(h,C.location),ve=m?P.replace:P.push;ve(Ee)}});return i!==A?$.ref=l||R:$.innerRef=R,G.a.createElement(_,$)})});if(!1)var t,b;var y=function(l){return l},E=G.a.forwardRef;typeof E=="undefined"&&(E=y);function T(){for(var n=arguments.length,l=new Array(n),u=0;u<n;u++)l[u]=arguments[u];return l.filter(function(_){return _}).join(" ")}var v=E(function(n,l){var u=n["aria-current"],_=u===void 0?"page":u,m=n.activeClassName,h=m===void 0?"active":m,R=n.activeStyle,F=n.className,C=n.exact,P=n.isActive,j=n.location,D=n.sensitive,$=n.strict,oe=n.style,Ee=n.to,ve=n.innerRef,Le=Object(e.a)(n,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return G.a.createElement(de.e.Consumer,null,function(Se){Se||Object(I.a)(!1);var Re=j||Se.location,De=s(c(Ee,Re),Re),Fe=De.pathname,Ce=Fe&&Fe.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),X=Ce?Object(de.f)(Re.pathname,{path:Ce,exact:C,sensitive:D,strict:$}):null,L=!!(P?P(X,Re):X),N=L?T(F,h):F,J=L?Object(M.a)({},oe,{},R):oe,ne=Object(M.a)({"aria-current":L&&_||null,className:N,style:J,to:De},Le);return y!==E?ne.ref=l||ve:ne.innerRef=ve,G.a.createElement(r,ne)})});if(!1)var d},"5VLF":function(ot,we,Q){"use strict";var de,K;function O(G,U,S){var Y=function(M,e){return G.js_beautify(M,e)};return Y.js=G.js_beautify,Y.css=U.css_beautify,Y.html=S.html_beautify,Y.js_beautify=G.js_beautify,Y.css_beautify=U.css_beautify,Y.html_beautify=S.html_beautify,Y}!(de=[Q("6UM0"),Q("TXwP"),Q("psGv")],K=function(G,U,S){return O(G,U,S)}.apply(we,de),K!==void 0&&(ot.exports=K))},"5Y4S":function(ot,we,Q){"use strict";Q.d(we,"a",function(){return O});var de=Q("MNsG");const K=de.b.performance&&typeof de.b.performance.now=="function";class O{constructor(G){this._highResolution=K&&G,this._startTime=this._now(),this._stopTime=-1}static create(G=!0){return new O(G)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?de.b.performance.now():Date.now()}}},"6+eU":function(ot,we,Q){"use strict";Q.d(we,"a",function(){return E});var de=Q("wx14"),K=Q("rePB"),O=Q("VTBJ"),G=Q("1OyB"),U=Q("vuIU"),S=Q("Ji7U"),Y=Q("LK+K"),M=Q("q1tI"),e=Q.n(M),I=Q("TSYQ"),p=Q.n(I),g=function(v){var d,n="".concat(v.rootPrefixCls,"-item"),l=p()(n,"".concat(n,"-").concat(v.page),(d={},Object(K.a)(d,"".concat(n,"-active"),v.active),Object(K.a)(d,v.className,!!v.className),Object(K.a)(d,"".concat(n,"-disabled"),!v.page),d)),u=function(){v.onClick(v.page)},_=function(h){v.onKeyPress(h,v.onClick,v.page)};return e.a.createElement("li",{title:v.showTitle?v.page:null,className:l,onClick:u,onKeyPress:_,tabIndex:"0"},v.itemRender(v.page,"page",e.a.createElement("a",{rel:"nofollow"},v.page)))},c=g,s={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},i=function(T){Object(S.a)(d,T);var v=Object(Y.a)(d);function d(){var n;Object(G.a)(this,d);for(var l=arguments.length,u=new Array(l),_=0;_<l;_++)u[_]=arguments[_];return n=v.call.apply(v,[this].concat(u)),n.state={goInputText:""},n.buildOptionText=function(m){return"".concat(m," ").concat(n.props.locale.items_per_page)},n.changeSize=function(m){n.props.changeSize(Number(m))},n.handleChange=function(m){n.setState({goInputText:m.target.value})},n.handleBlur=function(m){var h=n.props,R=h.goButton,F=h.quickGo,C=h.rootPrefixCls,P=n.state.goInputText;if(R||P==="")return;if(m.relatedTarget&&(m.relatedTarget.className.indexOf("".concat(C,"-prev"))>=0||m.relatedTarget.className.indexOf("".concat(C,"-next"))>=0))return;n.setState({goInputText:""}),F(n.getValidValue())},n.go=function(m){var h=n.state.goInputText;if(h==="")return;(m.keyCode===s.ENTER||m.type==="click")&&(n.setState({goInputText:""}),n.props.quickGo(n.getValidValue()))},n}return Object(U.a)(d,[{key:"getValidValue",value:function(){var l=this.state,u=l.goInputText,_=l.current;return!u||isNaN(u)?_:Number(u)}},{key:"getPageSizeOptions",value:function(){var l=this.props,u=l.pageSize,_=l.pageSizeOptions;return _.some(function(m){return m.toString()===u.toString()})?_:_.concat([u.toString()]).sort(function(m,h){var R=isNaN(Number(m))?0:Number(m),F=isNaN(Number(h))?0:Number(h);return R-F})}},{key:"render",value:function(){var l=this,u=this.props,_=u.pageSize,m=u.locale,h=u.rootPrefixCls,R=u.changeSize,F=u.quickGo,C=u.goButton,P=u.selectComponentClass,j=u.buildOptionText,D=u.selectPrefixCls,$=u.disabled,oe=this.state.goInputText,Ee="".concat(h,"-options"),ve=P,Le=null,Se=null,Re=null;if(!R&&!F)return null;var De=this.getPageSizeOptions();if(R&&ve){var Fe=De.map(function(Ce,X){return e.a.createElement(ve.Option,{key:X,value:Ce.toString()},(j||l.buildOptionText)(Ce))});Le=e.a.createElement(ve,{disabled:$,prefixCls:D,showSearch:!1,className:"".concat(Ee,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(_||De[0]).toString(),onChange:this.changeSize,getPopupContainer:function(X){return X.parentNode}},Fe)}return F&&(C&&(Re=typeof C=="boolean"?e.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:$,className:"".concat(Ee,"-quick-jumper-button")},m.jump_to_confirm):e.a.createElement("span",{onClick:this.go,onKeyUp:this.go},C)),Se=e.a.createElement("div",{className:"".concat(Ee,"-quick-jumper")},m.jump_to,e.a.createElement("input",{disabled:$,type:"text",value:oe,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),m.page,Re)),e.a.createElement("li",{className:"".concat(Ee)},Le,Se)}}]),d}(e.a.Component);i.defaultProps={pageSizeOptions:["10","20","50","100"]};var A=i,o=Q("N2Kk");function a(){}function r(T){return typeof T=="number"&&isFinite(T)&&Math.floor(T)===T}function t(T,v,d){return d}function b(T,v,d){var n=typeof T=="undefined"?v.pageSize:T;return Math.floor((d.total-1)/n)+1}var y=function(T){Object(S.a)(d,T);var v=Object(Y.a)(d);function d(n){var l;Object(G.a)(this,d),l=v.call(this,n),l.getJumpPrevPage=function(){return Math.max(1,l.state.current-(l.props.showLessItems?3:5))},l.getJumpNextPage=function(){return Math.min(b(void 0,l.state,l.props),l.state.current+(l.props.showLessItems?3:5))},l.getItemIcon=function(R,F){var C=l.props.prefixCls,P=R||e.a.createElement("button",{type:"button","aria-label":F,className:"".concat(C,"-item-link")});return typeof R=="function"&&(P=e.a.createElement(R,Object(O.a)({},l.props))),P},l.savePaginationNode=function(R){l.paginationNode=R},l.isValid=function(R){return r(R)&&R!==l.state.current},l.shouldDisplayQuickJumper=function(){var R=l.props,F=R.showQuickJumper,C=R.pageSize,P=R.total;return P<=C?!1:F},l.handleKeyDown=function(R){(R.keyCode===s.ARROW_UP||R.keyCode===s.ARROW_DOWN)&&R.preventDefault()},l.handleKeyUp=function(R){var F=l.getValidValue(R),C=l.state.currentInputValue;F!==C&&l.setState({currentInputValue:F}),R.keyCode===s.ENTER?l.handleChange(F):R.keyCode===s.ARROW_UP?l.handleChange(F-1):R.keyCode===s.ARROW_DOWN&&l.handleChange(F+1)},l.changePageSize=function(R){var F=l.state.current,C=b(R,l.state,l.props);F=F>C?C:F,C===0&&(F=l.state.current),typeof R=="number"&&("pageSize"in l.props||l.setState({pageSize:R}),"current"in l.props||l.setState({current:F,currentInputValue:F})),l.props.onShowSizeChange(F,R),"onChange"in l.props&&l.props.onChange&&l.props.onChange(F,R)},l.handleChange=function(R){var F=l.props.disabled,C=R;if(l.isValid(C)&&!F){var P=b(void 0,l.state,l.props);C>P?C=P:C<1&&(C=1),"current"in l.props||l.setState({current:C,currentInputValue:C});var j=l.state.pageSize;return l.props.onChange(C,j),C}return l.state.current},l.prev=function(){l.hasPrev()&&l.handleChange(l.state.current-1)},l.next=function(){l.hasNext()&&l.handleChange(l.state.current+1)},l.jumpPrev=function(){l.handleChange(l.getJumpPrevPage())},l.jumpNext=function(){l.handleChange(l.getJumpNextPage())},l.hasPrev=function(){return l.state.current>1},l.hasNext=function(){return l.state.current<b(void 0,l.state,l.props)},l.runIfEnter=function(R,F){if(R.key==="Enter"||R.charCode===13){for(var C=arguments.length,P=new Array(C>2?C-2:0),j=2;j<C;j++)P[j-2]=arguments[j];F.apply(void 0,P)}},l.runIfEnterPrev=function(R){l.runIfEnter(R,l.prev)},l.runIfEnterNext=function(R){l.runIfEnter(R,l.next)},l.runIfEnterJumpPrev=function(R){l.runIfEnter(R,l.jumpPrev)},l.runIfEnterJumpNext=function(R){l.runIfEnter(R,l.jumpNext)},l.handleGoTO=function(R){(R.keyCode===s.ENTER||R.type==="click")&&l.handleChange(l.state.currentInputValue)};var u=n.onChange!==a,_="current"in n;_&&!u&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var m=n.defaultCurrent;"current"in n&&(m=n.current);var h=n.defaultPageSize;return"pageSize"in n&&(h=n.pageSize),m=Math.min(m,b(h,void 0,n)),l.state={current:m,currentInputValue:m,pageSize:h},l}return Object(U.a)(d,[{key:"componentDidUpdate",value:function(l,u){var _=this.props.prefixCls;if(u.current!==this.state.current&&this.paginationNode){var m=this.paginationNode.querySelector(".".concat(_,"-item-").concat(u.current));m&&document.activeElement===m&&m.blur()}}},{key:"getValidValue",value:function(l){var u=l.target.value,_=b(void 0,this.state,this.props),m=this.state.currentInputValue,h;return u===""?h=u:isNaN(Number(u))?h=m:u>=_?h=_:h=Number(u),h}},{key:"getShowSizeChanger",value:function(){var l=this.props,u=l.showSizeChanger,_=l.total,m=l.totalBoundaryShowSizeChanger;return typeof u!="undefined"?u:_>m}},{key:"renderPrev",value:function(l){var u=this.props,_=u.prevIcon,m=u.itemRender,h=m(l,"prev",this.getItemIcon(_,"prev page")),R=!this.hasPrev();return Object(M.isValidElement)(h)?Object(M.cloneElement)(h,{disabled:R}):h}},{key:"renderNext",value:function(l){var u=this.props,_=u.nextIcon,m=u.itemRender,h=m(l,"next",this.getItemIcon(_,"next page")),R=!this.hasNext();return Object(M.isValidElement)(h)?Object(M.cloneElement)(h,{disabled:R}):h}},{key:"render",value:function(){var l=this,u=this.props,_=u.prefixCls,m=u.className,h=u.style,R=u.disabled,F=u.hideOnSinglePage,C=u.total,P=u.locale,j=u.showQuickJumper,D=u.showLessItems,$=u.showTitle,oe=u.showTotal,Ee=u.simple,ve=u.itemRender,Le=u.showPrevNextJumpers,Se=u.jumpPrevIcon,Re=u.jumpNextIcon,De=u.selectComponentClass,Fe=u.selectPrefixCls,Ce=u.pageSizeOptions,X=this.state,L=X.current,N=X.pageSize,J=X.currentInputValue;if(F===!0&&C<=N)return null;var ne=b(void 0,this.state,this.props),k=[],Z=null,H=null,W=null,z=null,se=null,pe=j&&j.goButton,ge=D?1:2,Ne=L-1>0?L-1:0,Me=L+1<ne?L+1:ne,ke=Object.keys(this.props).reduce(function(te,ae){return(ae.substr(0,5)==="data-"||ae.substr(0,5)==="aria-"||ae==="role")&&(te[ae]=l.props[ae]),te},{});if(Ee)return pe&&(typeof pe=="boolean"?se=e.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},P.jump_to_confirm):se=e.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},pe),se=e.a.createElement("li",{title:$?"".concat(P.jump_to).concat(L,"/").concat(ne):null,className:"".concat(_,"-simple-pager")},se)),e.a.createElement("ul",Object(de.a)({className:p()(_,"".concat(_,"-simple"),Object(K.a)({},"".concat(_,"-disabled"),R),m),style:h,ref:this.savePaginationNode},ke),e.a.createElement("li",{title:$?P.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:p()("".concat(_,"-prev"),Object(K.a)({},"".concat(_,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Ne)),e.a.createElement("li",{title:$?"".concat(L,"/").concat(ne):null,className:"".concat(_,"-simple-pager")},e.a.createElement("input",{type:"text",value:J,disabled:R,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),e.a.createElement("span",{className:"".concat(_,"-slash")},"/"),ne),e.a.createElement("li",{title:$?P.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:p()("".concat(_,"-next"),Object(K.a)({},"".concat(_,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Me)),se);if(ne<=3+ge*2){var He={locale:P,rootPrefixCls:_,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:$,itemRender:ve};ne||k.push(e.a.createElement(c,Object(de.a)({},He,{key:"noPager",page:ne,className:"".concat(_,"-disabled")})));for(var Je=1;Je<=ne;Je+=1){var rt=L===Je;k.push(e.a.createElement(c,Object(de.a)({},He,{key:Je,page:Je,active:rt})))}}else{var xe=D?P.prev_3:P.prev_5,Ue=D?P.next_3:P.next_5;Le&&(Z=e.a.createElement("li",{title:$?xe:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:p()("".concat(_,"-jump-prev"),Object(K.a)({},"".concat(_,"-jump-prev-custom-icon"),!!Se))},ve(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Se,"prev page"))),H=e.a.createElement("li",{title:$?Ue:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:p()("".concat(_,"-jump-next"),Object(K.a)({},"".concat(_,"-jump-next-custom-icon"),!!Re))},ve(this.getJumpNextPage(),"jump-next",this.getItemIcon(Re,"next page")))),z=e.a.createElement(c,{locale:P,last:!0,rootPrefixCls:_,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ne,page:ne,active:!1,showTitle:$,itemRender:ve}),W=e.a.createElement(c,{locale:P,rootPrefixCls:_,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:$,itemRender:ve});var Qe=Math.max(1,L-ge),ze=Math.min(L+ge,ne);L-1<=ge&&(ze=1+ge*2),ne-L<=ge&&(Qe=ne-ge*2);for(var Ae=Qe;Ae<=ze;Ae+=1){var q=L===Ae;k.push(e.a.createElement(c,{locale:P,rootPrefixCls:_,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ae,page:Ae,active:q,showTitle:$,itemRender:ve}))}L-1>=ge*2&&L!==1+2&&(k[0]=Object(M.cloneElement)(k[0],{className:"".concat(_,"-item-after-jump-prev")}),k.unshift(Z)),ne-L>=ge*2&&L!==ne-2&&(k[k.length-1]=Object(M.cloneElement)(k[k.length-1],{className:"".concat(_,"-item-before-jump-next")}),k.push(H)),Qe!==1&&k.unshift(W),ze!==ne&&k.push(z)}var ee=null;oe&&(ee=e.a.createElement("li",{className:"".concat(_,"-total-text")},oe(C,[C===0?0:(L-1)*N+1,L*N>C?C:L*N])));var ie=!this.hasPrev()||!ne,le=!this.hasNext()||!ne;return e.a.createElement("ul",Object(de.a)({className:p()(_,m,Object(K.a)({},"".concat(_,"-disabled"),R)),style:h,unselectable:"unselectable",ref:this.savePaginationNode},ke),ee,e.a.createElement("li",{title:$?P.prev_page:null,onClick:this.prev,tabIndex:ie?null:0,onKeyPress:this.runIfEnterPrev,className:p()("".concat(_,"-prev"),Object(K.a)({},"".concat(_,"-disabled"),ie)),"aria-disabled":ie},this.renderPrev(Ne)),k,e.a.createElement("li",{title:$?P.next_page:null,onClick:this.next,tabIndex:le?null:0,onKeyPress:this.runIfEnterNext,className:p()("".concat(_,"-next"),Object(K.a)({},"".concat(_,"-disabled"),le)),"aria-disabled":le},this.renderNext(Me)),e.a.createElement(A,{disabled:R,locale:P,rootPrefixCls:_,selectComponentClass:De,selectPrefixCls:Fe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:L,pageSize:N,pageSizeOptions:Ce,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:pe}))}}],[{key:"getDerivedStateFromProps",value:function(l,u){var _={};if("current"in l&&(_.current=l.current,l.current!==u.current&&(_.currentInputValue=_.current)),"pageSize"in l&&l.pageSize!==u.pageSize){var m=u.current,h=b(l.pageSize,u,l);m=m>h?h:m,"current"in l||(_.current=m,_.currentInputValue=m),_.pageSize=l.pageSize}return _}}]),d}(e.a.Component);y.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:a,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:a,locale:o.a,style:{},itemRender:t,totalBoundaryShowSizeChanger:50};var E=y},"6RRn":function(ot,we,Q){"use strict";var de=Q("wCXF"),K=Q("n6Qo");Q.d(we,"b",function(){return K.a});var O=Q("IBYe"),G=Q("6eGT"),U=Q("hW8S");Q.d(we,"a",function(){return U.a}),we.c=de.b},"6UM0":function(ot,we,Q){var de,K;(function(){var O;(function(){"use strict";var U=[function(e,I,p){var g=p(1).Beautifier,c=p(5).Options;function s(i,A){var o=new g(i,A);return o.beautify()}e.exports=s,e.exports.defaultOptions=function(){return new c}},function(e,I,p){var g=p(2).Output,c=p(3).Token,s=p(4),i=p(5).Options,A=p(7).Tokenizer,o=p(7).line_starters,a=p(7).positionable_operators,r=p(7).TOKEN;function t(D,$){return $.indexOf(D)!==-1}function b(D){return D.replace(/^\s+/g,"")}function y(D){for(var $={},oe=0;oe<D.length;oe++)$[D[oe].replace(/-/g,"_")]=D[oe];return $}function E(D,$){return D&&D.type===r.RESERVED&&D.text===$}function T(D,$){return D&&D.type===r.RESERVED&&t(D.text,$)}var v=["case","return","do","if","throw","else","await","break","continue","async"],d=["before-newline","after-newline","preserve-newline"],n=y(d),l=[n.before_newline,n.preserve_newline],u={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function _(D,$){if($.multiline_frame||$.mode===u.ForInitializer||$.mode===u.Conditional)return;D.remove_indent($.start_line_index)}function m(D){D=D.replace(s.allLineBreaks,`
|
|
`);for(var $=[],oe=D.indexOf(`
|
|
`);oe!==-1;)$.push(D.substring(0,oe)),D=D.substring(oe+1),oe=D.indexOf(`
|
|
`);return D.length&&$.push(D),$}function h(D){return D===u.ArrayLiteral}function R(D){return t(D,[u.Expression,u.ForInitializer,u.Conditional])}function F(D,$){for(var oe=0;oe<D.length;oe++){var Ee=D[oe].trim();if(Ee.charAt(0)!==$)return!1}return!0}function C(D,$){for(var oe=0,Ee=D.length,ve;oe<Ee;oe++)if(ve=D[oe],ve&&ve.indexOf($)!==0)return!1;return!0}function P(D,$){$=$||{},this._source_text=D||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new i($)}P.prototype.create_flags=function(D,$){var oe=0;D&&(oe=D.indentation_level,!this._output.just_added_newline()&&D.line_indent_level>oe&&(oe=D.line_indent_level));var Ee={mode:$,parent:D,last_token:D?D.last_token:new c(r.START_BLOCK,""),last_word:D?D.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:oe,alignment:0,line_indent_level:D?D.line_indent_level:oe,start_line_index:this._output.get_line_number(),ternary_depth:0};return Ee},P.prototype._reset=function(D){var $=D.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new g(this._options,$),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(u.BlockStatement);var oe=new A(D,this._options);return this._tokens=oe.tokenize(),D},P.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var D,$=this._reset(this._source_text),oe=this._options.eol;this._options.eol==="auto"&&(oe=`
|
|
`,$&&s.lineBreak.test($||"")&&(oe=$.match(s.lineBreak)[0]));for(var Ee=this._tokens.next();Ee;)this.handle_token(Ee),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Ee,Ee=this._tokens.next();return D=this._output.get_code(oe),D},P.prototype.handle_token=function(D,$){D.type===r.START_EXPR?this.handle_start_expr(D):D.type===r.END_EXPR?this.handle_end_expr(D):D.type===r.START_BLOCK?this.handle_start_block(D):D.type===r.END_BLOCK?this.handle_end_block(D):D.type===r.WORD?this.handle_word(D):D.type===r.RESERVED?this.handle_word(D):D.type===r.SEMICOLON?this.handle_semicolon(D):D.type===r.STRING?this.handle_string(D):D.type===r.EQUALS?this.handle_equals(D):D.type===r.OPERATOR?this.handle_operator(D):D.type===r.COMMA?this.handle_comma(D):D.type===r.BLOCK_COMMENT?this.handle_block_comment(D,$):D.type===r.COMMENT?this.handle_comment(D,$):D.type===r.DOT?this.handle_dot(D):D.type===r.EOF?this.handle_eof(D):D.type===r.UNKNOWN?this.handle_unknown(D,$):this.handle_unknown(D,$)},P.prototype.handle_whitespace_and_comments=function(D,$){var oe=D.newlines,Ee=this._options.keep_array_indentation&&h(this._flags.mode);if(D.comments_before)for(var ve=D.comments_before.next();ve;)this.handle_whitespace_and_comments(ve,$),this.handle_token(ve,$),ve=D.comments_before.next();if(Ee)for(var Le=0;Le<oe;Le+=1)this.print_newline(Le>0,$);else if(this._options.max_preserve_newlines&&oe>this._options.max_preserve_newlines&&(oe=this._options.max_preserve_newlines),this._options.preserve_newlines&&oe>1){this.print_newline(!1,$);for(var Se=1;Se<oe;Se+=1)this.print_newline(!0,$)}};var j=["async","break","continue","return","throw","yield"];P.prototype.allow_wrap_or_preserved_newline=function(D,$){if($=$===void 0?!1:$,this._output.just_added_newline())return;var oe=this._options.preserve_newlines&&D.newlines||$,Ee=t(this._flags.last_token.text,a)||t(D.text,a);if(Ee){var ve=t(this._flags.last_token.text,a)&&t(this._options.operator_position,l)||t(D.text,a);oe=oe&&ve}if(oe)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(T(this._flags.last_token,j))return;this._output.set_wrap_point()}},P.prototype.print_newline=function(D,$){if(!$&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==r.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var oe=this._tokens.peek();this._flags.mode===u.Statement&&!(this._flags.if_block&&E(oe,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(D)&&(this._flags.multiline_frame=!0)},P.prototype.print_token_line_indentation=function(D){this._output.just_added_newline()&&(this._options.keep_array_indentation&&D.newlines&&(D.text==="["||h(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(D.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},P.prototype.print_token=function(D){if(this._output.raw){this._output.add_raw_token(D);return}if(this._options.comma_first&&D.previous&&D.previous.type===r.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var $=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push($),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(D),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(D),this._output.non_breaking_space=!0,this._output.add_token(D.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},P.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},P.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},P.prototype.set_mode=function(D){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,D),this._flags=this.create_flags(this._previous_flags,D),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},P.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===u.Statement&&_(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},P.prototype.start_of_object_property=function(){return this._flags.parent.mode===u.ObjectLiteral&&this._flags.mode===u.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||T(this._flags.last_token,["get","set"]))},P.prototype.start_of_statement=function(D){var $=!1;return $=$||T(this._flags.last_token,["var","let","const"])&&D.type===r.WORD,$=$||E(this._flags.last_token,"do"),$=$||!(this._flags.parent.mode===u.ObjectLiteral&&this._flags.mode===u.Statement)&&T(this._flags.last_token,j)&&!D.newlines,$=$||E(this._flags.last_token,"else")&&!(E(D,"if")&&!D.comments_before),$=$||this._flags.last_token.type===r.END_EXPR&&(this._previous_flags.mode===u.ForInitializer||this._previous_flags.mode===u.Conditional),$=$||this._flags.last_token.type===r.WORD&&this._flags.mode===u.BlockStatement&&!this._flags.in_case&&!(D.text==="--"||D.text==="++")&&this._last_last_text!=="function"&&D.type!==r.WORD&&D.type!==r.RESERVED,$=$||this._flags.mode===u.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||T(this._flags.last_token,["get","set"])),$?(this.set_mode(u.Statement),this.indent(),this.handle_whitespace_and_comments(D,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D,T(D,["do","for","if","while"])),!0):!1},P.prototype.handle_start_expr=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D);var $=u.Expression;if(D.text==="["){if(this._flags.last_token.type===r.WORD||this._flags.last_token.text===")"){T(this._flags.last_token,o)&&(this._output.space_before_token=!0),this.print_token(D),this.set_mode($),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}$=u.ArrayLiteral,h(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),t(this._flags.last_token.type,[r.START_EXPR,r.END_EXPR,r.WORD,r.OPERATOR,r.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===r.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,$=u.ForInitializer):t(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,$=u.Conditional):t(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&D.whitespace_before===""?this._output.space_before_token=!1:(t(this._flags.last_token.text,o)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===r.EQUALS||this._flags.last_token.type===r.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D);else if(this._flags.last_token.type===r.WORD){this._output.space_before_token=!1;var oe=this._tokens.peek(-3);if(this._options.space_after_named_function&&oe){var Ee=this._tokens.peek(-4);T(oe,["async","function"])||oe.text==="*"&&T(Ee,["async","function"])?this._output.space_before_token=!0:this._flags.mode===u.ObjectLiteral?(oe.text==="{"||oe.text===","||oe.text==="*"&&(Ee.text==="{"||Ee.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(D);(this._flags.last_token.type===r.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(t(this._last_last_text,["function","yield"])||this._flags.mode===u.ObjectLiteral&&t(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===r.START_BLOCK?this.print_newline():(this._flags.last_token.type===r.END_EXPR||this._flags.last_token.type===r.START_EXPR||this._flags.last_token.type===r.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===r.COMMA)&&this.allow_wrap_or_preserved_newline(D,D.newlines),this.print_token(D),this.set_mode($),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},P.prototype.handle_end_expr=function(D){for(;this._flags.mode===u.Statement;)this.restore_mode();this.handle_whitespace_and_comments(D),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(D,D.text==="]"&&h(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===r.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(D),this.restore_mode(),_(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===u.Conditional&&(this._previous_flags.mode=u.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},P.prototype.handle_start_block=function(D){this.handle_whitespace_and_comments(D);var $=this._tokens.peek(),oe=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===r.END_EXPR?(this.set_mode(u.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(u.BlockStatement):oe&&(t(oe.text,[":",","])&&t($.type,[r.STRING,r.WORD,r.RESERVED])||t($.text,["get","set","..."])&&t(oe.type,[r.WORD,r.RESERVED]))?t(this._last_last_text,["class","interface"])&&!t(oe.text,[":",","])?this.set_mode(u.BlockStatement):this.set_mode(u.ObjectLiteral):this._flags.last_token.type===r.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(u.BlockStatement):t(this._flags.last_token.type,[r.EQUALS,r.START_EXPR,r.COMMA,r.OPERATOR])||T(this._flags.last_token,["return","throw","import","default"])?this.set_mode(u.ObjectLiteral):this.set_mode(u.BlockStatement),this._flags.last_token&&(T(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var Ee=!$.comments_before&&$.text==="}",ve=Ee&&this._flags.last_word==="function"&&this._flags.last_token.type===r.END_EXPR;if(this._options.brace_preserve_inline){var Le=0,Se=null;this._flags.inline_frame=!0;do if(Le+=1,Se=this._tokens.peek(Le-1),Se.newlines){this._flags.inline_frame=!1;break}while(Se.type!==r.EOF&&!(Se.type===r.END_BLOCK&&Se.opened===D))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&D.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==r.OPERATOR&&(ve||this._flags.last_token.type===r.EQUALS||T(this._flags.last_token,v)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(h(this._previous_flags.mode)&&(this._flags.last_token.type===r.START_EXPR||this._flags.last_token.type===r.COMMA)&&((this._flags.last_token.type===r.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(D),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==r.OPERATOR&&this._flags.last_token.type!==r.START_EXPR&&(this._flags.last_token.type===r.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(D),this.indent(),!Ee&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},P.prototype.handle_end_block=function(D){for(this.handle_whitespace_and_comments(D);this._flags.mode===u.Statement;)this.restore_mode();var $=this._flags.last_token.type===r.START_BLOCK;this._flags.inline_frame&&!$?this._output.space_before_token=!0:this._options.brace_style==="expand"?$||this.print_newline():$||(h(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(D)},P.prototype.handle_word=function(D){if(D.type===r.RESERVED){if(t(D.text,["set","get"])&&this._flags.mode!==u.ObjectLiteral)D.type=r.WORD;else if(D.text==="import"&&t(this._tokens.peek().text,["(","."]))D.type=r.WORD;else if(t(D.text,["as","from"])&&!this._flags.import_block)D.type=r.WORD;else if(this._flags.mode===u.ObjectLiteral){var $=this._tokens.peek();$.text===":"&&(D.type=r.WORD)}}if(this.start_of_statement(D)?T(this._flags.last_token,["var","let","const"])&&D.type===r.WORD&&(this._flags.declaration_statement=!0):D.newlines&&!R(this._flags.mode)&&(this._flags.last_token.type!==r.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==r.EQUALS&&(this._options.preserve_newlines||!T(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(D),this.print_newline()):this.handle_whitespace_and_comments(D),this._flags.do_block&&!this._flags.do_while)if(E(D,"while")){this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&E(D,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===u.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&T(D,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(D),this._flags.in_case=!0;return}if((this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR||this._flags.last_token.type===r.EQUALS||this._flags.last_token.type===r.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D)),E(D,"function")){(t(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(t(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===r.OPERATOR))&&(!this._output.just_added_blankline()&&!D.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD?T(this._flags.last_token,["get","set","new","export"])||T(this._flags.last_token,j)?this._output.space_before_token=!0:E(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===r.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(R(this._flags.mode)||h(this._flags.mode))||this.print_newline(),this.print_token(D),this._flags.last_word=D.text;return}var oe="NONE";if(this._flags.last_token.type===r.END_BLOCK?this._previous_flags.inline_frame?oe="SPACE":T(D,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&D.newlines?oe="NEWLINE":(oe="SPACE",this._output.space_before_token=!0):oe="NEWLINE":this._flags.last_token.type===r.SEMICOLON&&this._flags.mode===u.BlockStatement?oe="NEWLINE":this._flags.last_token.type===r.SEMICOLON&&R(this._flags.mode)?oe="SPACE":this._flags.last_token.type===r.STRING?oe="NEWLINE":this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD||this._flags.last_token.text==="*"&&(t(this._last_last_text,["function","yield"])||this._flags.mode===u.ObjectLiteral&&t(this._last_last_text,["{",","]))?oe="SPACE":this._flags.last_token.type===r.START_BLOCK?this._flags.inline_frame?oe="SPACE":oe="NEWLINE":this._flags.last_token.type===r.END_EXPR&&(this._output.space_before_token=!0,oe="NEWLINE"),T(D,o)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?oe="SPACE":oe="NEWLINE"),T(D,["else","catch","finally"]))if((!(this._flags.last_token.type===r.END_BLOCK&&this._previous_flags.mode===u.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&D.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Ee=this._output.current_line;Ee.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else oe==="NEWLINE"?T(this._flags.last_token,v)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&T(D,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==r.END_EXPR?(this._flags.last_token.type!==r.START_EXPR||!T(D,["var","let","const"]))&&this._flags.last_token.text!==":"&&(E(D,"if")&&E(D.previous,"else")?this._output.space_before_token=!0:this.print_newline()):T(D,o)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&h(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():oe==="SPACE"&&(this._output.space_before_token=!0);D.previous&&(D.previous.type===r.WORD||D.previous.type===r.RESERVED)&&(this._output.space_before_token=!0),this.print_token(D),this._flags.last_word=D.text,D.type===r.RESERVED&&(D.text==="do"?this._flags.do_block=!0:D.text==="if"?this._flags.if_block=!0:D.text==="import"?this._flags.import_block=!0:this._flags.import_block&&E(D,"from")&&(this._flags.import_block=!1))},P.prototype.handle_semicolon=function(D){this.start_of_statement(D)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(D);for(var $=this._tokens.peek();this._flags.mode===u.Statement&&!(this._flags.if_block&&E($,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(D)},P.prototype.handle_string=function(D){D.text.startsWith("`")&&D.newlines===0&&D.whitespace_before===""&&(D.previous.text===")"||this._flags.last_token.type===r.WORD)||(this.start_of_statement(D)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(D),this._flags.last_token.type===r.RESERVED||this._flags.last_token.type===r.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR||this._flags.last_token.type===r.EQUALS||this._flags.last_token.type===r.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D):D.text.startsWith("`")&&this._flags.last_token.type===r.END_EXPR&&(D.previous.text==="]"||D.previous.text===")")&&D.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(D)},P.prototype.handle_equals=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0},P.prototype.handle_comma=function(D){this.handle_whitespace_and_comments(D,!0),this.print_token(D),this._output.space_before_token=!0,this._flags.declaration_statement?(R(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(D)):this._flags.mode===u.ObjectLiteral||this._flags.mode===u.Statement&&this._flags.parent.mode===u.ObjectLiteral?(this._flags.mode===u.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(D)},P.prototype.handle_operator=function(D){var $=D.text==="*"&&(T(this._flags.last_token,["function","yield"])||t(this._flags.last_token.type,[r.START_BLOCK,r.COMMA,r.END_BLOCK,r.SEMICOLON])),oe=t(D.text,["-","+"])&&(t(this._flags.last_token.type,[r.START_BLOCK,r.START_EXPR,r.EQUALS,r.OPERATOR])||t(this._flags.last_token.text,o)||this._flags.last_token.text===",");if(!this.start_of_statement(D)){var Ee=!$;this.handle_whitespace_and_comments(D,Ee)}if(D.text==="*"&&this._flags.last_token.type===r.DOT){this.print_token(D);return}if(D.text==="::"){this.print_token(D);return}if(this._flags.last_token.type===r.OPERATOR&&t(this._options.operator_position,l)&&this.allow_wrap_or_preserved_newline(D),D.text===":"&&this._flags.in_case){this.print_token(D),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==r.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var ve=!0,Le=!0,Se=!1;if(D.text===":"?this._flags.ternary_depth===0?ve=!1:(this._flags.ternary_depth-=1,Se=!0):D.text==="?"&&(this._flags.ternary_depth+=1),!oe&&!$&&this._options.preserve_newlines&&t(D.text,a)){var Re=D.text===":",De=Re&&Se,Fe=Re&&!Se;switch(this._options.operator_position){case n.before_newline:this._output.space_before_token=!Fe,this.print_token(D),(!Re||De)&&this.allow_wrap_or_preserved_newline(D),this._output.space_before_token=!0;return;case n.after_newline:this._output.space_before_token=!0,!Re||De?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(D):this._output.space_before_token=!1,this.print_token(D),this._output.space_before_token=!0;return;case n.preserve_newline:Fe||this.allow_wrap_or_preserved_newline(D),ve=!(this._output.just_added_newline()||Fe),this._output.space_before_token=ve,this.print_token(D),this._output.space_before_token=!0;return}}if($){this.allow_wrap_or_preserved_newline(D),ve=!1;var Ce=this._tokens.peek();Le=Ce&&t(Ce.type,[r.WORD,r.RESERVED])}else if(D.text==="...")this.allow_wrap_or_preserved_newline(D),ve=this._flags.last_token.type===r.START_BLOCK,Le=!1;else if(t(D.text,["--","++","!","~"])||oe){if((this._flags.last_token.type===r.COMMA||this._flags.last_token.type===r.START_EXPR)&&this.allow_wrap_or_preserved_newline(D),ve=!1,Le=!1,D.newlines&&(D.text==="--"||D.text==="++"||D.text==="~")){var X=T(this._flags.last_token,v)&&D.newlines;X&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(X,!0)}this._flags.last_token.text===";"&&R(this._flags.mode)&&(ve=!0),this._flags.last_token.type===r.RESERVED?ve=!0:this._flags.last_token.type===r.END_EXPR?ve=!(this._flags.last_token.text==="]"&&(D.text==="--"||D.text==="++")):this._flags.last_token.type===r.OPERATOR&&(ve=t(D.text,["--","-","++","+"])&&t(this._flags.last_token.text,["--","-","++","+"]),t(D.text,["+","-"])&&t(this._flags.last_token.text,["--","++"])&&(Le=!0)),(this._flags.mode===u.BlockStatement&&!this._flags.inline_frame||this._flags.mode===u.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||ve,this.print_token(D),this._output.space_before_token=Le},P.prototype.handle_block_comment=function(D,$){if(this._output.raw){this._output.add_raw_token(D),D.directives&&D.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(D.directives){this.print_newline(!1,$),this.print_token(D),D.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!s.newline.test(D.text)&&!D.newlines){this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0;return}else this.print_block_commment(D,$)},P.prototype.print_block_commment=function(D,$){var oe=m(D.text),Ee,ve=!1,Le=!1,Se=D.whitespace_before,Re=Se.length;if(this.print_newline(!1,$),this.print_token_line_indentation(D),this._output.add_token(oe[0]),this.print_newline(!1,$),oe.length>1){for(oe=oe.slice(1),ve=F(oe,"*"),Le=C(oe,Se),ve&&(this._flags.alignment=1),Ee=0;Ee<oe.length;Ee++)ve?(this.print_token_line_indentation(D),this._output.add_token(b(oe[Ee]))):Le&&oe[Ee]?(this.print_token_line_indentation(D),this._output.add_token(oe[Ee].substring(Re))):(this._output.current_line.set_indent(-1),this._output.add_token(oe[Ee])),this.print_newline(!1,$);this._flags.alignment=0}},P.prototype.handle_comment=function(D,$){D.newlines?this.print_newline(!1,$):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(D),this.print_newline(!1,$)},P.prototype.handle_dot=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),T(this._flags.last_token,v)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(D,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(D)},P.prototype.handle_unknown=function(D,$){this.print_token(D),D.text[D.text.length-1]===`
|
|
`&&this.print_newline(!1,$)},P.prototype.handle_eof=function(D){for(;this._flags.mode===u.Statement;)this.restore_mode();this.handle_whitespace_and_comments(D)},e.exports.Beautifier=P},function(e){function I(c){this.__parent=c,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}I.prototype.clone_empty=function(){var c=new I(this.__parent);return c.set_indent(this.__indent_count,this.__alignment_count),c},I.prototype.item=function(c){return c<0?this.__items[this.__items.length+c]:this.__items[c]},I.prototype.has_match=function(c){for(var s=this.__items.length-1;s>=0;s--)if(this.__items[s].match(c))return!0;return!1},I.prototype.set_indent=function(c,s){this.is_empty()&&(this.__indent_count=c||0,this.__alignment_count=s||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},I.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},I.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},I.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var c=this.__parent.current_line;return c.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),c.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),c.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,c.__items[0]===" "&&(c.__items.splice(0,1),c.__character_count-=1),!0}return!1},I.prototype.is_empty=function(){return this.__items.length===0},I.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},I.prototype.push=function(c){this.__items.push(c);var s=c.lastIndexOf(`
|
|
`);s!==-1?this.__character_count=c.length-s:this.__character_count+=c.length},I.prototype.pop=function(){var c=null;return this.is_empty()||(c=this.__items.pop(),this.__character_count-=c.length),c},I.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},I.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},I.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},I.prototype.toString=function(){var c="";return this.is_empty()?this.__parent.indent_empty_lines&&(c=this.__parent.get_indent_string(this.__indent_count)):(c=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),c+=this.__items.join("")),c};function p(c,s){this.__cache=[""],this.__indent_size=c.indent_size,this.__indent_string=c.indent_char,c.indent_with_tabs||(this.__indent_string=new Array(c.indent_size+1).join(c.indent_char)),s=s||"",c.indent_level>0&&(s=new Array(c.indent_level+1).join(this.__indent_string)),this.__base_string=s,this.__base_string_length=s.length}p.prototype.get_indent_size=function(c,s){var i=this.__base_string_length;return s=s||0,c<0&&(i=0),i+=c*this.__indent_size,i+=s,i},p.prototype.get_indent_string=function(c,s){var i=this.__base_string;return s=s||0,c<0&&(c=0,i=""),s+=c*this.__indent_size,this.__ensure_cache(s),i+=this.__cache[s],i},p.prototype.__ensure_cache=function(c){for(;c>=this.__cache.length;)this.__add_column()},p.prototype.__add_column=function(){var c=this.__cache.length,s=0,i="";this.__indent_size&&c>=this.__indent_size&&(s=Math.floor(c/this.__indent_size),c-=s*this.__indent_size,i=new Array(s+1).join(this.__indent_string)),c&&(i+=new Array(c+1).join(" ")),this.__cache.push(i)};function g(c,s){this.__indent_cache=new p(c,s),this.raw=!1,this._end_with_newline=c.end_with_newline,this.indent_size=c.indent_size,this.wrap_line_length=c.wrap_line_length,this.indent_empty_lines=c.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new I(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}g.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},g.prototype.get_line_number=function(){return this.__lines.length},g.prototype.get_indent_string=function(c,s){return this.__indent_cache.get_indent_string(c,s)},g.prototype.get_indent_size=function(c,s){return this.__indent_cache.get_indent_size(c,s)},g.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},g.prototype.add_new_line=function(c){return this.is_empty()||!c&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},g.prototype.get_code=function(c){this.trim(!0);var s=this.current_line.pop();s&&(s[s.length-1]===`
|
|
`&&(s=s.replace(/\n+$/g,"")),this.current_line.push(s)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(`
|
|
`);return c!==`
|
|
`&&(i=i.replace(/[\n]/g,c)),i},g.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},g.prototype.set_indent=function(c,s){return c=c||0,s=s||0,this.next_line.set_indent(c,s),this.__lines.length>1?(this.current_line.set_indent(c,s),!0):(this.current_line.set_indent(),!1)},g.prototype.add_raw_token=function(c){for(var s=0;s<c.newlines;s++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(c.whitespace_before),this.current_line.push(c.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},g.prototype.add_token=function(c){this.__add_space_before_token(),this.current_line.push(c),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},g.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},g.prototype.remove_indent=function(c){for(var s=this.__lines.length;c<s;)this.__lines[c]._remove_indent(),c++;this.current_line._remove_wrap_indent()},g.prototype.trim=function(c){for(c=c===void 0?!1:c,this.current_line.trim();c&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},g.prototype.just_added_newline=function(){return this.current_line.is_empty()},g.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},g.prototype.ensure_empty_line_above=function(c,s){for(var i=this.__lines.length-2;i>=0;){var A=this.__lines[i];if(A.is_empty())break;if(A.item(0).indexOf(c)!==0&&A.item(-1)!==s){this.__lines.splice(i+1,0,new I(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=g},function(e){function I(p,g,c,s){this.type=p,this.text=g,this.comments_before=null,this.newlines=c||0,this.whitespace_before=s||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=I},function(e,I){var p="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",g="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",c="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",s="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",i="(?:\\\\u[0-9a-fA-F]{4}|["+p+c+"])",A="(?:\\\\u[0-9a-fA-F]{4}|["+g+c+s+"])*";I.identifier=new RegExp(i+A,"g"),I.identifierStart=new RegExp(i),I.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+g+c+s+"])+");var o=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;I.newline=/[\n\r\u2028\u2029]/,I.lineBreak=new RegExp(`\r
|
|
|`+I.newline.source),I.allLineBreaks=new RegExp(I.lineBreak.source,"g")},function(e,I,p){var g=p(6).Options,c=["before-newline","after-newline","preserve-newline"];function s(i){g.call(this,i,"js");var A=this.raw_options.brace_style||null;A==="expand-strict"?this.raw_options.brace_style="expand":A==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var a=0;a<o.length;a++)o[a]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=o[a];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",c),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}s.prototype=new g,e.exports.Options=s},function(e){function I(c,s){this.raw_options=p(c,s),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}I.prototype._get_array=function(c,s){var i=this.raw_options[c],A=s||[];return typeof i=="object"?i!==null&&typeof i.concat=="function"&&(A=i.concat()):typeof i=="string"&&(A=i.split(/[^a-zA-Z0-9_\/\-]+/)),A},I.prototype._get_boolean=function(c,s){var i=this.raw_options[c],A=i===void 0?!!s:!!i;return A},I.prototype._get_characters=function(c,s){var i=this.raw_options[c],A=s||"";return typeof i=="string"&&(A=i.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),A},I.prototype._get_number=function(c,s){var i=this.raw_options[c];s=parseInt(s,10),isNaN(s)&&(s=0);var A=parseInt(i,10);return isNaN(A)&&(A=s),A},I.prototype._get_selection=function(c,s,i){var A=this._get_selection_list(c,s,i);if(A.length!==1)throw new Error("Invalid Option Value: The option '"+c+`' can only be one of the following values:
|
|
`+s+`
|
|
You passed in: '`+this.raw_options[c]+"'");return A[0]},I.prototype._get_selection_list=function(c,s,i){if(!s||s.length===0)throw new Error("Selection list cannot be empty.");if(i=i||[s[0]],!this._is_valid_selection(i,s))throw new Error("Invalid Default Value!");var A=this._get_array(c,i);if(!this._is_valid_selection(A,s))throw new Error("Invalid Option Value: The option '"+c+`' can contain only the following values:
|
|
`+s+`
|
|
You passed in: '`+this.raw_options[c]+"'");return A},I.prototype._is_valid_selection=function(c,s){return c.length&&s.length&&!c.some(function(i){return s.indexOf(i)===-1})};function p(c,s){var i={};c=g(c);var A;for(A in c)A!==s&&(i[A]=c[A]);if(s&&c[s])for(A in c[s])i[A]=c[s][A];return i}function g(c){var s={},i;for(i in c){var A=i.replace(/-/g,"_");s[A]=c[i]}return s}e.exports.Options=I,e.exports.normalizeOpts=g,e.exports.mergeOpts=p},function(e,I,p){var g=p(8).InputScanner,c=p(9).Tokenizer,s=p(9).TOKEN,i=p(13).Directives,A=p(4),o=p(12).Pattern,a=p(14).TemplatablePattern;function r(F,C){return C.indexOf(F)!==-1}var t={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:s.START,RAW:s.RAW,EOF:s.EOF},b=new i(/\/\*/,/\*\//),y=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,E=/[0-9]/,T=/[^\d\.]/,v=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),d=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";d=d.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),d="\\?\\.(?!\\d) "+d,d=d.replace(/ /g,"|");var n=new RegExp(d),l="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),u=l.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),_=new RegExp("^(?:"+u.join("|")+")$"),m,h=function(F,C){c.call(this,F,C),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var P=new o(this._input),j=new a(this._input).read_options(this._options);this.__patterns={template:j,identifier:j.starting_with(A.identifier).matching(A.identifierMatch),number:P.matching(y),punct:P.matching(n),comment:P.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:P.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:P.matching(/<!--/),html_comment_end:P.matching(/-->/),include:P.starting_with(/#include/).until_after(A.lineBreak),shebang:P.starting_with(/#!/).until_after(A.lineBreak),xml:P.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:j.until(/['\\\n\r\u2028\u2029]/),double_quote:j.until(/["\\\n\r\u2028\u2029]/),template_text:j.until(/[`\\$]/),template_expression:j.until(/[`}\\]/)}};h.prototype=new c,h.prototype._is_comment=function(F){return F.type===t.COMMENT||F.type===t.BLOCK_COMMENT||F.type===t.UNKNOWN},h.prototype._is_opening=function(F){return F.type===t.START_BLOCK||F.type===t.START_EXPR},h.prototype._is_closing=function(F,C){return(F.type===t.END_BLOCK||F.type===t.END_EXPR)&&C&&(F.text==="]"&&C.text==="["||F.text===")"&&C.text==="("||F.text==="}"&&C.text==="{")},h.prototype._reset=function(){m=!1},h.prototype._get_next_token=function(F,C){var P=null;this._readWhitespace();var j=this._input.peek();return j===null?this._create_token(t.EOF,""):(P=P||this._read_non_javascript(j),P=P||this._read_string(j),P=P||this._read_word(F),P=P||this._read_singles(j),P=P||this._read_comment(j),P=P||this._read_regexp(j,F),P=P||this._read_xml(j,F),P=P||this._read_punctuation(),P=P||this._create_token(t.UNKNOWN,this._input.next()),P)},h.prototype._read_word=function(F){var C;if(C=this.__patterns.identifier.read(),C!=="")return C=C.replace(A.allLineBreaks,`
|
|
`),!(F.type===t.DOT||F.type===t.RESERVED&&(F.text==="set"||F.text==="get"))&&_.test(C)?(C==="in"||C==="of")&&(F.type===t.WORD||F.type===t.STRING)?this._create_token(t.OPERATOR,C):this._create_token(t.RESERVED,C):this._create_token(t.WORD,C);if(C=this.__patterns.number.read(),C!=="")return this._create_token(t.WORD,C)},h.prototype._read_singles=function(F){var C=null;return F==="("||F==="["?C=this._create_token(t.START_EXPR,F):F===")"||F==="]"?C=this._create_token(t.END_EXPR,F):F==="{"?C=this._create_token(t.START_BLOCK,F):F==="}"?C=this._create_token(t.END_BLOCK,F):F===";"?C=this._create_token(t.SEMICOLON,F):F==="."&&T.test(this._input.peek(1))?C=this._create_token(t.DOT,F):F===","&&(C=this._create_token(t.COMMA,F)),C&&this._input.next(),C},h.prototype._read_punctuation=function(){var F=this.__patterns.punct.read();if(F!=="")return F==="="?this._create_token(t.EQUALS,F):F==="?."?this._create_token(t.DOT,F):this._create_token(t.OPERATOR,F)},h.prototype._read_non_javascript=function(F){var C="";if(F==="#"){if(this._is_first_token()&&(C=this.__patterns.shebang.read(),C))return this._create_token(t.UNKNOWN,C.trim()+`
|
|
`);if(C=this.__patterns.include.read(),C)return this._create_token(t.UNKNOWN,C.trim()+`
|
|
`);F=this._input.next();var P="#";if(this._input.hasNext()&&this._input.testChar(E)){do F=this._input.next(),P+=F;while(this._input.hasNext()&&F!=="#"&&F!=="=");return F==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(P+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(P+="{}",this._input.next(),this._input.next())),this._create_token(t.WORD,P)}this._input.back()}else if(F==="<"&&this._is_first_token()){if(C=this.__patterns.html_comment_start.read(),C){for(;this._input.hasNext()&&!this._input.testChar(A.newline);)C+=this._input.next();return m=!0,this._create_token(t.COMMENT,C)}}else if(m&&F==="-"&&(C=this.__patterns.html_comment_end.read(),C))return m=!1,this._create_token(t.COMMENT,C);return null},h.prototype._read_comment=function(F){var C=null;if(F==="/"){var P="";if(this._input.peek(1)==="*"){P=this.__patterns.block_comment.read();var j=b.get_directives(P);j&&j.ignore==="start"&&(P+=b.readIgnored(this._input)),P=P.replace(A.allLineBreaks,`
|
|
`),C=this._create_token(t.BLOCK_COMMENT,P),C.directives=j}else this._input.peek(1)==="/"&&(P=this.__patterns.comment.read(),C=this._create_token(t.COMMENT,P))}return C},h.prototype._read_string=function(F){if(F==="`"||F==="'"||F==='"'){var C=this._input.next();return this.has_char_escapes=!1,F==="`"?C+=this._read_string_recursive("`",!0,"${"):C+=this._read_string_recursive(F),this.has_char_escapes&&this._options.unescape_strings&&(C=R(C)),this._input.peek()===F&&(C+=this._input.next()),C=C.replace(A.allLineBreaks,`
|
|
`),this._create_token(t.STRING,C)}return null},h.prototype._allow_regexp_or_xml=function(F){return F.type===t.RESERVED&&r(F.text,["return","case","throw","else","do","typeof","yield"])||F.type===t.END_EXPR&&F.text===")"&&F.opened.previous.type===t.RESERVED&&r(F.opened.previous.text,["if","while","for"])||r(F.type,[t.COMMENT,t.START_EXPR,t.START_BLOCK,t.START,t.END_BLOCK,t.OPERATOR,t.EQUALS,t.EOF,t.SEMICOLON,t.COMMA])},h.prototype._read_regexp=function(F,C){if(F==="/"&&this._allow_regexp_or_xml(C)){for(var P=this._input.next(),j=!1,D=!1;this._input.hasNext()&&(j||D||this._input.peek()!==F)&&!this._input.testChar(A.newline);)P+=this._input.peek(),j?j=!1:(j=this._input.peek()==="\\",this._input.peek()==="["?D=!0:this._input.peek()==="]"&&(D=!1)),this._input.next();return this._input.peek()===F&&(P+=this._input.next(),P+=this._input.read(A.identifier)),this._create_token(t.STRING,P)}return null},h.prototype._read_xml=function(F,C){if(this._options.e4x&&F==="<"&&this._allow_regexp_or_xml(C)){var P="",j=this.__patterns.xml.read_match();if(j){for(var D=j[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),$=D.indexOf("{")===0,oe=0;j;){var Ee=!!j[1],ve=j[2],Le=!!j[j.length-1]||ve.slice(0,8)==="![CDATA[";if(!Le&&(ve===D||$&&ve.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Ee?--oe:++oe),P+=j[0],oe<=0)break;j=this.__patterns.xml.read_match()}return j||(P+=this._input.match(/[\s\S]*/g)[0]),P=P.replace(A.allLineBreaks,`
|
|
`),this._create_token(t.STRING,P)}}return null};function R(F){for(var C="",P=0,j=new g(F),D=null;j.hasNext();)if(D=j.match(/([\s]|[^\\]|\\\\)+/g),D&&(C+=D[0]),j.peek()==="\\"){if(j.next(),j.peek()==="x")D=j.match(/x([0-9A-Fa-f]{2})/g);else if(j.peek()==="u")D=j.match(/u([0-9A-Fa-f]{4})/g);else{C+="\\",j.hasNext()&&(C+=j.next());continue}if(!D)return F;if(P=parseInt(D[1],16),P>126&&P<=255&&D[0].indexOf("x")===0)return F;if(P>=0&&P<32){C+="\\"+D[0];continue}else P===34||P===39||P===92?C+="\\"+String.fromCharCode(P):C+=String.fromCharCode(P)}return C}h.prototype._read_string_recursive=function(F,C,P){var j,D;F==="'"?D=this.__patterns.single_quote:F==='"'?D=this.__patterns.double_quote:F==="`"?D=this.__patterns.template_text:F==="}"&&(D=this.__patterns.template_expression);for(var $=D.read(),oe="";this._input.hasNext();){if(oe=this._input.next(),oe===F||!C&&A.newline.test(oe)){this._input.back();break}else oe==="\\"&&this._input.hasNext()?(j=this._input.peek(),j==="x"||j==="u"?this.has_char_escapes=!0:j==="\r"&&this._input.peek(1)===`
|
|
`&&this._input.next(),oe+=this._input.next()):P&&(P==="${"&&oe==="$"&&this._input.peek()==="{"&&(oe+=this._input.next()),P===oe&&(F==="`"?oe+=this._read_string_recursive("}",C,"`"):oe+=this._read_string_recursive("`",C,"${"),this._input.hasNext()&&(oe+=this._input.next())));oe+=D.read(),$+=oe}return $},e.exports.Tokenizer=h,e.exports.TOKEN=t,e.exports.positionable_operators=v.slice(),e.exports.line_starters=l.slice()},function(e){var I=RegExp.prototype.hasOwnProperty("sticky");function p(g){this.__input=g||"",this.__input_length=this.__input.length,this.__position=0}p.prototype.restart=function(){this.__position=0},p.prototype.back=function(){this.__position>0&&(this.__position-=1)},p.prototype.hasNext=function(){return this.__position<this.__input_length},p.prototype.next=function(){var g=null;return this.hasNext()&&(g=this.__input.charAt(this.__position),this.__position+=1),g},p.prototype.peek=function(g){var c=null;return g=g||0,g+=this.__position,g>=0&&g<this.__input_length&&(c=this.__input.charAt(g)),c},p.prototype.__match=function(g,c){g.lastIndex=c;var s=g.exec(this.__input);return s&&!(I&&g.sticky)&&(s.index!==c&&(s=null)),s},p.prototype.test=function(g,c){return c=c||0,c+=this.__position,c>=0&&c<this.__input_length?!!this.__match(g,c):!1},p.prototype.testChar=function(g,c){var s=this.peek(c);return g.lastIndex=0,s!==null&&g.test(s)},p.prototype.match=function(g){var c=this.__match(g,this.__position);return c?this.__position+=c[0].length:c=null,c},p.prototype.read=function(g,c,s){var i="",A;return g&&(A=this.match(g),A&&(i+=A[0])),c&&(A||!g)&&(i+=this.readUntil(c,s)),i},p.prototype.readUntil=function(g,c){var s="",i=this.__position;g.lastIndex=this.__position;var A=g.exec(this.__input);return A?(i=A.index,c&&(i+=A[0].length)):i=this.__input_length,s=this.__input.substring(this.__position,i),this.__position=i,s},p.prototype.readUntilAfter=function(g){return this.readUntil(g,!0)},p.prototype.get_regexp=function(g,c){var s=null,i="g";return c&&I&&(i="y"),typeof g=="string"&&g!==""?s=new RegExp(g,i):g&&(s=new RegExp(g.source,i)),s},p.prototype.get_literal_regexp=function(g){return RegExp(g.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},p.prototype.peekUntilAfter=function(g){var c=this.__position,s=this.readUntilAfter(g);return this.__position=c,s},p.prototype.lookBack=function(g){var c=this.__position-1;return c>=g.length&&this.__input.substring(c-g.length,c).toLowerCase()===g},e.exports.InputScanner=p},function(e,I,p){var g=p(8).InputScanner,c=p(3).Token,s=p(10).TokenStream,i=p(11).WhitespacePattern,A={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(a,r){this._input=new g(a),this._options=r||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};o.prototype.tokenize=function(){this._input.restart(),this.__tokens=new s,this._reset();for(var a,r=new c(A.START,""),t=null,b=[],y=new s;r.type!==A.EOF;){for(a=this._get_next_token(r,t);this._is_comment(a);)y.add(a),a=this._get_next_token(r,t);y.isEmpty()||(a.comments_before=y,y=new s),a.parent=t,this._is_opening(a)?(b.push(t),t=a):t&&this._is_closing(a,t)&&(a.opened=t,t.closed=a,t=b.pop(),a.parent=t),a.previous=r,r.next=a,this.__tokens.add(a),r=a}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(a,r){this._readWhitespace();var t=this._input.read(/.+/g);return t?this._create_token(A.RAW,t):this._create_token(A.EOF,"")},o.prototype._is_comment=function(a){return!1},o.prototype._is_opening=function(a){return!1},o.prototype._is_closing=function(a,r){return!1},o.prototype._create_token=function(a,r){var t=new c(a,r,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return t},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=o,e.exports.TOKEN=A},function(e){function I(p){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=p}I.prototype.restart=function(){this.__position=0},I.prototype.isEmpty=function(){return this.__tokens_length===0},I.prototype.hasNext=function(){return this.__position<this.__tokens_length},I.prototype.next=function(){var p=null;return this.hasNext()&&(p=this.__tokens[this.__position],this.__position+=1),p},I.prototype.peek=function(p){var g=null;return p=p||0,p+=this.__position,p>=0&&p<this.__tokens_length&&(g=this.__tokens[p]),g},I.prototype.add=function(p){this.__parent_token&&(p.parent=this.__parent_token),this.__tokens.push(p),this.__tokens_length+=1},e.exports.TokenStream=I},function(e,I,p){var g=p(12).Pattern;function c(s,i){g.call(this,s,i),i?this._line_regexp=this._input.get_regexp(i._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}c.prototype=new g,c.prototype.__set_whitespace_patterns=function(s,i){s+="\\t ",i+="\\n\\r",this._match_pattern=this._input.get_regexp("["+s+i+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+i+"]")},c.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var s=this._input.read(this._match_pattern);if(s===" ")this.whitespace_before_token=" ";else if(s){var i=this.__split(this._newline_regexp,s);this.newline_count=i.length-1,this.whitespace_before_token=i[this.newline_count]}return s},c.prototype.matching=function(s,i){var A=this._create();return A.__set_whitespace_patterns(s,i),A._update(),A},c.prototype._create=function(){return new c(this._input,this)},c.prototype.__split=function(s,i){s.lastIndex=0;for(var A=0,o=[],a=s.exec(i);a;)o.push(i.substring(A,a.index)),A=a.index+a[0].length,a=s.exec(i);return A<i.length?o.push(i.substring(A,i.length)):o.push(""),o},e.exports.WhitespacePattern=c},function(e){function I(p,g){this._input=p,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,g&&(this._starting_pattern=this._input.get_regexp(g._starting_pattern,!0),this._match_pattern=this._input.get_regexp(g._match_pattern,!0),this._until_pattern=this._input.get_regexp(g._until_pattern),this._until_after=g._until_after)}I.prototype.read=function(){var p=this._input.read(this._starting_pattern);return(!this._starting_pattern||p)&&(p+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),p},I.prototype.read_match=function(){return this._input.match(this._match_pattern)},I.prototype.until_after=function(p){var g=this._create();return g._until_after=!0,g._until_pattern=this._input.get_regexp(p),g._update(),g},I.prototype.until=function(p){var g=this._create();return g._until_after=!1,g._until_pattern=this._input.get_regexp(p),g._update(),g},I.prototype.starting_with=function(p){var g=this._create();return g._starting_pattern=this._input.get_regexp(p,!0),g._update(),g},I.prototype.matching=function(p){var g=this._create();return g._match_pattern=this._input.get_regexp(p,!0),g._update(),g},I.prototype._create=function(){return new I(this._input,this)},I.prototype._update=function(){},e.exports.Pattern=I},function(e){function I(p,g){p=typeof p=="string"?p:p.source,g=typeof g=="string"?g:g.source,this.__directives_block_pattern=new RegExp(p+/ beautify( \w+[:]\w+)+ /.source+g,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(p+/\sbeautify\signore:end\s/.source+g,"g")}I.prototype.get_directives=function(p){if(!p.match(this.__directives_block_pattern))return null;var g={};this.__directive_pattern.lastIndex=0;for(var c=this.__directive_pattern.exec(p);c;)g[c[1]]=c[2],c=this.__directive_pattern.exec(p);return g},I.prototype.readIgnored=function(p){return p.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=I},function(e,I,p){var g=p(12).Pattern,c={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function s(i,A){g.call(this,i,A),this.__template_pattern=null,this._disabled=Object.assign({},c),this._excluded=Object.assign({},c),A&&(this.__template_pattern=this._input.get_regexp(A.__template_pattern),this._excluded=Object.assign(this._excluded,A._excluded),this._disabled=Object.assign(this._disabled,A._disabled));var o=new g(i);this.__patterns={handlebars_comment:o.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:o.starting_with(/{{{/).until_after(/}}}/),handlebars:o.starting_with(/{{/).until_after(/}}/),php:o.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:o.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:o.starting_with(/{%/).until_after(/%}/),django_value:o.starting_with(/{{/).until_after(/}}/),django_comment:o.starting_with(/{#/).until_after(/#}/),smarty:o.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:o.starting_with(/{\*/).until_after(/\*}/),smarty_literal:o.starting_with(/{literal}/).until_after(/{\/literal}/)}}s.prototype=new g,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(i){var A=this._create();return A._disabled[i]=!0,A._update(),A},s.prototype.read_options=function(i){var A=this._create();for(var o in c)A._disabled[o]=i.templating.indexOf(o)===-1;return A._update(),A},s.prototype.exclude=function(i){var A=this._create();return A._excluded[i]=!0,A._update(),A},s.prototype.read=function(){var i="";this._match_pattern?i=this._input.read(this._starting_pattern):i=this._input.read(this._starting_pattern,this.__template_pattern);for(var A=this._read_template();A;)this._match_pattern?A+=this._input.read(this._match_pattern):A+=this._input.readUntil(this.__template_pattern),i+=A,A=this._read_template();return this._until_after&&(i+=this._input.readUntilAfter(this._until_pattern)),i},s.prototype.__set_templated_pattern=function(){var i=[];this._disabled.php||i.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||i.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||i.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(i.push(this.__patterns.django._starting_pattern.source),i.push(this.__patterns.django_value._starting_pattern.source),i.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||i.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&i.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+i.join("|")+")")},s.prototype._read_template=function(){var i="",A=this._input.peek();if(A==="<"){var o=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&o==="?"&&(i=i||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&o==="%"&&(i=i||this.__patterns.erb.read())}else A==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(i=i||this.__patterns.handlebars_comment.read(),i=i||this.__patterns.handlebars_unescaped.read(),i=i||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(i=i||this.__patterns.django_value.read()),this._excluded.django||(i=i||this.__patterns.django_comment.read(),i=i||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(i=i||this.__patterns.smarty_comment.read(),i=i||this.__patterns.smarty_literal.read(),i=i||this.__patterns.smarty.read()));return i},e.exports.TemplatablePattern=s}],S={};function Y(e){var I=S[e];if(I!==void 0)return I.exports;var p=S[e]={exports:{}};return U[e](p,p.exports,Y),p.exports}var M=Y(0);O=M})();var G=O;!(de=[],K=function(){return{js_beautify:G}}.apply(we,de),K!==void 0&&(ot.exports=K))})()},"6eGT":function(ot,we,Q){"use strict";function de(K){return null}we.a=de},"746U":function(ot,we,Q){"use strict";Q.d(we,"f",function(){return de}),Q.d(we,"l",function(){return K}),Q.d(we,"k",function(){return O}),Q.d(we,"j",function(){return G}),Q.d(we,"g",function(){return U}),Q.d(we,"m",function(){return S}),Q.d(we,"h",function(){return Y}),Q.d(we,"n",function(){return M}),Q.d(we,"c",function(){return e}),Q.d(we,"a",function(){return I}),Q.d(we,"i",function(){return p}),Q.d(we,"o",function(){return g}),Q.d(we,"e",function(){return i}),Q.d(we,"d",function(){return A}),Q.d(we,"p",function(){return o}),Q.d(we,"b",function(){return a});function de(r){return Array.isArray(r)}function K(r){return typeof r=="string"}function O(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}function G(r){return typeof r=="number"&&!isNaN(r)}function U(r){return r===!0||r===!1}function S(r){return typeof r=="undefined"}function Y(r){return!M(r)}function M(r){return S(r)||r===null}function e(r,t){if(!r)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function I(r){if(M(r))throw new Error("Assertion Failed: argument is undefined or null");return r}function p(r){return typeof r=="function"}function g(r,t){const b=Math.min(r.length,t.length);for(let y=0;y<b;y++)c(r[y],t[y])}function c(r,t){if(K(t)){if(typeof r!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(p(t)){try{if(r instanceof t)return}catch(b){}if(!M(r)&&r.constructor===t)return;if(t.length===1&&t.call(void 0,r)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function s(r){let t=[],b=Object.getPrototypeOf(r);for(;Object.prototype!==b;)t=t.concat(Object.getOwnPropertyNames(b)),b=Object.getPrototypeOf(b);return t}function i(r){const t=[];for(const b of s(r))typeof r[b]=="function"&&t.push(b);return t}function A(r,t){const b=E=>function(){const T=Array.prototype.slice.call(arguments,0);return t(E,T)};let y={};for(const E of r)y[E]=b(E);return y}function o(r){return r===null?void 0:r}function a(r,t="Unreachable"){throw new Error(t)}},"815F":function(ot,we,Q){"use strict";Q.d(we,"e",function(){return Y}),Q.d(we,"c",function(){return e}),Q.d(we,"d",function(){return I}),Q.d(we,"a",function(){return g}),Q.d(we,"f",function(){return c}),Q.d(we,"b",function(){return s});var de=Q("KQm4"),K=Q("VTBJ"),O=Q("Ff2n"),G=Q("Zm9Q"),U=Q("Kwbf"),S=Q("OZM5");function Y(i,A){return i!=null?i:A}function M(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],A=new Map;function o(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(a||[]).forEach(function(t){var b=t.key,y=t.children;Object(U.a)(b!=null,"Tree node must have a certain key: [".concat(r).concat(b,"]"));var E=String(b);Object(U.a)(!A.has(E)||b===null||b===void 0,"Same 'key' exist in the Tree: ".concat(E)),A.set(E,!0),o(y,"".concat(r).concat(E," > "))})}o(i)}function e(i){function A(o){var a=Object(G.a)(o);return a.map(function(r){if(!Object(S.i)(r))return Object(U.a)(!r,"Tree/TreeNode can only accept TreeNode as children."),null;var t=r.key,b=r.props,y=b.children,E=Object(O.a)(b,["children"]),T=Object(K.a)({key:t},E),v=A(y);return v.length&&(T.children=v),T}).filter(function(r){return r})}return A(i)}function I(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=new Set(A===!0?[]:A),a=[];function r(t){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return t.map(function(y,E){var T=Object(S.h)(b?b.pos:"0",E),v=Y(y.key,T),d=Object(K.a)(Object(K.a)({},y),{},{parent:b,pos:T,children:null,data:y,isStart:[].concat(Object(de.a)(b?b.isStart:[]),[E===0]),isEnd:[].concat(Object(de.a)(b?b.isEnd:[]),[E===t.length-1])});return a.push(d),A===!0||o.has(v)?d.children=r(y.children||[],d):d.children=[],d})}return r(i),a}function p(i,A,o){var a;o?typeof o=="string"?a=function(b){return b[o]}:typeof o=="function"&&(a=function(b){return o(b)}):a=function(b,y){return Y(b.key,y)};function r(t,b,y){var E=t?t.children:i,T=t?Object(S.h)(y.pos,b):"0";if(t){var v=a(t,T),d={node:t,index:b,pos:T,key:v,parentPos:y.node?y.pos:null,level:y.level+1};A(d)}E&&E.forEach(function(n,l){r(n,l,{node:t,pos:T,level:y?y.level+1:-1})})}r(null)}function g(i){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=A.initWrapper,a=A.processEntity,r=A.onProcessFinished,t=arguments.length>2?arguments[2]:void 0,b={},y={},E={posEntities:b,keyEntities:y};return o&&(E=o(E)||E),p(i,function(T){var v=T.node,d=T.index,n=T.pos,l=T.key,u=T.parentPos,_=T.level,m={node:v,index:d,key:l,pos:n,level:_},h=Y(l,n);b[n]=m,y[h]=m,m.parent=b[u],m.parent&&(m.parent.children=m.parent.children||[],m.parent.children.push(m)),a&&a(m,E)},t),r&&r(E),E}function c(i,A){var o=A.expandedKeys,a=A.selectedKeys,r=A.loadedKeys,t=A.loadingKeys,b=A.checkedKeys,y=A.halfCheckedKeys,E=A.dragOverNodeKey,T=A.dropPosition,v=A.keyEntities,d=v[i],n={eventKey:i,expanded:o.indexOf(i)!==-1,selected:a.indexOf(i)!==-1,loaded:r.indexOf(i)!==-1,loading:t.indexOf(i)!==-1,checked:b.indexOf(i)!==-1,halfChecked:y.indexOf(i)!==-1,pos:String(d?d.pos:""),dragOver:E===i&&T===0,dragOverGapTop:E===i&&T===-1,dragOverGapBottom:E===i&&T===1};return n}function s(i){var A=i.data,o=i.expanded,a=i.selected,r=i.checked,t=i.loaded,b=i.loading,y=i.halfChecked,E=i.dragOver,T=i.dragOverGapTop,v=i.dragOverGapBottom,d=i.pos,n=i.active,l=Object(K.a)(Object(K.a)({},A),{},{expanded:o,selected:a,checked:r,loaded:t,loading:b,halfChecked:y,dragOver:E,dragOverGapTop:T,dragOverGapBottom:v,pos:d,active:n});return"props"in l||Object.defineProperty(l,"props",{get:function(){return Object(U.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),i}}),l}},"8HAY":function(ot,we,Q){"use strict";Q.d(we,"a",function(){return U}),Q.d(we,"b",function(){return S}),Q.d(we,"d",function(){return Y}),Q.d(we,"e",function(){return M}),Q.d(we,"c",function(){return e});var de=Q("MI8n"),K=Q("pmY6"),O=Q("3/fG"),G=function(I,p,g,c){function s(i){return i instanceof g?i:new g(function(A){A(i)})}return new(g||(g=Promise))(function(i,A){function o(t){try{r(c.next(t))}catch(b){A(b)}}function a(t){try{r(c.throw(t))}catch(b){A(b)}}function r(t){t.done?i(t.value):s(t.value).then(o,a)}r((c=c.apply(I,p||[])).next())})};class U extends K.a{constructor(I,p="",g="",c=!0,s){super();this._onDidChange=this._register(new de.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=I,this._label=p,this._cssClass=g,this._enabled=c,this._actionCallback=s}get id(){return this._id}get label(){return this._label}set label(I){this._setLabel(I)}_setLabel(I){this._label!==I&&(this._label=I,this._onDidChange.fire({label:I}))}get tooltip(){return this._tooltip||""}set tooltip(I){this._setTooltip(I)}_setTooltip(I){this._tooltip!==I&&(this._tooltip=I,this._onDidChange.fire({tooltip:I}))}get class(){return this._cssClass}set class(I){this._setClass(I)}_setClass(I){this._cssClass!==I&&(this._cssClass=I,this._onDidChange.fire({class:I}))}get enabled(){return this._enabled}set enabled(I){this._setEnabled(I)}_setEnabled(I){this._enabled!==I&&(this._enabled=I,this._onDidChange.fire({enabled:I}))}get checked(){return this._checked}set checked(I){this._setChecked(I)}_setChecked(I){this._checked!==I&&(this._checked=I,this._onDidChange.fire({checked:I}))}run(I,p){return G(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(I))})}}class S extends K.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new de.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new de.b),this.onDidRun=this._onDidRun.event}run(I,p){return G(this,void 0,void 0,function*(){if(!I.enabled)return;this._onBeforeRun.fire({action:I});let g;try{yield this.runAction(I,p)}catch(c){g=c}this._onDidRun.fire({action:I,error:g})})}runAction(I,p){return G(this,void 0,void 0,function*(){yield I.run(p)})}}class Y extends U{constructor(I){super(Y.ID,I,I?"separator text":"separator");this.checked=!1,this.enabled=!1}}Y.ID="vs.actions.separator";class M{constructor(I,p,g,c){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=I,this.label=p,this.class=c,this._actions=g}get actions(){return this._actions}dispose(){}run(){return G(this,void 0,void 0,function*(){})}}class e extends U{constructor(){super(e.ID,O.a("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},"8hTe":function(ot,we,Q){ot.exports={button:"button___1wy9m"}},"9Bee":function(ot,we,Q){"use strict";var de=Q("DYRE"),K=Q("zeV3"),O=Q("+L6B"),G=Q("2/Rp"),U=Q("k1fw"),S=Q("9og8"),Y=Q("tJVT"),M=Q("WmNS"),e=Q.n(M),I=Q("q1tI"),p=Q.n(I),g=Q("vg9a"),c=Q("DlQD"),s=Q.n(c),i=Q("rUJ1");function A(Ae,q){var ee=Ae.match(/^(\s+)(?:```)/);if(ee===null)return q;var ie=ee[1];return q.split(`
|
|
`).map(function(le){var te=le.match(/^\s+/);if(te===null)return le;var ae=Object(Y.a)(te,1),he=ae[0];return he.length>=ie.length?le.slice(ie.length):le}).join(`
|
|
`)}var o=[],a=["<ul>"],r=new s.a.Renderer,t=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function b(){o.length=0,a=["<ul>"]}var y={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function E(Ae,q,ee,ie){if(q>=Ae.length||Ae[q].level<=ee)return q;var le=Ae[q];ie.push("<li><a href='#"+le.anchor+"'>"+le.text+"</a>"),q++;var te=[];return q=E(Ae,q,le.level,te),te.length>0&&(ie.push("<ul>"),te.forEach(function(ae){ie.push(ae)}),ie.push("</ul>")),ie.push("</li>"),q=E(Ae,q,ee,ie),q}function T(){return E(o,0,0,a),a.push("</ul>"),a.join("")}var v={heading:function(q){var ee=t.exec(q);if(ee)return{type:"heading",raw:ee[0],depth:ee[1].length,text:ee[2]}},fences:function(q){var ee=this.rules.block.fences.exec(q);if(ee){var ie=ee[0],le=A(ie,ee[3]||""),te=ee[2]?ee[2].trim():ee[2];if(["latex","katex","math"].indexOf(te)>=0){var ae=l(),he=le;le=ae,u[ae]={type:"block",expression:he}}return{type:"code",raw:ie,lang:te,text:le}}}},d=/(?:\${2})([^\n`]+?)(?:\${2})/gi,n=0,l=function(){return"__special_katext_id_".concat(n++,"__")},u={};function _(){return u}function m(){n=0,u={}}function h(Ae){return Ae=Ae.replace(d,function(q,ee){var ie=l();return u[ie]={type:"inline",expression:ee},ie}),Ae}var R=r.listitem;r.listitem=function(Ae){return R(h(Ae))};var F=r.paragraph;r.paragraph=function(Ae){return F(h(Ae))};var C=r.tablecell;r.tablecell=function(Ae,q){return C(h(Ae),q)},r.code=function(Ae,q,ee){var ie=(q||"").match(/\S*/)[0];return ie?["latex","katex","math"].indexOf(ie)>=0?"<p class='editormd-tex'>".concat(Ae,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(q,'">').concat(ee?Ae:Object(i.escape)(Ae,!0),`</code></pre>
|
|
`):'<pre class="prettyprint linenums"><code>'+(ee?Ae:Object(i.escape)(Ae,!0))+"</code></pre>"},r.heading=function(Ae,q,ee){var ie=this.options.headerPrefix+ee.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return o.push({anchor:ie,level:q,text:Ae}),"<h"+q+' id="'+ie+'">'+Ae+"</h"+q+">"},s.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),s.a.use({tokenizer:v,renderer:r});var P=s.a,j=Q("SJMd"),D=Q("ulZh"),$=Q.n(D),oe=Q("m3rI"),Ee=Q("Oy/b"),ve=Q("p5ED"),Le=Q("ErOA"),Se=Q("STEk");/* **********************************
|
|
cropro version 1.2.0
|
|
@license SEE LICENSE IN LICENSE
|
|
|
|
copyright Alan Mendelevich
|
|
see README and LICENSE for details
|
|
********************************** *//*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */var Re=function(Ae,q){return(Re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,ie){ee.__proto__=ie}||function(ee,ie){for(var le in ie)Object.prototype.hasOwnProperty.call(ie,le)&&(ee[le]=ie[le])})(Ae,q)};function De(Ae,q){if(typeof q!="function"&&q!==null)throw new TypeError("Class extends value "+String(q)+" is not a constructor or null");function ee(){this.constructor=Ae}Re(Ae,q),Ae.prototype=q===null?Object.create(q):(ee.prototype=q.prototype,new ee)}function Fe(Ae,q,ee,ie){return new(ee||(ee=Promise))(function(le,te){function ae(Te){try{me(ie.next(Te))}catch(Be){te(Be)}}function he(Te){try{me(ie.throw(Te))}catch(Be){te(Be)}}function me(Te){var Be;Te.done?le(Te.value):(Be=Te.value,Be instanceof ee?Be:new ee(function(je){je(Be)})).then(ae,he)}me((ie=ie.apply(Ae,q||[])).next())})}function Ce(Ae,q){var ee,ie,le,te,ae={label:0,sent:function(){if(1&le[0])throw le[1];return le[1]},trys:[],ops:[]};return te={next:he(0),throw:he(1),return:he(2)},typeof Symbol=="function"&&(te[Symbol.iterator]=function(){return this}),te;function he(me){return function(Te){return function(Be){if(ee)throw new TypeError("Generator is already executing.");for(;ae;)try{if(ee=1,ie&&(le=2&Be[0]?ie.return:Be[0]?ie.throw||((le=ie.return)&&le.call(ie),0):ie.next)&&!(le=le.call(ie,Be[1])).done)return le;switch(ie=0,le&&(Be=[2&Be[0],le.value]),Be[0]){case 0:case 1:le=Be;break;case 4:return ae.label++,{value:Be[1],done:!1};case 5:ae.label++,ie=Be[1],Be=[0];continue;case 7:Be=ae.ops.pop(),ae.trys.pop();continue;default:if(!(le=ae.trys,(le=le.length>0&&le[le.length-1])||Be[0]!==6&&Be[0]!==2)){ae=0;continue}if(Be[0]===3&&(!le||Be[1]>le[0]&&Be[1]<le[3])){ae.label=Be[1];break}if(Be[0]===6&&ae.label<le[1]){ae.label=le[1],le=Be;break}if(le&&ae.label<le[2]){ae.label=le[2],ae.ops.push(Be);break}le[2]&&ae.ops.pop(),ae.trys.pop();continue}Be=q.call(Ae,ae)}catch(je){Be=[6,je],ie=0}finally{ee=le=0}if(5&Be[0])throw Be[1];return{value:Be[0]?Be[1]:void 0,done:!0}}([me,Te])}}}var X=function(){function Ae(){}return Ae.addKey=function(q){Ae.key=q},Object.defineProperty(Ae,"isLicensed",{get:function(){return!!Ae.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ae.key)},enumerable:!1,configurable:!0}),Ae}(),L=function(){function Ae(){}return Ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ae.setAttributes=function(q,ee){for(var ie=0,le=ee;ie<le.length;ie++){var te=le[ie],ae=te[0],he=te[1];q.setAttribute(ae,he)}},Ae.createRect=function(q,ee,ie){var le=document.createElementNS("http://www.w3.org/2000/svg","rect");return le.setAttribute("width",q.toString()),le.setAttribute("height",ee.toString()),ie&&Ae.setAttributes(le,ie),le},Ae.createLine=function(q,ee,ie,le,te){var ae=document.createElementNS("http://www.w3.org/2000/svg","line");return ae.setAttribute("x1",q.toString()),ae.setAttribute("y1",ee.toString()),ae.setAttribute("x2",ie.toString()),ae.setAttribute("y2",le.toString()),te&&Ae.setAttributes(ae,te),ae},Ae.createPolygon=function(q,ee){var ie=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ie.setAttribute("points",q),ee&&Ae.setAttributes(ie,ee),ie},Ae.createCircle=function(q,ee){var ie=document.createElementNS("http://www.w3.org/2000/svg","circle");return ie.setAttribute("cx",(q/2).toString()),ie.setAttribute("cy",(q/2).toString()),ie.setAttribute("r",q.toString()),ee&&Ae.setAttributes(ie,ee),ie},Ae.createEllipse=function(q,ee,ie){var le=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return le.setAttribute("cx",(q/2).toString()),le.setAttribute("cy",(ee/2).toString()),le.setAttribute("rx",(q/2).toString()),le.setAttribute("ry",(ee/2).toString()),ie&&Ae.setAttributes(le,ie),le},Ae.createGroup=function(q){var ee=document.createElementNS("http://www.w3.org/2000/svg","g");return q&&Ae.setAttributes(ee,q),ee},Ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ae.createMarker=function(q,ee,ie,le,te,ae,he){var me=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ae.setAttributes(me,[["id",q],["orient",ee],["markerWidth",ie.toString()],["markerHeight",le.toString()],["refX",te.toString()],["refY",ae.toString()]]),me.appendChild(he),me},Ae.createText=function(q){var ee=document.createElementNS("http://www.w3.org/2000/svg","text");return ee.setAttribute("x","0"),ee.setAttribute("y","0"),q&&Ae.setAttributes(ee,q),ee},Ae.createTSpan=function(q,ee){var ie=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ie.textContent=q,ee&&Ae.setAttributes(ie,ee),ie},Ae.createImage=function(q){var ee=document.createElementNS("http://www.w3.org/2000/svg","image");return q&&Ae.setAttributes(ee,q),ee},Ae.createPoint=function(q,ee){var ie=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ie.x=q,ie.y=ee,ie},Ae.createPath=function(q,ee){var ie=document.createElementNS("http://www.w3.org/2000/svg","path");return ie.setAttribute("d",q),ee&&Ae.setAttributes(ie,ee),ie},Ae.createElement=function(q,ee){var ie=document.createElementNS("http://www.w3.org/2000/svg",q);return ee&&Ae.setAttributes(ie,ee),ie},Ae.getHollowRectanglePath=function(q,ee,ie,le,te,ae,he,me){return"M"+q+","+ee+"V"+(ee+le)+"H"+(q+ie)+"V"+ee+"H"+te+"V"+ae+"H"+(te+he)+"V"+(ae+me)+"H"+te+"V"+ee+"Z"},Ae}(),N=function(){function Ae(q){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+q+"_"}return Object.defineProperty(Ae.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#333333",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarBackgroundActiveColor:"#282828",toolbarColor:"#eeeeee",cropShadeColor:"#ffffff",cropFrameColor:"#ffffff",gripColor:"#333333",gripFillColor:"#cccccc",toolbarHeight:40}},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),Ae.prototype.addClass=function(q){return this.styleSheet===void 0&&this.addStyleSheet(),q.name=""+this.classNamePrefix+q.localName,this.classes.push(q),this.styleSheet.sheet.insertRule("."+q.name+" {"+q.style+"}",this.styleSheet.sheet.cssRules.length),q},Ae.prototype.addRule=function(q){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(q),this.styleSheet.sheet.insertRule(q.selector+" {"+q.style+"}",this.styleSheet.sheet.cssRules.length)},Ae.prototype.addStyleSheet=function(){var q;this.styleSheet=document.createElement("style"),((q=this.styleSheetRoot)!==null&&q!==void 0?q:document.head).appendChild(this.styleSheet),this.addRule(new J("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new J("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new J("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new ne("_fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new ne("_fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},Ae.prototype.removeStyleSheet=function(){var q;this.styleSheet&&(((q=this.styleSheetRoot)!==null&&q!==void 0?q:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ae}(),J=function(Ae,q){this.selector=Ae,this.style=q},ne=function(Ae,q){this.localName=Ae,this.style=q},k=function(){function Ae(){this.blocks=[],this.display=""}return Ae.prototype.addButtonBlock=function(q){q.className=this.blockClassName,q.buttonClassName=this.buttonClassName,q.buttonColorsClassName=this.buttonColorsClassName,q.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(q)},Ae.prototype.addElementBlock=function(q){q.className===void 0&&(q.className=this.blockClassName),this.blocks.push(q)},Ae.prototype.getUI=function(){var q=document.createElement("div");return q.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,q.style.display=this.display,this.blocks.forEach(function(ee){return q.appendChild(ee.getUI())}),q},Ae}(),Z=function(){function Ae(){}return Ae.prototype.getUI=function(){var q=document.createElement("div");if(q.className=this.className,this.minWidth!==void 0&&(q.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":q.style.justifyContent="flex-start";break;case"center":q.style.justifyContent="center";break;case"end":q.style.justifyContent="flex-end"}return q.style.whiteSpace="nowrap",q},Ae}(),H=function(Ae){function q(){var ee=Ae!==null&&Ae.apply(this,arguments)||this;return ee.buttons=[],ee}return De(q,Ae),q.prototype.addButton=function(ee){ee.className=this.buttonClassName,ee.colorsClassName=this.buttonColorsClassName,ee.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(ee)},q.prototype.getUI=function(){var ee=Ae.prototype.getUI.call(this);return this.buttons.forEach(function(ie){return ee.appendChild(ie.getUI())}),ee},q}(Z),W=function(){function Ae(q,ee){this._isActive=!1,this._isHidden=!1,this._icon=q,this.title=ee,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(Ae.prototype,"icon",{get:function(){return this._icon},set:function(q){this._icon=q,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"isActive",{get:function(){return this._isActive},set:function(q){this._isActive=q,this.adjustClassName()},enumerable:!1,configurable:!0}),Ae.prototype.getUI=function(){var q=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return q.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},Ae.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},Ae.prototype.hide=function(){this._isHidden=!0},Ae}(),z=function(Ae){function q(){var ee=Ae!==null&&Ae.apply(this,arguments)||this;return ee.elements=[],ee}return De(q,Ae),q.prototype.addElement=function(ee){this.elements.push(ee)},q.prototype.getUI=function(){var ee=Ae.prototype.getUI.call(this);return this.elements.forEach(function(ie){return ee.appendChild(ie)}),ee},q}(Z),se=function(){function Ae(q,ee){this.horizontal=q,this.vertical=ee}return Object.defineProperty(Ae.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),Ae.prototype.getVerticalLength=function(q){return q/this.ratio},Ae.prototype.getHorizontalLength=function(q){return q*this.ratio},Ae}(),pe=function(){function Ae(){}return Ae.getIcon=function(q,ee){if(q>0&&ee>0){var ie=new se(q,ee),le=ie.ratio>=1?20:ie.getHorizontalLength(20),te=ie.ratio<1?20:ie.getVerticalLength(20),ae=document.createElementNS("http://www.w3.org/2000/svg","svg");ae.setAttribute("xmlns","http://www.w3.org/2000/svg"),ae.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(ae);var he=L.createDefs();ae.appendChild(he);var me=L.createElement("clipPath",[["id","text-bg-clip"]]);he.appendChild(me);var Te=L.createPath(L.getHollowRectanglePath((24-le)/2,(24-te)/2,le,te,(24-le)/2+2,(24-te)/2+2,le-4,te-4));ae.appendChild(Te);var Be=L.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Be.appendChild(L.createTSpan(q+":"+ee)),ae.appendChild(Be);var je=Be.getBBox();L.setAttributes(Be,[["x",((24-je.width)/2).toString()],["y",((24-je.height)/2-je.y).toString()]]);var qe=L.createPath(L.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(je.width))/2,(24-Math.ceil(je.height))/2,Math.ceil(je.width),Math.ceil(je.height)));return me.appendChild(qe),L.setAttributes(Te,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ae),ae.outerHTML}return'<svg viewBox="0 0 24 24"><path d="M19 12h-2v3h-3v2h5v-5M7 9h3V7H5v5h2V9m14-6H3a2 2 0 00-2 2v14a2 2 0 002 2h18a2 2 0 002-2V5a2 2 0 00-2-2m0 16H3V5h18v14z"/></svg>'},Ae}(),ge=function(Ae){function q(ee,ie,le){var te=Ae.call(this,ee,ie)||this;return te.isDropdownOpen=!1,te.onClick=te.dropdownButtonClicked,te.dropdownButtons=le,te}return De(q,Ae),q.prototype.setupDropdown=function(){var ee=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(ie){ie.className=ee.className,ie.colorsClassName=ee.colorsClassName,ee.dropdownBlock.appendChild(ie.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},q.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},q.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},q.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},q.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},q.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},q}(W),Ne=function(){function Ae(q,ee){this.GRIP_SIZE=10,this.color=q,this.fillColor=ee,this.visual=L.createGroup(),this.visual.appendChild(L.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(L.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ae.prototype.ownsTarget=function(q){return q===this.visual||q===this.visual.childNodes[0]||q===this.visual.childNodes[1]},Ae.prototype.setCenter=function(q,ee){this.visual.childNodes.forEach(function(ie){return L.setAttributes(ie,[["cx",q.toString()],["cy",ee.toString()]])})},Ae}(),Me=function(){function Ae(q,ee,ie,le){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=q,this.canvasHeight=ee,this.margin=ie,this.container=le,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(Ae.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(q){this._aspectRatio=q,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(q){this._isGridVisible=q,this.gridContainer&&L.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(q){this._zoomFactor=q,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Ae.prototype.open=function(){var q=this;this.cropShadeElement=L.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=L.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var ee=0;ee<this.numberOfGridLines;ee++)this.horizontalGridLines.push(L.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(L.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(ie){return q.gridContainer.appendChild(ie)}),this.verticalGridLines.forEach(function(ie){return q.gridContainer.appendChild(ie)}),this.cropRectElement=L.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new Ne(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new Ne(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new Ne(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new Ne(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},Ae.prototype.setCropRectangle=function(q){this.cropRect=q;var ee=Object.assign({},this.cropRect);this.zoomFactor!==1&&(ee.width=this.cropRect.width*this.zoomFactor,ee.height=this.cropRect.height*this.zoomFactor,ee.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-ee.width/2,ee.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-ee.height/2),L.setAttributes(this.cropRectElement,[["x",ee.x.toString()],["y",ee.y.toString()],["width",ee.width.toString()],["height",ee.height.toString()]]);var ie=ee.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(te,ae){var he=ee.y+ie*(ae+1);L.setAttributes(te,[["x1",""+ee.x],["y1",""+he],["x2",""+(ee.x+ee.width)],["y2",""+he]])});var le=ee.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(te,ae){var he=ee.x+le*(ae+1);L.setAttributes(te,[["x1",""+he],["y1",""+ee.y],["x2",""+he],["y2",""+(ee.y+ee.height)]])}),L.setAttributes(this.cropShadeElement,[["d",L.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,ee.x,ee.y,ee.width,ee.height)]]),this.topLeftGrip.setCenter(ee.x,ee.y),this.topRightGrip.setCenter(ee.x+ee.width,ee.y),this.bottomLeftGrip.setCenter(ee.x,ee.y+ee.height),this.bottomRightGrip.setCenter(ee.x+ee.width,ee.y+ee.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},Ae.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},Ae.prototype.clientToLocalCoordinates=function(q,ee){var ie=this.container.getBoundingClientRect();return{x:q-ie.left+this.margin,y:ee-ie.top+this.margin}},Ae.prototype.onPointerDown=function(q){this.container.setPointerCapture(q.pointerId),this.previousPoint=this.clientToLocalCoordinates(q.clientX,q.clientY),this.cropRectElement===q.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(q.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(q.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(q.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(q.target)&&(this.activeGrip=this.bottomRightGrip)},Ae.prototype.onPointerMove=function(q){if(this.isMoving)this.move(this.clientToLocalCoordinates(q.clientX,q.clientY));else if(this.activeGrip){var ee=this.clientToLocalCoordinates(q.clientX,q.clientY);this.resize(ee)}q.preventDefault()},Ae.prototype.onPointerUp=function(q){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(q.pointerId)},Ae.prototype.move=function(q){var ee=q.x-this.previousPoint.x,ie=q.y-this.previousPoint.y;this.zoomFactor!==1&&(ee=-ee/this.zoomFactor,ie=-ie/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+ee),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+ie),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=q},Ae.prototype.resize=function(q){var ee=Object.assign({},this.cropRect),ie=q.x-this.previousPoint.x,le=q.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:ee.x+ie<this.margin&&(ie=this.margin-ee.x),ee.x+=ie,ee.width=this.cropRect.x+this.cropRect.width-ee.x;break;case this.bottomRightGrip:case this.topRightGrip:ee.width+ie>this.canvasWidth*this.zoomFactor&&(ie=this.canvasWidth*this.zoomFactor-ee.width),ee.width+=ie}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(ee.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(ie),ee.height=this.aspectRatio.getVerticalLength(ee.width)):(ee.y+=le,ee.height=this.cropRect.y+this.cropRect.height-ee.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?ee.height=this.aspectRatio.getVerticalLength(ee.width):ee.height+=le}ee.width<10&&(ee.x=this.cropRect.x,ee.width=10),ee.height<10&&(ee.y=this.cropRect.y,ee.height=10),this.previousPoint=q,ee.x>=this.margin&&ee.y>=this.margin&&ee.x-this.margin+ee.width<=this.canvasWidth&&ee.y-this.margin+ee.height<=this.canvasHeight&&(this.cropRect=ee,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},Ae.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var q=this.cropRect.x+this.cropRect.width/2,ee=this.cropRect.y+this.cropRect.height/2,ie=this.aspectRatio.getHorizontalLength(this.cropRect.height),le=this.aspectRatio.getVerticalLength(this.cropRect.width);ie/this.canvasWidth<le/this.canvasHeight?this.cropRect.width=ie:this.cropRect.height=le,this.cropRect.width>this.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=q-this.cropRect.width/2,this.cropRect.y=ee-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},Ae.prototype.getRescaledRect=function(q,ee,ie,le,te,ae){var he=ie/q,me=le/ee;return{x:(te.x-ae)*he+ae,y:(te.y-ae)*me+ae,width:te.width*he,height:te.height*me}},Ae.prototype.scaleCanvas=function(q,ee){var ie=this.getRescaledRect(this.canvasWidth,this.canvasHeight,q,ee,this.cropRect,this.margin);this.canvasWidth=q,this.canvasHeight=ee,this.onCropChange&&this.onCropChange(ie),this.setCropRectangle(ie)},Ae}(),ke=function(){function Ae(q){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=q,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(Ae.prototype,"angle",{get:function(){return this._angle},set:function(q){this._angle=q,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),Ae.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},Ae.prototype.onPointerDown=function(q){this.controlContainer.setPointerCapture(q.pointerId),this.isDragging=!0,this.previousPoint={x:q.clientX,y:q.clientY}},Ae.prototype.onPointerMove=function(q){this.isDragging&&(this.onAngleChange&&this.onAngleChange((q.clientX-this.previousPoint.x)/5),this.previousPoint.x=q.clientX)},Ae.prototype.onPointerUp=function(q){this.isDragging&&this.onAngleChange&&this.onAngleChange((q.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(q.pointerId)},Ae.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var q=this.angleLabelText.getBBox();L.setAttributes(this.angleLabelElement,[["x",((this.width-q.width)/2).toString()],["y",(this.height/2).toString()]])}},Ae.prototype.positionScaleShape=function(){if(this.scaleShape){var q=this.scaleShape.transform.baseVal.getItem(0);q.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(q,0)}},Ae.prototype.getVisual=function(){var q=document.createElementNS("http://www.w3.org/2000/svg","svg");q.setAttribute("xmlns","http://www.w3.org/2000/svg"),q.setAttribute("width",this.width+"px"),q.setAttribute("height",this.height+"px"),q.setAttribute("viewBox","0 0 "+this.width+" "+this.height),q.style.flexShrink="0",document.body.appendChild(q);for(var ee="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,ie=1;ie<=this.width/5+10;ie++){var le=ie%5==0?this.height/3:this.height/6;ee+="h4v"+-le+"h1v"+le}ee+="v1H0Z",this.scaleShape=L.createPath(ee);var te=L.createTransform();this.scaleShape.transform.baseVal.appendItem(te),q.appendChild(this.scaleShape),this.angleLabelElement=L.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=L.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ae=L.createTSpan("");return ae.innerHTML="°",this.angleLabelElement.appendChild(ae),q.appendChild(this.angleLabelElement),document.body.removeChild(q),q},Ae}(),He=function(){function Ae(){this.naturalSize=!1,this.imageType="image/png"}return Ae.prototype.rasterize=function(q,ee,ie,le,te,ae,he){var me=this;return new Promise(function(Te){var Be=document.createElement("canvas");Be.width=q.width.baseVal.value-2*le,Be.height=q.height.baseVal.value-2*le;var je=1,qe=1;me.naturalSize===!0?(je=ee.naturalWidth/(q.width.baseVal.value-2*le)/ae,qe=ee.naturalHeight/(q.height.baseVal.value-2*le)/he,Be.width=ee.naturalWidth/ae,Be.height=ee.naturalHeight/he):me.width!==void 0&&me.height!==void 0&&(je=me.width/ie.width,qe=me.height/ie.height,Be.width*=je,Be.height*=qe);var at=Be.getContext("2d");at.translate(Be.width/2,Be.height/2),at.rotate(te*Math.PI/180),at.scale(ae,he),at.translate(-Be.width/2,-Be.height/2),at.drawImage(ee,0,0,Be.width,Be.height);var et=document.createElement("canvas");et.width=ie.width*je,et.height=ie.height*qe,et.getContext("2d").putImageData(at.getImageData((ie.x-le)*je,(ie.y-le)*qe,ie.width*je,ie.height*qe),0,0),Te(et.toDataURL(me.imageType,me.imageQuality))})},Ae}(),Je=function(){function Ae(q){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=Ae.instanceCounter++,this.styles=new N(this.instanceNo),this.target=q,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(Ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(q){this._zoomToCropEnabled=q,q?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(q){this._isGridVisible=q,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"gridLines",{get:function(){return this._gridLines},set:function(q){this._gridLines=q,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(q){this._rotationAngle=q,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"aspectRatio",{get:function(){var q;return(q=this._aspectRatio)!==null&&q!==void 0?q:this.aspectRatios[0]},set:function(q){this._aspectRatio=q},enumerable:!1,configurable:!0}),Ae.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},Ae.prototype.show=function(){this.showUI(),this.open()},Ae.prototype.close=function(q){q===void 0&&(q=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),q||this.closeEventListeners.forEach(function(ee){return ee()}),this._isOpen=!1)},Ae.prototype.addRenderEventListener=function(q){this.renderEventListeners.push(q)},Ae.prototype.removeRenderEventListener=function(q){this.renderEventListeners.indexOf(q)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(q),1)},Ae.prototype.addCloseEventListener=function(q){this.closeEventListeners.push(q)},Ae.prototype.removeCloseEventListener=function(q){this.closeEventListeners.indexOf(q)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(q),1)},Ae.prototype.setupResizeObserver=function(){var q=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){q.resize(q.target.clientWidth,q.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},Ae.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var q=1*this.target.clientWidth/this.target.clientHeight,ee=this.contentDiv.clientWidth/q>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*q:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,ie=ee+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/q;this.resize(ee,ie)}},Ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ae.prototype.setEditingTargetSize=function(){this.editorCanvas.style.width=this.imageWidth+2*this.CANVAS_MARGIN+"px",this.editorCanvas.style.height=this.imageHeight+2*this.CANVAS_MARGIN+"px",L.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},Ae.prototype.resize=function(q,ee){this.imageWidth=Math.round(q),this.imageHeight=Math.round(ee),this.setEditingTargetSize(),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.displayMode!=="popup"?this.coverDiv.style.width=this.paddedImageWidth+"px":(this.setTopLeft(),this.positionCropImage()),this.cropLayer.scaleCanvas(this.imageWidth,this.imageHeight),this.applyRotation()},Ae.prototype.setEditingTarget=function(){var q=document.createElement("canvas");q.width=this.target.naturalWidth,q.height=this.target.naturalHeight,q.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var ee=q.toDataURL();L.setAttributes(this.editingTarget,[["href",ee]]),this.setEditingTargetSize()},Ae.prototype.setTopLeft=function(){var q=this.target.getBoundingClientRect(),ee=this.editorCanvas.getBoundingClientRect();this.left=q.left-ee.left-this.CANVAS_MARGIN,this.top=q.top-ee.top-this.CANVAS_MARGIN},Ae.prototype.initCropCanvas=function(){this.cropImageHolder=document.createElement("div"),this.cropImageHolder.style.setProperty("touch-action","none"),this.cropImageHolder.style.setProperty("-ms-touch-action","none"),this.cropImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.cropImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImage.style.pointerEvents="auto",this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.cropImageHolder.style.transformOrigin="top left",this.positionCropImage(),this.defs=L.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=L.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=L.createGroup(),this.editingTargetRotationScaleContainer=L.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var q=L.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(q);var ee=L.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(ee),this.editingTargetContainer=L.createGroup(),this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px)",this.editingTargetContainer.appendChild(this.editingTargetRotationContainer),this.cropImage.appendChild(this.editingTargetContainer),this.cropImageHolder.appendChild(this.cropImage),this.editorCanvas.appendChild(this.cropImageHolder)},Ae.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},Ae.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=L.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new Me(this.imageWidth,this.imageHeight,this.CANVAS_MARGIN,this.cropLayerContainer),this.cropLayer.onCropChange=this.cropRectChanged,this.cropLayer.numberOfGridLines=this.gridLines,this.cropLayer.isGridVisible=this.isGridVisible,this.cropLayer.cropShadeColor=this.styles.settings.cropShadeColor,this.cropLayer.cropFrameColor=this.styles.settings.cropFrameColor,this.cropLayer.gripColor=this.styles.settings.gripColor,this.cropLayer.gripFillColor=this.styles.settings.gripFillColor,this.cropLayer.open(),this.cropLayer.setCropRectangle(this.cropRect),this.zoomToCropEnabled&&this.zoomToCrop()},Ae.prototype.zoomToCrop=function(){if(this.cropRect){var q=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,ee=this.cropRect.y-this.CANVAS_MARGIN+this.cropRect.height/2;this.zoomFactor=Math.min(this.imageWidth/this.cropRect.width,this.imageHeight/this.cropRect.height),this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin=q+"px "+ee+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-q+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-ee+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},Ae.prototype.unzoomFromCrop=function(){this.zoomFactor=1,this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin="center",this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px) scale(1)",this.cropLayer.zoomFactor=this.zoomFactor)},Ae.prototype.cropRectChanged=function(q){this.cropRect=q,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},Ae.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},Ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ae.prototype.showUI=function(){switch(this.addStyles(),this.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.displayMode){case"inline":this.coverDiv.style.position="absolute";var q=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,ee=this.target.offsetTop>q+this.CANVAS_MARGIN?this.target.offsetTop-(q+this.CANVAS_MARGIN):0;this.coverDiv.style.top=ee+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},Ae.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},Ae.prototype.addTopToolbar=function(){var q=this;this.topToolbar=new k,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var ee=new H;ee.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(ee);var ie=[];this.aspectRatios.forEach(function(qe){var at=new W(pe.getIcon(qe.horizontal,qe.vertical),qe.horizontal===0&&qe.vertical===0?"FREE":qe.horizontal+":"+qe.vertical);at.onClick=function(){return q.ratioButtonClicked(qe)},ie.push(at)}),this.aspectRatioButton=new ge(pe.getIcon(0,0),"Aspect ratio",ie),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,ee.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var le=new W('<svg viewBox="0 0 24 24"><path d="M10 4v4h4V4h-4m6 0v4h4V4h-4m0 6v4h4v-4h-4m0 6v4h4v-4h-4m-2 4v-4h-4v4h4m-6 0v-4H4v4h4m0-6v-4H4v4h4m0-6V4H4v4h4m2 6h4v-4h-4v4M4 2h16a2 2 0 012 2v16a2 2 0 01-2 2H4c-1.08 0-2-.9-2-2V4a2 2 0 012-2z"/></svg>',"Toggle grid");le.isActive=this.isGridVisible,le.onClick=function(){q.isGridVisible=!q.isGridVisible,le.isActive=q.isGridVisible},ee.addButton(le);var te=new W('<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"Zoom to selection");if(te.isActive=this.zoomToCropEnabled,te.onClick=function(){q.zoomToCropEnabled=!q.zoomToCropEnabled,te.isActive=q.zoomToCropEnabled},ee.addButton(te),!X.isLicensed){var ae=new z;this.topToolbar.addElementBlock(ae);var he=document.createElement("div");he.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var me=document.createElement("a");me.style.color="currentColor",me.href="https://markerjs.com/products/cropro",me.target="_blank",me.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M16.326 14.895c0 1.126-.558 1.688-1.673 1.688H9.931c-1.116 0-1.674-.562-1.674-1.688V3.733c0-1.126.558-1.688 1.674-1.688h4.722c1.115 0 1.673.562 1.673 1.688v2.899h-1.957V3.793h-4.124v11.042h4.124v-3.242h1.957v3.302z" fill="currentColor"/><path d="M15.94 7.364a.783.783 0 00-1.065-.304l-11.01 6.126a.783.783 0 00-.303 1.065l4.498 8.085a.783.783 0 001.065.304l11.01-6.126a.783.783 0 00.303-1.065L15.94 7.364zM5.311 14.173l3.737 6.718 9.641-5.364-3.737-6.718-9.641 5.364z" fill="#eef762"/></svg>',he.appendChild(me),ae.addElement(he)}var Te=new H;Te.minWidth=3*this.toolbarHeight+"px",Te.contentAlign="end",this.topToolbar.addButtonBlock(Te);var Be=new W('<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"OK");Be.onClick=this.startRenderAndClose,Te.addButton(Be),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Be.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var je=new W('<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"Close");je.onClick=this.close,Te.addButton(je),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(je.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},Ae.prototype.addBottomToolbar=function(){var q=this;this.bottomToolbar=new k,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var ee=new H;ee.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(ee);var ie=new W('<svg viewBox="0 0 24 24"><path d="M13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93M7.1 18.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.02-4.47L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47z"/></svg>',"Rotate left");ie.onClick=this.rotateLeftButtonClicked,ee.addButton(ie);var le=new W('<svg viewBox="0 0 24 24"><path d="M16.89 15.5l1.42 1.39c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.5M13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m6.93-6.9a7.906 7.906 0 00-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47m-2.36-5.45L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45z"/></svg>',"Rotate right");le.onClick=this.rotateRightButtonClicked,ee.addButton(le);var te=new z;te.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(te),this.straightener=new ke("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Te){q.rotateBy(Te),q.straightener.angle=q.rotationAngle},te.addElement(this.straightener.getUI());var ae=new H;ae.minWidth=2*this.toolbarHeight+"px",ae.contentAlign="end",this.bottomToolbar.addButtonBlock(ae);var he=new W('<svg viewBox="0 0 24 24"><path d="M15 21h2v-2h-2m4-10h2V7h-2M3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2m16-2v2h2c0-1.1-.9-2-2-2m-8 20h2V1h-2m8 16h2v-2h-2M15 5h2V3h-2m4 10h2v-2h-2m0 10c1.1 0 2-.9 2-2h-2z"/></svg>',"Flip horizontal");he.onClick=this.flipHorizontallyButtonClicked,ae.addButton(he);var me=new W('<svg viewBox="0 0 24 24"><path d="M3 15v2h2v-2m10 4v2h2v-2m2-16H5c-1.1 0-2 .9-2 2v4h2V5h14v4h2V5c0-1.1-.9-2-2-2m2 16h-2v2c1.1 0 2-.9 2-2M1 11v2h22v-2M7 19v2h2v-2m10-4v2h2v-2m-10 4v2h2v-2M3 19c0 1.1.9 2 2 2v-2z"/></svg>',"Flip vertical");me.onClick=this.flipVerticallyButtonClicked,ae.addButton(me)},Ae.prototype.ratioButtonClicked=function(q){this.aspectRatio=q,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},Ae.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=pe.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},Ae.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new se(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},Ae.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ae.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},Ae.prototype.restoreState=function(q){if(q){var ee=this.cropLayer.getRescaledRect(q.width,q.height,this.imageWidth,this.imageHeight,q.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(ee),this.cropRectChanged(ee),this.flippedHorizontally=q.flippedHorizontally,this.flippedVertically=q.flippedVertically,this.applyFlip(),this.rotationAngle=q.rotationAngle,this.applyRotation()}},Ae.prototype.clientToLocalCoordinates=function(q,ee){var ie=this.cropImage.getBoundingClientRect();return{x:q-ie.left,y:ee-ie.top}},Ae.prototype.onWindowResize=function(){this.positionUI()},Ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var q=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=q+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},Ae.prototype.rotateLeftButtonClicked=function(){var q=this.rotationAngle-90;this.rotationAngle%90!=0&&(q+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(q)},Ae.prototype.rotateRightButtonClicked=function(){var q=this.rotationAngle+90;this.rotationAngle%90!=0&&(q-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(q)},Ae.prototype.rotateTo=function(q){q=(q=q>180?q-360:q)<=-180?q+360:q,this.rotationAngle=q,this.applyRotation()},Ae.prototype.rotateBy=function(q){this.rotateTo((this.rotationAngle+q)%360)},Ae.prototype.applyRotation=function(){var q=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var ee=this.editingTargetRotationContainer.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(ee,0);var ie=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/ie.width,this.imageHeight/ie.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=q},Ae.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},Ae.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},Ae.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},Ae.prototype.startRenderAndClose=function(){return Fe(this,void 0,void 0,function(){var q,ee;return Ce(this,function(ie){switch(ie.label){case 0:return[4,this.render()];case 1:return q=ie.sent(),ee=this.getState(),this.renderEventListeners.forEach(function(le){return le(q,ee)}),this.close(!0),[2]}})})},Ae.prototype.render=function(){return Fe(this,void 0,void 0,function(){var q;return Ce(this,function(ee){switch(ee.label){case 0:return(q=new He).naturalSize=this.renderAtNaturalSize,q.imageType=this.renderImageType,q.imageQuality=this.renderImageQuality,q.width=this.renderWidth,q.height=this.renderHeight,this.unzoomFromCrop(),L.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,q.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return ee.sent(),[4,q.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,ee.sent()]}})})},Ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ne("toolbar",`
|
|
width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
height: `+this.toolbarHeight+`px;
|
|
box-sizing: content-box;
|
|
overflow: hidden;
|
|
line-height: 0px;
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ne("toolbar_colors",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ne("toolbar-block",`
|
|
display: flex;
|
|
align-items: center;
|
|
box-sizing: content-box;
|
|
`));var q=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ne("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.toolbarHeight-2*q)+`px;
|
|
height: `+(this.toolbarHeight-2*q)+`px;
|
|
padding: `+q+`px;
|
|
cursor: default;
|
|
user-select: none;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ne("toolbar_button_colors",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ne("toolbar_active_button",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
|
|
`)),this.styles.addRule(new J("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new J("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
|
|
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new ne("toolbar_dropdown",`
|
|
position: absolute;
|
|
max-width: `+4*this.toolbarHeight+`px;
|
|
z-index: 20;
|
|
white-space: normal;
|
|
box-sizing: content-box;
|
|
box-shadow: 3px 3px rgba(33, 33, 33, 0.1);
|
|
margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px;
|
|
line-height: 0px;
|
|
`)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new ne("toolbar_dropdown_colors",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new ne("toolbar_straightener_block",`
|
|
display: flex;
|
|
overflow: hidden;
|
|
justify-content: center;
|
|
-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
|
|
`)),this.toolbarStraightenerStyleClass=this.styles.addClass(new ne("toolbar_straightener",`
|
|
display: flex;
|
|
overflow: hidden;
|
|
justify-content: center;
|
|
height: `+(this.toolbarHeight-2*q)+`px;
|
|
padding: `+q+`px;
|
|
cursor: default;
|
|
user-select: none;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new ne("toolbar_straightener_colors",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
`))},Ae.instanceCounter=0,Ae}(),rt=Q("8hTe"),xe=Q.n(rt),Ue=/<pre[^>]*>/g;function Qe(Ae){var q=document.createElement("div");return q.innerHTML=Ae,q.childNodes.length===0?"":q.childNodes[0].nodeValue}var ze=we.a=function(Ae){var q=Ae.value,ee=q===void 0?"":q,ie=Ae.edit,le=ie===void 0?!1:ie,te=Ae.className,ae=Ae.showTextOnly,he=Ae.showLines,me=Ae.replaces,Te=Ae.zoomImg,Be=Ae.hasMask,je=Ae.style,qe=je===void 0?{}:je,at=Ae.stylesPrev,et=at===void 0?{}:at,_t=String(ee),ut=Object(I.useRef)(),$e=Object(I.useRef)(),kt=Object(I.useState)(""),Ut=Object(Y.a)(kt,2),yt=Ut[0],Wt=Ut[1],St=Object(I.useState)("office"),$t=Object(Y.a)(St,2),Ft=$t[0],wt=$t[1],sr=function(){var Qt=new Je($e.current);Qt.displayMode="popup",Qt.addRenderEventListener(function(){var It=Object(S.a)(e.a.mark(function Ct(yr){var Nt;return e.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:return ut.current.style.display="none",er.next=3,Object(Le.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yr}});case 3:Nt=er.sent,Nt!=null&&Nt.id&&me($e.current.getAttribute("src").replace(oe.a.API_SERVER,""),"/api/attachments/".concat(Nt==null?void 0:Nt.id,"?type=").concat(Nt.content_type));case 5:case"end":return er.stop()}},Ct)}));return function(Ct){return It.apply(this,arguments)}}()),Qt.show()},vt=function(){var Qt=new Se.a($e.current);Qt.settings.displayMode="popup",Qt.addEventListener("render",function(){var It=Object(S.a)(e.a.mark(function Ct(yr){var Nt;return e.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(ut.current.style.display="none",!$e.current){er.next=6;break}return er.next=4,Object(Le.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:yr.dataUrl}});case 4:Nt=er.sent,Nt!=null&&Nt.id&&me($e.current.getAttribute("src").replace(oe.a.API_SERVER,""),"/api/attachments/".concat(Nt==null?void 0:Nt.id,"?type=").concat(Nt.content_type));case 6:case"end":return er.stop()}},Ct)}));return function(Ct){return It.apply(this,arguments)}}()),Qt.show(),window.markerArea=Qt},At=Object(I.useMemo)(function(){ut.current&&(ut.current.style.zIndex=-1);try{var nr=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Qt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,It=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;_t=_t.replace(nr,"("+oe.a.API_SERVER+"/api/attachments/").replace(Qt,'"'+oe.a.API_SERVER+"/api/attachments/").replace(It,'"'+oe.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
`)}catch(Rr){}var Ct=P(_t),yr=_();if(_t.match(/\[TOC\]/)&&(Ct=Ct.replace("<p>[TOC]</p>",T()),b()),Ct=Ct.replace(/(__special_katext_id_\d+__)/g,function(Rr,er){var ue=yr[er],ce=ue.type,ye=ue.expression;return Object(Ee.renderToString)(Qe(ye)||"",{displayMode:ce==="block",throwOnError:!1,output:"html"})}),Ct=Ct.replace(/▁/g,"\u2581\u2581\u2581"),m(),ae){var Nt=document.createElement("div");return Nt.innerHTML=Ct,Nt.innerText}return setTimeout(function(){return Ir()},500),Ct},[_t]),Et=Object(I.useRef)();y.WebkitLineClamp=he,he&&(qe=Object(U.a)(Object(U.a)({},qe),y));function hr(nr){var Qt=nr.target;if(Qt.tagName.toUpperCase()==="IMG"){if(Te){var It=Qt.getAttribute("src");Wt(It),wt("image")}}else if(Qt.tagName.toUpperCase()==="A"){var Ct=Qt.getAttribute("href");if(Ct.indexOf("office")>-1)nr.preventDefault(),Wt(Ct),wt("office");else if(Ct.indexOf("application/pdf")>-1)nr.preventDefault(),Wt(Ct),wt("pdf");else if(Ct.indexOf("text/html")>-1)nr.preventDefault(),Wt(Ct),wt("html");else if(Ct.startsWith("#")){nr.preventDefault();var yr=document.getElementById(Ct.replace("#",""));yr&&yr.scrollIntoView(!0)}}}var Ir=function(){var Qt,It=(Qt=Et.current)===null||Qt===void 0?void 0:Qt.querySelectorAll("video");It==null||It.forEach(function(Ct){if(Ct.oncontextmenu=function(){return!1},Ct.src.indexOf(".m3u8")>-1&&!Ct.canPlayType("application/vnd.apple.mpegurl")){if($.a.isSupported()){var yr=new $.a;yr.loadSource(Ct.src),yr.attachMedia(Ct)}}})};Object(I.useEffect)(function(){if(Et.current&&At&&(At.match(Ue)&&window.PR.prettyPrint()),Et.current)return Et.current.addEventListener("click",hr),function(){Et.current.removeEventListener("click",hr),m(),b()}},[At,Et.current,hr]);var zr=function(Qt){if(!le)return;Qt.target.nodeName==="IMG"?(ut.current.style.zIndex=1,ut.current.style.display="flex",ut.current.style.width=Qt.target.clientWidth+"px",ut.current.style.height=Qt.target.clientHeight+"px",ut.current.style.top=Qt.target.offsetTop+"px",ut.current.style.left=Qt.target.offsetLeft+"px",$e.current.src=Qt.target.getAttribute("src")):ut.current.style.display="none"};return p.a.createElement("div",{style:{position:"relative"}},p.a.createElement("div",{ref:Et,style:Object(U.a)({},qe),className:"".concat(te||""," markdown-body ").concat(xe.a.mdBody),onMouseOver:zr,dangerouslySetInnerHTML:{__html:At}}),p.a.createElement("div",{ref:ut,className:xe.a.button},p.a.createElement(K.a,null,p.a.createElement(G.a,{onClick:function(){return sr()}},"\u88C1\u526A"),p.a.createElement(G.a,{onClick:function(){return vt()}},"\u7F16\u8F91"))),p.a.createElement("img",{ref:$e,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),p.a.createElement(ve.a,{close:!0,data:yt,type:yt!=null&&yt.length?Ft:"",style:Object(U.a)({},et),onClose:function(){return Wt("")}}))}},BU3w:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return S});var de=Q("MNnm"),K="rc-util-key";function O(Y){if(Y.attachTo)return Y.attachTo;var M=document.querySelector("head");return M||document.body}function G(Y){var M,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(de.a)())return null;var I=document.createElement("style");if((M=e.csp)===null||M===void 0?void 0:M.nonce){var p;I.nonce=(p=e.csp)===null||p===void 0?void 0:p.nonce}I.innerHTML=Y;var g=O(e),c=g.firstChild;return e.prepend&&g.prepend?g.prepend(I):e.prepend&&c?g.insertBefore(I,c):g.appendChild(I),I}var U=new Map;function S(Y,M){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=O(e);if(!U.has(I)){var p=G("",e),g=p.parentNode;U.set(I,g),g.removeChild(p)}var c=Array.from(U.get(I).children).find(function(a){return a.tagName==="STYLE"&&a[K]===M});if(c){var s,i;if(((s=e.csp)===null||s===void 0?void 0:s.nonce)&&c.nonce!==((i=e.csp)===null||i===void 0?void 0:i.nonce)){var A;c.nonce=(A=e.csp)===null||A===void 0?void 0:A.nonce}return c.innerHTML!==Y&&(c.innerHTML=Y),c}var o=G(Y,e);return o[K]=M,o}},"C/vA":function(ot,we,Q){"use strict";Q.d(we,"a",function(){return de});function de(K){const O=this;let G=!1,U;return function(){return G||(G=!0,U=K.apply(O,arguments)),U}}},"Cg/j":function(ot,we,Q){"use strict";Q.d(we,"b",function(){return de}),Q.d(we,"a",function(){return K}),Q.d(we,"c",function(){return G}),Q.d(we,"d",function(){return U});var de;(function(S){S.serviceIds=new Map,S.DI_TARGET="$di$target",S.DI_DEPENDENCIES="$di$dependencies";function Y(M){return M[S.DI_DEPENDENCIES]||[]}S.getServiceDependencies=Y})(de||(de={}));const K=G("instantiationService");function O(S,Y,M,e){Y[de.DI_TARGET]===Y?Y[de.DI_DEPENDENCIES].push({id:S,index:M,optional:e}):(Y[de.DI_DEPENDENCIES]=[{id:S,index:M,optional:e}],Y[de.DI_TARGET]=Y)}function G(S){if(de.serviceIds.has(S))return de.serviceIds.get(S);const Y=function(M,e,I){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");O(Y,M,I,!1)};return Y.toString=()=>S,de.serviceIds.set(S,Y),Y}function U(S){return function(Y,M,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");O(S,Y,e,!0)}}},DlQD:function(ot,we,Q){(function(de,K){ot.exports=K()})(this,function(){"use strict";function de(ee,ie){for(var le=0;le<ie.length;le++){var te=ie[le];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(ee,te.key,te)}}function K(ee,ie,le){return ie&&de(ee.prototype,ie),le&&de(ee,le),ee}function O(ee,ie){if(!ee)return;if(typeof ee=="string")return G(ee,ie);var le=Object.prototype.toString.call(ee).slice(8,-1);if(le==="Object"&&ee.constructor&&(le=ee.constructor.name),le==="Map"||le==="Set")return Array.from(ee);if(le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(le))return G(ee,ie)}function G(ee,ie){(ie==null||ie>ee.length)&&(ie=ee.length);for(var le=0,te=new Array(ie);le<ie;le++)te[le]=ee[le];return te}function U(ee,ie){var le;if(typeof Symbol=="undefined"||ee[Symbol.iterator]==null){if(Array.isArray(ee)||(le=O(ee))||ie&&ee&&typeof ee.length=="number"){le&&(ee=le);var te=0;return function(){return te>=ee.length?{done:!0}:{done:!1,value:ee[te++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return le=ee[Symbol.iterator](),le.next.bind(le)}function S(ee,ie){return ie={exports:{}},ee(ie,ie.exports),ie.exports}var Y=S(function(ee){function ie(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function le(te){ee.exports.defaults=te}ee.exports={defaults:ie(),getDefaults:ie,changeDefaults:le}}),M=Y.defaults,e=Y.getDefaults,I=Y.changeDefaults,p=/[&<>"']/,g=/[&<>"']/g,c=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,i={"&":"&","<":"<",">":">",'"':""","'":"'"},A=function(ie){return i[ie]};function o(ee,ie){if(ie){if(p.test(ee))return ee.replace(g,A)}else if(c.test(ee))return ee.replace(s,A);return ee}var a=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function r(ee){return ee.replace(a,function(ie,le){return le=le.toLowerCase(),le==="colon"?":":le.charAt(0)==="#"?le.charAt(1)==="x"?String.fromCharCode(parseInt(le.substring(2),16)):String.fromCharCode(+le.substring(1)):""})}var t=/(^|[^\[])\^/g;function b(ee,ie){ee=ee.source||ee,ie=ie||"";var le={replace:function(ae,he){return he=he.source||he,he=he.replace(t,"$1"),ee=ee.replace(ae,he),le},getRegex:function(){return new RegExp(ee,ie)}};return le}var y=/[^\w:]/g,E=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function T(ee,ie,le){if(ee){var te;try{te=decodeURIComponent(r(le)).replace(y,"").toLowerCase()}catch(ae){return null}if(te.indexOf("javascript:")===0||te.indexOf("vbscript:")===0||te.indexOf("data:")===0)return null}ie&&!E.test(le)&&(le=u(ie,le));try{le=encodeURI(le).replace(/%25/g,"%")}catch(ae){return null}return le}var v={},d=/^[^:]+:\/*[^/]*$/,n=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function u(ee,ie){v[" "+ee]||(d.test(ee)?v[" "+ee]=ee+"/":v[" "+ee]=R(ee,"/",!0)),ee=v[" "+ee];var le=ee.indexOf(":")===-1;return ie.substring(0,2)==="//"?le?ie:ee.replace(n,"$1")+ie:ie.charAt(0)==="/"?le?ie:ee.replace(l,"$1")+ie:ee+ie}var _={exec:function(){}};function m(ee){for(var ie=1,le,te;ie<arguments.length;ie++){le=arguments[ie];for(te in le)Object.prototype.hasOwnProperty.call(le,te)&&(ee[te]=le[te])}return ee}function h(ee,ie){var le=ee.replace(/\|/g,function(he,me,Te){for(var Be=!1,je=me;--je>=0&&Te[je]==="\\";)Be=!Be;return Be?"|":" |"}),te=le.split(/ \|/),ae=0;if(te.length>ie)te.splice(ie);else for(;te.length<ie;)te.push("");for(;ae<te.length;ae++)te[ae]=te[ae].trim().replace(/\\\|/g,"|");return te}function R(ee,ie,le){var te=ee.length;if(te===0)return"";for(var ae=0;ae<te;){var he=ee.charAt(te-ae-1);if(he===ie&&!le)ae++;else if(he!==ie&&le)ae++;else break}return ee.substr(0,te-ae)}function F(ee,ie){if(ee.indexOf(ie[1])===-1)return-1;for(var le=ee.length,te=0,ae=0;ae<le;ae++)if(ee[ae]==="\\")ae++;else if(ee[ae]===ie[0])te++;else if(ee[ae]===ie[1]&&(te--,te<0))return ae;return-1}function C(ee){ee&&ee.sanitize&&!ee.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var P={escape:o,unescape:r,edit:b,cleanUrl:T,resolveUrl:u,noopTest:_,merge:m,splitCells:h,rtrim:R,findClosingBracket:F,checkSanitizeDeprecation:C},j=Y.defaults,D=P.rtrim,$=P.splitCells,oe=P.escape,Ee=P.findClosingBracket;function ve(ee,ie,le){var te=ie.href,ae=ie.title?oe(ie.title):null,he=ee[1].replace(/\\([\[\]])/g,"$1");return ee[0].charAt(0)!=="!"?{type:"link",raw:le,href:te,title:ae,text:he}:{type:"image",raw:le,href:te,title:ae,text:oe(he)}}function Le(ee,ie){var le=ee.match(/^(\s+)(?:```)/);if(le===null)return ie;var te=le[1];return ie.split(`
|
|
`).map(function(ae){var he=ae.match(/^\s+/);if(he===null)return ae;var me=he[0];return me.length>=te.length?ae.slice(te.length):ae}).join(`
|
|
`)}var Se=function(){function ee(le){this.options=le||j}var ie=ee.prototype;return ie.space=function(te){var ae=this.rules.block.newline.exec(te);if(ae)return ae[0].length>1?{type:"space",raw:ae[0]}:{raw:`
|
|
`}},ie.code=function(te,ae){var he=this.rules.block.code.exec(te);if(he){var me=ae[ae.length-1];if(me&&me.type==="paragraph")return{raw:he[0],text:he[0].trimRight()};var Te=he[0].replace(/^ {4}/gm,"");return{type:"code",raw:he[0],codeBlockStyle:"indented",text:this.options.pedantic?Te:D(Te,`
|
|
`)}}},ie.fences=function(te){var ae=this.rules.block.fences.exec(te);if(ae){var he=ae[0],me=Le(he,ae[3]||"");return{type:"code",raw:he,lang:ae[2]?ae[2].trim():ae[2],text:me}}},ie.heading=function(te){var ae=this.rules.block.heading.exec(te);if(ae)return{type:"heading",raw:ae[0],depth:ae[1].length,text:ae[2]}},ie.nptable=function(te){var ae=this.rules.block.nptable.exec(te);if(ae){var he={type:"table",header:$(ae[1].replace(/^ *| *\| *$/g,"")),align:ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ae[3]?ae[3].replace(/\n$/,"").split(`
|
|
`):[],raw:ae[0]};if(he.header.length===he.align.length){var me=he.align.length,Te;for(Te=0;Te<me;Te++)/^ *-+: *$/.test(he.align[Te])?he.align[Te]="right":/^ *:-+: *$/.test(he.align[Te])?he.align[Te]="center":/^ *:-+ *$/.test(he.align[Te])?he.align[Te]="left":he.align[Te]=null;for(me=he.cells.length,Te=0;Te<me;Te++)he.cells[Te]=$(he.cells[Te],he.header.length);return he}}},ie.hr=function(te){var ae=this.rules.block.hr.exec(te);if(ae)return{type:"hr",raw:ae[0]}},ie.blockquote=function(te){var ae=this.rules.block.blockquote.exec(te);if(ae){var he=ae[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ae[0],text:he}}},ie.list=function(te){var ae=this.rules.block.list.exec(te);if(ae){for(var he=ae[0],me=ae[2],Te=me.length>1,Be=me[me.length-1]===")",je={type:"list",raw:he,ordered:Te,start:Te?+me.slice(0,-1):"",loose:!1,items:[]},qe=ae[0].match(this.rules.block.item),at=!1,et,_t,ut,$e,kt,Ut,yt,Wt=qe.length,St=0;St<Wt;St++)et=qe[St],he=et,_t=et.length,et=et.replace(/^ *([*+-]|\d+[.)]) */,""),~et.indexOf(`
|
|
`)&&(_t-=et.length,et=this.options.pedantic?et.replace(/^ {1,4}/gm,""):et.replace(new RegExp("^ {1,"+_t+"}","gm"),"")),St!==Wt-1&&(ut=this.rules.block.bullet.exec(qe[St+1])[0],(Te?ut.length===1||!Be&&ut[ut.length-1]===")":ut.length>1||this.options.smartLists&&ut!==me)&&($e=qe.slice(St+1).join(`
|
|
`),je.raw=je.raw.substring(0,je.raw.length-$e.length),St=Wt-1)),kt=at||/\n\n(?!\s*$)/.test(et),St!==Wt-1&&(at=et.charAt(et.length-1)===`
|
|
`,kt||(kt=at)),kt&&(je.loose=!0),Ut=/^\[[ xX]\] /.test(et),yt=void 0,Ut&&(yt=et[1]!==" ",et=et.replace(/^\[[ xX]\] +/,"")),je.items.push({type:"list_item",raw:he,task:Ut,checked:yt,loose:kt,text:et});return je}},ie.html=function(te){var ae=this.rules.block.html.exec(te);if(ae)return{type:this.options.sanitize?"paragraph":"html",raw:ae[0],pre:!this.options.sanitizer&&(ae[1]==="pre"||ae[1]==="script"||ae[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ae[0]):oe(ae[0]):ae[0]}},ie.def=function(te){var ae=this.rules.block.def.exec(te);if(ae){ae[3]&&(ae[3]=ae[3].substring(1,ae[3].length-1));var he=ae[1].toLowerCase().replace(/\s+/g," ");return{tag:he,raw:ae[0],href:ae[2],title:ae[3]}}},ie.table=function(te){var ae=this.rules.block.table.exec(te);if(ae){var he={type:"table",header:$(ae[1].replace(/^ *| *\| *$/g,"")),align:ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ae[3]?ae[3].replace(/\n$/,"").split(`
|
|
`):[]};if(he.header.length===he.align.length){he.raw=ae[0];var me=he.align.length,Te;for(Te=0;Te<me;Te++)/^ *-+: *$/.test(he.align[Te])?he.align[Te]="right":/^ *:-+: *$/.test(he.align[Te])?he.align[Te]="center":/^ *:-+ *$/.test(he.align[Te])?he.align[Te]="left":he.align[Te]=null;for(me=he.cells.length,Te=0;Te<me;Te++)he.cells[Te]=$(he.cells[Te].replace(/^ *\| *| *\| *$/g,""),he.header.length);return he}}},ie.lheading=function(te){var ae=this.rules.block.lheading.exec(te);if(ae)return{type:"heading",raw:ae[0],depth:ae[2].charAt(0)==="="?1:2,text:ae[1]}},ie.paragraph=function(te){var ae=this.rules.block.paragraph.exec(te);if(ae)return{type:"paragraph",raw:ae[0],text:ae[1].charAt(ae[1].length-1)===`
|
|
`?ae[1].slice(0,-1):ae[1]}},ie.text=function(te,ae){var he=this.rules.block.text.exec(te);if(he){var me=ae[ae.length-1];return me&&me.type==="text"?{raw:he[0],text:he[0]}:{type:"text",raw:he[0],text:he[0]}}},ie.escape=function(te){var ae=this.rules.inline.escape.exec(te);if(ae)return{type:"escape",raw:ae[0],text:oe(ae[1])}},ie.tag=function(te,ae,he){var me=this.rules.inline.tag.exec(te);if(me)return!ae&&/^<a /i.test(me[0])?ae=!0:ae&&/^<\/a>/i.test(me[0])&&(ae=!1),!he&&/^<(pre|code|kbd|script)(\s|>)/i.test(me[0])?he=!0:he&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(me[0])&&(he=!1),{type:this.options.sanitize?"text":"html",raw:me[0],inLink:ae,inRawBlock:he,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):oe(me[0]):me[0]}},ie.link=function(te){var ae=this.rules.inline.link.exec(te);if(ae){var he=Ee(ae[2],"()");if(he>-1){var me=ae[0].indexOf("!")===0?5:4,Te=me+ae[1].length+he;ae[2]=ae[2].substring(0,he),ae[0]=ae[0].substring(0,Te).trim(),ae[3]=""}var Be=ae[2],je="";if(this.options.pedantic){var qe=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Be);qe?(Be=qe[1],je=qe[3]):je=""}else je=ae[3]?ae[3].slice(1,-1):"";Be=Be.trim().replace(/^<([\s\S]*)>$/,"$1");var at=ve(ae,{href:Be&&Be.replace(this.rules.inline._escapes,"$1"),title:je&&je.replace(this.rules.inline._escapes,"$1")},ae[0]);return at}},ie.reflink=function(te,ae){var he;if((he=this.rules.inline.reflink.exec(te))||(he=this.rules.inline.nolink.exec(te))){var me=(he[2]||he[1]).replace(/\s+/g," ");if(me=ae[me.toLowerCase()],!me||!me.href){var Te=he[0].charAt(0);return{type:"text",raw:Te,text:Te}}var Be=ve(he,me,he[0]);return Be}},ie.strong=function(te,ae,he){he===void 0&&(he="");var me=this.rules.inline.strong.start.exec(te);if(me&&(!me[1]||me[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){ae=ae.slice(-1*te.length);var Te=me[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Te.lastIndex=0;for(var Be;(me=Te.exec(ae))!=null;)if(Be=this.rules.inline.strong.middle.exec(ae.slice(0,me.index+3)),Be)return{type:"strong",raw:te.slice(0,Be[0].length),text:te.slice(2,Be[0].length-2)}}},ie.em=function(te,ae,he){he===void 0&&(he="");var me=this.rules.inline.em.start.exec(te);if(me&&(!me[1]||me[1]&&(he===""||this.rules.inline.punctuation.exec(he)))){ae=ae.slice(-1*te.length);var Te=me[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Te.lastIndex=0;for(var Be;(me=Te.exec(ae))!=null;)if(Be=this.rules.inline.em.middle.exec(ae.slice(0,me.index+2)),Be)return{type:"em",raw:te.slice(0,Be[0].length),text:te.slice(1,Be[0].length-1)}}},ie.codespan=function(te){var ae=this.rules.inline.code.exec(te);if(ae){var he=ae[2].replace(/\n/g," "),me=/[^ ]/.test(he),Te=he.startsWith(" ")&&he.endsWith(" ");return me&&Te&&(he=he.substring(1,he.length-1)),he=oe(he,!0),{type:"codespan",raw:ae[0],text:he}}},ie.br=function(te){var ae=this.rules.inline.br.exec(te);if(ae)return{type:"br",raw:ae[0]}},ie.del=function(te){var ae=this.rules.inline.del.exec(te);if(ae)return{type:"del",raw:ae[0],text:ae[1]}},ie.autolink=function(te,ae){var he=this.rules.inline.autolink.exec(te);if(he){var me,Te;return he[2]==="@"?(me=oe(this.options.mangle?ae(he[1]):he[1]),Te="mailto:"+me):(me=oe(he[1]),Te=me),{type:"link",raw:he[0],text:me,href:Te,tokens:[{type:"text",raw:me,text:me}]}}},ie.url=function(te,ae){var he;if(he=this.rules.inline.url.exec(te)){var me,Te;if(he[2]==="@")me=oe(this.options.mangle?ae(he[0]):he[0]),Te="mailto:"+me;else{var Be;do Be=he[0],he[0]=this.rules.inline._backpedal.exec(he[0])[0];while(Be!==he[0]);me=oe(he[0]),he[1]==="www."?Te="http://"+me:Te=me}return{type:"link",raw:he[0],text:me,href:Te,tokens:[{type:"text",raw:me,text:me}]}}},ie.inlineText=function(te,ae,he){var me=this.rules.inline.text.exec(te);if(me){var Te;return ae?Te=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):oe(me[0]):me[0]:Te=oe(this.options.smartypants?he(me[0]):me[0]),{type:"text",raw:me[0],text:Te}}},ee}(),Re=P.noopTest,De=P.edit,Fe=P.merge,Ce={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Re,table:Re,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Ce._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ce._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ce.def=De(Ce.def).replace("label",Ce._label).replace("title",Ce._title).getRegex(),Ce.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ce.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Ce.item=De(Ce.item,"gm").replace(/bull/g,Ce.bullet).getRegex(),Ce.list=De(Ce.list).replace(/bull/g,Ce.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ce.def.source+")").getRegex(),Ce._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ce._comment=/<!--(?!-?>)[\s\S]*?-->/,Ce.html=De(Ce.html,"i").replace("comment",Ce._comment).replace("tag",Ce._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ce.paragraph=De(Ce._paragraph).replace("hr",Ce.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ce._tag).getRegex(),Ce.blockquote=De(Ce.blockquote).replace("paragraph",Ce.paragraph).getRegex(),Ce.normal=Fe({},Ce),Ce.gfm=Fe({},Ce.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ce.gfm.nptable=De(Ce.gfm.nptable).replace("hr",Ce.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ce._tag).getRegex(),Ce.gfm.table=De(Ce.gfm.table).replace("hr",Ce.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ce._tag).getRegex(),Ce.pedantic=Fe({},Ce.normal,{html:De(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ce._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Re,paragraph:De(Ce.normal._paragraph).replace("hr",Ce.hr).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",Ce.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var X={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Re,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Re,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};X._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",X.punctuation=De(X.punctuation).replace(/punctuation/g,X._punctuation).getRegex(),X._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",X._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",X.em.start=De(X.em.start).replace(/punctuation/g,X._punctuation).getRegex(),X.em.middle=De(X.em.middle).replace(/punctuation/g,X._punctuation).replace(/overlapSkip/g,X._overlapSkip).getRegex(),X.em.endAst=De(X.em.endAst,"g").replace(/punctuation/g,X._punctuation).getRegex(),X.em.endUnd=De(X.em.endUnd,"g").replace(/punctuation/g,X._punctuation).getRegex(),X.strong.start=De(X.strong.start).replace(/punctuation/g,X._punctuation).getRegex(),X.strong.middle=De(X.strong.middle).replace(/punctuation/g,X._punctuation).replace(/blockSkip/g,X._blockSkip).getRegex(),X.strong.endAst=De(X.strong.endAst,"g").replace(/punctuation/g,X._punctuation).getRegex(),X.strong.endUnd=De(X.strong.endUnd,"g").replace(/punctuation/g,X._punctuation).getRegex(),X.blockSkip=De(X._blockSkip,"g").getRegex(),X.overlapSkip=De(X._overlapSkip,"g").getRegex(),X._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,X._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,X._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,X.autolink=De(X.autolink).replace("scheme",X._scheme).replace("email",X._email).getRegex(),X._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,X.tag=De(X.tag).replace("comment",Ce._comment).replace("attribute",X._attribute).getRegex(),X._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,X._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,X._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,X.link=De(X.link).replace("label",X._label).replace("href",X._href).replace("title",X._title).getRegex(),X.reflink=De(X.reflink).replace("label",X._label).getRegex(),X.reflinkSearch=De(X.reflinkSearch,"g").replace("reflink",X.reflink).replace("nolink",X.nolink).getRegex(),X.normal=Fe({},X),X.pedantic=Fe({},X.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:De(/^!?\[(label)\]\((.*?)\)/).replace("label",X._label).getRegex(),reflink:De(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",X._label).getRegex()}),X.gfm=Fe({},X.normal,{escape:De(X.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),X.gfm.url=De(X.gfm.url,"i").replace("email",X.gfm._extended_email).getRegex(),X.breaks=Fe({},X.gfm,{br:De(X.br).replace("{2,}","*").getRegex(),text:De(X.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var L={block:Ce,inline:X},N=Y.defaults,J=L.block,ne=L.inline;function k(ee){return ee.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function Z(ee){var ie="",le,te,ae=ee.length;for(le=0;le<ae;le++)te=ee.charCodeAt(le),Math.random()>.5&&(te="x"+te.toString(16)),ie+="&#"+te+";";return ie}var H=function(){function ee(le){this.tokens=[],this.tokens.links=Object.create(null),this.options=le||N,this.options.tokenizer=this.options.tokenizer||new Se,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var te={block:J.normal,inline:ne.normal};this.options.pedantic?(te.block=J.pedantic,te.inline=ne.pedantic):this.options.gfm&&(te.block=J.gfm,this.options.breaks?te.inline=ne.breaks:te.inline=ne.gfm),this.tokenizer.rules=te}ee.lex=function(te,ae){var he=new ee(ae);return he.lex(te)};var ie=ee.prototype;return ie.lex=function(te){return te=te.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," "),this.blockTokens(te,this.tokens,!0),this.inline(this.tokens),this.tokens},ie.blockTokens=function(te,ae,he){ae===void 0&&(ae=[]),he===void 0&&(he=!0),te=te.replace(/^ +$/gm,"");for(var me,Te,Be,je;te;){if(me=this.tokenizer.space(te)){te=te.substring(me.raw.length),me.type&&ae.push(me);continue}if(me=this.tokenizer.code(te,ae)){te=te.substring(me.raw.length),me.type?ae.push(me):(je=ae[ae.length-1],je.raw+=`
|
|
`+me.raw,je.text+=`
|
|
`+me.text);continue}if(me=this.tokenizer.fences(te)){te=te.substring(me.raw.length),ae.push(me);continue}if(me=this.tokenizer.heading(te)){te=te.substring(me.raw.length),ae.push(me);continue}if(me=this.tokenizer.nptable(te)){te=te.substring(me.raw.length),ae.push(me);continue}if(me=this.tokenizer.hr(te)){te=te.substring(me.raw.length),ae.push(me);continue}if(me=this.tokenizer.blockquote(te)){te=te.substring(me.raw.length),me.tokens=this.blockTokens(me.text,[],he),ae.push(me);continue}if(me=this.tokenizer.list(te)){for(te=te.substring(me.raw.length),Be=me.items.length,Te=0;Te<Be;Te++)me.items[Te].tokens=this.blockTokens(me.items[Te].text,[],!1);ae.push(me);continue}if(me=this.tokenizer.html(te)){te=te.substring(me.raw.length),ae.push(me);continue}if(he&&(me=this.tokenizer.def(te))){te=te.substring(me.raw.length),this.tokens.links[me.tag]||(this.tokens.links[me.tag]={href:me.href,title:me.title});continue}if(me=this.tokenizer.table(te)){te=te.substring(me.raw.length),ae.push(me);continue}if(me=this.tokenizer.lheading(te)){te=te.substring(me.raw.length),ae.push(me);continue}if(he&&(me=this.tokenizer.paragraph(te))){te=te.substring(me.raw.length),ae.push(me);continue}if(me=this.tokenizer.text(te,ae)){te=te.substring(me.raw.length),me.type?ae.push(me):(je=ae[ae.length-1],je.raw+=`
|
|
`+me.raw,je.text+=`
|
|
`+me.text);continue}if(te){var qe="Infinite loop on byte: "+te.charCodeAt(0);if(this.options.silent){console.error(qe);break}else throw new Error(qe)}}return ae},ie.inline=function(te){var ae,he,me,Te,Be,je,qe=te.length;for(ae=0;ae<qe;ae++){je=te[ae];switch(je.type){case"paragraph":case"text":case"heading":{je.tokens=[],this.inlineTokens(je.text,je.tokens);break}case"table":{for(je.tokens={header:[],cells:[]},Te=je.header.length,he=0;he<Te;he++)je.tokens.header[he]=[],this.inlineTokens(je.header[he],je.tokens.header[he]);for(Te=je.cells.length,he=0;he<Te;he++)for(Be=je.cells[he],je.tokens.cells[he]=[],me=0;me<Be.length;me++)je.tokens.cells[he][me]=[],this.inlineTokens(Be[me],je.tokens.cells[he][me]);break}case"blockquote":{this.inline(je.tokens);break}case"list":{for(Te=je.items.length,he=0;he<Te;he++)this.inline(je.items[he].tokens);break}}}return te},ie.inlineTokens=function(te,ae,he,me,Te){ae===void 0&&(ae=[]),he===void 0&&(he=!1),me===void 0&&(me=!1),Te===void 0&&(Te="");var Be,je=te,qe;if(this.tokens.links){var at=Object.keys(this.tokens.links);if(at.length>0)for(;(qe=this.tokenizer.rules.inline.reflinkSearch.exec(je))!=null;)at.includes(qe[0].slice(qe[0].lastIndexOf("[")+1,-1))&&(je=je.slice(0,qe.index)+"["+"a".repeat(qe[0].length-2)+"]"+je.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(qe=this.tokenizer.rules.inline.blockSkip.exec(je))!=null;)je=je.slice(0,qe.index)+"["+"a".repeat(qe[0].length-2)+"]"+je.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;te;){if(Be=this.tokenizer.escape(te)){te=te.substring(Be.raw.length),ae.push(Be);continue}if(Be=this.tokenizer.tag(te,he,me)){te=te.substring(Be.raw.length),he=Be.inLink,me=Be.inRawBlock,ae.push(Be);continue}if(Be=this.tokenizer.link(te)){te=te.substring(Be.raw.length),Be.type==="link"&&(Be.tokens=this.inlineTokens(Be.text,[],!0,me)),ae.push(Be);continue}if(Be=this.tokenizer.reflink(te,this.tokens.links)){te=te.substring(Be.raw.length),Be.type==="link"&&(Be.tokens=this.inlineTokens(Be.text,[],!0,me)),ae.push(Be);continue}if(Be=this.tokenizer.strong(te,je,Te)){te=te.substring(Be.raw.length),Be.tokens=this.inlineTokens(Be.text,[],he,me),ae.push(Be);continue}if(Be=this.tokenizer.em(te,je,Te)){te=te.substring(Be.raw.length),Be.tokens=this.inlineTokens(Be.text,[],he,me),ae.push(Be);continue}if(Be=this.tokenizer.codespan(te)){te=te.substring(Be.raw.length),ae.push(Be);continue}if(Be=this.tokenizer.br(te)){te=te.substring(Be.raw.length),ae.push(Be);continue}if(Be=this.tokenizer.del(te)){te=te.substring(Be.raw.length),Be.tokens=this.inlineTokens(Be.text,[],he,me),ae.push(Be);continue}if(Be=this.tokenizer.autolink(te,Z)){te=te.substring(Be.raw.length),ae.push(Be);continue}if(!he&&(Be=this.tokenizer.url(te,Z))){te=te.substring(Be.raw.length),ae.push(Be);continue}if(Be=this.tokenizer.inlineText(te,me,k)){te=te.substring(Be.raw.length),Te=Be.raw.slice(-1),ae.push(Be);continue}if(te){var et="Infinite loop on byte: "+te.charCodeAt(0);if(this.options.silent){console.error(et);break}else throw new Error(et)}}return ae},K(ee,null,[{key:"rules",get:function(){return{block:J,inline:ne}}}]),ee}(),W=Y.defaults,z=P.cleanUrl,se=P.escape,pe=function(){function ee(le){this.options=le||W}var ie=ee.prototype;return ie.code=function(te,ae,he){var me=(ae||"").match(/\S*/)[0];if(this.options.highlight){var Te=this.options.highlight(te,me);Te!=null&&Te!==te&&(he=!0,te=Te)}return me?'<pre><code class="'+this.options.langPrefix+se(me,!0)+'">'+(he?te:se(te,!0))+`</code></pre>
|
|
`:"<pre><code>"+(he?te:se(te,!0))+`</code></pre>
|
|
`},ie.blockquote=function(te){return`<blockquote>
|
|
`+te+`</blockquote>
|
|
`},ie.html=function(te){return te},ie.heading=function(te,ae,he,me){return this.options.headerIds?"<h"+ae+' id="'+this.options.headerPrefix+me.slug(he)+'">'+te+"</h"+ae+`>
|
|
`:"<h"+ae+">"+te+"</h"+ae+`>
|
|
`},ie.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`},ie.list=function(te,ae,he){var me=ae?"ol":"ul",Te=ae&&he!==1?' start="'+he+'"':"";return"<"+me+Te+`>
|
|
`+te+"</"+me+`>
|
|
`},ie.listitem=function(te){return"<li>"+te+`</li>
|
|
`},ie.checkbox=function(te){return"<input "+(te?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},ie.paragraph=function(te){return"<p>"+te+`</p>
|
|
`},ie.table=function(te,ae){return ae&&(ae="<tbody>"+ae+"</tbody>"),`<table>
|
|
<thead>
|
|
`+te+`</thead>
|
|
`+ae+`</table>
|
|
`},ie.tablerow=function(te){return`<tr>
|
|
`+te+`</tr>
|
|
`},ie.tablecell=function(te,ae){var he=ae.header?"th":"td",me=ae.align?"<"+he+' align="'+ae.align+'">':"<"+he+">";return me+te+"</"+he+`>
|
|
`},ie.strong=function(te){return"<strong>"+te+"</strong>"},ie.em=function(te){return"<em>"+te+"</em>"},ie.codespan=function(te){return"<code>"+te+"</code>"},ie.br=function(){return this.options.xhtml?"<br/>":"<br>"},ie.del=function(te){return"<del>"+te+"</del>"},ie.link=function(te,ae,he){if(te=z(this.options.sanitize,this.options.baseUrl,te),te===null)return he;var me='<a href="'+se(te)+'"';return ae&&(me+=' title="'+ae+'"'),me+=">"+he+"</a>",me},ie.image=function(te,ae,he){if(te=z(this.options.sanitize,this.options.baseUrl,te),te===null)return he;var me='<img src="'+te+'" alt="'+he+'"';return ae&&(me+=' title="'+ae+'"'),me+=this.options.xhtml?"/>":">",me},ie.text=function(te){return te},ee}(),ge=function(){function ee(){}var ie=ee.prototype;return ie.strong=function(te){return te},ie.em=function(te){return te},ie.codespan=function(te){return te},ie.del=function(te){return te},ie.html=function(te){return te},ie.text=function(te){return te},ie.link=function(te,ae,he){return""+he},ie.image=function(te,ae,he){return""+he},ie.br=function(){return""},ee}(),Ne=function(){function ee(){this.seen={}}var ie=ee.prototype;return ie.slug=function(te){var ae=te.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ae)){var he=ae;do this.seen[he]++,ae=he+"-"+this.seen[he];while(this.seen.hasOwnProperty(ae))}return this.seen[ae]=0,ae},ee}(),Me=Y.defaults,ke=P.unescape,He=function(){function ee(le){this.options=le||Me,this.options.renderer=this.options.renderer||new pe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ge,this.slugger=new Ne}ee.parse=function(te,ae){var he=new ee(ae);return he.parse(te)};var ie=ee.prototype;return ie.parse=function(te,ae){ae===void 0&&(ae=!0);var he="",me,Te,Be,je,qe,at,et,_t,ut,$e,kt,Ut,yt,Wt,St,$t,Ft,wt,sr=te.length;for(me=0;me<sr;me++){$e=te[me];switch($e.type){case"space":continue;case"hr":{he+=this.renderer.hr();continue}case"heading":{he+=this.renderer.heading(this.parseInline($e.tokens),$e.depth,ke(this.parseInline($e.tokens,this.textRenderer)),this.slugger);continue}case"code":{he+=this.renderer.code($e.text,$e.lang,$e.escaped);continue}case"table":{for(_t="",et="",je=$e.header.length,Te=0;Te<je;Te++)et+=this.renderer.tablecell(this.parseInline($e.tokens.header[Te]),{header:!0,align:$e.align[Te]});for(_t+=this.renderer.tablerow(et),ut="",je=$e.cells.length,Te=0;Te<je;Te++){for(at=$e.tokens.cells[Te],et="",qe=at.length,Be=0;Be<qe;Be++)et+=this.renderer.tablecell(this.parseInline(at[Be]),{header:!1,align:$e.align[Be]});ut+=this.renderer.tablerow(et)}he+=this.renderer.table(_t,ut);continue}case"blockquote":{ut=this.parse($e.tokens),he+=this.renderer.blockquote(ut);continue}case"list":{for(kt=$e.ordered,Ut=$e.start,yt=$e.loose,je=$e.items.length,ut="",Te=0;Te<je;Te++)St=$e.items[Te],$t=St.checked,Ft=St.task,Wt="",St.task&&(wt=this.renderer.checkbox($t),yt?St.tokens.length>0&&St.tokens[0].type==="text"?(St.tokens[0].text=wt+" "+St.tokens[0].text,St.tokens[0].tokens&&St.tokens[0].tokens.length>0&&St.tokens[0].tokens[0].type==="text"&&(St.tokens[0].tokens[0].text=wt+" "+St.tokens[0].tokens[0].text)):St.tokens.unshift({type:"text",text:wt}):Wt+=wt),Wt+=this.parse(St.tokens,yt),ut+=this.renderer.listitem(Wt,Ft,$t);he+=this.renderer.list(ut,kt,Ut);continue}case"html":{he+=this.renderer.html($e.text);continue}case"paragraph":{he+=this.renderer.paragraph(this.parseInline($e.tokens));continue}case"text":{for(ut=$e.tokens?this.parseInline($e.tokens):$e.text;me+1<sr&&te[me+1].type==="text";)$e=te[++me],ut+=`
|
|
`+($e.tokens?this.parseInline($e.tokens):$e.text);he+=ae?this.renderer.paragraph(ut):ut;continue}default:{var vt='Token with "'+$e.type+'" type was not found.';if(this.options.silent){console.error(vt);return}else throw new Error(vt)}}}return he},ie.parseInline=function(te,ae){ae=ae||this.renderer;var he="",me,Te,Be=te.length;for(me=0;me<Be;me++){Te=te[me];switch(Te.type){case"escape":{he+=ae.text(Te.text);break}case"html":{he+=ae.html(Te.text);break}case"link":{he+=ae.link(Te.href,Te.title,this.parseInline(Te.tokens,ae));break}case"image":{he+=ae.image(Te.href,Te.title,Te.text);break}case"strong":{he+=ae.strong(this.parseInline(Te.tokens,ae));break}case"em":{he+=ae.em(this.parseInline(Te.tokens,ae));break}case"codespan":{he+=ae.codespan(Te.text);break}case"br":{he+=ae.br();break}case"del":{he+=ae.del(this.parseInline(Te.tokens,ae));break}case"text":{he+=ae.text(Te.text);break}default:{var je='Token with "'+Te.type+'" type was not found.';if(this.options.silent){console.error(je);return}else throw new Error(je)}}}return he},ee}(),Je=P.merge,rt=P.checkSanitizeDeprecation,xe=P.escape,Ue=Y.getDefaults,Qe=Y.changeDefaults,ze=Y.defaults;function Ae(ee,ie,le){if(typeof ee=="undefined"||ee===null)throw new Error("marked(): input parameter is undefined or null");if(typeof ee!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(ee)+", string expected");if(typeof ie=="function"&&(le=ie,ie=null),ie=Je({},Ae.defaults,ie||{}),rt(ie),le){var te=ie.highlight,ae;try{ae=H.lex(ee,ie)}catch(Be){return le(Be)}var he=function(je){var qe;if(!je)try{qe=He.parse(ae,ie)}catch(at){je=at}return ie.highlight=te,je?le(je):le(null,qe)};if(!te||te.length<3)return he();if(delete ie.highlight,!ae.length)return he();var me=0;Ae.walkTokens(ae,function(Be){Be.type==="code"&&(me++,setTimeout(function(){te(Be.text,Be.lang,function(je,qe){if(je)return he(je);qe!=null&&qe!==Be.text&&(Be.text=qe,Be.escaped=!0),me--,me===0&&he()})},0))}),me===0&&he();return}try{var Te=H.lex(ee,ie);return ie.walkTokens&&Ae.walkTokens(Te,ie.walkTokens),He.parse(Te,ie)}catch(Be){if(Be.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,ie.silent)return"<p>An error occurred:</p><pre>"+xe(Be.message+"",!0)+"</pre>";throw Be}}Ae.options=Ae.setOptions=function(ee){return Je(Ae.defaults,ee),Qe(Ae.defaults),Ae},Ae.getDefaults=Ue,Ae.defaults=ze,Ae.use=function(ee){var ie=Je({},ee);if(ee.renderer&&function(){var te=Ae.defaults.renderer||new pe,ae=function(Te){var Be=te[Te];te[Te]=function(){for(var je=arguments.length,qe=new Array(je),at=0;at<je;at++)qe[at]=arguments[at];var et=ee.renderer[Te].apply(te,qe);return et===!1&&(et=Be.apply(te,qe)),et}};for(var he in ee.renderer)ae(he);ie.renderer=te}(),ee.tokenizer&&function(){var te=Ae.defaults.tokenizer||new Se,ae=function(Te){var Be=te[Te];te[Te]=function(){for(var je=arguments.length,qe=new Array(je),at=0;at<je;at++)qe[at]=arguments[at];var et=ee.tokenizer[Te].apply(te,qe);return et===!1&&(et=Be.apply(te,qe)),et}};for(var he in ee.tokenizer)ae(he);ie.tokenizer=te}(),ee.walkTokens){var le=Ae.defaults.walkTokens;ie.walkTokens=function(te){ee.walkTokens(te),le&&le(te)}}Ae.setOptions(ie)},Ae.walkTokens=function(ee,ie){for(var le=U(ee),te;!(te=le()).done;){var ae=te.value;ie(ae);switch(ae.type){case"table":{for(var he=U(ae.tokens.header),me;!(me=he()).done;){var Te=me.value;Ae.walkTokens(Te,ie)}for(var Be=U(ae.tokens.cells),je;!(je=Be()).done;)for(var qe=je.value,at=U(qe),et;!(et=at()).done;){var _t=et.value;Ae.walkTokens(_t,ie)}break}case"list":{Ae.walkTokens(ae.items,ie);break}default:ae.tokens&&Ae.walkTokens(ae.tokens,ie)}}},Ae.Parser=He,Ae.parser=He.parse,Ae.Renderer=pe,Ae.TextRenderer=ge,Ae.Lexer=H,Ae.lexer=H.lex,Ae.Tokenizer=Se,Ae.Slugger=Ne,Ae.parse=Ae;var q=Ae;return q})},F0VM:function(ot,we,Q){ot.exports={flex_box_center:"flex_box_center___2fDN3",flex_space_between:"flex_space_between___BHBBv",flex_box_vertical_center:"flex_box_vertical_center___tpxsE",flex_box_center_end:"flex_box_center_end___rP7bQ",flex_box_column:"flex_box_column___1_rF-",md:"md___3SObb",title:"title___HfZ1b"}},FJUb:function(ot,we,Q){"use strict";Q.r(we);var de=Q("cWXX"),K=Q("/ezw"),O=Q("g9YV"),G=Q("wCAj"),U=Q("miYZ"),S=Q("tsqr"),Y=Q("/zsF"),M=Q("PArb"),e=Q("+L6B"),I=Q("2/Rp"),p=Q("14J3"),g=Q("BMrR"),c=Q("jCWc"),s=Q("kPKH"),i=Q("sPJy"),A=Q("bE4q"),o=Q("2qtc"),a=Q("kLXV"),r=Q("9og8"),t=Q("Pv/L"),b=Q("k1fw"),y=Q("tJVT"),E=Q("PpiC"),T=Q("WmNS"),v=Q.n(T),d=Q("q1tI"),n=Q.n(d),l=Q("xOOu"),u=Q.n(l),_=Q("Ty5D"),m=Q("9kvl"),h=Q("55Ip"),R=Q("jhfD"),F=Q("CTES"),C=Q("RCxd"),P=Q("/MfK"),j=Q("m3rI"),D=Q("xKgJ"),$=Q("1vsH"),oe=Q("GeSD"),Ee=Q.n(oe),ve=Q("deN7"),Le=Q("ErOA"),Se=Q("J66h"),Re=function(ge){var Ne=ge.shixunHomeworks,Me=ge.autoHeight,ke=ge.dispatch,He=Ne.shixunWorkReport,Je=He.stage_list,rt=He.work_id,xe=Object(_.i)(),Ue=Object(D.c)(),Qe=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"query_index",width:120},{title:"\u8BE6\u7EC6\u7ED3\u679C",dataIndex:"result",render:function(ee,ie,le){return Se.Base64.decode(ee)||"- -"}}];function ze(q,ee){return Object(Le.c)("student_works/".concat(rt,"/rep_passed_content.json"),{path:ee,game_id:q})}var Ae=Object($.p)(5,He.hack);return n.a.createElement(n.a.Fragment,null,Ae==null?void 0:Ae.map(function(q,ee){return n.a.createElement("div",{key:ee},q.map(function(ie,le){var te;return n.a.createElement("aside",{className:"pl30 pr30",key:le},n.a.createElement("div",{className:"".concat(Ee.a.shixunTitle," mt10")},n.a.createElement("div",{style:{display:"flex",width:"100%"}},n.a.createElement("span",{className:"fa fa-code "}),n.a.createElement("strong",{style:{flex:1},className:"c-black"},"\u7B2C",ee*5+le+1,"\u9898 ",ie.name),ie.is_finish&&n.a.createElement(h.a,{style:{marginLeft:20},onClick:function(he){he.preventDefault(),window.open(ie==null?void 0:ie.url),localStorage.setItem("program_homework",[xe.coursesId,xe.categoryId])},to:"".concat(ie==null?void 0:ie.url)},"\u67E5\u770B\u7B54\u9898\u8BE6\u60C5>>"))),n.a.createElement("div",{className:"font16 mt10"},ie.is_finish===!1&&"\u672C\u5173\u6682\u672A\u901A\u8FC7\uFF0C\u65E0\u901A\u5173\u4EE3\u7801",ie.is_finish&&n.a.createElement("aside",{className:Ee.a.shixunWrp},n.a.createElement(ve.a,{v:ie,shixunWorkReport:He,dispatch:ke,autoHeight:Me,languages:ie.languages,language:ie.language,game_id:ie.id,data:Se.Base64.decode(ie.code),diff_code_count:ie.diff_code_count,onPathChange:ze}))),n.a.createElement("aside",{className:"mt10 font16"},(te=ie.history)!==null&&te!==void 0&&te.length?n.a.createElement(G.a,{columns:Qe,pagination:{hideOnSinglePage:!0},dataSource:ie.history}):"\u672C\u5173\u65E0\u8BC4\u6D4B\u8BB0\u5F55"))}))}))},De=Object(m.a)(function(pe){var ge=pe.shixunHomeworks,Ne=pe.loading,Me=pe.globalSetting;return{shixunHomeworks:ge,globalSetting:Me,loading:Ne.effects}})(Re),Fe=Q("5NDa"),Ce=Q("5rEg"),X=Q("y8nQ"),L=Q("Vl3Y"),N=function(ge){var Ne,Me,ke,He=ge.shixunHomeworks,Je=ge.dispatch,rt=Object(E.a)(ge,["shixunHomeworks","dispatch"]),xe=Object(_.i)(),Ue=Object(d.useState)(!1),Qe=Object(y.a)(Ue,2),ze=Qe[0],Ae=Qe[1],q=L.a.useForm(),ee=Object(y.a)(q,1),ie=ee[0];Object(d.useEffect)(function(){if(He.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4")if(He.actionTabs.selectArrs.type==="1")ie.setFieldsValue({comment:He.actionTabs.selectArrs.v.comment,hidden_comment:He.actionTabs.selectArrs.v.hidden_comment});else{var te,ae,he,me,Te,Be;ie.setFieldsValue({comment:(te=He.actionTabs.selectArrs)===null||te===void 0||((ae=te.data)===null||ae===void 0||((he=ae.data)===null||he===void 0))?void 0:he.work_comment,hidden_comment:(me=He.actionTabs.selectArrs)===null||me===void 0||((Te=me.data)===null||Te===void 0||((Be=Te.data)===null||Be===void 0))?void 0:Be.work_comment_hidden})}},[He.actionTabs.key]);var le=function(){var te=Object(r.a)(v.a.mark(function ae(){var he,me,Te,Be,je,qe,at;return v.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return je=ie.getFieldValue(),qe=He.actionTabs.selectArrs.type==="1"?"/api/problems/".concat(He.actionTabs.selectArrs.v.identifier,"/hack_comment.json"):"/api/student_works/".concat(xe.homeworkId,"/shixun_work_comment.json"),_t.next=4,Object(Le.a)(qe,{method:"post",body:{hidden_comment:je.hidden_comment,comment:je.comment,language:(he=He.actionTabs.selectArrs)===null||he===void 0?void 0:he.language,user_id:(me=He.actionTabs.selectArrs)===null||me===void 0||((Te=me.data)===null||Te===void 0||((Be=Te.data)===null||Be===void 0))?void 0:Be.user_id}});case 4:at=_t.sent,at.status===0&&(S.b.success("\u8BC4\u9605\u6210\u529F"),ie.resetFields(),Je({type:"shixunHomeworks/setActionTabs",payload:{}}),Je({type:"shixunHomeworks/getShixunWorkReports",payload:Object(b.a)({},xe)}));case 6:case"end":return _t.stop()}},ae)}));return function(){return te.apply(this,arguments)}}();return n.a.createElement(n.a.Fragment,null,n.a.createElement(a.a,{centered:!0,title:n.a.createElement("span",null,((Ne=He.actionTabs.selectArrs)===null||Ne===void 0?void 0:Ne.type)==="1"?"\u70B9\u8BC4\u4EE3\u7801":"\u66F4\u6539\u70B9\u8BC4",((Me=He.actionTabs.selectArrs)===null||Me===void 0?void 0:Me.language)&&n.a.createElement("span",{style:{marginLeft:10,fontSize:14}},"\u4F7F\u7528\u8BED\u8A00\uFF1A",(ke=He.actionTabs.selectArrs)===null||ke===void 0?void 0:ke.language)),visible:He.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(r.a)(v.a.mark(function te(){var ae;return v.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:ae=ie.getFieldValue(),JSON.stringify(ae)==="{}"||ae.hidden_comment===""&&ae.comment===""?Ae(!0):le();case 2:case"end":return me.stop()}},te)})),onCancel:function(){Je({type:"shixunHomeworks/setActionTabs",payload:{}})}},n.a.createElement(L.a,{form:ie,onChange:function(){ze&&Ae(!1)}},n.a.createElement("p",null,"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),n.a.createElement(L.a.Item,{name:"comment"},n.a.createElement(Ce.a.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8})),n.a.createElement("p",null,"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),n.a.createElement(L.a.Item,{name:"hidden_comment"},n.a.createElement(Ce.a.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8}))),ze&&n.a.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A")))},J=Object(m.a)(function(pe){var ge=pe.shixunHomeworks;return{shixunHomeworks:ge}})(N),ne=Q("T7RX"),k=Q("9Bee"),Z=Q("XYT7"),H=Q("1n7x"),W=Q.n(H),z=function(ge){var Ne,Me,ke,He,Je,rt,xe,Ue,Qe,ze,Ae,q,ee,ie,le,te,ae,he,me,Te,Be,je,qe,at,et,_t,ut,$e,kt,Ut,yt,Wt=ge.shixunHomeworks,St=ge.globalSetting,$t=ge.loading,Ft=ge.dispatch,wt=Object(E.a)(ge,["shixunHomeworks","globalSetting","loading","dispatch"]),sr=Object(d.useState)(Object(b.a)({},Object(_.i)())),vt=Object(y.a)(sr,2),At=vt[0],Et=vt[1],hr=Object(_.i)(),Ir=Object(d.useState)([]),zr=Object(t.a)(Ir),nr=Object(d.useState)({last:!1}),Qt=Object(y.a)(nr,2),It=Qt[0],Ct=Qt[1],yr=Object(d.useState)({last:!1}),Nt=Object(y.a)(yr,2),Rr=Nt[0],er=Nt[1],ue=Object(d.useRef)(),ce=Object(d.useRef)(),ye=Object(d.useState)(!1),Ie=Object(y.a)(ye,2),We=Ie[0],Xe=Ie[1],Ze=Object(d.useState)(!1),tt=Object(y.a)(Ze,2),Ye=tt[0],nt=tt[1],it=Object(d.useState)(!1),gt=Object(y.a)(it,2),Ot=gt[0],Rt=gt[1],Ke=Wt.shixunWorkReport,Gt=Object(D.c)(),Jt=Object(d.useState)(new u.a),dr=Object(y.a)(Jt,2),Bt=dr[0],Pt=dr[1],Lt=Object(d.useState)(0),or=Object(y.a)(Lt,2),Zt=or[0],ir=or[1],Tt=Object(d.useState)([]),Er=Object(y.a)(Tt,2),Vt=Er[0],Or=Er[1],mr=Object(d.useState)(!1),Lr=Object(y.a)(mr,2),Br=Lr[0],Cr=Lr[1],br=Object(d.useState)(!1),_r=Object(y.a)(br,2),Nr=_r[0],Kr=_r[1];Object(d.useEffect)(function(){return Ft({type:"globalSetting/footerToggle",payload:!1}),function(){Ft({type:"globalSetting/footerToggle",payload:!0})}},[]),Object(d.useEffect)(function(){Wt.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&Vt.length>0&&vr("all")},[Vt]),Object(d.useEffect)(function(){Et(Object(b.a)({},hr))},[wt.location.pathname]);var kr=function(){document.body.scrollIntoView()};function Ur(){return Ar.apply(this,arguments)}function Ar(){return Ar=Object(r.a)(v.a.mark(function tr(){var Ht,xt,qt,bt,zt,Kt,rn;return v.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return qt=JSON.parse(sessionStorage.all_student_works_params||"{}"),gn.next=3,Ft({type:"shixunHomeworks/getAllStudentWorks",payload:Object(b.a)(Object(b.a)({},At),qt)});case 3:bt=gn.sent,Or(bt.all_student_works),zt=(Ht=bt.all_student_works)===null||Ht===void 0?void 0:Ht.map(function(jr){return String(jr.user_id)}).indexOf(At.homeworkId),zt===((xt=bt.all_student_works)===null||xt===void 0?void 0:xt.length)-1?Ct({last:!0}):Ct((Kt=bt.all_student_works)===null||Kt===void 0?void 0:Kt[zt+1]),zt===0?er({last:!0}):er((rn=bt.all_student_works)===null||rn===void 0?void 0:rn[zt-1]);case 8:case"end":return gn.stop()}},tr)})),Ar.apply(this,arguments)}var gr=function(){document.querySelectorAll("canvas").forEach(function(Ht){(!Ht.clientWidth||!Ht.clientHeight)&&Ht.remove()})},fr=function(){ue.current.offsetHeight>62e3?Rt(!1):Rt(!0)},vr=function(){var tr=Object(r.a)(v.a.mark(function Ht(xt){var qt,bt,zt,Kt,rn,nn;return v.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:if(rn=function(){return rn=Object(r.a)(v.a.mark(function an(){var Wr;return v.a.wrap(function(xr){for(;;)switch(xr.prev=xr.next){case 0:return xr.next=2,Ft({type:"shixunHomeworks/getShixunWorkReports",payload:{homeworkId:Vt[qt].user_id}});case 2:Wr=xr.sent,kr(),qt++,setTimeout(Object(r.a)(v.a.mark(function ln(){var Jr,En,bn,$r,qr,sn,un;return v.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:gr(),En=Bt.folder("".concat(Wr==null?void 0:Wr.username)),bn=document.querySelector("#export-all").children,$r=W()(),qr=v.a.mark(function on(_n){return v.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,$r.set(zt).from(bn[_n]).toContainer().toCanvas().toPdf().get("pdf").then(function(){var jt=Object(r.a)(v.a.mark(function Sr(Zr){return v.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:if(!(_n<bn.length-1)){wn.next=3;break}return wn.next=3,Zr.addPage();case 3:case"end":return wn.stop()}},Sr)}));return function(Sr){return jt.apply(this,arguments)}}());case 2:case"end":return Mt.stop()}},on)}),sn=0;case 6:if(!(sn<bn.length)){Pr.next=11;break}return Pr.delegateYield(qr(sn),"t0",8);case 8:sn++,Pr.next=6;break;case 11:En.file("".concat(Vt[qt-1].student_work_user_name).concat(qt,".pdf"),$r.output("blob")),un=En.folder("\u4EE3\u7801\u6587\u4EF6"),Wr==null||((Jr=Wr.shixun_detail)===null||Jr===void 0)||Jr.map(function(on,_n){var In,Mt=un.folder("\u7B2C".concat(_n+1,"\u5173-").concat(on.subject,"-").concat(on.id));on==null||((In=on.game_codes)===null||In===void 0)||In.map(function(jt){Mt.file("".concat(jt.filename,".txt"),jt==null?void 0:jt.content)})}),bt.update({content:n.a.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",n.a.createElement("span",{className:"c-blue"},qt),"/",Vt==null?void 0:Vt.length,n.a.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),qt==(Vt==null?void 0:Vt.length)?(bt.destroy(),cn()):Kt();case 16:case"end":return Pr.stop()}},ln)})),2200);case 6:case"end":return xr.stop()}},an)})),rn.apply(this,arguments)},Kt=function(){return rn.apply(this,arguments)},qt=0,bt=a.a.info({width:460,title:n.a.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",n.a.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:n.a.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",n.a.createElement("span",{className:"c-blue"},qt+1),"/",xt!=="all"?1:Vt==null?void 0:Vt.length,n.a.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:Ee.a.modal,onOk:function(){}}),zt={margin:[0,0],filename:"".concat(Ke.username,".pdf"),html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}},!(xt!=="all"||(Vt==null?void 0:Vt.length)<2)){jr.next=12;break}return jr.delegateYield(v.a.mark(function Yr(){var an,Wr,Sn,xr,ln,Jr,En;return v.a.wrap(function($r){for(;;)switch($r.prev=$r.next){case 0:gr(),kr(),Wr=ce.current.children,Sn=W()(),xr=Bt.folder("".concat(Ke==null?void 0:Ke.username)),ln=v.a.mark(function qr(sn){return v.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:return vn.next=2,Sn.set(zt).from(Wr[sn]).toContainer().toCanvas().toPdf().get("pdf").then(function(){var Pr=Object(r.a)(v.a.mark(function on(_n){return v.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:if(!(sn<Wr.length-1)){Mt.next=3;break}return Mt.next=3,_n.addPage();case 3:case"end":return Mt.stop()}},on)}));return function(on){return Pr.apply(this,arguments)}}());case 2:case"end":return vn.stop()}},qr)}),Jr=0;case 7:if(!(Jr<Wr.length)){$r.next=12;break}return $r.delegateYield(ln(Jr),"t0",9);case 9:Jr++,$r.next=7;break;case 12:return Xe(!1),xr.file("".concat(Ke.username,".pdf"),Sn.output("blob"),{base64:!1}),En=xr.folder("\u4EE3\u7801\u6587\u4EF6"),Ke==null||((an=Ke.shixun_detail)===null||an===void 0)||an.map(function(qr,sn){var un,vn=En.folder("\u7B2C".concat(sn+1,"\u5173-").concat(qr.subject,"-").concat(qr.id));qr==null||((un=qr.game_codes)===null||un===void 0)||un.map(function(Pr){vn.file("".concat(Pr.filename,".txt"),Pr==null?void 0:Pr.content)})}),bt.destroy(),cn(),$r.abrupt("return",{v:void 0});case 19:case"end":return $r.stop()}},Yr)})(),"t0",7);case 7:if(nn=jr.t0,!(typeof nn=="object")){jr.next=10;break}return jr.abrupt("return",nn.v);case 10:jr.next=13;break;case 12:Kt();case 13:case"end":return jr.stop()}},Ht)}));return function(xt){return tr.apply(this,arguments)}}(),cn=function(){Bt.generateAsync({type:"blob"}).then(function(Ht){var xt=document.createElement("a");xt.href=window.URL.createObjectURL(Ht),xt.download=Ke.course_name+".zip",document.body.appendChild(xt);var qt=document.createEvent("MouseEvents");qt.initEvent("click",!1,!1),xt.dispatchEvent(qt),document.body.removeChild(xt),Pt(new u.a)}),Rt(!1)};Object(d.useEffect)(function(){tn()},[At.homeworkId]);var tn=function(){var tr=Object(r.a)(v.a.mark(function Ht(){return v.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return nt(!0),qt.next=3,Ft({type:"shixunHomeworks/getShixunWorkReports",payload:Object(b.a)({},At)});case 3:nt(!1),Object(D.c)()&&Ur();case 5:case"end":return qt.stop()}},Ht)}));return function(){return tr.apply(this,arguments)}}(),Xr=[{title:"\u9898\u53F7",dataIndex:"name",render:function(Ht,xt,qt){return qt+1}},{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,width:"30%"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finish_time",width:"200px",render:function(Ht,xt,qt){var bt,zt;return n.a.createElement("div",null,n.a.createElement("p",null,Ht||"- -"),xt==null||((bt=xt.subitem)===null||bt===void 0||((zt=bt.map(function(Kt){return Kt.finish_time}))===null||zt===void 0))?void 0:zt.map(function(Kt){return n.a.createElement("p",null,Kt||"- -")}))}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"submit_count",render:function(Ht,xt,qt){var bt,zt;return n.a.createElement("div",null,n.a.createElement("p",null,Ht||"- -"),xt==null||((bt=xt.subitem)===null||bt===void 0||((zt=bt.map(function(Kt){return Kt.submit_count}))===null||zt===void 0))?void 0:zt.map(function(Kt){return n.a.createElement("p",null,Kt||"- -")}))}},{title:"\u8FD0\u884C\u65F6\u95F4\uFF08ms\uFF09",dataIndex:"run_time",render:function(Ht,xt,qt){var bt,zt;return n.a.createElement("div",null,n.a.createElement("p",null,Ht||"- -"),xt==null||((bt=xt.subitem)===null||bt===void 0||((zt=bt.map(function(Kt){return Kt.run_time}))===null||zt===void 0))?void 0:zt.map(function(Kt){return n.a.createElement("p",null,Kt||"- -")}))}},{title:"\u5185\u5B58\uFF08kb\uFF09",dataIndex:"memory",render:function(Ht,xt,qt){var bt,zt;return n.a.createElement("div",null,n.a.createElement("p",null,Ht||"- -"),xt==null||((bt=xt.subitem)===null||bt===void 0||((zt=bt.map(function(Kt){return Kt.memory}))===null||zt===void 0))?void 0:zt.map(function(Kt){return n.a.createElement("p",null,Kt||"- -")}))}},{title:"\u4F7F\u7528\u8BED\u8A00",dataIndex:"language",render:function(Ht,xt,qt){var bt,zt;return n.a.createElement("div",null,n.a.createElement("p",null,Ht||"- -"),xt==null||((bt=xt.subitem)===null||bt===void 0||((zt=bt.map(function(Kt){return Kt.language}))===null||zt===void 0))?void 0:zt.map(function(Kt){return n.a.createElement("p",null,Kt||"- -")}))}},{title:"\u5F97\u5206",dataIndex:"score",render:function(Ht,xt,qt){return n.a.createElement("div",null,n.a.createElement("p",null,Ht||"- -"))}},{title:"\u6392\u540D",dataIndex:"rank",render:function(Ht,xt,qt){var bt,zt;return n.a.createElement("div",null,n.a.createElement("p",null,Ht||"- -"),xt==null||((bt=xt.subitem)===null||bt===void 0||((zt=bt.map(function(Kt){return Kt.rank}))===null||zt===void 0))?void 0:zt.map(function(Kt){return n.a.createElement("p",null,Kt||"- -")}))}}],Vn=function(Ht){Ft({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(function(){Ht==="next"?m.d.push("/classrooms/".concat(At.coursesId,"/program_homework/").concat(At.categoryId,"/").concat(It==null?void 0:It.student_work_id,"/").concat(It==null?void 0:It.user_id,"/comment")):m.d.push("/classrooms/".concat(At.coursesId,"/program_homework/").concat(At.categoryId,"/").concat(It==null?void 0:It.student_work_id,"/").concat(Rr==null?void 0:Rr.user_id,"/comment"))},200)};return n.a.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},n.a.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},n.a.createElement(K.a,{loading:Ye,active:!0,avatar:{size:40},paragraph:{rows:5}},n.a.createElement("div",{className:"edu-container"},(Ke==null||((Ne=Ke.category)===null||Ne===void 0)?void 0:Ne.course_id)&&n.a.createElement("section",{className:"animated fadeIn"},n.a.createElement("aside",{className:""},(Ke==null?void 0:Ke.category)&&n.a.createElement(A.a,{separator:">"},n.a.createElement(A.a.Item,null,n.a.createElement(h.a,{to:"/classrooms/".concat(Ke==null||((Me=Ke.category)===null||Me===void 0)?void 0:Me.course_id,"/program_homework")},Ke==null||((ke=Ke.category)===null||ke===void 0)?void 0:ke.course_name)),n.a.createElement(A.a.Item,null,n.a.createElement(h.a,{to:"/classrooms/".concat(Ke==null||((He=Ke.category)===null||He===void 0)?void 0:He.course_id,"/program_homework")},Ke.category.category_name)),n.a.createElement(A.a.Item,null,n.a.createElement(h.a,{to:"/classrooms/".concat(Ke==null||((Je=Ke.category)===null||Je===void 0)?void 0:Je.course_id,"/program_homework/").concat(At==null?void 0:At.categoryId,"/detail")},"\u4F5C\u4E1A\u8BE6\u60C5")),n.a.createElement(A.a.Item,null,Ke==null||((rt=Ke.data)===null||rt===void 0)?void 0:rt.user_name))),n.a.createElement("aside",{className:[Ee.a.title1,"mt20"].join(" ")},n.a.createElement(g.a,{align:"middle"},n.a.createElement(s.a,{flex:1},n.a.createElement(h.a,{to:"/classrooms/".concat(At.coursesId,"/program_homework/").concat(At==null?void 0:At.categoryId,"/detail")},n.a.createElement(R.a,{className:"font16 c-black"})),n.a.createElement("strong",{className:"font20 ml5"},Ke==null||((xe=Ke.category)===null||xe===void 0)?void 0:xe.homework_name),n.a.createElement($.m,{temporary:!0,status:Ke.homework_status}))))),n.a.createElement("aside",{className:"mt30 relative"})),n.a.createElement("aside",{className:"edu-container bg-white",ref:ue},n.a.createElement("div",{id:"export-all",ref:ce},n.a.createElement("div",{id:"export-all-1"},n.a.createElement("div",{className:Ee.a.title},n.a.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),n.a.createElement("div",null,Object(D.c)()&&n.a.createElement(I.a,{className:"mr20",type:"primary",onClick:function(){Ft({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Ke.user_id,data:Object(b.a)({},Ke)}}})}},n.a.createElement(F.a,null),Ke!=null&&(Ue=Ke.data)!==null&&Ue!==void 0&&Ue.has_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),n.a.createElement(M.a,{style:{marginTop:0}}),n.a.createElement(g.a,{className:"pl30 pr30"},n.a.createElement(s.a,null,n.a.createElement("img",{className:Ee.a.userPic,src:"".concat(j.a.IMG_SERVER,"/images/").concat(Ke==null||((Qe=Ke.data)===null||Qe===void 0)?void 0:Qe.image_url),alt:Ke==null||((ze=Ke.data)===null||ze===void 0)?void 0:ze.username})),n.a.createElement(s.a,null,n.a.createElement("span",{className:"font16 ml40"},Ke==null||((Ae=Ke.data)===null||Ae===void 0)?void 0:Ae.user_name),n.a.createElement($.e,{status:Ke==null||((q=Ke.data)===null||q===void 0)?void 0:q.compelete_status}),n.a.createElement("ul",{className:Ee.a.userInfo},n.a.createElement("li",null,"\u5B66\u53F7\uFF1A",(Ke==null||((ee=Ke.data)===null||ee===void 0)?void 0:ee.student_id)||"--"),n.a.createElement("li",null,"\u5206\u73ED\uFF1A",(Ke==null||((ie=Ke.data)===null||ie===void 0)?void 0:ie.course_group)||"--"),n.a.createElement("br",null),n.a.createElement("li",null,"\u622A\u6B62\u524D\u5B8C\u6210\u5237\u9898\uFF1A",n.a.createElement("span",{className:"c-red"},Ke==null||((le=Ke.data)===null||le===void 0)?void 0:le.finish_do)),n.a.createElement("li",null,"\u6700\u65B0\u5B8C\u6210\u5237\u9898\uFF1A",n.a.createElement("span",{className:"c-red"},(Ke==null||((te=Ke.data)===null||te===void 0)?void 0:te.latest_do)||"-")))),n.a.createElement("ul",{className:[Ee.a.listItem,"mt10"].join(" ")},n.a.createElement("li",null,n.a.createElement("strong",null,"\u5B8C\u6210\u65F6\u95F4"),n.a.createElement("div",{className:"c-light-black mt20"},(Ke==null?void 0:Ke.data)&&(Ke==null||((ae=Ke.data)===null||ae===void 0)?void 0:ae.finish_time))),n.a.createElement("li",null,n.a.createElement("strong",null,"\u5B8C\u6210\u65F6\u957F",n.a.createElement("i",{onClick:function(Ht){Ht.stopPropagation(),Ht.preventDefault(),Kr(!0)},style:{marginLeft:4,display:"none",color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),n.a.createElement("div",{className:"c-light-black mt20"},Ke==null||((he=Ke.data)===null||he===void 0)?void 0:he.finish_time_long)),n.a.createElement("li",null,n.a.createElement("strong",null,"\u8BC4\u6D4B\u6B21\u6570"),n.a.createElement("div",{className:"mt20"},Ke==null||((me=Ke.data)===null||me===void 0)?void 0:me.submit_count)),n.a.createElement("li",null,n.a.createElement("strong",null,"\u901A\u8FC7\u7387"),n.a.createElement("div",{className:"mt20"},n.a.createElement("span",null,(Ke==null||((Te=Ke.data)===null||Te===void 0)?void 0:Te.pass_rate)||"- -"))),n.a.createElement("li",null,n.a.createElement("strong",null,"\u5F97\u5206"),n.a.createElement("div",{className:"mt20"},n.a.createElement("span",{className:"c-orange"},Ke==null||((Be=Ke.data)===null||Be===void 0)?void 0:Be.score))),n.a.createElement("li",null,n.a.createElement("strong",null,"\u7EC3\u4E60\u603B\u6392\u540D"),n.a.createElement("div",{className:"mt20"},n.a.createElement("span",{className:"c-orange"},Ke==null||((je=Ke.data)===null||je===void 0)?void 0:je.total_rank))),n.a.createElement("li",null,n.a.createElement("strong",null,"\u5206\u73ED\u6392\u540D"),n.a.createElement("div",{className:"mt20"},n.a.createElement("span",{className:"c-orange"},Ke==null||((qe=Ke.data)===null||qe===void 0)?void 0:qe.class_rank))))),n.a.createElement(M.a,{style:{margin:0}}),((Ke==null||((at=Ke.data)===null||at===void 0)?void 0:at.work_comment_hidden)||(Ke==null||((et=Ke.data)===null||et===void 0)?void 0:et.work_comment))&&n.a.createElement("div",null,n.a.createElement(g.a,{align:"middle"},n.a.createElement(s.a,{flex:1},n.a.createElement("h1",{className:Ee.a.title},"\u70B9\u8BC4\u5185\u5BB9")),n.a.createElement(s.a,{className:"pr30"},Object(D.c)()&&n.a.createElement(I.a,{onClick:Object(r.a)(v.a.mark(function tr(){return v.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:a.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:n.a.createElement(C.a,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk:function(){return Object(r.a)(v.a.mark(function bt(){var zt,Kt;return v.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return nn.next=2,Object(Z.m)({comment_id:Ke==null||((zt=Ke.data)===null||zt===void 0)?void 0:zt.comment_id,homeworkId:At.homeworkId});case 2:Kt=nn.sent,Kt.status===0&&(S.b.success("\u5220\u9664\u6210\u529F"),Ft({type:"shixunHomeworks/getShixunWorkReports",payload:Object(b.a)({},At)}));case 4:case"end":return nn.stop()}},bt)}))()}});case 1:case"end":return xt.stop()}},tr)}))},n.a.createElement(P.a,null),"\u5220\u9664"))),n.a.createElement(M.a,{style:{margin:0}}),(Ke==null||((_t=Ke.data)===null||_t===void 0)?void 0:_t.work_comment)&&n.a.createElement("aside",{className:"pl30 pr30 mt20"},n.a.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),n.a.createElement("br",null),n.a.createElement(k.a,{value:Ke==null||((ut=Ke.data)===null||ut===void 0)?void 0:ut.work_comment})),(Ke==null||(($e=Ke.data)===null||$e===void 0)?void 0:$e.work_comment_hidden)&&n.a.createElement("aside",{className:"pl30 pr30 mt20"},n.a.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),n.a.createElement("br",null),n.a.createElement(k.a,{value:Ke==null||((kt=Ke.data)===null||kt===void 0)?void 0:kt.work_comment_hidden}))),n.a.createElement("h1",{className:Ee.a.title},"\u9636\u6BB5\u6210\u7EE9"),n.a.createElement("aside",{className:"pl30 pr30"},n.a.createElement(G.a,{dataSource:Ke==null?void 0:Ke.hack,pagination:!1,columns:Xr})),(Ke==null||((Ut=Ke.data)===null||Ut===void 0)?void 0:Ut.work_description)&&n.a.createElement(n.a.Fragment,null,n.a.createElement("h1",{className:Ee.a.title},"\u4E2A\u4EBA\u603B\u7ED3"),n.a.createElement("aside",{className:"pl30 pr30"},n.a.createElement(k.a,{value:Ke==null||((yt=Ke.data)===null||yt===void 0)?void 0:yt.work_description}))),n.a.createElement("h1",{className:Ee.a.title},"\u5237\u9898\u8BE6\u60C5")),n.a.createElement(De,{autoHeight:Ot}))),Object(D.c)()&&n.a.createElement("aside",{className:"".concat(Ee.a.footerBar," ").concat(We?Ee.a.footerBarStatic:"")},n.a.createElement("aside",{className:"edu-container"},n.a.createElement(g.a,{align:"middle"},n.a.createElement(s.a,{flex:"1"},n.a.createElement(h.a,{className:Ee.a.exitComment,to:"/classrooms/".concat(At.coursesId,"/program_homework/").concat(At.categoryId,"/detail")},"\u8FD4\u56DE\u5217\u8868")),n.a.createElement(s.a,{flex:"1",className:"tr"},Object(D.c)()&&n.a.createElement(I.a,{type:"primary",onClick:Object(r.a)(v.a.mark(function tr(){return v.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:Ft({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Ke.user_id,data:Object(b.a)({},Ke)}}});case 1:case"end":return xt.stop()}},tr)}))},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),n.a.createElement(J,null),n.a.createElement(ne.a,null),n.a.createElement(a.a,{visible:Br,width:860,centered:!0,onCancel:function(){Cr(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},n.a.createElement("div",{style:{color:"#333333",fontWeight:400}},n.a.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),n.a.createElement("br",null),n.a.createElement("span",null,"\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),n.a.createElement("br",null),n.a.createElement("span",null," ","\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),n.a.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," ","\u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5"," "),n.a.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),n.a.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},n.a.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),n.a.createElement("br",null),n.a.createElement("span",{style:{}},"\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002"," "),n.a.createElement("br",null),n.a.createElement("span",null," ","\u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"),n.a.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," ","\u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5"," "),n.a.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),n.a.createElement("br",null),n.a.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),n.a.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},n.a.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),n.a.createElement("br",null),n.a.createElement("span",{style:{}},"\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),n.a.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},n.a.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),n.a.createElement("br",null),n.a.createElement("span",{style:{}},"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u7ACB\u5373\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))),n.a.createElement(a.a,{visible:Nr,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:function(){Kr(!1)},width:600},n.a.createElement("div",{style:{fontWeight:400,color:"#333333"}},n.a.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",n.a.createElement("span",{style:{color:"#145DFF"}},"\u9875\u9762\u505C\u7559\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),n.a.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",n.a.createElement("span",{style:{color:"#145DFF"}},"\u5173\u5361\u603B\u8017\u65F6"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),n.a.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",n.a.createElement("span",{style:{color:"#145DFF"}},"\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u901A\u5173\u65F6\u95F4\uFF0C\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\u3002"))))},se=we.default=Object(m.a)(function(pe){var ge=pe.shixunHomeworks,Ne=pe.loading,Me=pe.globalSetting;return{shixunHomeworks:ge,globalSetting:Me,loading:Ne.effects}})(z)},FWmy:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return de});function de(K,O){if(!K)throw new Error(O?`Assertion failed (${O})`:"Assertion Failed")}},GeSD:function(ot,we,Q){ot.exports={flex_box_center:"flex_box_center___3psDK",flex_space_between:"flex_space_between___3-Gwv",flex_box_vertical_center:"flex_box_vertical_center___KuXCa",flex_box_center_end:"flex_box_center_end___3yf7b",flex_box_column:"flex_box_column___CeV--",title:"title___1pfhN",export:"export___1Foif",title1_right:"title1_right___1b0PH",userPic:"userPic___2fhW8",userInfo:"userInfo___3ELpM",listItem:"listItem___2hXBP",rightInfo:"rightInfo___35dRu",shixunTitle:"shixunTitle___1yeYv",shixunWrp:"shixunWrp___5RaDa",footerBar:"footerBar___1_Vn_",footerBarStatic:"footerBarStatic___KgV2n",exitComment:"exitComment___2Z6mb",nextComment:"nextComment___2qKB7",modal:"modal___2apBa"}},H7XF:function(ot,we,Q){"use strict";we.byteLength=M,we.toByteArray=I,we.fromByteArray=c;for(var de=[],K=[],O=typeof Uint8Array!="undefined"?Uint8Array:Array,G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",U=0,S=G.length;U<S;++U)de[U]=G[U],K[G.charCodeAt(U)]=U;K["-".charCodeAt(0)]=62,K["_".charCodeAt(0)]=63;function Y(s){var i=s.length;if(i%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var A=s.indexOf("=");A===-1&&(A=i);var o=A===i?0:4-A%4;return[A,o]}function M(s){var i=Y(s),A=i[0],o=i[1];return(A+o)*3/4-o}function e(s,i,A){return(i+A)*3/4-A}function I(s){var i,A=Y(s),o=A[0],a=A[1],r=new O(e(s,o,a)),t=0,b=a>0?o-4:o,y;for(y=0;y<b;y+=4)i=K[s.charCodeAt(y)]<<18|K[s.charCodeAt(y+1)]<<12|K[s.charCodeAt(y+2)]<<6|K[s.charCodeAt(y+3)],r[t++]=i>>16&255,r[t++]=i>>8&255,r[t++]=i&255;return a===2&&(i=K[s.charCodeAt(y)]<<2|K[s.charCodeAt(y+1)]>>4,r[t++]=i&255),a===1&&(i=K[s.charCodeAt(y)]<<10|K[s.charCodeAt(y+1)]<<4|K[s.charCodeAt(y+2)]>>2,r[t++]=i>>8&255,r[t++]=i&255),r}function p(s){return de[s>>18&63]+de[s>>12&63]+de[s>>6&63]+de[s&63]}function g(s,i,A){for(var o,a=[],r=i;r<A;r+=3)o=(s[r]<<16&16711680)+(s[r+1]<<8&65280)+(s[r+2]&255),a.push(p(o));return a.join("")}function c(s){for(var i,A=s.length,o=A%3,a=[],r=16383,t=0,b=A-o;t<b;t+=r)a.push(g(s,t,t+r>b?b:t+r));return o===1?(i=s[A-1],a.push(de[i>>2]+de[i<<4&63]+"==")):o===2&&(i=(s[A-2]<<8)+s[A-1],a.push(de[i>>10]+de[i>>4&63]+de[i<<2&63]+"=")),a.join("")}},HDXh:function(ot,we,Q){"use strict";(function(de){/*!
|
|
* The buffer module from node.js, for the browser.
|
|
*
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
* @license MIT
|
|
*/var K=Q("H7XF"),O=Q("kVK+"),G=Q("49sm");we.Buffer=M,we.SlowBuffer=a,we.INSPECT_MAX_BYTES=50,M.TYPED_ARRAY_SUPPORT=de.TYPED_ARRAY_SUPPORT!==void 0?de.TYPED_ARRAY_SUPPORT:U(),we.kMaxLength=S();function U(){try{var Z=new Uint8Array(1);return Z.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Z.foo()===42&&typeof Z.subarray=="function"&&Z.subarray(1,1).byteLength===0}catch(H){return!1}}function S(){return M.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Y(Z,H){if(S()<H)throw new RangeError("Invalid typed array length");return M.TYPED_ARRAY_SUPPORT?(Z=new Uint8Array(H),Z.__proto__=M.prototype):(Z===null&&(Z=new M(H)),Z.length=H),Z}function M(Z,H,W){if(!M.TYPED_ARRAY_SUPPORT&&!(this instanceof M))return new M(Z,H,W);if(typeof Z=="number"){if(typeof H=="string")throw new Error("If encoding is specified then the first argument must be a string");return g(this,Z)}return e(this,Z,H,W)}M.poolSize=8192,M._augment=function(Z){return Z.__proto__=M.prototype,Z};function e(Z,H,W,z){if(typeof H=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&H instanceof ArrayBuffer?i(Z,H,W,z):typeof H=="string"?c(Z,H,W):A(Z,H)}M.from=function(Z,H,W){return e(null,Z,H,W)},M.TYPED_ARRAY_SUPPORT&&(M.prototype.__proto__=Uint8Array.prototype,M.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&M[Symbol.species]===M&&Object.defineProperty(M,Symbol.species,{value:null,configurable:!0}));function I(Z){if(typeof Z!="number")throw new TypeError('"size" argument must be a number');if(Z<0)throw new RangeError('"size" argument must not be negative')}function p(Z,H,W,z){return I(H),H<=0?Y(Z,H):W!==void 0?typeof z=="string"?Y(Z,H).fill(W,z):Y(Z,H).fill(W):Y(Z,H)}M.alloc=function(Z,H,W){return p(null,Z,H,W)};function g(Z,H){if(I(H),Z=Y(Z,H<0?0:o(H)|0),!M.TYPED_ARRAY_SUPPORT)for(var W=0;W<H;++W)Z[W]=0;return Z}M.allocUnsafe=function(Z){return g(null,Z)},M.allocUnsafeSlow=function(Z){return g(null,Z)};function c(Z,H,W){if((typeof W!="string"||W==="")&&(W="utf8"),!M.isEncoding(W))throw new TypeError('"encoding" must be a valid string encoding');var z=r(H,W)|0;Z=Y(Z,z);var se=Z.write(H,W);return se!==z&&(Z=Z.slice(0,se)),Z}function s(Z,H){var W=H.length<0?0:o(H.length)|0;Z=Y(Z,W);for(var z=0;z<W;z+=1)Z[z]=H[z]&255;return Z}function i(Z,H,W,z){if(H.byteLength,W<0||H.byteLength<W)throw new RangeError("'offset' is out of bounds");if(H.byteLength<W+(z||0))throw new RangeError("'length' is out of bounds");return W===void 0&&z===void 0?H=new Uint8Array(H):z===void 0?H=new Uint8Array(H,W):H=new Uint8Array(H,W,z),M.TYPED_ARRAY_SUPPORT?(Z=H,Z.__proto__=M.prototype):Z=s(Z,H),Z}function A(Z,H){if(M.isBuffer(H)){var W=o(H.length)|0;return Z=Y(Z,W),Z.length===0||H.copy(Z,0,0,W),Z}if(H){if(typeof ArrayBuffer!="undefined"&&H.buffer instanceof ArrayBuffer||"length"in H)return typeof H.length!="number"||k(H.length)?Y(Z,0):s(Z,H);if(H.type==="Buffer"&&G(H.data))return s(Z,H.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function o(Z){if(Z>=S())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+S().toString(16)+" bytes");return Z|0}function a(Z){return+Z!=Z&&(Z=0),M.alloc(+Z)}M.isBuffer=function(H){return!!(H!=null&&H._isBuffer)},M.compare=function(H,W){if(!M.isBuffer(H)||!M.isBuffer(W))throw new TypeError("Arguments must be Buffers");if(H===W)return 0;for(var z=H.length,se=W.length,pe=0,ge=Math.min(z,se);pe<ge;++pe)if(H[pe]!==W[pe]){z=H[pe],se=W[pe];break}return z<se?-1:se<z?1:0},M.isEncoding=function(H){switch(String(H).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}},M.concat=function(H,W){if(!G(H))throw new TypeError('"list" argument must be an Array of Buffers');if(H.length===0)return M.alloc(0);var z;if(W===void 0)for(W=0,z=0;z<H.length;++z)W+=H[z].length;var se=M.allocUnsafe(W),pe=0;for(z=0;z<H.length;++z){var ge=H[z];if(!M.isBuffer(ge))throw new TypeError('"list" argument must be an Array of Buffers');ge.copy(se,pe),pe+=ge.length}return se};function r(Z,H){if(M.isBuffer(Z))return Z.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(Z)||Z instanceof ArrayBuffer))return Z.byteLength;typeof Z!="string"&&(Z=""+Z);var W=Z.length;if(W===0)return 0;for(var z=!1;;)switch(H){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":case void 0:return X(Z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W*2;case"hex":return W>>>1;case"base64":return J(Z).length;default:if(z)return X(Z).length;H=(""+H).toLowerCase(),z=!0}}M.byteLength=r;function t(Z,H,W){var z=!1;if((H===void 0||H<0)&&(H=0),H>this.length)return"";if((W===void 0||W>this.length)&&(W=this.length),W<=0)return"";if(W>>>=0,H>>>=0,W<=H)return"";for(Z||(Z="utf8");;)switch(Z){case"hex":return P(this,H,W);case"utf8":case"utf-8":return m(this,H,W);case"ascii":return F(this,H,W);case"latin1":case"binary":return C(this,H,W);case"base64":return _(this,H,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,H,W);default:if(z)throw new TypeError("Unknown encoding: "+Z);Z=(Z+"").toLowerCase(),z=!0}}M.prototype._isBuffer=!0;function b(Z,H,W){var z=Z[H];Z[H]=Z[W],Z[W]=z}M.prototype.swap16=function(){var H=this.length;if(H%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var W=0;W<H;W+=2)b(this,W,W+1);return this},M.prototype.swap32=function(){var H=this.length;if(H%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var W=0;W<H;W+=4)b(this,W,W+3),b(this,W+1,W+2);return this},M.prototype.swap64=function(){var H=this.length;if(H%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var W=0;W<H;W+=8)b(this,W,W+7),b(this,W+1,W+6),b(this,W+2,W+5),b(this,W+3,W+4);return this},M.prototype.toString=function(){var H=this.length|0;return H===0?"":arguments.length===0?m(this,0,H):t.apply(this,arguments)},M.prototype.equals=function(H){if(!M.isBuffer(H))throw new TypeError("Argument must be a Buffer");return this===H?!0:M.compare(this,H)===0},M.prototype.inspect=function(){var H="",W=we.INSPECT_MAX_BYTES;return this.length>0&&(H=this.toString("hex",0,W).match(/.{2}/g).join(" "),this.length>W&&(H+=" ... ")),"<Buffer "+H+">"},M.prototype.compare=function(H,W,z,se,pe){if(!M.isBuffer(H))throw new TypeError("Argument must be a Buffer");if(W===void 0&&(W=0),z===void 0&&(z=H?H.length:0),se===void 0&&(se=0),pe===void 0&&(pe=this.length),W<0||z>H.length||se<0||pe>this.length)throw new RangeError("out of range index");if(se>=pe&&W>=z)return 0;if(se>=pe)return-1;if(W>=z)return 1;if(W>>>=0,z>>>=0,se>>>=0,pe>>>=0,this===H)return 0;for(var ge=pe-se,Ne=z-W,Me=Math.min(ge,Ne),ke=this.slice(se,pe),He=H.slice(W,z),Je=0;Je<Me;++Je)if(ke[Je]!==He[Je]){ge=ke[Je],Ne=He[Je];break}return ge<Ne?-1:Ne<ge?1:0};function y(Z,H,W,z,se){if(Z.length===0)return-1;if(typeof W=="string"?(z=W,W=0):W>2147483647?W=2147483647:W<-2147483648&&(W=-2147483648),W=+W,isNaN(W)&&(W=se?0:Z.length-1),W<0&&(W=Z.length+W),W>=Z.length){if(se)return-1;W=Z.length-1}else if(W<0)if(se)W=0;else return-1;if(typeof H=="string"&&(H=M.from(H,z)),M.isBuffer(H))return H.length===0?-1:E(Z,H,W,z,se);if(typeof H=="number")return H=H&255,M.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?se?Uint8Array.prototype.indexOf.call(Z,H,W):Uint8Array.prototype.lastIndexOf.call(Z,H,W):E(Z,[H],W,z,se);throw new TypeError("val must be string, number or Buffer")}function E(Z,H,W,z,se){var pe=1,ge=Z.length,Ne=H.length;if(z!==void 0&&(z=String(z).toLowerCase(),z==="ucs2"||z==="ucs-2"||z==="utf16le"||z==="utf-16le")){if(Z.length<2||H.length<2)return-1;pe=2,ge/=2,Ne/=2,W/=2}function Me(xe,Ue){return pe===1?xe[Ue]:xe.readUInt16BE(Ue*pe)}var ke;if(se){var He=-1;for(ke=W;ke<ge;ke++)if(Me(Z,ke)===Me(H,He===-1?0:ke-He)){if(He===-1&&(He=ke),ke-He+1===Ne)return He*pe}else He!==-1&&(ke-=ke-He),He=-1}else for(W+Ne>ge&&(W=ge-Ne),ke=W;ke>=0;ke--){for(var Je=!0,rt=0;rt<Ne;rt++)if(Me(Z,ke+rt)!==Me(H,rt)){Je=!1;break}if(Je)return ke}return-1}M.prototype.includes=function(H,W,z){return this.indexOf(H,W,z)!==-1},M.prototype.indexOf=function(H,W,z){return y(this,H,W,z,!0)},M.prototype.lastIndexOf=function(H,W,z){return y(this,H,W,z,!1)};function T(Z,H,W,z){W=Number(W)||0;var se=Z.length-W;z?(z=Number(z),z>se&&(z=se)):z=se;var pe=H.length;if(pe%2!==0)throw new TypeError("Invalid hex string");z>pe/2&&(z=pe/2);for(var ge=0;ge<z;++ge){var Ne=parseInt(H.substr(ge*2,2),16);if(isNaN(Ne))return ge;Z[W+ge]=Ne}return ge}function v(Z,H,W,z){return ne(X(H,Z.length-W),Z,W,z)}function d(Z,H,W,z){return ne(L(H),Z,W,z)}function n(Z,H,W,z){return d(Z,H,W,z)}function l(Z,H,W,z){return ne(J(H),Z,W,z)}function u(Z,H,W,z){return ne(N(H,Z.length-W),Z,W,z)}M.prototype.write=function(H,W,z,se){if(W===void 0)se="utf8",z=this.length,W=0;else if(z===void 0&&typeof W=="string")se=W,z=this.length,W=0;else if(isFinite(W))W=W|0,isFinite(z)?(z=z|0,se===void 0&&(se="utf8")):(se=z,z=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var pe=this.length-W;if((z===void 0||z>pe)&&(z=pe),H.length>0&&(z<0||W<0)||W>this.length)throw new RangeError("Attempt to write outside buffer bounds");se||(se="utf8");for(var ge=!1;;)switch(se){case"hex":return T(this,H,W,z);case"utf8":case"utf-8":return v(this,H,W,z);case"ascii":return d(this,H,W,z);case"latin1":case"binary":return n(this,H,W,z);case"base64":return l(this,H,W,z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u(this,H,W,z);default:if(ge)throw new TypeError("Unknown encoding: "+se);se=(""+se).toLowerCase(),ge=!0}},M.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _(Z,H,W){return H===0&&W===Z.length?K.fromByteArray(Z):K.fromByteArray(Z.slice(H,W))}function m(Z,H,W){W=Math.min(Z.length,W);for(var z=[],se=H;se<W;){var pe=Z[se],ge=null,Ne=pe>239?4:pe>223?3:pe>191?2:1;if(se+Ne<=W){var Me,ke,He,Je;switch(Ne){case 1:pe<128&&(ge=pe);break;case 2:Me=Z[se+1],(Me&192)===128&&(Je=(pe&31)<<6|Me&63,Je>127&&(ge=Je));break;case 3:Me=Z[se+1],ke=Z[se+2],(Me&192)===128&&(ke&192)===128&&(Je=(pe&15)<<12|(Me&63)<<6|ke&63,Je>2047&&(Je<55296||Je>57343)&&(ge=Je));break;case 4:Me=Z[se+1],ke=Z[se+2],He=Z[se+3],(Me&192)===128&&(ke&192)===128&&(He&192)===128&&(Je=(pe&15)<<18|(Me&63)<<12|(ke&63)<<6|He&63,Je>65535&&Je<1114112&&(ge=Je))}}ge===null?(ge=65533,Ne=1):ge>65535&&(ge-=65536,z.push(ge>>>10&1023|55296),ge=56320|ge&1023),z.push(ge),se+=Ne}return R(z)}var h=4096;function R(Z){var H=Z.length;if(H<=h)return String.fromCharCode.apply(String,Z);for(var W="",z=0;z<H;)W+=String.fromCharCode.apply(String,Z.slice(z,z+=h));return W}function F(Z,H,W){var z="";W=Math.min(Z.length,W);for(var se=H;se<W;++se)z+=String.fromCharCode(Z[se]&127);return z}function C(Z,H,W){var z="";W=Math.min(Z.length,W);for(var se=H;se<W;++se)z+=String.fromCharCode(Z[se]);return z}function P(Z,H,W){var z=Z.length;(!H||H<0)&&(H=0),(!W||W<0||W>z)&&(W=z);for(var se="",pe=H;pe<W;++pe)se+=Ce(Z[pe]);return se}function j(Z,H,W){for(var z=Z.slice(H,W),se="",pe=0;pe<z.length;pe+=2)se+=String.fromCharCode(z[pe]+z[pe+1]*256);return se}M.prototype.slice=function(H,W){var z=this.length;H=~~H,W=W===void 0?z:~~W,H<0?(H+=z,H<0&&(H=0)):H>z&&(H=z),W<0?(W+=z,W<0&&(W=0)):W>z&&(W=z),W<H&&(W=H);var se;if(M.TYPED_ARRAY_SUPPORT)se=this.subarray(H,W),se.__proto__=M.prototype;else{var pe=W-H;se=new M(pe,void 0);for(var ge=0;ge<pe;++ge)se[ge]=this[ge+H]}return se};function D(Z,H,W){if(Z%1!==0||Z<0)throw new RangeError("offset is not uint");if(Z+H>W)throw new RangeError("Trying to access beyond buffer length")}M.prototype.readUIntLE=function(H,W,z){H=H|0,W=W|0,z||D(H,W,this.length);for(var se=this[H],pe=1,ge=0;++ge<W&&(pe*=256);)se+=this[H+ge]*pe;return se},M.prototype.readUIntBE=function(H,W,z){H=H|0,W=W|0,z||D(H,W,this.length);for(var se=this[H+--W],pe=1;W>0&&(pe*=256);)se+=this[H+--W]*pe;return se},M.prototype.readUInt8=function(H,W){return W||D(H,1,this.length),this[H]},M.prototype.readUInt16LE=function(H,W){return W||D(H,2,this.length),this[H]|this[H+1]<<8},M.prototype.readUInt16BE=function(H,W){return W||D(H,2,this.length),this[H]<<8|this[H+1]},M.prototype.readUInt32LE=function(H,W){return W||D(H,4,this.length),(this[H]|this[H+1]<<8|this[H+2]<<16)+this[H+3]*16777216},M.prototype.readUInt32BE=function(H,W){return W||D(H,4,this.length),this[H]*16777216+(this[H+1]<<16|this[H+2]<<8|this[H+3])},M.prototype.readIntLE=function(H,W,z){H=H|0,W=W|0,z||D(H,W,this.length);for(var se=this[H],pe=1,ge=0;++ge<W&&(pe*=256);)se+=this[H+ge]*pe;return pe*=128,se>=pe&&(se-=Math.pow(2,8*W)),se},M.prototype.readIntBE=function(H,W,z){H=H|0,W=W|0,z||D(H,W,this.length);for(var se=W,pe=1,ge=this[H+--se];se>0&&(pe*=256);)ge+=this[H+--se]*pe;return pe*=128,ge>=pe&&(ge-=Math.pow(2,8*W)),ge},M.prototype.readInt8=function(H,W){return W||D(H,1,this.length),this[H]&128?(255-this[H]+1)*-1:this[H]},M.prototype.readInt16LE=function(H,W){W||D(H,2,this.length);var z=this[H]|this[H+1]<<8;return z&32768?z|4294901760:z},M.prototype.readInt16BE=function(H,W){W||D(H,2,this.length);var z=this[H+1]|this[H]<<8;return z&32768?z|4294901760:z},M.prototype.readInt32LE=function(H,W){return W||D(H,4,this.length),this[H]|this[H+1]<<8|this[H+2]<<16|this[H+3]<<24},M.prototype.readInt32BE=function(H,W){return W||D(H,4,this.length),this[H]<<24|this[H+1]<<16|this[H+2]<<8|this[H+3]},M.prototype.readFloatLE=function(H,W){return W||D(H,4,this.length),O.read(this,H,!0,23,4)},M.prototype.readFloatBE=function(H,W){return W||D(H,4,this.length),O.read(this,H,!1,23,4)},M.prototype.readDoubleLE=function(H,W){return W||D(H,8,this.length),O.read(this,H,!0,52,8)},M.prototype.readDoubleBE=function(H,W){return W||D(H,8,this.length),O.read(this,H,!1,52,8)};function $(Z,H,W,z,se,pe){if(!M.isBuffer(Z))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>se||H<pe)throw new RangeError('"value" argument is out of bounds');if(W+z>Z.length)throw new RangeError("Index out of range")}M.prototype.writeUIntLE=function(H,W,z,se){if(H=+H,W=W|0,z=z|0,!se){var pe=Math.pow(2,8*z)-1;$(this,H,W,z,pe,0)}var ge=1,Ne=0;for(this[W]=H&255;++Ne<z&&(ge*=256);)this[W+Ne]=H/ge&255;return W+z},M.prototype.writeUIntBE=function(H,W,z,se){if(H=+H,W=W|0,z=z|0,!se){var pe=Math.pow(2,8*z)-1;$(this,H,W,z,pe,0)}var ge=z-1,Ne=1;for(this[W+ge]=H&255;--ge>=0&&(Ne*=256);)this[W+ge]=H/Ne&255;return W+z},M.prototype.writeUInt8=function(H,W,z){return H=+H,W=W|0,z||$(this,H,W,1,255,0),M.TYPED_ARRAY_SUPPORT||(H=Math.floor(H)),this[W]=H&255,W+1};function oe(Z,H,W,z){H<0&&(H=65535+H+1);for(var se=0,pe=Math.min(Z.length-W,2);se<pe;++se)Z[W+se]=(H&255<<8*(z?se:1-se))>>>(z?se:1-se)*8}M.prototype.writeUInt16LE=function(H,W,z){return H=+H,W=W|0,z||$(this,H,W,2,65535,0),M.TYPED_ARRAY_SUPPORT?(this[W]=H&255,this[W+1]=H>>>8):oe(this,H,W,!0),W+2},M.prototype.writeUInt16BE=function(H,W,z){return H=+H,W=W|0,z||$(this,H,W,2,65535,0),M.TYPED_ARRAY_SUPPORT?(this[W]=H>>>8,this[W+1]=H&255):oe(this,H,W,!1),W+2};function Ee(Z,H,W,z){H<0&&(H=4294967295+H+1);for(var se=0,pe=Math.min(Z.length-W,4);se<pe;++se)Z[W+se]=H>>>(z?se:3-se)*8&255}M.prototype.writeUInt32LE=function(H,W,z){return H=+H,W=W|0,z||$(this,H,W,4,4294967295,0),M.TYPED_ARRAY_SUPPORT?(this[W+3]=H>>>24,this[W+2]=H>>>16,this[W+1]=H>>>8,this[W]=H&255):Ee(this,H,W,!0),W+4},M.prototype.writeUInt32BE=function(H,W,z){return H=+H,W=W|0,z||$(this,H,W,4,4294967295,0),M.TYPED_ARRAY_SUPPORT?(this[W]=H>>>24,this[W+1]=H>>>16,this[W+2]=H>>>8,this[W+3]=H&255):Ee(this,H,W,!1),W+4},M.prototype.writeIntLE=function(H,W,z,se){if(H=+H,W=W|0,!se){var pe=Math.pow(2,8*z-1);$(this,H,W,z,pe-1,-pe)}var ge=0,Ne=1,Me=0;for(this[W]=H&255;++ge<z&&(Ne*=256);)H<0&&Me===0&&this[W+ge-1]!==0&&(Me=1),this[W+ge]=(H/Ne>>0)-Me&255;return W+z},M.prototype.writeIntBE=function(H,W,z,se){if(H=+H,W=W|0,!se){var pe=Math.pow(2,8*z-1);$(this,H,W,z,pe-1,-pe)}var ge=z-1,Ne=1,Me=0;for(this[W+ge]=H&255;--ge>=0&&(Ne*=256);)H<0&&Me===0&&this[W+ge+1]!==0&&(Me=1),this[W+ge]=(H/Ne>>0)-Me&255;return W+z},M.prototype.writeInt8=function(H,W,z){return H=+H,W=W|0,z||$(this,H,W,1,127,-128),M.TYPED_ARRAY_SUPPORT||(H=Math.floor(H)),H<0&&(H=255+H+1),this[W]=H&255,W+1},M.prototype.writeInt16LE=function(H,W,z){return H=+H,W=W|0,z||$(this,H,W,2,32767,-32768),M.TYPED_ARRAY_SUPPORT?(this[W]=H&255,this[W+1]=H>>>8):oe(this,H,W,!0),W+2},M.prototype.writeInt16BE=function(H,W,z){return H=+H,W=W|0,z||$(this,H,W,2,32767,-32768),M.TYPED_ARRAY_SUPPORT?(this[W]=H>>>8,this[W+1]=H&255):oe(this,H,W,!1),W+2},M.prototype.writeInt32LE=function(H,W,z){return H=+H,W=W|0,z||$(this,H,W,4,2147483647,-2147483648),M.TYPED_ARRAY_SUPPORT?(this[W]=H&255,this[W+1]=H>>>8,this[W+2]=H>>>16,this[W+3]=H>>>24):Ee(this,H,W,!0),W+4},M.prototype.writeInt32BE=function(H,W,z){return H=+H,W=W|0,z||$(this,H,W,4,2147483647,-2147483648),H<0&&(H=4294967295+H+1),M.TYPED_ARRAY_SUPPORT?(this[W]=H>>>24,this[W+1]=H>>>16,this[W+2]=H>>>8,this[W+3]=H&255):Ee(this,H,W,!1),W+4};function ve(Z,H,W,z,se,pe){if(W+z>Z.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("Index out of range")}function Le(Z,H,W,z,se){return se||ve(Z,H,W,4,34028234663852886e22,-34028234663852886e22),O.write(Z,H,W,z,23,4),W+4}M.prototype.writeFloatLE=function(H,W,z){return Le(this,H,W,!0,z)},M.prototype.writeFloatBE=function(H,W,z){return Le(this,H,W,!1,z)};function Se(Z,H,W,z,se){return se||ve(Z,H,W,8,17976931348623157e292,-17976931348623157e292),O.write(Z,H,W,z,52,8),W+8}M.prototype.writeDoubleLE=function(H,W,z){return Se(this,H,W,!0,z)},M.prototype.writeDoubleBE=function(H,W,z){return Se(this,H,W,!1,z)},M.prototype.copy=function(H,W,z,se){if(z||(z=0),!se&&se!==0&&(se=this.length),W>=H.length&&(W=H.length),W||(W=0),se>0&&se<z&&(se=z),se===z)return 0;if(H.length===0||this.length===0)return 0;if(W<0)throw new RangeError("targetStart out of bounds");if(z<0||z>=this.length)throw new RangeError("sourceStart out of bounds");if(se<0)throw new RangeError("sourceEnd out of bounds");se>this.length&&(se=this.length),H.length-W<se-z&&(se=H.length-W+z);var pe=se-z,ge;if(this===H&&z<W&&W<se)for(ge=pe-1;ge>=0;--ge)H[ge+W]=this[ge+z];else if(pe<1e3||!M.TYPED_ARRAY_SUPPORT)for(ge=0;ge<pe;++ge)H[ge+W]=this[ge+z];else Uint8Array.prototype.set.call(H,this.subarray(z,z+pe),W);return pe},M.prototype.fill=function(H,W,z,se){if(typeof H=="string"){if(typeof W=="string"?(se=W,W=0,z=this.length):typeof z=="string"&&(se=z,z=this.length),H.length===1){var pe=H.charCodeAt(0);pe<256&&(H=pe)}if(se!==void 0&&typeof se!="string")throw new TypeError("encoding must be a string");if(typeof se=="string"&&!M.isEncoding(se))throw new TypeError("Unknown encoding: "+se)}else typeof H=="number"&&(H=H&255);if(W<0||this.length<W||this.length<z)throw new RangeError("Out of range index");if(z<=W)return this;W=W>>>0,z=z===void 0?this.length:z>>>0,H||(H=0);var ge;if(typeof H=="number")for(ge=W;ge<z;++ge)this[ge]=H;else{var Ne=M.isBuffer(H)?H:X(new M(H,se).toString()),Me=Ne.length;for(ge=0;ge<z-W;++ge)this[ge+W]=Ne[ge%Me]}return this};var Re=/[^+\/0-9A-Za-z-_]/g;function De(Z){if(Z=Fe(Z).replace(Re,""),Z.length<2)return"";for(;Z.length%4!==0;)Z=Z+"=";return Z}function Fe(Z){return Z.trim?Z.trim():Z.replace(/^\s+|\s+$/g,"")}function Ce(Z){return Z<16?"0"+Z.toString(16):Z.toString(16)}function X(Z,H){H=H||Infinity;for(var W,z=Z.length,se=null,pe=[],ge=0;ge<z;++ge){if(W=Z.charCodeAt(ge),W>55295&&W<57344){if(!se){if(W>56319){(H-=3)>-1&&pe.push(239,191,189);continue}else if(ge+1===z){(H-=3)>-1&&pe.push(239,191,189);continue}se=W;continue}if(W<56320){(H-=3)>-1&&pe.push(239,191,189),se=W;continue}W=(se-55296<<10|W-56320)+65536}else se&&((H-=3)>-1&&pe.push(239,191,189));if(se=null,W<128){if((H-=1)<0)break;pe.push(W)}else if(W<2048){if((H-=2)<0)break;pe.push(W>>6|192,W&63|128)}else if(W<65536){if((H-=3)<0)break;pe.push(W>>12|224,W>>6&63|128,W&63|128)}else if(W<1114112){if((H-=4)<0)break;pe.push(W>>18|240,W>>12&63|128,W>>6&63|128,W&63|128)}else throw new Error("Invalid code point")}return pe}function L(Z){for(var H=[],W=0;W<Z.length;++W)H.push(Z.charCodeAt(W)&255);return H}function N(Z,H){for(var W,z,se,pe=[],ge=0;ge<Z.length&&!((H-=2)<0);++ge)W=Z.charCodeAt(ge),z=W>>8,se=W%256,pe.push(se),pe.push(z);return pe}function J(Z){return K.toByteArray(De(Z))}function ne(Z,H,W,z){for(var se=0;se<z&&!(se+W>=H.length||se>=Z.length);++se)H[se+W]=Z[se];return se}function k(Z){return Z!==Z}}).call(this,Q("IyRk"))},IBYe:function(ot,we,Q){"use strict";function de(K){return null}we.a=de},J66h:function(ot,we,Q){(function(de){var K,O;(function(G,U){ot.exports=U(G)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof de!="undefined"?de:this,function(G){"use strict";G=G||{};var U=G.Base64,S="2.6.4",Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M=function(h){for(var R={},F=0,C=h.length;F<C;F++)R[h.charAt(F)]=F;return R}(Y),e=String.fromCharCode,I=function(h){if(h.length<2){var R=h.charCodeAt(0);return R<128?h:R<2048?e(192|R>>>6)+e(128|R&63):e(224|R>>>12&15)+e(128|R>>>6&63)+e(128|R&63)}else{var R=65536+(h.charCodeAt(0)-55296)*1024+(h.charCodeAt(1)-56320);return e(240|R>>>18&7)+e(128|R>>>12&63)+e(128|R>>>6&63)+e(128|R&63)}},p=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,g=function(h){return h.replace(p,I)},c=function(h){var R=[0,2,1][h.length%3],F=h.charCodeAt(0)<<16|(h.length>1?h.charCodeAt(1):0)<<8|(h.length>2?h.charCodeAt(2):0),C=[Y.charAt(F>>>18),Y.charAt(F>>>12&63),R>=2?"=":Y.charAt(F>>>6&63),R>=1?"=":Y.charAt(F&63)];return C.join("")},s=G.btoa&&typeof G.btoa=="function"?function(h){return G.btoa(h)}:function(h){if(h.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return h.replace(/[\s\S]{1,3}/g,c)},i=function(h){return s(g(String(h)))},A=function(h){return h.replace(/[+\/]/g,function(R){return R=="+"?"-":"_"}).replace(/=/g,"")},o=function(h,R){return R?A(i(h)):i(h)},a=function(h){return o(h,!0)},r;G.Uint8Array&&(r=function(h,R){for(var F="",C=0,P=h.length;C<P;C+=3){var j=h[C],D=h[C+1],$=h[C+2],oe=j<<16|D<<8|$;F+=Y.charAt(oe>>>18)+Y.charAt(oe>>>12&63)+(typeof D!="undefined"?Y.charAt(oe>>>6&63):"=")+(typeof $!="undefined"?Y.charAt(oe&63):"=")}return R?A(F):F});var t=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(h){switch(h.length){case 4:var R=(7&h.charCodeAt(0))<<18|(63&h.charCodeAt(1))<<12|(63&h.charCodeAt(2))<<6|63&h.charCodeAt(3),F=R-65536;return e((F>>>10)+55296)+e((F&1023)+56320);case 3:return e((15&h.charCodeAt(0))<<12|(63&h.charCodeAt(1))<<6|63&h.charCodeAt(2));default:return e((31&h.charCodeAt(0))<<6|63&h.charCodeAt(1))}},y=function(h){return h.replace(t,b)},E=function(h){var R=h.length,F=R%4,C=(R>0?M[h.charAt(0)]<<18:0)|(R>1?M[h.charAt(1)]<<12:0)|(R>2?M[h.charAt(2)]<<6:0)|(R>3?M[h.charAt(3)]:0),P=[e(C>>>16),e(C>>>8&255),e(C&255)];return P.length-=[0,0,2,1][F],P.join("")},T=G.atob&&typeof G.atob=="function"?function(h){return G.atob(h)}:function(h){return h.replace(/\S{1,4}/g,E)},v=function(h){return T(String(h).replace(/[^A-Za-z0-9\+\/]/g,""))},d=function(h){return y(T(h))},n=function(h){return String(h).replace(/[-_]/g,function(R){return R=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},l=function(h){return d(n(h))},u;G.Uint8Array&&(u=function(h){return Uint8Array.from(v(n(h)),function(R){return R.charCodeAt(0)})});var _=function(){var h=G.Base64;return G.Base64=U,h};if(G.Base64={VERSION:S,atob:v,btoa:s,fromBase64:l,toBase64:o,utob:g,encode:o,encodeURI:a,btou:y,decode:l,noConflict:_,fromUint8Array:r,toUint8Array:u},typeof Object.defineProperty=="function"){var m=function(h){return{value:h,enumerable:!1,writable:!0,configurable:!0}};G.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",m(function(){return l(this)})),Object.defineProperty(String.prototype,"toBase64",m(function(h){return o(this,h)})),Object.defineProperty(String.prototype,"toBase64URI",m(function(){return o(this,!0)}))}}return G.Meteor&&(Base64=G.Base64),ot.exports?ot.exports.Base64=G.Base64:!(K=[],O=function(){return G.Base64}.apply(we,K),O!==void 0&&(ot.exports=O)),{Base64:G.Base64}})}).call(this,Q("IyRk"))},JYp7:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return de});var de;(function(K){function O(t){return t&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"}K.is=O;const G=Object.freeze([]);function U(){return G}K.empty=U;function*S(t){yield t}K.single=S;function Y(t){return t||G}K.from=Y;function M(t){return!t||t[Symbol.iterator]().next().done===!0}K.isEmpty=M;function e(t){return t[Symbol.iterator]().next().value}K.first=e;function I(t,b){for(const y of t)if(b(y))return!0;return!1}K.some=I;function p(t,b){for(const y of t)if(b(y))return y;return}K.find=p;function*g(t,b){for(const y of t)b(y)&&(yield y)}K.filter=g;function*c(t,b){let y=0;for(const E of t)yield b(E,y++)}K.map=c;function*s(...t){for(const b of t)for(const y of b)yield y}K.concat=s;function*i(t){for(const b of t)for(const y of b)yield y}K.concatNested=i;function A(t,b,y){let E=y;for(const T of t)E=b(E,T);return E}K.reduce=A;function*o(t,b,y=t.length){for(b<0&&(b+=t.length),y<0?y+=t.length:y>t.length&&(y=t.length);b<y;b++)yield t[b]}K.slice=o;function a(t,b=Number.POSITIVE_INFINITY){const y=[];if(b===0)return[y,t];const E=t[Symbol.iterator]();for(let T=0;T<b;T++){const v=E.next();if(v.done)return[y,K.empty()];y.push(v.value)}return[y,{[Symbol.iterator](){return E}}]}K.consume=a;function r(t,b,y=(E,T)=>E===T){const E=t[Symbol.iterator](),T=b[Symbol.iterator]();for(;;){const v=E.next(),d=T.next();if(v.done!==d.done)return!1;if(v.done)return!0;if(!y(v.value,d.value))return!1}}K.equals=r})(de||(de={}))},LdHM:function(ot,we,Q){"use strict";Q.d(we,"b",function(){return t}),Q.d(we,"a",function(){return y});var de=Q("1OyB"),K=Q("vuIU"),O=Q("Ji7U"),G=Q("LK+K"),U=Q("q1tI"),S=Q("rePB"),Y=Q("Ff2n"),M=Q("ODXe"),e=Q("4IlW"),I=Q("bX4T"),p=Q("YrtM"),g=Q("TSYQ"),c=Q.n(g),s=Q("+nKL"),i=Q("8OUc"),A=function($,oe){var Ee=$.prefixCls,ve=$.id,Le=$.flattenOptions,Se=$.childrenAsData,Re=$.values,De=$.searchValue,Fe=$.multiple,Ce=$.defaultActiveFirstOption,X=$.height,L=$.itemHeight,N=$.notFoundContent,J=$.open,ne=$.menuItemSelectedIcon,k=$.virtual,Z=$.onSelect,H=$.onToggleOpen,W=$.onActiveValue,z=$.onScroll,se=$.onMouseEnter,pe="".concat(Ee,"-item"),ge=Object(p.a)(function(){return Le},[J,Le],function(q,ee){return ee[0]&&q[1]!==ee[1]}),Ne=U.useRef(null),Me=function(ee){ee.preventDefault()},ke=function(ee){Ne.current&&Ne.current.scrollTo({index:ee})},He=function(ee){for(var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,le=ge.length,te=0;te<le;te+=1){var ae=(ee+te*ie+le)%le,he=ge[ae],me=he.group,Te=he.data;if(!me&&!Te.disabled)return ae}return-1},Je=U.useState(function(){return He(0)}),rt=Object(M.a)(Je,2),xe=rt[0],Ue=rt[1],Qe=function(ee){Ue(ee);var ie=ge[ee];if(!ie){W(null,-1);return}W(ie.data.value,ee)};U.useEffect(function(){Qe(Ce!==!1?He(0):-1)},[ge.length,De]),U.useEffect(function(){var q=setTimeout(function(){if(!Fe&&J&&Re.size===1){var ee=Array.from(Re)[0],ie=ge.findIndex(function(le){var te=le.data;return te.value===ee});Qe(ie),ke(ie)}});return function(){return clearTimeout(q)}},[J]);var ze=function(ee){ee!==void 0&&Z(ee,{selected:!Re.has(ee)}),Fe||H(!1)};if(U.useImperativeHandle(oe,function(){return{onKeyDown:function(ee){var ie=ee.which;switch(ie){case e.a.UP:case e.a.DOWN:{var le=0;if(ie===e.a.UP?le=-1:ie===e.a.DOWN&&(le=1),le!==0){var te=He(xe+le,le);ke(te),Qe(te)}break}case e.a.ENTER:{var ae=ge[xe];ae&&!ae.data.disabled?ze(ae.data.value):ze(void 0),J&&ee.preventDefault();break}case e.a.ESC:H(!1)}},onKeyUp:function(){},scrollTo:function(ee){ke(ee)}}}),ge.length===0)return U.createElement("div",{role:"listbox",id:"".concat(ve,"_list"),className:"".concat(pe,"-empty"),onMouseDown:Me},N);function Ae(q){var ee=ge[q];if(!ee)return null;var ie=ee.data||{},le=ie.value,te=ie.label,ae=ie.children,he=Object(I.a)(ie,!0),me=Se?ae:te;return ee?U.createElement("div",Object.assign({"aria-label":typeof me=="string"?me:null},he,{key:q,role:"option",id:"".concat(ve,"_list_").concat(q),"aria-selected":Re.has(le)}),le):null}return U.createElement(U.Fragment,null,U.createElement("div",{role:"listbox",id:"".concat(ve,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ae(xe-1),Ae(xe),Ae(xe+1)),U.createElement(s.a,{itemKey:"key",ref:Ne,data:ge,height:X,itemHeight:L,fullHeight:!1,onMouseDown:Me,onScroll:z,virtual:k,onMouseEnter:se},function(q,ee){var ie,le=q.group,te=q.groupOption,ae=q.data,he=ae.label,me=ae.key;if(le)return U.createElement("div",{className:c()(pe,"".concat(pe,"-group"))},he!==void 0?he:me);var Te=ae.disabled,Be=ae.value,je=ae.title,qe=ae.children,at=ae.style,et=ae.className,_t=Object(Y.a)(ae,["disabled","value","title","children","style","className"]),ut=Re.has(Be),$e="".concat(pe,"-option"),kt=c()(pe,$e,et,(ie={},Object(S.a)(ie,"".concat($e,"-grouped"),te),Object(S.a)(ie,"".concat($e,"-active"),xe===ee&&!Te),Object(S.a)(ie,"".concat($e,"-disabled"),Te),Object(S.a)(ie,"".concat($e,"-selected"),ut),ie)),Ut=Se?qe:he,yt=!ne||typeof ne=="function"||ut;return U.createElement("div",Object.assign({},_t,{"aria-selected":ut,className:kt,title:je,onMouseMove:function(){if(xe===ee||Te)return;Qe(ee)},onClick:function(){Te||ze(Be)},style:at}),U.createElement("div",{className:"".concat($e,"-content")},Ut||Be),U.isValidElement(ne)||ut,yt&&U.createElement(i.a,{className:"".concat(pe,"-option-state"),customizeIcon:ne,customizeIconProps:{isSelected:ut}},ut?"\u2713":null))}))},o=U.forwardRef(A);o.displayName="OptionList";var a=o,r=function(){return null};r.isSelectOption=!0;var t=r,b=function(){return null};b.isSelectOptGroup=!0;var y=b,E=Q("VTBJ"),T=Q("Zm9Q");function v(D){var $=D.key,oe=D.props,Ee=oe.children,ve=oe.value,Le=Object(Y.a)(oe,["children","value"]);return Object(E.a)({key:$,value:ve!==void 0?ve:$,children:Ee},Le)}function d(D){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(T.a)(D).map(function(oe,Ee){if(!U.isValidElement(oe)||!oe.type)return null;var ve=oe.type.isSelectOptGroup,Le=oe.key,Se=oe.props,Re=Se.children,De=Object(Y.a)(Se,["children"]);return $||!ve?v(oe):Object(E.a)(Object(E.a)({key:"__RC_SELECT_GRP__".concat(Le===null?Ee:Le,"__"),label:Le},De),{},{options:d(Re)})}).filter(function(oe){return oe})}var n=Q("2Qr1"),l=Q("qNPg"),u=Q("U8pU"),_=Q("Kwbf"),m=Q("WKfj");function h(D){var $=D.mode,oe=D.options,Ee=D.children,ve=D.backfill,Le=D.allowClear,Se=D.placeholder,Re=D.getInputElement,De=D.showSearch,Fe=D.onSearch,Ce=D.defaultOpen,X=D.autoFocus,L=D.labelInValue,N=D.value,J=D.inputValue,ne=D.optionLabelProp,k=$==="multiple"||$==="tags",Z=De!==void 0?De:k||$==="combobox",H=oe||d(Ee);if(Object(_.a)($!=="tags"||H.every(function(pe){return!pe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),$==="tags"||$==="combobox"){var W=H.some(function(pe){return pe.options?pe.options.some(function(ge){return typeof("value"in ge?ge.value:ge.key)=="number"}):typeof("value"in pe?pe.value:pe.key)=="number"});Object(_.a)(!W,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(_.a)($!=="combobox"||!ne,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(_.a)($==="combobox"||!ve,"`backfill` only works with `combobox` mode."),Object(_.a)($==="combobox"||!Re,"`getInputElement` only work with `combobox` mode."),Object(_.b)($!=="combobox"||!Re||!Le||!Se,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Fe&&!Z&&$!=="combobox"&&$!=="tags"&&Object(_.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(_.b)(!Ce||X,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),N!=null){var z=Object(m.d)(N);Object(_.a)(!L||z.every(function(pe){return Object(u.a)(pe)==="object"&&("key"in pe||"value"in pe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(_.a)(!k||Array.isArray(N),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ee){var se=null;Object(T.a)(Ee).some(function(pe){if(!U.isValidElement(pe)||!pe.type)return!1;var ge=pe.type;if(ge.isSelectOption)return!1;if(ge.isSelectOptGroup){var Ne=Object(T.a)(pe.props.children).every(function(Me){return!U.isValidElement(Me)||!pe.type||Me.type.isSelectOption?!0:(se=Me.type,!1)});return!Ne}return se=ge,!0}),se&&Object(_.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(se.displayName||se.name||se,"`.")),Object(_.a)(J===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var R=h,F=Object(l.a)({prefixCls:"rc-select",components:{optionList:a},convertChildrenToData:d,flattenOptions:n.d,getLabeledValue:n.e,filterOptions:n.b,isValueDisabled:n.g,findValueOption:n.c,warningProps:R,fillOptionsWithMissingValue:n.a}),C=function(D){Object(O.a)(oe,D);var $=Object(G.a)(oe);function oe(){var Ee;return Object(de.a)(this,oe),Ee=$.apply(this,arguments),Ee.selectRef=U.createRef(),Ee.focus=function(){Ee.selectRef.current.focus()},Ee.blur=function(){Ee.selectRef.current.blur()},Ee}return Object(K.a)(oe,[{key:"render",value:function(){return U.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),oe}(U.Component);C.Option=t,C.OptGroup=y;var P=C,j=we.c=P},MI8n:function(ot,we,Q){"use strict";Q.d(we,"c",function(){return U}),Q.d(we,"b",function(){return e}),Q.d(we,"e",function(){return I}),Q.d(we,"a",function(){return p}),Q.d(we,"d",function(){return g}),Q.d(we,"f",function(){return c});var de=Q("/cxE"),K=Q("pmY6"),O=Q("24hK"),G=Q("5Y4S"),U;(function(s){s.None=()=>K.a.None;function i(h){return(R,F=null,C)=>{let P=!1,j;return j=h(D=>P?void 0:(j?j.dispose():P=!0,R.call(F,D)),null,C),P&&j.dispose(),j}}s.once=i;function A(h,R){return y((F,C=null,P)=>h(j=>F.call(C,R(j)),null,P))}s.map=A;function o(h,R){return y((F,C=null,P)=>h(j=>{R(j),F.call(C,j)},null,P))}s.forEach=o;function a(h,R){return y((F,C=null,P)=>h(j=>R(j)&&F.call(C,j),null,P))}s.filter=a;function r(h){return h}s.signal=r;function t(...h){return(R,F=null,C)=>Object(K.e)(...h.map(P=>P(j=>R.call(F,j),null,C)))}s.any=t;function b(h,R,F){let C=F;return A(h,P=>(C=R(C,P),C))}s.reduce=b;function y(h){let R;const F=new e({onFirstListenerAdd(){R=h(F.fire,F)},onLastListenerRemove(){R.dispose()}});return F.event}function E(h,R,F=100,C=!1,P){let j,D,$,oe=0;const Ee=new e({leakWarningThreshold:P,onFirstListenerAdd(){j=h(ve=>{oe++,D=R(D,ve),C&&!$&&(Ee.fire(D),D=void 0),clearTimeout($),$=setTimeout(()=>{const Le=D;D=void 0,$=void 0,(!C||oe>1)&&Ee.fire(Le),oe=0},F)})},onLastListenerRemove(){j.dispose()}});return Ee.event}s.debounce=E;function T(h,R=(F,C)=>F===C){let F=!0,C;return a(h,P=>{const j=F||!R(P,C);return F=!1,C=P,j})}s.latch=T;function v(h,R){return[s.filter(h,R),s.filter(h,F=>!R(F))]}s.split=v;function d(h,R=!1,F=[]){let C=F.slice(),P=h($=>{C?C.push($):D.fire($)});const j=()=>{C&&C.forEach($=>D.fire($)),C=null},D=new e({onFirstListenerAdd(){P||(P=h($=>D.fire($)))},onFirstListenerDidAdd(){C&&(R?setTimeout(j):j())},onLastListenerRemove(){P&&P.dispose(),P=null}});return D.event}s.buffer=d;class n{constructor(h){this.event=h}map(h){return new n(A(this.event,h))}forEach(h){return new n(o(this.event,h))}filter(h){return new n(a(this.event,h))}reduce(h,R){return new n(b(this.event,h,R))}latch(){return new n(T(this.event))}debounce(h,R=100,F=!1,C){return new n(E(this.event,h,R,F,C))}on(h,R,F){return this.event(h,R,F)}once(h,R,F){return i(this.event)(h,R,F)}}function l(h){return new n(h)}s.chain=l;function u(h,R,F=C=>C){const C=(...$)=>D.fire(F(...$)),P=()=>h.on(R,C),j=()=>h.removeListener(R,C),D=new e({onFirstListenerAdd:P,onLastListenerRemove:j});return D.event}s.fromNodeEventEmitter=u;function _(h,R,F=C=>C){const C=(...$)=>D.fire(F(...$)),P=()=>h.addEventListener(R,C),j=()=>h.removeEventListener(R,C),D=new e({onFirstListenerAdd:P,onLastListenerRemove:j});return D.event}s.fromDOMEventEmitter=_;function m(h){return new Promise(R=>i(h)(R))}s.toPromise=m})(U||(U={}));class S{constructor(s){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${s}_${S._idPool++}`}start(s){this._stopWatch=new G.a(!0),this._listenerCount=s}stop(){if(this._stopWatch){const s=this._stopWatch.elapsed();this._elapsedOverall+=s,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${s.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}S._idPool=0;let Y=-1;class M{constructor(s,i=Math.random().toString(18).slice(2,5)){this.customThreshold=s,this.name=i,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(s){let i=Y;if(typeof this.customThreshold=="number"&&(i=this.customThreshold),i<=0||s<i)return;this._stacks||(this._stacks=new Map);const A=new Error().stack.split(`
|
|
`).slice(3).join(`
|
|
`),o=this._stacks.get(A)||0;if(this._stacks.set(A,o+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;let a,r=0;for(const[t,b]of this._stacks)(!a||r<b)&&(a=t,r=b);console.warn(`[${this.name}] potential listener LEAK detected, having ${s} listeners already. MOST frequent listener (${r}):`),console.warn(a)}return()=>{const a=this._stacks.get(A)||0;this._stacks.set(A,a-1)}}}class e{constructor(s){var i;this._disposed=!1,this._options=s,this._leakageMon=Y>0?new M(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((i=this._options)===null||i===void 0?void 0:i._profName)?new S(this._options._profName):void 0}get event(){return this._event||(this._event=(s,i,A)=>{var o;this._listeners||(this._listeners=new O.a);const a=this._listeners.isEmpty();a&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const r=this._listeners.push(i?[s,i]:s);a&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,s,i);const t=(o=this._leakageMon)===null||o===void 0?void 0:o.check(this._listeners.size),b=Object(K.i)(()=>{if(t&&t(),!this._disposed&&(r(),this._options&&this._options.onLastListenerRemove)){const y=this._listeners&&!this._listeners.isEmpty();y||this._options.onLastListenerRemove(this)}});return A instanceof K.b?A.add(b):Array.isArray(A)&&A.push(b),b}),this._event}fire(s){var i,A;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new O.a);for(let o of this._listeners)this._deliveryQueue.push([o,s]);for((i=this._perfMon)===null||i===void 0||i.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[o,a]=this._deliveryQueue.shift();try{typeof o=="function"?o.call(void 0,a):o[0].call(o[1],a)}catch(r){Object(de.f)(r)}}(A=this._perfMon)===null||A===void 0||A.stop()}}dispose(){var s,i,A,o,a;this._disposed||(this._disposed=!0,(s=this._listeners)===null||s===void 0||s.clear(),(i=this._deliveryQueue)===null||i===void 0||i.clear(),(o=(A=this._options)===null||A===void 0?void 0:A.onLastListenerRemove)===null||o===void 0||o.call(A),(a=this._leakageMon)===null||a===void 0||a.dispose())}}class I extends e{constructor(s){super(s);this._isPaused=0,this._eventQueue=new O.a,this._mergeFn=s==null?void 0:s.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const s=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(s))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(s){this._listeners&&(this._isPaused!==0?this._eventQueue.push(s):super.fire(s))}}class p extends I{constructor(s){var i;super(s);this._delay=(i=s.delay)!==null&&i!==void 0?i:100}fire(s){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(s)}}class g{constructor(){this.buffers=[]}wrapEvent(s){return(i,A,o)=>s(a=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>i.call(A,a)):i.call(A,a)},void 0,o)}bufferEvents(s){const i=[];this.buffers.push(i);const A=s();return this.buffers.pop(),i.forEach(o=>o()),A}}class c{constructor(){this.listening=!1,this.inputEvent=U.None,this.inputEventListener=K.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(s){this.inputEvent=s,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=s(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(ot,we,Q){"use strict";(function(de,K){Q.d(we,"b",function(){return A}),Q.d(we,"i",function(){return t}),Q.d(we,"f",function(){return b}),Q.d(we,"d",function(){return y}),Q.d(we,"g",function(){return E}),Q.d(we,"h",function(){return T}),Q.d(we,"c",function(){return v}),Q.d(we,"k",function(){return d}),Q.d(we,"j",function(){return n}),Q.d(we,"a",function(){return l}),Q.d(we,"e",function(){return m});var O;const G="en";let U=!1,S=!1,Y=!1,M=!1,e=!1,I=!1,p=!1,g,c=G,s,i;const A=typeof self=="object"?self:typeof de=="object"?de:{};let o;typeof A.vscode!="undefined"&&typeof A.vscode.process!="undefined"?o=A.vscode.process:typeof K!="undefined"&&(o=K);const a=typeof((O=o==null?void 0:o.versions)===null||O===void 0?void 0:O.electron)=="string"&&o.type==="renderer";if(typeof navigator=="object"&&!a)i=navigator.userAgent,U=i.indexOf("Windows")>=0,S=i.indexOf("Macintosh")>=0,p=(i.indexOf("Macintosh")>=0||i.indexOf("iPad")>=0||i.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Y=i.indexOf("Linux")>=0,I=!0,g=navigator.language,c=g;else if(typeof o=="object"){U=o.platform==="win32",S=o.platform==="darwin",Y=o.platform==="linux",M=Y&&!!o.env.SNAP&&!!o.env.SNAP_REVISION,g=G,c=G;const h=o.env.VSCODE_NLS_CONFIG;if(h)try{const R=JSON.parse(h),F=R.availableLanguages["*"];g=R.locale,c=F||G,s=R._translationsConfigFile}catch(R){}e=!0}else console.error("Unable to resolve platform.");let r=0;S?r=1:U?r=3:Y&&(r=2);const t=U,b=S,y=Y,E=e,T=I,v=p,d=i,n=function(){if(A.setImmediate)return A.setImmediate.bind(A);if(typeof A.postMessage=="function"&&!A.importScripts){let F=[];A.addEventListener("message",P=>{if(P.data&&P.data.vscodeSetImmediateId)for(let j=0,D=F.length;j<D;j++){const $=F[j];if($.id===P.data.vscodeSetImmediateId){F.splice(j,1),$.callback();return}}});let C=0;return P=>{const j=++C;F.push({id:j,callback:P}),A.postMessage({vscodeSetImmediateId:j},"*")}}if(typeof(o==null?void 0:o.nextTick)=="function")return o.nextTick.bind(o);const R=Promise.resolve();return F=>R.then(F)}(),l=S||p?2:U?1:3;let u=!0,_=!1;function m(){if(!_){_=!0;const h=new Uint8Array(2);h[0]=1,h[1]=2;const R=new Uint16Array(h.buffer);u=R[0]===(2<<8)+1}return u}}).call(this,Q("IyRk"),Q("Q2Ig"))},N0LK:function(ot,we,Q){"use strict";Q.d(we,"C",function(){return de}),Q.d(we,"v",function(){return O}),Q.d(we,"s",function(){return G}),Q.d(we,"t",function(){return U}),Q.d(we,"U",function(){return S}),Q.d(we,"J",function(){return Y}),Q.d(we,"O",function(){return M}),Q.d(we,"p",function(){return e}),Q.d(we,"T",function(){return I}),Q.d(we,"q",function(){return p}),Q.d(we,"N",function(){return g}),Q.d(we,"M",function(){return c}),Q.d(we,"Q",function(){return s}),Q.d(we,"u",function(){return i}),Q.d(we,"x",function(){return A}),Q.d(we,"I",function(){return o}),Q.d(we,"f",function(){return a}),Q.d(we,"h",function(){return r}),Q.d(we,"g",function(){return t}),Q.d(we,"i",function(){return b}),Q.d(we,"G",function(){return y}),Q.d(we,"H",function(){return E}),Q.d(we,"r",function(){return T}),Q.d(we,"R",function(){return v}),Q.d(we,"d",function(){return d}),Q.d(we,"e",function(){return n}),Q.d(we,"E",function(){return l}),Q.d(we,"F",function(){return u}),Q.d(we,"j",function(){return _}),Q.d(we,"z",function(){return m}),Q.d(we,"K",function(){return R}),Q.d(we,"L",function(){return F}),Q.d(we,"m",function(){return P}),Q.d(we,"k",function(){return D}),Q.d(we,"A",function(){return oe}),Q.d(we,"a",function(){return Ee}),Q.d(we,"n",function(){return ve}),Q.d(we,"l",function(){return Le}),Q.d(we,"D",function(){return Se}),Q.d(we,"B",function(){return Re}),Q.d(we,"b",function(){return De}),Q.d(we,"S",function(){return Fe}),Q.d(we,"o",function(){return Ce}),Q.d(we,"P",function(){return X}),Q.d(we,"w",function(){return L}),Q.d(we,"c",function(){return N}),Q.d(we,"y",function(){return k});function de(z){return!z||typeof z!="string"?!0:z.trim().length===0}const K=/{(\d+)}/g;function O(z,...se){return se.length===0?z:z.replace(K,function(pe,ge){const Ne=parseInt(ge,10);return isNaN(Ne)||Ne<0||Ne>=se.length?pe:se[Ne]})}function G(z){return z.replace(/[<>&]/g,function(se){switch(se){case"<":return"<";case">":return">";case"&":return"&";default:return se}})}function U(z){return z.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function S(z,se=" "){const pe=Y(z,se);return M(pe,se)}function Y(z,se){if(!z||!se)return z;const pe=se.length;if(pe===0||z.length===0)return z;let ge=0;for(;z.indexOf(se,ge)===ge;)ge=ge+pe;return z.substring(ge)}function M(z,se){if(!z||!se)return z;const pe=se.length,ge=z.length;if(pe===0||ge===0)return z;let Ne=ge,Me=-1;for(;!(Me=z.lastIndexOf(se,Ne-1),Me===-1||Me+pe!==Ne);){if(Me===0)return"";Ne=Me}return z.substring(0,Ne)}function e(z){return z.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function I(z){return z.replace(/\*/g,"")}function p(z,se,pe={}){if(!z)throw new Error("Cannot create regex from empty string");se||(z=U(z)),pe.wholeWord&&(/\B/.test(z.charAt(0))||(z="\\b"+z),/\B/.test(z.charAt(z.length-1))||(z=z+"\\b"));let ge="";return pe.global&&(ge+="g"),pe.matchCase||(ge+="i"),pe.multiline&&(ge+="m"),pe.unicode&&(ge+="u"),new RegExp(z,ge)}function g(z){if(z.source==="^"||z.source==="^$"||z.source==="$"||z.source==="^\\s*$")return!1;const se=z.exec("");return!!(se&&z.lastIndex===0)}function c(z){return(z.global?"g":"")+(z.ignoreCase?"i":"")+(z.multiline?"m":"")+(z.unicode?"u":"")}function s(z){return z.split(/\r\n|\r|\n/)}function i(z){for(let se=0,pe=z.length;se<pe;se++){const ge=z.charCodeAt(se);if(ge!==32&&ge!==9)return se}return-1}function A(z,se=0,pe=z.length){for(let ge=se;ge<pe;ge++){const Ne=z.charCodeAt(ge);if(Ne!==32&&Ne!==9)return z.substring(se,ge)}return z.substring(se,pe)}function o(z,se=z.length-1){for(let pe=se;pe>=0;pe--){const ge=z.charCodeAt(pe);if(ge!==32&&ge!==9)return pe}return-1}function a(z,se){return z<se?-1:z>se?1:0}function r(z,se,pe=0,ge=z.length,Ne=0,Me=se.length){for(;pe<ge&&Ne<Me;pe++,Ne++){let Je=z.charCodeAt(pe),rt=se.charCodeAt(Ne);if(Je<rt)return-1;if(Je>rt)return 1}const ke=ge-pe,He=Me-Ne;return ke<He?-1:ke>He?1:0}function t(z,se){return b(z,se,0,z.length,0,se.length)}function b(z,se,pe=0,ge=z.length,Ne=0,Me=se.length){for(;pe<ge&&Ne<Me;pe++,Ne++){let Je=z.charCodeAt(pe),rt=se.charCodeAt(Ne);if(Je===rt)continue;if(Je>=128||rt>=128)return r(z.toLowerCase(),se.toLowerCase(),pe,ge,Ne,Me);y(Je)&&(Je-=32),y(rt)&&(rt-=32);const xe=Je-rt;if(xe===0)continue;return xe}const ke=ge-pe,He=Me-Ne;return ke<He?-1:ke>He?1:0}function y(z){return z>=97&&z<=122}function E(z){return z>=65&&z<=90}function T(z,se){return z.length===se.length&&b(z,se)===0}function v(z,se){const pe=se.length;return se.length>z.length?!1:b(z,se,0,pe)===0}function d(z,se){let pe,ge=Math.min(z.length,se.length);for(pe=0;pe<ge;pe++)if(z.charCodeAt(pe)!==se.charCodeAt(pe))return pe;return ge}function n(z,se){let pe,ge=Math.min(z.length,se.length);const Ne=z.length-1,Me=se.length-1;for(pe=0;pe<ge;pe++)if(z.charCodeAt(Ne-pe)!==se.charCodeAt(Me-pe))return pe;return ge}function l(z){return 55296<=z&&z<=56319}function u(z){return 56320<=z&&z<=57343}function _(z,se){return(z-55296<<10)+(se-56320)+65536}function m(z,se,pe){const ge=z.charCodeAt(pe);if(l(ge)&&pe+1<se){const Ne=z.charCodeAt(pe+1);if(u(Ne))return _(ge,Ne)}return ge}function h(z,se){const pe=z.charCodeAt(se-1);if(u(pe)&&se>1){const ge=z.charCodeAt(se-2);if(l(ge))return _(ge,pe)}return pe}function R(z,se){const pe=J.getInstance(),ge=se,Ne=z.length,Me=m(z,Ne,se);se+=Me>=65536?2:1;let ke=pe.getGraphemeBreakType(Me);for(;se<Ne;){const He=m(z,Ne,se),Je=pe.getGraphemeBreakType(He);if(N(ke,Je))break;se+=He>=65536?2:1,ke=Je}return se-ge}function F(z,se){const pe=J.getInstance(),ge=se,Ne=h(z,se);se-=Ne>=65536?2:1;let Me=pe.getGraphemeBreakType(Ne);for(;se>0;){const ke=h(z,se),He=pe.getGraphemeBreakType(ke);if(N(He,Me))break;se-=ke>=65536?2:1,Me=He}return ge-se}const C=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function P(z){return C.test(z)}const j=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function D(z){return j.test(z)}const $=/^[\t\n\r\x20-\x7E]*$/;function oe(z){return $.test(z)}const Ee=/[\u2028\u2029]/;function ve(z){return Ee.test(z)}function Le(z){for(let se=0,pe=z.length;se<pe;se++)if(Se(z.charCodeAt(se)))return!0;return!1}function Se(z){return z=+z,z>=11904&&z<=55215||z>=63744&&z<=64255||z>=65281&&z<=65374}function Re(z){return z>=127462&&z<=127487||z===8986||z===8987||z===9200||z===9203||z>=9728&&z<=10175||z===11088||z===11093||z>=127744&&z<=128591||z>=128640&&z<=128764||z>=128992&&z<=129003||z>=129280&&z<=129535||z>=129648&&z<=129750}const De=String.fromCharCode(65279);function Fe(z){return!!(z&&z.length>0&&z.charCodeAt(0)===65279)}function Ce(z,se=!1){return z?(se&&(z=z.replace(/\\./g,"")),z.toLowerCase()!==z):!1}function X(z){const se=90-65+1;return z=z%(2*se),z<se?String.fromCharCode(97+z):String.fromCharCode(65+z-se)}function L(z){const se=J.getInstance();return se.getGraphemeBreakType(z)}function N(z,se){return z===0?se!==5&&se!==7:z===2&&se===3?!1:z===4||z===2||z===3||(se===4||se===2||se===3)?!0:z===8&&(se===8||se===9||se===11||se===12)||((z===11||z===9)&&(se===9||se===10)||((z===12||z===10)&&se===10||(se===5||se===13||(se===7||(z===1||z===13&&se===14)))))?!1:!(z===6&&se===6)}class J{constructor(){this._data=ne()}static getInstance(){return J._INSTANCE||(J._INSTANCE=new J),J._INSTANCE}getGraphemeBreakType(z){if(z<32)return z===10?3:z===13?2:4;if(z<127)return 0;const se=this._data,pe=se.length/3;let ge=1;for(;ge<=pe;)if(z<se[3*ge])ge=2*ge;else if(z>se[3*ge+1])ge=2*ge+1;else return se[3*ge+2];return 0}}J._INSTANCE=null;function ne(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function k(z,se){if(z===0)return 0;const pe=Z(z,se);if(pe!==void 0)return pe;const ge=h(se,z);return z-=H(ge),z}function Z(z,se){let pe=h(se,z);for(z-=H(pe);W(pe)||pe===65039||pe===8419;){if(z===0)return;pe=h(se,z),z-=H(pe)}if(!Re(pe))return;if(z>=0){const ge=h(se,z);ge===8205&&(z-=H(ge))}return z}function H(z){return z>=65536?2:1}function W(z){return 127995<=z&&z<=127999}},NvD2:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return S});var de=Q("Kwbf");function K(Y,M){var e=new Set;return Y.forEach(function(I){M.has(I)||e.add(I)}),e}function O(Y){var M=Y||{},e=M.disabled,I=M.disableCheckbox,p=M.checkable;return!!(e||I)||p===!1}function G(Y,M,e,I){for(var p=new Set(Y),g=new Set,c=0;c<=e;c+=1){var s=M.get(c)||new Set;s.forEach(function(a){var r=a.key,t=a.node,b=a.children,y=b===void 0?[]:b;p.has(r)&&!I(t)&&y.filter(function(E){return!I(E.node)}).forEach(function(E){p.add(E.key)})})}for(var i=new Set,A=e;A>=0;A-=1){var o=M.get(A)||new Set;o.forEach(function(a){var r=a.parent,t=a.node;if(I(t)||!a.parent||i.has(a.parent.key))return;if(I(a.parent.node)){i.add(r.key);return}var b=!0,y=!1;(r.children||[]).filter(function(E){return!I(E.node)}).forEach(function(E){var T=E.key,v=p.has(T);b&&!v&&(b=!1),!y&&(v||g.has(T))&&(y=!0)}),b&&p.add(r.key),y&&g.add(r.key),i.add(r.key)})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(K(g,p))}}function U(Y,M,e,I,p){for(var g=new Set(Y),c=new Set(M),s=0;s<=I;s+=1){var i=e.get(s)||new Set;i.forEach(function(r){var t=r.key,b=r.node,y=r.children,E=y===void 0?[]:y;!g.has(t)&&!c.has(t)&&!p(b)&&E.filter(function(T){return!p(T.node)}).forEach(function(T){g.delete(T.key)})})}c=new Set;for(var A=new Set,o=I;o>=0;o-=1){var a=e.get(o)||new Set;a.forEach(function(r){var t=r.parent,b=r.node;if(p(b)||!r.parent||A.has(r.parent.key))return;if(p(r.parent.node)){A.add(t.key);return}var y=!0,E=!1;(t.children||[]).filter(function(T){return!p(T.node)}).forEach(function(T){var v=T.key,d=g.has(v);y&&!d&&(y=!1),!E&&(d||c.has(v))&&(E=!0)}),y||g.delete(t.key),E&&c.add(t.key),A.add(t.key)})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(K(c,g))}}function S(Y,M,e,I){var p=[],g;I?g=I:g=O;var c=new Set(Y.filter(function(o){var a=!!e[o];return a||p.push(o),a})),s=new Map,i=0;Object.keys(e).forEach(function(o){var a=e[o],r=a.level,t=s.get(r);t||(t=new Set,s.set(r,t)),t.add(a),i=Math.max(i,r)}),Object(de.a)(!p.length,"Tree missing follow keys: ".concat(p.slice(0,100).map(function(o){return"'".concat(o,"'")}).join(", ")));var A;return M===!0?A=G(c,s,i,g):A=U(c,M.halfCheckedKeys,s,i,g),A}},OZM5:function(ot,we,Q){"use strict";Q.d(we,"b",function(){return I}),Q.d(we,"a",function(){return p}),Q.d(we,"k",function(){return g}),Q.d(we,"h",function(){return c}),Q.d(we,"i",function(){return s}),Q.d(we,"g",function(){return i}),Q.d(we,"c",function(){return A}),Q.d(we,"d",function(){return o}),Q.d(we,"j",function(){return t}),Q.d(we,"e",function(){return b}),Q.d(we,"f",function(){return y});var de=Q("KQm4"),K=Q("U8pU"),O=Q("Ff2n"),G=Q("q1tI"),U=Q.n(G),S=Q("Kwbf"),Y=Q("WaYH"),M=.25,e=2;function I(E,T){var v=E.slice(),d=v.indexOf(T);return d>=0&&v.splice(d,1),v}function p(E,T){var v=E.slice();return v.indexOf(T)===-1&&v.push(T),v}function g(E){return E.split("-")}function c(E,T){return"".concat(E,"-").concat(T)}function s(E){return E&&E.type&&E.type.isTreeNode}function i(E,T){var v=[E],d=T[E];function n(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(u){var _=u.key,m=u.children;v.push(_),n(m)})}return n(d.children),v}function A(E,T){var v=E.clientY,d=T.selectHandle.getBoundingClientRect(),n=d.top,l=d.bottom,u=d.height,_=Math.max(u*M,e);return v<=n+_?-1:v>=l-_?1:0}function o(E,T){if(!E)return;var v=T.multiple;return v?E.slice():E.length?[E[0]]:E}var a=function(T){return T};function r(E,T){if(!E)return[];var v=T||{},d=v.processProps,n=d===void 0?a:d,l=Array.isArray(E)?E:[E];return l.map(function(u){var _=u.children,m=Object(O.a)(u,["children"]),h=r(_,T);return U.a.createElement(Y.a,Object.assign({},n(m)),h)})}function t(E){if(!E)return null;var T;if(Array.isArray(E))T={checkedKeys:E,halfCheckedKeys:void 0};else if(Object(K.a)(E)==="object")T={checkedKeys:E.checked||void 0,halfCheckedKeys:E.halfChecked||void 0};else return Object(S.a)(!1,"`checkedKeys` is not an array or an object"),null;return T}function b(E,T){var v=new Set;function d(n){if(v.has(n))return;var l=T[n];if(!l)return;v.add(n);var u=l.parent,_=l.node;if(_.disabled)return;u&&d(u.key)}return(E||[]).forEach(function(n){d(n)}),Object(de.a)(v)}function y(E){var T={};return Object.keys(E).forEach(function(v){(v.startsWith("data-")||v.startsWith("aria-"))&&(T[v]=E[v])}),T}},"SA+Z":function(ot,we,Q){var de=Q("wTVA"),K=Q("EbDI"),O=Q("ZhPi"),G=Q("wkBT");function U(S){return de(S)||K(S)||O(S)||G()}ot.exports=U,ot.exports.__esModule=!0,ot.exports.default=ot.exports},SJMd:function(ot,we){/**
|
|
* @license
|
|
* Copyright (C) 2006 Google Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/var Q,de,K,O=!1,G,U;window.PR_SHOULD_USE_CONTINUATION=!0;var S,Y;(function(){var M=window,e=["break,continue,do,else,for,if,return,while"],I=[e,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],p=[I,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],g=[p,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],c=[p,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],s=[p,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],i="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",A=[p,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],o="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",a=[e,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],r=[e,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],t=[e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],b=[g,s,c,A,o,a,r,t],y=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,E="str",T="kwd",v="com",d="typ",n="lit",l="pun",u="pln",_="tag",m="dec",h="src",R="atn",F="atv",C="nocode",P="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function j(Z){for(var H=0,W=!1,z=!1,se=0,pe=Z.length;se<pe;++se){var ge=Z[se];if(ge.ignoreCase)z=!0;else if(/[a-z]/i.test(ge.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){W=!0,z=!1;break}}var Ne={b:8,t:9,n:10,v:11,f:12,r:13};function Me(xe){var Ue=xe.charCodeAt(0);if(Ue!==92)return Ue;var Qe=xe.charAt(1);return Ue=Ne[Qe],Ue||("0"<=Qe&&Qe<="7"?parseInt(xe.substring(1),8):Qe==="u"||Qe==="x"?parseInt(xe.substring(2),16):xe.charCodeAt(1))}function ke(xe){if(xe<32)return(xe<16?"\\x0":"\\x")+xe.toString(16);var Ue=String.fromCharCode(xe);return Ue==="\\"||Ue==="-"||Ue==="]"||Ue==="^"?"\\"+Ue:Ue}function He(xe){var Ue=xe.substring(1,xe.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),Qe=[],ze=Ue[0]==="^",Ae=["["];ze&&Ae.push("^");for(var q=ze?1:0,ee=Ue.length;q<ee;++q){var ie=Ue[q];if(/\\[bdsw]/i.test(ie))Ae.push(ie);else{var le=Me(ie),te;q+2<ee&&Ue[q+1]==="-"?(te=Me(Ue[q+2]),q+=2):te=le,Qe.push([le,te]),te<65||le>122||(te<65||le>90||Qe.push([Math.max(65,le)|32,Math.min(te,90)|32]),te<97||le>122||Qe.push([Math.max(97,le)&~32,Math.min(te,122)&~32]))}}Qe.sort(function(Te,Be){return Te[0]-Be[0]||Be[1]-Te[1]});for(var ae=[],he=[],q=0;q<Qe.length;++q){var me=Qe[q];me[0]<=he[1]+1?he[1]=Math.max(he[1],me[1]):ae.push(he=me)}for(var q=0;q<ae.length;++q){var me=ae[q];Ae.push(ke(me[0])),me[1]>me[0]&&(me[1]+1>me[0]&&Ae.push("-"),Ae.push(ke(me[1])))}return Ae.push("]"),Ae.join("")}function Je(xe){for(var Ue=xe.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Qe=Ue.length,ze=[],Ae=0,q=0;Ae<Qe;++Ae){var ee=Ue[Ae];if(ee==="(")++q;else if(ee.charAt(0)==="\\"){var ie=+ee.substring(1);ie&&(ie<=q?ze[ie]=-1:Ue[Ae]=ke(ie))}}for(var Ae=1;Ae<ze.length;++Ae)ze[Ae]===-1&&(ze[Ae]=++H);for(var Ae=0,q=0;Ae<Qe;++Ae){var ee=Ue[Ae];if(ee==="(")++q,ze[q]||(Ue[Ae]="(?:");else if(ee.charAt(0)==="\\"){var ie=+ee.substring(1);ie&&ie<=q&&(Ue[Ae]="\\"+ze[ie])}}for(var Ae=0;Ae<Qe;++Ae)Ue[Ae]==="^"&&Ue[Ae+1]!=="^"&&(Ue[Ae]="");if(xe.ignoreCase&&W)for(var Ae=0;Ae<Qe;++Ae){var ee=Ue[Ae],le=ee.charAt(0);ee.length>=2&&le==="["?Ue[Ae]=He(ee):le!=="\\"&&(Ue[Ae]=ee.replace(/[a-zA-Z]/g,function(he){var me=he.charCodeAt(0);return"["+String.fromCharCode(me&~32,me|32)+"]"}))}return Ue.join("")}for(var rt=[],se=0,pe=Z.length;se<pe;++se){var ge=Z[se];if(ge.global||ge.multiline)throw new Error(""+ge);rt.push("(?:"+Je(ge)+")")}return new RegExp(rt.join("|"),z?"gi":"g")}function D(Z,H){var W=/(?:^|\s)nocode(?:\s|$)/,z=[],se=0,pe=[],ge=0;function Ne(Me){var ke=Me.nodeType;if(ke==1){if(W.test(Me.className))return;for(var He=Me.firstChild;He;He=He.nextSibling)Ne(He);var Je=Me.nodeName.toLowerCase();(Je==="br"||Je==="li")&&(z[ge]=`
|
|
`,pe[ge<<1]=se++,pe[ge++<<1|1]=Me)}else if(ke==3||ke==4){var rt=Me.nodeValue;rt.length&&(H?rt=rt.replace(/\r\n?/g,`
|
|
`):rt=rt.replace(/[ \t\r\n]+/g," "),z[ge]=rt,pe[ge<<1]=se,se+=rt.length,pe[ge++<<1|1]=Me)}}return Ne(Z),{sourceCode:z.join("").replace(/\n$/,""),spans:pe}}function $(Z,H,W,z,se){if(!W)return;var pe={sourceNode:Z,pre:1,langExtension:null,numberLines:null,sourceCode:W,spans:null,basePos:H,decorations:null};z(pe),se.push.apply(se,pe.decorations)}var oe=/\S/;function Ee(Z){for(var H=void 0,W=Z.firstChild;W;W=W.nextSibling){var z=W.nodeType;H=z===1?H?Z:W:z===3&&oe.test(W.nodeValue)?Z:H}return H===Z?void 0:H}function ve(Z,H){var W={},z;(function(){for(var ge=Z.concat(H),Ne=[],Me={},ke=0,He=ge.length;ke<He;++ke){var Je=ge[ke],rt=Je[3];if(rt)for(var xe=rt.length;--xe>=0;)W[rt.charAt(xe)]=Je;var Ue=Je[1],Qe=""+Ue;Me.hasOwnProperty(Qe)||(Ne.push(Ue),Me[Qe]=null)}Ne.push(/[\0-\uffff]/),z=j(Ne)})();var se=H.length,pe=function(ge){for(var Ne=ge.sourceCode,Me=ge.basePos,ke=ge.sourceNode,He=[Me,u],Je=0,rt=Ne.match(z)||[],xe={},Ue=0,Qe=rt.length;Ue<Qe;++Ue){var ze=rt[Ue],Ae=xe[ze],q=void 0,ee;if(typeof Ae=="string")ee=!1;else{var ie=W[ze.charAt(0)];if(ie)q=ze.match(ie[1]),Ae=ie[0];else{for(var le=0;le<se;++le)if(ie=H[le],q=ze.match(ie[1]),q){Ae=ie[0];break}q||(Ae=u)}ee=Ae.length>=5&&Ae.substring(0,5)==="lang-",ee&&!(q&&typeof q[1]=="string")&&(ee=!1,Ae=h),ee||(xe[ze]=Ae)}var te=Je;if(Je+=ze.length,!ee)He.push(Me+te,Ae);else{var ae=q[1],he=ze.indexOf(ae),me=he+ae.length;q[2]&&(me=ze.length-q[2].length,he=me-ae.length);var Te=Ae.substring(5);$(ke,Me+te,ze.substring(0,he),pe,He),$(ke,Me+te+he,ae,X(Te,ae),He),$(ke,Me+te+me,ze.substring(me),pe,He)}}ge.decorations=He};return pe}function Le(Z){var H=[],W=[];Z.tripleQuotedStrings?H.push([E,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Z.multiLineStrings?H.push([E,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):H.push([E,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Z.verbatimStrings&&W.push([E,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var z=Z.hashComments;z&&(Z.cStyleComments?(z>1?H.push([v,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):H.push([v,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),W.push([E,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):H.push([v,/^#[^\r\n]*/,null,"#"])),Z.cStyleComments&&(W.push([v,/^\/\/[^\r\n]*/,null]),W.push([v,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var se=Z.regexLiterals;if(se){var pe=se>1?"":`
|
|
\r`,ge=pe?".":"[\\S\\s]",Ne="/(?=[^/*"+pe+"])(?:[^/\\x5B\\x5C"+pe+"]|\\x5C"+ge+"|\\x5B(?:[^\\x5C\\x5D"+pe+"]|\\x5C"+ge+")*(?:\\x5D|$))+/";W.push(["lang-regex",RegExp("^"+P+"("+Ne+")")])}var Me=Z.types;Me&&W.push([d,Me]);var ke=(""+Z.keywords).replace(/^ | $/g,"");ke.length&&W.push([T,new RegExp("^(?:"+ke.replace(/[\s,]+/g,"|")+")\\b"),null]),H.push([u,/^\s+/,null,` \r
|
|
\xA0`]);var He="^.[^\\s\\w.$@'\"`/\\\\]*";return Z.regexLiterals&&(He+="(?!s*/)"),W.push([n,/^@[a-z_$][a-z_$@0-9]*/i,null],[d,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[u,/^[a-z_$][a-z_$@0-9]*/i,null],[n,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[u,/^\\[\s\S]?/,null],[l,new RegExp(He),null]),ve(H,W)}var Se=Le({keywords:b,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Re(Z,H,W){for(var z=/(?:^|\s)nocode(?:\s|$)/,se=/\r\n?|\n/,pe=Z.ownerDocument,ge=pe.createElement("li");Z.firstChild;)ge.appendChild(Z.firstChild);var Ne=[ge];function Me(Ue){var Qe=Ue.nodeType;if(Qe==1&&!z.test(Ue.className))if(Ue.nodeName==="br")ke(Ue),Ue.parentNode&&Ue.parentNode.removeChild(Ue);else for(var ze=Ue.firstChild;ze;ze=ze.nextSibling)Me(ze);else if((Qe==3||Qe==4)&&W){var Ae=Ue.nodeValue,q=Ae.match(se);if(q){var ee=Ae.substring(0,q.index);Ue.nodeValue=ee;var ie=Ae.substring(q.index+q[0].length);if(ie){var le=Ue.parentNode;le.insertBefore(pe.createTextNode(ie),Ue.nextSibling)}ke(Ue),ee||Ue.parentNode.removeChild(Ue)}}}function ke(Ue){for(;!Ue.nextSibling;)if(Ue=Ue.parentNode,!Ue)return;function Qe(q,ee){var ie=ee?q.cloneNode(!1):q,le=q.parentNode;if(le){var te=Qe(le,1),ae=q.nextSibling;te.appendChild(ie);for(var he=ae;he;he=ae)ae=he.nextSibling,te.appendChild(he)}return ie}for(var ze=Qe(Ue.nextSibling,0),Ae;(Ae=ze.parentNode)&&Ae.nodeType===1;)ze=Ae;Ne.push(ze)}for(var He=0;He<Ne.length;++He)Me(Ne[He]);H===(H|0)&&Ne[0].setAttribute("value",H);var Je=pe.createElement("ol");Je.className="linenums";for(var rt=Math.max(0,H-1|0)||0,He=0,xe=Ne.length;He<xe;++He)ge=Ne[He],ge.className="L"+(He+rt)%10,ge.firstChild||ge.appendChild(pe.createTextNode("\xA0")),Je.appendChild(ge);Z.appendChild(Je)}function De(Z){var H=/\bMSIE\s(\d+)/.exec(navigator.userAgent);H=H&&+H[1]<=8;var W=/\n/g,z=Z.sourceCode,se=z.length,pe=0,ge=Z.spans,Ne=ge.length,Me=0,ke=Z.decorations,He=ke.length,Je=0;ke[He]=se;var rt,xe;for(xe=rt=0;xe<He;)ke[xe]!==ke[xe+2]?(ke[rt++]=ke[xe++],ke[rt++]=ke[xe++]):xe+=2;for(He=rt,xe=rt=0;xe<He;){for(var Ue=ke[xe],Qe=ke[xe+1],ze=xe+2;ze+2<=He&&ke[ze+1]===Qe;)ze+=2;ke[rt++]=Ue,ke[rt++]=Qe,xe=ze}He=ke.length=rt;var Ae=Z.sourceNode,q="";Ae&&(q=Ae.style.display,Ae.style.display="none");try{for(var ee=null;Me<Ne;){var ie=ge[Me],le=ge[Me+2]||se,te=ke[Je+2]||se,ze=Math.min(le,te),ae=ge[Me+1],he;if(ae.nodeType!==1&&(he=z.substring(pe,ze))){H&&(he=he.replace(W,"\r")),ae.nodeValue=he;var me=ae.ownerDocument,Te=me.createElement("span");Te.className=ke[Je+1];var Be=ae.parentNode;Be.replaceChild(Te,ae),Te.appendChild(ae),pe<le&&(ge[Me+1]=ae=me.createTextNode(z.substring(ze,le)),Be.insertBefore(ae,Te.nextSibling))}pe=ze,pe>=le&&(Me+=2),pe>=te&&(Je+=2)}}finally{Ae&&(Ae.style.display=q)}}var Fe={};function Ce(Z,H){for(var W=H.length;--W>=0;){var z=H[W];Fe.hasOwnProperty(z)?M.console&&console.warn("cannot override language handler %s",z):Fe[z]=Z}}function X(Z,H){return Z&&Fe.hasOwnProperty(Z)||(Z=/^\s*</.test(H)?"default-markup":"default-code"),Fe[Z]}Ce(Se,["default-code"]),Ce(ve([],[[u,/^[^<?]+/],[m,/^<!\w[^>]*(?:>|$)/],[v,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[l,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Ce(ve([[u,/^[\s]+/,null,` \r
|
|
`],[F,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[_,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[R,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[l,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Ce(ve([],[[F,/^[\s\S]+/]]),["uq.val"]),Ce(Le({keywords:g,hashComments:!0,cStyleComments:!0,types:y}),["c","cc","cpp","cxx","cyc","m"]),Ce(Le({keywords:"null,true,false"}),["json"]),Ce(Le({keywords:s,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:y}),["cs"]),Ce(Le({keywords:c,cStyleComments:!0}),["java"]),Ce(Le({keywords:t,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ce(Le({keywords:a,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ce(Le({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ce(Le({keywords:r,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ce(Le({keywords:A,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ce(Le({keywords:i,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ce(ve([],[[E,/^[\s\S]+/]]),["regex"]);function L(Z){var H=Z.langExtension;try{var W=D(Z.sourceNode,Z.pre),z=W.sourceCode;Z.sourceCode=z,Z.spans=W.spans,Z.basePos=0,X(H,z)(Z),De(Z)}catch(se){M.console&&console.log(se&&se.stack||se)}}function N(Z,H,W){var z=W||!1,se=H||null,pe=document.createElement("div");pe.innerHTML="<pre>"+Z+"</pre>",pe=pe.firstChild,z&&Re(pe,z,!0);var ge={langExtension:se,numberLines:z,sourceNode:pe,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return L(ge),pe.innerHTML}function J(Z,H){var W=H||document.body,z=W.ownerDocument||document;function se(ie){return W.getElementsByTagName(ie)}for(var pe=[se("pre"),se("code"),se("xmp")],ge=[],Ne=0;Ne<pe.length;++Ne)for(var Me=0,ke=pe[Ne].length;Me<ke;++Me)ge.push(pe[Ne][Me]);pe=null;var He=Date;He.now||(He={now:function(){return+new Date}});var Je=0,rt=/\blang(?:uage)?-([\w.]+)(?!\S)/,xe=/\bprettyprint\b/,Ue=/\bprettyprinted\b/,Qe=/pre|xmp/i,ze=/^code$/i,Ae=/^(?:pre|code|xmp)$/i,q={};function ee(){for(var ie=M.PR_SHOULD_USE_CONTINUATION?He.now()+250:Infinity;Je<ge.length&&He.now()<ie;Je++){for(var le=ge[Je],te=q,ae=le;ae=ae.previousSibling;){var he=ae.nodeType,me=(he===7||he===8)&&ae.nodeValue;if(me?!/^\??prettify\b/.test(me):he!==3||/\S/.test(ae.nodeValue))break;if(me){te={},me.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Wt,St,$t){te[St]=$t});break}}var Te=le.className;if((te!==q||xe.test(Te))&&!Ue.test(Te)){for(var Be=!1,je=le.parentNode;je;je=je.parentNode){var qe=je.tagName;if(Ae.test(qe)&&je.className&&xe.test(je.className)){Be=!0;break}}if(!Be){le.className+=" prettyprinted";var at=te.lang;if(!at){at=Te.match(rt);var et;!at&&(et=Ee(le))&&ze.test(et.tagName)&&(at=et.className.match(rt)),at&&(at=at[1])}var _t;if(Qe.test(le.tagName))_t=1;else{var ut=le.currentStyle,$e=z.defaultView,kt=ut?ut.whiteSpace:$e&&$e.getComputedStyle?$e.getComputedStyle(le,null).getPropertyValue("white-space"):0;_t=kt&&kt.substring(0,3)==="pre"}var Ut=te.linenums;(Ut=Ut==="true"||+Ut)||(Ut=Te.match(/\blinenums\b(?::(\d+))?/),Ut=Ut?Ut[1]&&Ut[1].length?+Ut[1]:!0:!1),Ut&&Re(le,Ut,_t);var yt={langExtension:at,sourceNode:le,numberLines:Ut,pre:_t,sourceCode:null,basePos:null,spans:null,decorations:null};L(yt)}}}Je<ge.length?M.setTimeout(ee,250):typeof Z=="function"&&Z()}ee()}var ne=M.PR={createSimpleLexer:ve,registerLangHandler:Ce,sourceDecorator:Le,PR_ATTRIB_NAME:R,PR_ATTRIB_VALUE:F,PR_COMMENT:v,PR_DECLARATION:m,PR_KEYWORD:T,PR_LITERAL:n,PR_NOCODE:C,PR_PLAIN:u,PR_PUNCTUATION:l,PR_SOURCE:h,PR_STRING:E,PR_TAG:_,PR_TYPE:d,prettyPrintOne:O?M.prettyPrintOne=N:S=N,prettyPrint:Y=O?M.prettyPrint=J:Y=J},k=M.define;typeof k=="function"&&k.amd&&k("google-code-prettify",[],function(){return ne})})()},STEk:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return Ce});/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */var de=function(X,L){return(de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,J){N.__proto__=J}||function(N,J){for(var ne in J)Object.prototype.hasOwnProperty.call(J,ne)&&(N[ne]=J[ne])})(X,L)};function K(X,L){function N(){this.constructor=X}de(X,L),X.prototype=L===null?Object.create(L):(N.prototype=L.prototype,new N)}function O(X,L,N,J){return new(N||(N=Promise))(function(ne,k){function Z(z){try{W(J.next(z))}catch(se){k(se)}}function H(z){try{W(J.throw(z))}catch(se){k(se)}}function W(z){var se;z.done?ne(z.value):(se=z.value,se instanceof N?se:new N(function(pe){pe(se)})).then(Z,H)}W((J=J.apply(X,L||[])).next())})}function G(X,L){var N,J,ne,k,Z={label:0,sent:function(){if(1&ne[0])throw ne[1];return ne[1]},trys:[],ops:[]};return k={next:H(0),throw:H(1),return:H(2)},typeof Symbol=="function"&&(k[Symbol.iterator]=function(){return this}),k;function H(W){return function(z){return function(se){if(N)throw new TypeError("Generator is already executing.");for(;Z;)try{if(N=1,J&&(ne=2&se[0]?J.return:se[0]?J.throw||((ne=J.return)&&ne.call(J),0):J.next)&&!(ne=ne.call(J,se[1])).done)return ne;switch(J=0,ne&&(se=[2&se[0],ne.value]),se[0]){case 0:case 1:ne=se;break;case 4:return Z.label++,{value:se[1],done:!1};case 5:Z.label++,J=se[1],se=[0];continue;case 7:se=Z.ops.pop(),Z.trys.pop();continue;default:if(!(ne=Z.trys,(ne=ne.length>0&&ne[ne.length-1])||se[0]!==6&&se[0]!==2)){Z=0;continue}if(se[0]===3&&(!ne||se[1]>ne[0]&&se[1]<ne[3])){Z.label=se[1];break}if(se[0]===6&&Z.label<ne[1]){Z.label=ne[1],ne=se;break}if(ne&&Z.label<ne[2]){Z.label=ne[2],Z.ops.push(se);break}ne[2]&&Z.ops.pop(),Z.trys.pop();continue}se=L.call(X,Z)}catch(pe){se=[6,pe],J=0}finally{N=ne=0}if(5&se[0])throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}([W,z])}}}function U(){for(var X=0,L=0,N=arguments.length;L<N;L++)X+=arguments[L].length;var J=Array(X),ne=0;for(L=0;L<N;L++)for(var k=arguments[L],Z=0,H=k.length;Z<H;Z++,ne++)J[ne]=k[Z];return J}var S=function(){function X(){}return X.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},X.setAttributes=function(L,N){for(var J=0,ne=N;J<ne.length;J++){var k=ne[J],Z=k[0],H=k[1];L.setAttribute(Z,H)}},X.createRect=function(L,N,J){var ne=document.createElementNS("http://www.w3.org/2000/svg","rect");return ne.setAttribute("width",L.toString()),ne.setAttribute("height",N.toString()),J&&X.setAttributes(ne,J),ne},X.createLine=function(L,N,J,ne,k){var Z=document.createElementNS("http://www.w3.org/2000/svg","line");return Z.setAttribute("x1",L.toString()),Z.setAttribute("y1",N.toString()),Z.setAttribute("x2",J.toString()),Z.setAttribute("y2",ne.toString()),k&&X.setAttributes(Z,k),Z},X.createPolygon=function(L,N){var J=document.createElementNS("http://www.w3.org/2000/svg","polygon");return J.setAttribute("points",L),N&&X.setAttributes(J,N),J},X.createCircle=function(L,N){var J=document.createElementNS("http://www.w3.org/2000/svg","circle");return J.setAttribute("cx",(L/2).toString()),J.setAttribute("cy",(L/2).toString()),J.setAttribute("r",L.toString()),N&&X.setAttributes(J,N),J},X.createEllipse=function(L,N,J){var ne=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ne.setAttribute("cx",(L/2).toString()),ne.setAttribute("cy",(N/2).toString()),ne.setAttribute("rx",(L/2).toString()),ne.setAttribute("ry",(N/2).toString()),J&&X.setAttributes(ne,J),ne},X.createGroup=function(L){var N=document.createElementNS("http://www.w3.org/2000/svg","g");return L&&X.setAttributes(N,L),N},X.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},X.createMarker=function(L,N,J,ne,k,Z,H){var W=document.createElementNS("http://www.w3.org/2000/svg","marker");return X.setAttributes(W,[["id",L],["orient",N],["markerWidth",J.toString()],["markerHeight",ne.toString()],["refX",k.toString()],["refY",Z.toString()]]),W.appendChild(H),W},X.createText=function(L){var N=document.createElementNS("http://www.w3.org/2000/svg","text");return N.setAttribute("x","0"),N.setAttribute("y","0"),L&&X.setAttributes(N,L),N},X.createTSpan=function(L,N){var J=document.createElementNS("http://www.w3.org/2000/svg","tspan");return J.textContent=L,N&&X.setAttributes(J,N),J},X.createImage=function(L){var N=document.createElementNS("http://www.w3.org/2000/svg","image");return L&&X.setAttributes(N,L),N},X.createPoint=function(L,N){var J=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return J.x=L,J.y=N,J},X.createPath=function(L,N){var J=document.createElementNS("http://www.w3.org/2000/svg","path");return J.setAttribute("d",L),N&&X.setAttributes(J,N),J},X}(),Y=function(){function X(){}return X.addKey=function(L){X.key=L},Object.defineProperty(X,"isLicensed",{get:function(){return!!X.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(X.key)},enumerable:!1,configurable:!0}),X}(),M=function(){function X(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return X.prototype.rasterize=function(L,N,J){var ne=this;return new Promise(function(k){var Z=J!==void 0?J:document.createElement("canvas");L===null&&(ne.markersOnly=!0,ne.naturalSize=!1);var H=document.createElementNS("http://www.w3.org/2000/svg","svg");H.setAttribute("xmlns","http://www.w3.org/2000/svg"),H.setAttribute("width",N.width.baseVal.valueAsString),H.setAttribute("height",N.height.baseVal.valueAsString),H.setAttribute("viewBox","0 0 "+N.viewBox.baseVal.width.toString()+" "+N.viewBox.baseVal.height.toString()),H.innerHTML=N.innerHTML,ne.naturalSize===!0?(H.width.baseVal.value=L.naturalWidth,H.height.baseVal.value=L.naturalHeight):ne.width!==void 0&&ne.height!==void 0&&(H.width.baseVal.value=ne.width,H.height.baseVal.value=ne.height),Z.width=H.width.baseVal.value,Z.height=H.height.baseVal.value;var W=H.outerHTML,z=Z.getContext("2d");ne.markersOnly!==!0&&z.drawImage(L,0,0,Z.width,Z.height);var se=window.URL,pe=new Image(Z.width,Z.height);pe.setAttribute("crossOrigin","anonymous");var ge=new Blob([W],{type:"image/svg+xml"}),Ne=se.createObjectURL(ge);pe.onload=function(){z.drawImage(pe,0,0),se.revokeObjectURL(Ne);var Me=Z.toDataURL(ne.imageType,ne.imageQuality);k(Me)},pe.src=Ne})},X}(),e=function(){},I=function(){function X(L){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+L+"_"}return Object.defineProperty(X.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),X.prototype.addClass=function(L){return this.styleSheet===void 0&&this.addStyleSheet(),L.name=""+this.classNamePrefix+L.localName,this.classes.push(L),this.styleSheet.sheet.insertRule("."+L.name+" {"+L.style+"}",this.styleSheet.sheet.cssRules.length),L},X.prototype.addRule=function(L){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(L),this.styleSheet.sheet.insertRule(L.selector+" {"+L.style+"}",this.styleSheet.sheet.cssRules.length)},X.prototype.addStyleSheet=function(){var L;this.styleSheet=document.createElement("style"),((L=this.styleSheetRoot)!==null&&L!==void 0?L:document.head).appendChild(this.styleSheet),this.addRule(new p("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new p("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new p("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new g("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new g("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},X.prototype.removeStyleSheet=function(){var L;this.styleSheet&&(((L=this.styleSheetRoot)!==null&&L!==void 0?L:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},X}(),p=function(X,L){this.selector=X,this.style=L},g=function(X,L){this.localName=X,this.style=L},c=function(){function X(L,N,J,ne,k){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=L,this.displayMode=N,this.markerItems=J,this.uiStyleSettings=ne,this.styles=k,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return X.prototype.show=function(L){var N=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=L,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var J=document.createElement("div");J.className=this.toolbarBlockStyleClass.name,J.style.whiteSpace="nowrap",this.uiContainer.appendChild(J),this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(J,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(k){var Z=document.createElement("div");Z.className=""+N.toolbarButtonStyleClass.name,Z.setAttribute("data-type-name",k.typeName),Z.innerHTML=k.icon,Z.addEventListener("click",function(){N.markerToolbarButtonClicked(Z,k)}),N.buttons.push(Z),N.markerButtons.push(Z)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ne=document.createElement("div");ne.className=this.toolbarBlockStyleClass.name,ne.style.whiteSpace="nowrap",ne.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ne),this.addActionButton(ne,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(ne,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},X.prototype.addButtonClickListener=function(L){this.buttonClickListeners.push(L)},X.prototype.removeButtonClickListener=function(L){this.buttonClickListeners.indexOf(L)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(L),1)},X.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},X.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var L=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var N=0;N<this.markerButtons.length;N++)N<L||N===L&&this.markerButtons.length-1===L?this.markerButtonBlock.appendChild(this.markerButtons[N]):(N===L&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[N]))}},X.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},X.prototype.resetButtonStyles=function(){var L=this;this.buttons.forEach(function(N){N.className=N.className.replace(L.uiStyleSettings.toolbarButtonStyleColorsClassName?L.uiStyleSettings.toolbarButtonStyleColorsClassName:L.toolbarButtonStyleColorsClass.name,"").trim(),N.className=N.className.replace(L.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?L.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:L.toolbarActiveButtonStyleColorsClass.name,"").trim(),N.className+=" "+(L.uiStyleSettings.toolbarButtonStyleColorsClassName?L.uiStyleSettings.toolbarButtonStyleColorsClassName:L.toolbarButtonStyleColorsClass.name)})},X.prototype.addActionButton=function(L,N,J){var ne=this,k=document.createElement("div");switch(k.className=""+this.toolbarButtonStyleClass.name,k.innerHTML=N,k.setAttribute("data-action",J),k.addEventListener("click",function(){ne.actionToolbarButtonClicked(k,J)}),J){case"select":k.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":k.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":k.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":k.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":k.style.fill=this.uiStyleSettings.closeButtonColor}L.appendChild(k),this.buttons.push(k)},X.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new g("toolbar",`
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
box-sizing: content-box;
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
overflow: hidden;
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new g("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new g("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new g("toolbar-overflow-block",`
|
|
position: absolute;
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
z-index: 10;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new g("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var L=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new g("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*L)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*L)+`px;
|
|
padding: `+L+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new g("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new g("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new p("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new p("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},X.prototype.markerToolbarButtonClicked=function(L,N){this.setActiveButton(L),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(J){return J("marker",N)}),this.markerButtonOverflowBlock.style.display="none"},X.prototype.actionToolbarButtonClicked=function(L,N){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(J){return J("action",N)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},X.prototype.setActiveButton=function(L){this.resetButtonStyles(),L.className=L.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),L.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},X.prototype.setActiveMarkerButton=function(L){var N=this.markerButtons.find(function(J){return J.getAttribute("data-type-name")===L});N&&this.setActiveButton(N)},X.prototype.setCurrentMarker=function(L){var N=this;this.currentMarker=L,this.buttons.filter(function(J){return/delete|notes/.test(J.getAttribute("data-action"))}).forEach(function(J){N.currentMarker===void 0?(J.style.fillOpacity="0.4",J.style.pointerEvents="none"):(J.style.fillOpacity="1",J.style.pointerEvents="all")})},X}(),s=function(){function X(L,N,J,ne){this.panels=[],this.panelButtons=[],this.markerjsContainer=L,this.displayMode=N,this.uiStyleSettings=J,this.styles=ne,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return X.prototype.addStyles=function(){var L;this.toolboxStyleClass=this.styles.addClass(new g("toolbox",`
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-family: sans-serif;
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
box-sizing: content-box;
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
overflow: hidden;
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new g("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var N=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new g("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new g("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new g("toolbox-panel-row",`
|
|
display: flex;
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
cursor: default;
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
box-sizing: content-box;
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new g("toolbox-panel-row_colors",`
|
|
background-color: `+((L=this.uiStyleSettings.toolboxBackgroundColor)!==null&&L!==void 0?L:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new g("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*N)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*N)+`px;
|
|
padding: `+N+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new g("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new g("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new p("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new p("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},X.prototype.show=function(L){var N;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=L,this.uiContainer.className=this.toolboxStyleClass.name+" "+((N=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&N!==void 0?N:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},X.prototype.setPanelButtons=function(L){var N,J,ne=this;this.panels=L,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((N=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&N!==void 0?N:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((J=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&J!==void 0?J:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(k){var Z;k.uiStyleSettings=ne.uiStyleSettings;var H=document.createElement("div");H.className=ne.toolboxButtonStyleClass.name+" "+((Z=ne.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Z!==void 0?Z:ne.toolboxButtonStyleColorsClass.name),H.innerHTML=k.icon,H.title=k.title,H.addEventListener("click",function(){ne.panelButtonClick(k)}),ne.panelButtons.push(H),ne.buttonRow.appendChild(H)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},X.prototype.panelButtonClick=function(L){var N=this,J=-1;if(L!==this.activePanel){J=this.panels.indexOf(L),this.panelRow.innerHTML="";var ne=L.getUi();ne.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ne),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=L}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){N.displayMode==="inline"?N.panelRow.style.display="none":N.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(k,Z){var H,W;k.className=N.toolboxButtonStyleClass.name+" "+(Z===J?""+((H=N.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&H!==void 0?H:N.toolboxActiveButtonStyleColorsClass.name):""+((W=N.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&W!==void 0?W:N.toolboxButtonStyleColorsClass.name))})},X}(),i=function(X,L){this.title=X,this.icon=L},A=function(X){function L(N,J,ne,k){var Z=X.call(this,N,k||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Z.colors=[],Z.addTransparent=!1,Z.colorBoxes=[],Z.colors=J,Z.currentColor=ne,Z.setCurrentColor=Z.setCurrentColor.bind(Z),Z.getColorBox=Z.getColorBox.bind(Z),Z}return K(L,X),L.prototype.getUi=function(){var N=this,J=document.createElement("div");return J.style.overflow="hidden",J.style.whiteSpace="nowrap",this.colors.forEach(function(ne){var k=N.getColorBox(ne);J.appendChild(k),N.colorBoxes.push(k)}),J},L.prototype.getColorBox=function(N){var J=this,ne=this.uiStyleSettings.toolbarHeight/4,k=this.uiStyleSettings.toolbarHeight-ne,Z=document.createElement("div");Z.style.display="inline-block",Z.style.boxSizing="content-box",Z.style.width=k-2+"px",Z.style.height=k-2+"px",Z.style.padding="1px",Z.style.marginRight="2px",Z.style.marginBottom="2px",Z.style.borderWidth="2px",Z.style.borderStyle="solid",Z.style.borderRadius=(k+2)/2+"px",Z.style.borderColor=N===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Z.addEventListener("click",function(){J.setCurrentColor(N,Z)});var H=document.createElement("div");return H.style.display="inline-block",H.style.width=k-2+"px",H.style.height=k-2+"px",H.style.backgroundColor=N,H.style.borderRadius=k/2+"px",N==="transparent"&&(H.style.fill=this.uiStyleSettings.toolboxAccentColor,H.innerHTML=`<svg viewBox="0 0 24 24">
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
</svg>`),Z.appendChild(H),Z},L.prototype.setCurrentColor=function(N,J){var ne=this;this.currentColor=N,this.colorBoxes.forEach(function(k){k.style.borderColor=k===J?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(N)},L}(i),o=function(){function X(L,N,J){this._state="new",this._isSelected=!1,this._container=L,this._overlayContainer=N,this.globalSettings=J,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(X.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),X.prototype.ownsTarget=function(L){return!1},Object.defineProperty(X.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),X.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},X.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},X.prototype.pointerDown=function(L,N){},X.prototype.dblClick=function(L,N){},X.prototype.manipulate=function(L){},X.prototype.pointerUp=function(L){this.stateChanged()},X.prototype.dispose=function(){},X.prototype.addMarkerVisualToContainer=function(L){this.container.childNodes.length>0?this.container.insertBefore(L,this.container.childNodes[0]):this.container.appendChild(L)},X.prototype.getState=function(){return{typeName:X.typeName,state:this.state,notes:this.notes}},X.prototype.restoreState=function(L){this._state=L.state,this.notes=L.notes},X.prototype.scale=function(L,N){},X.prototype.colorChanged=function(L){this.onColorChanged&&this.onColorChanged(L),this.stateChanged()},X.prototype.fillColorChanged=function(L){this.onFillColorChanged&&this.onFillColorChanged(L),this.stateChanged()},X.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var L=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),L.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(L)&&this.onStateChanged(this)}},X.typeName="MarkerBase",X}(),a=function(){function X(){this.findGripByVisual=this.findGripByVisual.bind(this)}return X.prototype.findGripByVisual=function(L){return this.topLeft.ownsTarget(L)?this.topLeft:this.topCenter.ownsTarget(L)?this.topCenter:this.topRight.ownsTarget(L)?this.topRight:this.centerLeft.ownsTarget(L)?this.centerLeft:this.centerRight.ownsTarget(L)?this.centerRight:this.bottomLeft.ownsTarget(L)?this.bottomLeft:this.bottomCenter.ownsTarget(L)?this.bottomCenter:this.bottomRight.ownsTarget(L)?this.bottomRight:void 0},X}(),r=function(){function X(){this.GRIP_SIZE=10,this.visual=S.createGroup(),this.visual.appendChild(S.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(S.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return X.prototype.ownsTarget=function(L){return L===this.visual||L===this.visual.childNodes[0]||L===this.visual.childNodes[1]},X}(),t=function(){function X(){}return X.toITransformMatrix=function(L){return{a:L.a,b:L.b,c:L.c,d:L.d,e:L.e,f:L.f}},X.toSVGMatrix=function(L,N){return L.a=N.a,L.b=N.b,L.c=N.c,L.d=N.d,L.e=N.e,L.f=N.f,L},X}(),b=function(X){function L(N,J,ne){var k=X.call(this,N,J,ne)||this;return k.left=0,k.top=0,k.width=0,k.height=0,k.defaultSize={x:50,y:20},k.offsetX=0,k.offsetY=0,k.rotationAngle=0,k.CB_DISTANCE=10,k._suppressMarkerCreateEvent=!1,k.container.transform.baseVal.appendItem(S.createTransform()),k.setupControlBox(),k}return K(L,X),Object.defineProperty(L.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"visual",{get:function(){return this._visual},set:function(N){this._visual=N;var J=S.createTransform();this._visual.transform.baseVal.appendItem(J)},enumerable:!1,configurable:!0}),L.prototype.ownsTarget=function(N){return!!X.prototype.ownsTarget.call(this,N)||!!(this.controlGrips.findGripByVisual(N)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(N))},L.prototype.pointerDown=function(N,J){X.prototype.pointerDown.call(this,N,J),this.state==="new"&&(this.left=N.x,this.top=N.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ne=this.unrotatePoint(N);if(this.manipulationStartX=ne.x,this.manipulationStartY=ne.y,this.offsetX=ne.x-this.left,this.offsetY=ne.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(J),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(J)){this.activeGrip=this.rotatorGrip;var k=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=k.x-this.width/2,this.top=k.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Z=this.container.transform.baseVal.getItem(0);Z.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Z,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},L.prototype.pointerUp=function(N){var J=this.state;X.prototype.pointerUp.call(this,N),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(N),this._state="select",J==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},L.prototype.moveVisual=function(N){this.visual.style.transform="translate("+N.x+"px, "+N.y+"px)"},L.prototype.manipulate=function(N){var J=this.unrotatePoint(N);this.state==="creating"?this.resize(N):this.state==="move"?(this.left=this.manipulationStartLeft+(J.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(J.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(J):this.state==="rotate"&&this.rotate(N)},L.prototype.resize=function(N){var J=this.manipulationStartLeft,ne=this.manipulationStartWidth,k=this.manipulationStartTop,Z=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:J=this.manipulationStartLeft+N.x-this.manipulationStartX,ne=this.manipulationStartWidth+this.manipulationStartLeft-J;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ne=this.manipulationStartWidth+N.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:k=this.manipulationStartTop+N.y-this.manipulationStartY,Z=this.manipulationStartHeight+this.manipulationStartTop-k;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Z=this.manipulationStartHeight+N.y-this.manipulationStartY}ne>=0?(this.left=J,this.width=ne):(this.left=J+ne,this.width=-ne),Z>=0?(this.top=k,this.height=Z):(this.top=k+Z,this.height=-Z),this.setSize()},L.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},L.prototype.rotate=function(N){if(Math.abs(N.x-this.centerX)>.1){var J=Math.sign(N.x-this.centerX);this.rotationAngle=180*Math.atan((N.y-this.centerY)/(N.x-this.centerX))/Math.PI+90*J,this.applyRotation()}},L.prototype.applyRotation=function(){var N=this.container.transform.baseVal.getItem(0);N.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(N,0)},L.prototype.rotatePoint=function(N){if(this.rotationAngle===0)return N;var J=this.container.getCTM(),ne=S.createPoint(N.x,N.y);return{x:(ne=ne.matrixTransform(J)).x,y:ne.y}},L.prototype.unrotatePoint=function(N){if(this.rotationAngle===0)return N;var J=this.container.getCTM();J=J.inverse();var ne=S.createPoint(N.x,N.y);return{x:(ne=ne.matrixTransform(J)).x,y:ne.y}},L.prototype.select=function(){X.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},L.prototype.deselect=function(){X.prototype.deselect.call(this),this.controlBox.style.display="none"},L.prototype.setupControlBox=function(){this.controlBox=S.createGroup();var N=S.createTransform();N.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(N),this.container.appendChild(this.controlBox),this.controlRect=S.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=S.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new a,this.addControlGrips(),this.controlBox.style.display="none"},L.prototype.adjustControlBox=function(){var N=this.controlBox.transform.baseVal.getItem(0);N.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(N,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},L.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},L.prototype.createGrip=function(){var N=new r;return N.visual.transform.baseVal.appendItem(S.createTransform()),this.controlBox.appendChild(N.visual),N},L.prototype.positionGrips=function(){var N=this.controlGrips.topLeft.GRIP_SIZE,J=-N/2,ne=J,k=(this.width+this.CB_DISTANCE)/2-N/2,Z=(this.height+this.CB_DISTANCE)/2-N/2,H=this.height+this.CB_DISTANCE-N/2,W=this.width+this.CB_DISTANCE-N/2;this.positionGrip(this.controlGrips.topLeft.visual,J,ne),this.positionGrip(this.controlGrips.topCenter.visual,k,ne),this.positionGrip(this.controlGrips.topRight.visual,W,ne),this.positionGrip(this.controlGrips.centerLeft.visual,J,Z),this.positionGrip(this.controlGrips.centerRight.visual,W,Z),this.positionGrip(this.controlGrips.bottomLeft.visual,J,H),this.positionGrip(this.controlGrips.bottomCenter.visual,k,H),this.positionGrip(this.controlGrips.bottomRight.visual,W,H),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,k,ne-3*this.CB_DISTANCE)},L.prototype.positionGrip=function(N,J,ne){var k=N.transform.baseVal.getItem(0);k.setTranslate(J,ne),N.transform.baseVal.replaceItem(k,0)},L.prototype.hideControlBox=function(){this.controlBox.style.display="none"},L.prototype.showControlBox=function(){this.controlBox.style.display=""},L.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:t.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:t.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},X.prototype.getState.call(this))},L.prototype.restoreState=function(N){X.prototype.restoreState.call(this,N);var J=N;this.left=J.left,this.top=J.top,this.width=J.width,this.height=J.height,this.rotationAngle=J.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(t.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,J.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(t.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,J.containerTransformMatrix))},L.prototype.scale=function(N,J){X.prototype.scale.call(this,N,J);var ne=this.rotatePoint({x:this.left,y:this.top}),k=this.unrotatePoint({x:ne.x*N,y:ne.y*J});this.left=k.x,this.top=k.y,this.width=this.width*N,this.height=this.height*J,this.adjustControlBox()},L}(o),y=function(X){function L(N,J,ne){var k=X.call(this,N,J,ne)||this;return k.fillColor="transparent",k.strokeColor="transparent",k.strokeWidth=0,k.strokeDasharray="",k.opacity=1,k.setStrokeColor=k.setStrokeColor.bind(k),k.setFillColor=k.setFillColor.bind(k),k.setStrokeWidth=k.setStrokeWidth.bind(k),k.setStrokeDasharray=k.setStrokeDasharray.bind(k),k.createVisual=k.createVisual.bind(k),k}return K(L,X),L.prototype.ownsTarget=function(N){return!(!X.prototype.ownsTarget.call(this,N)&&N!==this.visual)},L.prototype.createVisual=function(){this.visual=S.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},L.prototype.pointerDown=function(N,J){X.prototype.pointerDown.call(this,N,J),this.state==="new"&&(this.createVisual(),this.moveVisual(N),this._state="creating")},L.prototype.manipulate=function(N){X.prototype.manipulate.call(this,N)},L.prototype.resize=function(N){X.prototype.resize.call(this,N),this.setSize()},L.prototype.setSize=function(){X.prototype.setSize.call(this),S.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},L.prototype.pointerUp=function(N){X.prototype.pointerUp.call(this,N),this.setSize()},L.prototype.setStrokeColor=function(N){this.strokeColor=N,this.visual&&S.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(N),this.stateChanged()},L.prototype.setFillColor=function(N){this.fillColor=N,this.visual&&S.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},L.prototype.setStrokeWidth=function(N){this.strokeWidth=N,this.visual&&S.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},L.prototype.setStrokeDasharray=function(N){this.strokeDasharray=N,this.visual&&S.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},L.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},X.prototype.getState.call(this))},L.prototype.restoreState=function(N){var J=N;this.fillColor=J.fillColor,this.strokeColor=J.strokeColor,this.strokeWidth=J.strokeWidth,this.strokeDasharray=J.strokeDasharray,this.opacity=J.opacity,this.createVisual(),X.prototype.restoreState.call(this,N),this.setSize()},L.prototype.scale=function(N,J){X.prototype.scale.call(this,N,J),this.setSize()},L.title="Rectangle marker",L}(b),E=function(X){function L(N,J,ne,k){var Z=X.call(this,N,k||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Z.widths=[],Z.widthBoxes=[],Z.widths=J,Z.currentWidth=ne,Z.setCurrentWidth=Z.setCurrentWidth.bind(Z),Z}return K(L,X),L.prototype.getUi=function(){var N=this,J=document.createElement("div");return J.style.display="flex",J.style.overflow="hidden",J.style.flexGrow="2",this.widths.forEach(function(ne){var k=document.createElement("div");k.style.display="flex",k.style.flexGrow="2",k.style.alignItems="center",k.style.justifyContent="space-between",k.style.padding="5px",k.style.borderWidth="2px",k.style.borderStyle="solid",k.style.borderColor=ne===N.currentWidth?N.uiStyleSettings.toolboxAccentColor:"transparent",k.addEventListener("click",function(){N.setCurrentWidth(ne,k)}),J.appendChild(k);var Z=document.createElement("div");Z.innerText=ne.toString(),Z.style.marginRight="5px",k.appendChild(Z);var H=document.createElement("div");H.style.minHeight="20px",H.style.flexGrow="2",H.style.display="flex",H.style.alignItems="center";var W=document.createElement("hr");W.style.minWidth="20px",W.style.border="0px",W.style.borderTop=ne+"px solid "+N.uiStyleSettings.toolboxColor,W.style.flexGrow="2",H.appendChild(W),k.appendChild(H),N.widthBoxes.push(k)}),J},L.prototype.setCurrentWidth=function(N,J){var ne=this;this.currentWidth=N,this.widthBoxes.forEach(function(k){k.style.borderColor=k===J?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},L}(i),T=function(X){function L(N,J,ne,k){var Z=X.call(this,N,k||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Z.styles=[],Z.styleBoxes=[],Z.styles=J,Z.currentStyle=ne,Z.setCurrentStyle=Z.setCurrentStyle.bind(Z),Z}return K(L,X),L.prototype.getUi=function(){var N=this,J=document.createElement("div");return J.style.display="flex",J.style.overflow="hidden",J.style.flexGrow="2",this.styles.forEach(function(ne){var k=document.createElement("div");k.style.display="flex",k.style.alignItems="center",k.style.justifyContent="space-between",k.style.padding="5px",k.style.borderWidth="2px",k.style.borderStyle="solid",k.style.overflow="hidden",k.style.maxWidth=100/N.styles.length-5+"%",k.style.borderColor=ne===N.currentStyle?N.uiStyleSettings.toolboxAccentColor:"transparent",k.addEventListener("click",function(){N.setCurrentStyle(ne,k)}),J.appendChild(k);var Z=document.createElement("div");Z.style.minHeight="20px",Z.style.flexGrow="2",Z.style.overflow="hidden";var H=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+N.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ne!==""?'stroke-dasharray="'+ne+'"':"")+` />
|
|
</svg>`;Z.innerHTML=H,k.appendChild(Z),N.styleBoxes.push(k)}),J},L.prototype.setCurrentStyle=function(N,J){var ne=this;this.currentStyle=N,this.styleBoxes.forEach(function(k){k.style.borderColor=k===J?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},L}(i),v=function(X){function L(N,J,ne){var k=X.call(this,N,J,ne)||this;return k.strokeColor=ne.defaultColor,k.strokeWidth=ne.defaultStrokeWidth,k.strokeDasharray=ne.defaultStrokeDasharray,k.strokePanel=new A("Line color",ne.defaultColorSet,ne.defaultColor),k.strokePanel.onColorChanged=k.setStrokeColor,k.strokeWidthPanel=new E("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),k.strokeWidthPanel.onWidthChanged=k.setStrokeWidth,k.strokeStylePanel=new T("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),k.strokeStylePanel.onStyleChanged=k.setStrokeDasharray,k}return K(L,X),Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var N=X.prototype.getState.call(this);return N.typeName=L.typeName,N},L.typeName="FrameMarker",L.title="Frame marker",L.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',L}(y),d=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},n=function(X){function L(N,J,ne){var k=X.call(this,N,J,ne)||this;return k.x1=0,k.y1=0,k.x2=0,k.y2=0,k.defaultLength=50,k.manipulationStartX=0,k.manipulationStartY=0,k.manipulationStartX1=0,k.manipulationStartY1=0,k.manipulationStartX2=0,k.manipulationStartY2=0,k.setupControlBox(),k}return K(L,X),L.prototype.ownsTarget=function(N){return!!X.prototype.ownsTarget.call(this,N)||!(!this.grip1.ownsTarget(N)&&!this.grip2.ownsTarget(N))},L.prototype.pointerDown=function(N,J){X.prototype.pointerDown.call(this,N,J),this.manipulationStartX=N.x,this.manipulationStartY=N.y,this.state==="new"&&(this.x1=N.x,this.y1=N.y,this.x2=N.x,this.y2=N.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(J)?this.activeGrip=this.grip1:this.grip2.ownsTarget(J)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},L.prototype.pointerUp=function(N){var J=this.state;X.prototype.pointerUp.call(this,N),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(N),this._state="select",J==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},L.prototype.adjustVisual=function(){},L.prototype.manipulate=function(N){this.state==="creating"?this.resize(N):this.state==="move"?(this.x1=this.manipulationStartX1+N.x-this.manipulationStartX,this.y1=this.manipulationStartY1+N.y-this.manipulationStartY,this.x2=this.manipulationStartX2+N.x-this.manipulationStartX,this.y2=this.manipulationStartY2+N.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(N)},L.prototype.resize=function(N){switch(this.activeGrip){case this.grip1:this.x1=N.x,this.y1=N.y;break;case this.grip2:case void 0:this.x2=N.x,this.y2=N.y}this.adjustVisual(),this.adjustControlBox()},L.prototype.select=function(){X.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},L.prototype.deselect=function(){X.prototype.deselect.call(this),this.controlBox.style.display="none"},L.prototype.setupControlBox=function(){this.controlBox=S.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},L.prototype.adjustControlBox=function(){this.positionGrips()},L.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},L.prototype.createGrip=function(){var N=new r;return N.visual.transform.baseVal.appendItem(S.createTransform()),this.controlBox.appendChild(N.visual),N},L.prototype.positionGrips=function(){var N=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-N/2,this.y1-N/2),this.positionGrip(this.grip2.visual,this.x2-N/2,this.y2-N/2)},L.prototype.positionGrip=function(N,J,ne){var k=N.transform.baseVal.getItem(0);k.setTranslate(J,ne),N.transform.baseVal.replaceItem(k,0)},L.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},X.prototype.getState.call(this))},L.prototype.restoreState=function(N){X.prototype.restoreState.call(this,N);var J=N;this.x1=J.x1,this.y1=J.y1,this.x2=J.x2,this.y2=J.y2},L.prototype.scale=function(N,J){X.prototype.scale.call(this,N,J),this.x1=this.x1*N,this.y1=this.y1*J,this.x2=this.x2*N,this.y2=this.y2*J,this.adjustVisual(),this.adjustControlBox()},L}(o),l=function(X){function L(N,J,ne){var k=X.call(this,N,J,ne)||this;return k.strokeColor="transparent",k.strokeWidth=0,k.strokeDasharray="",k.setStrokeColor=k.setStrokeColor.bind(k),k.setStrokeWidth=k.setStrokeWidth.bind(k),k.setStrokeDasharray=k.setStrokeDasharray.bind(k),k.strokeColor=ne.defaultColor,k.strokeWidth=ne.defaultStrokeWidth,k.strokeDasharray=ne.defaultStrokeDasharray,k.strokePanel=new A("Line color",ne.defaultColorSet,ne.defaultColor),k.strokePanel.onColorChanged=k.setStrokeColor,k.strokeWidthPanel=new E("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),k.strokeWidthPanel.onWidthChanged=k.setStrokeWidth,k.strokeStylePanel=new T("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),k.strokeStylePanel.onStyleChanged=k.setStrokeDasharray,k}return K(L,X),L.prototype.ownsTarget=function(N){return!(!X.prototype.ownsTarget.call(this,N)&&N!==this.visual&&N!==this.selectorLine&&N!==this.visibleLine)},L.prototype.createVisual=function(){this.visual=S.createGroup(),this.selectorLine=S.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=S.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},L.prototype.pointerDown=function(N,J){X.prototype.pointerDown.call(this,N,J),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},L.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),S.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),S.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),S.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},L.prototype.setStrokeColor=function(N){this.strokeColor=N,this.adjustVisual(),this.colorChanged(N)},L.prototype.setStrokeWidth=function(N){this.strokeWidth=N,this.adjustVisual()},L.prototype.setStrokeDasharray=function(N){this.strokeDasharray=N,this.adjustVisual(),this.stateChanged()},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var N=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},X.prototype.getState.call(this));return N.typeName=L.typeName,N},L.prototype.restoreState=function(N){X.prototype.restoreState.call(this,N);var J=N;this.strokeColor=J.strokeColor,this.strokeWidth=J.strokeWidth,this.strokeDasharray=J.strokeDasharray,this.createVisual(),this.adjustVisual()},L.typeName="LineMarker",L.title="Line marker",L.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',L}(n),u=function(X){function L(N,J,ne,k){var Z=X.call(this,N,k||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Z.fonts=[],Z.fontBoxes=[],Z.fonts=J,Z.currentFont=ne,Z.setCurrentFont=Z.setCurrentFont.bind(Z),Z}return K(L,X),L.prototype.getUi=function(){var N=this,J=document.createElement("div");return J.style.overflow="hidden",J.style.flexGrow="2",this.fonts.forEach(function(ne){var k=document.createElement("div");k.style.display="inline-block",k.style.alignItems="center",k.style.justifyContent="space-between",k.style.padding="5px",k.style.borderWidth="2px",k.style.borderStyle="solid",k.style.overflow="hidden",k.style.maxWidth=100/N.fonts.length-5+"%",k.style.borderColor=ne===N.currentFont?N.uiStyleSettings.toolboxAccentColor:"transparent",k.addEventListener("click",function(){N.setCurrentFont(ne,k)}),J.appendChild(k);var Z=document.createElement("div");Z.style.display="flex",Z.style.minHeight="20px",Z.style.flexGrow="2",Z.style.fontFamily=ne,Z.style.overflow="hidden";var H=document.createElement("div");H.style.whiteSpace="nowrap",H.style.overflow="hidden",H.style.textOverflow="ellipsis",H.innerHTML="The quick brown fox jumps over the lazy dog",Z.appendChild(H),k.appendChild(Z),N.fontBoxes.push(k)}),J},L.prototype.setCurrentFont=function(N,J){var ne=this;this.currentFont=N,this.fontBoxes.forEach(function(k){k.style.borderColor=k===J?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},L}(i),_=function(X){function L(N,J,ne){var k=X.call(this,N,J,ne)||this;return k.color="transparent",k.padding=5,k.DEFAULT_TEXT="your text here",k.text=k.DEFAULT_TEXT,k.isMoved=!1,k.color=ne.defaultColor,k.fontFamily=ne.defaultFontFamily,k.defaultSize={x:100,y:30},k.setColor=k.setColor.bind(k),k.setFont=k.setFont.bind(k),k.renderText=k.renderText.bind(k),k.sizeText=k.sizeText.bind(k),k.textEditDivClicked=k.textEditDivClicked.bind(k),k.showTextEditor=k.showTextEditor.bind(k),k.setSize=k.setSize.bind(k),k.positionTextEditor=k.positionTextEditor.bind(k),k.colorPanel=new A("Color",ne.defaultColorSet,ne.defaultColor),k.colorPanel.onColorChanged=k.setColor,k.fontFamilyPanel=new u("Font",ne.defaultFontFamilies,ne.defaultFontFamily),k.fontFamilyPanel.onFontChanged=k.setFont,k}return K(L,X),L.prototype.ownsTarget=function(N){if(X.prototype.ownsTarget.call(this,N)||N===this.visual||N===this.textElement||N===this.bgRectangle)return!0;var J=!1;return this.textElement.childNodes.forEach(function(ne){ne===N&&(J=!0)}),J},L.prototype.createVisual=function(){this.visual=S.createGroup(),this.bgRectangle=S.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=S.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(S.createTransform()),this.textElement.transform.baseVal.appendItem(S.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},L.prototype.pointerDown=function(N,J){X.prototype.pointerDown.call(this,N,J),this.isMoved=!1,this.pointerDownPoint=N,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(N),this._state="creating")},L.prototype.renderText=function(){var N=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(J){N.textElement.appendChild(S.createTSpan(J.trim()===""?" ":J.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},L.prototype.getTextScale=function(){var N=this.textElement.getBBox(),J=1;if(N.width>0&&N.height>0){var ne=(1*this.width-this.width*this.padding*2/100)/N.width,k=(1*this.height-this.height*this.padding*2/100)/N.height;J=Math.min(ne,k)}return J},L.prototype.getTextPosition=function(N){var J=this.textElement.getBBox(),ne=0,k=0;return J.width>0&&J.height>0&&(ne=(this.width-J.width*N)/2,k=this.height/2-J.height*N/2),{x:ne,y:k}},L.prototype.sizeText=function(){var N=this.textElement.getBBox(),J=this.getTextScale(),ne=this.getTextPosition(J);ne.y-=N.y*J,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ne.x+"px, "+ne.y+"px) scale("+J+", "+J+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ne.x,ne.y),this.textElement.transform.baseVal.getItem(1).setScale(J,J))},L.prototype.manipulate=function(N){X.prototype.manipulate.call(this,N),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(N.x-this.pointerDownPoint.x)>5||Math.abs(N.y-this.pointerDownPoint.y)>5)},L.prototype.resize=function(N){X.prototype.resize.call(this,N),this.isMoved=!0,this.setSize(),this.sizeText()},L.prototype.setSize=function(){X.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(S.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),S.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},L.prototype.pointerUp=function(N){var J=this.state;J==="creating"&&(this._suppressMarkerCreateEvent=!0),X.prototype.pointerUp.call(this,N),this.setSize(),(J==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},L.prototype.showTextEditor=function(){var N=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(J){J.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var J=Number.parseFloat(N.textEditor.style.fontSize);N.textEditor.clientWidth>=Number.parseInt(N.textEditor.style.maxWidth)&&J>.9;)J-=.1,N.textEditor.style.fontSize=Math.max(J,.9)+"em"}),this.textEditor.addEventListener("keyup",function(J){J.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(J){if(J.clipboardData){var ne=J.clipboardData.getData("text"),k=window.getSelection();if(!k.rangeCount)return!1;k.deleteFromDocument(),k.getRangeAt(0).insertNode(document.createTextNode(ne)),J.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){N.textEditDivClicked(N.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},L.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var N=this.getTextScale(),J=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ne=this.textElement.getBBox(),k={x:ne.width*N,y:ne.height*N};J.x-=k.x/2,J.y-=k.y/2,this.textEditor.style.top=J.y+"px",this.textEditor.style.left=J.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-J.x+"px",this.textEditor.style.fontSize=Math.max(16*N,12)+"px",this.textElement.style.display="none"}},L.prototype.textEditDivClicked=function(N){this.text=N.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},L.prototype.select=function(){X.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},L.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),X.prototype.deselect.call(this)},L.prototype.dblClick=function(N,J){X.prototype.dblClick.call(this,N,J),this.showTextEditor()},L.prototype.setColor=function(N){this.textElement&&S.setAttributes(this.textElement,[["fill",N]]),this.color=N,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(N)},L.prototype.setFont=function(N){this.textElement&&S.setAttributes(this.textElement,[["font-family",N]]),this.fontFamily=N,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},L.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},L.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var N=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},X.prototype.getState.call(this));return N.typeName=L.typeName,N},L.prototype.restoreState=function(N){var J=N;this.color=J.color,this.fontFamily=J.fontFamily,this.padding=J.padding,this.text=J.text,this.createVisual(),X.prototype.restoreState.call(this,N),this.setSize()},L.prototype.scale=function(N,J){X.prototype.scale.call(this,N,J),this.setSize(),this.sizeText(),this.positionTextEditor()},L.typeName="TextMarker",L.title="Text marker",L.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',L}(b),m=function(X){function L(N,J,ne){var k=X.call(this,N,J,ne)||this;return k.color="transparent",k.lineWidth=3,k.drawing=!1,k.pixelRatio=1,k.color=ne.defaultColor,k.lineWidth=ne.defaultStrokeWidth,k.pixelRatio=ne.freehandPixelRatio,k.setColor=k.setColor.bind(k),k.addCanvas=k.addCanvas.bind(k),k.finishCreation=k.finishCreation.bind(k),k.setLineWidth=k.setLineWidth.bind(k),k.colorPanel=new A("Color",ne.defaultColorSet,ne.defaultColor),k.colorPanel.onColorChanged=k.setColor,k.lineWidthPanel=new E("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),k.lineWidthPanel.onWidthChanged=k.setLineWidth,k}return K(L,X),L.prototype.ownsTarget=function(N){return!(!X.prototype.ownsTarget.call(this,N)&&N!==this.visual&&N!==this.drawingImage)},L.prototype.createVisual=function(){this.visual=S.createGroup(),this.drawingImage=S.createImage(),this.visual.appendChild(this.drawingImage);var N=S.createTransform();this.visual.transform.baseVal.appendItem(N),this.addMarkerVisualToContainer(this.visual)},L.prototype.pointerDown=function(N,J){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(N.x,N.y),this.drawing=!0):X.prototype.pointerDown.call(this,N,J)},L.prototype.manipulate=function(N){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(N.x,N.y),this.canvasContext.stroke()):X.prototype.manipulate.call(this,N)},L.prototype.resize=function(N){X.prototype.resize.call(this,N),S.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),S.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},L.prototype.pointerUp=function(N){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):X.prototype.pointerUp.call(this,N)},L.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},L.prototype.select=function(){this.state==="creating"&&this.finishCreation(),X.prototype.select.call(this)},L.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),X.prototype.deselect.call(this)},L.prototype.finishCreation=function(){for(var N=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),J=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ne=J[0],k=J[1],Z=J[2],H=J[3],W=!1,z=0;z<this.canvasElement.height;z++)for(var se=0;se<this.canvasElement.width;se++)N.data[z*this.canvasElement.width*4+4*se+3]>0&&(W=!0,z<k&&(k=z),se<ne&&(ne=se),z>H&&(H=z),se>Z&&(Z=se));if(W){this.left=ne/this.pixelRatio,this.top=k/this.pixelRatio,this.width=(Z-ne)/this.pixelRatio,this.height=(H-k)/this.pixelRatio;var pe=document.createElement("canvas");pe.width=Z-ne,pe.height=H-k,pe.getContext("2d").putImageData(this.canvasContext.getImageData(ne,k,Z-ne,H-k),0,0),this.drawingImgUrl=pe.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},L.prototype.setDrawingImage=function(){S.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),S.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},L.prototype.setColor=function(N){this.color=N,this.colorChanged(N)},L.prototype.setLineWidth=function(N){this.lineWidth=N},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var N=Object.assign({drawingImgUrl:this.drawingImgUrl},X.prototype.getState.call(this));return N.typeName=L.typeName,N},L.prototype.restoreState=function(N){this.createVisual(),X.prototype.restoreState.call(this,N),this.drawingImgUrl=N.drawingImgUrl,this.setDrawingImage()},L.prototype.scale=function(N,J){X.prototype.scale.call(this,N,J),this.setDrawingImage()},L.typeName="FreehandMarker",L.title="Freehand marker",L.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',L}(b),h=function(X){function L(N,J,ne){var k=X.call(this,N,ne||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return k.typeBoxes=[],k.currentType=J,k.setCurrentType=k.setCurrentType.bind(k),k}return K(L,X),L.prototype.getUi=function(){var N=this,J=document.createElement("div");J.style.display="flex",J.style.overflow="hidden",J.style.flexGrow="2";for(var ne=function(H){var W="both";switch(H){case 0:W="both";break;case 1:W="start";break;case 2:W="end";break;case 3:W="none"}var z=document.createElement("div");if(z.style.display="flex",z.style.flexGrow="2",z.style.alignItems="center",z.style.justifyContent="space-between",z.style.padding="5px",z.style.borderWidth="2px",z.style.borderStyle="solid",z.style.borderColor=W===k.currentType?k.uiStyleSettings.toolboxAccentColor:"transparent",z.addEventListener("click",function(){N.setCurrentType(W,z)}),J.appendChild(z),W==="both"||W==="start"){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.minHeight="20px",se.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="0,5 10,0 10,10" fill="`+(k.uiStyleSettings!==void 0?k.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,se.style.marginLeft="5px",z.appendChild(se)}var pe=document.createElement("div");pe.style.display="flex",pe.style.alignItems="center",pe.style.minHeight="20px",pe.style.flexGrow="2";var ge=document.createElement("hr");if(ge.style.minWidth="20px",ge.style.border="0px",ge.style.borderTop="3px solid "+(k.uiStyleSettings!==void 0?k.uiStyleSettings.toolboxColor:"#eeeeee"),ge.style.flexGrow="2",pe.appendChild(ge),z.appendChild(pe),W==="both"||W==="end"){var Ne=document.createElement("div");Ne.style.display="flex",Ne.style.alignItems="center",Ne.style.minHeight="20px",Ne.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="0,0 10,5 0,10" fill="`+(k.uiStyleSettings!==void 0?k.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,Ne.style.marginRight="5px",z.appendChild(Ne)}k.typeBoxes.push(z)},k=this,Z=0;Z<4;Z++)ne(Z);return J},L.prototype.setCurrentType=function(N,J){var ne=this;this.currentType=N,this.typeBoxes.forEach(function(k){k.style.borderColor=k===J?ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},L}(i),R=function(X){function L(N,J,ne){var k=X.call(this,N,J,ne)||this;return k.arrowType="end",k.arrowBaseHeight=10,k.arrowBaseWidth=10,k.getArrowPoints=k.getArrowPoints.bind(k),k.setArrowType=k.setArrowType.bind(k),k.arrowTypePanel=new h("Arrow type","end"),k.arrowTypePanel.onArrowTypeChanged=k.setArrowType,k}return K(L,X),L.prototype.ownsTarget=function(N){return!(!X.prototype.ownsTarget.call(this,N)&&N!==this.arrow1&&N!==this.arrow2)},L.prototype.getArrowPoints=function(N,J){var ne=this.arrowBaseWidth+2*this.strokeWidth,k=this.arrowBaseHeight+2*this.strokeWidth;return N-ne/2+","+(J+k/2)+" "+N+","+(J-k/2)+" "+(N+ne/2)+","+(J+k/2)},L.prototype.createTips=function(){this.arrow1=S.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(S.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=S.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(S.createTransform()),this.visual.appendChild(this.arrow2)},L.prototype.pointerDown=function(N,J){X.prototype.pointerDown.call(this,N,J),this.state==="creating"&&this.createTips()},L.prototype.adjustVisual=function(){if(X.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",S.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),S.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var N=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),J=this.arrow1.transform.baseVal.getItem(0);J.setRotate(N,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(J,0);var ne=this.arrow2.transform.baseVal.getItem(0);ne.setRotate(N+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ne,0)}},L.prototype.setArrowType=function(N){this.arrowType=N,this.adjustVisual(),this.stateChanged()},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var N=Object.assign({arrowType:this.arrowType},X.prototype.getState.call(this));return N.typeName=L.typeName,N},L.prototype.restoreState=function(N){X.prototype.restoreState.call(this,N);var J=N;this.arrowType=J.arrowType,this.createTips(),this.adjustVisual()},L.typeName="ArrowMarker",L.title="Arrow marker",L.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',L}(l),F=function(X){function L(N,J,ne){var k=X.call(this,N,J,ne)||this;return k.fillColor=ne.defaultFillColor,k.strokeWidth=0,k.fillPanel=new A("Color",ne.defaultColorSet,ne.defaultFillColor),k.fillPanel.onColorChanged=k.setFillColor,k}return K(L,X),Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var N=X.prototype.getState.call(this);return N.typeName=L.typeName,N},L.typeName="CoverMarker",L.title="Cover marker",L.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',L}(y),C=function(X){function L(N,J,ne,k){var Z=X.call(this,N,k||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Z.opacities=[],Z.opacityBoxes=[],Z.opacities=J,Z.currentOpacity=ne,Z.setCurrentOpacity=Z.setCurrentOpacity.bind(Z),Z}return K(L,X),L.prototype.getUi=function(){var N=this,J=document.createElement("div");return J.style.display="flex",J.style.overflow="hidden",J.style.flexGrow="2",J.style.justifyContent="space-between",this.opacities.forEach(function(ne){var k=document.createElement("div");k.style.display="flex",k.style.alignItems="center",k.style.justifyContent="center",k.style.padding="5px",k.style.borderWidth="2px",k.style.borderStyle="solid",k.style.borderColor=ne===N.currentOpacity?N.uiStyleSettings.toolboxAccentColor:"transparent",k.addEventListener("click",function(){N.setCurrentOpacity(ne,k)}),J.appendChild(k);var Z=document.createElement("div");Z.innerText=100*ne+"%",k.appendChild(Z),N.opacityBoxes.push(k)}),J},L.prototype.setCurrentOpacity=function(N,J){var ne=this;this.currentOpacity=N,this.opacityBoxes.forEach(function(k){k.style.borderColor=k===J?ne.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},L}(i),P=function(X){function L(N,J,ne){var k=X.call(this,N,J,ne)||this;return k.setOpacity=k.setOpacity.bind(k),k.fillColor=ne.defaultHighlightColor,k.strokeWidth=0,k.opacity=ne.defaultHighlightOpacity,k.fillPanel=new A("Color",ne.defaultColorSet,k.fillColor),k.fillPanel.onColorChanged=k.setFillColor,k.opacityPanel=new C("Opacity",ne.defaultOpacitySteps,k.opacity),k.opacityPanel.onOpacityChanged=k.setOpacity,k}return K(L,X),L.prototype.setOpacity=function(N){this.opacity=N,this.visual&&S.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var N=X.prototype.getState.call(this);return N.typeName=L.typeName,N},L.typeName="HighlightMarker",L.title="Highlight marker",L.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',L}(F),j='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',D=function(X){function L(N,J,ne){var k=X.call(this,N,J,ne)||this;return k.bgColor="transparent",k.tipPosition={x:0,y:0},k.tipBase1Position={x:0,y:0},k.tipBase2Position={x:0,y:0},k.tipMoving=!1,k.color=ne.defaultStrokeColor,k.bgColor=ne.defaultFillColor,k.fontFamily=ne.defaultFontFamily,k.defaultSize={x:100,y:30},k.setBgColor=k.setBgColor.bind(k),k.getTipPoints=k.getTipPoints.bind(k),k.positionTip=k.positionTip.bind(k),k.setTipPoints=k.setTipPoints.bind(k),k.colorPanel=new A("Text color",ne.defaultColorSet,k.color,'<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>'),k.colorPanel.onColorChanged=k.setColor,k.bgColorPanel=new A("Fill color",ne.defaultColorSet,k.bgColor,j),k.bgColorPanel.onColorChanged=k.setBgColor,k.fontFamilyPanel=new u("Font",ne.defaultFontFamilies,ne.defaultFontFamily),k.fontFamilyPanel.onFontChanged=k.setFont,k.tipGrip=new r,k.tipGrip.visual.transform.baseVal.appendItem(S.createTransform()),k.controlBox.appendChild(k.tipGrip.visual),k}return K(L,X),L.prototype.ownsTarget=function(N){return X.prototype.ownsTarget.call(this,N)||this.tipGrip.ownsTarget(N)||this.tip===N},L.prototype.createTip=function(){S.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=S.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},L.prototype.pointerDown=function(N,J){this.state==="new"&&X.prototype.pointerDown.call(this,N,J),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(J)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):X.prototype.pointerDown.call(this,N,J)},L.prototype.pointerUp=function(N){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,X.prototype.pointerUp.call(this,N);else{var J=this.state==="creating";X.prototype.pointerUp.call(this,N),this.setTipPoints(J),this.positionTip()}},L.prototype.manipulate=function(N){if(this.tipMoving){var J=this.unrotatePoint(N);this.tipPosition={x:J.x-this.manipulationStartLeft,y:J.y-this.manipulationStartTop},this.positionTip()}else X.prototype.manipulate.call(this,N)},L.prototype.setBgColor=function(N){this.bgRectangle&&this.tip&&(S.setAttributes(this.bgRectangle,[["fill",N]]),S.setAttributes(this.tip,[["fill",N]])),this.bgColor=N,this.fillColorChanged(N)},L.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},L.prototype.setTipPoints=function(N){N===void 0&&(N=!1);var J=Math.min(this.height/2,15),ne=this.height/5;N&&(this.tipPosition={x:J+ne/2,y:this.height+20});var k=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?k<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ne=this.width/5,J=Math.min(this.width/2,15),this.tipBase1Position={x:J,y:0},this.tipBase2Position={x:J+ne,y:0}):(this.tipBase1Position={x:0,y:J},this.tipBase2Position={x:0,y:J+ne}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?k<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ne=this.width/5,J=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-J-ne,y:0},this.tipBase2Position={x:this.width-J,y:0}):(this.tipBase1Position={x:this.width,y:J},this.tipBase2Position={x:this.width,y:J+ne}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?k<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ne=this.width/5,J=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-J-ne,y:this.height},this.tipBase2Position={x:this.width-J,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-J-ne},this.tipBase2Position={x:this.width,y:this.height-J}):k<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ne=this.width/5,J=Math.min(this.width/2,15),this.tipBase1Position={x:J,y:this.height},this.tipBase2Position={x:J+ne,y:this.height}):(this.tipBase1Position={x:0,y:this.height-J},this.tipBase2Position={x:0,y:this.height-J-ne})},L.prototype.resize=function(N){X.prototype.resize.call(this,N),this.positionTip()},L.prototype.positionTip=function(){S.setAttributes(this.tip,[["points",this.getTipPoints()]]);var N=this.tipGrip.visual.transform.baseVal.getItem(0);N.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(N,0)},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),L.prototype.select=function(){this.positionTip(),X.prototype.select.call(this)},L.prototype.getState=function(){var N=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},X.prototype.getState.call(this));return N.typeName=L.typeName,N},L.prototype.restoreState=function(N){var J=N;this.bgColor=J.bgColor,this.tipPosition=J.tipPosition,X.prototype.restoreState.call(this,N),this.createTip(),this.setTipPoints()},L.prototype.scale=function(N,J){X.prototype.scale.call(this,N,J),this.tipPosition={x:this.tipPosition.x*N,y:this.tipPosition.y*J},this.positionTip()},L.typeName="CalloutMarker",L.title="Callout marker",L.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',L}(_),$=function(X){function L(N,J,ne){var k=X.call(this,N,J,ne)||this;return k.fillColor="transparent",k.strokeColor="transparent",k.strokeWidth=0,k.strokeDasharray="",k.opacity=1,k.strokeColor=ne.defaultColor,k.strokeWidth=ne.defaultStrokeWidth,k.strokeDasharray=ne.defaultStrokeDasharray,k.fillColor=ne.defaultFillColor,k.setStrokeColor=k.setStrokeColor.bind(k),k.setFillColor=k.setFillColor.bind(k),k.setStrokeWidth=k.setStrokeWidth.bind(k),k.setStrokeDasharray=k.setStrokeDasharray.bind(k),k.setOpacity=k.setOpacity.bind(k),k.createVisual=k.createVisual.bind(k),k.strokePanel=new A("Line color",U(ne.defaultColorSet,["transparent"]),ne.defaultColor),k.strokePanel.onColorChanged=k.setStrokeColor,k.fillPanel=new A("Fill color",U(ne.defaultColorSet,["transparent"]),k.fillColor,j),k.fillPanel.onColorChanged=k.setFillColor,k.strokeWidthPanel=new E("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),k.strokeWidthPanel.onWidthChanged=k.setStrokeWidth,k.strokeStylePanel=new T("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),k.strokeStylePanel.onStyleChanged=k.setStrokeDasharray,k.opacityPanel=new C("Opacity",ne.defaultOpacitySteps,k.opacity),k.opacityPanel.onOpacityChanged=k.setOpacity,k}return K(L,X),L.prototype.ownsTarget=function(N){return!(!X.prototype.ownsTarget.call(this,N)&&N!==this.visual)},L.prototype.createVisual=function(){this.visual=S.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},L.prototype.pointerDown=function(N,J){X.prototype.pointerDown.call(this,N,J),this.state==="new"&&(this.createVisual(),this.moveVisual(N),this._state="creating")},L.prototype.manipulate=function(N){X.prototype.manipulate.call(this,N)},L.prototype.resize=function(N){X.prototype.resize.call(this,N),this.setSize()},L.prototype.setSize=function(){X.prototype.setSize.call(this),S.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},L.prototype.pointerUp=function(N){X.prototype.pointerUp.call(this,N),this.setSize()},L.prototype.setStrokeColor=function(N){this.strokeColor=N,this.visual&&S.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(N),this.stateChanged()},L.prototype.setFillColor=function(N){this.fillColor=N,this.visual&&S.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(N),this.stateChanged()},L.prototype.setStrokeWidth=function(N){this.strokeWidth=N,this.visual&&S.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},L.prototype.setStrokeDasharray=function(N){this.strokeDasharray=N,this.visual&&S.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},L.prototype.setOpacity=function(N){this.opacity=N,this.visual&&S.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var N=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},X.prototype.getState.call(this));return N.typeName=L.typeName,N},L.prototype.restoreState=function(N){var J=N;this.fillColor=J.fillColor,this.strokeColor=J.strokeColor,this.strokeWidth=J.strokeWidth,this.strokeDasharray=J.strokeDasharray,this.opacity=J.opacity,this.createVisual(),X.prototype.restoreState.call(this,N),this.setSize()},L.prototype.scale=function(N,J){X.prototype.scale.call(this,N,J),this.setSize()},L.typeName="EllipseMarker",L.title="Ellipse marker",L.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',L}(b),oe=function(X){function L(N,J,ne){return X.call(this,N,J,ne)||this}return K(L,X),Object.defineProperty(L.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),L.prototype.ownsTarget=function(N){return!(!X.prototype.ownsTarget.call(this,N)&&N!==this.tip1&&N!==this.tip2)},L.prototype.createTips=function(){this.tip1=S.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(S.createTransform()),this.visual.appendChild(this.tip1),this.tip2=S.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(S.createTransform()),this.visual.appendChild(this.tip2)},L.prototype.pointerDown=function(N,J){X.prototype.pointerDown.call(this,N,J),this.state==="creating"&&this.createTips()},L.prototype.adjustVisual=function(){if(X.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(S.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),S.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var N=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),J=this.tip1.transform.baseVal.getItem(0);J.setRotate(N,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(J,0);var ne=this.tip2.transform.baseVal.getItem(0);ne.setRotate(N+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ne,0)}},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var N=X.prototype.getState.call(this);return N.typeName=L.typeName,N},L.prototype.restoreState=function(N){X.prototype.restoreState.call(this,N),this.createTips(),this.adjustVisual()},L.typeName="MeasurementMarker",L.title="Measurement marker",L.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',L}(l),Ee=function(X){function L(N,J,ne){var k=X.call(this,N,J,ne)||this;return k.strokePanel.colors=ne.defaultColorSet,k.fillColor="transparent",k}return K(L,X),Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var N=X.prototype.getState.call(this);return N.typeName=L.typeName,N},L.typeName="EllipseFrameMarker",L.title="Ellipse frame marker",L.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',L}($),ve=function(){function X(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(X.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),X.prototype.addUndoStep=function(L){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(L)||(this.undoStack.push(L),JSON.stringify(this.lastRedoStep)!==JSON.stringify(L)&&this.redoStack.splice(0,this.redoStack.length))},X.prototype.replaceLastUndoStep=function(L){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=L)},X.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},X.prototype.undo=function(){if(this.undoStack.length>1){var L=this.undoStack.pop();return L!==void 0&&this.redoStack.push(L),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},X.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},X}(),Le=function(X){function L(N,J,ne){var k=X.call(this,N,J,ne)||this;return k.strokeColor="transparent",k.strokeWidth=0,k.strokeDasharray="",k.curveX=0,k.curveY=0,k.manipulationStartCurveX=0,k.manipulationStartCurveY=0,k.setStrokeColor=k.setStrokeColor.bind(k),k.setStrokeWidth=k.setStrokeWidth.bind(k),k.setStrokeDasharray=k.setStrokeDasharray.bind(k),k.positionGrips=k.positionGrips.bind(k),k.addControlGrips=k.addControlGrips.bind(k),k.adjustVisual=k.adjustVisual.bind(k),k.setupControlBox=k.setupControlBox.bind(k),k.resize=k.resize.bind(k),k.strokeColor=ne.defaultColor,k.strokeWidth=ne.defaultStrokeWidth,k.strokeDasharray=ne.defaultStrokeDasharray,k.strokePanel=new A("Line color",ne.defaultColorSet,ne.defaultColor),k.strokePanel.onColorChanged=k.setStrokeColor,k.strokeWidthPanel=new E("Line width",ne.defaultStrokeWidths,ne.defaultStrokeWidth),k.strokeWidthPanel.onWidthChanged=k.setStrokeWidth,k.strokeStylePanel=new T("Line style",ne.defaultStrokeDasharrays,ne.defaultStrokeDasharray),k.strokeStylePanel.onStyleChanged=k.setStrokeDasharray,k}return K(L,X),L.prototype.ownsTarget=function(N){return!(!X.prototype.ownsTarget.call(this,N)&&N!==this.visual&&N!==this.selectorCurve&&N!==this.visibleCurve&&!this.curveGrip.ownsTarget(N))},L.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},L.prototype.createVisual=function(){this.visual=S.createGroup(),this.selectorCurve=S.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=S.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},L.prototype.pointerDown=function(N,J){X.prototype.pointerDown.call(this,N,J),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=N.x,this.curveY=N.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(J)&&(this.activeGrip=this.curveGrip,this._state="resize")},L.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),S.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),S.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),S.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},L.prototype.setupControlBox=function(){X.prototype.setupControlBox.call(this),this.curveControlLine1=S.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=S.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},L.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,X.prototype.addControlGrips.call(this)},L.prototype.positionGrips=function(){X.prototype.positionGrips.call(this);var N=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-N/2,this.curveY-N/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},L.prototype.manipulate=function(N){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+N.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+N.y-this.manipulationStartY),X.prototype.manipulate.call(this,N)},L.prototype.resize=function(N){this.activeGrip===this.curveGrip&&(this.curveX=N.x,this.curveY=N.y),X.prototype.resize.call(this,N),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},L.prototype.setStrokeColor=function(N){this.strokeColor=N,this.adjustVisual(),this.colorChanged(N)},L.prototype.setStrokeWidth=function(N){this.strokeWidth=N,this.adjustVisual()},L.prototype.setStrokeDasharray=function(N){this.strokeDasharray=N,this.adjustVisual()},L.prototype.scale=function(N,J){this.curveX=this.curveX*N,this.curveY=this.curveY*J,X.prototype.scale.call(this,N,J)},Object.defineProperty(L.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),L.prototype.getState=function(){var N=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},X.prototype.getState.call(this));return N.typeName=L.typeName,N},L.prototype.restoreState=function(N){X.prototype.restoreState.call(this,N);var J=N;this.strokeColor=J.strokeColor,this.strokeWidth=J.strokeWidth,this.strokeDasharray=J.strokeDasharray,this.curveX=J.curveX,this.curveY=J.curveY,this.createVisual(),this.adjustVisual()},L.typeName="CurveMarker",L.title="Curve marker",L.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',L}(n),Se=function(){function X(L,N){N===void 0&&(N=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=L,this.cancelable=N}return Object.defineProperty(X.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),X.prototype.preventDefault=function(){this._defaultPrevented=!0},X}(),Re=function(X){function L(N,J,ne){var k=X.call(this,N,!1)||this;return k.dataUrl=J,k.state=ne,k}return K(L,X),L}(Se),De=function(X){function L(N,J,ne){ne===void 0&&(ne=!1);var k=X.call(this,N,ne)||this;return k.marker=J,k}return K(L,X),L}(Se),Fe=function(){function X(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return X.prototype.addEventListener=function(L,N){this[L].push(N)},X.prototype.removeEventListener=function(L,N){var J=this[L].indexOf(N);J>-1&&this[L].splice(J,1)},X}(),Ce=function(){function X(L){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new d,this._isOpen=!1,this.undoRedoManager=new ve,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Fe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=X.instanceCounter++,this.styles=new I(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=L,this.targetRoot=document.body,this.width=L.clientWidth,this.height=L.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(X.prototype,"ALL_MARKER_TYPES",{get:function(){return[v,m,R,_,Ee,$,P,D,oe,F,l,Le]},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[v,m,R,_,$,P,D]},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"BASIC_MARKER_TYPES",{get:function(){return[v,m,R,_,P]},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(L){var N=this;this._availableMarkerTypes.splice(0),L.forEach(function(J){if(typeof J=="string"){var ne=N.ALL_MARKER_TYPES.find(function(k){return k.typeName===J});ne!==void 0&&N._availableMarkerTypes.push(ne)}else N._availableMarkerTypes.push(J)})},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(L){this._zoomLevel=L,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),X.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Y.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},X.prototype.show=function(){var L=this;this.styles.styleSheetRoot===void 0&&e.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=e.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(N){return N(new Se(L))})},X.prototype.render=function(){return O(this,void 0,void 0,function(){var L;return G(this,function(N){switch(N.label){case 0:return this.setCurrentMarker(),(L=new M).naturalSize=this.renderAtNaturalSize,L.imageType=this.renderImageType,L.imageQuality=this.renderImageQuality,L.markersOnly=this.renderMarkersOnly,L.width=this.renderWidth,L.height=this.renderHeight,[4,L.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return N.sent(),[4,L.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,N.sent()]}})})},X.prototype.close=function(L){var N=this;if(L===void 0&&(L=!1),this.isOpen){var J=!1;L||this.eventListeners.beforeclose.forEach(function(ne){var k=new Se(N,!0);ne(k),k.defaultPrevented&&(J=!0)}),J||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ne){return ne(new Se(N))}),this.detachEvents(),this._isOpen=!1)}},X.prototype.addMarkersToToolbar=function(){for(var L,N=[],J=0;J<arguments.length;J++)N[J]=arguments[J];(L=this._availableMarkerTypes).push.apply(L,N)},X.prototype.addRenderEventListener=function(L){this.addEventListener("render",function(N){L(N.dataUrl,N.state)})},X.prototype.removeRenderEventListener=function(L){},X.prototype.addCloseEventListener=function(L){this.addEventListener("close",function(){L()})},X.prototype.removeCloseEventListener=function(L){},X.prototype.setupResizeObserver=function(){var L=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){L.resize(L.target.clientWidth,L.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return L.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},X.prototype.onPopupTargetResize=function(){var L=1*this.target.clientWidth/this.target.clientHeight,N=this.editorCanvas.clientWidth/L>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*L:this.editorCanvas.clientWidth,J=N<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/L;this.resize(N,J)},X.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},X.prototype.resize=function(L,N){this._isResizing=!0;var J=L/this.imageWidth,ne=N/this.imageHeight;this.imageWidth=Math.round(L),this.imageHeight=Math.round(N),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(J,ne),this._isResizing=!1},X.prototype.scaleMarkers=function(L,N){var J,ne=this;this._currentMarker&&this._currentMarker instanceof _?this._currentMarker.scale(L,N):(J=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(k){k!==ne._currentMarker&&k.scale(L,N)}),J!==void 0&&this.setCurrentMarker(J)},X.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},X.prototype.setTopLeft=function(){var L=this.editingTarget.getBoundingClientRect(),N=this.editorCanvas.getBoundingClientRect();this.left=L.left-N.left,this.top=L.top-N.top},X.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},X.prototype.addDefs=function(){for(var L,N=[],J=0;J<arguments.length;J++)N[J]=arguments[J];this.defs=S.createDefs(),this.addDefsToImage(),(L=this.defs).append.apply(L,N)},X.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},X.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},X.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},X.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},X.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},X.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},X.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},X.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var L=document.createElement("a");L.href="https://markerjs.com/",L.target="_blank",L.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',L.title="Powered by marker.js",L.style.display="grid",L.style.alignItems="center",L.style.justifyItems="center",L.style.padding="3px",L.style.width="20px",L.style.height="20px",this.logoUI.appendChild(L),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},X.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},X.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},X.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},X.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var L=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=L+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new c(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new s(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},X.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},X.prototype.removeMarker=function(L){this.markerImage.removeChild(L.container),this.markers.indexOf(L)>-1&&this.markers.splice(this.markers.indexOf(L),1),L.dispose()},X.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},X.prototype.toolbarButtonClicked=function(L,N){if(L==="marker"&&N!==void 0)this.createNewMarker(N);else if(L==="action")switch(N){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},X.prototype.deleteSelectedMarker=function(){var L=this;if(this._currentMarker!==void 0){var N=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ne){var k=new De(L,L._currentMarker,!0);ne(k),k.defaultPrevented&&(N=!0)}),!N){var J=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ne){return ne(new De(L,J))})}}},X.prototype.clear=function(){var L=this,N=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Z){var H=new De(L,void 0,!0);Z(H),H.defaultPrevented&&(N=!0)}),!N)){this.setCurrentMarker();for(var J=function(Z){var H=ne.markers[Z];ne.setCurrentMarker(ne.markers[Z]),ne._currentMarker.dispose(),ne.markerImage.removeChild(ne._currentMarker.container),ne.markers.splice(ne.markers.indexOf(ne._currentMarker),1),ne.eventListeners.markerdelete.forEach(function(W){return W(new De(L,H))})},ne=this,k=this.markers.length-1;k>=0;k--)J(k);this.addUndoStep()}},Object.defineProperty(X.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),X.prototype.showNotesEditor=function(){var L;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(L=this._currentMarker.notes)!==null&&L!==void 0?L:"",this.overlayContainer.appendChild(this.notesArea))},X.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},X.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},X.prototype.addUndoStep=function(){var L=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var N=this.getState(),J=this.undoRedoManager.getLastUndoStep();if(!J||J.width===N.width&&J.height===N.height){var ne=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(N),ne<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(k){return k(new Se(L))})}else this.undoRedoManager.replaceLastUndoStep(N),this.eventListeners.statechange.forEach(function(k){return k(new Se(L))})}},X.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},X.prototype.undoStep=function(){var L=this,N=this.undoRedoManager.undo();N!==void 0&&(this.restoreState(N),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(J){return J(new Se(L))}))},X.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},X.prototype.redoStep=function(){var L=this,N=this.undoRedoManager.redo();N!==void 0&&(this.restoreState(N),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(J){return J(new Se(L))}))},X.prototype.stepZoom=function(){var L=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=L<this.zoomSteps.length-1?this.zoomSteps[L+1]:this.zoomSteps[0]},X.prototype.panTo=function(L){this.contentDiv.scrollBy({left:this.prevPanPoint.x-L.x,top:this.prevPanPoint.y-L.y}),this.prevPanPoint=L},X.prototype.startRenderAndClose=function(){return O(this,void 0,void 0,function(){var L,N,J=this;return G(this,function(ne){switch(ne.label){case 0:return[4,this.render()];case 1:return L=ne.sent(),N=this.getState(),this.eventListeners.render.forEach(function(k){return k(new Re(J,L,N))}),this.close(!0),[2]}})})},X.prototype.getState=function(L){L===!0&&this.setCurrentMarker();var N={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(J){return N.markers.push(J.getState())}),N},X.prototype.restoreState=function(L){var N=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);L.markers.forEach(function(J){var ne=N._availableMarkerTypes.find(function(Z){return Z.typeName===J.typeName});if(ne!==void 0){var k=N.addNewMarker(ne);k.restoreState(J),N.markers.push(k)}}),L.width&&L.height&&(L.width!==this.imageWidth||L.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/L.width,this.imageHeight/L.height),this.eventListeners.restorestate.forEach(function(J){return J(new Se(N))})},X.prototype.addNewMarker=function(L){var N=S.createGroup();return this.markerImage.appendChild(N),new L(N,this.overlayContainer,this.settings)},X.prototype.createNewMarker=function(L){var N,J=this;(N=typeof L=="string"?this._availableMarkerTypes.find(function(ne){return ne.typeName===L}):L)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(N),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(N.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ne){return ne(new De(J,J._currentMarker))}))},X.prototype.markerCreated=function(L){var N=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(L),this.setCurrentMarker(L),L instanceof m&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(m):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(J){return J(new De(N,N._currentMarker))})},X.prototype.colorChanged=function(L){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=L,this.settings.defaultStrokeColor=L)},X.prototype.fillColorChanged=function(L){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=L)},X.prototype.markerStateChanged=function(L){var N=this;this.eventListeners.markerchange.forEach(function(J){return J(new De(N,L))})},X.prototype.setCurrentMarker=function(L){var N=this;this._currentMarker!==L&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(J){return J(new De(N,N._currentMarker))})),this._currentMarker=L,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(J){return J(new De(N,N._currentMarker))}))},X.prototype.onPointerDown=function(L){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||L.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var N=this.markers.find(function(J){return J.ownsTarget(L.target)});N!==void 0?(this.setCurrentMarker(N),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(L.clientX,L.clientY),L.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:L.clientX,y:L.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(L.clientX,L.clientY))},X.prototype.onDblClick=function(L){if(this._isFocused||this.focus(),this.mode==="select"){var N=this.markers.find(function(J){return J.ownsTarget(L.target)});N!==void 0&&N!==this._currentMarker&&this.setCurrentMarker(N),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(L.clientX,L.clientY),L.target):this.setCurrentMarker()}},X.prototype.onPointerMove=function(L){this.touchPoints!==1&&L.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||L.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(L.clientX,L.clientY)):this.zoomLevel>1&&this.panTo({x:L.clientX,y:L.clientY}))},X.prototype.onPointerUp=function(L){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(L.clientX,L.clientY)),this.isDragging=!1,this.addUndoStep()},X.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},X.prototype.onKeyUp=function(L){this._currentMarker===void 0||this.notesArea!==void 0||L.key!=="Delete"&&L.key!=="Backspace"||this.deleteSelectedMarker()},X.prototype.clientToLocalCoordinates=function(L,N){var J=this.markerImage.getBoundingClientRect();return{x:(L-J.left)/this.zoomLevel,y:(N-J.top)/this.zoomLevel}},X.prototype.onWindowResize=function(){this.positionUI()},X.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var L=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=L+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},X.prototype.addLicenseKey=function(L){Y.addKey(L)},X.prototype.addEventListener=function(L,N){this.eventListeners.addEventListener(L,N)},X.prototype.removeEventListener=function(L,N){this.eventListeners.removeEventListener(L,N)},X.prototype.renderState=function(L){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(L),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(X.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),X.prototype.focus=function(){var L=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(N){return N(new Se(L))}))},X.prototype.blur=function(){var L=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(N){return N(new Se(L))}))},X.instanceCounter=0,X}()},T7RX:function(ot,we,Q){"use strict";var de=Q("2qtc"),K=Q("kLXV"),O=Q("k1fw"),G=Q("miYZ"),U=Q("tsqr"),S=Q("9og8"),Y=Q("PpiC"),M=Q("WmNS"),e=Q.n(M),I=Q("q1tI"),p=Q.n(I),g=Q("ErOA"),c=Q("Ty5D"),s=Q("9kvl"),i=function(o){var a=o.shixunHomeworks,r=o.dispatch,t=Object(Y.a)(o,["shixunHomeworks","dispatch"]),b=Object(c.i)();return p.a.createElement(K.a,{centered:!0,title:"\u63D0\u793A",visible:a.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(S.a)(e.a.mark(function y(){var E;return e.a.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,Object(g.a)("/api/myshixuns/".concat(a.actionTabs.selectArrs.myshixun_identifier,"/reset_my_game.json"),{method:"GET",params:{course_id:b.coursesId}});case 2:E=v.sent,E.shixun_identifier&&(U.b.success("\u64CD\u4F5C\u6210\u529F"),r({type:"shixunHomeworks/setActionTabs",payload:{}}),r({type:"shixunHomeworks/getWorkList",payload:Object(O.a)({},a.actionTabs.params)}));case 4:case"end":return v.stop()}},y)})),onCancel:function(){r({type:"shixunHomeworks/setActionTabs",payload:{}})}},p.a.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),p.a.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};we.a=Object(s.a)(function(A){var o=A.shixunHomeworks;return{shixunHomeworks:o}})(i)},T8No:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return Y}),Q.d(we,"e",function(){return M}),Q.d(we,"c",function(){return l}),Q.d(we,"b",function(){return u}),Q.d(we,"d",function(){return _}),Q.d(we,"f",function(){return R});var de=Q("MNsG"),K=Q("N0LK"),O=Q("Cg/j");let G=de.k||"";const U=new Map;U.set("false",!1),U.set("true",!0),U.set("isMac",de.f),U.set("isLinux",de.d),U.set("isWindows",de.i),U.set("isWeb",de.h),U.set("isMacNative",de.f&&!de.h),U.set("isEdge",G.indexOf("Edg/")>=0),U.set("isFirefox",G.indexOf("Firefox")>=0),U.set("isChrome",G.indexOf("Chrome")>=0),U.set("isSafari",G.indexOf("Safari")>=0);const S=Object.prototype.hasOwnProperty;class Y{static has(C){return g.create(C)}static equals(C,P){return c.create(C,P)}static regex(C,P){return E.create(C,P)}static not(C){return o.create(C)}static and(...C){return d.create(C,null)}static or(...C){return n.create(C,null,!0)}static deserialize(C,P=!1){return C?this._deserializeOrExpression(C,P):void 0}static _deserializeOrExpression(C,P){let j=C.split("||");return n.create(j.map(D=>this._deserializeAndExpression(D,P)),null,!0)}static _deserializeAndExpression(C,P){let j=C.split("&&");return d.create(j.map(D=>this._deserializeOne(D,P)),null)}static _deserializeOne(C,P){if(C=C.trim(),C.indexOf("!=")>=0){let j=C.split("!=");return A.create(j[0].trim(),this._deserializeValue(j[1],P))}if(C.indexOf("==")>=0){let j=C.split("==");return c.create(j[0].trim(),this._deserializeValue(j[1],P))}if(C.indexOf("=~")>=0){let j=C.split("=~");return E.create(j[0].trim(),this._deserializeRegexValue(j[1],P))}if(C.indexOf(" in ")>=0){let j=C.split(" in ");return s.create(j[0].trim(),j[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(C)){const j=C.split(">=");return t.create(j[0].trim(),j[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(C)){const j=C.split(">");return r.create(j[0].trim(),j[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(C)){const j=C.split("<=");return y.create(j[0].trim(),j[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(C)){const j=C.split("<");return b.create(j[0].trim(),j[1].trim())}return/^\!\s*/.test(C)?o.create(C.substr(1).trim()):g.create(C)}static _deserializeValue(C,P){if(C=C.trim(),C==="true")return!0;if(C==="false")return!1;let j=/^'([^']*)'$/.exec(C);return j?j[1].trim():C}static _deserializeRegexValue(C,P){if(Object(K.C)(C)){if(P)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let j=C.indexOf("/"),D=C.lastIndexOf("/");if(j===D||j<0){if(P)throw new Error(`bad regexp-value '${C}', missing /-enclosure`);return console.warn(`bad regexp-value '${C}', missing /-enclosure`),null}let $=C.slice(j+1,D),oe=C[D+1]==="i"?"i":"";try{return new RegExp($,oe)}catch(Ee){if(P)throw new Error(`bad regexp-value '${C}', parse error: ${Ee}`);return console.warn(`bad regexp-value '${C}', parse error: ${Ee}`),null}}}function M(C,P){const j=C?C.substituteConstants():void 0,D=P?P.substituteConstants():void 0;return!j&&!D?!0:!j||!D?!1:j.equals(D)}function e(C,P){return C.cmp(P)}class I{constructor(){this.type=0}cmp(C){return this.type-C.type}equals(C){return C.type===this.type}substituteConstants(){return this}evaluate(C){return!1}serialize(){return"false"}keys(){return[]}negate(){return p.INSTANCE}}I.INSTANCE=new I;class p{constructor(){this.type=1}cmp(C){return this.type-C.type}equals(C){return C.type===this.type}substituteConstants(){return this}evaluate(C){return!0}serialize(){return"true"}keys(){return[]}negate(){return I.INSTANCE}}p.INSTANCE=new p;class g{constructor(C,P){this.key=C,this.negated=P,this.type=2}static create(C,P=null){const j=U.get(C);return typeof j=="boolean"?j?p.INSTANCE:I.INSTANCE:new g(C,P)}cmp(C){return C.type!==this.type?this.type-C.type:m(this.key,C.key)}equals(C){return C.type===this.type?this.key===C.key:!1}substituteConstants(){const C=U.get(this.key);return typeof C=="boolean"?C?p.INSTANCE:I.INSTANCE:this}evaluate(C){return!!C.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=o.create(this.key,this)),this.negated}}class c{constructor(C,P,j){this.key=C,this.value=P,this.negated=j,this.type=4}static create(C,P,j=null){if(typeof P=="boolean")return P?g.create(C,j):o.create(C,j);const D=U.get(C);if(typeof D=="boolean"){const $=D?"true":"false";return P===$?p.INSTANCE:I.INSTANCE}return new c(C,P,j)}cmp(C){return C.type!==this.type?this.type-C.type:h(this.key,this.value,C.key,C.value)}equals(C){return C.type===this.type?this.key===C.key&&this.value===C.value:!1}substituteConstants(){const C=U.get(this.key);if(typeof C=="boolean"){const P=C?"true":"false";return this.value===P?p.INSTANCE:I.INSTANCE}return this}evaluate(C){return C.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class s{constructor(C,P){this.key=C,this.valueKey=P,this.type=10,this.negated=null}static create(C,P){return new s(C,P)}cmp(C){return C.type!==this.type?this.type-C.type:h(this.key,this.valueKey,C.key,C.valueKey)}equals(C){return C.type===this.type?this.key===C.key&&this.valueKey===C.valueKey:!1}substituteConstants(){return this}evaluate(C){const P=C.getValue(this.valueKey),j=C.getValue(this.key);return Array.isArray(P)?P.indexOf(j)>=0:typeof j=="string"&&typeof P=="object"&&P!==null?S.call(P,j):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=i.create(this)),this.negated}}class i{constructor(C){this._actual=C,this.type=11}static create(C){return new i(C)}cmp(C){return C.type!==this.type?this.type-C.type:this._actual.cmp(C._actual)}equals(C){return C.type===this.type?this._actual.equals(C._actual):!1}substituteConstants(){return this}evaluate(C){return!this._actual.evaluate(C)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class A{constructor(C,P,j){this.key=C,this.value=P,this.negated=j,this.type=5}static create(C,P,j=null){if(typeof P=="boolean")return P?o.create(C,j):g.create(C,j);const D=U.get(C);if(typeof D=="boolean"){const $=D?"true":"false";return P===$?I.INSTANCE:p.INSTANCE}return new A(C,P,j)}cmp(C){return C.type!==this.type?this.type-C.type:h(this.key,this.value,C.key,C.value)}equals(C){return C.type===this.type?this.key===C.key&&this.value===C.value:!1}substituteConstants(){const C=U.get(this.key);if(typeof C=="boolean"){const P=C?"true":"false";return this.value===P?I.INSTANCE:p.INSTANCE}return this}evaluate(C){return C.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}class o{constructor(C,P){this.key=C,this.negated=P,this.type=3}static create(C,P=null){const j=U.get(C);return typeof j=="boolean"?j?I.INSTANCE:p.INSTANCE:new o(C,P)}cmp(C){return C.type!==this.type?this.type-C.type:m(this.key,C.key)}equals(C){return C.type===this.type?this.key===C.key:!1}substituteConstants(){const C=U.get(this.key);return typeof C=="boolean"?C?I.INSTANCE:p.INSTANCE:this}evaluate(C){return!C.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this)),this.negated}}function a(C,P){if(typeof C=="string"){const j=parseFloat(C);isNaN(j)||(C=j)}return typeof C=="string"||typeof C=="number"?P(C):I.INSTANCE}class r{constructor(C,P,j){this.key=C,this.value=P,this.negated=j,this.type=12}static create(C,P,j=null){return a(P,D=>new r(C,D,j))}cmp(C){return C.type!==this.type?this.type-C.type:h(this.key,this.value,C.key,C.value)}equals(C){return C.type===this.type?this.key===C.key&&this.value===C.value:!1}substituteConstants(){return this}evaluate(C){return typeof this.value=="string"?!1:parseFloat(C.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=y.create(this.key,this.value,this)),this.negated}}class t{constructor(C,P,j){this.key=C,this.value=P,this.negated=j,this.type=13}static create(C,P,j=null){return a(P,D=>new t(C,D,j))}cmp(C){return C.type!==this.type?this.type-C.type:h(this.key,this.value,C.key,C.value)}equals(C){return C.type===this.type?this.key===C.key&&this.value===C.value:!1}substituteConstants(){return this}evaluate(C){return typeof this.value=="string"?!1:parseFloat(C.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this.value,this)),this.negated}}class b{constructor(C,P,j){this.key=C,this.value=P,this.negated=j,this.type=14}static create(C,P,j=null){return a(P,D=>new b(C,D,j))}cmp(C){return C.type!==this.type?this.type-C.type:h(this.key,this.value,C.key,C.value)}equals(C){return C.type===this.type?this.key===C.key&&this.value===C.value:!1}substituteConstants(){return this}evaluate(C){return typeof this.value=="string"?!1:parseFloat(C.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=t.create(this.key,this.value,this)),this.negated}}class y{constructor(C,P,j){this.key=C,this.value=P,this.negated=j,this.type=15}static create(C,P,j=null){return a(P,D=>new y(C,D,j))}cmp(C){return C.type!==this.type?this.type-C.type:h(this.key,this.value,C.key,C.value)}equals(C){return C.type===this.type?this.key===C.key&&this.value===C.value:!1}substituteConstants(){return this}evaluate(C){return typeof this.value=="string"?!1:parseFloat(C.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=r.create(this.key,this.value,this)),this.negated}}class E{constructor(C,P){this.key=C,this.regexp=P,this.type=7,this.negated=null}static create(C,P){return new E(C,P)}cmp(C){if(C.type!==this.type)return this.type-C.type;if(this.key<C.key)return-1;if(this.key>C.key)return 1;const P=this.regexp?this.regexp.source:"",j=C.regexp?C.regexp.source:"";return P<j?-1:P>j?1:0}equals(C){if(C.type===this.type){const P=this.regexp?this.regexp.source:"",j=C.regexp?C.regexp.source:"";return this.key===C.key&&P===j}return!1}substituteConstants(){return this}evaluate(C){let P=C.getValue(this.key);return this.regexp?this.regexp.test(P):!1}serialize(){const C=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${C}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this)),this.negated}}class T{constructor(C){this._actual=C,this.type=8}static create(C){return new T(C)}cmp(C){return C.type!==this.type?this.type-C.type:this._actual.cmp(C._actual)}equals(C){return C.type===this.type?this._actual.equals(C._actual):!1}substituteConstants(){return this}evaluate(C){return!this._actual.evaluate(C)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function v(C){let P=null;for(let j=0,D=C.length;j<D;j++){const $=C[j].substituteConstants();if(C[j]!==$&&P===null){P=[];for(let oe=0;oe<j;oe++)P[oe]=C[oe]}P!==null&&(P[j]=$)}return P===null?C:P}class d{constructor(C,P){this.expr=C,this.negated=P,this.type=6}static create(C,P){return d._normalizeArr(C,P)}cmp(C){if(C.type!==this.type)return this.type-C.type;if(this.expr.length<C.expr.length)return-1;if(this.expr.length>C.expr.length)return 1;for(let P=0,j=this.expr.length;P<j;P++){const D=e(this.expr[P],C.expr[P]);if(D!==0)return D}return 0}equals(C){if(C.type===this.type){if(this.expr.length!==C.expr.length)return!1;for(let P=0,j=this.expr.length;P<j;P++)if(!this.expr[P].equals(C.expr[P]))return!1;return!0}return!1}substituteConstants(){const C=v(this.expr);return C===this.expr?this:d.create(C,this.negated)}evaluate(C){for(let P=0,j=this.expr.length;P<j;P++)if(!this.expr[P].evaluate(C))return!1;return!0}static _normalizeArr(C,P){const j=[];let D=!1;for(const $ of C){if(!$)continue;if($.type===1){D=!0;continue}if($.type===0)return I.INSTANCE;if($.type===6){j.push(...$.expr);continue}j.push($)}if(j.length===0&&D)return p.INSTANCE;if(j.length===0)return;if(j.length===1)return j[0];j.sort(e);for(let $=1;$<j.length;$++)j[$-1].equals(j[$])&&(j.splice($,1),$--);if(j.length===1)return j[0];for(;j.length>1;){const $=j[j.length-1];if($.type!==9)break;j.pop();const oe=j.pop(),Ee=j.length===0,ve=n.create($.expr.map(Le=>d.create([Le,oe],null)),null,Ee);ve&&(j.push(ve),j.sort(e))}return j.length===1?j[0]:new d(j,P)}serialize(){return this.expr.map(C=>C.serialize()).join(" && ")}keys(){const C=[];for(let P of this.expr)C.push(...P.keys());return C}negate(){if(!this.negated){const C=[];for(let P of this.expr)C.push(P.negate());this.negated=n.create(C,this,!0)}return this.negated}}class n{constructor(C,P){this.expr=C,this.negated=P,this.type=9}static create(C,P,j){return n._normalizeArr(C,P,j)}cmp(C){if(C.type!==this.type)return this.type-C.type;if(this.expr.length<C.expr.length)return-1;if(this.expr.length>C.expr.length)return 1;for(let P=0,j=this.expr.length;P<j;P++){const D=e(this.expr[P],C.expr[P]);if(D!==0)return D}return 0}equals(C){if(C.type===this.type){if(this.expr.length!==C.expr.length)return!1;for(let P=0,j=this.expr.length;P<j;P++)if(!this.expr[P].equals(C.expr[P]))return!1;return!0}return!1}substituteConstants(){const C=v(this.expr);return C===this.expr?this:n.create(C,this.negated,!1)}evaluate(C){for(let P=0,j=this.expr.length;P<j;P++)if(this.expr[P].evaluate(C))return!0;return!1}static _normalizeArr(C,P,j){let D=[],$=!1;if(C){for(let oe=0,Ee=C.length;oe<Ee;oe++){const ve=C[oe];if(!ve)continue;if(ve.type===0){$=!0;continue}if(ve.type===1)return p.INSTANCE;if(ve.type===9){D=D.concat(ve.expr);continue}D.push(ve)}if(D.length===0&&$)return I.INSTANCE;D.sort(e)}if(D.length===0)return;if(D.length===1)return D[0];for(let oe=1;oe<D.length;oe++)D[oe-1].equals(D[oe])&&(D.splice(oe,1),oe--);if(D.length===1)return D[0];if(j){for(let oe=0;oe<D.length;oe++)for(let Ee=oe+1;Ee<D.length;Ee++)R(D[oe],D[Ee])&&(D.splice(Ee,1),Ee--);if(D.length===1)return D[0]}return new n(D,P)}serialize(){return this.expr.map(C=>C.serialize()).join(" || ")}keys(){const C=[];for(let P of this.expr)C.push(...P.keys());return C}negate(){if(!this.negated){let C=[];for(let P of this.expr)C.push(P.negate());for(;C.length>1;){const P=C.shift(),j=C.shift(),D=[];for(const oe of F(P))for(const Ee of F(j))D.push(d.create([oe,Ee],null));const $=C.length===0;C.unshift(n.create(D,null,$))}this.negated=C[0]}return this.negated}}class l extends g{constructor(C,P,j){super(C,null);this._defaultValue=P,typeof j=="object"?l._info.push(Object.assign(Object.assign({},j),{key:C})):j!==!0&&l._info.push({key:C,description:j,type:P!=null?typeof P:void 0})}static all(){return l._info.values()}bindTo(C){return C.createKey(this.key,this._defaultValue)}getValue(C){return C.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(C){return c.create(this.key,C)}}l._info=[];const u=Object(O.c)("contextKeyService"),_="setContext";function m(C,P){return C<P?-1:C>P?1:0}function h(C,P,j,D){return C<j?-1:C>j?1:P<D?-1:P>D?1:0}function R(C,P){if(P.type===6&&C.type!==9&&C.type!==6){for(const $ of P.expr)if(C.equals($))return!0}const j=C.negate(),D=F(j).concat(F(P));D.sort(e);for(let $=0;$<D.length;$++){const oe=D[$],Ee=oe.negate();for(let ve=$+1;ve<D.length;ve++){const Le=D[ve];if(Ee.equals(Le))return!0}}return!1}function F(C){return C.type===9?C.expr:[C]}},TXwP:function(ot,we,Q){var de,K;(function(){var O;(function(){"use strict";var U=[,,function(e){function I(c){this.__parent=c,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}I.prototype.clone_empty=function(){var c=new I(this.__parent);return c.set_indent(this.__indent_count,this.__alignment_count),c},I.prototype.item=function(c){return c<0?this.__items[this.__items.length+c]:this.__items[c]},I.prototype.has_match=function(c){for(var s=this.__items.length-1;s>=0;s--)if(this.__items[s].match(c))return!0;return!1},I.prototype.set_indent=function(c,s){this.is_empty()&&(this.__indent_count=c||0,this.__alignment_count=s||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},I.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},I.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},I.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var c=this.__parent.current_line;return c.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),c.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),c.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,c.__items[0]===" "&&(c.__items.splice(0,1),c.__character_count-=1),!0}return!1},I.prototype.is_empty=function(){return this.__items.length===0},I.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},I.prototype.push=function(c){this.__items.push(c);var s=c.lastIndexOf(`
|
|
`);s!==-1?this.__character_count=c.length-s:this.__character_count+=c.length},I.prototype.pop=function(){var c=null;return this.is_empty()||(c=this.__items.pop(),this.__character_count-=c.length),c},I.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},I.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},I.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},I.prototype.toString=function(){var c="";return this.is_empty()?this.__parent.indent_empty_lines&&(c=this.__parent.get_indent_string(this.__indent_count)):(c=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),c+=this.__items.join("")),c};function p(c,s){this.__cache=[""],this.__indent_size=c.indent_size,this.__indent_string=c.indent_char,c.indent_with_tabs||(this.__indent_string=new Array(c.indent_size+1).join(c.indent_char)),s=s||"",c.indent_level>0&&(s=new Array(c.indent_level+1).join(this.__indent_string)),this.__base_string=s,this.__base_string_length=s.length}p.prototype.get_indent_size=function(c,s){var i=this.__base_string_length;return s=s||0,c<0&&(i=0),i+=c*this.__indent_size,i+=s,i},p.prototype.get_indent_string=function(c,s){var i=this.__base_string;return s=s||0,c<0&&(c=0,i=""),s+=c*this.__indent_size,this.__ensure_cache(s),i+=this.__cache[s],i},p.prototype.__ensure_cache=function(c){for(;c>=this.__cache.length;)this.__add_column()},p.prototype.__add_column=function(){var c=this.__cache.length,s=0,i="";this.__indent_size&&c>=this.__indent_size&&(s=Math.floor(c/this.__indent_size),c-=s*this.__indent_size,i=new Array(s+1).join(this.__indent_string)),c&&(i+=new Array(c+1).join(" ")),this.__cache.push(i)};function g(c,s){this.__indent_cache=new p(c,s),this.raw=!1,this._end_with_newline=c.end_with_newline,this.indent_size=c.indent_size,this.wrap_line_length=c.wrap_line_length,this.indent_empty_lines=c.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new I(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}g.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},g.prototype.get_line_number=function(){return this.__lines.length},g.prototype.get_indent_string=function(c,s){return this.__indent_cache.get_indent_string(c,s)},g.prototype.get_indent_size=function(c,s){return this.__indent_cache.get_indent_size(c,s)},g.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},g.prototype.add_new_line=function(c){return this.is_empty()||!c&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},g.prototype.get_code=function(c){this.trim(!0);var s=this.current_line.pop();s&&(s[s.length-1]===`
|
|
`&&(s=s.replace(/\n+$/g,"")),this.current_line.push(s)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(`
|
|
`);return c!==`
|
|
`&&(i=i.replace(/[\n]/g,c)),i},g.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},g.prototype.set_indent=function(c,s){return c=c||0,s=s||0,this.next_line.set_indent(c,s),this.__lines.length>1?(this.current_line.set_indent(c,s),!0):(this.current_line.set_indent(),!1)},g.prototype.add_raw_token=function(c){for(var s=0;s<c.newlines;s++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(c.whitespace_before),this.current_line.push(c.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},g.prototype.add_token=function(c){this.__add_space_before_token(),this.current_line.push(c),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},g.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},g.prototype.remove_indent=function(c){for(var s=this.__lines.length;c<s;)this.__lines[c]._remove_indent(),c++;this.current_line._remove_wrap_indent()},g.prototype.trim=function(c){for(c=c===void 0?!1:c,this.current_line.trim();c&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},g.prototype.just_added_newline=function(){return this.current_line.is_empty()},g.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},g.prototype.ensure_empty_line_above=function(c,s){for(var i=this.__lines.length-2;i>=0;){var A=this.__lines[i];if(A.is_empty())break;if(A.item(0).indexOf(c)!==0&&A.item(-1)!==s){this.__lines.splice(i+1,0,new I(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=g},,,,function(e){function I(c,s){this.raw_options=p(c,s),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}I.prototype._get_array=function(c,s){var i=this.raw_options[c],A=s||[];return typeof i=="object"?i!==null&&typeof i.concat=="function"&&(A=i.concat()):typeof i=="string"&&(A=i.split(/[^a-zA-Z0-9_\/\-]+/)),A},I.prototype._get_boolean=function(c,s){var i=this.raw_options[c],A=i===void 0?!!s:!!i;return A},I.prototype._get_characters=function(c,s){var i=this.raw_options[c],A=s||"";return typeof i=="string"&&(A=i.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),A},I.prototype._get_number=function(c,s){var i=this.raw_options[c];s=parseInt(s,10),isNaN(s)&&(s=0);var A=parseInt(i,10);return isNaN(A)&&(A=s),A},I.prototype._get_selection=function(c,s,i){var A=this._get_selection_list(c,s,i);if(A.length!==1)throw new Error("Invalid Option Value: The option '"+c+`' can only be one of the following values:
|
|
`+s+`
|
|
You passed in: '`+this.raw_options[c]+"'");return A[0]},I.prototype._get_selection_list=function(c,s,i){if(!s||s.length===0)throw new Error("Selection list cannot be empty.");if(i=i||[s[0]],!this._is_valid_selection(i,s))throw new Error("Invalid Default Value!");var A=this._get_array(c,i);if(!this._is_valid_selection(A,s))throw new Error("Invalid Option Value: The option '"+c+`' can contain only the following values:
|
|
`+s+`
|
|
You passed in: '`+this.raw_options[c]+"'");return A},I.prototype._is_valid_selection=function(c,s){return c.length&&s.length&&!c.some(function(i){return s.indexOf(i)===-1})};function p(c,s){var i={};c=g(c);var A;for(A in c)A!==s&&(i[A]=c[A]);if(s&&c[s])for(A in c[s])i[A]=c[s][A];return i}function g(c){var s={},i;for(i in c){var A=i.replace(/-/g,"_");s[A]=c[i]}return s}e.exports.Options=I,e.exports.normalizeOpts=g,e.exports.mergeOpts=p},,function(e){var I=RegExp.prototype.hasOwnProperty("sticky");function p(g){this.__input=g||"",this.__input_length=this.__input.length,this.__position=0}p.prototype.restart=function(){this.__position=0},p.prototype.back=function(){this.__position>0&&(this.__position-=1)},p.prototype.hasNext=function(){return this.__position<this.__input_length},p.prototype.next=function(){var g=null;return this.hasNext()&&(g=this.__input.charAt(this.__position),this.__position+=1),g},p.prototype.peek=function(g){var c=null;return g=g||0,g+=this.__position,g>=0&&g<this.__input_length&&(c=this.__input.charAt(g)),c},p.prototype.__match=function(g,c){g.lastIndex=c;var s=g.exec(this.__input);return s&&!(I&&g.sticky)&&(s.index!==c&&(s=null)),s},p.prototype.test=function(g,c){return c=c||0,c+=this.__position,c>=0&&c<this.__input_length?!!this.__match(g,c):!1},p.prototype.testChar=function(g,c){var s=this.peek(c);return g.lastIndex=0,s!==null&&g.test(s)},p.prototype.match=function(g){var c=this.__match(g,this.__position);return c?this.__position+=c[0].length:c=null,c},p.prototype.read=function(g,c,s){var i="",A;return g&&(A=this.match(g),A&&(i+=A[0])),c&&(A||!g)&&(i+=this.readUntil(c,s)),i},p.prototype.readUntil=function(g,c){var s="",i=this.__position;g.lastIndex=this.__position;var A=g.exec(this.__input);return A?(i=A.index,c&&(i+=A[0].length)):i=this.__input_length,s=this.__input.substring(this.__position,i),this.__position=i,s},p.prototype.readUntilAfter=function(g){return this.readUntil(g,!0)},p.prototype.get_regexp=function(g,c){var s=null,i="g";return c&&I&&(i="y"),typeof g=="string"&&g!==""?s=new RegExp(g,i):g&&(s=new RegExp(g.source,i)),s},p.prototype.get_literal_regexp=function(g){return RegExp(g.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},p.prototype.peekUntilAfter=function(g){var c=this.__position,s=this.readUntilAfter(g);return this.__position=c,s},p.prototype.lookBack=function(g){var c=this.__position-1;return c>=g.length&&this.__input.substring(c-g.length,c).toLowerCase()===g},e.exports.InputScanner=p},,,,,function(e){function I(p,g){p=typeof p=="string"?p:p.source,g=typeof g=="string"?g:g.source,this.__directives_block_pattern=new RegExp(p+/ beautify( \w+[:]\w+)+ /.source+g,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(p+/\sbeautify\signore:end\s/.source+g,"g")}I.prototype.get_directives=function(p){if(!p.match(this.__directives_block_pattern))return null;var g={};this.__directive_pattern.lastIndex=0;for(var c=this.__directive_pattern.exec(p);c;)g[c[1]]=c[2],c=this.__directive_pattern.exec(p);return g},I.prototype.readIgnored=function(p){return p.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=I},,function(e,I,p){var g=p(16).Beautifier,c=p(17).Options;function s(i,A){var o=new g(i,A);return o.beautify()}e.exports=s,e.exports.defaultOptions=function(){return new c}},function(e,I,p){var g=p(17).Options,c=p(2).Output,s=p(8).InputScanner,i=p(13).Directives,A=new i(/\/\*/,/\*\//),o=/\r\n|[\r\n]/,a=/\r\n|[\r\n]/g,r=/\s/,t=/(?:\s|\n)+/g,b=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,y=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function E(T,v){this._source_text=T||"",this._options=new g(v),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}E.prototype.eatString=function(T){var v="";for(this._ch=this._input.next();this._ch;){if(v+=this._ch,this._ch==="\\")v+=this._input.next();else if(T.indexOf(this._ch)!==-1||this._ch===`
|
|
`)break;this._ch=this._input.next()}return v},E.prototype.eatWhitespace=function(T){for(var v=r.test(this._input.peek()),d=0;r.test(this._input.peek());)this._ch=this._input.next(),T&&this._ch===`
|
|
`&&((d===0||d<this._options.max_preserve_newlines)&&(d++,this._output.add_new_line(!0)));return v},E.prototype.foundNestedPseudoClass=function(){for(var T=0,v=1,d=this._input.peek(v);d;){if(d==="{")return!0;if(d==="(")T+=1;else if(d===")"){if(T===0)return!1;T-=1}else if(d===";"||d==="}")return!1;v++,d=this._input.peek(v)}return!1},E.prototype.print_string=function(T){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(T)},E.prototype.preserveSingleSpace=function(T){T&&(this._output.space_before_token=!0)},E.prototype.indent=function(){this._indentLevel++},E.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var T=this._source_text,v=this._options.eol;v==="auto"&&(v=`
|
|
`,T&&o.test(T||"")&&(v=T.match(o)[0])),T=T.replace(a,`
|
|
`);var d=T.match(/^[\t ]*/)[0];this._output=new c(this._options,d),this._input=new s(T),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var n=0,l=!1,u=!1,_=!1,m=!1,h=!1,R=!1,F=this._ch,C=!1,P,j,D;P=this._input.read(t),j=P!=="",D=F,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),F=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var $=this._input.read(b),oe=A.get_directives($);oe&&oe.ignore==="start"&&($+=A.readIgnored(this._input)),this.print_string($),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(y)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(j),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Ee=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Ee.match(/[ :]$/)&&(Ee=this.eatString(": ").replace(/\s$/,""),this.print_string(Ee),this._output.space_before_token=!0),Ee=Ee.replace(/\s$/,""),Ee==="extend"?m=!0:Ee==="import"&&(h=!0),Ee in this.NESTED_AT_RULE?(this._nestedLevel+=1,Ee in this.CONDITIONAL_GROUP_RULE&&(_=!0)):!l&&n===0&&Ee.indexOf(":")!==-1&&(u=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(j),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")u&&(u=!1,this.outdent()),_?(_=!1,l=this._indentLevel>=this._nestedLevel):l=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&l&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(D==="("?this._output.space_before_token=!1:D!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),D==="{"&&this._output.trim(!0),h=!1,m=!1,u&&(this.outdent(),u=!1),this.print_string(this._ch),l=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var ve=0;ve<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;ve++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[ve])){C=!0;break}(l||_)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!m&&n===0?(this.print_string(":"),u||(u=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Le=D==='"'||D==="'";this.preserveSingleSpace(Le||j),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")C=!1,n===0?(u&&(this.outdent(),u=!1),m=!1,h=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),n++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),n&&(n--,this.outdent()));else{var Se=!1;this._input.lookBack("with")&&(Se=!0),this.preserveSingleSpace(j||Se),this.print_string(this._ch),u&&D==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),R=!0):(this.eatWhitespace(),n++,this.indent())}else if(this._ch===")")n&&(n--,this.outdent()),R&&this._input.peek()===";"&&this._options.selector_separator_newline&&(R=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!u||R)&&n===0&&!h&&!m?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!u&&n===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&r.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(j),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),r.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var Re=D==='"'||D==="'";this.preserveSingleSpace(Re||j),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
`&&C&&this._output.add_new_line()}var De=this._output.get_code(v);return De},e.exports.Beautifier=E},function(e,I,p){var g=p(6).Options;function c(s){g.call(this,s,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var i=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||i;var A=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var o=0;o<A.length;o++)A[o]!=="expand"?this.brace_style="collapse":this.brace_style=A[o]}c.prototype=new g,e.exports.Options=c}],S={};function Y(e){var I=S[e];if(I!==void 0)return I.exports;var p=S[e]={exports:{}};return U[e](p,p.exports,Y),p.exports}var M=Y(15);O=M})();var G=O;!(de=[],K=function(){return{css_beautify:G}}.apply(we,de),K!==void 0&&(ot.exports=K))})()},Vhoy:function(ot,we,Q){"use strict";Q.d(we,"d",function(){return G}),Q.d(we,"e",function(){return U}),Q.d(we,"c",function(){return S}),Q.d(we,"b",function(){return Y}),Q.d(we,"a",function(){return M});var de=Q("MI8n");class K{constructor(){this._icons=new Map,this._onDidRegister=new de.b}add(e){const I=this._icons.get(e.id);I?e.description?I.description=e.description:console.error(`Duplicate registration of codicon ${e.id}`):(this._icons.set(e.id,e),this._onDidRegister.fire(e))}get(e){return this._icons.get(e)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const O=new K,G=O;function U(e,I){return new Y(e,I)}function S(e){return e?e.replace(/\$\((.*?)\)/g,(I,p)=>` ${p} `).trim():""}class Y{constructor(e,I,p){this.id=e,this.definition=I,this.description=p,O.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var M;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const I=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function p(s){if(s instanceof Y)return["codicon","codicon-"+s.id];const i=I.exec(s.id);if(!i)return p(Y.error);let[,A,o]=i;const a=["codicon","codicon-"+A];return o&&a.push("codicon-modifier-"+o.substr(1)),a}e.asClassNameArray=p;function g(s){return p(s).join(" ")}e.asClassName=g;function c(s){return"."+p(s).join(".")}e.asCSSSelector=c})(M||(M={})),function(e){e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",e.add.definition),e.gistNew=new e("gist-new",e.add.definition),e.repoCreate=new e("repo-create",e.add.definition),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDirectory=new e("file-directory",{fontCharacter:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{fontCharacter:"\\ea83"}),e.logoGithub=new e("logo-github",{fontCharacter:"\\ea84"}),e.markGithub=new e("mark-github",{fontCharacter:"\\ea84"}),e.github=new e("github",{fontCharacter:"\\ea84"}),e.terminal=new e("terminal",{fontCharacter:"\\ea85"}),e.console=new e("console",{fontCharacter:"\\ea85"}),e.repl=new e("repl",{fontCharacter:"\\ea85"}),e.zap=new e("zap",{fontCharacter:"\\ea86"}),e.symbolEvent=new e("symbol-event",{fontCharacter:"\\ea86"}),e.error=new e("error",{fontCharacter:"\\ea87"}),e.stop=new e("stop",{fontCharacter:"\\ea87"}),e.variable=new e("variable",{fontCharacter:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{fontCharacter:"\\ea88"}),e.array=new e("array",{fontCharacter:"\\ea8a"}),e.symbolArray=new e("symbol-array",{fontCharacter:"\\ea8a"}),e.symbolModule=new e("symbol-module",{fontCharacter:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{fontCharacter:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{fontCharacter:"\\ea8b"}),e.symbolObject=new e("symbol-object",{fontCharacter:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{fontCharacter:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{fontCharacter:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{fontCharacter:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{fontCharacter:"\\ea8f"}),e.symbolNull=new e("symbol-null",{fontCharacter:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{fontCharacter:"\\ea90"}),e.symbolNumber=new e("symbol-number",{fontCharacter:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{fontCharacter:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{fontCharacter:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{fontCharacter:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{fontCharacter:"\\ea92"}),e.symbolKey=new e("symbol-key",{fontCharacter:"\\ea93"}),e.symbolText=new e("symbol-text",{fontCharacter:"\\ea93"}),e.symbolReference=new e("symbol-reference",{fontCharacter:"\\ea94"}),e.goToFile=new e("go-to-file",{fontCharacter:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{fontCharacter:"\\ea95"}),e.symbolValue=new e("symbol-value",{fontCharacter:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{fontCharacter:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{fontCharacter:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{fontCharacter:"\\ea97"}),e.archive=new e("archive",{fontCharacter:"\\ea98"}),e.arrowBoth=new e("arrow-both",{fontCharacter:"\\ea99"}),e.arrowDown=new e("arrow-down",{fontCharacter:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{fontCharacter:"\\ea9b"}),e.arrowRight=new e("arrow-right",{fontCharacter:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{fontCharacter:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{fontCharacter:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{fontCharacter:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{fontCharacter:"\\eaa0"}),e.arrowUp=new e("arrow-up",{fontCharacter:"\\eaa1"}),e.bell=new e("bell",{fontCharacter:"\\eaa2"}),e.bold=new e("bold",{fontCharacter:"\\eaa3"}),e.book=new e("book",{fontCharacter:"\\eaa4"}),e.bookmark=new e("bookmark",{fontCharacter:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{fontCharacter:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),e.briefcase=new e("briefcase",{fontCharacter:"\\eaac"}),e.broadcast=new e("broadcast",{fontCharacter:"\\eaad"}),e.browser=new e("browser",{fontCharacter:"\\eaae"}),e.bug=new e("bug",{fontCharacter:"\\eaaf"}),e.calendar=new e("calendar",{fontCharacter:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{fontCharacter:"\\eab1"}),e.check=new e("check",{fontCharacter:"\\eab2"}),e.checklist=new e("checklist",{fontCharacter:"\\eab3"}),e.chevronDown=new e("chevron-down",{fontCharacter:"\\eab4"}),e.dropDownButton=new e("drop-down-button",e.chevronDown.definition),e.chevronLeft=new e("chevron-left",{fontCharacter:"\\eab5"}),e.chevronRight=new e("chevron-right",{fontCharacter:"\\eab6"}),e.chevronUp=new e("chevron-up",{fontCharacter:"\\eab7"}),e.chromeClose=new e("chrome-close",{fontCharacter:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{fontCharacter:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{fontCharacter:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{fontCharacter:"\\eabb"}),e.circleOutline=new e("circle-outline",{fontCharacter:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),e.circleSlash=new e("circle-slash",{fontCharacter:"\\eabd"}),e.circuitBoard=new e("circuit-board",{fontCharacter:"\\eabe"}),e.clearAll=new e("clear-all",{fontCharacter:"\\eabf"}),e.clippy=new e("clippy",{fontCharacter:"\\eac0"}),e.closeAll=new e("close-all",{fontCharacter:"\\eac1"}),e.cloudDownload=new e("cloud-download",{fontCharacter:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{fontCharacter:"\\eac3"}),e.code=new e("code",{fontCharacter:"\\eac4"}),e.collapseAll=new e("collapse-all",{fontCharacter:"\\eac5"}),e.colorMode=new e("color-mode",{fontCharacter:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{fontCharacter:"\\eac7"}),e.compareChanges=new e("compare-changes",{fontCharacter:"\\eafd"}),e.creditCard=new e("credit-card",{fontCharacter:"\\eac9"}),e.dash=new e("dash",{fontCharacter:"\\eacc"}),e.dashboard=new e("dashboard",{fontCharacter:"\\eacd"}),e.database=new e("database",{fontCharacter:"\\eace"}),e.debugContinue=new e("debug-continue",{fontCharacter:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{fontCharacter:"\\ead0"}),e.debugPause=new e("debug-pause",{fontCharacter:"\\ead1"}),e.debugRestart=new e("debug-restart",{fontCharacter:"\\ead2"}),e.debugStart=new e("debug-start",{fontCharacter:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{fontCharacter:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{fontCharacter:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{fontCharacter:"\\ead6"}),e.debugStop=new e("debug-stop",{fontCharacter:"\\ead7"}),e.debug=new e("debug",{fontCharacter:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{fontCharacter:"\\ead9"}),e.deviceCamera=new e("device-camera",{fontCharacter:"\\eada"}),e.deviceMobile=new e("device-mobile",{fontCharacter:"\\eadb"}),e.diffAdded=new e("diff-added",{fontCharacter:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{fontCharacter:"\\eadd"}),e.diffModified=new e("diff-modified",{fontCharacter:"\\eade"}),e.diffRemoved=new e("diff-removed",{fontCharacter:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{fontCharacter:"\\eae0"}),e.diff=new e("diff",{fontCharacter:"\\eae1"}),e.discard=new e("discard",{fontCharacter:"\\eae2"}),e.editorLayout=new e("editor-layout",{fontCharacter:"\\eae3"}),e.emptyWindow=new e("empty-window",{fontCharacter:"\\eae4"}),e.exclude=new e("exclude",{fontCharacter:"\\eae5"}),e.extensions=new e("extensions",{fontCharacter:"\\eae6"}),e.eyeClosed=new e("eye-closed",{fontCharacter:"\\eae7"}),e.fileBinary=new e("file-binary",{fontCharacter:"\\eae8"}),e.fileCode=new e("file-code",{fontCharacter:"\\eae9"}),e.fileMedia=new e("file-media",{fontCharacter:"\\eaea"}),e.filePdf=new e("file-pdf",{fontCharacter:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{fontCharacter:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{fontCharacter:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{fontCharacter:"\\eaee"}),e.fileZip=new e("file-zip",{fontCharacter:"\\eaef"}),e.files=new e("files",{fontCharacter:"\\eaf0"}),e.filter=new e("filter",{fontCharacter:"\\eaf1"}),e.flame=new e("flame",{fontCharacter:"\\eaf2"}),e.foldDown=new e("fold-down",{fontCharacter:"\\eaf3"}),e.foldUp=new e("fold-up",{fontCharacter:"\\eaf4"}),e.fold=new e("fold",{fontCharacter:"\\eaf5"}),e.folderActive=new e("folder-active",{fontCharacter:"\\eaf6"}),e.folderOpened=new e("folder-opened",{fontCharacter:"\\eaf7"}),e.gear=new e("gear",{fontCharacter:"\\eaf8"}),e.gift=new e("gift",{fontCharacter:"\\eaf9"}),e.gistSecret=new e("gist-secret",{fontCharacter:"\\eafa"}),e.gist=new e("gist",{fontCharacter:"\\eafb"}),e.gitCommit=new e("git-commit",{fontCharacter:"\\eafc"}),e.gitCompare=new e("git-compare",{fontCharacter:"\\eafd"}),e.gitMerge=new e("git-merge",{fontCharacter:"\\eafe"}),e.githubAction=new e("github-action",{fontCharacter:"\\eaff"}),e.githubAlt=new e("github-alt",{fontCharacter:"\\eb00"}),e.globe=new e("globe",{fontCharacter:"\\eb01"}),e.grabber=new e("grabber",{fontCharacter:"\\eb02"}),e.graph=new e("graph",{fontCharacter:"\\eb03"}),e.gripper=new e("gripper",{fontCharacter:"\\eb04"}),e.heart=new e("heart",{fontCharacter:"\\eb05"}),e.home=new e("home",{fontCharacter:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{fontCharacter:"\\eb07"}),e.hubot=new e("hubot",{fontCharacter:"\\eb08"}),e.inbox=new e("inbox",{fontCharacter:"\\eb09"}),e.issueClosed=new e("issue-closed",{fontCharacter:"\\eba4"}),e.issueReopened=new e("issue-reopened",{fontCharacter:"\\eb0b"}),e.issues=new e("issues",{fontCharacter:"\\eb0c"}),e.italic=new e("italic",{fontCharacter:"\\eb0d"}),e.jersey=new e("jersey",{fontCharacter:"\\eb0e"}),e.json=new e("json",{fontCharacter:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{fontCharacter:"\\eb10"}),e.key=new e("key",{fontCharacter:"\\eb11"}),e.law=new e("law",{fontCharacter:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{fontCharacter:"\\eb13"}),e.linkExternal=new e("link-external",{fontCharacter:"\\eb14"}),e.link=new e("link",{fontCharacter:"\\eb15"}),e.listOrdered=new e("list-ordered",{fontCharacter:"\\eb16"}),e.listUnordered=new e("list-unordered",{fontCharacter:"\\eb17"}),e.liveShare=new e("live-share",{fontCharacter:"\\eb18"}),e.loading=new e("loading",{fontCharacter:"\\eb19"}),e.location=new e("location",{fontCharacter:"\\eb1a"}),e.mailRead=new e("mail-read",{fontCharacter:"\\eb1b"}),e.mail=new e("mail",{fontCharacter:"\\eb1c"}),e.markdown=new e("markdown",{fontCharacter:"\\eb1d"}),e.megaphone=new e("megaphone",{fontCharacter:"\\eb1e"}),e.mention=new e("mention",{fontCharacter:"\\eb1f"}),e.milestone=new e("milestone",{fontCharacter:"\\eb20"}),e.mortarBoard=new e("mortar-board",{fontCharacter:"\\eb21"}),e.move=new e("move",{fontCharacter:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{fontCharacter:"\\eb23"}),e.mute=new e("mute",{fontCharacter:"\\eb24"}),e.noNewline=new e("no-newline",{fontCharacter:"\\eb25"}),e.note=new e("note",{fontCharacter:"\\eb26"}),e.octoface=new e("octoface",{fontCharacter:"\\eb27"}),e.openPreview=new e("open-preview",{fontCharacter:"\\eb28"}),e.package_=new e("package",{fontCharacter:"\\eb29"}),e.paintcan=new e("paintcan",{fontCharacter:"\\eb2a"}),e.pin=new e("pin",{fontCharacter:"\\eb2b"}),e.play=new e("play",{fontCharacter:"\\eb2c"}),e.run=new e("run",{fontCharacter:"\\eb2c"}),e.plug=new e("plug",{fontCharacter:"\\eb2d"}),e.preserveCase=new e("preserve-case",{fontCharacter:"\\eb2e"}),e.preview=new e("preview",{fontCharacter:"\\eb2f"}),e.project=new e("project",{fontCharacter:"\\eb30"}),e.pulse=new e("pulse",{fontCharacter:"\\eb31"}),e.question=new e("question",{fontCharacter:"\\eb32"}),e.quote=new e("quote",{fontCharacter:"\\eb33"}),e.radioTower=new e("radio-tower",{fontCharacter:"\\eb34"}),e.reactions=new e("reactions",{fontCharacter:"\\eb35"}),e.references=new e("references",{fontCharacter:"\\eb36"}),e.refresh=new e("refresh",{fontCharacter:"\\eb37"}),e.regex=new e("regex",{fontCharacter:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{fontCharacter:"\\eb39"}),e.remote=new e("remote",{fontCharacter:"\\eb3a"}),e.remove=new e("remove",{fontCharacter:"\\eb3b"}),e.replaceAll=new e("replace-all",{fontCharacter:"\\eb3c"}),e.replace=new e("replace",{fontCharacter:"\\eb3d"}),e.repoClone=new e("repo-clone",{fontCharacter:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{fontCharacter:"\\eb3f"}),e.repoPull=new e("repo-pull",{fontCharacter:"\\eb40"}),e.repoPush=new e("repo-push",{fontCharacter:"\\eb41"}),e.report=new e("report",{fontCharacter:"\\eb42"}),e.requestChanges=new e("request-changes",{fontCharacter:"\\eb43"}),e.rocket=new e("rocket",{fontCharacter:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{fontCharacter:"\\eb45"}),e.rootFolder=new e("root-folder",{fontCharacter:"\\eb46"}),e.rss=new e("rss",{fontCharacter:"\\eb47"}),e.ruby=new e("ruby",{fontCharacter:"\\eb48"}),e.saveAll=new e("save-all",{fontCharacter:"\\eb49"}),e.saveAs=new e("save-as",{fontCharacter:"\\eb4a"}),e.save=new e("save",{fontCharacter:"\\eb4b"}),e.screenFull=new e("screen-full",{fontCharacter:"\\eb4c"}),e.screenNormal=new e("screen-normal",{fontCharacter:"\\eb4d"}),e.searchStop=new e("search-stop",{fontCharacter:"\\eb4e"}),e.server=new e("server",{fontCharacter:"\\eb50"}),e.settingsGear=new e("settings-gear",{fontCharacter:"\\eb51"}),e.settings=new e("settings",{fontCharacter:"\\eb52"}),e.shield=new e("shield",{fontCharacter:"\\eb53"}),e.smiley=new e("smiley",{fontCharacter:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{fontCharacter:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{fontCharacter:"\\eb56"}),e.splitVertical=new e("split-vertical",{fontCharacter:"\\eb57"}),e.squirrel=new e("squirrel",{fontCharacter:"\\eb58"}),e.starFull=new e("star-full",{fontCharacter:"\\eb59"}),e.starHalf=new e("star-half",{fontCharacter:"\\eb5a"}),e.symbolClass=new e("symbol-class",{fontCharacter:"\\eb5b"}),e.symbolColor=new e("symbol-color",{fontCharacter:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{fontCharacter:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{fontCharacter:"\\eb5e"}),e.symbolField=new e("symbol-field",{fontCharacter:"\\eb5f"}),e.symbolFile=new e("symbol-file",{fontCharacter:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{fontCharacter:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{fontCharacter:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{fontCharacter:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{fontCharacter:"\\eb64"}),e.symbolProperty=new e("symbol-property",{fontCharacter:"\\eb65"}),e.wrench=new e("wrench",{fontCharacter:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{fontCharacter:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{fontCharacter:"\\eb66"}),e.tasklist=new e("tasklist",{fontCharacter:"\\eb67"}),e.telescope=new e("telescope",{fontCharacter:"\\eb68"}),e.textSize=new e("text-size",{fontCharacter:"\\eb69"}),e.threeBars=new e("three-bars",{fontCharacter:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{fontCharacter:"\\eb6b"}),e.thumbsup=new e("thumbsup",{fontCharacter:"\\eb6c"}),e.tools=new e("tools",{fontCharacter:"\\eb6d"}),e.triangleDown=new e("triangle-down",{fontCharacter:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{fontCharacter:"\\eb6f"}),e.triangleRight=new e("triangle-right",{fontCharacter:"\\eb70"}),e.triangleUp=new e("triangle-up",{fontCharacter:"\\eb71"}),e.twitter=new e("twitter",{fontCharacter:"\\eb72"}),e.unfold=new e("unfold",{fontCharacter:"\\eb73"}),e.unlock=new e("unlock",{fontCharacter:"\\eb74"}),e.unmute=new e("unmute",{fontCharacter:"\\eb75"}),e.unverified=new e("unverified",{fontCharacter:"\\eb76"}),e.verified=new e("verified",{fontCharacter:"\\eb77"}),e.versions=new e("versions",{fontCharacter:"\\eb78"}),e.vmActive=new e("vm-active",{fontCharacter:"\\eb79"}),e.vmOutline=new e("vm-outline",{fontCharacter:"\\eb7a"}),e.vmRunning=new e("vm-running",{fontCharacter:"\\eb7b"}),e.watch=new e("watch",{fontCharacter:"\\eb7c"}),e.whitespace=new e("whitespace",{fontCharacter:"\\eb7d"}),e.wholeWord=new e("whole-word",{fontCharacter:"\\eb7e"}),e.window=new e("window",{fontCharacter:"\\eb7f"}),e.wordWrap=new e("word-wrap",{fontCharacter:"\\eb80"}),e.zoomIn=new e("zoom-in",{fontCharacter:"\\eb81"}),e.zoomOut=new e("zoom-out",{fontCharacter:"\\eb82"}),e.listFilter=new e("list-filter",{fontCharacter:"\\eb83"}),e.listFlat=new e("list-flat",{fontCharacter:"\\eb84"}),e.listSelection=new e("list-selection",{fontCharacter:"\\eb85"}),e.selection=new e("selection",{fontCharacter:"\\eb85"}),e.listTree=new e("list-tree",{fontCharacter:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{fontCharacter:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{fontCharacter:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{fontCharacter:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),e.symbolString=new e("symbol-string",{fontCharacter:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{fontCharacter:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{fontCharacter:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{fontCharacter:"\\eb90"}),e.callIncoming=new e("call-incoming",{fontCharacter:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{fontCharacter:"\\eb93"}),e.menu=new e("menu",{fontCharacter:"\\eb94"}),e.expandAll=new e("expand-all",{fontCharacter:"\\eb95"}),e.feedback=new e("feedback",{fontCharacter:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{fontCharacter:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),e.account=new e("account",{fontCharacter:"\\eb99"}),e.bellDot=new e("bell-dot",{fontCharacter:"\\eb9a"}),e.debugConsole=new e("debug-console",{fontCharacter:"\\eb9b"}),e.library=new e("library",{fontCharacter:"\\eb9c"}),e.output=new e("output",{fontCharacter:"\\eb9d"}),e.runAll=new e("run-all",{fontCharacter:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{fontCharacter:"\\eb9f"}),e.pinned=new e("pinned",{fontCharacter:"\\eba0"}),e.githubInverted=new e("github-inverted",{fontCharacter:"\\eba1"}),e.debugAlt=new e("debug-alt",{fontCharacter:"\\eb91"}),e.serverProcess=new e("server-process",{fontCharacter:"\\eba2"}),e.serverEnvironment=new e("server-environment",{fontCharacter:"\\eba3"}),e.pass=new e("pass",{fontCharacter:"\\eba4"}),e.stopCircle=new e("stop-circle",{fontCharacter:"\\eba5"}),e.playCircle=new e("play-circle",{fontCharacter:"\\eba6"}),e.record=new e("record",{fontCharacter:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{fontCharacter:"\\eba8"}),e.vmConnect=new e("vm-connect",{fontCharacter:"\\eba9"}),e.cloud=new e("cloud",{fontCharacter:"\\ebaa"}),e.merge=new e("merge",{fontCharacter:"\\ebab"}),e.exportIcon=new e("export",{fontCharacter:"\\ebac"}),e.graphLeft=new e("graph-left",{fontCharacter:"\\ebad"}),e.magnet=new e("magnet",{fontCharacter:"\\ebae"}),e.notebook=new e("notebook",{fontCharacter:"\\ebaf"}),e.redo=new e("redo",{fontCharacter:"\\ebb0"}),e.checkAll=new e("check-all",{fontCharacter:"\\ebb1"}),e.pinnedDirty=new e("pinned-dirty",{fontCharacter:"\\ebb2"}),e.passFilled=new e("pass-filled",{fontCharacter:"\\ebb3"}),e.circleLargeFilled=new e("circle-large-filled",{fontCharacter:"\\ebb4"}),e.circleLargeOutline=new e("circle-large-outline",{fontCharacter:"\\ebb5"}),e.combine=new e("combine",{fontCharacter:"\\ebb6"}),e.gather=new e("gather",{fontCharacter:"\\ebb6"}),e.table=new e("table",{fontCharacter:"\\ebb7"}),e.variableGroup=new e("variable-group",{fontCharacter:"\\ebb8"}),e.typeHierarchy=new e("type-hierarchy",{fontCharacter:"\\ebb9"}),e.typeHierarchySub=new e("type-hierarchy-sub",{fontCharacter:"\\ebba"}),e.typeHierarchySuper=new e("type-hierarchy-super",{fontCharacter:"\\ebbb"}),e.gitPullRequestCreate=new e("git-pull-request-create",{fontCharacter:"\\ebbc"}),e.runAbove=new e("run-above",{fontCharacter:"\\ebbd"}),e.runBelow=new e("run-below",{fontCharacter:"\\ebbe"}),e.notebookTemplate=new e("notebook-template",{fontCharacter:"\\ebbf"}),e.debugRerun=new e("debug-rerun",{fontCharacter:"\\ebc0"}),e.workspaceTrusted=new e("workspace-trusted",{fontCharacter:"\\ebc1"}),e.workspaceUntrusted=new e("workspace-untrusted",{fontCharacter:"\\ebc2"}),e.workspaceUnspecified=new e("workspace-unspecified",{fontCharacter:"\\ebc3"}),e.terminalCmd=new e("terminal-cmd",{fontCharacter:"\\ebc4"}),e.terminalDebian=new e("terminal-debian",{fontCharacter:"\\ebc5"}),e.terminalLinux=new e("terminal-linux",{fontCharacter:"\\ebc6"}),e.terminalPowershell=new e("terminal-powershell",{fontCharacter:"\\ebc7"}),e.terminalTmux=new e("terminal-tmux",{fontCharacter:"\\ebc8"}),e.terminalUbuntu=new e("terminal-ubuntu",{fontCharacter:"\\ebc9"}),e.terminalBash=new e("terminal-bash",{fontCharacter:"\\ebca"}),e.arrowSwap=new e("arrow-swap",{fontCharacter:"\\ebcb"}),e.copy=new e("copy",{fontCharacter:"\\ebcc"}),e.personAdd=new e("person-add",{fontCharacter:"\\ebcd"}),e.filterFilled=new e("filter-filled",{fontCharacter:"\\ebce"}),e.wand=new e("wand",{fontCharacter:"\\ebcf"}),e.debugLineByLine=new e("debug-line-by-line",{fontCharacter:"\\ebd0"}),e.inspect=new e("inspect",{fontCharacter:"\\ebd1"}),e.layers=new e("layers",{fontCharacter:"\\ebd2"}),e.layersDot=new e("layers-dot",{fontCharacter:"\\ebd3"}),e.layersActive=new e("layers-active",{fontCharacter:"\\ebd4"}),e.compass=new e("compass",{fontCharacter:"\\ebd5"}),e.compassDot=new e("compass-dot",{fontCharacter:"\\ebd6"}),e.compassActive=new e("compass-active",{fontCharacter:"\\ebd7"}),e.azure=new e("azure",{fontCharacter:"\\ebd8"}),e.issueDraft=new e("issue-draft",{fontCharacter:"\\ebd9"}),e.gitPullRequestClosed=new e("git-pull-request-closed",{fontCharacter:"\\ebda"}),e.gitPullRequestDraft=new e("git-pull-request-draft",{fontCharacter:"\\ebdb"}),e.debugAll=new e("debug-all",{fontCharacter:"\\ebdc"}),e.debugCoverage=new e("debug-coverage",{fontCharacter:"\\ebdd"}),e.runErrors=new e("run-errors",{fontCharacter:"\\ebde"}),e.folderLibrary=new e("folder-library",{fontCharacter:"\\ebdf"}),e.debugContinueSmall=new e("debug-continue-small",{fontCharacter:"\\ebe0"}),e.beakerStop=new e("beaker-stop",{fontCharacter:"\\ebe1"}),e.graphLine=new e("graph-line",{fontCharacter:"\\ebe2"}),e.graphScatter=new e("graph-scatter",{fontCharacter:"\\ebe3"}),e.pieChart=new e("pie-chart",{fontCharacter:"\\ebe4"}),e.bracket=new e("bracket",e.json.definition),e.bracketDot=new e("bracket-dot",{fontCharacter:"\\ebe5"}),e.bracketError=new e("bracket-error",{fontCharacter:"\\ebe6"}),e.lockSmall=new e("lock-small",{fontCharacter:"\\ebe7"}),e.azureDevops=new e("azure-devops",{fontCharacter:"\\ebe8"}),e.verifiedFilled=new e("verified-filled",{fontCharacter:"\\ebe9"})}(Y||(Y={}))},WaYH:function(ot,we,Q){"use strict";var de=Q("rePB"),K=Q("Ff2n"),O=Q("VTBJ"),G=Q("1OyB"),U=Q("vuIU"),S=Q("JX7q"),Y=Q("Ji7U"),M=Q("LK+K"),e=Q("q1tI"),I=Q("TSYQ"),p=Q.n(I),g=Q("sboe"),c=Q("OZM5"),s=function(T){var v=T.prefixCls,d=T.level,n=T.isStart,l=T.isEnd;if(!d)return null;for(var u="".concat(v,"-indent-unit"),_=[],m=0;m<d;m+=1){var h;_.push(e.createElement("span",{key:m,className:p()(u,(h={},Object(de.a)(h,"".concat(u,"-start"),n[m+1]),Object(de.a)(h,"".concat(u,"-end"),l[m+1]),Object(de.a)(h,"".concat(u,"-end-first-level"),!m&&l[0]),h))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(v,"-indent")},_)},i=s,A=Q("815F"),o="open",a="close",r="---",t=function(E){Object(Y.a)(v,E);var T=Object(M.a)(v);function v(){var d;return Object(G.a)(this,v),d=T.apply(this,arguments),d.state={dragNodeHighlight:!1},d.onSelectorClick=function(n){var l=d.props.context.onNodeClick;l(n,Object(A.b)(d.props)),d.isSelectable()?d.onSelect(n):d.onCheck(n)},d.onSelectorDoubleClick=function(n){var l=d.props.context.onNodeDoubleClick;l(n,Object(A.b)(d.props))},d.onSelect=function(n){if(d.isDisabled())return;var l=d.props.context.onNodeSelect;n.preventDefault(),l(n,Object(A.b)(d.props))},d.onCheck=function(n){if(d.isDisabled())return;var l=d.props,u=l.disableCheckbox,_=l.checked,m=d.props.context.onNodeCheck;if(!d.isCheckable()||u)return;n.preventDefault();var h=!_;m(n,Object(A.b)(d.props),h)},d.onMouseEnter=function(n){var l=d.props.context.onNodeMouseEnter;l(n,Object(A.b)(d.props))},d.onMouseLeave=function(n){var l=d.props.context.onNodeMouseLeave;l(n,Object(A.b)(d.props))},d.onContextMenu=function(n){var l=d.props.context.onNodeContextMenu;l(n,Object(A.b)(d.props))},d.onDragStart=function(n){var l=d.props.context.onNodeDragStart;n.stopPropagation(),d.setState({dragNodeHighlight:!0}),l(n,Object(S.a)(d));try{n.dataTransfer.setData("text/plain","")}catch(u){}},d.onDragEnter=function(n){var l=d.props.context.onNodeDragEnter;n.preventDefault(),n.stopPropagation(),l(n,Object(S.a)(d))},d.onDragOver=function(n){var l=d.props.context.onNodeDragOver;n.preventDefault(),n.stopPropagation(),l(n,Object(S.a)(d))},d.onDragLeave=function(n){var l=d.props.context.onNodeDragLeave;n.stopPropagation(),l(n,Object(S.a)(d))},d.onDragEnd=function(n){var l=d.props.context.onNodeDragEnd;n.stopPropagation(),d.setState({dragNodeHighlight:!1}),l(n,Object(S.a)(d))},d.onDrop=function(n){var l=d.props.context.onNodeDrop;n.preventDefault(),n.stopPropagation(),d.setState({dragNodeHighlight:!1}),l(n,Object(S.a)(d))},d.onExpand=function(n){var l=d.props.context.onNodeExpand;l(n,Object(A.b)(d.props))},d.setSelectHandle=function(n){d.selectHandle=n},d.getNodeState=function(){var n=d.props.expanded;return d.isLeaf()?null:n?o:a},d.hasChildren=function(){var n=d.props.eventKey,l=d.props.context.keyEntities,u=l[n]||{},_=u.children;return!!(_||[]).length},d.isLeaf=function(){var n=d.props,l=n.isLeaf,u=n.loaded,_=d.props.context.loadData,m=d.hasChildren();return l===!1?!1:l||!_&&!m||_&&u&&!m},d.isDisabled=function(){var n=d.props.disabled,l=d.props.context.disabled;return!!(l||n)},d.isCheckable=function(){var n=d.props.checkable,l=d.props.context.checkable;return!l||n===!1?!1:l},d.syncLoadData=function(n){var l=n.expanded,u=n.loading,_=n.loaded,m=d.props.context,h=m.loadData,R=m.onNodeLoad;if(u)return;h&&l&&!d.isLeaf()&&(!d.hasChildren()&&!_&&R(Object(A.b)(d.props)))},d.renderSwitcher=function(){var n=d.props,l=n.expanded,u=n.switcherIcon,_=d.props.context,m=_.prefixCls,h=_.switcherIcon,R=u||h;if(d.isLeaf())return e.createElement("span",{className:p()("".concat(m,"-switcher"),"".concat(m,"-switcher-noop"))},typeof R=="function"?R(Object(O.a)(Object(O.a)({},d.props),{},{isLeaf:!0})):R);var F=p()("".concat(m,"-switcher"),"".concat(m,"-switcher_").concat(l?o:a));return e.createElement("span",{onClick:d.onExpand,className:F},typeof R=="function"?R(Object(O.a)(Object(O.a)({},d.props),{},{isLeaf:!1})):R)},d.renderCheckbox=function(){var n=d.props,l=n.checked,u=n.halfChecked,_=n.disableCheckbox,m=d.props.context.prefixCls,h=d.isDisabled(),R=d.isCheckable();if(!R)return null;var F=typeof R!="boolean"?R:null;return e.createElement("span",{className:p()("".concat(m,"-checkbox"),l&&"".concat(m,"-checkbox-checked"),!l&&u&&"".concat(m,"-checkbox-indeterminate"),(h||_)&&"".concat(m,"-checkbox-disabled")),onClick:d.onCheck},F)},d.renderIcon=function(){var n=d.props.loading,l=d.props.context.prefixCls;return e.createElement("span",{className:p()("".concat(l,"-iconEle"),"".concat(l,"-icon__").concat(d.getNodeState()||"docu"),n&&"".concat(l,"-icon_loading"))})},d.renderSelector=function(){var n=d.state.dragNodeHighlight,l=d.props,u=l.title,_=l.selected,m=l.icon,h=l.loading,R=l.data,F=d.props.context,C=F.prefixCls,P=F.showIcon,j=F.icon,D=F.draggable,$=F.loadData,oe=F.titleRender,Ee=d.isDisabled(),ve="".concat(C,"-node-content-wrapper"),Le;if(P){var Se=m||j;Le=Se?e.createElement("span",{className:p()("".concat(C,"-iconEle"),"".concat(C,"-icon__customize"))},typeof Se=="function"?Se(d.props):Se):d.renderIcon()}else $&&h&&(Le=d.renderIcon());var Re;typeof u=="function"?Re=u(R):oe?Re=oe(R):Re=u;var De=e.createElement("span",{className:"".concat(C,"-title")},Re);return e.createElement("span",{ref:d.setSelectHandle,title:typeof u=="string"?u:"",className:p()("".concat(ve),"".concat(ve,"-").concat(d.getNodeState()||"normal"),!Ee&&(_||n)&&"".concat(C,"-node-selected"),!Ee&&D&&"draggable"),draggable:!Ee&&D||void 0,"aria-grabbed":!Ee&&D||void 0,onMouseEnter:d.onMouseEnter,onMouseLeave:d.onMouseLeave,onContextMenu:d.onContextMenu,onClick:d.onSelectorClick,onDoubleClick:d.onSelectorDoubleClick,onDragStart:D?d.onDragStart:void 0},Le,De)},d}return Object(U.a)(v,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var n=this.props.selectable,l=this.props.context.selectable;return typeof n=="boolean"?n:l}},{key:"render",value:function(){var n,l=this.props,u=l.eventKey,_=l.className,m=l.style,h=l.dragOver,R=l.dragOverGapTop,F=l.dragOverGapBottom,C=l.isLeaf,P=l.isStart,j=l.isEnd,D=l.expanded,$=l.selected,oe=l.checked,Ee=l.halfChecked,ve=l.loading,Le=l.domRef,Se=l.active,Re=l.onMouseMove,De=Object(K.a)(l,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Fe=this.props.context,Ce=Fe.prefixCls,X=Fe.filterTreeNode,L=Fe.draggable,N=Fe.keyEntities,J=this.isDisabled(),ne=Object(c.f)(De),k=N[u]||{},Z=k.level,H=j[j.length-1];return e.createElement("div",Object.assign({ref:Le,className:p()(_,"".concat(Ce,"-treenode"),(n={},Object(de.a)(n,"".concat(Ce,"-treenode-disabled"),J),Object(de.a)(n,"".concat(Ce,"-treenode-switcher-").concat(D?"open":"close"),!C),Object(de.a)(n,"".concat(Ce,"-treenode-checkbox-checked"),oe),Object(de.a)(n,"".concat(Ce,"-treenode-checkbox-indeterminate"),Ee),Object(de.a)(n,"".concat(Ce,"-treenode-selected"),$),Object(de.a)(n,"".concat(Ce,"-treenode-loading"),ve),Object(de.a)(n,"".concat(Ce,"-treenode-active"),Se),Object(de.a)(n,"".concat(Ce,"-treenode-leaf-last"),H),Object(de.a)(n,"drag-over",!J&&h),Object(de.a)(n,"drag-over-gap-top",!J&&R),Object(de.a)(n,"drag-over-gap-bottom",!J&&F),Object(de.a)(n,"filter-node",X&&X(Object(A.b)(this.props))),n)),style:m,onDragEnter:L?this.onDragEnter:void 0,onDragOver:L?this.onDragOver:void 0,onDragLeave:L?this.onDragLeave:void 0,onDrop:L?this.onDrop:void 0,onDragEnd:L?this.onDragEnd:void 0,onMouseMove:Re},ne),e.createElement(i,{prefixCls:Ce,level:Z,isStart:P,isEnd:j}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),v}(e.Component),b=function(T){return e.createElement(g.a.Consumer,null,function(v){return e.createElement(t,Object.assign({},T,{context:v}))})};b.displayName="TreeNode",b.defaultProps={title:r},b.isTreeNode=1;var y=we.a=b},Y1PL:function(ot,we,Q){"use strict";Q.r(we),Q.d(we,"ResizableTextArea",function(){return Ee});var de=Q("wx14"),K=Q("1OyB"),O=Q("vuIU"),G=Q("Ji7U"),U=Q("LK+K"),S=Q("q1tI"),Y=Q("VTBJ"),M=Q("rePB"),e=Q("Zm9Q"),I=Q("Kwbf"),p=Q("c+Xe"),g=Q("m+aA"),c=Q("bdgK"),s=new Map;function i(Se){Se.forEach(function(Re){var De,Fe=Re.target;(De=s.get(Fe))===null||De===void 0||De.forEach(function(Ce){return Ce(Fe)})})}var A=new c.default(i),o=null,a=null;function r(Se,Re){s.has(Se)||(s.set(Se,new Set),A.observe(Se)),s.get(Se).add(Re)}function t(Se,Re){s.has(Se)&&(s.get(Se).delete(Re),s.get(Se).size||(A.unobserve(Se),s.delete(Se)))}var b=function(Se){Object(G.a)(De,Se);var Re=Object(U.a)(De);function De(){return Object(K.a)(this,De),Re.apply(this,arguments)}return Object(O.a)(De,[{key:"render",value:function(){return this.props.children}}]),De}(S.Component),y=S.createContext(null);function E(Se){var Re=Se.children,De=Se.onBatchResize,Fe=S.useRef(0),Ce=S.useRef([]),X=S.useContext(y),L=S.useCallback(function(N,J,ne){Fe.current+=1;var k=Fe.current;Ce.current.push({size:N,element:J,data:ne}),Promise.resolve().then(function(){k===Fe.current&&(De==null||De(Ce.current),Ce.current=[])}),X==null||X(N,J,ne)},[De,X]);return S.createElement(y.Provider,{value:L},Re)}function T(Se){var Re=Se.children,De=Se.disabled,Fe=S.useRef(null),Ce=S.useRef(null),X=S.useContext(y),L=S.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),N=S.isValidElement(Re)&&Object(p.c)(Re),J=N?Re.ref:null,ne=S.useMemo(function(){return Object(p.a)(J,Fe)},[J,Fe]),k=S.useRef(Se);k.current=Se;var Z=S.useCallback(function(H){var W=k.current,z=W.onResize,se=W.data,pe=H.getBoundingClientRect(),ge=pe.width,Ne=pe.height,Me=H.offsetWidth,ke=H.offsetHeight,He=Math.floor(ge),Je=Math.floor(Ne);if(L.current.width!==He||L.current.height!==Je||L.current.offsetWidth!==Me||L.current.offsetHeight!==ke){var rt={width:He,height:Je,offsetWidth:Me,offsetHeight:ke};L.current=rt;var xe=Me===Math.round(ge)?ge:Me,Ue=ke===Math.round(Ne)?Ne:ke,Qe=Object(Y.a)(Object(Y.a)({},rt),{},{offsetWidth:xe,offsetHeight:Ue});X==null||X(Qe,H,se),z&&Promise.resolve().then(function(){z(Qe,H)})}},[]);return S.useEffect(function(){var H=Object(g.a)(Fe.current)||Object(g.a)(Ce.current);return H&&!De&&r(H,Z),function(){return t(H,Z)}},[Fe.current,De]),S.createElement(b,{ref:Ce},N?S.cloneElement(Re,{ref:ne}):Re)}var v="rc-observer-key";function d(Se){var Re=Se.children,De=Object(e.a)(Re);return De.map(function(Fe,Ce){var X=(Fe==null?void 0:Fe.key)||"".concat(v,"-").concat(Ce);return S.createElement(T,Object(de.a)({},Se,{key:X}),Fe)})}d.Collection=E;var n=d,l=Q("bT9E"),u=Q("TSYQ"),_=Q.n(u),m=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important
|
|
`,h=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],R={},F;function C(Se){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De=Se.getAttribute("id")||Se.getAttribute("data-reactid")||Se.getAttribute("name");if(Re&&R[De])return R[De];var Fe=window.getComputedStyle(Se),Ce=Fe.getPropertyValue("box-sizing")||Fe.getPropertyValue("-moz-box-sizing")||Fe.getPropertyValue("-webkit-box-sizing"),X=parseFloat(Fe.getPropertyValue("padding-bottom"))+parseFloat(Fe.getPropertyValue("padding-top")),L=parseFloat(Fe.getPropertyValue("border-bottom-width"))+parseFloat(Fe.getPropertyValue("border-top-width")),N=h.map(function(ne){return"".concat(ne,":").concat(Fe.getPropertyValue(ne))}).join(";"),J={sizingStyle:N,paddingSize:X,borderSize:L,boxSizing:Ce};return Re&&De&&(R[De]=J),J}function P(Se){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;F||(F=document.createElement("textarea"),F.setAttribute("tab-index","-1"),F.setAttribute("aria-hidden","true"),document.body.appendChild(F)),Se.getAttribute("wrap")?F.setAttribute("wrap",Se.getAttribute("wrap")):F.removeAttribute("wrap");var Ce=C(Se,Re),X=Ce.paddingSize,L=Ce.borderSize,N=Ce.boxSizing,J=Ce.sizingStyle;F.setAttribute("style","".concat(J,";").concat(m)),F.value=Se.value||Se.placeholder||"";var ne=Number.MIN_SAFE_INTEGER,k=Number.MAX_SAFE_INTEGER,Z=F.scrollHeight,H;if(N==="border-box"?Z+=L:N==="content-box"&&(Z-=X),De!==null||Fe!==null){F.value=" ";var W=F.scrollHeight-X;De!==null&&(ne=W*De,N==="border-box"&&(ne=ne+X+L),Z=Math.max(ne,Z)),Fe!==null&&(k=W*Fe,N==="border-box"&&(k=k+X+L),H=Z>k?"":"hidden",Z=Math.min(k,Z))}return{height:Z,minHeight:ne,maxHeight:k,overflowY:H,resize:"none"}}var j=Q("Gytx"),D=Q.n(j),$;(function(Se){Se[Se.NONE=0]="NONE",Se[Se.RESIZING=1]="RESIZING",Se[Se.RESIZED=2]="RESIZED"})($||($={}));var oe=function(Se){Object(G.a)(De,Se);var Re=Object(U.a)(De);function De(Fe){var Ce;return Object(K.a)(this,De),Ce=Re.call(this,Fe),Ce.nextFrameActionId=void 0,Ce.resizeFrameId=void 0,Ce.textArea=void 0,Ce.saveTextArea=function(X){Ce.textArea=X},Ce.handleResize=function(X){var L=Ce.state.resizeStatus,N=Ce.props,J=N.autoSize,ne=N.onResize;if(L!==$.NONE)return;typeof ne=="function"&&ne(X),J&&Ce.resizeOnNextFrame()},Ce.resizeOnNextFrame=function(){cancelAnimationFrame(Ce.nextFrameActionId),Ce.nextFrameActionId=requestAnimationFrame(Ce.resizeTextarea)},Ce.resizeTextarea=function(){var X=Ce.props.autoSize;if(!X||!Ce.textArea)return;var L=X.minRows,N=X.maxRows,J=P(Ce.textArea,!1,L,N);Ce.setState({textareaStyles:J,resizeStatus:$.RESIZING},function(){cancelAnimationFrame(Ce.resizeFrameId),Ce.resizeFrameId=requestAnimationFrame(function(){Ce.setState({resizeStatus:$.RESIZED},function(){Ce.resizeFrameId=requestAnimationFrame(function(){Ce.setState({resizeStatus:$.NONE}),Ce.fixFirefoxAutoScroll()})})})})},Ce.renderTextArea=function(){var X=Ce.props,L=X.prefixCls,N=L===void 0?"rc-textarea":L,J=X.autoSize,ne=X.onResize,k=X.className,Z=X.disabled,H=Ce.state,W=H.textareaStyles,z=H.resizeStatus,se=Object(l.a)(Ce.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),pe=_()(N,k,Object(M.a)({},"".concat(N,"-disabled"),Z));"value"in se&&(se.value=se.value||"");var ge=Object(Y.a)(Object(Y.a)(Object(Y.a)({},Ce.props.style),W),z===$.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return S.createElement(n,{onResize:Ce.handleResize,disabled:!(J||ne)},S.createElement("textarea",Object(de.a)({},se,{className:pe,style:ge,ref:Ce.saveTextArea})))},Ce.state={textareaStyles:{},resizeStatus:$.NONE},Ce}return Object(O.a)(De,[{key:"componentDidUpdate",value:function(Ce){(Ce.value!==this.props.value||!D()(Ce.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var Ce=this.textArea.selectionStart,X=this.textArea.selectionEnd;this.textArea.setSelectionRange(Ce,X)}}catch(L){}}},{key:"render",value:function(){return this.renderTextArea()}}]),De}(S.Component),Ee=oe,ve=function(Se){Object(G.a)(De,Se);var Re=Object(U.a)(De);function De(Fe){var Ce;Object(K.a)(this,De),Ce=Re.call(this,Fe),Ce.resizableTextArea=void 0,Ce.focus=function(){Ce.resizableTextArea.textArea.focus()},Ce.saveTextArea=function(L){Ce.resizableTextArea=L},Ce.handleChange=function(L){var N=Ce.props.onChange;Ce.setValue(L.target.value,function(){Ce.resizableTextArea.resizeTextarea()}),N&&N(L)},Ce.handleKeyDown=function(L){var N=Ce.props,J=N.onPressEnter,ne=N.onKeyDown;L.keyCode===13&&J&&J(L),ne&&ne(L)};var X=typeof Fe.value=="undefined"||Fe.value===null?Fe.defaultValue:Fe.value;return Ce.state={value:X},Ce}return Object(O.a)(De,[{key:"setValue",value:function(Ce,X){"value"in this.props||this.setState({value:Ce},X)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return S.createElement(Ee,Object(de.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(Ce){return"value"in Ce?{value:Ce.value}:null}}]),De}(S.Component),Le=we.default=ve},ZW9T:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return j});var de=Q("k1fw"),K=Q("oBTY"),O=Q("miYZ"),G=Q("tsqr"),U=Q("rAM+"),S=Q("tJVT"),Y=Q("PpiC"),M=Q("q1tI"),e=Q.n(M),I=Q("bdgK"),p=Q("9og8"),g=Q("WmNS"),c=Q.n(g),s={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},i={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},A={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
`)}]},o={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
`)}]},a=Q("5VLF"),r=Q.n(a),t={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},b=function($,oe){return oe.map(function(Ee){return{label:Ee,kind:$.languages.CompletionItemKind.Keyword,insertText:Ee}})},y=function($){return Object.keys(t.tables).map(function(oe){return{label:oe,kind:$.languages.CompletionItemKind.Variable,insertText:oe}})},E=function($,oe){var Ee=t.tables[$];return Ee?Ee.map(function(ve){return{label:ve,kind:oe.languages.CompletionItemKind.Field,insertText:ve}}):[]};function T(D,$,oe,Ee,ve){var Le=$.getWordUntilPosition(oe),Se={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:Le.startColumn,endColumn:Le.endColumn},Re=Ee.map(function(De){return{label:De,kind:D.languages.CompletionItemKind.Keyword,insertText:De,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}});return ve.map(function(De){Re.push(Object(de.a)(Object(de.a)({},De),{},{range:Se}))}),Re}var v=function(D){t.languages.map(function(ve){return D.languages.registerDocumentFormattingEditProvider(ve,{provideDocumentFormattingEdits:function(Se,Re,De){return Object(p.a)(c.a.mark(function Fe(){var Ce;return c.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return Ce=r()(Se.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),L.abrupt("return",[{range:Se.getFullModelRange(),text:Ce}]);case 2:case"end":return L.stop()}},Fe)}))()}}),ve});var $=A.quickKey.map(function(ve){return{label:ve.label,kind:D.languages.CompletionItemKind.Method,insertText:ve.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),oe=o.quickKey.map(function(ve){return{label:ve.label,kind:D.languages.CompletionItemKind.Method,insertText:ve.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),Ee=i.quickKey.map(function(ve){return{label:ve.label,kind:D.languages.CompletionItemKind.Method,insertText:ve.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet}});D.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Le,Se){var Re=Le.getWordUntilPosition(Se),De={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Re.startColumn,endColumn:Re.endColumn},Fe=Le.getLineContent(Se.lineNumber).substring(Re.startColumn-2,Re.endColumn);return{suggestions:[].concat(Object(K.a)(A.keywords.map(function(Ce){return{label:Ce,kind:D.languages.CompletionItemKind.Function,documentation:Ce,insertText:Ce,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:De}})),Object(K.a)(A.quickKey.map(function(Ce){return{label:Ce.label,kind:D.languages.CompletionItemKind.Function,documentation:Ce.content,insertText:Fe.startsWith("#")?Ce.content.replace(/#/,""):Ce.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:De}})))}}}),D.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Le,Se){var Re=Le.getWordUntilPosition(Se),De={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Re.startColumn,endColumn:Re.endColumn};return{suggestions:Object(K.a)(s.keywords.map(function(Fe){return{label:Fe,kind:D.languages.CompletionItemKind.Function,documentation:Fe,insertText:Fe,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:De}}))}}}),D.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Le,Se){var Re=Le.getWordUntilPosition(Se),De={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Re.startColumn,endColumn:Re.endColumn},Fe=Le.getLineContent(Se.lineNumber).substring(Re.startColumn-2,Re.endColumn);return{suggestions:[].concat(Object(K.a)(i.keywords.map(function(Ce){return{label:Ce,kind:D.languages.CompletionItemKind.Function,documentation:Ce,insertText:Ce,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:De}})),Object(K.a)(i.quickKey.map(function(Ce){return{label:Ce.label,kind:D.languages.CompletionItemKind.Function,documentation:Ce.content,insertText:Fe.startsWith("#")?Ce.content.replace(/#/,""):Ce.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:De}})))}}}),D.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Le,Se){var Re=Le.getWordUntilPosition(Se),De={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Re.startColumn,endColumn:Re.endColumn},Fe=Le.getLineContent(Se.lineNumber).substring(Re.startColumn-2,Re.endColumn);return{suggestions:[].concat(Object(K.a)(o.keywords.map(function(Ce){return{label:Ce,kind:D.languages.CompletionItemKind.Function,documentation:Ce,insertText:Ce,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:De}})),Object(K.a)(o.quickKey.map(function(Ce){return{label:Ce.label,kind:D.languages.CompletionItemKind.Function,documentation:Ce.content,insertText:Fe.startsWith("#")?Ce.content.replace(/#/,""):Ce.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:De}})))}}})},d="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",n=Q("fjLI"),l=Q("LvDl"),u=Q("+ua5");function _(D){return/^\d+$/.test(D)?"".concat(D,"px"):D}function m(){}var h=!1,R={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function F(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=D;if(Array.isArray(D)){for(var oe=0;oe<D.length;oe++){var Ee=R[D[oe]];if(Ee)return Ee}return $[0]}return R[$]||$}var C=null,P=we.b=function(D){var $=D.width,oe=$===void 0?"100%":$,Ee=D.height,ve=Ee===void 0?"100%":Ee,Le=D.value,Se=D.language,Re=Se===void 0?"javascript":Se,De=D.style,Fe=De===void 0?{}:De,Ce=D.options,X=Ce===void 0?{}:Ce,L=D.overrideServices,N=L===void 0?{}:L,J=D.theme,ne=J===void 0?"vs-dark":J,k=D.onEditBlur,Z=D.onSave,H=D.autoHeight,W=H===void 0?!1:H,z=D.forbidCopy,se=z===void 0?!1:z,pe=D.onChange,ge=pe===void 0?m:pe,Ne=D.editorDidMount,Me=Ne===void 0?m:Ne,ke=D.onFocus,He=ke===void 0?m:ke,Je=D.filename,rt=Je===void 0?"educoder.txt":Je,xe=D.errorLine,Ue=D.errorContent,Qe=Ue===void 0?"":Ue,ze=Object(Y.a)(D,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),Ae=Object(M.useRef)(),q=Object(M.useRef)({}),ee=Object(M.useRef)(),ie=Object(M.useRef)(),le=Object(M.useRef)(!1),te=Object(M.useRef)(),ae=Object(M.useState)(!1),he=Object(S.a)(ae,2),me=he[0],Te=he[1];function Be(){var vt;return Ae.current&&(vt=new I.default(function(At){var Et=Object(U.a)(At),hr;try{for(Et.s();!(hr=Et.n()).done;){var Ir=hr.value;(Ir.target.offsetHeight>0||Ir.target.offsetWidth>0)&&q.current.instance.layout()}}catch(zr){Et.e(zr)}finally{Et.f()}}),vt.observe(Ae.current)),vt}function je(){G.b.warn(decodeURIComponent(d))}var qe=function(){var At=q.current.instance;if(Le!=null&&At&&me){var Et=At.getModel();Et&&Le!==Et.getValue()&&(h=!0,Et.setValue(Le),At.layout(),h=!1)}};Object(M.useEffect)(function(){ie.current&&clearTimeout(ie.current),ie.current=setTimeout(function(){qe()},500)},[Le,me,q.current]),Object(M.useEffect)(function(){if(xe&&q.current&&q.current.instance){var vt=q.current.instance;vt.changeViewZones(function(Et){var hr=document.createElement("div");hr.style.padding="10px 20px",hr.style.width="calc(100% - 20px)",hr.className="my-error-line-wrp",hr.innerHTML=Qe,Et.addZone({afterLineNumber:xe||11,heightInLines:3,domNode:hr})});var At={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};vt.addOverlayWidget(At),vt.revealPositionInCenter({lineNumber:20,column:1})}},[xe,q.current,me]);function at(){var vt=q.current.instance;if(vt){var At=vt.getSelection(),Et=q.current.pastePos||{},hr=new C.Range(Et.startLineNumber||At.endLineNumber,Et.startColumn||At.endColumn,Et.endLineNumber||At.endLineNumber,Et.endColumn||At.endColumn);setTimeout(function(){vt.executeEdits("",[{range:hr,text:""}])},300)}}function et(vt){(window.navigator.platform.match("Mac")?vt.metaKey:vt.ctrlKey)&&vt.keyCode==83&&(vt.preventDefault(),Z())}var _t=function(){if(W&&q.current.instance){var At=q.current.instance.getContentHeight();wt(At<ve?ve:At)}else wt(ve)};function ut(vt){var At=document.createEvent("MouseEvents");At.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),vt.dispatchEvent(At)}function $e(vt,At){var Et=window.URL||window.webkitURL||window,hr=new Blob([At]),Ir=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ir.href=Et.createObjectURL(hr),Ir.download=vt,ut(Ir)}Object(M.useEffect)(function(){_t()},[_t]),Object(M.useEffect)(function(){Ae.current&&!me&&Promise.all([Q.e(18),Q.e(29)]).then(Q.t.bind(null,"M/lh",7)).then(function(vt){try{C=vt,q.current.instance=C.editor.create(Ae.current,{value:Le,language:F(Re),theme:ne,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},N);var At=q.current.instance,Et=n.d._menuItems,hr=Object(K.a)(Et).find(function(It){return It[0]._debugName=="EditorContext"}),Ir=hr[1],zr=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],nr=function(Ct,yr){var Nt=Ct._first;do{var Rr,er,ue=yr.includes((Rr=Nt.element)===null||Rr===void 0||((er=Rr.command)===null||er===void 0)?void 0:er.id);ue&&Ct._remove(Nt)}while(Nt=Nt.next)};if(Me(At,C),setTimeout(function(){_t(),q.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){$e(rt||"educoder.txt",At.getValue())}}),At.getDomNode().addEventListener("input",function(){ee.current.autoFormat&&At.getAction("editor.action.formatDocument").run()})},500),q.current.subscription=At.onDidChangeModelContent(function(It){le.current?clearTimeout(te.current):(_t(),ge(At.getValue(),It)),te.current=setTimeout(function(){le.current=!1},500)}),window.Monaco||v(C,F(Re)),se&&(nr(Ir,zr),Ae.current.classList.add("noCopyPaste"),At.onKeyDown(function(It){var Ct=It.keyCode,yr=It.ctrlKey,Nt=It.metaKey;(Ct===33||Ct===52)&&(Nt||yr)&&(je(),It.preventDefault())})),window.Monaco=C,k&&At.onDidBlurEditorWidget(function(){k(At.getValue())}),He&&At.onDidFocusEditorText(function(){He(At.getValue())}),se){At.addCommand(C.KeyMod.CtrlCmd|C.KeyCode.KEY_V,function(){return je(),null}),At.onDidPaste(function(It){q.current.pastePos=It});try{window.addEventListener("paste",at)}catch(It){}}var Qt=Be();return Te(!0),function(){var It=q.current.instance;It.dispose();var Ct=It.getModel();Ct&&Ct.dispose(),q.current.subscription&&q.current.subscription.dispose(),se&&window.removeEventListener("paste",at),Qt.unobserve(Ae.current)}}catch(It){}})},[]),Object(M.useEffect)(function(){var vt=q.current.instance;if(vt&&me)return document.addEventListener("keydown",et,!1),function(){document.removeEventListener("keydown",et)}},[Z,me]),Object(M.useEffect)(function(){var vt=q.current.instance;if(vt&&me){var At=F(Re);C.editor.setModelLanguage(vt.getModel(),At),console.log("language:",Re,vt.getModel(),At)}},[Re,me]),Object(M.useEffect)(function(){var vt=q.current.instance;vt&&me&&C.editor.setTheme(ne)},[ne,me]),Object(M.useEffect)(function(){var vt=q.current.instance;ee.current=X,vt&&me&&(vt.updateOptions(Object(de.a)({},X)),setTimeout(function(){vt.getModel().updateOptions(Object(de.a)({},X))},200))},[JSON.stringify(X),me]),Object(M.useEffect)(function(){var vt=q.current.instance;vt&&me&&vt.layout()},[oe,ve,me]);var kt=Object(M.useState)(_(oe)),Ut=Object(S.a)(kt,2),yt=Ut[0],Wt=Ut[1],St=Object(M.useState)(_(ve)),$t=Object(S.a)(St,2),Ft=$t[0],wt=$t[1],sr=Object(de.a)(Object(de.a)({},Fe),{},{width:yt,height:Ft});return e.a.createElement("div",{className:"my-monaco-editor",ref:Ae,style:sr})};function j(D){var $=D.width,oe=$===void 0?"100%":$,Ee=D.height,ve=Ee===void 0?"100%":Ee,Le=D.original,Se=D.modified,Re=D.language,De=D.options,Fe=De===void 0?{}:De,Ce=Object(M.useRef)(),X=Object(M.useState)(null),L=Object(S.a)(X,2),N=L[0],J=L[1];function ne(W){var z;return Ce.current&&(z=new I.default(function(se){var pe=Object(U.a)(se),ge;try{for(pe.s();!(ge=pe.n()).done;){var Ne=ge.value;(Ne.target.offsetHeight>0||Ne.target.offsetWidth>0)&&W.layout()}}catch(Me){pe.e(Me)}finally{pe.f()}}),z.observe(Ce.current)),z}Object(M.useEffect)(function(){Ce.current&&Promise.all([Q.e(18),Q.e(29)]).then(Q.t.bind(null,"M/lh",7)).then(function(W){C=W;var z=C.editor.createDiffEditor(Ce.current,Object(de.a)(Object(de.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Fe),{},{wordWrap:!0}));J(z);var se=ne(z);return function(){z.dispose();var pe=z.getModel();pe&&pe.dispose(),se.unobserve(Ce.current)}})},[]),Object(M.useEffect)(function(){N&&N.setModel({original:C.editor.createModel(Le,Re),modified:C.editor.createModel(Se,Re)})},[Le,Se,Re,N]);var k=_(oe),Z=_(ve),H={width:k,height:Z};return e.a.createElement("div",{className:"my-diff-editor",ref:Ce,style:H})}},bT9E:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return K});var de=Q("VTBJ");function K(O,G){var U=Object(de.a)({},O);return Array.isArray(G)&&G.forEach(function(S){delete U[S]}),U}},biw7:function(ot,we,Q){"use strict";var de=Q("q1tI"),K=Q.n(de),O=de.createContext(null);we.a=O},crp1:function(ot,we,Q){"use strict";Q.d(we,"b",function(){return yt}),Q.d(we,"a",function(){return Ft});var de={},K=function(ue,ce,ye,Ie,We){var Xe=de[ce]||(de[ce]=URL.createObjectURL(new Blob([ue],{type:"text/javascript"}))),Ze=new Worker(Xe);return Ze.onerror=function(tt){return We(tt.error,null)},Ze.onmessage=function(tt){return We(null,tt.data)},Ze.postMessage(ye,Ie),Ze},O=Uint8Array,G=Uint16Array,U=Uint32Array,S=new O([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Y=new O([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),M=new O([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e=function(ue,ce){for(var ye=new G(31),Ie=0;Ie<31;++Ie)ye[Ie]=ce+=1<<ue[Ie-1];for(var We=new U(ye[30]),Ie=1;Ie<30;++Ie)for(var Xe=ye[Ie];Xe<ye[Ie+1];++Xe)We[Xe]=Xe-ye[Ie]<<5|Ie;return[ye,We]},I=e(S,2),p=I[0],g=I[1];p[28]=258,g[258]=28;for(var c=e(Y,0),s=c[0],i=c[1],A=new G(32768),o=0;o<32768;++o){var a=(o&43690)>>>1|(o&21845)<<1;a=(a&52428)>>>2|(a&13107)<<2,a=(a&61680)>>>4|(a&3855)<<4,A[o]=((a&65280)>>>8|(a&255)<<8)>>>1}for(var r=function(ue,ce,ye){for(var Ie=ue.length,We=0,Xe=new G(ce);We<Ie;++We)++Xe[ue[We]-1];var Ze=new G(ce);for(We=0;We<ce;++We)Ze[We]=Ze[We-1]+Xe[We-1]<<1;var tt;if(ye){tt=new G(1<<ce);var Ye=15-ce;for(We=0;We<Ie;++We)if(ue[We])for(var nt=We<<4|ue[We],it=ce-ue[We],gt=Ze[ue[We]-1]++<<it,Ot=gt|(1<<it)-1;gt<=Ot;++gt)tt[A[gt]>>>Ye]=nt}else for(tt=new G(Ie),We=0;We<Ie;++We)tt[We]=A[Ze[ue[We]-1]++]>>>15-ue[We];return tt},t=new O(288),o=0;o<144;++o)t[o]=8;for(var o=144;o<256;++o)t[o]=9;for(var o=256;o<280;++o)t[o]=7;for(var o=280;o<288;++o)t[o]=8;for(var b=new O(32),o=0;o<32;++o)b[o]=5;var y=r(t,9,0),E=r(t,9,1),T=r(b,5,0),v=r(b,5,1),d=function(ue){for(var ce=ue[0],ye=1;ye<ue.length;++ye)ue[ye]>ce&&(ce=ue[ye]);return ce},n=function(ue,ce,ye){var Ie=ce/8>>0;return(ue[Ie]|ue[Ie+1]<<8)>>>(ce&7)&ye},l=function(ue,ce){var ye=ce/8>>0;return(ue[ye]|ue[ye+1]<<8|ue[ye+2]<<16)>>>(ce&7)},u=function(ue){return(ue/8>>0)+(ue&7&&1)},_=function(ue,ce,ye){(ce==null||ce<0)&&(ce=0),(ye==null||ye>ue.length)&&(ye=ue.length);var Ie=new(ue instanceof G?G:ue instanceof U?U:O)(ye-ce);return Ie.set(ue.subarray(ce,ye)),Ie},m=function(ue,ce,ye){var Ie=ue.length,We=!ce||ye,Xe=!ye||ye.i;ye||(ye={}),ce||(ce=new O(Ie*3));var Ze=function(cn){var tn=ce.length;if(cn>tn){var Xr=new O(Math.max(tn*2,cn));Xr.set(ce),ce=Xr}},tt=ye.f||0,Ye=ye.p||0,nt=ye.b||0,it=ye.l,gt=ye.d,Ot=ye.m,Rt=ye.n,Ke=Ie*8;do{if(!it){ye.f=tt=n(ue,Ye,1);var Gt=n(ue,Ye+1,3);if(Ye+=3,Gt)if(Gt==1)it=E,gt=v,Ot=9,Rt=5;else if(Gt==2){var Pt=n(ue,Ye,31)+257,Lt=n(ue,Ye+10,15)+4,or=Pt+n(ue,Ye+5,31)+1;Ye+=14;for(var Zt=new O(or),ir=new O(19),Tt=0;Tt<Lt;++Tt)ir[M[Tt]]=n(ue,Ye+Tt*3,7);Ye+=Lt*3;var Er=d(ir),Vt=(1<<Er)-1;if(!Xe&&Ye+or*(Er+7)>Ke)break;for(var Or=r(ir,Er,1),Tt=0;Tt<or;){var mr=Or[n(ue,Ye,Vt)];Ye+=mr&15;var Jt=mr>>>4;if(Jt<16)Zt[Tt++]=Jt;else{var Lr=0,Br=0;for(Jt==16?(Br=3+n(ue,Ye,3),Ye+=2,Lr=Zt[Tt-1]):Jt==17?(Br=3+n(ue,Ye,7),Ye+=3):Jt==18&&(Br=11+n(ue,Ye,127),Ye+=7);Br--;)Zt[Tt++]=Lr}}var Cr=Zt.subarray(0,Pt),br=Zt.subarray(Pt);Ot=d(Cr),Rt=d(br),it=r(Cr,Ot,1),gt=r(br,Rt,1)}else throw"invalid block type";else{var Jt=u(Ye)+4,dr=ue[Jt-4]|ue[Jt-3]<<8,Bt=Jt+dr;if(Bt>Ie){if(Xe)throw"unexpected EOF";break}We&&Ze(nt+dr),ce.set(ue.subarray(Jt,Bt),nt),ye.b=nt+=dr,ye.p=Ye=Bt*8;continue}if(Ye>Ke)throw"unexpected EOF"}We&&Ze(nt+131072);for(var _r=(1<<Ot)-1,Nr=(1<<Rt)-1,Kr=Ot+Rt+18;Xe||Ye+Kr<Ke;){var Lr=it[l(ue,Ye)&_r],kr=Lr>>>4;if(Ye+=Lr&15,Ye>Ke)throw"unexpected EOF";if(!Lr)throw"invalid length/literal";if(kr<256)ce[nt++]=kr;else if(kr==256){it=null;break}else{var Ur=kr-254;if(kr>264){var Tt=kr-257,Ar=S[Tt];Ur=n(ue,Ye,(1<<Ar)-1)+p[Tt],Ye+=Ar}var gr=gt[l(ue,Ye)&Nr],fr=gr>>>4;if(!gr)throw"invalid distance";Ye+=gr&15;var br=s[fr];if(fr>3){var Ar=Y[fr];br+=l(ue,Ye)&(1<<Ar)-1,Ye+=Ar}if(Ye>Ke)throw"unexpected EOF";We&&Ze(nt+131072);for(var vr=nt+Ur;nt<vr;nt+=4)ce[nt]=ce[nt-br],ce[nt+1]=ce[nt+1-br],ce[nt+2]=ce[nt+2-br],ce[nt+3]=ce[nt+3-br];nt=vr}}ye.l=it,ye.p=Ye,ye.b=nt,it&&(tt=1,ye.m=Ot,ye.d=gt,ye.n=Rt)}while(!tt);return nt==ce.length?ce:_(ce,0,nt)},h=function(ue,ce,ye){ye<<=ce&7;var Ie=ce/8>>0;ue[Ie]|=ye,ue[Ie+1]|=ye>>>8},R=function(ue,ce,ye){ye<<=ce&7;var Ie=ce/8>>0;ue[Ie]|=ye,ue[Ie+1]|=ye>>>8,ue[Ie+2]|=ye>>>16},F=function(ue,ce){for(var ye=[],Ie=0;Ie<ue.length;++Ie)ue[Ie]&&ye.push({s:Ie,f:ue[Ie]});var We=ye.length,Xe=ye.slice();if(!We)return[new O(0),0];if(We==1){var Ze=new O(ye[0].s+1);return Ze[ye[0].s]=1,[Ze,1]}ye.sort(function(or,Zt){return or.f-Zt.f}),ye.push({s:-1,f:25001});var tt=ye[0],Ye=ye[1],nt=0,it=1,gt=2;for(ye[0]={s:-1,f:tt.f+Ye.f,l:tt,r:Ye};it!=We-1;)tt=ye[ye[nt].f<ye[gt].f?nt++:gt++],Ye=ye[nt!=it&&ye[nt].f<ye[gt].f?nt++:gt++],ye[it++]={s:-1,f:tt.f+Ye.f,l:tt,r:Ye};for(var Ot=Xe[0].s,Ie=1;Ie<We;++Ie)Xe[Ie].s>Ot&&(Ot=Xe[Ie].s);var Rt=new G(Ot+1),Ke=C(ye[it-1],Rt,0);if(Ke>ce){var Ie=0,Gt=0,Jt=Ke-ce,dr=1<<Jt;for(Xe.sort(function(Zt,ir){return Rt[ir.s]-Rt[Zt.s]||Zt.f-ir.f});Ie<We;++Ie){var Bt=Xe[Ie].s;if(Rt[Bt]>ce)Gt+=dr-(1<<Ke-Rt[Bt]),Rt[Bt]=ce;else break}for(Gt>>>=Jt;Gt>0;){var Pt=Xe[Ie].s;Rt[Pt]<ce?Gt-=1<<ce-Rt[Pt]++-1:++Ie}for(;Ie>=0&≫--Ie){var Lt=Xe[Ie].s;Rt[Lt]==ce&&(--Rt[Lt],++Gt)}Ke=ce}return[new O(Rt),Ke]},C=function(ue,ce,ye){return ue.s==-1?Math.max(C(ue.l,ce,ye+1),C(ue.r,ce,ye+1)):ce[ue.s]=ye},P=function(ue){for(var ce=ue.length;ce&&!ue[--ce];);for(var ye=new G(++ce),Ie=0,We=ue[0],Xe=1,Ze=function(Ye){ye[Ie++]=Ye},tt=1;tt<=ce;++tt)if(ue[tt]==We&&tt!=ce)++Xe;else{if(!We&&Xe>2){for(;Xe>138;Xe-=138)Ze(32754);Xe>2&&(Ze(Xe>10?Xe-11<<5|28690:Xe-3<<5|12305),Xe=0)}else if(Xe>3){for(Ze(We),--Xe;Xe>6;Xe-=6)Ze(8304);Xe>2&&(Ze(Xe-3<<5|8208),Xe=0)}for(;Xe--;)Ze(We);Xe=1,We=ue[tt]}return[ye.subarray(0,Ie),ce]},j=function(ue,ce){for(var ye=0,Ie=0;Ie<ce.length;++Ie)ye+=ue[Ie]*ce[Ie];return ye},D=function(ue,ce,ye){var Ie=ye.length,We=u(ce+2);ue[We]=Ie&255,ue[We+1]=Ie>>>8,ue[We+2]=ue[We]^255,ue[We+3]=ue[We+1]^255;for(var Xe=0;Xe<Ie;++Xe)ue[We+Xe+4]=ye[Xe];return(We+4+Ie)*8},$=function(ue,ce,ye,Ie,We,Xe,Ze,tt,Ye,nt,it){h(ce,it++,ye),++We[256];for(var gt=F(We,15),Ot=gt[0],Rt=gt[1],Ke=F(Xe,15),Gt=Ke[0],Jt=Ke[1],dr=P(Ot),Bt=dr[0],Pt=dr[1],Lt=P(Gt),or=Lt[0],Zt=Lt[1],ir=new G(19),Tt=0;Tt<Bt.length;++Tt)ir[Bt[Tt]&31]++;for(var Tt=0;Tt<or.length;++Tt)ir[or[Tt]&31]++;for(var Er=F(ir,7),Vt=Er[0],Or=Er[1],mr=19;mr>4&&!Vt[M[mr-1]];--mr);var Lr=nt+5<<3,Br=j(We,t)+j(Xe,b)+Ze,Cr=j(We,Ot)+j(Xe,Gt)+Ze+14+3*mr+j(ir,Vt)+(2*ir[16]+3*ir[17]+7*ir[18]);if(Lr<=Br&&Lr<=Cr)return D(ce,it,ue.subarray(Ye,Ye+nt));var br,_r,Nr,Kr;if(h(ce,it,1+(Cr<Br)),it+=2,Cr<Br){br=r(Ot,Rt,0),_r=Ot,Nr=r(Gt,Jt,0),Kr=Gt;var kr=r(Vt,Or,0);h(ce,it,Pt-257),h(ce,it+5,Zt-1),h(ce,it+10,mr-4),it+=14;for(var Tt=0;Tt<mr;++Tt)h(ce,it+3*Tt,Vt[M[Tt]]);it+=3*mr;for(var Ur=[Bt,or],Ar=0;Ar<2;++Ar)for(var gr=Ur[Ar],Tt=0;Tt<gr.length;++Tt){var fr=gr[Tt]&31;h(ce,it,kr[fr]),it+=Vt[fr],fr>15&&(h(ce,it,gr[Tt]>>>5&127),it+=gr[Tt]>>>12)}}else br=y,_r=t,Nr=T,Kr=b;for(var Tt=0;Tt<tt;++Tt)if(Ie[Tt]>255){var fr=Ie[Tt]>>>18&31;R(ce,it,br[fr+257]),it+=_r[fr+257],fr>7&&(h(ce,it,Ie[Tt]>>>23&31),it+=S[fr]);var vr=Ie[Tt]&31;R(ce,it,Nr[vr]),it+=Kr[vr],vr>3&&(R(ce,it,Ie[Tt]>>>5&8191),it+=Y[vr])}else R(ce,it,br[Ie[Tt]]),it+=_r[Ie[Tt]];return R(ce,it,br[256]),it+_r[256]},oe=new U([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ee=new O(0),ve=function(ue,ce,ye,Ie,We,Xe){var Ze=ue.length,tt=new O(Ie+Ze+5*(1+Math.floor(Ze/7e3))+We),Ye=tt.subarray(Ie,tt.length-We),nt=0;if(!ce||Ze<8)for(var it=0;it<=Ze;it+=65535){var gt=it+65535;gt<Ze?nt=D(Ye,nt,ue.subarray(it,gt)):(Ye[it]=Xe,nt=D(Ye,nt,ue.subarray(it,Ze)))}else{for(var Ot=oe[ce-1],Rt=Ot>>>13,Ke=Ot&8191,Gt=(1<<ye)-1,Jt=new G(32768),dr=new G(Gt+1),Bt=Math.ceil(ye/3),Pt=2*Bt,Lt=function(bt){return(ue[bt]^ue[bt+1]<<Bt^ue[bt+2]<<Pt)&Gt},or=new U(25e3),Zt=new G(288),ir=new G(32),Tt=0,Er=0,it=0,Vt=0,Or=0,mr=0;it<Ze;++it){var Lr=Lt(it),Br=it&32767,Cr=dr[Lr];if(Jt[Br]=Cr,dr[Lr]=Br,Or<=it){var br=Ze-it;if((Tt>7e3||Vt>24576)&&br>423){nt=$(ue,Ye,0,or,Zt,ir,Er,Vt,mr,it-mr,nt),Vt=Tt=Er=0,mr=it;for(var _r=0;_r<286;++_r)Zt[_r]=0;for(var _r=0;_r<30;++_r)ir[_r]=0}var Nr=2,Kr=0,kr=Ke,Ur=Br-Cr&32767;if(br>2&&Lr==Lt(it-Ur))for(var Ar=Math.min(Rt,br)-1,gr=Math.min(32767,it),fr=Math.min(258,br);Ur<=gr&&--kr&&Br!=Cr;){if(ue[it+Nr]==ue[it+Nr-Ur]){for(var vr=0;vr<fr&&ue[it+vr]==ue[it+vr-Ur];++vr);if(vr>Nr){if(Nr=vr,Kr=Ur,vr>Ar)break;for(var cn=Math.min(Ur,vr-2),tn=0,_r=0;_r<cn;++_r){var Xr=it-Ur+_r+32768&32767,Vn=Jt[Xr],tr=Xr-Vn+32768&32767;tr>tn&&(tn=tr,Cr=Xr)}}}Br=Cr,Cr=Jt[Br],Ur+=Br-Cr+32768&32767}if(Kr){or[Vt++]=268435456|g[Nr]<<18|i[Kr];var Ht=g[Nr]&31,xt=i[Kr]&31;Er+=S[Ht]+Y[xt],++Zt[257+Ht],++ir[xt],Or=it+Nr,++Tt}else or[Vt++]=ue[it],++Zt[ue[it]]}}nt=$(ue,Ye,Xe,or,Zt,ir,Er,Vt,mr,it-mr,nt),Xe||(nt=D(Ye,nt,Ee))}return _(tt,0,Ie+u(nt)+We)},Le=function(){for(var ue=new U(256),ce=0;ce<256;++ce){for(var ye=ce,Ie=9;--Ie;)ye=(ye&1&&3988292384)^ye>>>1;ue[ce]=ye}return ue}(),Se=function(){var ue=4294967295;return{p:function(ce){for(var ye=ue,Ie=0;Ie<ce.length;++Ie)ye=Le[ye&255^ce[Ie]]^ye>>>8;ue=ye},d:function(){return ue^4294967295}}},Re=function(){var ue=1,ce=0;return{p:function(ye){for(var Ie=ue,We=ce,Xe=ye.length,Ze=0;Ze!=Xe;){for(var tt=Math.min(Ze+5552,Xe);Ze<tt;++Ze)Ie+=ye[Ze],We+=Ie;Ie%=65521,We%=65521}ue=Ie,ce=We},d:function(){return(ue>>>8<<16|(ce&255)<<8|ce>>>8)+((ue&255)<<23)*2}}},De=function(ue,ce,ye,Ie,We){return ve(ue,ce.level==null?6:ce.level,ce.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(ue.length)))*1.5):12+ce.mem,ye,Ie,!We)},Fe=function(ue,ce){var ye={};for(var Ie in ue)ye[Ie]=ue[Ie];for(var Ie in ce)ye[Ie]=ce[Ie];return ye},Ce=function(ue,ce,ye){for(var Ie=ue(),We=ue.toString(),Xe=We.slice(We.indexOf("[")+1,We.lastIndexOf("]")).replace(/ /g,"").split(","),Ze=0;Ze<Ie.length;++Ze){var tt=Ie[Ze],Ye=Xe[Ze];if(typeof tt=="function"){ce+=";"+Ye+"=";var nt=tt.toString();if(tt.prototype)if(nt.indexOf("[native code]")!=-1){var it=nt.indexOf(" ",8)+1;ce+=nt.slice(it,nt.indexOf("(",it))}else{ce+=nt;for(var gt in tt.prototype)ce+=";"+Ye+".prototype."+gt+"="+tt.prototype[gt].toString()}else ce+=nt}else ye[Ye]=tt}return[ce,ye]},X=[],L=function(ue){var ce=[];for(var ye in ue)(ue[ye]instanceof O||ue[ye]instanceof G||ue[ye]instanceof U)&&ce.push((ue[ye]=new ue[ye].constructor(ue[ye])).buffer);return ce},N=function(ue,ce,ye,Ie){var We;if(!X[ye]){for(var Xe="",Ze={},tt=ue.length-1,Ye=0;Ye<tt;++Ye)We=Ce(ue[Ye],Xe,Ze),Xe=We[0],Ze=We[1];X[ye]=Ce(ue[tt],Xe,Ze)}var nt=Fe({},X[ye][1]);return K(X[ye][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+ce.toString()+"}",ye,nt,L(nt),Ie)},J=function(){return[O,G,U,S,Y,M,p,s,E,v,A,r,d,n,l,u,_,m,me,z,se]},ne=function(){return[O,G,U,S,Y,M,g,i,y,t,T,b,A,oe,Ee,r,h,R,F,C,P,j,D,$,u,_,ve,De,le,z]},k=function(){return[Je,Ue,He,Se,Le]},Z=function(){return[rt,xe]},H=function(){return[Qe,He,Re]},W=function(){return[ze]},z=function(ue){return postMessage(ue,[ue.buffer])},se=function(ue){return ue&&ue.size&&new O(ue.size)},pe=function(ue,ce,ye,Ie,We,Xe){var Ze=N(ye,Ie,We,function(tt,Ye){Ze.terminate(),Xe(tt,Ye)});return ce.consume||(ue=new O(ue)),Ze.postMessage([ue,ce],[ue.buffer]),function(){Ze.terminate()}},ge=function(ue){return ue.ondata=function(ce,ye){return postMessage([ce,ye],[ce.buffer])},function(ce){return ue.push(ce.data[0],ce.data[1])}},Ne=function(ue,ce,ye,Ie,We){var Xe,Ze=N(ue,Ie,We,function(tt,Ye){tt?(Ze.terminate(),ce.ondata.call(ce,tt)):(Ye[1]&&Ze.terminate(),ce.ondata.call(ce,tt,Ye[0],Ye[1]))});Ze.postMessage(ye),ce.push=function(tt,Ye){if(Xe)throw"stream finished";if(!ce.ondata)throw"no stream handler";Ze.postMessage([tt,Xe=Ye],[tt.buffer])},ce.terminate=function(){Ze.terminate()}},Me=function(ue,ce){return ue[ce]|ue[ce+1]<<8},ke=function(ue,ce){return(ue[ce]|ue[ce+1]<<8|ue[ce+2]<<16)+(ue[ce+3]<<23)*2},He=function(ue,ce,ye){for(;ye;++ce)ue[ce]=ye,ye>>>=8},Je=function(ue,ce){var ye=ce.filename;if(ue[0]=31,ue[1]=139,ue[2]=8,ue[8]=ce.level<2?4:ce.level==9?2:0,ue[9]=3,ce.mtime!=0&&He(ue,4,Math.floor(new Date(ce.mtime||Date.now())/1e3)),ye){ue[3]=8;for(var Ie=0;Ie<=ye.length;++Ie)ue[Ie+10]=ye.charCodeAt(Ie)}},rt=function(ue){if(ue[0]!=31||ue[1]!=139||ue[2]!=8)throw"invalid gzip data";var ce=ue[3],ye=10;ce&4&&(ye+=ue[10]|(ue[11]<<8)+2);for(var Ie=(ce>>3&1)+(ce>>4&1);Ie>0;Ie-=!ue[ye++]);return ye+(ce&2)},xe=function(ue){var ce=ue.length;return(ue[ce-4]|ue[ce-3]<<8|ue[ce-2]<<16)+2*(ue[ce-1]<<23)},Ue=function(ue){return 10+(ue.filename&&ue.filename.length+1||0)},Qe=function(ue,ce){var ye=ce.level,Ie=ye==0?0:ye<6?1:ye==9?3:2;ue[0]=120,ue[1]=Ie<<6|(Ie?32-2*Ie:1)},ze=function(ue){if((ue[0]&15)!=8||ue[0]>>>4>7||(ue[0]<<8|ue[1])%31)throw"invalid zlib data";if(ue[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Ae(ue,ce){return!ce&&typeof ue=="function"&&(ce=ue,ue={}),this.ondata=ce,ue}var q=function(){function ue(ce,ye){!ye&&typeof ce=="function"&&(ye=ce,ce={}),this.ondata=ye,this.o=ce||{}}return ue.prototype.p=function(ce,ye){this.ondata(De(ce,this.o,0,0,!ye),ye)},ue.prototype.push=function(ce,ye){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=ye,this.p(ce,ye||!1)},ue}(),ee=function(){function ue(ce,ye){Ne([ne,function(){return[ge,q]}],this,Ae.call(this,ce,ye),function(Ie){var We=new q(Ie.data);onmessage=ge(We)},6)}return ue}();function ie(ue,ce,ye){if(ye||(ye=ce,ce={}),typeof ye!="function")throw"no callback";return pe(ue,ce,[ne],function(Ie){return z(le(Ie.data[0],Ie.data[1]))},0,ye)}function le(ue,ce){return ce===void 0&&(ce={}),De(ue,ce,0,0)}var te=function(){function ue(ce){this.s={},this.p=new O(0),this.ondata=ce}return ue.prototype.e=function(ce){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var ye=this.p.length,Ie=new O(ye+ce.length);Ie.set(this.p),Ie.set(ce,ye),this.p=Ie},ue.prototype.c=function(ce){this.d=this.s.i=ce||!1;var ye=this.s.b,Ie=m(this.p,this.o,this.s);this.ondata(_(Ie,ye,this.s.b),this.d),this.o=_(Ie,this.s.b-32768),this.s.b=this.o.length,this.p=_(this.p,this.s.p/8>>0),this.s.p&=7},ue.prototype.push=function(ce,ye){this.e(ce),this.c(ye)},ue}(),ae=function(){function ue(ce){this.ondata=ce,Ne([J,function(){return[ge,te]}],this,0,function(){var ye=new te;onmessage=ge(ye)},7)}return ue}();function he(ue,ce,ye){if(ye||(ye=ce,ce={}),typeof ye!="function")throw"no callback";return pe(ue,ce,[J],function(Ie){return z(me(Ie.data[0],se(Ie.data[1])))},1,ye)}function me(ue,ce){return m(ue,ce)}var Te=function(){function ue(ce,ye){this.c=Se(),this.l=0,this.v=1,q.call(this,ce,ye)}return ue.prototype.push=function(ce,ye){q.prototype.push.call(this,ce,ye)},ue.prototype.p=function(ce,ye){this.c.p(ce),this.l+=ce.length;var Ie=De(ce,this.o,this.v&&Ue(this.o),ye&&8,!ye);this.v&&(Je(Ie,this.o),this.v=0),ye&&(He(Ie,Ie.length-8,this.c.d()),He(Ie,Ie.length-4,this.l)),this.ondata(Ie,ye)},ue}(),Be=function(){function ue(ce,ye){Ne([ne,k,function(){return[ge,q,Te]}],this,Ae.call(this,ce,ye),function(Ie){var We=new Te(Ie.data);onmessage=ge(We)},8)}return ue}();function je(ue,ce,ye){if(ye||(ye=ce,ce={}),typeof ye!="function")throw"no callback";return pe(ue,ce,[ne,k,function(){return[qe]}],function(Ie){return z(qe(Ie.data[0],Ie.data[1]))},2,ye)}function qe(ue,ce){ce===void 0&&(ce={});var ye=Se(),Ie=ue.length;ye.p(ue);var We=De(ue,ce,Ue(ce),8),Xe=We.length;return Je(We,ce),He(We,Xe-8,ye.d()),He(We,Xe-4,Ie),We}var at=function(){function ue(ce){this.v=1,te.call(this,ce)}return ue.prototype.push=function(ce,ye){if(te.prototype.e.call(this,ce),this.v){var Ie=rt(this.p);if(Ie>=this.p.length&&!ye)return;this.p=this.p.subarray(Ie),this.v=0}if(ye){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}te.prototype.c.call(this,ye)},ue}(),et=function(){function ue(ce){this.ondata=ce,Ne([J,Z,function(){return[ge,te,at]}],this,0,function(){var ye=new at;onmessage=ge(ye)},9)}return ue}();function _t(ue,ce,ye){if(ye||(ye=ce,ce={}),typeof ye!="function")throw"no callback";return pe(ue,ce,[J,Z,function(){return[ut]}],function(Ie){return z(ut(Ie.data[0]))},3,ye)}function ut(ue,ce){return m(ue.subarray(rt(ue),-8),ce||new O(xe(ue)))}var $e=function(){function ue(ce,ye){this.c=Re(),this.v=1,q.call(this,ce,ye)}return ue.prototype.push=function(ce,ye){q.prototype.push.call(this,ce,ye)},ue.prototype.p=function(ce,ye){this.c.p(ce);var Ie=De(ce,this.o,this.v&&2,ye&&4,!ye);this.v&&(Qe(Ie,this.o),this.v=0),ye&&He(Ie,Ie.length-4,this.c.d()),this.ondata(Ie,ye)},ue}(),kt=function(){function ue(ce,ye){Ne([ne,H,function(){return[ge,q,$e]}],this,Ae.call(this,ce,ye),function(Ie){var We=new $e(Ie.data);onmessage=ge(We)},10)}return ue}();function Ut(ue,ce,ye){if(ye||(ye=ce,ce={}),typeof ye!="function")throw"no callback";return pe(ue,ce,[ne,H,function(){return[yt]}],function(Ie){return z(yt(Ie.data[0],Ie.data[1]))},4,ye)}function yt(ue,ce){ce===void 0&&(ce={});var ye=Re();ye.p(ue);var Ie=De(ue,ce,2,4);return Qe(Ie,ce),He(Ie,Ie.length-4,ye.d()),Ie}var Wt=function(){function ue(ce){this.v=1,te.call(this,ce)}return ue.prototype.push=function(ce,ye){if(te.prototype.e.call(this,ce),this.v){if(this.p.length<2&&!ye)return;this.p=this.p.subarray(2),this.v=0}if(ye){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}te.prototype.c.call(this,ye)},ue}(),St=function(){function ue(ce){this.ondata=ce,Ne([J,W,function(){return[ge,te,Wt]}],this,0,function(){var ye=new Wt;onmessage=ge(ye)},11)}return ue}();function $t(ue,ce,ye){if(ye||(ye=ce,ce={}),typeof ye!="function")throw"no callback";return pe(ue,ce,[J,W,function(){return[Ft]}],function(Ie){return z(Ft(Ie.data[0],se(Ie.data[1])))},5,ye)}function Ft(ue,ce){return m((ze(ue),ue.subarray(2,-4)),ce)}var wt=function(){function ue(ce){this.G=at,this.I=te,this.Z=Wt,this.ondata=ce}return ue.prototype.push=function(ce,ye){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(ce,ye);else{if(this.p&&this.p.length){var Ie=new O(this.p.length+ce.length);Ie.set(this.p),Ie.set(ce,this.p.length)}else this.p=ce;if(this.p.length>2){var We=this,Xe=function(){We.ondata.apply(We,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(Xe):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(Xe):new this.Z(Xe),this.s.push(this.p,ye),this.p=null}}},ue}(),sr=function(){function ue(ce){this.G=et,this.I=ae,this.Z=St,this.ondata=ce}return ue.prototype.push=function(ce,ye){wt.prototype.push.call(this,ce,ye)},ue}();function vt(ue,ce,ye){if(ye||(ye=ce,ce={}),typeof ye!="function")throw"no callback";return ue[0]==31&&ue[1]==139&&ue[2]==8?_t(ue,ce,ye):(ue[0]&15)!=8||ue[0]>>4>7||(ue[0]<<8|ue[1])%31?he(ue,ce,ye):$t(ue,ce,ye)}function At(ue,ce){return ue[0]==31&&ue[1]==139&&ue[2]==8?ut(ue,ce):(ue[0]&15)!=8||ue[0]>>4>7||(ue[0]<<8|ue[1])%31?me(ue,ce):Ft(ue,ce)}var Et=function(ue,ce,ye,Ie){for(var We in ue){var Xe=ue[We],Ze=ce+We;Xe instanceof O?ye[Ze]=[Xe,Ie]:Array.isArray(Xe)?ye[Ze]=[Xe[0],Fe(Ie,Xe[1])]:Et(Xe,Ze+"/",ye,Ie)}};function hr(ue,ce){var ye=ue.length;if(!ce&&typeof TextEncoder!="undefined")return new TextEncoder().encode(ue);for(var Ie=new O(ue.length+(ue.length>>>1)),We=0,Xe=function(nt){Ie[We++]=nt},Ze=0;Ze<ye;++Ze){if(We+5>Ie.length){var tt=new O(We+8+(ye-Ze<<1));tt.set(Ie),Ie=tt}var Ye=ue.charCodeAt(Ze);Ye<128||ce?Xe(Ye):Ye<2048?(Xe(192|Ye>>>6),Xe(128|Ye&63)):Ye>55295&&Ye<57344?(Ye=65536+(Ye&1023<<10)|ue.charCodeAt(++Ze)&1023,Xe(240|Ye>>>18),Xe(128|Ye>>>12&63),Xe(128|Ye>>>6&63),Xe(128|Ye&63)):(Xe(224|Ye>>>12),Xe(128|Ye>>>6&63),Xe(128|Ye&63))}return _(Ie,0,We)}function Ir(ue,ce){var ye="";if(!ce&&typeof TextDecoder!="undefined")return new TextDecoder().decode(ue);for(var Ie=0;Ie<ue.length;){var We=ue[Ie++];We<128||ce?ye+=String.fromCharCode(We):We<224?ye+=String.fromCharCode((We&31)<<6|ue[Ie++]&63):We<240?ye+=String.fromCharCode((We&15)<<12|(ue[Ie++]&63)<<6|ue[Ie++]&63):(We=((We&15)<<18|(ue[Ie++]&63)<<12|(ue[Ie++]&63)<<6|ue[Ie++]&63)-65536,ye+=String.fromCharCode(55296|We>>10,56320|We&1023))}return ye}var zr=function(ue,ce){return ce+30+Me(ue,ce+26)+Me(ue,ce+28)},nr=function(ue,ce,ye){var Ie=Me(ue,ce+28),We=Ir(ue.subarray(ce+46,ce+46+Ie),!(Me(ue,ce+8)&2048)),Xe=ce+46+Ie,Ze=ye?Qt(ue,Xe):[ke(ue,ce+20),ke(ue,ce+24),ke(ue,ce+42)],tt=Ze[0],Ye=Ze[1],nt=Ze[2];return[Me(ue,ce+10),tt,Ye,We,Xe+Me(ue,ce+30)+Me(ue,ce+32),nt]},Qt=function(ue,ce){for(;Me(ue,ce)!=1;ce+=4+Me(ue,ce+2));return[ke(ue,ce+12),ke(ue,ce+4),ke(ue,ce+20)]},It=function(ue,ce,ye,Ie,We,Xe,Ze,tt,Ye,nt){var it=Xe.length,gt=Ie.length;He(ue,ce,Ye!=null?33639248:67324752),ce+=4,Ye!=null&&(ue[ce]=20,ce+=2),ue[ce]=20,ce+=2,ue[ce++]=nt==8&&(tt.level==1?6:tt.level<6?4:tt.level==9?2:0),ue[ce++]=Ze&&8,ue[ce]=nt,ce+=2;var Ot=new Date(tt.mtime||Date.now()),Rt=Ot.getFullYear()-1980;if(Rt<0||Rt>119)throw"date not in range 1980-2099";He(ue,ce,(Rt<<24)*2|Ot.getMonth()+1<<21|Ot.getDate()<<16|Ot.getHours()<<11|Ot.getMinutes()<<5|Ot.getSeconds()>>>1),ce+=4,He(ue,ce,ye),He(ue,ce+4,gt),He(ue,ce+8,We),He(ue,ce+12,it),ce+=16,Ye!=null&&(He(ue,ce+=10,Ye),ce+=4),ue.set(Xe,ce),ce+=it,Ye==null&&ue.set(Ie,ce)},Ct=function(ue,ce,ye,Ie,We){He(ue,ce,101010256),He(ue,ce+8,ye),He(ue,ce+10,ye),He(ue,ce+12,Ie),He(ue,ce+16,We)};function yr(ue,ce,ye){if(ye||(ye=ce,ce={}),typeof ye!="function")throw"no callback";var Ie={};Et(ue,"",Ie,ce);var We=Object.keys(Ie),Xe=We.length,Ze=0,tt=0,Ye=Xe,nt=new Array(Xe),it=[],gt=function(){for(var Gt=0;Gt<it.length;++Gt)it[Gt]()},Ot=function(){var Gt=new O(tt+22),Jt=Ze,dr=tt-Ze;tt=0;for(var Bt=0;Bt<Ye;++Bt){var Pt=nt[Bt];try{It(Gt,tt,Pt.c,Pt.d,Pt.m,Pt.n,Pt.u,Pt.p,null,Pt.t),It(Gt,Ze,Pt.c,Pt.d,Pt.m,Pt.n,Pt.u,Pt.p,tt,Pt.t),Ze+=46+Pt.n.length,tt+=30+Pt.n.length+Pt.d.length}catch(Lt){return ye(Lt,null)}}Ct(Gt,Ze,nt.length,dr,Jt),ye(null,Gt)};Xe||Ot();for(var Rt=function(Gt){var Jt=We[Gt],dr=Ie[Jt],Bt=dr[0],Pt=dr[1],Lt=Se(),or=Bt.length;Lt.p(Bt);var Zt=hr(Jt),ir=Zt.length,Tt=Pt.level==0?0:8,Er=function(Vt,Or){if(Vt)gt(),ye(Vt,null);else{var mr=Or.length;nt[Gt]={t:Tt,d:Or,m:or,c:Lt.d(),u:Jt.length!=mr,n:Zt,p:Pt},Ze+=30+ir+mr,tt+=76+2*ir+mr,--Xe||Ot()}};if(Zt.length>65535&&Er("filename too long",null),!Tt)Er(null,Bt);else if(or<16e4)try{Er(null,le(Bt,Pt))}catch(Vt){Er(Vt,null)}else it.push(ie(Bt,Pt,Er))},Ke=0;Ke<Ye;++Ke)Rt(Ke);return gt}function Nt(ue,ce){ce===void 0&&(ce={});var ye={},Ie=[];Et(ue,"",ye,ce);var We=0,Xe=0;for(var Ze in ye){var tt=ye[Ze],Ye=tt[0],nt=tt[1],it=nt.level==0?0:8,gt=hr(Ze),Ot=gt.length;if(gt.length>65535)throw"filename too long";var Rt=it?le(Ye,nt):Ye,Ke=Rt.length,Gt=Se();Gt.p(Ye),Ie.push({t:it,d:Rt,m:Ye.length,c:Gt.d(),u:Ze.length!=Ot,n:gt,o:We,p:nt}),We+=30+Ot+Ke,Xe+=76+2*Ot+Ke}for(var Jt=new O(Xe+22),dr=We,Bt=Xe-We,Pt=0;Pt<Ie.length;++Pt){var Lt=Ie[Pt];It(Jt,Lt.o,Lt.c,Lt.d,Lt.m,Lt.n,Lt.u,Lt.p,null,Lt.t),It(Jt,We,Lt.c,Lt.d,Lt.m,Lt.n,Lt.u,Lt.p,Lt.o,Lt.t),We+=46+Lt.n.length}return Ct(Jt,We,Ie.length,Bt,dr),Jt}function Rr(ue,ce){if(typeof ce!="function")throw"no callback";for(var ye=[],Ie=function(){for(var Ot=0;Ot<ye.length;++Ot)ye[Ot]()},We={},Xe=ue.length-22;ke(ue,Xe)!=101010256;--Xe)if(!Xe||ue.length-Xe>65558){ce("invalid zip file",null);return}var Ze=Me(ue,Xe+8);Ze||ce(null,{});var tt=Ze,Ye=ke(ue,Xe+16),nt=Ye==4294967295;if(nt){if(Xe=ke(ue,Xe-12),ke(ue,Xe)!=101075792)throw"invalid zip file";tt=Ze=ke(ue,Xe+32),Ye=ke(ue,Xe+48)}for(var it=function(Ot){var Rt=nr(ue,Ye,nt),Ke=Rt[0],Gt=Rt[1],Jt=Rt[2],dr=Rt[3],Bt=Rt[4],Pt=Rt[5],Lt=zr(ue,Pt);Ye=Bt;var or=function(ir,Tt){ir?(Ie(),ce(ir,null)):(We[dr]=Tt,--Ze||ce(null,We))};if(!Ke)or(null,_(ue,Lt,Lt+Gt));else if(Ke==8){var Zt=ue.subarray(Lt,Lt+Gt);if(Gt<32e4)try{or(null,me(Zt,new O(Jt)))}catch(ir){or(ir,null)}else ye.push(he(Zt,{size:Jt},or))}else or("unknown compression type "+Ke,null)},gt=0;gt<tt;++gt)it(gt);return Ie}function er(ue){for(var ce={},ye=ue.length-22;ke(ue,ye)!=101010256;--ye)if(!ye||ue.length-ye>65558)throw"invalid zip file";var Ie=Me(ue,ye+8);if(!Ie)return{};var We=ke(ue,ye+16),Xe=We==4294967295;if(Xe){if(ye=ke(ue,ye-12),ke(ue,ye)!=101075792)throw"invalid zip file";Ie=ke(ue,ye+32),We=ke(ue,ye+48)}for(var Ze=0;Ze<Ie;++Ze){var tt=nr(ue,We,Xe),Ye=tt[0],nt=tt[1],it=tt[2],gt=tt[3],Ot=tt[4],Rt=tt[5],Ke=zr(ue,Rt);if(We=Ot,!Ye)ce[gt]=_(ue,Ke,Ke+nt);else if(Ye==8)ce[gt]=me(ue.subarray(Ke,Ke+nt),new O(it));else throw"unknown compression type "+Ye}return ce}},deN7:function(ot,we,Q){"use strict";var de=Q("/zsF"),K=Q("PArb"),O=Q("14J3"),G=Q("BMrR"),U=Q("jCWc"),S=Q("kPKH"),Y=Q("+L6B"),M=Q("2/Rp"),e=Q("miYZ"),I=Q("tsqr"),p=Q("9og8"),g=Q("giR+"),c=Q("fyUT"),s=Q("2qtc"),i=Q("kLXV"),A=Q("7Kak"),o=Q("9yH6"),a=Q("tJVT"),r=Q("k1fw"),t=Q("OaEy"),b=Q("2fM7"),y=Q("WmNS"),E=Q.n(y),T=Q("q1tI"),v=Q.n(T),d=Q("ZW9T"),n=Q("F0VM"),l=Q.n(n),u=Q("xKgJ"),_=Q("J66h"),m=Q.n(_),h=Q("ErOA"),R=Q("Ty5D"),F=Q("9Bee"),C=Q("XYT7"),P=Q("RCxd"),j=Q("/MfK"),D=b.a.Option,$={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1},oe;(function(ve){ve[ve.SET_PATH=0]="SET_PATH",ve[ve.GET_PASSED_CONTENT=1]="GET_PASSED_CONTENT"})(oe||(oe={}));function Ee(ve,Le){switch(Le.type){case oe.SET_PATH:return Object(r.a)(Object(r.a)({},ve),{},{selectedPath:Le.payload});case oe.GET_PASSED_CONTENT:return Object(r.a)(Object(r.a)({},ve),{},{passedContent:Le.payload});default:throw new Error}}we.a=function(ve){var Le=ve.language,Se=ve.dispatch,Re=ve.shixunWorkReport,De=ve.v,Fe=ve.languages,Ce=ve.onPathChange,X=ve.autoHeight,L=ve.diff_code_count,N=ve.data,J=Object(T.useState)(Fe==null?void 0:Fe[0]),ne=Object(a.a)(J,2),k=ne[0],Z=ne[1],H=Re!="shixunWorkReport"&&Object(R.i)();return Object(T.useEffect)(function(){Z(Fe==null?void 0:Fe[0])},[]),Object(T.useEffect)(function(){var W;Z(Fe==null||((W=Fe.filter(function(z){return z.language===(k==null?void 0:k.language)}))===null||W===void 0)?void 0:W[0])},[Fe]),v.a.createElement(v.a.Fragment,null,v.a.createElement("h2",null," ",v.a.createElement("span",null,v.a.createElement("span",null,"\u6700\u540E\u901A\u5173\u7684\u4EE3\u7801"),(Fe==null?void 0:Fe.length)>1&&v.a.createElement(o.a.Group,{defaultValue:Le,style:{marginLeft:10},onChange:function(z){var se;Z(Fe==null||((se=Fe.filter(function(pe){return pe.language===z.target.value}))===null||se===void 0)?void 0:se[0])}},Fe==null?void 0:Fe.map(function(W){return v.a.createElement(o.a,{value:W==null?void 0:W.language},W==null?void 0:W.language)}))),Object(u.c)()&&Re!="shixunWorkReport"&&v.a.createElement("span",null,v.a.createElement("span",null,"\u5F97\u5206 ",k==null?void 0:k.score,"/",k==null?void 0:k.total_score),v.a.createElement(M.a,{style:{margin:"0px 10px"},onClick:function(){var z=k==null?void 0:k.score;i.a.confirm({title:"\u8C03\u5206",content:v.a.createElement("div",null,v.a.createElement("p",null,"\u5F97\u5206\uFF1A",k==null?void 0:k.score,"/",k==null?void 0:k.total_score),v.a.createElement("p",null,"\u8C03\u5206\uFF1A",v.a.createElement(c.a,{min:0,max:k==null?void 0:k.total_score,defaultValue:k==null?void 0:k.score,onChange:function(pe){z=pe}}))),okText:"\u786E\u8BA4",onOk:function(){var se=Object(p.a)(E.a.mark(function ge(){var Ne;return E.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.next=2,Object(h.a)("/api/courses/".concat(H==null?void 0:H.coursesId,"/homework_commons/update_hack_score"),{method:"put",body:{course_id:H==null?void 0:H.coursesId,hack_user_code_id:k==null?void 0:k.hack_user_id,score:z}});case 2:Ne=ke.sent,Ne.status===0&&(I.b.success("\u8C03\u5206\u6210\u529F"),Se({type:"shixunHomeworks/setActionTabs",payload:{}}),Se({type:"shixunHomeworks/getShixunWorkReports",payload:Object(r.a)({},H)}));case 4:case"end":return ke.stop()}},ge)}));function pe(){return se.apply(this,arguments)}return pe}(),cancelText:"\u53D6\u6D88"})},type:"primary"},"\u8C03\u5206"),Object(u.c)()&&Re!="shixunWorkReport"&&v.a.createElement(M.a,{onClick:function(){Se({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Re.user_id,type:"1",language:k==null?void 0:k.language,v:De,data:Object(r.a)({},Re)}}})}},"\u70B9\u8BC4\u4EE3\u7801"))),v.a.createElement(d.b,{height:300,language:k==null?void 0:k.language,value:_.Base64.decode(k==null?void 0:k.code),autoHeight:X,theme:"default",options:$}),((k==null?void 0:k.comment)||(k==null?void 0:k.hidden_comment))&&v.a.createElement("div",null,v.a.createElement(G.a,{align:"middle",style:{borderTop:"1px solid #eee"}},v.a.createElement(S.a,{flex:1},v.a.createElement("h1",{className:l.a.title},"\u70B9\u8BC4\u5185\u5BB9")),v.a.createElement(S.a,{className:"pr30"},Object(u.c)()&&v.a.createElement(M.a,{onClick:Object(p.a)(E.a.mark(function W(){return E.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:i.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:v.a.createElement(P.a,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk:function(){return Object(p.a)(E.a.mark(function ge(){var Ne;return E.a.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.next=2,Object(C.m)({comment_id:k==null?void 0:k.comment_id,homeworkId:H.homeworkId,type:"hack"});case 2:Ne=ke.sent,Ne.status===0&&(I.b.success("\u5220\u9664\u6210\u529F"),Se({type:"shixunHomeworks/getShixunWorkReports",payload:Object(r.a)({},H)}));case 4:case"end":return ke.stop()}},ge)}))()}});case 1:case"end":return se.stop()}},W)}))},v.a.createElement(j.a,null),"\u5220\u9664"))),v.a.createElement(K.a,{style:{margin:0}}),(k==null?void 0:k.comment)&&v.a.createElement("aside",{className:"pl30 pr30 mt20"},v.a.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),v.a.createElement("br",null),v.a.createElement(F.a,{value:k==null?void 0:k.comment})),(k==null?void 0:k.hidden_comment)&&v.a.createElement("aside",{className:"pl30 pr30 mt20"},v.a.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),v.a.createElement("br",null),v.a.createElement(F.a,{value:k==null?void 0:k.hidden_comment}))))}},dmUQ:function(ot,we,Q){"use strict";var de=Q("Ff2n"),K=Q("rePB"),O=Q("1OyB"),G=Q("vuIU"),U=Q("Ji7U"),S=Q("md7G"),Y=Q("foSv"),M=Q("q1tI"),e=Q.n(M),I=Q("TSYQ"),p=Q.n(I),g=Q("4IlW");function c(l,u){var _=Object.keys(l);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(l);u&&(m=m.filter(function(h){return Object.getOwnPropertyDescriptor(l,h).enumerable})),_.push.apply(_,m)}return _}function s(l){for(var u=1;u<arguments.length;u++){var _=arguments[u]!=null?arguments[u]:{};u%2?c(Object(_),!0).forEach(function(m){Object(K.a)(l,m,_[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(_)):c(Object(_)).forEach(function(m){Object.defineProperty(l,m,Object.getOwnPropertyDescriptor(_,m))})}return l}function i(l){var u=A();return function(){var m=Object(Y.a)(l),h;if(u){var R=Object(Y.a)(this).constructor;h=Reflect.construct(m,arguments,R)}else h=m.apply(this,arguments);return Object(S.a)(this,h)}}function A(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(l){return!1}}function o(){}function a(l){l.preventDefault()}var r=function(u){return u.replace(/[^\w.-]+/g,"")},t=200,b=600,y=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,E=function(u){return u!=null},T=function(u,_){return _===u||typeof _=="number"&&typeof u=="number"&&isNaN(_)&&isNaN(u)},v=function(l){Object(U.a)(_,l);var u=i(_);function _(m){var h;Object(O.a)(this,_),h=u.call(this,m),h.onKeyDown=function(C){var P=h.props,j=P.onKeyDown,D=P.onPressEnter;if(C.keyCode===g.a.UP){var $=h.getRatio(C);h.up(C,$,null),h.stop()}else if(C.keyCode===g.a.DOWN){var oe=h.getRatio(C);h.down(C,oe,null),h.stop()}else C.keyCode===g.a.ENTER&&D&&D(C);if(h.recordCursorPosition(),h.lastKeyCode=C.keyCode,j){for(var Ee=arguments.length,ve=new Array(Ee>1?Ee-1:0),Le=1;Le<Ee;Le++)ve[Le-1]=arguments[Le];j.apply(void 0,[C].concat(ve))}},h.onKeyUp=function(C){var P=h.props.onKeyUp;if(h.stop(),h.recordCursorPosition(),P){for(var j=arguments.length,D=new Array(j>1?j-1:0),$=1;$<j;$++)D[$-1]=arguments[$];P.apply(void 0,[C].concat(D))}},h.onChange=function(C){var P=h.props.onChange;h.state.focused&&(h.inputting=!0),h.rawInput=h.props.parser(h.getValueFromEvent(C)),h.setState({inputValue:h.rawInput}),P(h.toNumber(h.rawInput))},h.onMouseUp=function(){var C=h.props.onMouseUp;h.recordCursorPosition(),C&&C.apply(void 0,arguments)},h.onFocus=function(){var C;h.setState({focused:!0}),(C=h.props).onFocus.apply(C,arguments)},h.onBlur=function(){var C=h.props.onBlur;h.inputting=!1,h.setState({focused:!1});var P=h.getCurrentValidValue(h.state.inputValue),j=h.setValue(P,o);if(C){var D=h.input.value,$=h.getInputDisplayValue({focus:!1,value:j});h.input.value=$&&Number($),C.apply(void 0,arguments),h.input.value=D}},h.getRatio=function(C){var P=1;return C.metaKey||C.ctrlKey?P=.1:C.shiftKey&&(P=10),P},h.getFullNum=function(C){return isNaN(C)?C:/e/i.test(String(C))?Number(C).toFixed(18).replace(/\.?0+$/,""):C},h.getPrecision=function(C){if(E(h.props.precision))return h.props.precision;var P=String(C);if(P.indexOf("e-")>=0)return parseInt(P.slice(P.indexOf("e-")+2),10);var j=0;return P.indexOf(".")>=0&&(j=P.length-P.indexOf(".")-1),j},h.getInputDisplayValue=function(C){var P=C||h.state,j=P.focused,D=P.inputValue,$=P.value,oe;j?oe=D:oe=h.toPrecisionAsStep($),oe==null&&(oe="");var Ee=h.formatWrapper(oe);return E(h.props.decimalSeparator)&&(Ee=Ee.toString().replace(".",h.props.decimalSeparator)),Ee},h.recordCursorPosition=function(){try{h.cursorStart=h.input.selectionStart,h.cursorEnd=h.input.selectionEnd,h.currentValue=h.input.value,h.cursorBefore=h.input.value.substring(0,h.cursorStart),h.cursorAfter=h.input.value.substring(h.cursorEnd)}catch(C){}},h.restoreByAfter=function(C){if(C===void 0)return!1;var P=h.input.value,j=P.lastIndexOf(C);if(j===-1)return!1;var D=h.cursorBefore.length;return h.lastKeyCode===g.a.DELETE&&h.cursorBefore.charAt(D-1)===C[0]?(h.fixCaret(D,D),!0):j+C.length===P.length?(h.fixCaret(j,j),!0):!1},h.partRestoreByAfter=function(C){return C===void 0?!1:Array.prototype.some.call(C,function(P,j){var D=C.substring(j);return h.restoreByAfter(D)})},h.isNotCompleteNumber=function(C){return isNaN(C)||C===""||C===null||C&&C.toString().indexOf(".")===C.toString().length-1},h.stop=function(){h.autoStepTimer&&clearTimeout(h.autoStepTimer)},h.down=function(C,P,j){h.pressingUpOrDown=!0,h.step("down",C,P,j)},h.up=function(C,P,j){h.pressingUpOrDown=!0,h.step("up",C,P,j)},h.saveInput=function(C){h.input=C};var R=m.value;R===void 0&&(R=m.defaultValue),h.state={focused:m.autoFocus};var F=h.getValidValue(h.toNumber(R));return h.state=s(s({},h.state),{},{inputValue:h.toPrecisionAsStep(F),value:F}),h}return Object(G.a)(_,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(h){var R=this.props,F=R.value,C=R.onChange,P=R.max,j=R.min,D=this.state.focused;if(h){if(!T(h.value,F)||!T(h.max,P)||!T(h.min,j)){var $=D?F:this.getValidValue(F),oe;this.pressingUpOrDown?oe=$:this.inputting?oe=this.rawInput:oe=this.toPrecisionAsStep($),this.setState({value:$,inputValue:oe})}var Ee="value"in this.props?F:this.state.value;"max"in this.props&&h.max!==P&&typeof Ee=="number"&&Ee>P&&C&&C(P),"min"in this.props&&h.min!==j&&typeof Ee=="number"&&Ee<j&&C&&C(j)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var ve=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===g.a.BACKSPACE?ve=this.cursorStart-1:this.lastKeyCode===g.a.DELETE&&(ve=this.cursorStart):ve=this.input.value.length,this.fixCaret(ve,ve)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case g.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case g.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(Le){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(h){var R=h;return R===""?R="":this.isNotCompleteNumber(parseFloat(R))?R=this.state.value:R=this.getValidValue(R),this.toNumber(R)}},{key:"getValueFromEvent",value:function(h){var R=h.target.value.trim().replace(/。/g,".");return E(this.props.decimalSeparator)&&(R=R.replace(this.props.decimalSeparator,".")),R}},{key:"getValidValue",value:function(h){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,C=parseFloat(h);return isNaN(C)?h:(C<R&&(C=R),C>F&&(C=F),C)}},{key:"setValue",value:function(h,R){var F=this.props.precision,C=this.isNotCompleteNumber(parseFloat(h))?null:parseFloat(h),P=this.state.value,j=P===void 0?null:P,D=this.state.inputValue,$=D===void 0?null:D,oe=typeof C=="number"?C.toFixed(F):"".concat(C),Ee=C!==j||oe!=="".concat($);return"value"in this.props?($=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:$},R)):this.setState({value:C,inputValue:this.toPrecisionAsStep(h)},R),Ee&&this.props.onChange(C),C}},{key:"getMaxPrecision",value:function(h){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.props,C=F.precision,P=F.step;if(E(C))return C;var j=this.getPrecision(R),D=this.getPrecision(P),$=this.getPrecision(h);return h?Math.max($,j+D):j+D}},{key:"getPrecisionFactor",value:function(h){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=this.getMaxPrecision(h,R);return Math.pow(10,F)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(h){return this.props.formatter?this.props.formatter(h):h}},{key:"toPrecisionAsStep",value:function(h){if(this.isNotCompleteNumber(h)||h==="")return h;var R=Math.abs(this.getMaxPrecision(h));return isNaN(R)?h.toString():Number(h).toFixed(R)}},{key:"toNumber",value:function(h){var R=this.props.precision,F=this.state.focused,C=h&&h.length>16&&F;return this.isNotCompleteNumber(h)||C?h:E(R)?Math.round(h*Math.pow(10,R))/Math.pow(10,R):Number(h)}},{key:"upStep",value:function(h,R){var F=this.props.step,C=this.getPrecisionFactor(h,R),P=Math.abs(this.getMaxPrecision(h,R)),j=((C*h+C*F*R)/C).toFixed(P);return this.toNumber(j)}},{key:"downStep",value:function(h,R){var F=this.props.step,C=this.getPrecisionFactor(h,R),P=Math.abs(this.getMaxPrecision(h,R)),j=((C*h-C*F*R)/C).toFixed(P);return this.toNumber(j)}},{key:"step",value:function(h,R){var F=this,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,P=arguments.length>3?arguments[3]:void 0;this.stop(),R&&(R.persist(),R.preventDefault());var j=this.props;if(j.disabled)return;var D=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(D))return;var $=this["".concat(h,"Step")](D,C),oe=$>j.max||$<j.min;if($>j.max?$=j.max:$<j.min&&($=j.min),this.setValue($,null),this.setState({focused:!0},function(){F.pressingUpOrDown=!1}),oe)return;this.autoStepTimer=setTimeout(function(){F[h](R,C,!0)},P?t:b)}},{key:"fixCaret",value:function(h,R){if(h===void 0||R===void 0||!this.input||!this.input.value)return;try{var F=this.input.selectionStart,C=this.input.selectionEnd;(h!==F||R!==C)&&this.input.setSelectionRange(h,R)}catch(P){}}},{key:"render",value:function(){var h,R=this.props,F=R.prefixCls,C=R.disabled,P=R.readOnly,j=R.useTouch,D=R.autoComplete,$=R.upHandler,oe=R.downHandler,Ee=R.className,ve=R.max,Le=R.min,Se=R.style,Re=R.title,De=R.onMouseEnter,Fe=R.onMouseLeave,Ce=R.onMouseOver,X=R.onMouseOut,L=R.required,N=R.onClick,J=R.tabIndex,ne=R.type,k=R.placeholder,Z=R.id,H=R.inputMode,W=R.pattern,z=R.step,se=R.maxLength,pe=R.autoFocus,ge=R.name,Ne=R.onPaste,Me=R.onInput,ke=Object(de.a)(R,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),He=this.state,Je=He.value,rt=He.focused,xe=p()(F,(h={},Object(K.a)(h,Ee,!!Ee),Object(K.a)(h,"".concat(F,"-disabled"),C),Object(K.a)(h,"".concat(F,"-focused"),rt),h)),Ue={};Object.keys(ke).forEach(function(me){(me.substr(0,5)==="data-"||me.substr(0,5)==="aria-"||me==="role")&&(Ue[me]=ke[me])});var Qe=!P&&!C,ze=this.getInputDisplayValue(null),Ae=(Je||Je===0)&&(isNaN(Je)||Number(Je)>=ve),q=(Je||Je===0)&&(isNaN(Je)||Number(Je)<=Le),ee=Ae||C||P,ie=q||C||P,le=p()("".concat(F,"-handler"),"".concat(F,"-handler-up"),Object(K.a)({},"".concat(F,"-handler-up-disabled"),ee)),te=p()("".concat(F,"-handler"),"".concat(F,"-handler-down"),Object(K.a)({},"".concat(F,"-handler-down-disabled"),ie)),ae=j?{onTouchStart:ee?o:this.up,onTouchEnd:this.stop}:{onMouseDown:ee?o:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},he=j?{onTouchStart:ie?o:this.down,onTouchEnd:this.stop}:{onMouseDown:ie?o:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:xe,style:Se,title:Re,onMouseEnter:De,onMouseLeave:Fe,onMouseOver:Ce,onMouseOut:X,onFocus:function(){return null},onBlur:function(){return null}},e.a.createElement("div",{className:"".concat(F,"-handler-wrap")},e.a.createElement("span",Object.assign({unselectable:"on"},ae,{role:"button","aria-label":"Increase Value","aria-disabled":ee,className:le}),$||e.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-up-inner"),onClick:a})),e.a.createElement("span",Object.assign({unselectable:"on"},he,{role:"button","aria-label":"Decrease Value","aria-disabled":ie,className:te}),oe||e.a.createElement("span",{unselectable:"on",className:"".concat(F,"-handler-down-inner"),onClick:a}))),e.a.createElement("div",{className:"".concat(F,"-input-wrap")},e.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Le,"aria-valuemax":ve,"aria-valuenow":Je,required:L,type:ne,placeholder:k,onPaste:Ne,onClick:N,onMouseUp:this.onMouseUp,className:"".concat(F,"-input"),tabIndex:J,autoComplete:D,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Qe?this.onKeyDown:o,onKeyUp:Qe?this.onKeyUp:o,autoFocus:pe,maxLength:se,readOnly:P,disabled:C,max:ve,min:Le,step:z,name:ge,title:Re,id:Z,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(ze),pattern:W,inputMode:H,onInput:Me},Ue))))}}]),_}(e.a.Component);v.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:y,min:-y,step:1,style:{},onChange:o,onKeyDown:o,onPressEnter:o,onFocus:o,onBlur:o,parser:r,required:!1,autoComplete:"off"};var d=v,n=we.a=d},fjLI:function(ot,we,Q){"use strict";Q.d(we,"f",function(){return c}),Q.d(we,"b",function(){return s}),Q.d(we,"a",function(){return i}),Q.d(we,"d",function(){return A}),Q.d(we,"e",function(){return o}),Q.d(we,"c",function(){return a});var de=Q("8HAY"),K=Q("Vhoy"),O=Q("MI8n"),G=Q("JYp7"),U=Q("pmY6"),S=Q("24hK"),Y=Q("nnTU"),M=Q("T8No"),e=Q("Cg/j"),I=Q("t9D7"),p=function(r,t,b,y){var E=arguments.length,T=E<3?t:y===null?y=Object.getOwnPropertyDescriptor(t,b):y,v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(r,t,b,y);else for(var d=r.length-1;d>=0;d--)(v=r[d])&&(T=(E<3?v(T):E>3?v(t,b,T):v(t,b))||T);return E>3&&T&&Object.defineProperty(t,b,T),T},g=function(r,t){return function(b,y){t(b,y,r)}};function c(r){return r.command!==void 0}class s{constructor(r){this.id=s._idPool++,this._debugName=r}}s._idPool=0,s.CommandPalette=new s("CommandPalette"),s.EditorContext=new s("EditorContext"),s.SimpleEditorContext=new s("SimpleEditorContext"),s.EditorContextCopy=new s("EditorContextCopy"),s.EditorContextPeek=new s("EditorContextPeek"),s.MenubarEditMenu=new s("MenubarEditMenu"),s.MenubarCopy=new s("MenubarCopy"),s.MenubarGoMenu=new s("MenubarGoMenu"),s.MenubarSelectionMenu=new s("MenubarSelectionMenu"),s.InlineCompletionsActions=new s("InlineCompletionsActions");const i=Object(e.c)("menuService"),A=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new O.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:r=>r===s.CommandPalette}}addCommand(r){return this.addCommands(G.a.single(r))}addCommands(r){for(const t of r)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(U.i)(()=>{let t=!1;for(const b of r)t=this._commands.delete(b.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(r){return this._commands.get(r)}getCommands(){const r=new Map;return this._commands.forEach((t,b)=>r.set(b,t)),r}appendMenuItem(r,t){return this.appendMenuItems(G.a.single({id:r,item:t}))}appendMenuItems(r){const t=new Set,b=new S.a;for(const{id:y,item:E}of r){let T=this._menuItems.get(y);T||(T=new S.a,this._menuItems.set(y,T)),b.push(T.push(E)),t.add(y)}return this._onDidChangeMenu.fire(t),Object(U.i)(()=>{if(b.size>0){for(let y of b)y();this._onDidChangeMenu.fire(t),b.clear()}})}getMenuItems(r){let t;return this._menuItems.has(r)?t=[...this._menuItems.get(r)]:t=[],r===s.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(r){const t=new Set;for(const b of r)c(b)&&(t.add(b.command.id),b.alt&&t.add(b.alt.id));this._commands.forEach((b,y)=>{t.has(y)||r.push({command:b})})}};class o extends de.e{constructor(r,t,b,y){super(`submenuitem.${r.submenu.id}`,typeof r.title=="string"?r.title:r.title.value,[],"submenu");this.item=r,this._menuService=t,this._contextKeyService=b,this._options=y}get actions(){const r=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),b=t.getActions(this._options);t.dispose();for(const[,y]of b)y.length>0&&(r.push(...y),r.push(new de.d));return r.length&&r.pop(),r}}let a=class r{constructor(t,b,y,E,T){var v,d;if(this._commandService=T,this.id=t.id,this.label=(y==null?void 0:y.renderShortTitle)&&t.shortTitle?typeof t.shortTitle=="string"?t.shortTitle:t.shortTitle.value:typeof t.title=="string"?t.title:t.title.value,this.tooltip=(d=typeof t.tooltip=="string"?t.tooltip:(v=t.tooltip)===null||v===void 0?void 0:v.value)!==null&&d!==void 0?d:"",this.enabled=!t.precondition||E.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){const n=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=E.contextMatchesRules(n.condition),this.checked&&n.tooltip&&(this.tooltip=typeof n.tooltip=="string"?n.tooltip:n.tooltip.value),n.title&&(this.label=typeof n.title=="string"?n.title:n.title.value)}this.item=t,this.alt=b?new r(b,void 0,y,E,T):void 0,this._options=y,I.d.isThemeIcon(t.icon)&&(this.class=K.a.asClassName(t.icon))}dispose(){}run(...t){var b,y;let E=[];return((b=this._options)===null||b===void 0?void 0:b.arg)&&(E=[...E,this._options.arg]),((y=this._options)===null||y===void 0?void 0:y.shouldForwardArgs)&&(E=[...E,...t]),this._commandService.executeCommand(this.id,...E)}};a=p([g(3,M.b),g(4,Y.b)],a)},fyJ8:function(ot,we,Q){"use strict";var de=Q("rePB"),K=Q("VTBJ"),O=Q("Ff2n"),G=Q("U8pU"),U=Q("q1tI"),S=Q.n(U),Y=Q("TSYQ"),M=Q.n(Y),e=Q("c+Xe"),I=Q("sR1s");function p(A){return A&&Object(G.a)(A)==="object"&&!Array.isArray(A)&&!U.isValidElement(A)}function g(A){return typeof A=="string"?!0:Object(e.c)(A)}function c(A,o){var a,r=A.prefixCls,t=A.className,b=A.record,y=A.index,E=A.dataIndex,T=A.render,v=A.children,d=A.component,n=d===void 0?"td":d,l=A.colSpan,u=A.rowSpan,_=A.fixLeft,m=A.fixRight,h=A.firstFixLeft,R=A.lastFixLeft,F=A.firstFixRight,C=A.lastFixRight,P=A.appendNode,j=A.additionalProps,D=j===void 0?{}:j,$=A.ellipsis,oe=A.align,Ee=A.rowType,ve=A.isSticky,Le="".concat(r,"-cell"),Se,Re;if(v)Re=v;else{var De=Object(I.b)(b,E);if(Re=De,T){var Fe=T(De,b,y);p(Fe)?(Re=Fe.children,Se=Fe.props):Re=Fe}}Object(G.a)(Re)==="object"&&!Array.isArray(Re)&&!U.isValidElement(Re)&&(Re=null),$&&(R||F)&&(Re=U.createElement("span",{className:"".concat(Le,"-content")},Re));var Ce=Se||{},X=Ce.colSpan,L=Ce.rowSpan,N=Ce.style,J=Ce.className,ne=Object(O.a)(Ce,["colSpan","rowSpan","style","className"]),k=X!==void 0?X:l,Z=L!==void 0?L:u;if(k===0||Z===0)return null;var H={},W=typeof _=="number",z=typeof m=="number";W&&(H.position="sticky",H.left=_),z&&(H.position="sticky",H.right=m);var se={};oe&&(se.textAlign=oe);var pe,ge=$===!0?{showTitle:!0}:$;ge&&(ge.showTitle||Ee==="header")&&(typeof Re=="string"||typeof Re=="number"?pe=Re.toString():U.isValidElement(Re)&&typeof Re.props.children=="string"&&(pe=Re.props.children));var Ne=Object(K.a)(Object(K.a)(Object(K.a)({title:pe},ne),D),{},{colSpan:k&&k!==1?k:null,rowSpan:Z&&Z!==1?Z:null,className:M()(Le,t,(a={},Object(de.a)(a,"".concat(Le,"-fix-left"),W),Object(de.a)(a,"".concat(Le,"-fix-left-first"),h),Object(de.a)(a,"".concat(Le,"-fix-left-last"),R),Object(de.a)(a,"".concat(Le,"-fix-right"),z),Object(de.a)(a,"".concat(Le,"-fix-right-first"),F),Object(de.a)(a,"".concat(Le,"-fix-right-last"),C),Object(de.a)(a,"".concat(Le,"-ellipsis"),$),Object(de.a)(a,"".concat(Le,"-with-append"),P),Object(de.a)(a,"".concat(Le,"-fix-sticky"),(W||z)&&ve),a),D.className,J),style:Object(K.a)(Object(K.a)(Object(K.a)(Object(K.a)({},D.style),se),H),N),ref:g(n)?o:null});return U.createElement(n,Object.assign({},Ne),P,Re)}var s=U.forwardRef(c);s.displayName="Cell";var i=U.memo(s,function(A,o){return o.shouldCellUpdate?!o.shouldCellUpdate(o.record,A.record):!1});we.a=i},hW8S:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return G}),Q.d(we,"c",function(){return U}),Q.d(we,"b",function(){return S});var de=Q("VTBJ"),K=Q("Ff2n"),O=Q("Kwbf"),G="RC_TABLE_INTERNAL_COL_DEFINE";function U(Y){var M=Y.expandable,e=Object(K.a)(Y,["expandable"]);return"expandable"in Y?Object(de.a)(Object(de.a)({},e),M):e}function S(Y){return Object.keys(Y).reduce(function(M,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(M[e]=Y[e]),M},{})}},ic2d:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return G});var de=Q("FWmy"),K=Q("746U");class O{constructor(){this.data=new Map}add(U,S){de.a(K.l(U)),de.a(K.k(S)),de.a(!this.data.has(U),"There is already an extension with this id"),this.data.set(U,S)}as(U){return this.data.get(U)||null}}const G=new O},"kVK+":function(ot,we){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */we.read=function(Q,de,K,O,G){var U,S,Y=G*8-O-1,M=(1<<Y)-1,e=M>>1,I=-7,p=K?G-1:0,g=K?-1:1,c=Q[de+p];for(p+=g,U=c&(1<<-I)-1,c>>=-I,I+=Y;I>0;U=U*256+Q[de+p],p+=g,I-=8);for(S=U&(1<<-I)-1,U>>=-I,I+=O;I>0;S=S*256+Q[de+p],p+=g,I-=8);if(U===0)U=1-e;else{if(U===M)return S?NaN:(c?-1:1)*Infinity;S=S+Math.pow(2,O),U=U-e}return(c?-1:1)*S*Math.pow(2,U-O)},we.write=function(Q,de,K,O,G,U){var S,Y,M,e=U*8-G-1,I=(1<<e)-1,p=I>>1,g=G===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=O?0:U-1,s=O?1:-1,i=de<0||de===0&&1/de<0?1:0;for(de=Math.abs(de),isNaN(de)||de===Infinity?(Y=isNaN(de)?1:0,S=I):(S=Math.floor(Math.log(de)/Math.LN2),de*(M=Math.pow(2,-S))<1&&(S--,M*=2),S+p>=1?de+=g/M:de+=g*Math.pow(2,1-p),de*M>=2&&(S++,M/=2),S+p>=I?(Y=0,S=I):S+p>=1?(Y=(de*M-1)*Math.pow(2,G),S=S+p):(Y=de*Math.pow(2,p-1)*Math.pow(2,G),S=0));G>=8;Q[K+c]=Y&255,c+=s,Y/=256,G-=8);for(S=S<<G|Y,e+=G;e>0;Q[K+c]=S&255,c+=s,S/=256,e-=8);Q[K+c-s]|=i*128}},n6Qo:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return M});var de=Q("q1tI"),K=Q("biw7"),O=Q("fyJ8");function G(e){var I=e.className,p=e.index,g=e.children,c=e.colSpan,s=e.rowSpan,i=de.useContext(K.a),A=i.prefixCls,o=i.fixedInfoList,a=o[p];return de.createElement(O.a,Object.assign({className:I,index:p,component:"td",prefixCls:A,record:null,dataIndex:null,render:function(){return{children:g,props:{colSpan:c,rowSpan:s}}}},a))}function U(e){return de.createElement("tr",Object.assign({},e))}function S(e){var I=e.children,p=de.useContext(K.a),g=p.prefixCls;return de.createElement("tfoot",{className:"".concat(g,"-summary")},I)}var Y=we.b=S,M={Cell:G,Row:U}},nEHx:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return de});var de;(function(K){K.DARK="dark",K.LIGHT="light",K.HIGH_CONTRAST="hc"})(de||(de={}))},nnTU:function(ot,we,Q){"use strict";Q.d(we,"b",function(){return Y}),Q.d(we,"a",function(){return M});var de=Q("MI8n"),K=Q("JYp7"),O=Q("pmY6"),G=Q("24hK"),U=Q("746U"),S=Q("Cg/j");const Y=Object(S.c)("commandService"),M=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new de.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,I){if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!I)throw new Error("invalid command");return this.registerCommand({id:e,handler:I})}if(e.description){const i=[];for(let o of e.description.args)i.push(o.constraint);const A=e.handler;e.handler=function(o,...a){return Object(U.o)(a,i),A(o,...a)}}const{id:p}=e;let g=this._commands.get(p);g||(g=new G.a,this._commands.set(p,g));let c=g.unshift(e),s=Object(O.i)(()=>{c();const i=this._commands.get(p);(i==null?void 0:i.isEmpty())&&this._commands.delete(p)});return this._onDidRegisterCommand.fire(p),s}registerCommandAlias(e,I){return M.registerCommand(e,(p,...g)=>p.get(Y).executeCommand(I,...g))}getCommand(e){const I=this._commands.get(e);return!I||I.isEmpty()?void 0:K.a.first(I)}getCommands(){const e=new Map;for(const I of this._commands.keys()){const p=this.getCommand(I);p&&e.set(I,p)}return e}};M.registerCommand("noop",()=>{})},p5ED:function(ot,we,Q){"use strict";var de=Q("+L6B"),K=Q("2/Rp"),O=Q("5Dmo"),G=Q("3S7+"),U=Q("k1fw"),S=Q("9og8"),Y=Q("tJVT"),M=Q("WmNS"),e=Q.n(M),I=Q("q1tI"),p=Q.n(I),g=Q("vHTk"),c=Q.n(g),s=Q("yEEn"),i=Q("ZW9T"),A=Q("1vsH"),o=Q("V0Rq"),a=Q("m3rI");we.a=function(r){var t,b,y,E,T,v,d,n=r.editOffice,l=n===void 0?"view":n,u=r.data,_=r.theme,m=r.type,h=r.filename,R=r.monacoEditor,F=r.className,C=r.style,P=r.close,j=r.onClose,D=r.hasMask,$=r.disabledDownload,oe=Object(I.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Ee=Object(Y.a)(oe,2),ve=Ee[0],Le=Ee[1],Se=Object(I.useState)(""),Re=Object(Y.a)(Se,2),De=Re[0],Fe=Re[1],Ce=Object(I.useState)(),X=Object(Y.a)(Ce,2),L=X[0],N=X[1],J=window.ENV==="build"?"/react/build":"",ne=a.a.PROXY_SERVER||location.origin,k,Z=1024*1024,H=10*Z,W=Object(I.useRef)();(t=u)!==null&&t!==void 0&&t.startsWith("/api")&&m!=="txt"&&(u=(a.a.API_SERVER||location.origin)+u),m==="office"&&(k=Object(A.T)(u).filesize,k>H&&(m="other")),h&&R&&(R.filename=h),Object(I.useEffect)(function(){var ge,Ne,Me=(ge=document.cookie)===null||ge===void 0||((Ne=ge.replace(/\s/g,""))===null||Ne===void 0)?void 0:Ne.split(";");Me==null||Me.map(function(ke){var He=ke.split("=");He[0]==="_educoder_session"&&Fe(He[1])})},[]),Object(I.useEffect)(function(){m==="office"&&z()},[m,u]);var z=function(){var ge=Object(S.a)(e.a.mark(function Ne(){var Me,ke,He;return e.a.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return console.log("data:",u),Me=u,u.startsWith("http")||(Me=location.origin+Me),ke=new URL(Me).pathname.split("/").pop(),rt.next=6,Object(o.V)({attachment_id:ke});case 6:He=rt.sent,N(He);case 8:case"end":return rt.stop()}},Ne)}));return function(){return ge.apply(this,arguments)}}(),se=function(){if(u.startsWith("http")||u.startsWith("blob:")){pe();return}Object(A.z)(h||"educoder",u,h)},pe=function(){Object(A.x)(h||"educoder",decodeURIComponent(u))};return p.a.createElement("div",{style:Object(U.a)({},C||{}),className:"".concat(D&&c.a.bgBlack," ").concat(m?c.a.wrp:"hide")},P&&p.a.createElement("div",{className:c.a.close,ref:W},!$&&p.a.createElement(G.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return W.current}},p.a.createElement("span",{onClick:pe},p.a.createElement("i",{className:"icon-quxiaozhiding"}))),p.a.createElement(G.a,{title:"\u5173\u95ED",getPopupContainer:function(){return W.current}},p.a.createElement("span",{className:"",onClick:j},p.a.createElement("i",{className:"icon-guanbi1"})))),p.a.createElement("div",{className:"".concat(c.a[F]," ").concat(F," ").concat(c.a.monaco," ").concat(m==="txt"?"show":"hide")},m==="txt"&&p.a.createElement(i.b,R)),m==="audio"&&p.a.createElement("audio",{src:"".concat(((b=u)===null||b===void 0?void 0:b.indexOf("http://"))>-1||((y=u)===null||y===void 0?void 0:y.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(u),autoPlay:!0}),m==="video"&&p.a.createElement(p.a.Fragment,null,((E=u)===null||E===void 0?void 0:E.indexOf("http"))>-1?p.a.createElement("video",{controls:!0,src:"".concat(u),autoPlay:!0}):p.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(u),autoPlay:!0})),m==="office"&&L&&p.a.createElement("iframe",{src:"".concat(J,"/office.html?key=").concat(L.key,"&url=").concat(ne+L.url,"&callbackUrl=").concat(ne+L.callbackUrl,"&fileType=").concat(L.fileType,"&title=").concat(L.title,"&model=").concat(l,"&officeServer=").concat(a.a.OFFICE_SERVER,"&disabledDownload=").concat(!!$)}),m==="html"&&p.a.createElement("iframe",{src:u+"&disposition=inline"}),m==="pdf"&&p.a.createElement("iframe",{src:"".concat(J,"/js/pdfview/index.html?url=").concat(u,"&disabledDownload=").concat(!!$)}),m==="image"&&p.a.createElement("img",{src:"".concat(((T=u)===null||T===void 0?void 0:T.indexOf("http://"))>-1||((v=u)===null||v===void 0?void 0:v.indexOf("https://"))>-1||(d=u)!==null&&d!==void 0&&d.startsWith("/api")?"":"data:image/png;base64,").concat(u)}),m==="other"&&p.a.createElement("div",null,p.a.createElement(K.a,{type:"primary",size:"large",onClick:se},p.a.createElement(s.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),m==="download"&&p.a.createElement(K.a,{type:"primary",size:"large",onClick:se},p.a.createElement(s.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},pmY6:function(ot,we,Q){"use strict";Q.d(we,"h",function(){return I}),Q.d(we,"g",function(){return g}),Q.d(we,"f",function(){return c}),Q.d(we,"e",function(){return s}),Q.d(we,"i",function(){return i}),Q.d(we,"b",function(){return A}),Q.d(we,"a",function(){return o}),Q.d(we,"d",function(){return a}),Q.d(we,"c",function(){return r});var de=Q("C/vA"),K=Q("JYp7");const O=!1;let G=null;function U(t){G=t}if(O){const t="__is_disposable_tracked__";U(new class{trackDisposable(b){const y=new Error("Potentially leaked disposable").stack;setTimeout(()=>{b[t]||console.log(y)},3e3)}setParent(b,y){if(b&&b!==o.None)try{b[t]=!0}catch(E){}}markAsDisposed(b){if(b&&b!==o.None)try{b[t]=!0}catch(y){}}markAsSingleton(b){}})}function S(t){return G==null||G.trackDisposable(t),t}function Y(t){G==null||G.markAsDisposed(t)}function M(t,b){G==null||G.setParent(t,b)}function e(t,b){if(!G)return;for(const y of t)G.setParent(y,b)}function I(t){return G==null||G.markAsSingleton(t),t}class p extends Error{constructor(t){super(`Encountered errors while disposing of store. Errors: [${t.join(", ")}]`);this.errors=t}}function g(t){return typeof t.dispose=="function"&&t.dispose.length===0}function c(t){if(K.a.is(t)){let b=[];for(const y of t)if(y)try{y.dispose()}catch(E){b.push(E)}if(b.length===1)throw b[0];if(b.length>1)throw new p(b);return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function s(...t){const b=i(()=>c(t));return e(t,b),b}function i(t){const b=S({dispose:Object(de.a)(()=>{Y(b),t()})});return b}class A{constructor(){this._toDispose=new Set,this._isDisposed=!1,S(this)}dispose(){if(this._isDisposed)return;Y(this),this._isDisposed=!0,this.clear()}clear(){try{c(this._toDispose.values())}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return M(t,this),this._isDisposed?A.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}}A.DISABLE_DISPOSED_WARNING=!1;class o{constructor(){this._store=new A,S(this),M(this._store,this)}dispose(){Y(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}o.None=Object.freeze({dispose(){}});class a{constructor(){this._isDisposed=!1,S(this)}get value(){return this._isDisposed?void 0:this._value}set value(t){var b;if(this._isDisposed||t===this._value)return;(b=this._value)===null||b===void 0||b.dispose(),t&&M(t,this),this._value=t}clear(){this.value=void 0}dispose(){var t;this._isDisposed=!0,Y(this),(t=this._value)===null||t===void 0||t.dispose(),this._value=void 0}clearAndLeak(){const t=this._value;return this._value=void 0,t&&M(t,null),t}}class r{constructor(t){this.object=t}dispose(){}}},psGv:function(ot,we,Q){var de,K;(function(){var O;(function(){"use strict";var Y=[,,function(p){function g(i){this.__parent=i,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}g.prototype.clone_empty=function(){var i=new g(this.__parent);return i.set_indent(this.__indent_count,this.__alignment_count),i},g.prototype.item=function(i){return i<0?this.__items[this.__items.length+i]:this.__items[i]},g.prototype.has_match=function(i){for(var A=this.__items.length-1;A>=0;A--)if(this.__items[A].match(i))return!0;return!1},g.prototype.set_indent=function(i,A){this.is_empty()&&(this.__indent_count=i||0,this.__alignment_count=A||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},g.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},g.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},g.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var i=this.__parent.current_line;return i.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),i.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),i.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,i.__items[0]===" "&&(i.__items.splice(0,1),i.__character_count-=1),!0}return!1},g.prototype.is_empty=function(){return this.__items.length===0},g.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},g.prototype.push=function(i){this.__items.push(i);var A=i.lastIndexOf(`
|
|
`);A!==-1?this.__character_count=i.length-A:this.__character_count+=i.length},g.prototype.pop=function(){var i=null;return this.is_empty()||(i=this.__items.pop(),this.__character_count-=i.length),i},g.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},g.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},g.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},g.prototype.toString=function(){var i="";return this.is_empty()?this.__parent.indent_empty_lines&&(i=this.__parent.get_indent_string(this.__indent_count)):(i=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),i+=this.__items.join("")),i};function c(i,A){this.__cache=[""],this.__indent_size=i.indent_size,this.__indent_string=i.indent_char,i.indent_with_tabs||(this.__indent_string=new Array(i.indent_size+1).join(i.indent_char)),A=A||"",i.indent_level>0&&(A=new Array(i.indent_level+1).join(this.__indent_string)),this.__base_string=A,this.__base_string_length=A.length}c.prototype.get_indent_size=function(i,A){var o=this.__base_string_length;return A=A||0,i<0&&(o=0),o+=i*this.__indent_size,o+=A,o},c.prototype.get_indent_string=function(i,A){var o=this.__base_string;return A=A||0,i<0&&(i=0,o=""),A+=i*this.__indent_size,this.__ensure_cache(A),o+=this.__cache[A],o},c.prototype.__ensure_cache=function(i){for(;i>=this.__cache.length;)this.__add_column()},c.prototype.__add_column=function(){var i=this.__cache.length,A=0,o="";this.__indent_size&&i>=this.__indent_size&&(A=Math.floor(i/this.__indent_size),i-=A*this.__indent_size,o=new Array(A+1).join(this.__indent_string)),i&&(o+=new Array(i+1).join(" ")),this.__cache.push(o)};function s(i,A){this.__indent_cache=new c(i,A),this.raw=!1,this._end_with_newline=i.end_with_newline,this.indent_size=i.indent_size,this.wrap_line_length=i.wrap_line_length,this.indent_empty_lines=i.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new g(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(i,A){return this.__indent_cache.get_indent_string(i,A)},s.prototype.get_indent_size=function(i,A){return this.__indent_cache.get_indent_size(i,A)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(i){return this.is_empty()||!i&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(i){this.trim(!0);var A=this.current_line.pop();A&&(A[A.length-1]===`
|
|
`&&(A=A.replace(/\n+$/g,"")),this.current_line.push(A)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join(`
|
|
`);return i!==`
|
|
`&&(o=o.replace(/[\n]/g,i)),o},s.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},s.prototype.set_indent=function(i,A){return i=i||0,A=A||0,this.next_line.set_indent(i,A),this.__lines.length>1?(this.current_line.set_indent(i,A),!0):(this.current_line.set_indent(),!1)},s.prototype.add_raw_token=function(i){for(var A=0;A<i.newlines;A++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(i.whitespace_before),this.current_line.push(i.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},s.prototype.add_token=function(i){this.__add_space_before_token(),this.current_line.push(i),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},s.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},s.prototype.remove_indent=function(i){for(var A=this.__lines.length;i<A;)this.__lines[i]._remove_indent(),i++;this.current_line._remove_wrap_indent()},s.prototype.trim=function(i){for(i=i===void 0?!1:i,this.current_line.trim();i&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},s.prototype.just_added_newline=function(){return this.current_line.is_empty()},s.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},s.prototype.ensure_empty_line_above=function(i,A){for(var o=this.__lines.length-2;o>=0;){var a=this.__lines[o];if(a.is_empty())break;if(a.item(0).indexOf(i)!==0&&a.item(-1)!==A){this.__lines.splice(o+1,0,new g(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},p.exports.Output=s},function(p){function g(c,s,i,A){this.type=c,this.text=s,this.comments_before=null,this.newlines=i||0,this.whitespace_before=A||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}p.exports.Token=g},,,function(p){function g(i,A){this.raw_options=c(i,A),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}g.prototype._get_array=function(i,A){var o=this.raw_options[i],a=A||[];return typeof o=="object"?o!==null&&typeof o.concat=="function"&&(a=o.concat()):typeof o=="string"&&(a=o.split(/[^a-zA-Z0-9_\/\-]+/)),a},g.prototype._get_boolean=function(i,A){var o=this.raw_options[i],a=o===void 0?!!A:!!o;return a},g.prototype._get_characters=function(i,A){var o=this.raw_options[i],a=A||"";return typeof o=="string"&&(a=o.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),a},g.prototype._get_number=function(i,A){var o=this.raw_options[i];A=parseInt(A,10),isNaN(A)&&(A=0);var a=parseInt(o,10);return isNaN(a)&&(a=A),a},g.prototype._get_selection=function(i,A,o){var a=this._get_selection_list(i,A,o);if(a.length!==1)throw new Error("Invalid Option Value: The option '"+i+`' can only be one of the following values:
|
|
`+A+`
|
|
You passed in: '`+this.raw_options[i]+"'");return a[0]},g.prototype._get_selection_list=function(i,A,o){if(!A||A.length===0)throw new Error("Selection list cannot be empty.");if(o=o||[A[0]],!this._is_valid_selection(o,A))throw new Error("Invalid Default Value!");var a=this._get_array(i,o);if(!this._is_valid_selection(a,A))throw new Error("Invalid Option Value: The option '"+i+`' can contain only the following values:
|
|
`+A+`
|
|
You passed in: '`+this.raw_options[i]+"'");return a},g.prototype._is_valid_selection=function(i,A){return i.length&&A.length&&!i.some(function(o){return A.indexOf(o)===-1})};function c(i,A){var o={};i=s(i);var a;for(a in i)a!==A&&(o[a]=i[a]);if(A&&i[A])for(a in i[A])o[a]=i[A][a];return o}function s(i){var A={},o;for(o in i){var a=o.replace(/-/g,"_");A[a]=i[o]}return A}p.exports.Options=g,p.exports.normalizeOpts=s,p.exports.mergeOpts=c},,function(p){var g=RegExp.prototype.hasOwnProperty("sticky");function c(s){this.__input=s||"",this.__input_length=this.__input.length,this.__position=0}c.prototype.restart=function(){this.__position=0},c.prototype.back=function(){this.__position>0&&(this.__position-=1)},c.prototype.hasNext=function(){return this.__position<this.__input_length},c.prototype.next=function(){var s=null;return this.hasNext()&&(s=this.__input.charAt(this.__position),this.__position+=1),s},c.prototype.peek=function(s){var i=null;return s=s||0,s+=this.__position,s>=0&&s<this.__input_length&&(i=this.__input.charAt(s)),i},c.prototype.__match=function(s,i){s.lastIndex=i;var A=s.exec(this.__input);return A&&!(g&&s.sticky)&&(A.index!==i&&(A=null)),A},c.prototype.test=function(s,i){return i=i||0,i+=this.__position,i>=0&&i<this.__input_length?!!this.__match(s,i):!1},c.prototype.testChar=function(s,i){var A=this.peek(i);return s.lastIndex=0,A!==null&&s.test(A)},c.prototype.match=function(s){var i=this.__match(s,this.__position);return i?this.__position+=i[0].length:i=null,i},c.prototype.read=function(s,i,A){var o="",a;return s&&(a=this.match(s),a&&(o+=a[0])),i&&(a||!s)&&(o+=this.readUntil(i,A)),o},c.prototype.readUntil=function(s,i){var A="",o=this.__position;s.lastIndex=this.__position;var a=s.exec(this.__input);return a?(o=a.index,i&&(o+=a[0].length)):o=this.__input_length,A=this.__input.substring(this.__position,o),this.__position=o,A},c.prototype.readUntilAfter=function(s){return this.readUntil(s,!0)},c.prototype.get_regexp=function(s,i){var A=null,o="g";return i&&g&&(o="y"),typeof s=="string"&&s!==""?A=new RegExp(s,o):s&&(A=new RegExp(s.source,o)),A},c.prototype.get_literal_regexp=function(s){return RegExp(s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},c.prototype.peekUntilAfter=function(s){var i=this.__position,A=this.readUntilAfter(s);return this.__position=i,A},c.prototype.lookBack=function(s){var i=this.__position-1;return i>=s.length&&this.__input.substring(i-s.length,i).toLowerCase()===s},p.exports.InputScanner=c},function(p,g,c){var s=c(8).InputScanner,i=c(3).Token,A=c(10).TokenStream,o=c(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},r=function(t,b){this._input=new s(t),this._options=b||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};r.prototype.tokenize=function(){this._input.restart(),this.__tokens=new A,this._reset();for(var t,b=new i(a.START,""),y=null,E=[],T=new A;b.type!==a.EOF;){for(t=this._get_next_token(b,y);this._is_comment(t);)T.add(t),t=this._get_next_token(b,y);T.isEmpty()||(t.comments_before=T,T=new A),t.parent=y,this._is_opening(t)?(E.push(y),y=t):y&&this._is_closing(t,y)&&(t.opened=y,y.closed=t,y=E.pop(),t.parent=y),t.previous=b,b.next=t,this.__tokens.add(t),b=t}return this.__tokens},r.prototype._is_first_token=function(){return this.__tokens.isEmpty()},r.prototype._reset=function(){},r.prototype._get_next_token=function(t,b){this._readWhitespace();var y=this._input.read(/.+/g);return y?this._create_token(a.RAW,y):this._create_token(a.EOF,"")},r.prototype._is_comment=function(t){return!1},r.prototype._is_opening=function(t){return!1},r.prototype._is_closing=function(t,b){return!1},r.prototype._create_token=function(t,b){var y=new i(t,b,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return y},r.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},p.exports.Tokenizer=r,p.exports.TOKEN=a},function(p){function g(c){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=c}g.prototype.restart=function(){this.__position=0},g.prototype.isEmpty=function(){return this.__tokens_length===0},g.prototype.hasNext=function(){return this.__position<this.__tokens_length},g.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__tokens[this.__position],this.__position+=1),c},g.prototype.peek=function(c){var s=null;return c=c||0,c+=this.__position,c>=0&&c<this.__tokens_length&&(s=this.__tokens[c]),s},g.prototype.add=function(c){this.__parent_token&&(c.parent=this.__parent_token),this.__tokens.push(c),this.__tokens_length+=1},p.exports.TokenStream=g},function(p,g,c){var s=c(12).Pattern;function i(A,o){s.call(this,A,o),o?this._line_regexp=this._input.get_regexp(o._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}i.prototype=new s,i.prototype.__set_whitespace_patterns=function(A,o){A+="\\t ",o+="\\n\\r",this._match_pattern=this._input.get_regexp("["+A+o+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+o+"]")},i.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var A=this._input.read(this._match_pattern);if(A===" ")this.whitespace_before_token=" ";else if(A){var o=this.__split(this._newline_regexp,A);this.newline_count=o.length-1,this.whitespace_before_token=o[this.newline_count]}return A},i.prototype.matching=function(A,o){var a=this._create();return a.__set_whitespace_patterns(A,o),a._update(),a},i.prototype._create=function(){return new i(this._input,this)},i.prototype.__split=function(A,o){A.lastIndex=0;for(var a=0,r=[],t=A.exec(o);t;)r.push(o.substring(a,t.index)),a=t.index+t[0].length,t=A.exec(o);return a<o.length?r.push(o.substring(a,o.length)):r.push(""),r},p.exports.WhitespacePattern=i},function(p){function g(c,s){this._input=c,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,s&&(this._starting_pattern=this._input.get_regexp(s._starting_pattern,!0),this._match_pattern=this._input.get_regexp(s._match_pattern,!0),this._until_pattern=this._input.get_regexp(s._until_pattern),this._until_after=s._until_after)}g.prototype.read=function(){var c=this._input.read(this._starting_pattern);return(!this._starting_pattern||c)&&(c+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),c},g.prototype.read_match=function(){return this._input.match(this._match_pattern)},g.prototype.until_after=function(c){var s=this._create();return s._until_after=!0,s._until_pattern=this._input.get_regexp(c),s._update(),s},g.prototype.until=function(c){var s=this._create();return s._until_after=!1,s._until_pattern=this._input.get_regexp(c),s._update(),s},g.prototype.starting_with=function(c){var s=this._create();return s._starting_pattern=this._input.get_regexp(c,!0),s._update(),s},g.prototype.matching=function(c){var s=this._create();return s._match_pattern=this._input.get_regexp(c,!0),s._update(),s},g.prototype._create=function(){return new g(this._input,this)},g.prototype._update=function(){},p.exports.Pattern=g},function(p){function g(c,s){c=typeof c=="string"?c:c.source,s=typeof s=="string"?s:s.source,this.__directives_block_pattern=new RegExp(c+/ beautify( \w+[:]\w+)+ /.source+s,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(c+/\sbeautify\signore:end\s/.source+s,"g")}g.prototype.get_directives=function(c){if(!c.match(this.__directives_block_pattern))return null;var s={};this.__directive_pattern.lastIndex=0;for(var i=this.__directive_pattern.exec(c);i;)s[i[1]]=i[2],i=this.__directive_pattern.exec(c);return s},g.prototype.readIgnored=function(c){return c.readUntilAfter(this.__directives_end_ignore_pattern)},p.exports.Directives=g},function(p,g,c){var s=c(12).Pattern,i={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function A(o,a){s.call(this,o,a),this.__template_pattern=null,this._disabled=Object.assign({},i),this._excluded=Object.assign({},i),a&&(this.__template_pattern=this._input.get_regexp(a.__template_pattern),this._excluded=Object.assign(this._excluded,a._excluded),this._disabled=Object.assign(this._disabled,a._disabled));var r=new s(o);this.__patterns={handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:r.starting_with(/{{{/).until_after(/}}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),php:r.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:r.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:r.starting_with(/{%/).until_after(/%}/),django_value:r.starting_with(/{{/).until_after(/}}/),django_comment:r.starting_with(/{#/).until_after(/#}/),smarty:r.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:r.starting_with(/{\*/).until_after(/\*}/),smarty_literal:r.starting_with(/{literal}/).until_after(/{\/literal}/)}}A.prototype=new s,A.prototype._create=function(){return new A(this._input,this)},A.prototype._update=function(){this.__set_templated_pattern()},A.prototype.disable=function(o){var a=this._create();return a._disabled[o]=!0,a._update(),a},A.prototype.read_options=function(o){var a=this._create();for(var r in i)a._disabled[r]=o.templating.indexOf(r)===-1;return a._update(),a},A.prototype.exclude=function(o){var a=this._create();return a._excluded[o]=!0,a._update(),a},A.prototype.read=function(){var o="";this._match_pattern?o=this._input.read(this._starting_pattern):o=this._input.read(this._starting_pattern,this.__template_pattern);for(var a=this._read_template();a;)this._match_pattern?a+=this._input.read(this._match_pattern):a+=this._input.readUntil(this.__template_pattern),o+=a,a=this._read_template();return this._until_after&&(o+=this._input.readUntilAfter(this._until_pattern)),o},A.prototype.__set_templated_pattern=function(){var o=[];this._disabled.php||o.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||o.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||o.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(o.push(this.__patterns.django._starting_pattern.source),o.push(this.__patterns.django_value._starting_pattern.source),o.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||o.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&o.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+o.join("|")+")")},A.prototype._read_template=function(){var o="",a=this._input.peek();if(a==="<"){var r=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&r==="?"&&(o=o||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&r==="%"&&(o=o||this.__patterns.erb.read())}else a==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(o=o||this.__patterns.handlebars_comment.read(),o=o||this.__patterns.handlebars_unescaped.read(),o=o||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(o=o||this.__patterns.django_value.read()),this._excluded.django||(o=o||this.__patterns.django_comment.read(),o=o||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(o=o||this.__patterns.smarty_comment.read(),o=o||this.__patterns.smarty_literal.read(),o=o||this.__patterns.smarty.read()));return o},p.exports.TemplatablePattern=A},,,,function(p,g,c){var s=c(19).Beautifier,i=c(20).Options;function A(o,a,r,t){var b=new s(o,a,r,t);return b.beautify()}p.exports=A,p.exports.defaultOptions=function(){return new i}},function(p,g,c){var s=c(20).Options,i=c(2).Output,A=c(21).Tokenizer,o=c(21).TOKEN,a=/\r\n|[\r\n]/,r=/\r\n|[\r\n]/g,t=function(_,m){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=_.max_preserve_newlines,this.preserve_newlines=_.preserve_newlines,this._output=new i(_,m)};t.prototype.current_line_has_match=function(_){return this._output.current_line.has_match(_)},t.prototype.set_space_before_token=function(_,m){this._output.space_before_token=_,this._output.non_breaking_space=m},t.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},t.prototype.add_raw_token=function(_){this._output.add_raw_token(_)},t.prototype.print_preserved_newlines=function(_){var m=0;_.type!==o.TEXT&&_.previous.type!==o.TEXT&&(m=_.newlines?1:0),this.preserve_newlines&&(m=_.newlines<this.max_preserve_newlines+1?_.newlines:this.max_preserve_newlines+1);for(var h=0;h<m;h++)this.print_newline(h>0);return m!==0},t.prototype.traverse_whitespace=function(_){return _.whitespace_before||_.newlines?(this.print_preserved_newlines(_)||(this._output.space_before_token=!0),!0):!1},t.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},t.prototype.print_newline=function(_){this._output.add_new_line(_)},t.prototype.print_token=function(_){_.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(_.text))},t.prototype.indent=function(){this.indent_level++},t.prototype.get_full_indent=function(_){return _=this.indent_level+(_||0),_<1?"":this._output.get_indent_string(_)};var b=function(_){for(var m=null,h=_.next;h.type!==o.EOF&&_.closed!==h;){if(h.type===o.ATTRIBUTE&&h.text==="type"){h.next&&h.next.type===o.EQUALS&&h.next.next&&h.next.next.type===o.VALUE&&(m=h.next.next.text);break}h=h.next}return m},y=function(_,m){var h=null,R=null;return m.closed?(_==="script"?h="text/javascript":_==="style"&&(h="text/css"),h=b(m)||h,h.search("text/css")>-1?R="css":h.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?R="javascript":h.search(/(text|application|dojo)\/(x-)?(html)/)>-1?R="html":h.search(/test\/null/)>-1&&(R="null"),R):null};function E(_,m){return m.indexOf(_)!==-1}function T(_,m,h){this.parent=_||null,this.tag=m?m.tag_name:"",this.indent_level=h||0,this.parser_token=m||null}function v(_){this._printer=_,this._current_frame=null}v.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},v.prototype.record_tag=function(_){var m=new T(this._current_frame,_,this._printer.indent_level);this._current_frame=m},v.prototype._try_pop_frame=function(_){var m=null;return _&&(m=_.parser_token,this._printer.indent_level=_.indent_level,this._current_frame=_.parent),m},v.prototype._get_frame=function(_,m){for(var h=this._current_frame;h&&!(_.indexOf(h.tag)!==-1);){if(m&&m.indexOf(h.tag)!==-1){h=null;break}h=h.parent}return h},v.prototype.try_pop=function(_,m){var h=this._get_frame([_],m);return this._try_pop_frame(h)},v.prototype.indent_to_tag=function(_){var m=this._get_frame(_);m&&(this._printer.indent_level=m.indent_level)};function d(_,m,h,R){this._source_text=_||"",m=m||{},this._js_beautify=h,this._css_beautify=R,this._tag_stack=null;var F=new s(m,"html");this._options=F,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var _=this._source_text,m=this._options.eol;this._options.eol==="auto"&&(m=`
|
|
`,_&&a.test(_)&&(m=_.match(a)[0])),_=_.replace(r,`
|
|
`);var h=_.match(/^[\t ]*/)[0],R={text:"",type:""},F=new n,C=new t(this._options,h),P=new A(_,this._options).tokenize();this._tag_stack=new v(C);for(var j=null,D=P.next();D.type!==o.EOF;)D.type===o.TAG_OPEN||D.type===o.COMMENT?(j=this._handle_tag_open(C,D,F,R),F=j):D.type===o.ATTRIBUTE||D.type===o.EQUALS||D.type===o.VALUE||D.type===o.TEXT&&!F.tag_complete?j=this._handle_inside_tag(C,D,F,P):D.type===o.TAG_CLOSE?j=this._handle_tag_close(C,D,F):D.type===o.TEXT?j=this._handle_text(C,D,F):C.add_raw_token(D),R=j,D=P.next();var $=C._output.get_code(m);return $},d.prototype._handle_tag_close=function(_,m,h){var R={text:m.text,type:m.type};return _.alignment_size=0,h.tag_complete=!0,_.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),h.is_unformatted?_.add_raw_token(m):(h.tag_start_char==="<"&&(_.set_space_before_token(m.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&h.has_wrapped_attrs&&_.print_newline(!1)),_.print_token(m)),h.indent_content&&!(h.is_unformatted||h.is_content_unformatted)&&(_.indent(),h.indent_content=!1),!h.is_inline_element&&!(h.is_unformatted||h.is_content_unformatted)&&_.set_wrap_point(),R},d.prototype._handle_inside_tag=function(_,m,h,R){var F=h.has_wrapped_attrs,C={text:m.text,type:m.type};if(_.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),h.is_unformatted)_.add_raw_token(m);else if(h.tag_start_char==="{"&&m.type===o.TEXT)_.print_preserved_newlines(m)?(m.newlines=0,_.add_raw_token(m)):_.print_token(m);else{if(m.type===o.ATTRIBUTE?(_.set_space_before_token(!0),h.attr_count+=1):(m.type===o.EQUALS||m.type===o.VALUE&&m.previous.type===o.EQUALS)&&_.set_space_before_token(!1),m.type===o.ATTRIBUTE&&h.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(_.traverse_whitespace(m),F=F||m.newlines!==0),this._is_wrap_attributes_force)){var P=h.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&h.attr_count===1){var j=!0,D=0,$;do{if($=R.peek(D),$.type===o.ATTRIBUTE){j=!1;break}D+=1}while(D<4&&$.type!==o.EOF&&$.type!==o.TAG_CLOSE);P=!j}P&&(_.print_newline(!1),F=!0)}_.print_token(m),F=F||_.previous_token_wrapped(),h.has_wrapped_attrs=F}return C},d.prototype._handle_text=function(_,m,h){var R={text:m.text,type:"TK_CONTENT"};return h.custom_beautifier_name?this._print_custom_beatifier_text(_,m,h):h.is_unformatted||h.is_content_unformatted?_.add_raw_token(m):(_.traverse_whitespace(m),_.print_token(m)),R},d.prototype._print_custom_beatifier_text=function(_,m,h){var R=this;if(m.text!==""){var F=m.text,C,P=1,j="",D="";h.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?C=this._js_beautify:h.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?C=this._css_beautify:h.custom_beautifier_name==="html"&&(C=function(Se,Re){var De=new d(Se,Re,R._js_beautify,R._css_beautify);return De.beautify()}),this._options.indent_scripts==="keep"?P=0:this._options.indent_scripts==="separate"&&(P=-_.indent_level);var $=_.get_full_indent(P);if(F=F.replace(/\n[ \t]*$/,""),h.custom_beautifier_name!=="html"&&F[0]==="<"&&F.match(/^(<!--|<!\[CDATA\[)/)){var oe=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(F);if(!oe){_.add_raw_token(m);return}j=$+oe[1]+`
|
|
`,F=oe[4],oe[5]&&(D=$+oe[5]),F=F.replace(/\n[ \t]*$/,""),(oe[2]||oe[3].indexOf(`
|
|
`)!==-1)&&(oe=oe[3].match(/[ \t]+$/),oe&&(m.whitespace_before=oe[0]))}if(F)if(C){var Ee=function(){this.eol=`
|
|
`};Ee.prototype=this._options.raw_options;var ve=new Ee;F=C($+F,ve)}else{var Le=m.whitespace_before;Le&&(F=F.replace(new RegExp(`
|
|
(`+Le+")?","g"),`
|
|
`)),F=$+F.replace(/\n/g,`
|
|
`+$)}j&&(F?F=j+F+`
|
|
`+D:F=j+D),_.print_newline(!1),F&&(m.text=F,m.whitespace_before="",m.newlines=0,_.add_raw_token(m),_.print_newline(!0))}},d.prototype._handle_tag_open=function(_,m,h,R){var F=this._get_tag_open_token(m);return(h.is_unformatted||h.is_content_unformatted)&&!h.is_empty_element&&m.type===o.TAG_OPEN&&m.text.indexOf("</")===0?(_.add_raw_token(m),F.start_tag_token=this._tag_stack.try_pop(F.tag_name)):(_.traverse_whitespace(m),this._set_tag_position(_,m,F,h,R),F.is_inline_element||_.set_wrap_point(),_.print_token(m)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(F.alignment_size=m.text.length+1),!F.tag_complete&&!F.is_unformatted&&(_.alignment_size=F.alignment_size),F};var n=function(_,m){if(this.parent=_||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!m)this.tag_complete=!0;else{var h;this.tag_start_char=m.text[0],this.text=m.text,this.tag_start_char==="<"?(h=m.text.match(/^<([^\s>]*)/),this.tag_check=h?h[1]:""):(h=m.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=h?h[1]:"",(m.text.startsWith("{{#>")||m.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&m.next!==null?this.tag_check=m.next.text.split(" ")[0]:this.tag_check=m.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),m.type===o.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||m.closed&&m.closed.text==="/>";var R=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(R=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(R)))}};d.prototype._get_tag_open_token=function(_){var m=new n(this._tag_stack.get_parser_token(),_);return m.alignment_size=this._options.wrap_attributes_indent_size,m.is_end_tag=m.is_end_tag||E(m.tag_check,this._options.void_elements),m.is_empty_element=m.tag_complete||m.is_start_tag&&m.is_end_tag,m.is_unformatted=!m.tag_complete&&E(m.tag_check,this._options.unformatted),m.is_content_unformatted=!m.is_empty_element&&E(m.tag_check,this._options.content_unformatted),m.is_inline_element=E(m.tag_name,this._options.inline)||m.tag_name.includes("-")||m.tag_start_char==="{",m},d.prototype._set_tag_position=function(_,m,h,R,F){if(h.is_empty_element||(h.is_end_tag?h.start_tag_token=this._tag_stack.try_pop(h.tag_name):(this._do_optional_end_element(h)&&(h.is_inline_element||_.print_newline(!1)),this._tag_stack.record_tag(h),(h.tag_name==="script"||h.tag_name==="style")&&!(h.is_unformatted||h.is_content_unformatted)&&(h.custom_beautifier_name=y(h.tag_check,m)))),E(h.tag_check,this._options.extra_liners)&&(_.print_newline(!1),_._output.just_added_blankline()||_.print_newline(!0)),h.is_empty_element){if(h.tag_start_char==="{"&&h.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),h.indent_content=!0;var C=_.current_line_has_match(/{{#if/);C||_.print_newline(!1)}h.tag_name==="!--"&&F.type===o.TAG_CLOSE&&R.is_end_tag&&h.text.indexOf(`
|
|
`)===-1||(h.is_inline_element||h.is_unformatted||_.print_newline(!1),this._calcluate_parent_multiline(_,h))}else if(h.is_end_tag){var P=!1;P=h.start_tag_token&&h.start_tag_token.multiline_content,P=P||!h.is_inline_element&&!(R.is_inline_element||R.is_unformatted)&&!(F.type===o.TAG_CLOSE&&h.start_tag_token===R)&&F.type!=="TK_CONTENT",(h.is_content_unformatted||h.is_unformatted)&&(P=!1),P&&_.print_newline(!1)}else h.indent_content=!h.custom_beautifier_name,h.tag_start_char==="<"&&(h.tag_name==="html"?h.indent_content=this._options.indent_inner_html:h.tag_name==="head"?h.indent_content=this._options.indent_head_inner_html:h.tag_name==="body"&&(h.indent_content=this._options.indent_body_inner_html)),!(h.is_inline_element||h.is_unformatted)&&(F.type!=="TK_CONTENT"||h.is_content_unformatted)&&_.print_newline(!1),this._calcluate_parent_multiline(_,h)},d.prototype._calcluate_parent_multiline=function(_,m){m.parent&&_._output.just_added_newline()&&!((m.is_inline_element||m.is_unformatted)&&m.parent.is_inline_element)&&(m.parent.multiline_content=!0)};var l=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],u=["a","audio","del","ins","map","noscript","video"];d.prototype._do_optional_end_element=function(_){var m=null;if(_.is_empty_element||!_.is_start_tag||!_.parent)return;if(_.tag_name==="body")m=m||this._tag_stack.try_pop("head");else if(_.tag_name==="li")m=m||this._tag_stack.try_pop("li",["ol","ul"]);else if(_.tag_name==="dd"||_.tag_name==="dt")m=m||this._tag_stack.try_pop("dt",["dl"]),m=m||this._tag_stack.try_pop("dd",["dl"]);else if(_.parent.tag_name==="p"&&l.indexOf(_.tag_name)!==-1){var h=_.parent.parent;(!h||u.indexOf(h.tag_name)===-1)&&(m=m||this._tag_stack.try_pop("p"))}else _.tag_name==="rp"||_.tag_name==="rt"?(m=m||this._tag_stack.try_pop("rt",["ruby","rtc"]),m=m||this._tag_stack.try_pop("rp",["ruby","rtc"])):_.tag_name==="optgroup"?m=m||this._tag_stack.try_pop("optgroup",["select"]):_.tag_name==="option"?m=m||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):_.tag_name==="colgroup"?m=m||this._tag_stack.try_pop("caption",["table"]):_.tag_name==="thead"?(m=m||this._tag_stack.try_pop("caption",["table"]),m=m||this._tag_stack.try_pop("colgroup",["table"])):_.tag_name==="tbody"||_.tag_name==="tfoot"?(m=m||this._tag_stack.try_pop("caption",["table"]),m=m||this._tag_stack.try_pop("colgroup",["table"]),m=m||this._tag_stack.try_pop("thead",["table"]),m=m||this._tag_stack.try_pop("tbody",["table"])):_.tag_name==="tr"?(m=m||this._tag_stack.try_pop("caption",["table"]),m=m||this._tag_stack.try_pop("colgroup",["table"]),m=m||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(_.tag_name==="th"||_.tag_name==="td")&&(m=m||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),m=m||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return _.parent=this._tag_stack.get_parser_token(),m},p.exports.Beautifier=d},function(p,g,c){var s=c(6).Options;function i(A){s.call(this,A,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}i.prototype=new s,p.exports.Options=i},function(p,g,c){var s=c(9).Tokenizer,i=c(9).TOKEN,A=c(13).Directives,o=c(14).TemplatablePattern,a=c(12).Pattern,r={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:i.START,RAW:i.RAW,EOF:i.EOF},t=new A(/<\!--/,/-->/),b=function(y,E){s.call(this,y,E),this._current_tag_name="";var T=new o(this._input).read_options(this._options),v=new a(this._input);if(this.__patterns={word:T.until(/[\n\r\t <]/),single_quote:T.until_after(/'/),double_quote:T.until_after(/"/),attribute:T.until(/[\n\r\t =>]|\/>/),element_name:T.until(/[\n\r\t >\/]/),handlebars_comment:v.starting_with(/{{!--/).until_after(/--}}/),handlebars:v.starting_with(/{{/).until_after(/}}/),handlebars_open:v.until(/[\n\r\t }]/),handlebars_raw_close:v.until(/}}/),comment:v.starting_with(/<!--/).until_after(/-->/),cdata:v.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:v.starting_with(/<!\[/).until_after(/]>/),processing:v.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var d=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=v.matching(d).until_after(d)}};b.prototype=new s,b.prototype._is_comment=function(y){return!1},b.prototype._is_opening=function(y){return y.type===r.TAG_OPEN},b.prototype._is_closing=function(y,E){return y.type===r.TAG_CLOSE&&E&&((y.text===">"||y.text==="/>")&&E.text[0]==="<"||y.text==="}}"&&E.text[0]==="{"&&E.text[1]==="{")},b.prototype._reset=function(){this._current_tag_name=""},b.prototype._get_next_token=function(y,E){var T=null;this._readWhitespace();var v=this._input.peek();return v===null?this._create_token(r.EOF,""):(T=T||this._read_open_handlebars(v,E),T=T||this._read_attribute(v,y,E),T=T||this._read_close(v,E),T=T||this._read_raw_content(v,y,E),T=T||this._read_content_word(v),T=T||this._read_comment_or_cdata(v),T=T||this._read_processing(v),T=T||this._read_open(v,E),T=T||this._create_token(r.UNKNOWN,this._input.next()),T)},b.prototype._read_comment_or_cdata=function(y){var E=null,T=null,v=null;if(y==="<"){var d=this._input.peek(1);d==="!"&&(T=this.__patterns.comment.read(),T?(v=t.get_directives(T),v&&v.ignore==="start"&&(T+=t.readIgnored(this._input))):T=this.__patterns.cdata.read()),T&&(E=this._create_token(r.COMMENT,T),E.directives=v)}return E},b.prototype._read_processing=function(y){var E=null,T=null,v=null;if(y==="<"){var d=this._input.peek(1);(d==="!"||d==="?")&&(T=this.__patterns.conditional_comment.read(),T=T||this.__patterns.processing.read()),T&&(E=this._create_token(r.COMMENT,T),E.directives=v)}return E},b.prototype._read_open=function(y,E){var T=null,v=null;return E||y==="<"&&(T=this._input.next(),this._input.peek()==="/"&&(T+=this._input.next()),T+=this.__patterns.element_name.read(),v=this._create_token(r.TAG_OPEN,T)),v},b.prototype._read_open_handlebars=function(y,E){var T=null,v=null;return E||this._options.indent_handlebars&&y==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(T=this.__patterns.handlebars_comment.read(),T=T||this.__patterns.handlebars.read(),v=this._create_token(r.COMMENT,T)):(T=this.__patterns.handlebars_open.read(),v=this._create_token(r.TAG_OPEN,T))),v},b.prototype._read_close=function(y,E){var T=null,v=null;return E&&(E.text[0]==="<"&&(y===">"||y==="/"&&this._input.peek(1)===">")?(T=this._input.next(),y==="/"&&(T+=this._input.next()),v=this._create_token(r.TAG_CLOSE,T)):E.text[0]==="{"&&y==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),v=this._create_token(r.TAG_CLOSE,"}}"))),v},b.prototype._read_attribute=function(y,E,T){var v=null,d="";if(T&&T.text[0]==="<")if(y==="=")v=this._create_token(r.EQUALS,this._input.next());else if(y==='"'||y==="'"){var n=this._input.next();y==='"'?n+=this.__patterns.double_quote.read():n+=this.__patterns.single_quote.read(),v=this._create_token(r.VALUE,n)}else d=this.__patterns.attribute.read(),d&&(E.type===r.EQUALS?v=this._create_token(r.VALUE,d):v=this._create_token(r.ATTRIBUTE,d));return v},b.prototype._is_content_unformatted=function(y){return this._options.void_elements.indexOf(y)===-1&&(this._options.content_unformatted.indexOf(y)!==-1||this._options.unformatted.indexOf(y)!==-1)},b.prototype._read_raw_content=function(y,E,T){var v="";if(T&&T.text[0]==="{")v=this.__patterns.handlebars_raw_close.read();else if(E.type===r.TAG_CLOSE&&E.opened.text[0]==="<"&&E.text[0]!=="/"){var d=E.opened.text.substr(1).toLowerCase();if(d==="script"||d==="style"){var n=this._read_comment_or_cdata(y);if(n)return n.type=r.TEXT,n;v=this._input.readUntil(new RegExp("</"+d+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(d)&&(v=this._input.readUntil(new RegExp("</"+d+"[\\n\\r\\t ]*?>","ig")))}return v?this._create_token(r.TEXT,v):null},b.prototype._read_content_word=function(y){var E="";if(this._options.unformatted_content_delimiter&&(y===this._options.unformatted_content_delimiter[0]&&(E=this.__patterns.unformatted_content_delimiter.read())),E||(E=this.__patterns.word.read()),E)return this._create_token(r.TEXT,E)},p.exports.Tokenizer=b,p.exports.TOKEN=r}],M={};function e(p){var g=M[p];if(g!==void 0)return g.exports;var c=M[p]={exports:{}};return Y[p](c,c.exports,e),c.exports}var I=e(18);O=I})();var G=O;if(!0)!(de=[Q,Q("6UM0"),Q("TXwP")],K=function(Y){var M=Q("6UM0"),e=Q("TXwP");return{html_beautify:function(I,p){return G(I,p,M.js_beautify,e.css_beautify)}}}.apply(we,de),K!==void 0&&(ot.exports=K));else var U,S})()},"rAM+":function(ot,we,Q){"use strict";Q.d(we,"a",function(){return K});var de=Q("Qw5x");function K(O,G){var U;if(typeof Symbol=="undefined"||O[Symbol.iterator]==null){if(Array.isArray(O)||(U=Object(de.a)(O))||G&&O&&typeof O.length=="number"){U&&(O=U);var S=0,Y=function(){};return{s:Y,n:function(){return S>=O.length?{done:!0}:{done:!1,value:O[S++]}},e:function(g){throw g},f:Y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M=!0,e=!1,I;return{s:function(){U=O[Symbol.iterator]()},n:function(){var g=U.next();return M=g.done,g},e:function(g){e=!0,I=g},f:function(){try{!M&&U.return!=null&&U.return()}finally{if(e)throw I}}}}},rUJ1:function(ot,we){const Q=/[&<>"']/,de=/[&<>"']/g,K=/[<>"']|&(?!#?\w+;)/,O=/[<>"']|&(?!#?\w+;)/g,G={"&":"&","<":"<",">":">",'"':""","'":"'"},U=v=>G[v];function S(v,d){if(d){if(Q.test(v))return v.replace(de,U)}else if(K.test(v))return v.replace(O,U);return v}const Y=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function M(v){return v.replace(Y,(d,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const e=/(^|[^\[])\^/g;function I(v,d){v=v.source||v,d=d||"";const n={replace:(l,u)=>(u=u.source||u,u=u.replace(e,"$1"),v=v.replace(l,u),n),getRegex:()=>new RegExp(v,d)};return n}const p=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function c(v,d,n){if(v){let l;try{l=decodeURIComponent(M(n)).replace(p,"").toLowerCase()}catch(u){return null}if(l.indexOf("javascript:")===0||l.indexOf("vbscript:")===0||l.indexOf("data:")===0)return null}d&&!g.test(n)&&(n=a(d,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(l){return null}return n}const s={},i=/^[^:]+:\/*[^/]*$/,A=/^([^:]+:)[\s\S]*$/,o=/^([^:]+:\/*[^/]*)[\s\S]*$/;function a(v,d){s[" "+v]||(i.test(v)?s[" "+v]=v+"/":s[" "+v]=y(v,"/",!0)),v=s[" "+v];const n=v.indexOf(":")===-1;return d.substring(0,2)==="//"?n?d:v.replace(A,"$1")+d:d.charAt(0)==="/"?n?d:v.replace(o,"$1")+d:v+d}const r={exec:function(){}};function t(v){let d=1,n,l;for(;d<arguments.length;d++){n=arguments[d];for(l in n)Object.prototype.hasOwnProperty.call(n,l)&&(v[l]=n[l])}return v}function b(v,d){const n=v.replace(/\|/g,(_,m,h)=>{let R=!1,F=m;for(;--F>=0&&h[F]==="\\";)R=!R;return R?"|":" |"}),l=n.split(/ \|/);let u=0;if(l.length>d)l.splice(d);else for(;l.length<d;)l.push("");for(;u<l.length;u++)l[u]=l[u].trim().replace(/\\\|/g,"|");return l}function y(v,d,n){const l=v.length;if(l===0)return"";let u=0;for(;u<l;){const _=v.charAt(l-u-1);if(_===d&&!n)u++;else if(_!==d&&n)u++;else break}return v.substr(0,l-u)}function E(v,d){if(v.indexOf(d[1])===-1)return-1;const n=v.length;let l=0,u=0;for(;u<n;u++)if(v[u]==="\\")u++;else if(v[u]===d[0])l++;else if(v[u]===d[1]&&(l--,l<0))return u;return-1}function T(v){v&&v.sanitize&&!v.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}ot.exports={escape:S,unescape:M,edit:I,cleanUrl:c,resolveUrl:a,noopTest:r,merge:t,splitCells:b,rtrim:y,findClosingBracket:E,checkSanitizeDeprecation:T}},sR1s:function(ot,we,Q){"use strict";Q.d(we,"b",function(){return G}),Q.d(we,"a",function(){return U}),Q.d(we,"c",function(){return S}),Q.d(we,"d",function(){return Y});var de=Q("U8pU"),K="RC_TABLE_KEY";function O(M){return M==null?[]:Array.isArray(M)?M:[M]}function G(M,e){if(!e&&typeof e!="number")return M;for(var I=O(e),p=M,g=0;g<I.length;g+=1){if(!p)return null;var c=I[g];p=p[c]}return p}function U(M){var e=[],I={};return M.forEach(function(p){for(var g=p||{},c=g.key,s=g.dataIndex,i=c||O(s).join("-")||K;I[i];)i="".concat(i,"_next");I[i]=!0,e.push(i)}),e}function S(){var M={};function e(c,s){s&&Object.keys(s).forEach(function(i){var A=s[i];A&&Object(de.a)(A)==="object"?(c[i]=c[i]||{},e(c[i],A)):c[i]=A})}for(var I=arguments.length,p=new Array(I),g=0;g<I;g++)p[g]=arguments[g];return p.forEach(function(c){e(M,c)}),M}function Y(M){return M!=null}},sboe:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return O});var de=Q("q1tI"),K=Q.n(de),O=de.createContext(null)},t23M:function(ot,we,Q){"use strict";var de=Q("VTBJ"),K=Q("1OyB"),O=Q("vuIU"),G=Q("Ji7U"),U=Q("LK+K"),S=Q("q1tI"),Y=Q.n(S),M=Q("m+aA"),e=Q("Zm9Q"),I=Q("Kwbf"),p=Q("c+Xe"),g=Q("bdgK"),c="rc-observer-key",s=function(i){Object(G.a)(o,i);var A=Object(U.a)(o);function o(){var a;return Object(K.a)(this,o),a=A.apply(this,arguments),a.resizeObserver=null,a.childNode=null,a.currentElement=null,a.state={width:0,height:0,offsetHeight:0,offsetWidth:0},a.onResize=function(r){var t=a.props.onResize,b=r[0].target,y=b.getBoundingClientRect(),E=y.width,T=y.height,v=b.offsetWidth,d=b.offsetHeight,n=Math.floor(E),l=Math.floor(T);if(a.state.width!==n||a.state.height!==l||a.state.offsetWidth!==v||a.state.offsetHeight!==d){var u={width:n,height:l,offsetWidth:v,offsetHeight:d};a.setState(u),t&&Promise.resolve().then(function(){t(Object(de.a)(Object(de.a)({},u),{},{offsetWidth:v,offsetHeight:d}))})}},a.setChildNode=function(r){a.childNode=r},a}return Object(O.a)(o,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var r=this.props.disabled;if(r){this.destroyObserver();return}var t=Object(M.a)(this.childNode||this),b=t!==this.currentElement;b&&(this.destroyObserver(),this.currentElement=t),!this.resizeObserver&&t&&(this.resizeObserver=new g.default(this.onResize),this.resizeObserver.observe(t))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var r=this.props.children,t=Object(e.a)(r);if(t.length>1)Object(I.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(t.length===0)return Object(I.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var b=t[0];if(S.isValidElement(b)&&Object(p.c)(b)){var y=b.ref;t[0]=S.cloneElement(b,{ref:Object(p.a)(y,this.setChildNode)})}return t.length===1?t[0]:t.map(function(E,T){return!S.isValidElement(E)||"key"in E&&E.key!==null?E:S.cloneElement(E,{key:"".concat(c,"-").concat(T)})})}}]),o}(S.Component);s.displayName="ResizeObserver",we.a=s},t9D7:function(ot,we,Q){"use strict";Q.d(we,"b",function(){return Y}),Q.d(we,"g",function(){return e}),Q.d(we,"d",function(){return I}),Q.d(we,"e",function(){return p}),Q.d(we,"a",function(){return g}),Q.d(we,"f",function(){return i}),Q.d(we,"c",function(){return A});var de=Q("Vhoy"),K=Q("MI8n"),O=Q("pmY6"),G=Q("Cg/j"),U=Q("ic2d"),S=Q("nEHx");const Y=Object(G.c)("themeService");var M;(function(o){function a(r){return r&&typeof r=="object"&&typeof r.id=="string"}o.isThemeColor=a})(M||(M={}));function e(o){return{id:o}}var I;(function(o){function a(T){return T&&typeof T=="object"&&typeof T.id=="string"&&(typeof T.color=="undefined"||M.isThemeColor(T.color))}o.isThemeIcon=a;const r=new RegExp(`^\\$\\((${de.a.iconNameExpression}(?:${de.a.iconModifierExpression})?)\\)$`);function t(T){const v=r.exec(T);if(!v)return;let[,d]=v;return{id:d}}o.fromString=t;function b(T,v){let d=T.id;const n=d.lastIndexOf("~");return n!==-1&&(d=d.substring(0,n)),v&&(d=`${d}~${v}`),{id:d}}o.modify=b;function y(T,v){var d,n;return T.id===v.id&&((d=T.color)===null||d===void 0?void 0:d.id)===((n=v.color)===null||n===void 0?void 0:n.id)}o.isEqual=y;function E(T,v){return{id:T.id,color:v?e(v):void 0}}o.asThemeIcon=E,o.asClassNameArray=de.a.asClassNameArray,o.asClassName=de.a.asClassName,o.asCSSSelector=de.a.asCSSSelector})(I||(I={}));function p(o){switch(o){case S.a.DARK:return"vs-dark";case S.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const g={ThemingContribution:"base.contributions.theming"};class c{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new K.b}onColorThemeChange(o){return this.themingParticipants.push(o),this.onThemingParticipantAddedEmitter.fire(o),Object(O.i)(()=>{const a=this.themingParticipants.indexOf(o);this.themingParticipants.splice(a,1)})}getThemingParticipants(){return this.themingParticipants}}let s=new c;U.a.add(g.ThemingContribution,s);function i(o){return s.onColorThemeChange(o)}class A extends O.a{constructor(o){super();this.themeService=o,this.theme=o.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(a=>this.onThemeChange(a)))}onThemeChange(o){this.theme=o,this.updateStyles()}updateStyles(){}}},ulZh:function(ot,we,Q){typeof window!="undefined"&&function(K,O){ot.exports=O()}(this,function(){return function(de){var K={};function O(G){if(K[G])return K[G].exports;var U=K[G]={i:G,l:!1,exports:{}};return de[G].call(U.exports,U,U.exports,O),U.l=!0,U.exports}return O.m=de,O.c=K,O.d=function(G,U,S){O.o(G,U)||Object.defineProperty(G,U,{enumerable:!0,get:S})},O.r=function(G){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},O.t=function(G,U){if(U&1&&(G=O(G)),U&8)return G;if(U&4&&typeof G=="object"&&G&&G.__esModule)return G;var S=Object.create(null);if(O.r(S),Object.defineProperty(S,"default",{enumerable:!0,value:G}),U&2&&typeof G!="string")for(var Y in G)O.d(S,Y,function(M){return G[M]}.bind(null,Y));return S},O.n=function(G){var U=G&&G.__esModule?function(){return G.default}:function(){return G};return O.d(U,"a",U),U},O.o=function(G,U){return Object.prototype.hasOwnProperty.call(G,U)},O.p="/dist/",O(O.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(de,K,O){"use strict";var G=Object.prototype.hasOwnProperty,U="~";function S(){}Object.create&&(S.prototype=Object.create(null),new S().__proto__||(U=!1));function Y(p,g,c){this.fn=p,this.context=g,this.once=c||!1}function M(p,g,c,s,i){if(typeof c!="function")throw new TypeError("The listener must be a function");var A=new Y(c,s||p,i),o=U?U+g:g;return p._events[o]?p._events[o].fn?p._events[o]=[p._events[o],A]:p._events[o].push(A):(p._events[o]=A,p._eventsCount++),p}function e(p,g){--p._eventsCount===0?p._events=new S:delete p._events[g]}function I(){this._events=new S,this._eventsCount=0}I.prototype.eventNames=function(){var g=[],c,s;if(this._eventsCount===0)return g;for(s in c=this._events)G.call(c,s)&&g.push(U?s.slice(1):s);return Object.getOwnPropertySymbols?g.concat(Object.getOwnPropertySymbols(c)):g},I.prototype.listeners=function(g){var c=U?U+g:g,s=this._events[c];if(!s)return[];if(s.fn)return[s.fn];for(var i=0,A=s.length,o=new Array(A);i<A;i++)o[i]=s[i].fn;return o},I.prototype.listenerCount=function(g){var c=U?U+g:g,s=this._events[c];return s?s.fn?1:s.length:0},I.prototype.emit=function(g,c,s,i,A,o){var a=U?U+g:g;if(!this._events[a])return!1;var r=this._events[a],t=arguments.length,b,y;if(r.fn){r.once&&this.removeListener(g,r.fn,void 0,!0);switch(t){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,c),!0;case 3:return r.fn.call(r.context,c,s),!0;case 4:return r.fn.call(r.context,c,s,i),!0;case 5:return r.fn.call(r.context,c,s,i,A),!0;case 6:return r.fn.call(r.context,c,s,i,A,o),!0}for(y=1,b=new Array(t-1);y<t;y++)b[y-1]=arguments[y];r.fn.apply(r.context,b)}else{var E=r.length,T;for(y=0;y<E;y++){r[y].once&&this.removeListener(g,r[y].fn,void 0,!0);switch(t){case 1:r[y].fn.call(r[y].context);break;case 2:r[y].fn.call(r[y].context,c);break;case 3:r[y].fn.call(r[y].context,c,s);break;case 4:r[y].fn.call(r[y].context,c,s,i);break;default:if(!b)for(T=1,b=new Array(t-1);T<t;T++)b[T-1]=arguments[T];r[y].fn.apply(r[y].context,b)}}}return!0},I.prototype.on=function(g,c,s){return M(this,g,c,s,!1)},I.prototype.once=function(g,c,s){return M(this,g,c,s,!0)},I.prototype.removeListener=function(g,c,s,i){var A=U?U+g:g;if(!this._events[A])return this;if(!c)return e(this,A),this;var o=this._events[A];if(o.fn)o.fn===c&&(!i||o.once)&&(!s||o.context===s)&&e(this,A);else{for(var a=0,r=[],t=o.length;a<t;a++)(o[a].fn!==c||i&&!o[a].once||s&&o[a].context!==s)&&r.push(o[a]);r.length?this._events[A]=r.length===1?r[0]:r:e(this,A)}return this},I.prototype.removeAllListeners=function(g){var c;return g?(c=U?U+g:g,this._events[c]&&e(this,c)):(this._events=new S,this._eventsCount=0),this},I.prototype.off=I.prototype.removeListener,I.prototype.addListener=I.prototype.on,I.prefixed=U,I.EventEmitter=I,de.exports=I},"./node_modules/url-toolkit/src/url-toolkit.js":function(de,K,O){(function(G){var U=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,S=/^([^\/?#]*)([^]*)$/,Y=/(?:\/|^)\.(?=\/)/g,M=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,e={buildAbsoluteURL:function(I,p,g){if(g=g||{},I=I.trim(),p=p.trim(),!p){if(!g.alwaysNormalize)return I;var c=e.parseURL(I);if(!c)throw new Error("Error trying to parse base URL.");return c.path=e.normalizePath(c.path),e.buildURLFromParts(c)}var s=e.parseURL(p);if(!s)throw new Error("Error trying to parse relative URL.");if(s.scheme)return g.alwaysNormalize?(s.path=e.normalizePath(s.path),e.buildURLFromParts(s)):p;var i=e.parseURL(I);if(!i)throw new Error("Error trying to parse base URL.");if(!i.netLoc&&i.path&&i.path[0]!=="/"){var A=S.exec(i.path);i.netLoc=A[1],i.path=A[2]}i.netLoc&&!i.path&&(i.path="/");var o={scheme:i.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(o.netLoc=i.netLoc,s.path[0]!=="/"))if(!s.path)o.path=i.path,s.params||(o.params=i.params,s.query||(o.query=i.query));else{var a=i.path,r=a.substring(0,a.lastIndexOf("/")+1)+s.path;o.path=e.normalizePath(r)}return o.path===null&&(o.path=g.alwaysNormalize?e.normalizePath(s.path):s.path),e.buildURLFromParts(o)},parseURL:function(I){var p=U.exec(I);return p?{scheme:p[1]||"",netLoc:p[2]||"",path:p[3]||"",params:p[4]||"",query:p[5]||"",fragment:p[6]||""}:null},normalizePath:function(I){for(I=I.split("").reverse().join("").replace(Y,"");I.length!==(I=I.replace(M,"")).length;);return I.split("").reverse().join("")},buildURLFromParts:function(I){return I.scheme+I.netLoc+I.path+I.params+I.query+I.fragment}};de.exports=e})(this)},"./node_modules/webworkify-webpack/index.js":function(de,K,O){function G(g){var c={};function s(A){if(c[A])return c[A].exports;var o=c[A]={i:A,l:!1,exports:{}};return g[A].call(o.exports,o,o.exports,s),o.l=!0,o.exports}s.m=g,s.c=c,s.i=function(A){return A},s.d=function(A,o,a){s.o(A,o)||Object.defineProperty(A,o,{configurable:!1,enumerable:!0,get:a})},s.r=function(A){Object.defineProperty(A,"__esModule",{value:!0})},s.n=function(A){var o=A&&A.__esModule?function(){return A.default}:function(){return A};return s.d(o,"a",o),o},s.o=function(A,o){return Object.prototype.hasOwnProperty.call(A,o)},s.p="/",s.oe=function(A){throw console.error(A),A};var i=s(s.s=ENTRY_MODULE);return i.default||i}var U="[\\.|\\-|\\+|\\w|/|@]+",S="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+U+").*?\\)";function Y(g){return(g+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function M(g){return!isNaN(1*g)}function e(g,c,s){var i={};i[s]=[];var A=c.toString(),o=A.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!o)return i;for(var a=o[1],r=new RegExp("(\\\\n|\\W)"+Y(a)+S,"g"),t;t=r.exec(A);){if(t[3]==="dll-reference")continue;i[s].push(t[3])}for(r=new RegExp("\\("+Y(a)+'\\("(dll-reference\\s('+U+'))"\\)\\)'+S,"g");t=r.exec(A);)g[t[2]]||(i[s].push(t[1]),g[t[2]]=O(t[1]).m),i[t[2]]=i[t[2]]||[],i[t[2]].push(t[4]);for(var b=Object.keys(i),y=0;y<b.length;y++)for(var E=0;E<i[b[y]].length;E++)M(i[b[y]][E])&&(i[b[y]][E]=1*i[b[y]][E]);return i}function I(g){var c=Object.keys(g);return c.reduce(function(s,i){return s||g[i].length>0},!1)}function p(g,c){for(var s={main:[c]},i={main:[]},A={main:{}};I(s);)for(var o=Object.keys(s),a=0;a<o.length;a++){var r=o[a],t=s[r],b=t.pop();if(A[r]=A[r]||{},A[r][b]||!g[r][b])continue;A[r][b]=!0,i[r]=i[r]||[],i[r].push(b);for(var y=e(g,g[r][b],r),E=Object.keys(y),T=0;T<E.length;T++)s[E[T]]=s[E[T]]||[],s[E[T]]=s[E[T]].concat(y[E[T]])}return i}de.exports=function(g,c){c=c||{};var s={main:O.m},i=c.all?{main:Object.keys(s.main)}:p(s,g),A="";Object.keys(i).filter(function(b){return b!=="main"}).forEach(function(b){for(var y=0;i[b][y];)y++;i[b].push(y),s[b][y]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",A=A+"var "+b+" = ("+G.toString().replace("ENTRY_MODULE",JSON.stringify(y))+")({"+i[b].map(function(E){return""+JSON.stringify(E)+": "+s[b][E].toString()}).join(",")+`});
|
|
`}),A=A+"new (("+G.toString().replace("ENTRY_MODULE",JSON.stringify(g))+")({"+i.main.map(function(b){return""+JSON.stringify(b)+": "+s.main[b].toString()}).join(",")+"}))(self);";var o=new window.Blob([A],{type:"text/javascript"});if(c.bare)return o;var a=window.URL||window.webkitURL||window.mozURL||window.msURL,r=a.createObjectURL(o),t=new window.Worker(r);return t.objectURL=r,t}},"./src/config.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"hlsDefaultConfig",function(){return T}),O.d(K,"mergeConfig",function(){return d}),O.d(K,"enableStreamingMode",function(){return n});var G=O("./src/controller/abr-controller.ts"),U=O("./src/controller/audio-stream-controller.ts"),S=O("./src/controller/audio-track-controller.ts"),Y=O("./src/controller/subtitle-stream-controller.ts"),M=O("./src/controller/subtitle-track-controller.ts"),e=O("./src/controller/buffer-controller.ts"),I=O("./src/controller/timeline-controller.ts"),p=O("./src/controller/cap-level-controller.ts"),g=O("./src/controller/fps-controller.ts"),c=O("./src/controller/eme-controller.ts"),s=O("./src/controller/cmcd-controller.ts"),i=O("./src/utils/xhr-loader.ts"),A=O("./src/utils/fetch-loader.ts"),o=O("./src/utils/cues.ts"),a=O("./src/utils/mediakeys-helper.ts"),r=O("./src/utils/logger.ts");function t(){return t=Object.assign||function(l){for(var u=1;u<arguments.length;u++){var _=arguments[u];for(var m in _)Object.prototype.hasOwnProperty.call(_,m)&&(l[m]=_[m])}return l},t.apply(this,arguments)}function b(l,u){var _=Object.keys(l);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(l);u&&(m=m.filter(function(h){return Object.getOwnPropertyDescriptor(l,h).enumerable})),_.push.apply(_,m)}return _}function y(l){for(var u=1;u<arguments.length;u++){var _=arguments[u]!=null?arguments[u]:{};u%2?b(Object(_),!0).forEach(function(m){E(l,m,_[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(_)):b(Object(_)).forEach(function(m){Object.defineProperty(l,m,Object.getOwnPropertyDescriptor(_,m))})}return l}function E(l,u,_){return u in l?Object.defineProperty(l,u,{value:_,enumerable:!0,configurable:!0,writable:!0}):l[u]=_,l}var T=y(y({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:i.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:G.default,bufferController:e.default,capLevelController:p.default,fpsController:g.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:a.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},v()),{},{subtitleStreamController:Y.SubtitleStreamController,subtitleTrackController:M.default,timelineController:I.TimelineController,audioStreamController:U.default,audioTrackController:S.default,emeController:c.default,cmcdController:s.default});function v(){return{cueHandler:o.default,enableCEA708Captions:!0,enableWebVTT:!0,enableIMSC1:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function d(l,u){if((u.liveSyncDurationCount||u.liveMaxLatencyDurationCount)&&(u.liveSyncDuration||u.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(u.liveMaxLatencyDurationCount!==void 0&&(u.liveSyncDurationCount===void 0||u.liveMaxLatencyDurationCount<=u.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(u.liveMaxLatencyDuration!==void 0&&(u.liveSyncDuration===void 0||u.liveMaxLatencyDuration<=u.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return t({},l,u)}function n(l){var u=l.loader;if(u!==A.default&&u!==i.default)r.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),l.progressive=!1;else{var _=Object(A.fetchSupported)();_&&(l.loader=A.default,l.progressive=!0,l.enableSoftwareAES=!0,r.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/polyfills/number.ts"),U=O("./src/utils/ewma-bandwidth-estimator.ts"),S=O("./src/events.ts"),Y=O("./src/utils/buffer-helper.ts"),M=O("./src/errors.ts"),e=O("./src/types/loader.ts"),I=O("./src/utils/logger.ts");function p(s,i){for(var A=0;A<i.length;A++){var o=i[A];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}function g(s,i,A){return i&&p(s.prototype,i),A&&p(s,A),s}var c=function(){function s(A){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=A;var o=A.config;this.bwEstimator=new U.default(o.abrEwmaSlowVoD,o.abrEwmaFastVoD,o.abrEwmaDefaultEstimate),this.registerListeners()}var i=s.prototype;return i.registerListeners=function(){var o=this.hls;o.on(S.Events.FRAG_LOADING,this.onFragLoading,this),o.on(S.Events.FRAG_LOADED,this.onFragLoaded,this),o.on(S.Events.FRAG_BUFFERED,this.onFragBuffered,this),o.on(S.Events.LEVEL_LOADED,this.onLevelLoaded,this),o.on(S.Events.ERROR,this.onError,this)},i.unregisterListeners=function(){var o=this.hls;o.off(S.Events.FRAG_LOADING,this.onFragLoading,this),o.off(S.Events.FRAG_LOADED,this.onFragLoaded,this),o.off(S.Events.FRAG_BUFFERED,this.onFragBuffered,this),o.off(S.Events.LEVEL_LOADED,this.onLevelLoaded,this),o.off(S.Events.ERROR,this.onError,this)},i.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},i.onFragLoading=function(o,a){var r=a.frag;if(r.type===e.PlaylistLevelType.MAIN&&!this.timer){var t;this.fragCurrent=r,this.partCurrent=(t=a.part)!=null?t:null,this.timer=self.setInterval(this.onCheck,100)}},i.onLevelLoaded=function(o,a){var r=this.hls.config;a.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)},i._abandonRulesCheck=function(){var o=this.fragCurrent,a=this.partCurrent,r=this.hls,t=r.autoLevelEnabled,b=r.config,y=r.media;if(!o||!y)return;var E=a?a.stats:o.stats,T=a?a.duration:o.duration;if(E.aborted){I.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!t||y.paused||!y.playbackRate||!y.readyState)return;var v=performance.now()-E.loading.start,d=Math.abs(y.playbackRate);if(v<=500*T/d)return;var n=r.levels,l=r.minAutoLevel,u=n[o.level],_=E.total||Math.max(E.loaded,Math.round(T*u.maxBitrate/8)),m=Math.max(1,E.bwEstimate?E.bwEstimate/8:E.loaded*1e3/v),h=(_-E.loaded)/m,R=y.currentTime,F=(Y.BufferHelper.bufferInfo(y,R,b.maxBufferHole).end-R)/d;if(F>=2*T/d||h<=F)return;var C=Number.POSITIVE_INFINITY,P;for(P=o.level-1;P>l;P--){var j=n[P].maxBitrate;if(C=T*j/(8*.8*m),C<F)break}if(C>=h)return;var D=this.bwEstimator.getEstimate();I.logger.warn("Fragment "+o.sn+(a?" part "+a.index:"")+" of level "+o.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+P+`
|
|
Current BW estimate: `+(Object(G.isFiniteNumber)(D)?(D/1024).toFixed(3):"Unknown")+` Kb/s
|
|
Estimated load time for current fragment: `+h.toFixed(3)+` s
|
|
Estimated load time for the next fragment: `+C.toFixed(3)+` s
|
|
Time to underbuffer: `+F.toFixed(3)+" s"),r.nextLoadLevel=P,this.bwEstimator.sample(v,E.loaded),this.clearTimer(),o.loader&&(this.fragCurrent=this.partCurrent=null,o.loader.abort()),r.trigger(S.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:o,part:a,stats:E})},i.onFragLoaded=function(o,a){var r=a.frag,t=a.part;if(r.type===e.PlaylistLevelType.MAIN&&Object(G.isFiniteNumber)(r.sn)){var b=t?t.stats:r.stats,y=t?t.duration:r.duration;if(this.clearTimer(),this.lastLoadedFragLevel=r.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var E=this.hls.levels[r.level],T=(E.loaded?E.loaded.bytes:0)+b.loaded,v=(E.loaded?E.loaded.duration:0)+y;E.loaded={bytes:T,duration:v},E.realBitrate=Math.round(8*T/v)}if(r.bitrateTest){var d={stats:b,frag:r,part:t,id:r.type};this.onFragBuffered(S.Events.FRAG_BUFFERED,d),r.bitrateTest=!1}}},i.onFragBuffered=function(o,a){var r=a.frag,t=a.part,b=t?t.stats:r.stats;if(b.aborted)return;if(r.type!==e.PlaylistLevelType.MAIN||r.sn==="initSegment")return;var y=b.parsing.end-b.loading.start;this.bwEstimator.sample(y,b.loaded),b.bwEstimate=this.bwEstimator.getEstimate(),r.bitrateTest?this.bitrateTestDelay=y/1e3:this.bitrateTestDelay=0},i.onError=function(o,a){switch(a.details){case M.ErrorDetails.FRAG_LOAD_ERROR:case M.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},i.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},i.getNextABRAutoLevel=function(){var o=this.fragCurrent,a=this.partCurrent,r=this.hls,t=r.maxAutoLevel,b=r.config,y=r.minAutoLevel,E=r.media,T=a?a.duration:o?o.duration:0,v=E?E.currentTime:0,d=E&&E.playbackRate!==0?Math.abs(E.playbackRate):1,n=this.bwEstimator?this.bwEstimator.getEstimate():b.abrEwmaDefaultEstimate,l=(Y.BufferHelper.bufferInfo(E,v,b.maxBufferHole).end-v)/d,u=this.findBestLevel(n,y,t,l,b.abrBandWidthFactor,b.abrBandWidthUpFactor);if(u>=0)return u;I.logger.trace((l?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var _=T?Math.min(T,b.maxStarvationDelay):b.maxStarvationDelay,m=b.abrBandWidthFactor,h=b.abrBandWidthUpFactor;if(!l){var R=this.bitrateTestDelay;if(R){var F=T?Math.min(T,b.maxLoadingDelay):b.maxLoadingDelay;_=F-R,I.logger.trace("bitrate test took "+Math.round(1e3*R)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*_)+" ms"),m=h=1}}return u=this.findBestLevel(n,y,t,l+_,m,h),Math.max(u,0)},i.findBestLevel=function(o,a,r,t,b,y){for(var E,T=this.fragCurrent,v=this.partCurrent,d=this.lastLoadedFragLevel,n=this.hls.levels,l=n[d],u=!!(l!=null&&(E=l.details)!==null&&E!==void 0&&E.live),_=l==null?void 0:l.codecSet,m=v?v.duration:T?T.duration:0,h=r;h>=a;h--){var R=n[h];if(!R||_&&R.codecSet!==_)continue;var F=R.details,C=(v?F==null?void 0:F.partTarget:F==null?void 0:F.averagetargetduration)||m,P=void 0;h<=d?P=b*o:P=y*o;var j=n[h].maxBitrate,D=j*C/P;if(I.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+h+"/"+Math.round(P)+"/"+j+"/"+C+"/"+t+"/"+D),P>j&&(!D||u&&!this.bitrateTestDelay||D<t))return h}return-1},g(s,[{key:"nextAutoLevel",get:function(){var o=this._nextAutoLevel,a=this.bwEstimator;if(o!==-1&&(!a||!a.canEstimate()))return o;var r=this.getNextABRAutoLevel();return o!==-1&&(r=Math.min(o,r)),r},set:function(o){this._nextAutoLevel=o}}]),s}();K.default=c},"./src/controller/audio-stream-controller.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/polyfills/number.ts"),U=O("./src/controller/base-stream-controller.ts"),S=O("./src/events.ts"),Y=O("./src/utils/buffer-helper.ts"),M=O("./src/controller/fragment-tracker.ts"),e=O("./src/types/level.ts"),I=O("./src/types/loader.ts"),p=O("./src/loader/fragment.ts"),g=O("./src/demux/chunk-cache.ts"),c=O("./src/demux/transmuxer-interface.ts"),s=O("./src/types/transmuxer.ts"),i=O("./src/controller/fragment-finders.ts"),A=O("./src/utils/discontinuities.ts"),o=O("./src/errors.ts"),a=O("./src/utils/logger.ts");function r(){return r=Object.assign||function(T){for(var v=1;v<arguments.length;v++){var d=arguments[v];for(var n in d)Object.prototype.hasOwnProperty.call(d,n)&&(T[n]=d[n])}return T},r.apply(this,arguments)}function t(T,v){T.prototype=Object.create(v.prototype),T.prototype.constructor=T,b(T,v)}function b(T,v){return b=Object.setPrototypeOf||function(n,l){return n.__proto__=l,n},b(T,v)}var y=100,E=function(T){t(v,T);function v(n,l){var u;return u=T.call(this,n,l,"[audio-stream-controller]")||this,u.videoBuffer=null,u.videoTrackCC=-1,u.waitingVideoCC=-1,u.audioSwitch=!1,u.trackId=-1,u.waitingData=null,u.mainDetails=null,u.bufferFlushed=!1,u._registerListeners(),u}var d=v.prototype;return d.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},d._registerListeners=function(){var l=this.hls;l.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.on(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.on(S.Events.LEVEL_LOADED,this.onLevelLoaded,this),l.on(S.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),l.on(S.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),l.on(S.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),l.on(S.Events.ERROR,this.onError,this),l.on(S.Events.BUFFER_RESET,this.onBufferReset,this),l.on(S.Events.BUFFER_CREATED,this.onBufferCreated,this),l.on(S.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),l.on(S.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),l.on(S.Events.FRAG_BUFFERED,this.onFragBuffered,this)},d._unregisterListeners=function(){var l=this.hls;l.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.off(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.off(S.Events.LEVEL_LOADED,this.onLevelLoaded,this),l.off(S.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),l.off(S.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),l.off(S.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),l.off(S.Events.ERROR,this.onError,this),l.off(S.Events.BUFFER_RESET,this.onBufferReset,this),l.off(S.Events.BUFFER_CREATED,this.onBufferCreated,this),l.off(S.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),l.off(S.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),l.off(S.Events.FRAG_BUFFERED,this.onFragBuffered,this)},d.onInitPtsFound=function(l,u){var _=u.frag,m=u.id,h=u.initPTS;if(m==="main"){var R=_.cc;this.initPTS[_.cc]=h,this.log("InitPTS for cc: "+R+" found from main: "+h),this.videoTrackCC=R,this.state===U.State.WAITING_INIT_PTS&&this.tick()}},d.startLoad=function(l){if(!this.levels){this.startPosition=l,this.state=U.State.STOPPED;return}var u=this.lastCurrentTime;this.stopLoad(),this.setInterval(y),this.fragLoadError=0,u>0&&l===-1?(this.log("Override startPosition with lastCurrentTime @"+u.toFixed(3)),this.state=U.State.IDLE):(this.loadedmetadata=!1,this.state=U.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=l,this.tick()},d.doTick=function(){switch(this.state){case U.State.IDLE:this.doTickIdle();break;case U.State.WAITING_TRACK:{var l,u=this.levels,_=this.trackId,m=u==null||((l=u[_])===null||l===void 0)?void 0:l.details;if(m){if(this.waitForCdnTuneIn(m))break;this.state=U.State.WAITING_INIT_PTS}break}case U.State.FRAG_LOADING_WAITING_RETRY:{var h,R=performance.now(),F=this.retryDate;(!F||R>=F||(h=this.media)!==null&&h!==void 0&&h.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=U.State.IDLE);break}case U.State.WAITING_INIT_PTS:{var C=this.waitingData;if(C){var P=C.frag,j=C.part,D=C.cache,$=C.complete;if(this.initPTS[P.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=U.State.FRAG_LOADING;var oe=D.flush(),Ee={frag:P,part:j,payload:oe,networkDetails:null};this._handleFragmentLoadProgress(Ee),$&&T.prototype._handleFragmentLoadComplete.call(this,Ee)}else if(this.videoTrackCC!==this.waitingVideoCC)a.logger.log("Waiting fragment cc ("+P.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var ve=this.getLoadPosition(),Le=Y.BufferHelper.bufferInfo(this.mediaBuffer,ve,this.config.maxBufferHole),Se=Object(i.fragmentWithinToleranceTest)(Le.end,this.config.maxFragLookUpTolerance,P);Se<0&&(a.logger.log("Waiting fragment cc ("+P.cc+") @ "+P.start+" cancelled because another fragment at "+Le.end+" is needed"),this.clearWaitingFragment())}}else this.state=U.State.IDLE}}this.onTickEnd()},d.clearWaitingFragment=function(){var l=this.waitingData;l&&(this.fragmentTracker.removeFragment(l.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=U.State.IDLE)},d.onTickEnd=function(){var l=this.media;if(!l||!l.readyState)return;var u=this.mediaBuffer?this.mediaBuffer:l,_=u.buffered;!this.loadedmetadata&&_.length&&(this.loadedmetadata=!0),this.lastCurrentTime=l.currentTime},d.doTickIdle=function(){var l,u,_=this.hls,m=this.levels,h=this.media,R=this.trackId,F=_.config;if(!m||!m[R])return;if(!h&&(this.startFragRequested||!F.startFragPrefetch))return;var C=m[R],P=C.details;if(!P||P.live&&this.levelLastLoaded!==R||this.waitForCdnTuneIn(P)){this.state=U.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,p.ElementaryStreamTypes.AUDIO,I.PlaylistLevelType.AUDIO));var j=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,I.PlaylistLevelType.AUDIO);if(j===null)return;var D=j.len,$=this.getMaxBufferLength(),oe=this.audioSwitch;if(D>=$&&!oe)return;if(!oe&&this._streamEnded(j,P)){_.trigger(S.Events.BUFFER_EOS,{type:"audio"}),this.state=U.State.ENDED;return}var Ee=P.fragments,ve=Ee[0].start,Le=j.end;if(oe){var Se=this.getLoadPosition();Le=Se,P.PTSKnown&&Se<ve&&((j.end>ve||j.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),h.currentTime=ve+.05))}var Re=this.getNextFragment(Le,P);if(!Re){this.bufferFlushed=!0;return}((l=Re.decryptdata)===null||l===void 0?void 0:l.keyFormat)==="identity"&&!((u=Re.decryptdata)!==null&&u!==void 0&&u.key)?this.loadKey(Re,P):this.loadFragment(Re,P,Le)},d.getMaxBufferLength=function(){var l=T.prototype.getMaxBufferLength.call(this),u=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,I.PlaylistLevelType.MAIN);return u===null?l:Math.max(l,u.len)},d.onMediaDetaching=function(){this.videoBuffer=null,T.prototype.onMediaDetaching.call(this)},d.onAudioTracksUpdated=function(l,u){var _=u.audioTracks;this.resetTransmuxer(),this.levels=_.map(function(m){return new e.Level(m)})},d.onAudioTrackSwitching=function(l,u){var _=!!u.url;this.trackId=u.id;var m=this.fragCurrent;m!=null&&m.loader&&m.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),_?this.setInterval(y):this.resetTransmuxer(),_?(this.audioSwitch=!0,this.state=U.State.IDLE):this.state=U.State.STOPPED,this.tick()},d.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},d.onLevelLoaded=function(l,u){this.mainDetails=u.details},d.onAudioTrackLoaded=function(l,u){var _,m=this.levels,h=u.details,R=u.id;if(!m){this.warn("Audio tracks were reset while loading level "+R);return}this.log("Track "+R+" loaded ["+h.startSN+","+h.endSN+"],duration:"+h.totalduration);var F=m[R],C=0;if(h.live||(_=F.details)!==null&&_!==void 0&&_.live){var P=this.mainDetails;if(h.fragments[0]||(h.deltaUpdateFailed=!0),h.deltaUpdateFailed||!P)return;!F.details&&h.hasProgramDateTime&&P.hasProgramDateTime?(Object(A.alignMediaPlaylistByPDT)(h,P),C=h.fragments[0].start):C=this.alignPlaylists(h,F.details)}F.details=h,this.levelLastLoaded=R,!this.startFragRequested&&(this.mainDetails||!h.live)&&this.setStartPosition(F.details,C),this.state===U.State.WAITING_TRACK&&!this.waitForCdnTuneIn(h)&&(this.state=U.State.IDLE),this.tick()},d._handleFragmentLoadProgress=function(l){var u,_=l.frag,m=l.part,h=l.payload,R=this.config,F=this.trackId,C=this.levels;if(!C){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+_.sn+" of level "+_.level+" will not be buffered");return}var P=C[F];console.assert(P,"Audio track is defined on fragment load progress");var j=P.details;console.assert(j,"Audio track details are defined on fragment load progress");var D=R.defaultAudioCodec||P.audioCodec||"mp4a.40.2",$=this.transmuxer;$||($=this.transmuxer=new c.default(this.hls,I.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var oe=this.initPTS[_.cc],Ee=(u=_.initSegment)===null||u===void 0?void 0:u.data;if(oe!==void 0){var ve=!1,Le=m?m.index:-1,Se=Le!==-1,Re=new s.ChunkMetadata(_.level,_.sn,_.stats.chunkCount,h.byteLength,Le,Se);$.push(h,Ee,D,"",_,m,j.totalduration,ve,Re,oe)}else{a.logger.log("Unknown video PTS for cc "+_.cc+", waiting for video PTS before demuxing audio frag "+_.sn+" of ["+j.startSN+" ,"+j.endSN+"],track "+F);var De=this.waitingData=this.waitingData||{frag:_,part:m,cache:new g.default,complete:!1},Fe=De.cache;Fe.push(new Uint8Array(h)),this.waitingVideoCC=this.videoTrackCC,this.state=U.State.WAITING_INIT_PTS}},d._handleFragmentLoadComplete=function(l){if(this.waitingData){this.waitingData.complete=!0;return}T.prototype._handleFragmentLoadComplete.call(this,l)},d.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},d.onBufferCreated=function(l,u){var _=u.tracks.audio;_&&(this.mediaBuffer=_.buffer),u.tracks.video&&(this.videoBuffer=u.tracks.video.buffer)},d.onFragBuffered=function(l,u){var _=u.frag,m=u.part;if(_.type!==I.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(_)){this.warn("Fragment "+_.sn+(m?" p: "+m.index:"")+" of level "+_.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}_.sn!=="initSegment"&&(this.fragPrevious=_,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(S.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(_,m)},d.onError=function(l,u){switch(u.details){case o.ErrorDetails.FRAG_LOAD_ERROR:case o.ErrorDetails.FRAG_LOAD_TIMEOUT:case o.ErrorDetails.KEY_LOAD_ERROR:case o.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(I.PlaylistLevelType.AUDIO,u);break;case o.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case o.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==U.State.ERROR&&this.state!==U.State.STOPPED&&(this.state=u.fatal?U.State.ERROR:U.State.IDLE,this.warn(u.details+" while loading frag, switching to "+this.state+" state"));break;case o.ErrorDetails.BUFFER_FULL_ERROR:if(u.parent==="audio"&&(this.state===U.State.PARSING||this.state===U.State.PARSED)){var _=!0,m=this.getFwdBufferInfo(this.mediaBuffer,I.PlaylistLevelType.AUDIO);m&&m.len>.5&&(_=!this.reduceMaxBufferLength(m.len)),_&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,T.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},d.onBufferFlushed=function(l,u){var _=u.type;_===p.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},d._handleTransmuxComplete=function(l){var u,_="audio",m=this.hls,h=l.remuxResult,R=l.chunkMeta,F=this.getCurrentContext(R);if(!F){this.warn("The loading context changed while buffering fragment "+R.sn+" of level "+R.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(R.level);return}var C=F.frag,P=F.part,j=h.audio,D=h.text,$=h.id3,oe=h.initSegment;if(this.fragContextChanged(C))return;if(this.state=U.State.PARSING,this.audioSwitch&&j&&this.completeAudioSwitch(),oe!=null&&oe.tracks&&(this._bufferInitSegment(oe.tracks,C,R),m.trigger(S.Events.FRAG_PARSING_INIT_SEGMENT,{frag:C,id:_,tracks:oe.tracks})),j){var Ee=j.startPTS,ve=j.endPTS,Le=j.startDTS,Se=j.endDTS;P&&(P.elementaryStreams[p.ElementaryStreamTypes.AUDIO]={startPTS:Ee,endPTS:ve,startDTS:Le,endDTS:Se}),C.setElementaryStreamInfo(p.ElementaryStreamTypes.AUDIO,Ee,ve,Le,Se),this.bufferFragmentData(j,C,P,R)}if($!=null&&(u=$.samples)!==null&&u!==void 0&&u.length){var Re=r({frag:C,id:_},$);m.trigger(S.Events.FRAG_PARSING_METADATA,Re)}if(D){var De=r({frag:C,id:_},D);m.trigger(S.Events.FRAG_PARSING_USERDATA,De)}},d._bufferInitSegment=function(l,u,_){if(this.state!==U.State.PARSING)return;l.video&&delete l.video;var m=l.audio;if(!m)return;m.levelCodec=m.codec,m.id="audio",this.log("Init audio buffer, container:"+m.container+", codecs[parsed]=["+m.codec+"]"),this.hls.trigger(S.Events.BUFFER_CODECS,l);var h=m.initSegment;if(h!=null&&h.byteLength){var R={type:"audio",frag:u,part:null,chunkMeta:_,parent:u.type,data:h};this.hls.trigger(S.Events.BUFFER_APPENDING,R)}this.tick()},d.loadFragment=function(l,u,_){var m=this.fragmentTracker.getState(l);this.fragCurrent=l,(this.audioSwitch||m===M.FragmentState.NOT_LOADED||m===M.FragmentState.PARTIAL)&&(l.sn==="initSegment"?this._loadInitSegment(l):u.live&&!Object(G.isFiniteNumber)(this.initPTS[l.cc])?(this.log("Waiting for video PTS in continuity counter "+l.cc+" of live stream before loading audio fragment "+l.sn+" of level "+this.trackId),this.state=U.State.WAITING_INIT_PTS):(this.startFragRequested=!0,T.prototype.loadFragment.call(this,l,u,_)))},d.completeAudioSwitch=function(){var l=this.hls,u=this.media,_=this.trackId;u&&(this.log("Switching audio track : flushing all audio"),T.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,l.trigger(S.Events.AUDIO_TRACK_SWITCHED,{id:_})},v}(U.default);K.default=E},"./src/controller/audio-track-controller.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/events.ts"),U=O("./src/errors.ts"),S=O("./src/controller/base-playlist-controller.ts"),Y=O("./src/types/loader.ts");function M(c,s){for(var i=0;i<s.length;i++){var A=s[i];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(c,A.key,A)}}function e(c,s,i){return s&&M(c.prototype,s),i&&M(c,i),c}function I(c,s){c.prototype=Object.create(s.prototype),c.prototype.constructor=c,p(c,s)}function p(c,s){return p=Object.setPrototypeOf||function(A,o){return A.__proto__=o,A},p(c,s)}var g=function(c){I(s,c);function s(A){var o;return o=c.call(this,A,"[audio-track-controller]")||this,o.tracks=[],o.groupId=null,o.tracksInGroup=[],o.trackId=-1,o.trackName="",o.selectDefaultTrack=!0,o.registerListeners(),o}var i=s.prototype;return i.registerListeners=function(){var o=this.hls;o.on(G.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.on(G.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.on(G.Events.LEVEL_LOADING,this.onLevelLoading,this),o.on(G.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),o.on(G.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),o.on(G.Events.ERROR,this.onError,this)},i.unregisterListeners=function(){var o=this.hls;o.off(G.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.off(G.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.off(G.Events.LEVEL_LOADING,this.onLevelLoading,this),o.off(G.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),o.off(G.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),o.off(G.Events.ERROR,this.onError,this)},i.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,c.prototype.destroy.call(this)},i.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},i.onManifestParsed=function(o,a){this.tracks=a.audioTracks||[]},i.onAudioTrackLoaded=function(o,a){var r=a.id,t=a.details,b=this.tracksInGroup[r];if(!b){this.warn("Invalid audio track id "+r);return}var y=b.details;b.details=a.details,this.log("audioTrack "+r+" loaded ["+t.startSN+"-"+t.endSN+"]"),r===this.trackId&&(this.retryCount=0,this.playlistLoaded(r,a,y))},i.onLevelLoading=function(o,a){this.switchLevel(a.level)},i.onLevelSwitching=function(o,a){this.switchLevel(a.level)},i.switchLevel=function(o){var a=this.hls.levels[o];if(!(a!=null&&a.audioGroupIds))return;var r=a.audioGroupIds[a.urlId];if(this.groupId!==r){this.groupId=r;var t=this.tracks.filter(function(y){return!r||y.groupId===r});this.selectDefaultTrack&&!t.some(function(y){return y.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=t;var b={audioTracks:t};this.log("Updating audio tracks, "+t.length+' track(s) found in "'+r+'" group-id'),this.hls.trigger(G.Events.AUDIO_TRACKS_UPDATED,b),this.selectInitialTrack()}},i.onError=function(o,a){if(c.prototype.onError.call(this,o,a),a.fatal||!a.context)return;a.context.type===Y.PlaylistContextType.AUDIO_TRACK&&a.context.id===this.trackId&&a.context.groupId===this.groupId&&this.retryLoadingOrFail(a)},i.setAudioTrack=function(o){var a=this.tracksInGroup;if(o<0||o>=a.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var r=a[this.trackId];this.log("Now switching to audio-track index "+o);var t=a[o],b=t.id,y=t.groupId,E=y===void 0?"":y,T=t.name,v=t.type,d=t.url;if(this.trackId=o,this.trackName=T,this.selectDefaultTrack=!1,this.hls.trigger(G.Events.AUDIO_TRACK_SWITCHING,{id:b,groupId:E,name:T,type:v,url:d}),t.details&&!t.details.live)return;var n=this.switchParams(t.url,r==null?void 0:r.details);this.loadPlaylist(n)},i.selectInitialTrack=function(){var o=this.tracksInGroup;console.assert(o.length,"Initial audio track should be selected when tracks are known");var a=this.trackName,r=this.findTrackId(a)||this.findTrackId();r!==-1?this.setAudioTrack(r):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(G.Events.ERROR,{type:U.ErrorTypes.MEDIA_ERROR,details:U.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},i.findTrackId=function(o){for(var a=this.tracksInGroup,r=0;r<a.length;r++){var t=a[r];if((!this.selectDefaultTrack||t.default)&&(!o||o===t.name))return t.id}return-1},i.loadPlaylist=function(o){var a=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(a)){var r=a.id,t=a.groupId,b=a.url;if(o)try{b=o.addDirectives(b)}catch(y){this.warn("Could not construct new URL with HLS Delivery Directives: "+y)}this.log("loading audio-track playlist for id: "+r),this.clearTimer(),this.hls.trigger(G.Events.AUDIO_TRACK_LOADING,{url:b,id:r,groupId:t,deliveryDirectives:o||null})}},e(s,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(o){this.selectDefaultTrack=!1,this.setAudioTrack(o)}}]),s}(S.default);K.default=g},"./src/controller/base-playlist-controller.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return e});var G=O("./src/polyfills/number.ts"),U=O("./src/types/level.ts"),S=O("./src/controller/level-helper.ts"),Y=O("./src/utils/logger.ts"),M=O("./src/errors.ts"),e=function(){function I(g,c){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=Y.logger.log.bind(Y.logger,c+":"),this.warn=Y.logger.warn.bind(Y.logger,c+":"),this.hls=g}var p=I.prototype;return p.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},p.onError=function(c,s){s.fatal&&s.type===M.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},p.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},p.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},p.stopLoad=function(){this.canLoad=!1,this.clearTimer()},p.switchParams=function(c,s){var i=s==null?void 0:s.renditionReports;if(i)for(var A=0;A<i.length;A++){var o=i[A],a=""+o.URI;if(a===c.substr(-a.length)){var r=parseInt(o["LAST-MSN"]),t=parseInt(o["LAST-PART"]);if(s&&this.hls.config.lowLatencyMode){var b=Math.min(s.age-s.partTarget,s.targetduration);t!==void 0&&b>s.partTarget&&(t+=1)}if(Object(G.isFiniteNumber)(r))return new U.HlsUrlParameters(r,Object(G.isFiniteNumber)(t)?t:void 0,U.HlsSkip.No)}}},p.loadPlaylist=function(c){},p.shouldLoadTrack=function(c){return this.canLoad&&c&&!!c.url&&(!c.details||c.details.live)},p.playlistLoaded=function(c,s,i){var A=this,o=s.details,a=s.stats,r=a.loading.end?Math.max(0,self.performance.now()-a.loading.end):0;if(o.advancedDateTime=Date.now()-r,o.live||i!=null&&i.live){if(o.reloaded(i),i&&this.log("live playlist "+c+" "+(o.advanced?"REFRESHED "+o.lastPartSn+"-"+o.lastPartIndex:"MISSED")),i&&o.fragments.length>0&&Object(S.mergeDetails)(i,o),!this.canLoad||!o.live)return;var t,b=void 0,y=void 0;if(o.canBlockReload&&o.endSN&&o.advanced){var E=this.hls.config.lowLatencyMode,T=o.lastPartSn,v=o.endSN,d=o.lastPartIndex,n=d!==-1,l=T===v,u=E?0:d;n?(b=l?v+1:T,y=l?u:d+1):b=v+1;var _=o.age,m=_+o.ageHeader,h=Math.min(m-o.partTarget,o.targetduration*1.5);if(h>0){if(i&&h>i.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+i.tuneInGoal+" to: "+h+" with playlist age: "+o.age),h=0;else{var R=Math.floor(h/o.targetduration);if(b+=R,y!==void 0){var F=Math.round(h%o.targetduration/o.partTarget);y+=F}this.log("CDN Tune-in age: "+o.ageHeader+"s last advanced "+_.toFixed(2)+"s goal: "+h+" skip sn "+R+" to part "+y)}o.tuneInGoal=h}if(t=this.getDeliveryDirectives(o,s.deliveryDirectives,b,y),E||!l){this.loadPlaylist(t);return}}else t=this.getDeliveryDirectives(o,s.deliveryDirectives,b,y);var C=Object(S.computeReloadInterval)(o,a);b!==void 0&&o.canBlockReload&&(C-=o.partTarget||1),this.log("reload live playlist "+c+" in "+Math.round(C)+" ms"),this.timer=self.setTimeout(function(){return A.loadPlaylist(t)},C)}else this.clearTimer()},p.getDeliveryDirectives=function(c,s,i,A){var o=Object(U.getSkipValue)(c,i);return s!=null&&s.skip&&c.deltaUpdateFailed&&(i=s.msn,A=s.part,o=U.HlsSkip.No),new U.HlsUrlParameters(i,A,o)},p.retryLoadingOrFail=function(c){var s=this,i=this.hls.config,A=this.retryCount<i.levelLoadingMaxRetry;if(A){var o;if(this.retryCount++,c.details.indexOf("LoadTimeOut")>-1&&(o=c.context)!==null&&o!==void 0&&o.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+c.details+'"'),this.loadPlaylist();else{var a=Math.min(Math.pow(2,this.retryCount)*i.levelLoadingRetryDelay,i.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return s.loadPlaylist()},a),this.warn("retry playlist loading #"+this.retryCount+" in "+a+' ms after "'+c.details+'"')}}else this.warn('cannot recover from error "'+c.details+'"'),this.clearTimer(),c.fatal=!0;return A},I}()},"./src/controller/base-stream-controller.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"State",function(){return v}),O.d(K,"default",function(){return d});var G=O("./src/polyfills/number.ts"),U=O("./src/task-loop.ts"),S=O("./src/controller/fragment-tracker.ts"),Y=O("./src/utils/buffer-helper.ts"),M=O("./src/utils/logger.ts"),e=O("./src/events.ts"),I=O("./src/errors.ts"),p=O("./src/types/transmuxer.ts"),g=O("./src/utils/mp4-tools.ts"),c=O("./src/utils/discontinuities.ts"),s=O("./src/controller/fragment-finders.ts"),i=O("./src/controller/level-helper.ts"),A=O("./src/loader/fragment-loader.ts"),o=O("./src/crypt/decrypter.ts"),a=O("./src/utils/time-ranges.ts"),r=O("./src/types/loader.ts");function t(n,l){for(var u=0;u<l.length;u++){var _=l[u];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(n,_.key,_)}}function b(n,l,u){return l&&t(n.prototype,l),u&&t(n,u),n}function y(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function E(n,l){n.prototype=Object.create(l.prototype),n.prototype.constructor=n,T(n,l)}function T(n,l){return T=Object.setPrototypeOf||function(_,m){return _.__proto__=m,_},T(n,l)}var v={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},d=function(n){E(l,n);function l(_,m,h){var R;return R=n.call(this)||this,R.hls=void 0,R.fragPrevious=null,R.fragCurrent=null,R.fragmentTracker=void 0,R.transmuxer=null,R._state=v.STOPPED,R.media=void 0,R.mediaBuffer=void 0,R.config=void 0,R.bitrateTest=!1,R.lastCurrentTime=0,R.nextLoadPosition=0,R.startPosition=0,R.loadedmetadata=!1,R.fragLoadError=0,R.retryDate=0,R.levels=null,R.fragmentLoader=void 0,R.levelLastLoaded=null,R.startFragRequested=!1,R.decrypter=void 0,R.initPTS=[],R.onvseeking=null,R.onvended=null,R.logPrefix="",R.log=void 0,R.warn=void 0,R.logPrefix=h,R.log=M.logger.log.bind(M.logger,h+":"),R.warn=M.logger.warn.bind(M.logger,h+":"),R.hls=_,R.fragmentLoader=new A.default(_.config),R.fragmentTracker=m,R.config=_.config,R.decrypter=new o.default(_,_.config),_.on(e.Events.KEY_LOADED,R.onKeyLoaded,y(R)),R}var u=l.prototype;return u.doTick=function(){this.onTickEnd()},u.onTickEnd=function(){},u.startLoad=function(m){},u.stopLoad=function(){this.fragmentLoader.abort();var m=this.fragCurrent;m&&this.fragmentTracker.removeFragment(m),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=v.STOPPED},u._streamEnded=function(m,h){var R=this.fragCurrent,F=this.fragmentTracker;if(!h.live&&R&&R.sn===h.endSN&&!m.nextStart){var C=F.getState(R);return C===S.FragmentState.PARTIAL||C===S.FragmentState.OK}return!1},u.onMediaAttached=function(m,h){var R=this.media=this.mediaBuffer=h.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),R.addEventListener("seeking",this.onvseeking),R.addEventListener("ended",this.onvended);var F=this.config;this.levels&&F.autoStartLoad&&this.state===v.STOPPED&&this.startLoad(F.startPosition)},u.onMediaDetaching=function(){var m=this.media;m!=null&&m.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),m&&(m.removeEventListener("seeking",this.onvseeking),m.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},u.onMediaSeeking=function(){var m=this.config,h=this.fragCurrent,R=this.media,F=this.mediaBuffer,C=this.state,P=R?R.currentTime:0,j=Y.BufferHelper.bufferInfo(F||R,P,m.maxBufferHole);if(this.log("media seeking to "+(Object(G.isFiniteNumber)(P)?P.toFixed(3):P)+", state: "+C),C===v.ENDED)this.resetLoadingState();else if(h&&!j.len){var D=m.maxFragLookUpTolerance,$=h.start-D,oe=h.start+h.duration+D,Ee=P>oe;(P<$||Ee)&&(Ee&&h.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),h.loader.abort()),this.resetLoadingState())}R&&(this.lastCurrentTime=P),!this.loadedmetadata&&!j.len&&(this.nextLoadPosition=this.startPosition=P),this.tickImmediate()},u.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},u.onKeyLoaded=function(m,h){if(this.state!==v.KEY_LOADING||h.frag!==this.fragCurrent||!this.levels)return;this.state=v.IDLE;var R=this.levels[h.frag.level].details;R&&this.loadFragment(h.frag,R,h.frag.start)},u.onHandlerDestroying=function(){this.stopLoad(),n.prototype.onHandlerDestroying.call(this)},u.onHandlerDestroyed=function(){this.state=v.STOPPED,this.hls.off(e.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,n.prototype.onHandlerDestroyed.call(this)},u.loadKey=function(m,h){this.log("Loading key for "+m.sn+" of ["+h.startSN+"-"+h.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+m.level),this.state=v.KEY_LOADING,this.fragCurrent=m,this.hls.trigger(e.Events.KEY_LOADING,{frag:m})},u.loadFragment=function(m,h,R){this._loadFragForPlayback(m,h,R)},u._loadFragForPlayback=function(m,h,R){var F=this,C=function(j){if(F.fragContextChanged(m)){F.warn("Fragment "+m.sn+(j.part?" p: "+j.part.index:"")+" of level "+m.level+" was dropped during download."),F.fragmentTracker.removeFragment(m);return}m.stats.chunkCount++,F._handleFragmentLoadProgress(j)};this._doFragLoad(m,h,R,C).then(function(P){if(!P)return;F.fragLoadError=0;var j=F.state;if(F.fragContextChanged(m)){(j===v.FRAG_LOADING||j===v.BACKTRACKING||!F.fragCurrent&&j===v.PARSING)&&(F.fragmentTracker.removeFragment(m),F.state=v.IDLE);return}if("payload"in P&&(F.log("Loaded fragment "+m.sn+" of level "+m.level),F.hls.trigger(e.Events.FRAG_LOADED,P),F.state===v.BACKTRACKING)){F.fragmentTracker.backtrack(m,P),F.resetFragmentLoading(m);return}F._handleFragmentLoadComplete(P)}).catch(function(P){F.warn(P),F.resetFragmentLoading(m)})},u.flushMainBuffer=function(m,h,R){if(R===void 0&&(R=null),!(m-h))return;var F={startOffset:m,endOffset:h,type:R};this.fragLoadError=0,this.hls.trigger(e.Events.BUFFER_FLUSHING,F)},u._loadInitSegment=function(m){var h=this;this._doFragLoad(m).then(function(R){if(!R||h.fragContextChanged(m)||!h.levels)throw new Error("init load aborted");return R}).then(function(R){var F=h.hls,C=R.payload,P=m.decryptdata;if(C&&C.byteLength>0&&P&&P.key&&P.iv&&P.method==="AES-128"){var j=self.performance.now();return h.decrypter.webCryptoDecrypt(new Uint8Array(C),P.key.buffer,P.iv.buffer).then(function(D){var $=self.performance.now();return F.trigger(e.Events.FRAG_DECRYPTED,{frag:m,payload:D,stats:{tstart:j,tdecrypt:$}}),R.payload=D,R})}return R}).then(function(R){var F=h.fragCurrent,C=h.hls,P=h.levels;if(!P)throw new Error("init load aborted, missing levels");var j=P[m.level].details;console.assert(j,"Level details are defined when init segment is loaded");var D=m.stats;h.state=v.IDLE,h.fragLoadError=0,m.data=new Uint8Array(R.payload),D.parsing.start=D.buffering.start=self.performance.now(),D.parsing.end=D.buffering.end=self.performance.now(),R.frag===F&&C.trigger(e.Events.FRAG_BUFFERED,{stats:D,frag:F,part:null,id:m.type}),h.tick()}).catch(function(R){h.warn(R),h.resetFragmentLoading(m)})},u.fragContextChanged=function(m){var h=this.fragCurrent;return!m||!h||m.level!==h.level||m.sn!==h.sn||m.urlId!==h.urlId},u.fragBufferedComplete=function(m,h){var R=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+m.type+" sn: "+m.sn+(h?" part: "+h.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+m.level+" "+a.default.toString(Y.BufferHelper.getBuffered(R))),this.state=v.IDLE,this.tick()},u._handleFragmentLoadComplete=function(m){var h=this.transmuxer;if(!h)return;var R=m.frag,F=m.part,C=m.partsLoaded,P=!C||C.length===0||C.some(function(D){return!D}),j=new p.ChunkMetadata(R.level,R.sn,R.stats.chunkCount+1,0,F?F.index:-1,!P);h.flush(j)},u._handleFragmentLoadProgress=function(m){},u._doFragLoad=function(m,h,R,F){var C=this;if(R===void 0&&(R=null),!this.levels)throw new Error("frag load aborted, missing levels");if(R=Math.max(m.start,R||0),this.config.lowLatencyMode&&h){var P=h.partList;if(P&&F){R>m.end&&h.fragmentHint&&(m=h.fragmentHint);var j=this.getNextPart(P,m,R);if(j>-1){var D=P[j];return this.log("Loading part sn: "+m.sn+" p: "+D.index+" cc: "+m.cc+" of playlist ["+h.startSN+"-"+h.endSN+"] parts [0-"+j+"-"+(P.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+m.level+", target: "+parseFloat(R.toFixed(3))),this.nextLoadPosition=D.start+D.duration,this.state=v.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:m,part:P[j],targetBufferTime:R}),this.doFragPartsLoad(m,P,j,F).catch(function($){return C.handleFragLoadError($)})}else if(!m.url||this.loadedEndOfParts(P,R))return Promise.resolve(null)}}return this.log("Loading fragment "+m.sn+" cc: "+m.cc+" "+(h?"of ["+h.startSN+"-"+h.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+m.level+", target: "+parseFloat(R.toFixed(3))),Object(G.isFiniteNumber)(m.sn)&&!this.bitrateTest&&(this.nextLoadPosition=m.start+m.duration),this.state=v.FRAG_LOADING,this.hls.trigger(e.Events.FRAG_LOADING,{frag:m,targetBufferTime:R}),this.fragmentLoader.load(m,F).catch(function($){return C.handleFragLoadError($)})},u.doFragPartsLoad=function(m,h,R,F){var C=this;return new Promise(function(P,j){var D=[],$=function oe(Ee){var ve=h[Ee];C.fragmentLoader.loadPart(m,ve,F).then(function(Le){D[ve.index]=Le;var Se=Le.part;C.hls.trigger(e.Events.FRAG_LOADED,Le);var Re=h[Ee+1];if(Re&&Re.fragment===m)oe(Ee+1);else return P({frag:m,part:Se,partsLoaded:D})}).catch(j)};$(R)})},u.handleFragLoadError=function(m){var h=m.data;return h&&h.details===I.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(h.frag,h.part):this.hls.trigger(e.Events.ERROR,h),null},u._handleTransmuxerFlush=function(m){var h=this.getCurrentContext(m);if(!h||this.state!==v.PARSING){this.fragCurrent||(this.state=v.IDLE);return}var R=h.frag,F=h.part,C=h.level,P=self.performance.now();R.stats.parsing.end=P,F&&(F.stats.parsing.end=P),this.updateLevelTiming(R,F,C,m.partial)},u.getCurrentContext=function(m){var h=this.levels,R=m.level,F=m.sn,C=m.part;if(!h||!h[R])return this.warn("Levels object was unset while buffering fragment "+F+" of level "+R+". The current chunk will not be buffered."),null;var P=h[R],j=C>-1?Object(i.getPartWith)(P,F,C):null,D=j?j.fragment:Object(i.getFragmentWithSN)(P,F,this.fragCurrent);return D?{frag:D,part:j,level:P}:null},u.bufferFragmentData=function(m,h,R,F){if(!m||this.state!==v.PARSING)return;var C=m.data1,P=m.data2,j=C;if(C&&P&&(j=Object(g.appendUint8Array)(C,P)),!j||!j.length)return;var D={type:m.type,frag:h,part:R,chunkMeta:F,parent:h.type,data:j};this.hls.trigger(e.Events.BUFFER_APPENDING,D),m.dropped&&m.independent&&!R&&this.flushBufferGap(h)},u.flushBufferGap=function(m){var h=this.media;if(!h)return;if(!Y.BufferHelper.isBuffered(h,h.currentTime)){this.flushMainBuffer(0,m.start);return}var R=h.currentTime,F=Y.BufferHelper.bufferInfo(h,R,0),C=m.duration,P=Math.min(this.config.maxFragLookUpTolerance*2,C*.25),j=Math.max(Math.min(m.start-P,F.end-P),R+P);m.start-j>P&&this.flushMainBuffer(j,m.start)},u.getFwdBufferInfo=function(m,h){var R=this.config,F=this.getLoadPosition();if(!Object(G.isFiniteNumber)(F))return null;var C=Y.BufferHelper.bufferInfo(m,F,R.maxBufferHole);if(C.len===0&&C.nextStart!==void 0){var P=this.fragmentTracker.getBufferedFrag(F,h);if(P&&C.nextStart<P.end)return Y.BufferHelper.bufferInfo(m,F,Math.max(C.nextStart,R.maxBufferHole))}return C},u.getMaxBufferLength=function(m){var h=this.config,R;return m?R=Math.max(8*h.maxBufferSize/m,h.maxBufferLength):R=h.maxBufferLength,Math.min(R,h.maxMaxBufferLength)},u.reduceMaxBufferLength=function(m){var h=this.config,R=m||h.maxBufferLength;return h.maxMaxBufferLength>=R?(h.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+h.maxMaxBufferLength+"s"),!0):!1},u.getNextFragment=function(m,h){var R,F,C=h.fragments,P=C.length;if(!P)return null;var j=this.config,D=C[0].start,$;if(h.live){var oe=j.initialLiveManifestSize;if(P<oe)return this.warn("Not enough fragments to start playback (have: "+P+", need: "+oe+")"),null;!h.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&($=this.getInitialLiveFragment(h,C),this.startPosition=$?this.hls.liveSyncPosition||$.start:m)}else m<=D&&($=C[0]);if(!$){var Ee=j.lowLatencyMode?h.partEnd:h.fragmentEnd;$=this.getFragmentAtPosition(m,Ee,h)}return(R=$)!==null&&R!==void 0&&R.initSegment&&!((F=$)!==null&&F!==void 0&&F.initSegment.data)&&!this.bitrateTest&&($=$.initSegment),$},u.getNextPart=function(m,h,R){for(var F=-1,C=!1,P=!0,j=0,D=m.length;j<D;j++){var $=m[j];if(P=P&&!$.independent,F>-1&&R<$.start)break;var oe=$.loaded;!oe&&(C||$.independent||P)&&$.fragment===h&&(F=j),C=oe}return F},u.loadedEndOfParts=function(m,h){var R=m[m.length-1];return R&&h>R.start&&R.loaded},u.getInitialLiveFragment=function(m,h){var R=this.fragPrevious,F=null;if(R){if(m.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+R.programDateTime),F=Object(s.findFragmentByPDT)(h,R.endProgramDateTime,this.config.maxFragLookUpTolerance)),!F){var C=R.sn+1;if(C>=m.startSN&&C<=m.endSN){var P=h[C-m.startSN];R.cc===P.cc&&(F=P,this.log("Live playlist, switching playlist, load frag with next SN: "+F.sn))}F||(F=Object(s.findFragWithCC)(h,R.cc),F&&this.log("Live playlist, switching playlist, load frag with same CC: "+F.sn))}}else{var j=this.hls.liveSyncPosition;j!==null&&(F=this.getFragmentAtPosition(j,this.bitrateTest?m.fragmentEnd:m.edge,m))}return F},u.getFragmentAtPosition=function(m,h,R){var F=this.config,C=this.fragPrevious,P=R.fragments,j=R.endSN,D=R.fragmentHint,$=F.maxFragLookUpTolerance,oe=!!(F.lowLatencyMode&&R.partList&&D);oe&&D&&!this.bitrateTest&&(P=P.concat(D),j=D.sn);var Ee;if(m<h){var ve=m>h-$?0:$;Ee=Object(s.findFragmentByPTS)(C,P,m,ve)}else Ee=P[P.length-1];if(Ee){var Le=Ee.sn-R.startSN,Se=C&&Ee.level===C.level,Re=P[Le+1],De=this.fragmentTracker.getState(Ee);if(De===S.FragmentState.BACKTRACKED){Ee=null;for(var Fe=Le;P[Fe]&&this.fragmentTracker.getState(P[Fe])===S.FragmentState.BACKTRACKED;)C?Ee=P[Fe--]:Ee=P[--Fe];Ee||(Ee=Re)}else C&&Ee.sn===C.sn&&!oe&&(Se&&(Ee.sn<j&&this.fragmentTracker.getState(Re)!==S.FragmentState.OK?(this.log("SN "+Ee.sn+" just loaded, load next one: "+Re.sn),Ee=Re):Ee=null))}return Ee},u.synchronizeToLiveEdge=function(m){var h=this.config,R=this.media;if(!R)return;var F=this.hls.liveSyncPosition,C=R.currentTime,P=m.fragments[0].start,j=m.edge,D=C>=P-h.maxFragLookUpTolerance&&C<=j;if(F!==null&&R.duration>F&&(C<F||!D)){var $=h.liveMaxLatencyDuration!==void 0?h.liveMaxLatencyDuration:h.liveMaxLatencyDurationCount*m.targetduration;(!D&&R.readyState<4||C<j-$)&&(this.loadedmetadata||(this.nextLoadPosition=F),R.readyState&&(this.warn("Playback: "+C.toFixed(3)+" is located too far from the end of live sliding playlist: "+j+", reset currentTime to : "+F.toFixed(3)),R.currentTime=F))}},u.alignPlaylists=function(m,h){var R=this.levels,F=this.levelLastLoaded,C=this.fragPrevious,P=F!==null?R[F]:null,j=m.fragments.length;if(!j)return this.warn("No fragments in live playlist"),0;var D=m.fragments[0].start,$=!h,oe=m.alignedSliding&&Object(G.isFiniteNumber)(D);if($||!oe&&!D){Object(c.alignStream)(C,P,m);var Ee=m.fragments[0].start;return this.log("Live playlist sliding: "+Ee.toFixed(2)+" start-sn: "+(h?h.startSN:"na")+"->"+m.startSN+" prev-sn: "+(C?C.sn:"na")+" fragments: "+j),Ee}return D},u.waitForCdnTuneIn=function(m){var h=3;return m.live&&m.canBlockReload&&m.tuneInGoal>Math.max(m.partHoldBack,m.partTarget*h)},u.setStartPosition=function(m,h){var R=this.startPosition;if(R<h&&(R=-1),R===-1||this.lastCurrentTime===-1){var F=m.startTimeOffset;Object(G.isFiniteNumber)(F)?(R=h+F,F<0&&(R+=m.totalduration),R=Math.min(Math.max(h,R),h+m.totalduration),this.log("Start time offset "+F+" found in playlist, adjust startPosition to "+R),this.startPosition=R):m.live?R=this.hls.liveSyncPosition||h:this.startPosition=R=0,this.lastCurrentTime=R}this.nextLoadPosition=R},u.getLoadPosition=function(){var m=this.media,h=0;return this.loadedmetadata&&m?h=m.currentTime:this.nextLoadPosition&&(h=this.nextLoadPosition),h},u.handleFragLoadAborted=function(m,h){this.transmuxer&&m.sn!=="initSegment"&&m.stats.aborted&&(this.warn("Fragment "+m.sn+(h?" part"+h.index:"")+" of level "+m.level+" was aborted"),this.resetFragmentLoading(m))},u.resetFragmentLoading=function(m){(!this.fragCurrent||!this.fragContextChanged(m))&&(this.state=v.IDLE)},u.onFragmentOrKeyLoadError=function(m,h){if(h.fatal)return;var R=h.frag;if(!R||R.type!==m)return;var F=this.fragCurrent;console.assert(F&&R.sn===F.sn&&R.level===F.level&&R.urlId===F.urlId,"Frag load error must match current frag to retry");var C=this.config;if(this.fragLoadError+1<=C.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(R.level))return;var P=Math.min(Math.pow(2,this.fragLoadError)*C.fragLoadingRetryDelay,C.fragLoadingMaxRetryTimeout);this.warn("Fragment "+R.sn+" of "+m+" "+R.level+" failed to load, retrying in "+P+"ms"),this.retryDate=self.performance.now()+P,this.fragLoadError++,this.state=v.FRAG_LOADING_WAITING_RETRY}else h.levelRetry?(m===r.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=v.IDLE):(M.logger.error(h.details+" reaches max retry, redispatch as fatal ..."),h.fatal=!0,this.hls.stopLoad(),this.state=v.ERROR)},u.afterBufferFlushed=function(m,h,R){if(!m)return;var F=Y.BufferHelper.getBuffered(m);this.fragmentTracker.detectEvictedFragments(h,F,R),this.state===v.ENDED&&this.resetLoadingState()},u.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=v.IDLE},u.resetLiveStartWhenNotLoaded=function(m){if(!this.loadedmetadata){this.startFragRequested=!1;var h=this.levels?this.levels[m].details:null;if(h!=null&&h.live)return this.startPosition=-1,this.setStartPosition(h,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},u.updateLevelTiming=function(m,h,R,F){var C=this,P=R.details;console.assert(!!P,"level.details must be defined");var j=Object.keys(m.elementaryStreams).reduce(function(D,$){var oe=m.elementaryStreams[$];if(oe){var Ee=oe.endPTS-oe.startPTS;if(Ee<=0)return C.warn("Could not parse fragment "+m.sn+" "+$+" duration reliably ("+Ee+") resetting transmuxer to fallback to playlist timing"),C.resetTransmuxer(),D||!1;var ve=F?0:Object(i.updateFragPTSDTS)(P,m,oe.startPTS,oe.endPTS,oe.startDTS,oe.endDTS);return C.hls.trigger(e.Events.LEVEL_PTS_UPDATED,{details:P,level:R,drift:ve,type:$,frag:m,start:oe.startPTS,end:oe.endPTS}),!0}return D},!1);j?(this.state=v.PARSED,this.hls.trigger(e.Events.FRAG_PARSED,{frag:m,part:h})):this.resetLoadingState()},u.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},b(l,[{key:"state",get:function(){return this._state},set:function(m){var h=this._state;h!==m&&(this._state=m,this.log(h+"->"+m))}}]),l}(U.default)},"./src/controller/buffer-controller.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return s});var G=O("./src/polyfills/number.ts"),U=O("./src/events.ts"),S=O("./src/utils/logger.ts"),Y=O("./src/errors.ts"),M=O("./src/utils/buffer-helper.ts"),e=O("./src/utils/mediasource-helper.ts"),I=O("./src/loader/fragment.ts"),p=O("./src/controller/buffer-operation-queue.ts"),g=Object(e.getMediaSource)(),c=/([ha]vc.)(?:\.[^.,]+)+/,s=function(){function i(o){var a=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var r=a.hls,t=a.media,b=a.mediaSource;S.logger.log("[buffer-controller]: Media source opened"),t&&(a.updateMediaElementDuration(),r.trigger(U.Events.MEDIA_ATTACHED,{media:t})),b&&b.removeEventListener("sourceopen",a._onMediaSourceOpen),a.checkPendingTracks()},this._onMediaSourceClose=function(){S.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){S.logger.log("[buffer-controller]: Media source ended")},this.hls=o,this._initSourceBuffer(),this.registerListeners()}var A=i.prototype;return A.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},A.destroy=function(){this.unregisterListeners(),this.details=null},A.registerListeners=function(){var a=this.hls;a.on(U.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.on(U.Events.MEDIA_DETACHING,this.onMediaDetaching,this),a.on(U.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.on(U.Events.BUFFER_RESET,this.onBufferReset,this),a.on(U.Events.BUFFER_APPENDING,this.onBufferAppending,this),a.on(U.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.on(U.Events.BUFFER_EOS,this.onBufferEos,this),a.on(U.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),a.on(U.Events.LEVEL_UPDATED,this.onLevelUpdated,this),a.on(U.Events.FRAG_PARSED,this.onFragParsed,this),a.on(U.Events.FRAG_CHANGED,this.onFragChanged,this)},A.unregisterListeners=function(){var a=this.hls;a.off(U.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.off(U.Events.MEDIA_DETACHING,this.onMediaDetaching,this),a.off(U.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.off(U.Events.BUFFER_RESET,this.onBufferReset,this),a.off(U.Events.BUFFER_APPENDING,this.onBufferAppending,this),a.off(U.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.off(U.Events.BUFFER_EOS,this.onBufferEos,this),a.off(U.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),a.off(U.Events.LEVEL_UPDATED,this.onLevelUpdated,this),a.off(U.Events.FRAG_PARSED,this.onFragParsed,this),a.off(U.Events.FRAG_CHANGED,this.onFragChanged,this)},A._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new p.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},A.onManifestParsed=function(a,r){var t=2;(r.audio&&!r.video||!r.altAudio)&&(t=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=t,this.details=null,S.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},A.onMediaAttaching=function(a,r){var t=this.media=r.media;if(t&&g){var b=this.mediaSource=new g;b.addEventListener("sourceopen",this._onMediaSourceOpen),b.addEventListener("sourceended",this._onMediaSourceEnded),b.addEventListener("sourceclose",this._onMediaSourceClose),t.src=self.URL.createObjectURL(b),this._objectUrl=t.src}},A.onMediaDetaching=function(){var a=this.media,r=this.mediaSource,t=this._objectUrl;if(r){if(S.logger.log("[buffer-controller]: media source detaching"),r.readyState==="open")try{r.endOfStream()}catch(b){S.logger.warn("[buffer-controller]: onMediaDetaching: "+b.message+" while calling endOfStream")}this.onBufferReset(),r.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("sourceended",this._onMediaSourceEnded),r.removeEventListener("sourceclose",this._onMediaSourceClose),a&&(t&&self.URL.revokeObjectURL(t),a.src===t?(a.removeAttribute("src"),a.load()):S.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(U.Events.MEDIA_DETACHED,void 0)},A.onBufferReset=function(){var a=this;this.getSourceBufferTypes().forEach(function(r){var t=a.sourceBuffer[r];try{t&&(a.removeBufferListeners(r),a.mediaSource&&a.mediaSource.removeSourceBuffer(t),a.sourceBuffer[r]=void 0)}catch(b){S.logger.warn("[buffer-controller]: Failed to reset the "+r+" buffer",b)}}),this._initSourceBuffer()},A.onBufferCodecs=function(a,r){var t=this,b=this.getSourceBufferTypes().length;if(Object.keys(r).forEach(function(y){if(b){var E=t.tracks[y];if(E&&typeof E.buffer.changeType=="function"){var T=r[y],v=T.codec,d=T.levelCodec,n=T.container,l=(E.levelCodec||E.codec).replace(c,"$1"),u=(d||v).replace(c,"$1");if(l!==u){var _=n+";codecs="+(d||v);t.appendChangeType(y,_)}}}else t.pendingTracks[y]=r[y]}),b)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},A.appendChangeType=function(a,r){var t=this,b=this.operationQueue,y={execute:function(){var T=t.sourceBuffer[a];T&&(S.logger.log("[buffer-controller]: changing "+a+" sourceBuffer type to "+r),T.changeType(r)),b.shiftAndExecuteNext(a)},onStart:function(){},onComplete:function(){},onError:function(T){S.logger.warn("[buffer-controller]: Failed to change "+a+" SourceBuffer type",T)}};b.append(y,a)},A.onBufferAppending=function(a,r){var t=this,b=this.hls,y=this.operationQueue,E=this.tracks,T=r.data,v=r.type,d=r.frag,n=r.part,l=r.chunkMeta,u=l.buffering[v],_=self.performance.now();u.start=_;var m=d.stats.buffering,h=n?n.stats.buffering:null;m.start===0&&(m.start=_),h&&h.start===0&&(h.start=_);var R=E.audio,F=v==="audio"&&l.id===1&&(R==null?void 0:R.container)==="audio/mpeg",C={execute:function(){if(u.executeStart=self.performance.now(),F){var j=t.sourceBuffer[v];if(j){var D=d.start-j.timestampOffset;Math.abs(D)>=.1&&(S.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+d.start+" (delta: "+D+") sn: "+d.sn+")"),j.timestampOffset=d.start)}}t.appendExecutor(T,v)},onStart:function(){},onComplete:function(){var j=self.performance.now();u.executeEnd=u.end=j,m.first===0&&(m.first=j),h&&h.first===0&&(h.first=j);var D=t.sourceBuffer,$={};for(var oe in D)$[oe]=M.BufferHelper.getBuffered(D[oe]);t.appendError=0,t.hls.trigger(U.Events.BUFFER_APPENDED,{type:v,frag:d,part:n,chunkMeta:l,parent:d.type,timeRanges:$})},onError:function(j){S.logger.error("[buffer-controller]: Error encountered while trying to append to the "+v+" SourceBuffer",j);var D={type:Y.ErrorTypes.MEDIA_ERROR,parent:d.type,details:Y.ErrorDetails.BUFFER_APPEND_ERROR,err:j,fatal:!1};j.code===DOMException.QUOTA_EXCEEDED_ERR?D.details=Y.ErrorDetails.BUFFER_FULL_ERROR:(t.appendError++,D.details=Y.ErrorDetails.BUFFER_APPEND_ERROR,t.appendError>b.config.appendErrorMaxRetry&&(S.logger.error("[buffer-controller]: Failed "+b.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),D.fatal=!0)),b.trigger(U.Events.ERROR,D)}};y.append(C,v)},A.onBufferFlushing=function(a,r){var t=this,b=this.operationQueue,y=function(T){return{execute:t.removeExecutor.bind(t,T,r.startOffset,r.endOffset),onStart:function(){},onComplete:function(){t.hls.trigger(U.Events.BUFFER_FLUSHED,{type:T})},onError:function(d){S.logger.warn("[buffer-controller]: Failed to remove from "+T+" SourceBuffer",d)}}};r.type?b.append(y(r.type),r.type):this.getSourceBufferTypes().forEach(function(E){b.append(y(E),E)})},A.onFragParsed=function(a,r){var t=this,b=r.frag,y=r.part,E=[],T=y?y.elementaryStreams:b.elementaryStreams;T[I.ElementaryStreamTypes.AUDIOVIDEO]?E.push("audiovideo"):(T[I.ElementaryStreamTypes.AUDIO]&&E.push("audio"),T[I.ElementaryStreamTypes.VIDEO]&&E.push("video"));var v=function(){var n=self.performance.now();b.stats.buffering.end=n,y&&(y.stats.buffering.end=n);var l=y?y.stats:b.stats;t.hls.trigger(U.Events.FRAG_BUFFERED,{frag:b,part:y,stats:l,id:b.type})};E.length===0&&S.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+b.type+" level: "+b.level+" sn: "+b.sn),this.blockBuffers(v,E)},A.onFragChanged=function(a,r){this.flushBackBuffer()},A.onBufferEos=function(a,r){var t=this,b=this.getSourceBufferTypes().reduce(function(y,E){var T=t.sourceBuffer[E];return(!r.type||r.type===E)&&(T&&!T.ended&&(T.ended=!0,S.logger.log("[buffer-controller]: "+E+" sourceBuffer now EOS"))),y&&!!(!T||T.ended)},!0);b&&this.blockBuffers(function(){var y=t.mediaSource;if(!y||y.readyState!=="open")return;y.endOfStream()})},A.onLevelUpdated=function(a,r){var t=r.details;if(!t.fragments.length)return;this.details=t,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},A.flushBackBuffer=function(){var a=this.hls,r=this.details,t=this.media,b=this.sourceBuffer;if(!t||r===null)return;var y=this.getSourceBufferTypes();if(!y.length)return;var E=r.live&&a.config.liveBackBufferLength!==null?a.config.liveBackBufferLength:a.config.backBufferLength;if(!Object(G.isFiniteNumber)(E)||E<0)return;var T=t.currentTime,v=r.levelTargetDuration,d=Math.max(E,v),n=Math.floor(T/v)*v-d;y.forEach(function(l){var u=b[l];if(u){var _=M.BufferHelper.getBuffered(u);_.length>0&&n>_.start(0)&&(a.trigger(U.Events.BACK_BUFFER_REACHED,{bufferEnd:n}),r.live&&a.trigger(U.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n}),a.trigger(U.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:l}))}})},A.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var a=this.details,r=this.hls,t=this.media,b=this.mediaSource,y=a.fragments[0].start+a.totalduration,E=t.duration,T=Object(G.isFiniteNumber)(b.duration)?b.duration:0;a.live&&r.config.liveDurationInfinity?(S.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),b.duration=Infinity,this.updateSeekableRange(a)):(y>T&&y>E||!Object(G.isFiniteNumber)(E))&&(S.logger.log("[buffer-controller]: Updating Media Source duration to "+y.toFixed(3)),b.duration=y)},A.updateSeekableRange=function(a){var r=this.mediaSource,t=a.fragments,b=t.length;if(b&&a.live&&r!==null&&r!==void 0&&r.setLiveSeekableRange){var y=Math.max(0,t[0].start),E=Math.max(y,y+a.totalduration);r.setLiveSeekableRange(y,E)}},A.checkPendingTracks=function(){var a=this.bufferCodecEventsExpected,r=this.operationQueue,t=this.pendingTracks,b=Object.keys(t).length;if(b&&!a||b===2){this.createSourceBuffers(t),this.pendingTracks={};var y=this.getSourceBufferTypes();if(y.length===0){this.hls.trigger(U.Events.ERROR,{type:Y.ErrorTypes.MEDIA_ERROR,details:Y.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}y.forEach(function(E){r.executeNext(E)})}},A.createSourceBuffers=function(a){var r=this.sourceBuffer,t=this.mediaSource;if(!t)throw Error("createSourceBuffers called when mediaSource was null");var b=0;for(var y in a)if(!r[y]){var E=a[y];if(!E)throw Error("source buffer exists for track "+y+", however track does not");var T=E.levelCodec||E.codec,v=E.container+";codecs="+T;S.logger.log("[buffer-controller]: creating sourceBuffer("+v+")");try{var d=r[y]=t.addSourceBuffer(v),n=y;this.addBufferListener(n,"updatestart",this._onSBUpdateStart),this.addBufferListener(n,"updateend",this._onSBUpdateEnd),this.addBufferListener(n,"error",this._onSBUpdateError),this.tracks[y]={buffer:d,codec:T,container:E.container,levelCodec:E.levelCodec,id:E.id},b++}catch(l){S.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+l.message),this.hls.trigger(U.Events.ERROR,{type:Y.ErrorTypes.MEDIA_ERROR,details:Y.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:l,mimeType:v})}}b&&this.hls.trigger(U.Events.BUFFER_CREATED,{tracks:this.tracks})},A._onSBUpdateStart=function(a){var r=this.operationQueue,t=r.current(a);t.onStart()},A._onSBUpdateEnd=function(a){var r=this.operationQueue,t=r.current(a);t.onComplete(),r.shiftAndExecuteNext(a)},A._onSBUpdateError=function(a,r){S.logger.error("[buffer-controller]: "+a+" SourceBuffer error",r),this.hls.trigger(U.Events.ERROR,{type:Y.ErrorTypes.MEDIA_ERROR,details:Y.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var t=this.operationQueue.current(a);t&&t.onError(r)},A.removeExecutor=function(a,r,t){var b=this.media,y=this.mediaSource,E=this.operationQueue,T=this.sourceBuffer,v=T[a];if(!b||!y||!v){S.logger.warn("[buffer-controller]: Attempting to remove from the "+a+" SourceBuffer, but it does not exist"),E.shiftAndExecuteNext(a);return}var d=Object(G.isFiniteNumber)(b.duration)?b.duration:Infinity,n=Object(G.isFiniteNumber)(y.duration)?y.duration:Infinity,l=Math.max(0,r),u=Math.min(t,d,n);u>l?(S.logger.log("[buffer-controller]: Removing ["+l+","+u+"] from the "+a+" SourceBuffer"),console.assert(!v.updating,a+" sourceBuffer must not be updating"),v.remove(l,u)):E.shiftAndExecuteNext(a)},A.appendExecutor=function(a,r){var t=this.operationQueue,b=this.sourceBuffer,y=b[r];if(!y){S.logger.warn("[buffer-controller]: Attempting to append to the "+r+" SourceBuffer, but it does not exist"),t.shiftAndExecuteNext(r);return}y.ended=!1,console.assert(!y.updating,r+" sourceBuffer must not be updating"),y.appendBuffer(a)},A.blockBuffers=function(a,r){var t=this;if(r===void 0&&(r=this.getSourceBufferTypes()),!r.length){S.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(a);return}var b=this.operationQueue,y=r.map(function(E){return b.appendBlocker(E)});Promise.all(y).then(function(){a(),r.forEach(function(E){var T=t.sourceBuffer[E];(!T||!T.updating)&&b.shiftAndExecuteNext(E)})})},A.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},A.addBufferListener=function(a,r,t){var b=this.sourceBuffer[a];if(!b)return;var y=t.bind(this,a);this.listeners[a].push({event:r,listener:y}),b.addEventListener(r,y)},A.removeBufferListeners=function(a){var r=this.sourceBuffer[a];if(!r)return;this.listeners[a].forEach(function(t){r.removeEventListener(t.event,t.listener)})},i}()},"./src/controller/buffer-operation-queue.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return U});var G=O("./src/utils/logger.ts"),U=function(){function S(M){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=M}var Y=S.prototype;return Y.append=function(e,I){var p=this.queues[I];p.push(e),p.length===1&&this.buffers[I]&&this.executeNext(I)},Y.insertAbort=function(e,I){var p=this.queues[I];p.unshift(e),this.executeNext(I)},Y.appendBlocker=function(e){var I,p=new Promise(function(c){I=c}),g={execute:I,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(g,e),p},Y.executeNext=function(e){var I=this.buffers,p=this.queues,g=I[e],c=p[e];if(c.length){var s=c[0];try{s.execute()}catch(i){G.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),s.onError(i),(!g||!g.updating)&&(c.shift(),this.executeNext(e))}}},Y.shiftAndExecuteNext=function(e){this.queues[e].shift(),this.executeNext(e)},Y.current=function(e){return this.queues[e][0]},S}()},"./src/controller/cap-level-controller.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/events.ts");function U(M,e){for(var I=0;I<e.length;I++){var p=e[I];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(M,p.key,p)}}function S(M,e,I){return e&&U(M.prototype,e),I&&U(M,I),M}var Y=function(){function M(I){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=I,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var e=M.prototype;return e.setStreamController=function(p){this.streamController=p},e.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},e.registerListeners=function(){var p=this.hls;p.on(G.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),p.on(G.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),p.on(G.Events.MANIFEST_PARSED,this.onManifestParsed,this),p.on(G.Events.BUFFER_CODECS,this.onBufferCodecs,this),p.on(G.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.unregisterListener=function(){var p=this.hls;p.off(G.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),p.off(G.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),p.off(G.Events.MANIFEST_PARSED,this.onManifestParsed,this),p.off(G.Events.BUFFER_CODECS,this.onBufferCodecs,this),p.off(G.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},e.onFpsDropLevelCapping=function(p,g){M.isLevelAllowed(g.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(g.droppedLevel)},e.onMediaAttaching=function(p,g){this.media=g.media instanceof HTMLVideoElement?g.media:null},e.onManifestParsed=function(p,g){var c=this.hls;this.restrictedLevels=[],this.firstLevel=g.firstLevel,c.config.capLevelToPlayerSize&&g.video&&this.startCapping()},e.onBufferCodecs=function(p,g){var c=this.hls;c.config.capLevelToPlayerSize&&g.video&&this.startCapping()},e.onMediaDetaching=function(){this.stopCapping()},e.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var p=this.hls.levels;if(p.length){var g=this.hls;g.autoLevelCapping=this.getMaxLevel(p.length-1),g.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=g.autoLevelCapping}}},e.getMaxLevel=function(p){var g=this,c=this.hls.levels;if(!c.length)return-1;var s=c.filter(function(i,A){return M.isLevelAllowed(A,g.restrictedLevels)&&A<=p});return this.clientRect=null,M.getMaxLevelByMediaSize(s,this.mediaWidth,this.mediaHeight)},e.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},e.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},e.getDimensions=function(){if(this.clientRect)return this.clientRect;var p=this.media,g={width:0,height:0};if(p){var c=p.getBoundingClientRect();g.width=c.width,g.height=c.height,!g.width&&!g.height&&(g.width=c.right-c.left||p.width||0,g.height=c.bottom-c.top||p.height||0)}return this.clientRect=g,g},M.isLevelAllowed=function(p,g){return g===void 0&&(g=[]),g.indexOf(p)===-1},M.getMaxLevelByMediaSize=function(p,g,c){if(!p||!p.length)return-1;for(var s=function(r,t){return t?r.width!==t.width||r.height!==t.height:!0},i=p.length-1,A=0;A<p.length;A+=1){var o=p[A];if((o.width>=g||o.height>=c)&&s(o,p[A+1])){i=A;break}}return i},S(M,[{key:"mediaWidth",get:function(){return this.getDimensions().width*M.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*M.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var p=1;try{p=self.devicePixelRatio}catch(g){}return p}}]),M}();K.default=Y},"./src/controller/cmcd-controller.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return s});var G=O("./src/events.ts"),U=O("./src/types/cmcd.ts"),S=O("./src/utils/buffer-helper.ts"),Y=O("./src/utils/logger.ts");function M(i,A){for(var o=0;o<A.length;o++){var a=A[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,a.key,a)}}function e(i,A,o){return A&&M(i.prototype,A),o&&M(i,o),i}function I(i,A){var o=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(o)return(o=o.call(i)).next.bind(o);if(Array.isArray(i)||(o=p(i))||A&&i&&typeof i.length=="number"){o&&(i=o);var a=0;return function(){return a>=i.length?{done:!0}:{done:!1,value:i[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(i,A){if(!i)return;if(typeof i=="string")return g(i,A);var o=Object.prototype.toString.call(i).slice(8,-1);if(o==="Object"&&i.constructor&&(o=i.constructor.name),o==="Map"||o==="Set")return Array.from(i);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return g(i,A)}function g(i,A){(A==null||A>i.length)&&(A=i.length);for(var o=0,a=new Array(A);o<A;o++)a[o]=i[o];return a}function c(){return c=Object.assign||function(i){for(var A=1;A<arguments.length;A++){var o=arguments[A];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a])}return i},c.apply(this,arguments)}var s=function(){function i(o){var a=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){a.initialized&&(a.starved=!0),a.buffering=!0},this.onPlaying=function(){a.initialized||(a.initialized=!0),a.buffering=!1},this.applyPlaylistData=function(b){try{a.apply(b,{ot:U.CMCDObjectType.MANIFEST,su:!a.initialized})}catch(y){Y.logger.warn("Could not generate manifest CMCD data.",y)}},this.applyFragmentData=function(b){try{var y=b.frag,E=a.hls.levels[y.level],T=a.getObjectType(y),v={d:y.duration*1e3,ot:T};(T===U.CMCDObjectType.VIDEO||T===U.CMCDObjectType.AUDIO||T==U.CMCDObjectType.MUXED)&&(v.br=E.bitrate/1e3,v.tb=a.getTopBandwidth(T),v.bl=a.getBufferLength(T)),a.apply(b,v)}catch(d){Y.logger.warn("Could not generate segment CMCD data.",d)}},this.hls=o;var r=this.config=o.config,t=r.cmcd;t!=null&&(r.pLoader=this.createPlaylistLoader(),r.fLoader=this.createFragmentLoader(),this.sid=t.sessionId||i.uuid(),this.cid=t.contentId,this.useHeaders=t.useHeaders===!0,this.registerListeners())}var A=i.prototype;return A.registerListeners=function(){var a=this.hls;a.on(G.Events.MEDIA_ATTACHED,this.onMediaAttached,this),a.on(G.Events.MEDIA_DETACHED,this.onMediaDetached,this),a.on(G.Events.BUFFER_CREATED,this.onBufferCreated,this)},A.unregisterListeners=function(){var a=this.hls;a.off(G.Events.MEDIA_ATTACHED,this.onMediaAttached,this),a.off(G.Events.MEDIA_DETACHED,this.onMediaDetached,this),a.off(G.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},A.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},A.onMediaAttached=function(a,r){this.media=r.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},A.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},A.onBufferCreated=function(a,r){var t,b;this.audioBuffer=(t=r.tracks.audio)===null||t===void 0?void 0:t.buffer,this.videoBuffer=(b=r.tracks.video)===null||b===void 0?void 0:b.buffer},A.createData=function(){var a;return{v:U.CMCDVersion,sf:U.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(a=this.media)===null||a===void 0?void 0:a.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},A.apply=function(a,r){r===void 0&&(r={}),c(r,this.createData());var t=r.ot===U.CMCDObjectType.INIT||r.ot===U.CMCDObjectType.VIDEO||r.ot===U.CMCDObjectType.MUXED;if(this.starved&&t&&(r.bs=!0,r.su=!0,this.starved=!1),r.su==null&&(r.su=this.buffering),this.useHeaders){var b=i.toHeaders(r);if(!Object.keys(b).length)return;a.headers||(a.headers={}),c(a.headers,b)}else{var y=i.toQuery(r);if(!y)return;a.url=i.appendQueryToUri(a.url,y)}},A.getObjectType=function(a){var r=a.type;return r==="subtitle"?U.CMCDObjectType.TIMED_TEXT:a.sn==="initSegment"?U.CMCDObjectType.INIT:r==="audio"?U.CMCDObjectType.AUDIO:r==="main"?this.hls.audioTracks.length?U.CMCDObjectType.VIDEO:U.CMCDObjectType.MUXED:void 0},A.getTopBandwidth=function(a){for(var r=0,t=a===U.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,b=I(t),y;!(y=b()).done;){var E=y.value;E.bitrate>r&&(r=E.bitrate)}return r>0?r:NaN},A.getBufferLength=function(a){var r=this.hls.media,t=a===U.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!t||!r)return NaN;var b=S.BufferHelper.bufferInfo(t,r.currentTime,this.config.maxBufferHole);return b.len*1e3},A.createPlaylistLoader=function(){var a=this.config.pLoader,r=this.applyPlaylistData,t=a||this.config.loader;return function(){function b(E){this.loader=void 0,this.loader=new t(E)}var y=b.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(T,v,d){r(T),this.loader.load(T,v,d)},e(b,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),b}()},A.createFragmentLoader=function(){var a=this.config.fLoader,r=this.applyFragmentData,t=a||this.config.loader;return function(){function b(E){this.loader=void 0,this.loader=new t(E)}var y=b.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(T,v,d){r(T),this.loader.load(T,v,d)},e(b,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),b}()},i.uuid=function(){var a=URL.createObjectURL(new Blob),r=a.toString();return URL.revokeObjectURL(a),r.substr(r.lastIndexOf("/")+1)},i.serialize=function(a){for(var r=[],t=function(F){return!Number.isNaN(F)&&F!=null&&F!==""&&F!==!1},b=function(F){return Math.round(F)},y=function(F){return b(F/100)*100},E=function(F){return encodeURIComponent(F)},T={br:b,d:b,bl:y,dl:y,mtp:y,nor:E,rtp:y,tb:b},v=Object.keys(a||{}).sort(),d=I(v),n;!(n=d()).done;){var l=n.value,u=a[l];if(!t(u))continue;if(l==="v"&&u===1)continue;if(l=="pr"&&u===1)continue;var _=T[l];_&&(u=_(u));var m=typeof u,h=void 0;l==="ot"||l==="sf"||l==="st"?h=l+"="+u:m==="boolean"?h=l:m==="number"?h=l+"="+u:h=l+"="+JSON.stringify(u),r.push(h)}return r.join(",")},i.toHeaders=function(a){for(var r=Object.keys(a),t={},b=["Object","Request","Session","Status"],y=[{},{},{},{}],E={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},T=0,v=r;T<v.length;T++){var d=v[T],n=E[d]!=null?E[d]:1;y[n][d]=a[d]}for(var l=0;l<y.length;l++){var u=i.serialize(y[l]);u&&(t["CMCD-"+b[l]]=u)}return t},i.toQuery=function(a){return"CMCD="+encodeURIComponent(i.serialize(a))},i.appendQueryToUri=function(a,r){if(!r)return a;var t=a.includes("?")?"&":"?";return""+a+t+r},i}()},"./src/controller/eme-controller.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/events.ts"),U=O("./src/errors.ts"),S=O("./src/utils/logger.ts"),Y=O("./src/utils/mediakeys-helper.ts");function M(s,i){for(var A=0;A<i.length;A++){var o=i[A];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}function e(s,i,A){return i&&M(s.prototype,i),A&&M(s,A),s}var I=3,p=function(i,A,o){var a={audioCapabilities:[],videoCapabilities:[]};return i.forEach(function(r){a.audioCapabilities.push({contentType:'audio/mp4; codecs="'+r+'"',robustness:o.audioRobustness||""})}),A.forEach(function(r){a.videoCapabilities.push({contentType:'video/mp4; codecs="'+r+'"',robustness:o.videoRobustness||""})}),[a]},g=function(i,A,o,a){switch(i){case Y.KeySystems.WIDEVINE:return p(A,o,a);default:throw new Error("Unknown key-system: "+i)}},c=function(){function s(A){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=A,this._config=A.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var i=s.prototype;return i.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},i._registerListeners=function(){this.hls.on(G.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(G.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(G.Events.MANIFEST_PARSED,this.onManifestParsed,this)},i._unregisterListeners=function(){this.hls.off(G.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(G.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(G.Events.MANIFEST_PARSED,this.onManifestParsed,this)},i.getLicenseServerUrl=function(o){switch(o){case Y.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+o+'"')},i._attemptKeySystemAccess=function(o,a,r){var t=this,b=g(o,a,r,this._drmSystemOptions);S.logger.log("Requesting encrypted media key-system access");var y=this.requestMediaKeySystemAccess(o,b);this.mediaKeysPromise=y.then(function(E){return t._onMediaKeySystemAccessObtained(o,E)}),y.catch(function(E){S.logger.error('Failed to obtain key-system "'+o+'" access:',E)})},i._onMediaKeySystemAccessObtained=function(o,a){var r=this;S.logger.log('Access for key-system "'+o+'" obtained');var t={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:a,mediaKeySystemDomain:o};this._mediaKeysList.push(t);var b=Promise.resolve().then(function(){return a.createMediaKeys()}).then(function(y){return t.mediaKeys=y,S.logger.log('Media-keys created for key-system "'+o+'"'),r._onMediaKeysCreated(),y});return b.catch(function(y){S.logger.error("Failed to create media-keys:",y)}),b},i._onMediaKeysCreated=function(){var o=this;this._mediaKeysList.forEach(function(a){a.mediaKeysSession||(a.mediaKeysSession=a.mediaKeys.createSession(),o._onNewMediaKeySession(a.mediaKeysSession))})},i._onNewMediaKeySession=function(o){var a=this;S.logger.log("New key-system session "+o.sessionId),o.addEventListener("message",function(r){a._onKeySessionMessage(o,r.message)},!1)},i._onKeySessionMessage=function(o,a){S.logger.log("Got EME message event, creating license request"),this._requestLicense(a,function(r){S.logger.log("Received license data (length: "+(r&&r.byteLength)+"), updating key-session"),o.update(r)})},i.onMediaEncrypted=function(o){var a=this;if(S.logger.log('Media is encrypted using "'+o.initDataType+'" init data type'),!this.mediaKeysPromise){S.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(G.Events.ERROR,{type:U.ErrorTypes.KEY_SYSTEM_ERROR,details:U.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var r=function(b){if(!a._media)return;a._attemptSetMediaKeys(b),a._generateRequestWithPreferredKeySession(o.initDataType,o.initData)};this.mediaKeysPromise.then(r).catch(r)},i._attemptSetMediaKeys=function(o){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var a=this._mediaKeysList[0];if(!a||!a.mediaKeys){S.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(G.Events.ERROR,{type:U.ErrorTypes.KEY_SYSTEM_ERROR,details:U.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}S.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(a.mediaKeys),this._hasSetMediaKeys=!0}},i._generateRequestWithPreferredKeySession=function(o,a){var r=this,t=this._mediaKeysList[0];if(!t){S.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(G.Events.ERROR,{type:U.ErrorTypes.KEY_SYSTEM_ERROR,details:U.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(t.mediaKeysSessionInitialized){S.logger.warn("Key-Session already initialized but requested again");return}var b=t.mediaKeysSession;if(!b){S.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(G.Events.ERROR,{type:U.ErrorTypes.KEY_SYSTEM_ERROR,details:U.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!a){S.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(G.Events.ERROR,{type:U.ErrorTypes.KEY_SYSTEM_ERROR,details:U.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}S.logger.log('Generating key-session request for "'+o+'" init data type'),t.mediaKeysSessionInitialized=!0,b.generateRequest(o,a).then(function(){S.logger.debug("Key-session generation succeeded")}).catch(function(y){S.logger.error("Error generating key-session request:",y),r.hls.trigger(G.Events.ERROR,{type:U.ErrorTypes.KEY_SYSTEM_ERROR,details:U.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},i._createLicenseXhr=function(o,a,r){var t=new XMLHttpRequest;t.responseType="arraybuffer",t.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,t,o,a,r);var b=this._licenseXhrSetup;if(b)try{b.call(this.hls,t,o),b=void 0}catch(y){S.logger.error(y)}try{t.readyState||t.open("POST",o,!0),b&&b.call(this.hls,t,o)}catch(y){throw new Error("issue setting up KeySystem license XHR "+y)}return t},i._onLicenseRequestReadyStageChange=function(o,a,r,t){switch(o.readyState){case 4:if(o.status===200){this._requestLicenseFailureCount=0,S.logger.log("License request succeeded");var b=o.response,y=this._licenseResponseCallback;if(y)try{b=y.call(this.hls,o,a)}catch(T){S.logger.error(T)}t(b)}else{if(S.logger.error("License Request XHR failed ("+a+"). Status: "+o.status+" ("+o.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>I){this.hls.trigger(G.Events.ERROR,{type:U.ErrorTypes.KEY_SYSTEM_ERROR,details:U.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var E=I-this._requestLicenseFailureCount+1;S.logger.warn("Retrying license request, "+E+" attempts left"),this._requestLicense(r,t)}break}},i._generateLicenseRequestChallenge=function(o,a){switch(o.mediaKeySystemDomain){case Y.KeySystems.WIDEVINE:return a}throw new Error("unsupported key-system: "+o.mediaKeySystemDomain)},i._requestLicense=function(o,a){S.logger.log("Requesting content license for key-system");var r=this._mediaKeysList[0];if(!r){S.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(G.Events.ERROR,{type:U.ErrorTypes.KEY_SYSTEM_ERROR,details:U.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var t=this.getLicenseServerUrl(r.mediaKeySystemDomain),b=this._createLicenseXhr(t,o,a);S.logger.log("Sending license request to URL: "+t);var y=this._generateLicenseRequestChallenge(r,o);b.send(y)}catch(E){S.logger.error("Failure requesting DRM license: "+E),this.hls.trigger(G.Events.ERROR,{type:U.ErrorTypes.KEY_SYSTEM_ERROR,details:U.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},i.onMediaAttached=function(o,a){if(!this._emeEnabled)return;var r=a.media;this._media=r,r.addEventListener("encrypted",this._onMediaEncrypted)},i.onMediaDetached=function(){var o=this._media,a=this._mediaKeysList;if(!o)return;o.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(a.map(function(r){if(r.mediaKeysSession)return r.mediaKeysSession.close().catch(function(){})})).then(function(){return o.setMediaKeys(null)}).catch(function(){})},i.onManifestParsed=function(o,a){if(!this._emeEnabled)return;var r=a.levels.map(function(b){return b.audioCodec}).filter(function(b){return!!b}),t=a.levels.map(function(b){return b.videoCodec}).filter(function(b){return!!b});this._attemptKeySystemAccess(Y.KeySystems.WIDEVINE,r,t)},e(s,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),s}();K.default=c},"./src/controller/fps-controller.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/events.ts"),U=O("./src/utils/logger.ts"),S=function(){function Y(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}var M=Y.prototype;return M.setStreamController=function(I){this.streamController=I},M.registerListeners=function(){this.hls.on(G.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},M.unregisterListeners=function(){this.hls.off(G.Events.MEDIA_ATTACHING,this.onMediaAttaching)},M.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},M.onMediaAttaching=function(I,p){var g=this.hls.config;if(g.capLevelOnFPSDrop){var c=p.media instanceof self.HTMLVideoElement?p.media:null;this.media=c,c&&typeof c.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),g.fpsDroppedMonitoringPeriod)}},M.checkFPS=function(I,p,g){var c=performance.now();if(p){if(this.lastTime){var s=c-this.lastTime,i=g-this.lastDroppedFrames,A=p-this.lastDecodedFrames,o=1e3*i/s,a=this.hls;if(a.trigger(G.Events.FPS_DROP,{currentDropped:i,currentDecoded:A,totalDroppedFrames:g}),o>0&&i>a.config.fpsDroppedMonitoringThreshold*A){var r=a.currentLevel;U.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+r),r>0&&(a.autoLevelCapping===-1||a.autoLevelCapping>=r)&&(r=r-1,a.trigger(G.Events.FPS_DROP_LEVEL_CAPPING,{level:r,droppedLevel:a.currentLevel}),a.autoLevelCapping=r,this.streamController.nextLevelSwitch())}}this.lastTime=c,this.lastDroppedFrames=g,this.lastDecodedFrames=p}},M.checkFPSInterval=function(){var I=this.media;if(I)if(this.isVideoPlaybackQualityAvailable){var p=I.getVideoPlaybackQuality();this.checkFPS(I,p.totalVideoFrames,p.droppedVideoFrames)}else this.checkFPS(I,I.webkitDecodedFrameCount,I.webkitDroppedFrameCount)},Y}();K.default=S},"./src/controller/fragment-finders.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"findFragmentByPDT",function(){return S}),O.d(K,"findFragmentByPTS",function(){return Y}),O.d(K,"fragmentWithinToleranceTest",function(){return M}),O.d(K,"pdtWithinToleranceTest",function(){return e}),O.d(K,"findFragWithCC",function(){return I});var G=O("./src/polyfills/number.ts"),U=O("./src/utils/binary-search.ts");function S(p,g,c){if(g===null||!Array.isArray(p)||!p.length||!Object(G.isFiniteNumber)(g))return null;var s=p[0].programDateTime;if(g<(s||0))return null;var i=p[p.length-1].endProgramDateTime;if(g>=(i||0))return null;c=c||0;for(var A=0;A<p.length;++A){var o=p[A];if(e(g,c,o))return o}return null}function Y(p,g,c,s){c===void 0&&(c=0),s===void 0&&(s=0);var i=null;if(p?i=g[p.sn-g[0].sn+1]||null:c===0&&g[0].start===0&&(i=g[0]),i&&M(c,s,i)===0)return i;var A=U.default.search(g,M.bind(null,c,s));return A||i}function M(p,g,c){p===void 0&&(p=0),g===void 0&&(g=0);var s=Math.min(g,c.duration+(c.deltaPTS?c.deltaPTS:0));return c.start+c.duration-s<=p?1:c.start-s>p&&c.start?-1:0}function e(p,g,c){var s=Math.min(g,c.duration+(c.deltaPTS?c.deltaPTS:0))*1e3,i=c.endProgramDateTime||0;return i-s>p}function I(p,g){return U.default.search(p,function(c){return c.cc<g?1:c.cc>g?-1:0})}},"./src/controller/fragment-tracker.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"FragmentState",function(){return S}),O.d(K,"FragmentTracker",function(){return Y});var G=O("./src/events.ts"),U=O("./src/types/loader.ts"),S;(function(I){I.NOT_LOADED="NOT_LOADED",I.BACKTRACKED="BACKTRACKED",I.APPENDING="APPENDING",I.PARTIAL="PARTIAL",I.OK="OK"})(S||(S={}));var Y=function(){function I(g){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=g,this._registerListeners()}var p=I.prototype;return p._registerListeners=function(){var c=this.hls;c.on(G.Events.BUFFER_APPENDED,this.onBufferAppended,this),c.on(G.Events.FRAG_BUFFERED,this.onFragBuffered,this),c.on(G.Events.FRAG_LOADED,this.onFragLoaded,this)},p._unregisterListeners=function(){var c=this.hls;c.off(G.Events.BUFFER_APPENDED,this.onBufferAppended,this),c.off(G.Events.FRAG_BUFFERED,this.onFragBuffered,this),c.off(G.Events.FRAG_LOADED,this.onFragLoaded,this)},p.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},p.getAppendedFrag=function(c,s){if(s===U.PlaylistLevelType.MAIN){var i=this.activeFragment,A=this.activeParts;if(!i)return null;if(A)for(var o=A.length;o--;){var a=A[o],r=a?a.end:i.appendedPTS;if(a.start<=c&&r!==void 0&&c<=r)return o>9&&(this.activeParts=A.slice(o-9)),a}else if(i.start<=c&&i.appendedPTS!==void 0&&c<=i.appendedPTS)return i}return this.getBufferedFrag(c,s)},p.getBufferedFrag=function(c,s){for(var i=this.fragments,A=Object.keys(i),o=A.length;o--;){var a=i[A[o]];if((a==null?void 0:a.body.type)===s&&a.buffered){var r=a.body;if(r.start<=c&&c<=r.end)return r}}return null},p.detectEvictedFragments=function(c,s,i){var A=this;Object.keys(this.fragments).forEach(function(o){var a=A.fragments[o];if(!a)return;if(!a.buffered){a.body.type===i&&A.removeFragment(a.body);return}var r=a.range[c];if(!r)return;r.time.some(function(t){var b=!A.isTimeBuffered(t.startPTS,t.endPTS,s);return b&&A.removeFragment(a.body),b})})},p.detectPartialFragments=function(c){var s=this,i=this.timeRanges,A=c.frag,o=c.part;if(!i||A.sn==="initSegment")return;var a=e(A),r=this.fragments[a];if(!r)return;Object.keys(i).forEach(function(t){var b=A.elementaryStreams[t];if(!b)return;var y=i[t],E=o!==null||b.partial===!0;r.range[t]=s.getBufferedTimes(A,o,E,y)}),r.backtrack=r.loaded=null,Object.keys(r.range).length?r.buffered=!0:this.removeFragment(r.body)},p.fragBuffered=function(c){var s=e(c),i=this.fragments[s];i&&(i.backtrack=i.loaded=null,i.buffered=!0)},p.getBufferedTimes=function(c,s,i,A){for(var o={time:[],partial:i},a=s?s.start:c.start,r=s?s.end:c.end,t=c.minEndPTS||r,b=c.maxStartPTS||a,y=0;y<A.length;y++){var E=A.start(y)-this.bufferPadding,T=A.end(y)+this.bufferPadding;if(b>=E&&t<=T){o.time.push({startPTS:Math.max(a,A.start(y)),endPTS:Math.min(r,A.end(y))});break}else if(a<T&&r>E)o.partial=!0,o.time.push({startPTS:Math.max(a,A.start(y)),endPTS:Math.min(r,A.end(y))});else if(r<=E)break}return o},p.getPartialFragment=function(c){var s=null,i,A,o,a=0,r=this.bufferPadding,t=this.fragments;return Object.keys(t).forEach(function(b){var y=t[b];if(!y)return;M(y)&&(A=y.body.start-r,o=y.body.end+r,c>=A&&c<=o&&(i=Math.min(c-A,o-c),a<=i&&(s=y.body,a=i)))}),s},p.getState=function(c){var s=e(c),i=this.fragments[s];return i?i.buffered?M(i)?S.PARTIAL:S.OK:i.backtrack?S.BACKTRACKED:S.APPENDING:S.NOT_LOADED},p.backtrack=function(c,s){var i=e(c),A=this.fragments[i];if(!A||A.backtrack)return null;var o=A.backtrack=s||A.loaded;return A.loaded=null,o},p.getBacktrackData=function(c){var s=e(c),i=this.fragments[s];if(i){var A,o=i.backtrack;if(o!=null&&(A=o.payload)!==null&&A!==void 0&&A.byteLength)return o;this.removeFragment(c)}return null},p.isTimeBuffered=function(c,s,i){for(var A,o,a=0;a<i.length;a++){if(A=i.start(a)-this.bufferPadding,o=i.end(a)+this.bufferPadding,c>=A&&s<=o)return!0;if(s<=A)return!1}return!1},p.onFragLoaded=function(c,s){var i=s.frag,A=s.part;if(i.sn==="initSegment"||i.bitrateTest||A)return;var o=e(i);this.fragments[o]={body:i,loaded:s,backtrack:null,buffered:!1,range:Object.create(null)}},p.onBufferAppended=function(c,s){var i=this,A=s.frag,o=s.part,a=s.timeRanges;if(A.type===U.PlaylistLevelType.MAIN)if(this.activeFragment=A,o){var r=this.activeParts;r||(this.activeParts=r=[]),r.push(o)}else this.activeParts=null;this.timeRanges=a,Object.keys(a).forEach(function(t){var b=a[t];if(i.detectEvictedFragments(t,b),!o)for(var y=0;y<b.length;y++)A.appendedPTS=Math.max(b.end(y),A.appendedPTS||0)})},p.onFragBuffered=function(c,s){this.detectPartialFragments(s)},p.hasFragment=function(c){var s=e(c);return!!this.fragments[s]},p.removeFragmentsInRange=function(c,s,i){var A=this;Object.keys(this.fragments).forEach(function(o){var a=A.fragments[o];if(!a)return;if(a.buffered){var r=a.body;r.type===i&&r.start<s&&r.end>c&&A.removeFragment(r)}})},p.removeFragment=function(c){var s=e(c);c.stats.loaded=0,c.clearElementaryStreamInfo(),delete this.fragments[s]},p.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},I}();function M(I){var p,g;return I.buffered&&(((p=I.range.video)===null||p===void 0?void 0:p.partial)||((g=I.range.audio)===null||g===void 0?void 0:g.partial))}function e(I){return I.type+"_"+I.level+"_"+I.urlId+"_"+I.sn}},"./src/controller/gap-controller.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"STALL_MINIMUM_DURATION_MS",function(){return M}),O.d(K,"MAX_START_GAP_JUMP",function(){return e}),O.d(K,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return I}),O.d(K,"SKIP_BUFFER_RANGE_START",function(){return p}),O.d(K,"default",function(){return g});var G=O("./src/utils/buffer-helper.ts"),U=O("./src/errors.ts"),S=O("./src/events.ts"),Y=O("./src/utils/logger.ts"),M=250,e=2,I=.1,p=.05,g=function(){function c(i,A,o,a){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=i,this.media=A,this.fragmentTracker=o,this.hls=a}var s=c.prototype;return s.destroy=function(){this.hls=this.fragmentTracker=this.media=null},s.poll=function(A){var o=this.config,a=this.media,r=this.stalled,t=a.currentTime,b=a.seeking,y=this.seeking&&!b,E=!this.seeking&&b;if(this.seeking=b,t!==A){if(this.moved=!0,r!==null){if(this.stallReported){var T=self.performance.now()-r;Y.logger.warn("playback not stuck anymore @"+t+", after "+Math.round(T)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((E||y)&&(this.stalled=null),a.paused||a.ended||a.playbackRate===0||!G.BufferHelper.getBuffered(a).length)return;var v=G.BufferHelper.bufferInfo(a,t,0),d=v.len>0,n=v.nextStart||0;if(!d&&!n)return;if(b){var l=v.len>e,u=!n||n-t>e&&!this.fragmentTracker.getPartialFragment(t);if(l||u)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var _,m=Math.max(n,v.start||0)-t,h=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,R=h==null||((_=h.details)===null||_===void 0)?void 0:_.live,F=R?h.details.targetduration*2:e;if(m>0&&m<=F){this._trySkipBufferHole(null);return}}var C=self.performance.now();if(r===null){this.stalled=C;return}var P=C-r;!b&&P>=M&&this._reportStall(v.len);var j=G.BufferHelper.bufferInfo(a,t,o.maxBufferHole);this._tryFixBufferStall(j,P)},s._tryFixBufferStall=function(A,o){var a=this.config,r=this.fragmentTracker,t=this.media,b=t.currentTime,y=r.getPartialFragment(b);if(y){var E=this._trySkipBufferHole(y);if(E)return}A.len>a.maxBufferHole&&o>a.highBufferWatchdogPeriod*1e3&&(Y.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},s._reportStall=function(A){var o=this.hls,a=this.media,r=this.stallReported;r||(this.stallReported=!0,Y.logger.warn("Playback stalling at @"+a.currentTime+" due to low buffer (buffer="+A+")"),o.trigger(S.Events.ERROR,{type:U.ErrorTypes.MEDIA_ERROR,details:U.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:A}))},s._trySkipBufferHole=function(A){for(var o=this.config,a=this.hls,r=this.media,t=r.currentTime,b=0,y=G.BufferHelper.getBuffered(r),E=0;E<y.length;E++){var T=y.start(E);if(t+o.maxBufferHole>=b&&t<T){var v=Math.max(T+p,r.currentTime+I);return Y.logger.warn("skipping hole, adjusting currentTime from "+t+" to "+v),this.moved=!0,this.stalled=null,r.currentTime=v,A&&a.trigger(S.Events.ERROR,{type:U.ErrorTypes.MEDIA_ERROR,details:U.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+t+" to "+v,frag:A}),v}b=y.end(E)}return 0},s._tryNudgeBuffer=function(){var A=this.config,o=this.hls,a=this.media,r=a.currentTime,t=(this.nudgeRetry||0)+1;if(this.nudgeRetry=t,t<A.nudgeMaxRetry){var b=r+t*A.nudgeOffset;Y.logger.warn("Nudging 'currentTime' from "+r+" to "+b),a.currentTime=b,o.trigger(S.Events.ERROR,{type:U.ErrorTypes.MEDIA_ERROR,details:U.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else Y.logger.error("Playhead still not moving while enough data buffered @"+r+" after "+A.nudgeMaxRetry+" nudges"),o.trigger(S.Events.ERROR,{type:U.ErrorTypes.MEDIA_ERROR,details:U.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},c}()},"./src/controller/id3-track-controller.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/events.ts"),U=O("./src/utils/texttrack-utils.ts"),S=O("./src/demux/id3.ts"),Y=.25,M=function(){function e(p){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=p,this._registerListeners()}var I=e.prototype;return I.destroy=function(){this._unregisterListeners()},I._registerListeners=function(){var g=this.hls;g.on(G.Events.MEDIA_ATTACHED,this.onMediaAttached,this),g.on(G.Events.MEDIA_DETACHING,this.onMediaDetaching,this),g.on(G.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),g.on(G.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},I._unregisterListeners=function(){var g=this.hls;g.off(G.Events.MEDIA_ATTACHED,this.onMediaAttached,this),g.off(G.Events.MEDIA_DETACHING,this.onMediaDetaching,this),g.off(G.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),g.off(G.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},I.onMediaAttached=function(g,c){this.media=c.media},I.onMediaDetaching=function(){if(!this.id3Track)return;Object(U.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},I.getID3Track=function(g){if(!this.media)return;for(var c=0;c<g.length;c++){var s=g[c];if(s.kind==="metadata"&&s.label==="id3")return Object(U.sendAddTrackEvent)(s,this.media),s}return this.media.addTextTrack("metadata","id3")},I.onFragParsingMetadata=function(g,c){if(!this.media)return;var s=c.frag,i=c.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var A=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,o=0;o<i.length;o++){var a=S.getID3Frames(i[o].data);if(a){var r=i[o].pts,t=o<i.length-1?i[o+1].pts:s.end,b=t-r;b<=0&&(t=r+Y);for(var y=0;y<a.length;y++){var E=a[y];if(!S.isTimeStampFrame(E)){var T=new A(r,t,"");T.value=E,this.id3Track.addCue(T)}}}}},I.onBufferFlushing=function(g,c){var s=c.startOffset,i=c.endOffset,A=c.type;if(!A||A==="audio"){var o=this.id3Track;o&&Object(U.removeCuesInRange)(o,s,i)}},e}();K.default=M},"./src/controller/latency-controller.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return e});var G=O("./src/errors.ts"),U=O("./src/events.ts"),S=O("./src/utils/logger.ts");function Y(I,p){for(var g=0;g<p.length;g++){var c=p[g];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(I,c.key,c)}}function M(I,p,g){return p&&Y(I.prototype,p),g&&Y(I,g),I}var e=function(){function I(g){var c=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return c.timeupdate()},this.hls=g,this.config=g.config,this.registerListeners()}var p=I.prototype;return p.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},p.registerListeners=function(){this.hls.on(U.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(U.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(U.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(U.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(U.Events.ERROR,this.onError,this)},p.unregisterListeners=function(){this.hls.off(U.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(U.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(U.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(U.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(U.Events.ERROR,this.onError)},p.onMediaAttached=function(c,s){this.media=s.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},p.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},p.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},p.onLevelUpdated=function(c,s){var i=s.details;this.levelDetails=i,i.advanced&&this.timeupdate(),!i.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},p.onError=function(c,s){if(s.details!==G.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,S.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},p.timeupdate=function(){var c=this.media,s=this.levelDetails;if(!c||!s)return;this.currentTime=c.currentTime;var i=this.computeLatency();if(i===null)return;this._latency=i;var A=this.config,o=A.lowLatencyMode,a=A.maxLiveSyncPlaybackRate;if(!o||a===1)return;var r=this.targetLatency;if(r===null)return;var t=i-r,b=Math.min(this.maxLatency,r+s.targetduration),y=t<b;if(s.live&&y&&t>.05&&this.forwardBufferLength>1){var E=Math.min(2,Math.max(1,a)),T=Math.round(2/(1+Math.exp(-.75*t-this.edgeStalled))*20)/20;c.playbackRate=Math.min(E,Math.max(1,T))}else c.playbackRate!==1&&c.playbackRate!==0&&(c.playbackRate=1)},p.estimateLiveEdge=function(){var c=this.levelDetails;return c===null?null:c.edge+c.age},p.computeLatency=function(){var c=this.estimateLiveEdge();return c===null?null:c-this.currentTime},M(I,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var c=this.config,s=this.levelDetails;return c.liveMaxLatencyDuration!==void 0?c.liveMaxLatencyDuration:s?c.liveMaxLatencyDurationCount*s.targetduration:0}},{key:"targetLatency",get:function(){var c=this.levelDetails;if(c===null)return null;var s=c.holdBack,i=c.partHoldBack,A=c.targetduration,o=this.config,a=o.liveSyncDuration,r=o.liveSyncDurationCount,t=o.lowLatencyMode,b=this.hls.userConfig,y=t&&i||s;(b.liveSyncDuration||b.liveSyncDurationCount||y===0)&&(y=a!==void 0?a:r*A);var E=A,T=1;return y+Math.min(this.stallCount*T,E)}},{key:"liveSyncPosition",get:function(){var c=this.estimateLiveEdge(),s=this.targetLatency,i=this.levelDetails;if(c===null||s===null||i===null)return null;var A=i.edge,o=c-s-this.edgeStalled,a=A-i.totalduration,r=A-(this.config.lowLatencyMode&&i.partTarget||i.targetduration);return Math.min(Math.max(a,o),r)}},{key:"drift",get:function(){var c=this.levelDetails;return c===null?1:c.drift}},{key:"edgeStalled",get:function(){var c=this.levelDetails;if(c===null)return 0;var s=(this.config.lowLatencyMode&&c.partTarget||c.targetduration)*3;return Math.max(c.age-s,0)}},{key:"forwardBufferLength",get:function(){var c=this.media,s=this.levelDetails;if(!c||!s)return 0;var i=c.buffered.length;return i?c.buffered.end(i-1):s.edge-this.currentTime}}]),I}()},"./src/controller/level-controller.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return o});var G=O("./src/types/level.ts"),U=O("./src/events.ts"),S=O("./src/errors.ts"),Y=O("./src/utils/codecs.ts"),M=O("./src/controller/level-helper.ts"),e=O("./src/controller/base-playlist-controller.ts"),I=O("./src/types/loader.ts");function p(){return p=Object.assign||function(a){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var b in t)Object.prototype.hasOwnProperty.call(t,b)&&(a[b]=t[b])}return a},p.apply(this,arguments)}function g(a,r){for(var t=0;t<r.length;t++){var b=r[t];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(a,b.key,b)}}function c(a,r,t){return r&&g(a.prototype,r),t&&g(a,t),a}function s(a,r){a.prototype=Object.create(r.prototype),a.prototype.constructor=a,i(a,r)}function i(a,r){return i=Object.setPrototypeOf||function(b,y){return b.__proto__=y,b},i(a,r)}var A=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),o=function(a){s(r,a);function r(b){var y;return y=a.call(this,b,"[level-controller]")||this,y._levels=[],y._firstLevel=-1,y._startLevel=void 0,y.currentLevelIndex=-1,y.manualLevelIndex=-1,y.onParsedComplete=void 0,y._registerListeners(),y}var t=r.prototype;return t._registerListeners=function(){var y=this.hls;y.on(U.Events.MANIFEST_LOADED,this.onManifestLoaded,this),y.on(U.Events.LEVEL_LOADED,this.onLevelLoaded,this),y.on(U.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),y.on(U.Events.FRAG_LOADED,this.onFragLoaded,this),y.on(U.Events.ERROR,this.onError,this)},t._unregisterListeners=function(){var y=this.hls;y.off(U.Events.MANIFEST_LOADED,this.onManifestLoaded,this),y.off(U.Events.LEVEL_LOADED,this.onLevelLoaded,this),y.off(U.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),y.off(U.Events.FRAG_LOADED,this.onFragLoaded,this),y.off(U.Events.ERROR,this.onError,this)},t.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,a.prototype.destroy.call(this)},t.startLoad=function(){var y=this._levels;y.forEach(function(E){E.loadError=0}),a.prototype.startLoad.call(this)},t.onManifestLoaded=function(y,E){var T=[],v=[],d=[],n,l={},u,_=!1,m=!1,h=!1;if(E.levels.forEach(function(P){var j=P.attrs;_=_||!!(P.width&&P.height),m=m||!!P.videoCodec,h=h||!!P.audioCodec,A&&P.audioCodec&&P.audioCodec.indexOf("mp4a.40.34")!==-1&&(P.audioCodec=void 0);var D=P.bitrate+"-"+P.attrs.RESOLUTION+"-"+P.attrs.CODECS;u=l[D],u?u.url.push(P.url):(u=new G.Level(P),l[D]=u,T.push(u)),j&&(j.AUDIO&&Object(M.addGroupId)(u,"audio",j.AUDIO),j.SUBTITLES&&Object(M.addGroupId)(u,"text",j.SUBTITLES))}),(_||m)&&h&&(T=T.filter(function(P){var j=P.videoCodec,D=P.width,$=P.height;return!!j||!!(D&&$)})),T=T.filter(function(P){var j=P.audioCodec,D=P.videoCodec;return(!j||Object(Y.isCodecSupportedInMp4)(j,"audio"))&&(!D||Object(Y.isCodecSupportedInMp4)(D,"video"))}),E.audioTracks&&(v=E.audioTracks.filter(function(P){return!P.audioCodec||Object(Y.isCodecSupportedInMp4)(P.audioCodec,"audio")}),Object(M.assignTrackIdsByGroup)(v)),E.subtitles&&(d=E.subtitles,Object(M.assignTrackIdsByGroup)(d)),T.length>0){n=T[0].bitrate,T.sort(function(P,j){return P.bitrate-j.bitrate}),this._levels=T;for(var R=0;R<T.length;R++)if(T[R].bitrate===n){this._firstLevel=R,this.log("manifest loaded, "+T.length+" level(s) found, first bitrate: "+n);break}var F=h&&!m,C={levels:T,audioTracks:v,subtitleTracks:d,firstLevel:this._firstLevel,stats:E.stats,audio:h,video:m,altAudio:!F&&v.some(function(P){return!!P.url})};this.hls.trigger(U.Events.MANIFEST_PARSED,C),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(U.Events.ERROR,{type:S.ErrorTypes.MEDIA_ERROR,details:S.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:E.url,reason:"no level with compatible codecs found in manifest"})},t.onError=function(y,E){if(a.prototype.onError.call(this,y,E),E.fatal)return;var T=E.context,v=this._levels[this.currentLevelIndex];if(T&&(T.type===I.PlaylistContextType.AUDIO_TRACK&&v.audioGroupIds&&T.groupId===v.audioGroupIds[v.urlId]||T.type===I.PlaylistContextType.SUBTITLE_TRACK&&v.textGroupIds&&T.groupId===v.textGroupIds[v.urlId])){this.redundantFailover(this.currentLevelIndex);return}var d=!1,n=!0,l;switch(E.details){case S.ErrorDetails.FRAG_LOAD_ERROR:case S.ErrorDetails.FRAG_LOAD_TIMEOUT:case S.ErrorDetails.KEY_LOAD_ERROR:case S.ErrorDetails.KEY_LOAD_TIMEOUT:if(E.frag){var u=this._levels[E.frag.level];u?(u.fragmentError++,u.fragmentError>this.hls.config.fragLoadingMaxRetry&&(l=E.frag.level)):l=E.frag.level}break;case S.ErrorDetails.LEVEL_LOAD_ERROR:case S.ErrorDetails.LEVEL_LOAD_TIMEOUT:T&&(T.deliveryDirectives&&(n=!1),l=T.level),d=!0;break;case S.ErrorDetails.REMUX_ALLOC_ERROR:l=E.level,d=!0;break}l!==void 0&&this.recoverLevel(E,l,d,n)},t.recoverLevel=function(y,E,T,v){var d=y.details,n=this._levels[E];if(n.loadError++,T){var l=this.retryLoadingOrFail(y);if(l)y.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(v){var u=n.url.length;if(u>1&&n.loadError<u)y.levelRetry=!0,this.redundantFailover(E);else if(this.manualLevelIndex===-1){var _=E===0?this._levels.length-1:E-1;this.currentLevelIndex!==_&&this._levels[_].loadError===0&&(this.warn(d+": switch to "+_),y.levelRetry=!0,this.hls.nextAutoLevel=_)}}},t.redundantFailover=function(y){var E=this._levels[y],T=E.url.length;if(T>1){var v=(E.urlId+1)%T;this.warn("Switching to redundant URL-id "+v),this._levels.forEach(function(d){d.urlId=v}),this.level=y}},t.onFragLoaded=function(y,E){var T=E.frag;if(T!==void 0&&T.type===I.PlaylistLevelType.MAIN){var v=this._levels[T.level];v!==void 0&&(v.fragmentError=0,v.loadError=0)}},t.onLevelLoaded=function(y,E){var T,v=E.level,d=E.details,n=this._levels[v];if(!n){var l;this.warn("Invalid level index "+v),(l=E.deliveryDirectives)!==null&&l!==void 0&&l.skip&&(d.deltaUpdateFailed=!0);return}v===this.currentLevelIndex?(n.fragmentError===0&&(n.loadError=0,this.retryCount=0),this.playlistLoaded(v,E,n.details)):(T=E.deliveryDirectives)!==null&&T!==void 0&&T.skip&&(d.deltaUpdateFailed=!0)},t.onAudioTrackSwitched=function(y,E){var T=this.hls.levels[this.currentLevelIndex];if(!T)return;if(T.audioGroupIds){for(var v=-1,d=this.hls.audioTracks[E.id].groupId,n=0;n<T.audioGroupIds.length;n++)if(T.audioGroupIds[n]===d){v=n;break}v!==T.urlId&&(T.urlId=v,this.startLoad())}},t.loadPlaylist=function(y){var E=this.currentLevelIndex,T=this._levels[E];if(this.canLoad&&T&&T.url.length>0){var v=T.urlId,d=T.url[v];if(y)try{d=y.addDirectives(d)}catch(n){this.warn("Could not construct new URL with HLS Delivery Directives: "+n)}this.log("Attempt loading level index "+E+(y?" at sn "+y.msn+" part "+y.part:"")+" with URL-id "+v+" "+d),this.clearTimer(),this.hls.trigger(U.Events.LEVEL_LOADING,{url:d,level:E,id:v,deliveryDirectives:y||null})}},t.removeLevel=function(y,E){var T=function(n,l){return l!==E},v=this._levels.filter(function(d,n){return n!==y?!0:d.url.length>1&&E!==void 0?(d.url=d.url.filter(T),d.audioGroupIds&&(d.audioGroupIds=d.audioGroupIds.filter(T)),d.textGroupIds&&(d.textGroupIds=d.textGroupIds.filter(T)),d.urlId=0,!0):!1}).map(function(d,n){var l=d.details;return l!=null&&l.fragments&&l.fragments.forEach(function(u){u.level=n}),d});this._levels=v,this.hls.trigger(U.Events.LEVELS_UPDATED,{levels:v})},c(r,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(y){var E,T=this._levels;if(T.length===0)return;if(this.currentLevelIndex===y&&(E=T[y])!==null&&E!==void 0&&E.details)return;if(y<0||y>=T.length){var v=y<0;if(this.hls.trigger(U.Events.ERROR,{type:S.ErrorTypes.OTHER_ERROR,details:S.ErrorDetails.LEVEL_SWITCH_ERROR,level:y,fatal:v,reason:"invalid level idx"}),v)return;y=Math.min(y,T.length-1)}this.clearTimer();var d=this.currentLevelIndex,n=T[d],l=T[y];this.log("switching to level "+y+" from "+d),this.currentLevelIndex=y;var u=p({},l,{level:y,maxBitrate:l.maxBitrate,uri:l.uri,urlId:l.urlId});delete u._urlId,this.hls.trigger(U.Events.LEVEL_SWITCHING,u);var _=l.details;if(!_||_.live){var m=this.switchParams(l.uri,n==null?void 0:n.details);this.loadPlaylist(m)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(y){this.manualLevelIndex=y,this._startLevel===void 0&&(this._startLevel=y),y!==-1&&(this.level=y)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(y){this._firstLevel=y}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var y=this.hls.config.startLevel;return y!==void 0?y:this._firstLevel}else return this._startLevel},set:function(y){this._startLevel=y}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(y){this.level=y,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=y)}}]),r}(e.default)},"./src/controller/level-helper.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"addGroupId",function(){return S}),O.d(K,"assignTrackIdsByGroup",function(){return Y}),O.d(K,"updatePTS",function(){return M}),O.d(K,"updateFragPTSDTS",function(){return I}),O.d(K,"mergeDetails",function(){return p}),O.d(K,"mapPartIntersection",function(){return g}),O.d(K,"mapFragmentIntersection",function(){return c}),O.d(K,"adjustSliding",function(){return s}),O.d(K,"addSliding",function(){return i}),O.d(K,"computeReloadInterval",function(){return A}),O.d(K,"getFragmentWithSN",function(){return o}),O.d(K,"getPartWith",function(){return a});var G=O("./src/polyfills/number.ts"),U=O("./src/utils/logger.ts");function S(r,t,b){switch(t){case"audio":r.audioGroupIds||(r.audioGroupIds=[]),r.audioGroupIds.push(b);break;case"text":r.textGroupIds||(r.textGroupIds=[]),r.textGroupIds.push(b);break}}function Y(r){var t={};r.forEach(function(b){var y=b.groupId||"";b.id=t[y]=t[y]||0,t[y]++})}function M(r,t,b){var y=r[t],E=r[b];e(y,E)}function e(r,t){var b=t.startPTS;if(Object(G.isFiniteNumber)(b)){var y=0,E;t.sn>r.sn?(y=b-r.start,E=r):(y=r.start-b,E=t),E.duration!==y&&(E.duration=y)}else if(t.sn>r.sn){var T=r.cc===t.cc;T&&r.minEndPTS?t.start=r.start+(r.minEndPTS-r.start):t.start=r.start+r.duration}else t.start=Math.max(r.start-t.duration,0)}function I(r,t,b,y,E,T){var v=y-b;v<=0&&(U.logger.warn("Fragment should have a positive duration",t),y=b+t.duration,T=E+t.duration);var d=b,n=y,l=t.startPTS,u=t.endPTS;if(Object(G.isFiniteNumber)(l)){var _=Math.abs(l-b);Object(G.isFiniteNumber)(t.deltaPTS)?t.deltaPTS=Math.max(_,t.deltaPTS):t.deltaPTS=_,d=Math.max(b,l),b=Math.min(b,l),E=Math.min(E,t.startDTS),n=Math.min(y,u),y=Math.max(y,u),T=Math.max(T,t.endDTS)}t.duration=y-b;var m=b-t.start;t.appendedPTS=y,t.start=t.startPTS=b,t.maxStartPTS=d,t.startDTS=E,t.endPTS=y,t.minEndPTS=n,t.endDTS=T;var h=t.sn;if(!r||h<r.startSN||h>r.endSN)return 0;var R,F=h-r.startSN,C=r.fragments;for(C[F]=t,R=F;R>0;R--)e(C[R],C[R-1]);for(R=F;R<C.length-1;R++)e(C[R],C[R+1]);return r.fragmentHint&&e(C[C.length-1],r.fragmentHint),r.PTSKnown=r.alignedSliding=!0,m}function p(r,t){for(var b=null,y=r.fragments,E=y.length-1;E>=0;E--){var T=y[E].initSegment;if(T){b=T;break}}r.fragmentHint&&delete r.fragmentHint.endPTS;var v=0,d;if(c(r,t,function(R,F){R.relurl&&(v=R.cc-F.cc),Object(G.isFiniteNumber)(R.startPTS)&&Object(G.isFiniteNumber)(R.endPTS)&&(F.start=F.startPTS=R.startPTS,F.startDTS=R.startDTS,F.appendedPTS=R.appendedPTS,F.maxStartPTS=R.maxStartPTS,F.endPTS=R.endPTS,F.endDTS=R.endDTS,F.minEndPTS=R.minEndPTS,F.duration=R.endPTS-R.startPTS,F.duration&&(d=F),t.PTSKnown=t.alignedSliding=!0),F.elementaryStreams=R.elementaryStreams,F.loader=R.loader,F.stats=R.stats,F.urlId=R.urlId,R.initSegment&&(F.initSegment=R.initSegment,b=R.initSegment)}),b){var n=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments;n.forEach(function(R){var F;(!R.initSegment||R.initSegment.relurl===((F=b)===null||F===void 0?void 0:F.relurl))&&(R.initSegment=b)})}if(t.skippedSegments&&(t.deltaUpdateFailed=t.fragments.some(function(R){return!R}),t.deltaUpdateFailed)){U.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var l=t.skippedSegments;l--;)t.fragments.shift();t.startSN=t.fragments[0].sn,t.startCC=t.fragments[0].cc}var u=t.fragments;if(v){U.logger.warn("discontinuity sliding from playlist, take drift into account");for(var _=0;_<u.length;_++)u[_].cc+=v}t.skippedSegments&&(t.startCC=t.fragments[0].cc),g(r.partList,t.partList,function(R,F){F.elementaryStreams=R.elementaryStreams,F.stats=R.stats}),d?I(t,d,d.startPTS,d.endPTS,d.startDTS,d.endDTS):s(r,t),u.length&&(t.totalduration=t.edge-u[0].start),t.driftStartTime=r.driftStartTime,t.driftStart=r.driftStart;var m=t.advancedDateTime;if(t.advanced&&m){var h=t.edge;t.driftStart||(t.driftStartTime=m,t.driftStart=h),t.driftEndTime=m,t.driftEnd=h}else t.driftEndTime=r.driftEndTime,t.driftEnd=r.driftEnd,t.advancedDateTime=r.advancedDateTime}function g(r,t,b){if(r&&t)for(var y=0,E=0,T=r.length;E<=T;E++){var v=r[E],d=t[E+y];v&&d&&v.index===d.index&&v.fragment.sn===d.fragment.sn?b(v,d):y--}}function c(r,t,b){for(var y=t.skippedSegments,E=Math.max(r.startSN,t.startSN)-t.startSN,T=(r.fragmentHint?1:0)+(y?t.endSN:Math.min(r.endSN,t.endSN))-t.startSN,v=t.startSN-r.startSN,d=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,n=r.fragmentHint?r.fragments.concat(r.fragmentHint):r.fragments,l=E;l<=T;l++){var u=n[v+l],_=d[l];y&&!_&&l<y&&(_=t.fragments[l]=u),u&&_&&b(u,_)}}function s(r,t){var b=t.startSN+t.skippedSegments-r.startSN,y=r.fragments;if(b<0||b>=y.length)return;i(t,y[b].start)}function i(r,t){if(t){for(var b=r.fragments,y=r.skippedSegments;y<b.length;y++)b[y].start+=t;r.fragmentHint&&(r.fragmentHint.start+=t)}}function A(r,t){var b=1e3*r.levelTargetDuration,y=b/2,E=r.age,T=E>0&&E<b*3,v=t.loading.end-t.loading.start,d,n=r.availabilityDelay;if(r.updated===!1)if(T){var l=333*r.misses;d=Math.max(Math.min(y,v*2),l),r.availabilityDelay=(r.availabilityDelay||0)+d}else d=y;else T?(n=Math.min(n||b/2,E),r.availabilityDelay=n,d=n+b-E):d=b-v;return Math.round(d)}function o(r,t,b){if(!r||!r.details)return null;var y=r.details,E=y.fragments[t-y.startSN];return E||(E=y.fragmentHint,E&&E.sn===t?E:t<y.startSN&&b&&b.sn===t?b:null)}function a(r,t,b){if(!r||!r.details)return null;var y=r.details.partList;if(y)for(var E=y.length;E--;){var T=y[E];if(T.index===b&&T.fragment.sn===t)return T}return null}},"./src/controller/stream-controller.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return y});var G=O("./src/polyfills/number.ts"),U=O("./src/controller/base-stream-controller.ts"),S=O("./src/is-supported.ts"),Y=O("./src/events.ts"),M=O("./src/utils/buffer-helper.ts"),e=O("./src/controller/fragment-tracker.ts"),I=O("./src/types/loader.ts"),p=O("./src/loader/fragment.ts"),g=O("./src/demux/transmuxer-interface.ts"),c=O("./src/types/transmuxer.ts"),s=O("./src/controller/gap-controller.ts"),i=O("./src/errors.ts"),A=O("./src/utils/logger.ts");function o(E,T){for(var v=0;v<T.length;v++){var d=T[v];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(E,d.key,d)}}function a(E,T,v){return T&&o(E.prototype,T),v&&o(E,v),E}function r(E,T){E.prototype=Object.create(T.prototype),E.prototype.constructor=E,t(E,T)}function t(E,T){return t=Object.setPrototypeOf||function(d,n){return d.__proto__=n,d},t(E,T)}var b=100,y=function(E){r(T,E);function T(d,n){var l;return l=E.call(this,d,n,"[stream-controller]")||this,l.audioCodecSwap=!1,l.gapController=null,l.level=-1,l._forceStartLoad=!1,l.altAudio=!1,l.audioOnly=!1,l.fragPlaying=null,l.onvplaying=null,l.onvseeked=null,l.fragLastKbps=0,l.stalled=!1,l.couldBacktrack=!1,l.audioCodecSwitch=!1,l.videoBuffer=null,l._registerListeners(),l}var v=T.prototype;return v._registerListeners=function(){var n=this.hls;n.on(Y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),n.on(Y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),n.on(Y.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.on(Y.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(Y.Events.LEVEL_LOADING,this.onLevelLoading,this),n.on(Y.Events.LEVEL_LOADED,this.onLevelLoaded,this),n.on(Y.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),n.on(Y.Events.ERROR,this.onError,this),n.on(Y.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),n.on(Y.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),n.on(Y.Events.BUFFER_CREATED,this.onBufferCreated,this),n.on(Y.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),n.on(Y.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),n.on(Y.Events.FRAG_BUFFERED,this.onFragBuffered,this)},v._unregisterListeners=function(){var n=this.hls;n.off(Y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),n.off(Y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),n.off(Y.Events.MANIFEST_LOADING,this.onManifestLoading,this),n.off(Y.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(Y.Events.LEVEL_LOADED,this.onLevelLoaded,this),n.off(Y.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),n.off(Y.Events.ERROR,this.onError,this),n.off(Y.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),n.off(Y.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),n.off(Y.Events.BUFFER_CREATED,this.onBufferCreated,this),n.off(Y.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),n.off(Y.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),n.off(Y.Events.FRAG_BUFFERED,this.onFragBuffered,this)},v.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},v.startLoad=function(n){if(this.levels){var l=this.lastCurrentTime,u=this.hls;if(this.stopLoad(),this.setInterval(b),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var _=u.startLevel;_===-1&&(u.config.testBandwidth?(_=0,this.bitrateTest=!0):_=u.nextAutoLevel),this.level=u.nextLoadLevel=_,this.loadedmetadata=!1}l>0&&n===-1&&(this.log("Override startPosition with lastCurrentTime @"+l.toFixed(3)),n=l),this.state=U.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=n,this.tick()}else this._forceStartLoad=!0,this.state=U.State.STOPPED},v.stopLoad=function(){this._forceStartLoad=!1,E.prototype.stopLoad.call(this)},v.doTick=function(){switch(this.state){case U.State.IDLE:this.doTickIdle();break;case U.State.WAITING_LEVEL:{var n,l=this.levels,u=this.level,_=l==null||((n=l[u])===null||n===void 0)?void 0:n.details;if(_&&(!_.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(_))break;this.state=U.State.IDLE;break}break}case U.State.FRAG_LOADING_WAITING_RETRY:{var m,h=self.performance.now(),R=this.retryDate;(!R||h>=R||(m=this.media)!==null&&m!==void 0&&m.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=U.State.IDLE)}break;default:break}this.onTickEnd()},v.onTickEnd=function(){E.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},v.doTickIdle=function(){var n,l,u=this.hls,_=this.levelLastLoaded,m=this.levels,h=this.media,R=u.config,F=u.nextLoadLevel;if(_===null||!h&&(this.startFragRequested||!R.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!m||!m[F])return;var C=m[F];this.level=u.nextLoadLevel=F;var P=C.details;if(!P||this.state===U.State.WAITING_LEVEL||P.live&&this.levelLastLoaded!==F){this.state=U.State.WAITING_LEVEL;return}var j=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:h,I.PlaylistLevelType.MAIN);if(j===null)return;var D=j.len,$=this.getMaxBufferLength(C.maxBitrate);if(D>=$)return;if(this._streamEnded(j,P)){var oe={};this.altAudio&&(oe.type="video"),this.hls.trigger(Y.Events.BUFFER_EOS,oe),this.state=U.State.ENDED;return}var Ee=j.end,ve=this.getNextFragment(Ee,P);if(this.couldBacktrack&&!this.fragPrevious&&ve&&ve.sn!=="initSegment"){var Le=ve.sn-P.startSN;Le>1&&(ve=P.fragments[Le-1],this.fragmentTracker.removeFragment(ve))}if(ve&&this.fragmentTracker.getState(ve)===e.FragmentState.OK&&this.nextLoadPosition>Ee){var Se=this.audioOnly&&!this.altAudio?p.ElementaryStreamTypes.AUDIO:p.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(h,Se,I.PlaylistLevelType.MAIN),ve=this.getNextFragment(this.nextLoadPosition,P)}if(!ve)return;ve.initSegment&&!ve.initSegment.data&&!this.bitrateTest&&(ve=ve.initSegment),((n=ve.decryptdata)===null||n===void 0?void 0:n.keyFormat)==="identity"&&!((l=ve.decryptdata)!==null&&l!==void 0&&l.key)?this.loadKey(ve,P):this.loadFragment(ve,P,Ee)},v.loadFragment=function(n,l,u){var _,m=this.fragmentTracker.getState(n);if(this.fragCurrent=n,m===e.FragmentState.BACKTRACKED){var h=this.fragmentTracker.getBacktrackData(n);if(h){this._handleFragmentLoadProgress(h),this._handleFragmentLoadComplete(h);return}else m=e.FragmentState.NOT_LOADED}m===e.FragmentState.NOT_LOADED||m===e.FragmentState.PARTIAL?n.sn==="initSegment"?this._loadInitSegment(n):this.bitrateTest?(n.bitrateTest=!0,this.log("Fragment "+n.sn+" of level "+n.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(n)):(this.startFragRequested=!0,E.prototype.loadFragment.call(this,n,l,u)):m===e.FragmentState.APPENDING?this.reduceMaxBufferLength(n.duration)&&this.fragmentTracker.removeFragment(n):((_=this.media)===null||_===void 0?void 0:_.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},v.getAppendedFrag=function(n){var l=this.fragmentTracker.getAppendedFrag(n,I.PlaylistLevelType.MAIN);return l&&"fragment"in l?l.fragment:l},v.getBufferedFrag=function(n){return this.fragmentTracker.getBufferedFrag(n,I.PlaylistLevelType.MAIN)},v.followingBufferedFrag=function(n){return n?this.getBufferedFrag(n.end+.5):null},v.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},v.nextLevelSwitch=function(){var n=this.levels,l=this.media;if(l!=null&&l.readyState){var u,_=this.getAppendedFrag(l.currentTime);if(_&&_.start>1&&this.flushMainBuffer(0,_.start-1),!l.paused&&n){var m=this.hls.nextLoadLevel,h=n[m],R=this.fragLastKbps;R&&this.fragCurrent?u=this.fragCurrent.duration*h.maxBitrate/(1e3*R)+1:u=0}else u=0;var F=this.getBufferedFrag(l.currentTime+u);if(F){var C=this.followingBufferedFrag(F);if(C){this.abortCurrentFrag();var P=C.maxStartPTS?C.maxStartPTS:C.start,j=C.duration,D=Math.max(F.end,P+Math.min(Math.max(j-this.config.maxFragLookUpTolerance,j*.5),j*.75));this.flushMainBuffer(D,Number.POSITIVE_INFINITY)}}}},v.abortCurrentFrag=function(){var n=this.fragCurrent;this.fragCurrent=null,n!=null&&n.loader&&n.loader.abort(),this.state===U.State.KEY_LOADING&&(this.state=U.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},v.flushMainBuffer=function(n,l){E.prototype.flushMainBuffer.call(this,n,l,this.altAudio?"video":null)},v.onMediaAttached=function(n,l){E.prototype.onMediaAttached.call(this,n,l);var u=l.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),u.addEventListener("playing",this.onvplaying),u.addEventListener("seeked",this.onvseeked),this.gapController=new s.default(this.config,u,this.fragmentTracker,this.hls)},v.onMediaDetaching=function(){var n=this.media;n&&(n.removeEventListener("playing",this.onvplaying),n.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),E.prototype.onMediaDetaching.call(this)},v.onMediaPlaying=function(){this.tick()},v.onMediaSeeked=function(){var n=this.media,l=n?n.currentTime:null;Object(G.isFiniteNumber)(l)&&this.log("Media seeked to "+l.toFixed(3)),this.tick()},v.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(Y.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},v.onManifestParsed=function(n,l){var u=!1,_=!1,m;l.levels.forEach(function(h){m=h.audioCodec,m&&(m.indexOf("mp4a.40.2")!==-1&&(u=!0),m.indexOf("mp4a.40.5")!==-1&&(_=!0))}),this.audioCodecSwitch=u&&_&&!Object(S.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=l.levels,this.startFragRequested=!1},v.onLevelLoading=function(n,l){var u=this.levels;if(!u||this.state!==U.State.IDLE)return;var _=u[l.level];(!_.details||_.details.live&&this.levelLastLoaded!==l.level||this.waitForCdnTuneIn(_.details))&&(this.state=U.State.WAITING_LEVEL)},v.onLevelLoaded=function(n,l){var u,_=this.levels,m=l.level,h=l.details,R=h.totalduration;if(!_){this.warn("Levels were reset while loading level "+m);return}this.log("Level "+m+" loaded ["+h.startSN+","+h.endSN+"], cc ["+h.startCC+", "+h.endCC+"] duration:"+R);var F=this.fragCurrent;F&&(this.state===U.State.FRAG_LOADING||this.state===U.State.FRAG_LOADING_WAITING_RETRY)&&(F.level!==l.level&&F.loader&&(this.state=U.State.IDLE,F.loader.abort()));var C=_[m],P=0;if(h.live||(u=C.details)!==null&&u!==void 0&&u.live){if(h.fragments[0]||(h.deltaUpdateFailed=!0),h.deltaUpdateFailed)return;P=this.alignPlaylists(h,C.details)}if(C.details=h,this.levelLastLoaded=m,this.hls.trigger(Y.Events.LEVEL_UPDATED,{details:h,level:m}),this.state===U.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(h))return;this.state=U.State.IDLE}this.startFragRequested?h.live&&this.synchronizeToLiveEdge(h):this.setStartPosition(h,P),this.tick()},v._handleFragmentLoadProgress=function(n){var l,u=n.frag,_=n.part,m=n.payload,h=this.levels;if(!h){this.warn("Levels were reset while fragment load was in progress. Fragment "+u.sn+" of level "+u.level+" will not be buffered");return}var R=h[u.level],F=R.details;if(!F){this.warn("Dropping fragment "+u.sn+" of level "+u.level+" after level details were reset");return}var C=R.videoCodec,P=F.PTSKnown||!F.live,j=(l=u.initSegment)===null||l===void 0?void 0:l.data,D=this._getAudioCodec(R),$=this.transmuxer=this.transmuxer||new g.default(this.hls,I.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),oe=_?_.index:-1,Ee=oe!==-1,ve=new c.ChunkMetadata(u.level,u.sn,u.stats.chunkCount,m.byteLength,oe,Ee),Le=this.initPTS[u.cc];$.push(m,j,D,C,u,_,F.totalduration,P,ve,Le)},v.onAudioTrackSwitching=function(n,l){var u=this.altAudio,_=!!l.url,m=l.id;if(!_){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var h=this.fragCurrent;h!=null&&h.loader&&(this.log("Switching to main audio track, cancel main fragment load"),h.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var R=this.hls;u&&R.trigger(Y.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),R.trigger(Y.Events.AUDIO_TRACK_SWITCHED,{id:m})}},v.onAudioTrackSwitched=function(n,l){var u=l.id,_=!!this.hls.audioTracks[u].url;if(_){var m=this.videoBuffer;m&&this.mediaBuffer!==m&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=m)}this.altAudio=_,this.tick()},v.onBufferCreated=function(n,l){var u=l.tracks,_,m,h=!1;for(var R in u){var F=u[R];if(F.id==="main"){if(m=R,_=F,R==="video"){var C=u[R];C&&(this.videoBuffer=C.buffer)}}else h=!0}h&&_?(this.log("Alternate track found, use "+m+".buffered to schedule main fragment loading"),this.mediaBuffer=_.buffer):this.mediaBuffer=this.media},v.onFragBuffered=function(n,l){var u=l.frag,_=l.part;if(u&&u.type!==I.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(u)){this.warn("Fragment "+u.sn+(_?" p: "+_.index:"")+" of level "+u.level+" finished buffering, but was aborted. state: "+this.state),this.state===U.State.PARSED&&(this.state=U.State.IDLE);return}var m=_?_.stats:u.stats;this.fragLastKbps=Math.round(8*m.total/(m.buffering.end-m.loading.first)),u.sn!=="initSegment"&&(this.fragPrevious=u),this.fragBufferedComplete(u,_)},v.onError=function(n,l){switch(l.details){case i.ErrorDetails.FRAG_LOAD_ERROR:case i.ErrorDetails.FRAG_LOAD_TIMEOUT:case i.ErrorDetails.KEY_LOAD_ERROR:case i.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(I.PlaylistLevelType.MAIN,l);break;case i.ErrorDetails.LEVEL_LOAD_ERROR:case i.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==U.State.ERROR&&(l.fatal?(this.warn(""+l.details),this.state=U.State.ERROR):!l.levelRetry&&this.state===U.State.WAITING_LEVEL&&(this.state=U.State.IDLE));break;case i.ErrorDetails.BUFFER_FULL_ERROR:if(l.parent==="main"&&(this.state===U.State.PARSING||this.state===U.State.PARSED)){var u=!0,_=this.getFwdBufferInfo(this.media,I.PlaylistLevelType.MAIN);_&&_.len>.5&&(u=!this.reduceMaxBufferLength(_.len)),u&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},v.checkBuffer=function(){var n=this.media,l=this.gapController;if(!n||!l||!n.readyState)return;var u=M.BufferHelper.getBuffered(n);!this.loadedmetadata&&u.length?(this.loadedmetadata=!0,this.seekToStartPos()):l.poll(this.lastCurrentTime),this.lastCurrentTime=n.currentTime},v.onFragLoadEmergencyAborted=function(){this.state=U.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},v.onBufferFlushed=function(n,l){var u=l.type;if(u!==p.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var _=(u===p.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(_,u,I.PlaylistLevelType.MAIN)}},v.onLevelsUpdated=function(n,l){this.levels=l.levels},v.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},v.seekToStartPos=function(){var n=this.media,l=n.currentTime,u=this.startPosition;if(u>=0&&l<u){if(n.seeking){A.logger.log("could not seek to "+u+", already seeking at "+l);return}var _=M.BufferHelper.getBuffered(n),m=_.length?_.start(0):0,h=m-u;h>0&&(h<this.config.maxBufferHole||h<this.config.maxFragLookUpTolerance)&&(A.logger.log("adjusting start position by "+h+" to match buffer start"),u+=h,this.startPosition=u),this.log("seek to target start position "+u+" from current time "+l),n.currentTime=u}},v._getAudioCodec=function(n){var l=this.config.defaultAudioCodec||n.audioCodec;return this.audioCodecSwap&&l&&(this.log("Swapping audio codec"),l.indexOf("mp4a.40.5")!==-1?l="mp4a.40.2":l="mp4a.40.5"),l},v._loadBitrateTestFrag=function(n){var l=this;this._doFragLoad(n).then(function(u){var _=l.hls;if(!u||_.nextLoadLevel||l.fragContextChanged(n))return;l.fragLoadError=0,l.state=U.State.IDLE,l.startFragRequested=!1,l.bitrateTest=!1;var m=n.stats;m.parsing.start=m.parsing.end=m.buffering.start=m.buffering.end=self.performance.now(),_.trigger(Y.Events.FRAG_LOADED,u)})},v._handleTransmuxComplete=function(n){var l,u="main",_=this.hls,m=n.remuxResult,h=n.chunkMeta,R=this.getCurrentContext(h);if(!R){this.warn("The loading context changed while buffering fragment "+h.sn+" of level "+h.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(h.level);return}var F=R.frag,C=R.part,P=R.level,j=m.video,D=m.text,$=m.id3,oe=m.initSegment,Ee=this.altAudio?void 0:m.audio;if(this.fragContextChanged(F))return;if(this.state=U.State.PARSING,oe){oe.tracks&&(this._bufferInitSegment(P,oe.tracks,F,h),_.trigger(Y.Events.FRAG_PARSING_INIT_SEGMENT,{frag:F,id:u,tracks:oe.tracks}));var ve=oe.initPTS,Le=oe.timescale;Object(G.isFiniteNumber)(ve)&&(this.initPTS[F.cc]=ve,_.trigger(Y.Events.INIT_PTS_FOUND,{frag:F,id:u,initPTS:ve,timescale:Le}))}if(j&&m.independent!==!1){if(P.details){var Se=j.startPTS,Re=j.endPTS,De=j.startDTS,Fe=j.endDTS;if(C)C.elementaryStreams[j.type]={startPTS:Se,endPTS:Re,startDTS:De,endDTS:Fe};else if(j.firstKeyFrame&&j.independent&&(this.couldBacktrack=!0),j.dropped&&j.independent){var Ce=this.getLoadPosition()+this.config.maxBufferHole;if(Ce<Se){this.backtrack(F);return}F.setElementaryStreamInfo(j.type,F.start,Re,F.start,Fe,!0)}F.setElementaryStreamInfo(j.type,Se,Re,De,Fe),this.bufferFragmentData(j,F,C,h)}}else if(m.independent===!1){this.backtrack(F);return}if(Ee){var X=Ee.startPTS,L=Ee.endPTS,N=Ee.startDTS,J=Ee.endDTS;C&&(C.elementaryStreams[p.ElementaryStreamTypes.AUDIO]={startPTS:X,endPTS:L,startDTS:N,endDTS:J}),F.setElementaryStreamInfo(p.ElementaryStreamTypes.AUDIO,X,L,N,J),this.bufferFragmentData(Ee,F,C,h)}if($!=null&&(l=$.samples)!==null&&l!==void 0&&l.length){var ne={frag:F,id:u,samples:$.samples};_.trigger(Y.Events.FRAG_PARSING_METADATA,ne)}if(D){var k={frag:F,id:u,samples:D.samples};_.trigger(Y.Events.FRAG_PARSING_USERDATA,k)}},v._bufferInitSegment=function(n,l,u,_){var m=this;if(this.state!==U.State.PARSING)return;this.audioOnly=!!l.audio&&!l.video,this.altAudio&&!this.audioOnly&&delete l.audio;var h=l.audio,R=l.video,F=l.audiovideo;if(h){var C=n.audioCodec,P=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(C&&(C.indexOf("mp4a.40.5")!==-1?C="mp4a.40.2":C="mp4a.40.5"),h.metadata.channelCount!==1&&P.indexOf("firefox")===-1&&(C="mp4a.40.5")),P.indexOf("android")!==-1&&h.container!=="audio/mpeg"&&(C="mp4a.40.2",this.log("Android: force audio codec to "+C)),n.audioCodec&&n.audioCodec!==C&&this.log('Swapping manifest audio codec "'+n.audioCodec+'" for "'+C+'"'),h.levelCodec=C,h.id="main",this.log("Init audio buffer, container:"+h.container+", codecs[selected/level/parsed]=["+(C||"")+"/"+(n.audioCodec||"")+"/"+h.codec+"]")}R&&(R.levelCodec=n.videoCodec,R.id="main",this.log("Init video buffer, container:"+R.container+", codecs[level/parsed]=["+(n.videoCodec||"")+"/"+R.codec+"]")),F&&this.log("Init audiovideo buffer, container:"+F.container+", codecs[level/parsed]=["+(n.attrs.CODECS||"")+"/"+F.codec+"]"),this.hls.trigger(Y.Events.BUFFER_CODECS,l),Object.keys(l).forEach(function(j){var D=l[j],$=D.initSegment;$!=null&&$.byteLength&&m.hls.trigger(Y.Events.BUFFER_APPENDING,{type:j,data:$,frag:u,part:null,chunkMeta:_,parent:u.type})}),this.tick()},v.backtrack=function(n){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(n);var l=this.fragmentTracker.backtrack(n);this.fragPrevious=null,this.nextLoadPosition=n.start,l?this.resetFragmentLoading(n):this.state=U.State.BACKTRACKING},v.checkFragmentChanged=function(){var n=this.media,l=null;if(n&&n.readyState>1&&n.seeking===!1){var u=n.currentTime;if(M.BufferHelper.isBuffered(n,u)?l=this.getAppendedFrag(u):M.BufferHelper.isBuffered(n,u+.1)&&(l=this.getAppendedFrag(u+.1)),l){var _=this.fragPlaying,m=l.level;(!_||l.sn!==_.sn||_.level!==m||l.urlId!==_.urlId)&&(this.hls.trigger(Y.Events.FRAG_CHANGED,{frag:l}),(!_||_.level!==m)&&this.hls.trigger(Y.Events.LEVEL_SWITCHED,{level:m}),this.fragPlaying=l)}}},a(T,[{key:"nextLevel",get:function(){var n=this.nextBufferedFrag;return n?n.level:-1}},{key:"currentLevel",get:function(){var n=this.media;if(n){var l=this.getAppendedFrag(n.currentTime);if(l)return l.level}return-1}},{key:"nextBufferedFrag",get:function(){var n=this.media;if(n){var l=this.getAppendedFrag(n.currentTime);return this.followingBufferedFrag(l)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),T}(U.default)},"./src/controller/subtitle-stream-controller.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"SubtitleStreamController",function(){return r});var G=O("./src/events.ts"),U=O("./src/utils/logger.ts"),S=O("./src/utils/buffer-helper.ts"),Y=O("./src/controller/fragment-finders.ts"),M=O("./src/utils/discontinuities.ts"),e=O("./src/controller/level-helper.ts"),I=O("./src/controller/fragment-tracker.ts"),p=O("./src/controller/base-stream-controller.ts"),g=O("./src/types/loader.ts"),c=O("./src/types/level.ts");function s(t,b){for(var y=0;y<b.length;y++){var E=b[y];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(t,E.key,E)}}function i(t,b,y){return b&&s(t.prototype,b),y&&s(t,y),t}function A(t,b){t.prototype=Object.create(b.prototype),t.prototype.constructor=t,o(t,b)}function o(t,b){return o=Object.setPrototypeOf||function(E,T){return E.__proto__=T,E},o(t,b)}var a=500,r=function(t){A(b,t);function b(E,T){var v;return v=t.call(this,E,T,"[subtitle-stream-controller]")||this,v.levels=[],v.currentTrackId=-1,v.tracksBuffered=[],v.mainDetails=null,v._registerListeners(),v}var y=b.prototype;return y.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},y._registerListeners=function(){var T=this.hls;T.on(G.Events.MEDIA_ATTACHED,this.onMediaAttached,this),T.on(G.Events.MEDIA_DETACHING,this.onMediaDetaching,this),T.on(G.Events.MANIFEST_LOADING,this.onManifestLoading,this),T.on(G.Events.LEVEL_LOADED,this.onLevelLoaded,this),T.on(G.Events.ERROR,this.onError,this),T.on(G.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),T.on(G.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),T.on(G.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),T.on(G.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),T.on(G.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},y._unregisterListeners=function(){var T=this.hls;T.off(G.Events.MEDIA_ATTACHED,this.onMediaAttached,this),T.off(G.Events.MEDIA_DETACHING,this.onMediaDetaching,this),T.off(G.Events.MANIFEST_LOADING,this.onManifestLoading,this),T.off(G.Events.LEVEL_LOADED,this.onLevelLoaded,this),T.off(G.Events.ERROR,this.onError,this),T.off(G.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),T.off(G.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),T.off(G.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),T.off(G.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),T.off(G.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},y.startLoad=function(){this.stopLoad(),this.state=p.State.IDLE,this.setInterval(a),this.tick()},y.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},y.onLevelLoaded=function(T,v){this.mainDetails=v.details},y.onSubtitleFragProcessed=function(T,v){var d=v.frag,n=v.success;if(this.fragPrevious=d,this.state=p.State.IDLE,!n)return;var l=this.tracksBuffered[this.currentTrackId];if(!l)return;for(var u,_=d.start,m=0;m<l.length;m++)if(_>=l[m].start&&_<=l[m].end){u=l[m];break}var h=d.start+d.duration;u?u.end=h:(u={start:_,end:h},l.push(u)),this.fragmentTracker.fragBuffered(d)},y.onBufferFlushing=function(T,v){var d=v.startOffset,n=v.endOffset;if(d===0&&n!==Number.POSITIVE_INFINITY){var l=this.currentTrackId,u=this.levels;if(!u.length||!u[l]||!u[l].details)return;var _=u[l].details,m=_.targetduration,h=n-m;if(h<=0)return;v.endOffsetSubtitles=Math.max(0,h),this.tracksBuffered.forEach(function(R){for(var F=0;F<R.length;){if(R[F].end<=h){R.shift();continue}else if(R[F].start<h)R[F].start=h;else break;F++}}),this.fragmentTracker.removeFragmentsInRange(d,h,g.PlaylistLevelType.SUBTITLE)}},y.onError=function(T,v){var d,n=v.frag;if(!n||n.type!==g.PlaylistLevelType.SUBTITLE)return;(d=this.fragCurrent)!==null&&d!==void 0&&d.loader&&this.fragCurrent.loader.abort(),this.state=p.State.IDLE},y.onSubtitleTracksUpdated=function(T,v){var d=this,n=v.subtitleTracks;this.tracksBuffered=[],this.levels=n.map(function(l){return new c.Level(l)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(l){d.tracksBuffered[l.id]=[]}),this.mediaBuffer=null},y.onSubtitleTrackSwitch=function(T,v){if(this.currentTrackId=v.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var d=this.levels[this.currentTrackId];d!=null&&d.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,d&&this.setInterval(a)},y.onSubtitleTrackLoaded=function(T,v){var d,n=v.details,l=v.id,u=this.currentTrackId,_=this.levels;if(!_.length)return;var m=_[u];if(l>=_.length||l!==u||!m)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,n.live||(d=m.details)!==null&&d!==void 0&&d.live){var h=this.mainDetails;if(n.deltaUpdateFailed||!h)return;var R=h.fragments[0];if(!m.details)n.hasProgramDateTime&&h.hasProgramDateTime?Object(M.alignMediaPlaylistByPDT)(n,h):R&&Object(e.addSliding)(n,R.start);else{var F=this.alignPlaylists(n,m.details);F===0&&R&&Object(e.addSliding)(n,R.start)}}if(m.details=n,this.levelLastLoaded=l,this.tick(),n.live&&!this.fragCurrent&&this.media&&this.state===p.State.IDLE){var C=Object(Y.findFragmentByPTS)(null,n.fragments,this.media.currentTime,0);C||(this.warn("Subtitle playlist not aligned with playback"),m.details=void 0)}},y._handleFragmentLoadComplete=function(T){var v=T.frag,d=T.payload,n=v.decryptdata,l=this.hls;if(this.fragContextChanged(v))return;if(d&&d.byteLength>0&&n&&n.key&&n.iv&&n.method==="AES-128"){var u=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(d),n.key.buffer,n.iv.buffer).then(function(_){var m=performance.now();l.trigger(G.Events.FRAG_DECRYPTED,{frag:v,payload:_,stats:{tstart:u,tdecrypt:m}})})}},y.doTick=function(){if(!this.media){this.state=p.State.IDLE;return}if(this.state===p.State.IDLE){var T,v=this.currentTrackId,d=this.levels;if(!d.length||!d[v]||!d[v].details)return;var n=d[v].details,l=n.targetduration,u=this.config,_=this.media,m=S.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,_.currentTime-l,u.maxBufferHole),h=m.end,R=m.len,F=this.getMaxBufferLength()+l;if(R>F)return;console.assert(n,"Subtitle track details are defined on idle subtitle stream controller tick");var C=n.fragments,P=C.length,j=n.edge,D,$=this.fragPrevious;if(h<j){var oe=u.maxFragLookUpTolerance;$&&n.hasProgramDateTime&&(D=Object(Y.findFragmentByPDT)(C,$.endProgramDateTime,oe)),D||(D=Object(Y.findFragmentByPTS)($,C,h,oe),!D&&$&&$.start<C[0].start&&(D=C[0]))}else D=C[P-1];(T=D)!==null&&T!==void 0&&T.encrypted?(U.logger.log("Loading key for "+D.sn),this.state=p.State.KEY_LOADING,this.hls.trigger(G.Events.KEY_LOADING,{frag:D})):D&&this.fragmentTracker.getState(D)===I.FragmentState.NOT_LOADED&&this.loadFragment(D,n,h)}},y.loadFragment=function(T,v,d){this.fragCurrent=T,t.prototype.loadFragment.call(this,T,v,d)},i(b,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),b}(p.default)},"./src/controller/subtitle-track-controller.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/events.ts"),U=O("./src/utils/texttrack-utils.ts"),S=O("./src/controller/base-playlist-controller.ts"),Y=O("./src/types/loader.ts");function M(s,i){for(var A=0;A<i.length;A++){var o=i[A];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}}function e(s,i,A){return i&&M(s.prototype,i),A&&M(s,A),s}function I(s,i){s.prototype=Object.create(i.prototype),s.prototype.constructor=s,p(s,i)}function p(s,i){return p=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},p(s,i)}var g=function(s){I(i,s);function i(o){var a;return a=s.call(this,o,"[subtitle-track-controller]")||this,a.media=null,a.tracks=[],a.groupId=null,a.tracksInGroup=[],a.trackId=-1,a.selectDefaultTrack=!0,a.queuedDefaultTrack=-1,a.trackChangeListener=function(){return a.onTextTracksChanged()},a.asyncPollTrackChange=function(){return a.pollTrackChange(0)},a.useTextTrackPolling=!1,a.subtitlePollingInterval=-1,a.subtitleDisplay=!0,a.registerListeners(),a}var A=i.prototype;return A.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,s.prototype.destroy.call(this)},A.registerListeners=function(){var a=this.hls;a.on(G.Events.MEDIA_ATTACHED,this.onMediaAttached,this),a.on(G.Events.MEDIA_DETACHING,this.onMediaDetaching,this),a.on(G.Events.MANIFEST_LOADING,this.onManifestLoading,this),a.on(G.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.on(G.Events.LEVEL_LOADING,this.onLevelLoading,this),a.on(G.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),a.on(G.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),a.on(G.Events.ERROR,this.onError,this)},A.unregisterListeners=function(){var a=this.hls;a.off(G.Events.MEDIA_ATTACHED,this.onMediaAttached,this),a.off(G.Events.MEDIA_DETACHING,this.onMediaDetaching,this),a.off(G.Events.MANIFEST_LOADING,this.onManifestLoading,this),a.off(G.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.off(G.Events.LEVEL_LOADING,this.onLevelLoading,this),a.off(G.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),a.off(G.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),a.off(G.Events.ERROR,this.onError,this)},A.onMediaAttached=function(a,r){if(this.media=r.media,!this.media)return;this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},A.pollTrackChange=function(a){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,a)},A.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var a=c(this.media.textTracks);a.forEach(function(r){Object(U.clearCurrentCues)(r)}),this.subtitleTrack=-1,this.media=null},A.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},A.onManifestParsed=function(a,r){this.tracks=r.subtitleTracks},A.onSubtitleTrackLoaded=function(a,r){var t=r.id,b=r.details,y=this.trackId,E=this.tracksInGroup[y];if(!E){this.warn("Invalid subtitle track id "+t);return}var T=E.details;E.details=r.details,this.log("subtitle track "+t+" loaded ["+b.startSN+"-"+b.endSN+"]"),t===this.trackId&&(this.retryCount=0,this.playlistLoaded(t,r,T))},A.onLevelLoading=function(a,r){this.switchLevel(r.level)},A.onLevelSwitching=function(a,r){this.switchLevel(r.level)},A.switchLevel=function(a){var r=this.hls.levels[a];if(!(r!=null&&r.textGroupIds))return;var t=r.textGroupIds[r.urlId];if(this.groupId!==t){var b=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,y=this.tracks.filter(function(v){return!t||v.groupId===t});this.tracksInGroup=y;var E=this.findTrackId(b==null?void 0:b.name)||this.findTrackId();this.groupId=t;var T={subtitleTracks:y};this.log("Updating subtitle tracks, "+y.length+' track(s) found in "'+t+'" group-id'),this.hls.trigger(G.Events.SUBTITLE_TRACKS_UPDATED,T),E!==-1&&this.setSubtitleTrack(E,b)}},A.findTrackId=function(a){for(var r=this.tracksInGroup,t=0;t<r.length;t++){var b=r[t];if((!this.selectDefaultTrack||b.default)&&(!a||a===b.name))return b.id}return-1},A.onError=function(a,r){if(s.prototype.onError.call(this,a,r),r.fatal||!r.context)return;r.context.type===Y.PlaylistContextType.SUBTITLE_TRACK&&r.context.id===this.trackId&&r.context.groupId===this.groupId&&this.retryLoadingOrFail(r)},A.loadPlaylist=function(a){var r=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(r)){var t=r.id,b=r.groupId,y=r.url;if(a)try{y=a.addDirectives(y)}catch(E){this.warn("Could not construct new URL with HLS Delivery Directives: "+E)}this.log("Loading subtitle playlist for id "+t),this.hls.trigger(G.Events.SUBTITLE_TRACK_LOADING,{url:y,id:t,groupId:b,deliveryDirectives:a||null})}},A.toggleTrackModes=function(a){var r=this,t=this.media,b=this.subtitleDisplay,y=this.trackId;if(!t)return;var E=c(t.textTracks),T=E.filter(function(n){return n.groupId===r.groupId});if(a===-1)[].slice.call(E).forEach(function(n){n.mode="disabled"});else{var v=T[y];v&&(v.mode="disabled")}var d=T[a];d&&(d.mode=b?"showing":"hidden")},A.setSubtitleTrack=function(a,r){var t,b=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=a;return}if(this.trackId!==a&&this.toggleTrackModes(a),this.trackId===a&&(a===-1||(t=b[a])!==null&&t!==void 0&&t.details)||a<-1||a>=b.length)return;this.clearTimer();var y=b[a];if(this.log("Switching to subtitle track "+a),this.trackId=a,y){var E=y.id,T=y.groupId,v=T===void 0?"":T,d=y.name,n=y.type,l=y.url;this.hls.trigger(G.Events.SUBTITLE_TRACK_SWITCH,{id:E,groupId:v,name:d,type:n,url:l});var u=this.switchParams(y.url,r==null?void 0:r.details);this.loadPlaylist(u)}else this.hls.trigger(G.Events.SUBTITLE_TRACK_SWITCH,{id:a})},A.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var a=-1,r=c(this.media.textTracks),t=0;t<r.length;t++)if(r[t].mode==="hidden")a=t;else if(r[t].mode==="showing"){a=t;break}this.subtitleTrack!==a&&(this.subtitleTrack=a)},e(i,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(a){this.selectDefaultTrack=!1;var r=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(a,r)}}]),i}(S.default);function c(s){for(var i=[],A=0;A<s.length;A++){var o=s[A];o.kind==="subtitles"&&o.label&&i.push(s[A])}return i}K.default=g},"./src/controller/timeline-controller.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"TimelineController",function(){return c});var G=O("./src/polyfills/number.ts"),U=O("./src/events.ts"),S=O("./src/utils/cea-608-parser.ts"),Y=O("./src/utils/output-filter.ts"),M=O("./src/utils/webvtt-parser.ts"),e=O("./src/utils/texttrack-utils.ts"),I=O("./src/utils/imsc1-ttml-parser.ts"),p=O("./src/types/loader.ts"),g=O("./src/utils/logger.ts"),c=function(){function o(r){if(this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.timescale=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=A(),this.captionsProperties=void 0,this.hls=r,this.config=r.config,this.Cues=r.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var t=new Y.default(this,"textTrack1"),b=new Y.default(this,"textTrack2"),y=new Y.default(this,"textTrack3"),E=new Y.default(this,"textTrack4");this.cea608Parser1=new S.default(1,t,b),this.cea608Parser2=new S.default(3,y,E)}r.on(U.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(U.Events.MEDIA_DETACHING,this.onMediaDetaching,this),r.on(U.Events.MANIFEST_LOADING,this.onManifestLoading,this),r.on(U.Events.MANIFEST_LOADED,this.onManifestLoaded,this),r.on(U.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),r.on(U.Events.FRAG_LOADING,this.onFragLoading,this),r.on(U.Events.FRAG_LOADED,this.onFragLoaded,this),r.on(U.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),r.on(U.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),r.on(U.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),r.on(U.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),r.on(U.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var a=o.prototype;return a.destroy=function(){var t=this.hls;t.off(U.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(U.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(U.Events.MANIFEST_LOADING,this.onManifestLoading,this),t.off(U.Events.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(U.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(U.Events.FRAG_LOADING,this.onFragLoading,this),t.off(U.Events.FRAG_LOADED,this.onFragLoaded,this),t.off(U.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(U.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(U.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(U.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(U.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},a.addCues=function(t,b,y,E,T){for(var v=!1,d=T.length;d--;){var n=T[d],l=i(n[0],n[1],b,y);if(l>=0&&(n[0]=Math.min(n[0],b),n[1]=Math.max(n[1],y),v=!0,l/(y-b)>.5))return}if(v||T.push([b,y]),this.config.renderTextTracksNatively){var u=this.captionsTracks[t];this.Cues.newCue(u,b,y,E)}else{var _=this.Cues.newCue(null,b,y,E);this.hls.trigger(U.Events.CUES_PARSED,{type:"captions",cues:_,track:t})}},a.onInitPtsFound=function(t,b){var y=this,E=b.frag,T=b.id,v=b.initPTS,d=b.timescale,n=this.unparsedVttFrags;T==="main"&&(this.initPTS[E.cc]=v,this.timescale[E.cc]=d),n.length&&(this.unparsedVttFrags=[],n.forEach(function(l){y.onFragLoaded(U.Events.FRAG_LOADED,l)}))},a.getExistingTrack=function(t){var b=this.media;if(b)for(var y=0;y<b.textTracks.length;y++){var E=b.textTracks[y];if(E[t])return E}return null},a.createCaptionsTrack=function(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)},a.createNativeTrack=function(t){if(this.captionsTracks[t])return;var b=this.captionsProperties,y=this.captionsTracks,E=this.media,T=b[t],v=T.label,d=T.languageCode,n=this.getExistingTrack(t);if(n)y[t]=n,Object(e.clearCurrentCues)(y[t]),Object(e.sendAddTrackEvent)(y[t],E);else{var l=this.createTextTrack("captions",v,d);l&&(l[t]=!0,y[t]=l)}},a.createNonNativeTrack=function(t){if(this.nonNativeCaptionsTracks[t])return;var b=this.captionsProperties[t];if(!b)return;var y=b.label,E={_id:t,label:y,kind:"captions",default:b.media?!!b.media.default:!1,closedCaptions:b.media};this.nonNativeCaptionsTracks[t]=E,this.hls.trigger(U.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[E]})},a.createTextTrack=function(t,b,y){var E=this.media;return E?E.addTextTrack(t,b,y):void 0},a.onMediaAttaching=function(t,b){this.media=b.media,this._cleanTracks()},a.onMediaDetaching=function(){var t=this.captionsTracks;Object.keys(t).forEach(function(b){Object(e.clearCurrentCues)(t[b]),delete t[b]}),this.nonNativeCaptionsTracks={}},a.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=A(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},a._cleanTracks=function(){var t=this.media;if(!t)return;var b=t.textTracks;if(b)for(var y=0;y<b.length;y++)Object(e.clearCurrentCues)(b[y])},a.onSubtitleTracksUpdated=function(t,b){var y=this;this.textTracks=[];var E=b.subtitleTracks||[],T=E.some(function(l){return l.textCodec===I.IMSC1_CODEC});if(this.config.enableWebVTT||T&&this.config.enableIMSC1){var v=this.tracks&&E&&this.tracks.length===E.length;if(this.tracks=E||[],this.config.renderTextTracksNatively){var d=this.media?this.media.textTracks:[];this.tracks.forEach(function(l,u){var _;if(u<d.length){for(var m=null,h=0;h<d.length;h++)if(s(d[h],l)){m=d[h];break}m&&(_=m)}_?Object(e.clearCurrentCues)(_):(_=y.createTextTrack("subtitles",l.name,l.lang),_&&(_.mode="disabled")),_&&(_.groupId=l.groupId,y.textTracks.push(_))})}else if(!v&&this.tracks&&this.tracks.length){var n=this.tracks.map(function(l){return{label:l.name,kind:l.type.toLowerCase(),default:l.default,subtitleTrack:l}});this.hls.trigger(U.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:n})}}},a.onManifestLoaded=function(t,b){var y=this;this.config.enableCEA708Captions&&b.captions&&b.captions.forEach(function(E){var T=/(?:CC|SERVICE)([1-4])/.exec(E.instreamId);if(!T)return;var v="textTrack"+T[1],d=y.captionsProperties[v];if(!d)return;d.label=E.name,E.lang&&(d.languageCode=E.lang),d.media=E})},a.onFragLoading=function(t,b){var y=this.cea608Parser1,E=this.cea608Parser2,T=this.lastSn,v=this.lastPartIndex;if(!this.enabled||!(y&&E))return;if(b.frag.type===p.PlaylistLevelType.MAIN){var d,n,l=b.frag.sn,u=(d=b==null||((n=b.part)===null||n===void 0)?void 0:n.index)!=null?d:-1;l===T+1||l===T&&u===v+1||(y.reset(),E.reset()),this.lastSn=l,this.lastPartIndex=u}},a.onFragLoaded=function(t,b){var y=b.frag,E=b.payload,T=this.initPTS,v=this.unparsedVttFrags;if(y.type===p.PlaylistLevelType.SUBTITLE)if(E.byteLength){if(!Object(G.isFiniteNumber)(T[y.cc])){v.push(b),T.length&&this.hls.trigger(U.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y,error:new Error("Missing initial subtitle PTS")});return}var d=y.decryptdata;if(d==null||d.key==null||d.method!=="AES-128"){var n=this.tracks[y.level],l=this.vttCCs;l[y.cc]||(l[y.cc]={start:y.start,prevCC:this.prevCC,new:!0},this.prevCC=y.cc),n&&n.textCodec===I.IMSC1_CODEC?this._parseIMSC1(y,E):this._parseVTTs(y,E,l)}}else this.hls.trigger(U.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y,error:new Error("Empty subtitle payload")})},a._parseIMSC1=function(t,b){var y=this,E=this.hls;Object(I.parseIMSC1)(b,this.initPTS[t.cc],this.timescale[t.cc],function(T){y._appendCues(T,t.level),E.trigger(U.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},function(T){g.logger.log("Failed to parse IMSC1: "+T),E.trigger(U.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:T})})},a._parseVTTs=function(t,b,y){var E=this,T=this.hls;Object(M.parseWebVTT)(b,this.initPTS[t.cc],this.timescale[t.cc],y,t.cc,t.start,function(v){E._appendCues(v,t.level),T.trigger(U.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},function(v){E._fallbackToIMSC1(t,b),g.logger.log("Failed to parse VTT cue: "+v),T.trigger(U.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:v})})},a._fallbackToIMSC1=function(t,b){var y=this,E=this.tracks[t.level];E.textCodec||Object(I.parseIMSC1)(b,this.initPTS[t.cc],this.timescale[t.cc],function(){E.textCodec=I.IMSC1_CODEC,y._parseIMSC1(t,b)},function(){E.textCodec="wvtt"})},a._appendCues=function(t,b){var y=this.hls;if(this.config.renderTextTracksNatively){var E=this.textTracks[b];if(E.mode==="disabled")return;t.forEach(function(d){return Object(e.addCueToTrack)(E,d)})}else{var T=this.tracks[b],v=T.default?"default":"subtitles"+b;y.trigger(U.Events.CUES_PARSED,{type:"subtitles",cues:t,track:v})}},a.onFragDecrypted=function(t,b){var y=b.frag;if(y.type===p.PlaylistLevelType.SUBTITLE){if(!Object(G.isFiniteNumber)(this.initPTS[y.cc])){this.unparsedVttFrags.push(b);return}this.onFragLoaded(U.Events.FRAG_LOADED,b)}},a.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},a.onFragParsingUserdata=function(t,b){var y=this.cea608Parser1,E=this.cea608Parser2;if(!this.enabled||!(y&&E))return;for(var T=0;T<b.samples.length;T++){var v=b.samples[T].bytes;if(v){var d=this.extractCea608Data(v);y.addData(b.samples[T].pts,d[0]),E.addData(b.samples[T].pts,d[1])}}},a.onBufferFlushing=function(t,b){var y=b.startOffset,E=b.endOffset,T=b.endOffsetSubtitles,v=b.type,d=this.media;if(!d||d.currentTime<E)return;if(!v||v==="video"){var n=this.captionsTracks;Object.keys(n).forEach(function(u){return Object(e.removeCuesInRange)(n[u],y,E)})}if(this.config.renderTextTracksNatively&&(y===0&&T!==void 0)){var l=this.textTracks;Object.keys(l).forEach(function(u){return Object(e.removeCuesInRange)(l[u],y,T)})}},a.extractCea608Data=function(t){for(var b=t[0]&31,y=2,E=[[],[]],T=0;T<b;T++){var v=t[y++],d=127&t[y++],n=127&t[y++],l=(4&v)!==0,u=3&v;if(d===0&&n===0)continue;l&&((u===0||u===1)&&(E[u].push(d),E[u].push(n)))}return E},o}();function s(o,a){return o&&o.label===a.name&&!(o.textTrack1||o.textTrack2)}function i(o,a,r,t){return Math.min(a,t)-Math.max(o,r)}function A(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return G});var G=function(){function U(Y,M){this.subtle=void 0,this.aesIV=void 0,this.subtle=Y,this.aesIV=M}var S=U.prototype;return S.decrypt=function(M,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,M)},U}()},"./src/crypt/aes-decryptor.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"removePadding",function(){return U}),O.d(K,"default",function(){return S});var G=O("./src/utils/typed-array.ts");function U(Y){var M=Y.byteLength,e=M&&new DataView(Y.buffer).getUint8(M-1);return e?Object(G.sliceUint8)(Y,0,M-e):Y}var S=function(){function Y(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var M=Y.prototype;return M.uint8ArrayToUint32Array_=function(I){for(var p=new DataView(I),g=new Uint32Array(4),c=0;c<4;c++)g[c]=p.getUint32(c*4);return g},M.initTable=function(){var I=this.sBox,p=this.invSBox,g=this.subMix,c=g[0],s=g[1],i=g[2],A=g[3],o=this.invSubMix,a=o[0],r=o[1],t=o[2],b=o[3],y=new Uint32Array(256),E=0,T=0,v=0;for(v=0;v<256;v++)v<128?y[v]=v<<1:y[v]=v<<1^283;for(v=0;v<256;v++){var d=T^T<<1^T<<2^T<<3^T<<4;d=d>>>8^d&255^99,I[E]=d,p[d]=E;var n=y[E],l=y[n],u=y[l],_=y[d]*257^d*16843008;c[E]=_<<24|_>>>8,s[E]=_<<16|_>>>16,i[E]=_<<8|_>>>24,A[E]=_,_=u*16843009^l*65537^n*257^E*16843008,a[d]=_<<24|_>>>8,r[d]=_<<16|_>>>16,t[d]=_<<8|_>>>24,b[d]=_,E?(E=n^y[y[y[u^n]]],T^=y[y[T]]):E=T=1}},M.expandKey=function(I){for(var p=this.uint8ArrayToUint32Array_(I),g=!0,c=0;c<p.length&&g;)g=p[c]===this.key[c],c++;if(g)return;this.key=p;var s=this.keySize=p.length;if(s!==4&&s!==6&&s!==8)throw new Error("Invalid aes key size="+s);var i=this.ksRows=(s+6+1)*4,A,o,a=this.keySchedule=new Uint32Array(i),r=this.invKeySchedule=new Uint32Array(i),t=this.sBox,b=this.rcon,y=this.invSubMix,E=y[0],T=y[1],v=y[2],d=y[3],n,l;for(A=0;A<i;A++){if(A<s){n=a[A]=p[A];continue}l=n,A%s===0?(l=l<<8|l>>>24,l=t[l>>>24]<<24|t[l>>>16&255]<<16|t[l>>>8&255]<<8|t[l&255],l^=b[A/s|0]<<24):s>6&&A%s===4&&(l=t[l>>>24]<<24|t[l>>>16&255]<<16|t[l>>>8&255]<<8|t[l&255]),a[A]=n=(a[A-s]^l)>>>0}for(o=0;o<i;o++)A=i-o,o&3?l=a[A]:l=a[A-4],o<4||A<=4?r[o]=l:r[o]=E[t[l>>>24]]^T[t[l>>>16&255]]^v[t[l>>>8&255]]^d[t[l&255]],r[o]=r[o]>>>0},M.networkToHostOrderSwap=function(I){return I<<24|(I&65280)<<8|(I&16711680)>>8|I>>>24},M.decrypt=function(I,p,g){for(var c=this.keySize+6,s=this.invKeySchedule,i=this.invSBox,A=this.invSubMix,o=A[0],a=A[1],r=A[2],t=A[3],b=this.uint8ArrayToUint32Array_(g),y=b[0],E=b[1],T=b[2],v=b[3],d=new Int32Array(I),n=new Int32Array(d.length),l,u,_,m,h,R,F,C,P,j,D,$,oe,Ee,ve=this.networkToHostOrderSwap;p<d.length;){for(P=ve(d[p]),j=ve(d[p+1]),D=ve(d[p+2]),$=ve(d[p+3]),h=P^s[0],R=$^s[1],F=D^s[2],C=j^s[3],oe=4,Ee=1;Ee<c;Ee++)l=o[h>>>24]^a[R>>16&255]^r[F>>8&255]^t[C&255]^s[oe],u=o[R>>>24]^a[F>>16&255]^r[C>>8&255]^t[h&255]^s[oe+1],_=o[F>>>24]^a[C>>16&255]^r[h>>8&255]^t[R&255]^s[oe+2],m=o[C>>>24]^a[h>>16&255]^r[R>>8&255]^t[F&255]^s[oe+3],h=l,R=u,F=_,C=m,oe=oe+4;l=i[h>>>24]<<24^i[R>>16&255]<<16^i[F>>8&255]<<8^i[C&255]^s[oe],u=i[R>>>24]<<24^i[F>>16&255]<<16^i[C>>8&255]<<8^i[h&255]^s[oe+1],_=i[F>>>24]<<24^i[C>>16&255]<<16^i[h>>8&255]<<8^i[R&255]^s[oe+2],m=i[C>>>24]<<24^i[h>>16&255]<<16^i[R>>8&255]<<8^i[F&255]^s[oe+3],n[p]=ve(l^y),n[p+1]=ve(m^E),n[p+2]=ve(_^T),n[p+3]=ve(u^v),y=P,E=j,T=D,v=$,p=p+4}return n.buffer},Y}()},"./src/crypt/decrypter.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return p});var G=O("./src/crypt/aes-crypto.ts"),U=O("./src/crypt/fast-aes-key.ts"),S=O("./src/crypt/aes-decryptor.ts"),Y=O("./src/utils/logger.ts"),M=O("./src/utils/mp4-tools.ts"),e=O("./src/utils/typed-array.ts"),I=16,p=function(){function g(s,i,A){var o=A===void 0?{}:A,a=o.removePKCS7Padding,r=a===void 0?!0:a;if(this.logEnabled=!0,this.observer=void 0,this.config=void 0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.observer=s,this.config=i,this.removePKCS7Padding=r,r)try{var t=self.crypto;t&&(this.subtle=t.subtle||t.webkitSubtle)}catch(b){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var c=g.prototype;return c.destroy=function(){this.observer=null},c.isSync=function(){return this.config.enableSoftwareAES},c.flush=function(){var i=this.currentResult;if(!i){this.reset();return}var A=new Uint8Array(i);return this.reset(),this.removePKCS7Padding?Object(S.removePadding)(A):A},c.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},c.decrypt=function(i,A,o,a){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(i),A,o);var r=this.flush();r&&a(r.buffer)}else this.webCryptoDecrypt(new Uint8Array(i),A,o).then(a)},c.softwareDecrypt=function(i,A,o){var a=this.currentIV,r=this.currentResult,t=this.remainderData;this.logOnce("JS AES decrypt"),t&&(i=Object(M.appendUint8Array)(t,i),this.remainderData=null);var b=this.getValidChunk(i);if(!b.length)return null;a&&(o=a);var y=this.softwareDecrypter;y||(y=this.softwareDecrypter=new S.default),y.expandKey(A);var E=r;return this.currentResult=y.decrypt(b.buffer,0,o),this.currentIV=Object(e.sliceUint8)(b,-16).buffer,E||null},c.webCryptoDecrypt=function(i,A,o){var a=this,r=this.subtle;return(this.key!==A||!this.fastAesKey)&&(this.key=A,this.fastAesKey=new U.default(r,A)),this.fastAesKey.expandKey().then(function(t){if(!r)return Promise.reject(new Error("web crypto not initialized"));var b=new G.default(r,o);return b.decrypt(i.buffer,t)}).catch(function(t){return a.onWebCryptoError(t,i,A,o)})},c.onWebCryptoError=function(i,A,o,a){return Y.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",i),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(A,o,a)},c.getValidChunk=function(i){var A=i,o=i.length-i.length%I;return o!==i.length&&(A=Object(e.sliceUint8)(i,0,o),this.remainderData=Object(e.sliceUint8)(i,o)),A},c.logOnce=function(i){if(!this.logEnabled)return;Y.logger.log("[decrypter.ts]: "+i),this.logEnabled=!1},g}()},"./src/crypt/fast-aes-key.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return G});var G=function(){function U(Y,M){this.subtle=void 0,this.key=void 0,this.subtle=Y,this.key=M}var S=U.prototype;return S.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},U}()},"./src/demux/aacdemuxer.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/demux/base-audio-demuxer.ts"),U=O("./src/demux/adts.ts"),S=O("./src/utils/logger.ts"),Y=O("./src/demux/id3.ts");function M(p,g){p.prototype=Object.create(g.prototype),p.prototype.constructor=p,e(p,g)}function e(p,g){return e=Object.setPrototypeOf||function(s,i){return s.__proto__=i,s},e(p,g)}var I=function(p){M(g,p);function g(s,i){var A;return A=p.call(this)||this,A.observer=void 0,A.config=void 0,A.observer=s,A.config=i,A}var c=g.prototype;return c.resetInitSegment=function(i,A,o){p.prototype.resetInitSegment.call(this,i,A,o),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:i,duration:o,inputTimeScale:9e4,dropped:0}},g.probe=function(i){if(!i)return!1;for(var A=Y.getID3Data(i,0)||[],o=A.length,a=i.length;o<a;o++)if(U.probe(i,o))return S.logger.log("ADTS sync word found !"),!0;return!1},c.canParse=function(i,A){return U.canParse(i,A)},c.appendFrame=function(i,A,o){U.initTrackConfig(i,this.observer,A,o,i.manifestCodec);var a=U.appendFrame(i,A,o,this.initPTS,this.frameIndex);if(a&&a.missing===0)return a},g}(G.default);I.minProbeByteLength=9,K.default=I},"./src/demux/adts.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"getAudioConfig",function(){return Y}),O.d(K,"isHeaderPattern",function(){return M}),O.d(K,"getHeaderLength",function(){return e}),O.d(K,"getFullFrameLength",function(){return I}),O.d(K,"canGetFrameLength",function(){return p}),O.d(K,"isHeader",function(){return g}),O.d(K,"canParse",function(){return c}),O.d(K,"probe",function(){return s}),O.d(K,"initTrackConfig",function(){return i}),O.d(K,"getFrameDuration",function(){return A}),O.d(K,"parseFrameHeader",function(){return o}),O.d(K,"appendFrame",function(){return a});var G=O("./src/utils/logger.ts"),U=O("./src/errors.ts"),S=O("./src/events.ts");function Y(r,t,b,y){var E,T,v,d,n=navigator.userAgent.toLowerCase(),l=y,u=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];E=((t[b+2]&192)>>>6)+1;var _=(t[b+2]&60)>>>2;if(_>u.length-1){r.trigger(S.Events.ERROR,{type:U.ErrorTypes.MEDIA_ERROR,details:U.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+_});return}return v=(t[b+2]&1)<<2,v|=(t[b+3]&192)>>>6,G.logger.log("manifest codec:"+y+", ADTS type:"+E+", samplingIndex:"+_),/firefox/i.test(n)?_>=6?(E=5,d=new Array(4),T=_-3):(E=2,d=new Array(2),T=_):n.indexOf("android")!==-1?(E=2,d=new Array(2),T=_):(E=5,d=new Array(4),y&&(y.indexOf("mp4a.40.29")!==-1||y.indexOf("mp4a.40.5")!==-1)||!y&&_>=6?T=_-3:((y&&y.indexOf("mp4a.40.2")!==-1&&(_>=6&&v===1||/vivaldi/i.test(n))||!y&&v===1)&&(E=2,d=new Array(2)),T=_)),d[0]=E<<3,d[0]|=(_&14)>>1,d[1]|=(_&1)<<7,d[1]|=v<<3,E===5&&(d[1]|=(T&14)>>1,d[2]=(T&1)<<7,d[2]|=2<<2,d[3]=0),{config:d,samplerate:u[_],channelCount:v,codec:"mp4a.40."+E,manifestCodec:l}}function M(r,t){return r[t]===255&&(r[t+1]&246)===240}function e(r,t){return r[t+1]&1?7:9}function I(r,t){return(r[t+3]&3)<<11|r[t+4]<<3|(r[t+5]&224)>>>5}function p(r,t){return t+5<r.length}function g(r,t){return t+1<r.length&&M(r,t)}function c(r,t){return p(r,t)&&M(r,t)&&I(r,t)<=r.length-t}function s(r,t){if(g(r,t)){var b=e(r,t);if(t+b>=r.length)return!1;var y=I(r,t);if(y<=b)return!1;var E=t+y;return E===r.length||g(r,E)}return!1}function i(r,t,b,y,E){if(!r.samplerate){var T=Y(t,b,y,E);if(!T)return;r.config=T.config,r.samplerate=T.samplerate,r.channelCount=T.channelCount,r.codec=T.codec,r.manifestCodec=T.manifestCodec,G.logger.log("parsed codec:"+r.codec+", rate:"+T.samplerate+", channels:"+T.channelCount)}}function A(r){return 1024*9e4/r}function o(r,t,b,y,E){var T=e(r,t),v=I(r,t);if(v-=T,v>0){var d=b+y*E;return{headerLength:T,frameLength:v,stamp:d}}}function a(r,t,b,y,E){var T=A(r.samplerate),v=o(t,b,y,E,T);if(v){var d=v.frameLength,n=v.headerLength,l=v.stamp,u=n+d,_=Math.max(0,b+u-t.length),m;_?(m=new Uint8Array(u-n),m.set(t.subarray(b+n,t.length),0)):m=t.subarray(b+n,b+u);var h={unit:m,pts:l};return _||r.samples.push(h),{sample:h,length:u,missing:_}}}},"./src/demux/base-audio-demuxer.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"initPTSFn",function(){return I});var G=O("./src/polyfills/number.ts"),U=O("./src/demux/id3.ts"),S=O("./src/demux/dummy-demuxed-track.ts"),Y=O("./src/utils/mp4-tools.ts"),M=O("./src/utils/typed-array.ts"),e=function(){function p(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var g=p.prototype;return g.resetInitSegment=function(s,i,A){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},g.resetTimeStamp=function(){},g.resetContiguity=function(){},g.canParse=function(s,i){return!1},g.appendFrame=function(s,i,A){},g.demux=function(s,i){this.cachedData&&(s=Object(Y.appendUint8Array)(this.cachedData,s),this.cachedData=null);var A=U.getID3Data(s,0),o=A?A.length:0,a,r,t=this._audioTrack,b=this._id3Track,y=A?U.getTimeStamp(A):void 0,E=s.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=I(y,i)),A&&A.length>0&&b.samples.push({pts:this.initPTS,dts:this.initPTS,data:A}),r=this.initPTS;o<E;){if(this.canParse(s,o)){var T=this.appendFrame(t,s,o);T?(this.frameIndex++,r=T.sample.pts,o+=T.length,a=o):o=E}else U.canParse(s,o)?(A=U.getID3Data(s,o),b.samples.push({pts:r,dts:r,data:A}),o+=A.length,a=o):o++;if(o===E&&a!==E){var v=Object(M.sliceUint8)(s,a);this.cachedData?this.cachedData=Object(Y.appendUint8Array)(this.cachedData,v):this.cachedData=v}}return{audioTrack:t,avcTrack:Object(S.dummyTrack)(),id3Track:b,textTrack:Object(S.dummyTrack)()}},g.demuxSampleAes=function(s,i,A){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},g.flush=function(s){var i=this.cachedData;return i&&(this.cachedData=null,this.demux(i,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(S.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(S.dummyTrack)()}},g.destroy=function(){},p}(),I=function(g,c){return Object(G.isFiniteNumber)(g)?g*90:c*9e4};K.default=e},"./src/demux/chunk-cache.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return G});var G=function(){function S(){this.chunks=[],this.dataLength=0}var Y=S.prototype;return Y.push=function(e){this.chunks.push(e),this.dataLength+=e.length},Y.flush=function(){var e=this.chunks,I=this.dataLength,p;if(e.length)e.length===1?p=e[0]:p=U(e,I);else return new Uint8Array(0);return this.reset(),p},Y.reset=function(){this.chunks.length=0,this.dataLength=0},S}();function U(S,Y){for(var M=new Uint8Array(Y),e=0,I=0;I<S.length;I++){var p=S[I];M.set(p,e),e+=p.length}return M}},"./src/demux/dummy-demuxed-track.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"dummyTrack",function(){return G});function G(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/utils/logger.ts"),U=function(){function S(M){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=M,this.bytesAvailable=M.byteLength,this.word=0,this.bitsAvailable=0}var Y=S.prototype;return Y.loadWord=function(){var e=this.data,I=this.bytesAvailable,p=e.byteLength-I,g=new Uint8Array(4),c=Math.min(4,I);if(c===0)throw new Error("no bytes available");g.set(e.subarray(p,p+c)),this.word=new DataView(g.buffer).getUint32(0),this.bitsAvailable=c*8,this.bytesAvailable-=c},Y.skipBits=function(e){var I;this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,I=e>>3,e-=I>>3,this.bytesAvailable-=I,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)},Y.readBits=function(e){var I=Math.min(this.bitsAvailable,e),p=this.word>>>32-I;return e>32&&G.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=I,this.bitsAvailable>0?this.word<<=I:this.bytesAvailable>0&&this.loadWord(),I=e-I,I>0&&this.bitsAvailable?p<<I|this.readBits(I):p},Y.skipLZ=function(){var e;for(e=0;e<this.bitsAvailable;++e)if((this.word&2147483648>>>e)!==0)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()},Y.skipUEG=function(){this.skipBits(1+this.skipLZ())},Y.skipEG=function(){this.skipBits(1+this.skipLZ())},Y.readUEG=function(){var e=this.skipLZ();return this.readBits(e+1)-1},Y.readEG=function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)},Y.readBoolean=function(){return this.readBits(1)===1},Y.readUByte=function(){return this.readBits(8)},Y.readUShort=function(){return this.readBits(16)},Y.readUInt=function(){return this.readBits(32)},Y.skipScalingList=function(e){for(var I=8,p=8,g,c=0;c<e;c++)p!==0&&(g=this.readEG(),p=(I+g+256)%256),I=p===0?I:p},Y.readSPS=function(){var e=0,I=0,p=0,g=0,c,s,i,A=this.readUByte.bind(this),o=this.readBits.bind(this),a=this.readUEG.bind(this),r=this.readBoolean.bind(this),t=this.skipBits.bind(this),b=this.skipEG.bind(this),y=this.skipUEG.bind(this),E=this.skipScalingList.bind(this);A();var T=A();if(o(5),t(3),A(),y(),T===100||T===110||T===122||T===244||T===44||T===83||T===86||T===118||T===128){var v=a();if(v===3&&t(1),y(),y(),t(1),r())for(s=v!==3?8:12,i=0;i<s;i++)r()&&(i<6?E(16):E(64))}y();var d=a();if(d===0)a();else if(d===1)for(t(1),b(),b(),c=a(),i=0;i<c;i++)b();y(),t(1);var n=a(),l=a(),u=o(1);u===0&&t(1),t(1),r()&&(e=a(),I=a(),p=a(),g=a());var _=[1,1];if(r()&&r()){var m=A();switch(m){case 1:_=[1,1];break;case 2:_=[12,11];break;case 3:_=[10,11];break;case 4:_=[16,11];break;case 5:_=[40,33];break;case 6:_=[24,11];break;case 7:_=[20,11];break;case 8:_=[32,11];break;case 9:_=[80,33];break;case 10:_=[18,11];break;case 11:_=[15,11];break;case 12:_=[64,33];break;case 13:_=[160,99];break;case 14:_=[4,3];break;case 15:_=[3,2];break;case 16:_=[2,1];break;case 255:{_=[A()<<8|A(),A()<<8|A()];break}}}return{width:Math.ceil((n+1)*16-e*2-I*2),height:(2-u)*(l+1)*16-(u?2:4)*(p+g),pixelRatio:_}},Y.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},S}();K.default=U},"./src/demux/id3.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"isHeader",function(){return G}),O.d(K,"isFooter",function(){return U}),O.d(K,"getID3Data",function(){return S}),O.d(K,"canParse",function(){return M}),O.d(K,"getTimeStamp",function(){return e}),O.d(K,"isTimeStampFrame",function(){return I}),O.d(K,"getID3Frames",function(){return g}),O.d(K,"decodeFrame",function(){return c}),O.d(K,"utf8ArrayToStr",function(){return a}),O.d(K,"testables",function(){return r});var G=function(E,T){return T+10<=E.length&&(E[T]===73&&E[T+1]===68&&E[T+2]===51&&(E[T+3]<255&&E[T+4]<255&&(E[T+6]<128&&E[T+7]<128&&E[T+8]<128&&E[T+9]<128)))},U=function(E,T){return T+10<=E.length&&(E[T]===51&&E[T+1]===68&&E[T+2]===73&&(E[T+3]<255&&E[T+4]<255&&(E[T+6]<128&&E[T+7]<128&&E[T+8]<128&&E[T+9]<128)))},S=function(E,T){for(var v=T,d=0;G(E,T);){d+=10;var n=Y(E,T+6);d+=n,U(E,T+10)&&(d+=10),T+=d}return d>0?E.subarray(v,v+d):void 0},Y=function(E,T){var v=0;return v=(E[T]&127)<<21,v|=(E[T+1]&127)<<14,v|=(E[T+2]&127)<<7,v|=E[T+3]&127,v},M=function(E,T){return G(E,T)&&Y(E,T+6)+10<=E.length-T},e=function(E){for(var T=g(E),v=0;v<T.length;v++){var d=T[v];if(I(d))return o(d)}return},I=function(E){return E&&E.key==="PRIV"&&E.info==="com.apple.streaming.transportStreamTimestamp"},p=function(E){var T=String.fromCharCode(E[0],E[1],E[2],E[3]),v=Y(E,4),d=10;return{type:T,size:v,data:E.subarray(d,d+v)}},g=function(E){for(var T=0,v=[];G(E,T);){var d=Y(E,T+6);T+=10;for(var n=T+d;T+8<n;){var l=p(E.subarray(T)),u=c(l);u&&v.push(u),T+=l.size+10}U(E,T)&&(T+=10)}return v},c=function(E){return E.type==="PRIV"?s(E):E.type[0]==="W"?A(E):i(E)},s=function(E){if(E.size<2)return;var T=a(E.data,!0),v=new Uint8Array(E.data.subarray(T.length+1));return{key:E.type,info:T,data:v.buffer}},i=function(E){if(E.size<2)return;if(E.type==="TXXX"){var T=1,v=a(E.data.subarray(T),!0);T+=v.length+1;var d=a(E.data.subarray(T));return{key:E.type,info:v,data:d}}var n=a(E.data.subarray(1));return{key:E.type,data:n}},A=function(E){if(E.type==="WXXX"){if(E.size<2)return;var T=1,v=a(E.data.subarray(T),!0);T+=v.length+1;var d=a(E.data.subarray(T));return{key:E.type,info:v,data:d}}var n=a(E.data);return{key:E.type,data:n}},o=function(E){if(E.data.byteLength===8){var T=new Uint8Array(E.data),v=T[3]&1,d=(T[4]<<23)+(T[5]<<15)+(T[6]<<7)+T[7];return d/=45,v&&(d+=4772185884e-2),Math.round(d)}return},a=function(E,T){T===void 0&&(T=!1);var v=b();if(v){var d=v.decode(E);if(T){var n=d.indexOf("\0");return n!==-1?d.substring(0,n):d}return d.replace(/\0/g,"")}for(var l=E.length,u,_,m,h="",R=0;R<l;){if(u=E[R++],u===0&&T)return h;if(u===0||u===3)continue;switch(u>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:h+=String.fromCharCode(u);break;case 12:case 13:_=E[R++],h+=String.fromCharCode((u&31)<<6|_&63);break;case 14:_=E[R++],m=E[R++],h+=String.fromCharCode((u&15)<<12|(_&63)<<6|(m&63)<<0);break;default:}}return h},r={decodeTextFrame:i},t;function b(){return!t&&typeof self.TextDecoder!="undefined"&&(t=new self.TextDecoder("utf-8")),t}},"./src/demux/mp3demuxer.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/demux/base-audio-demuxer.ts"),U=O("./src/demux/id3.ts"),S=O("./src/utils/logger.ts"),Y=O("./src/demux/mpegaudio.ts");function M(p,g){p.prototype=Object.create(g.prototype),p.prototype.constructor=p,e(p,g)}function e(p,g){return e=Object.setPrototypeOf||function(s,i){return s.__proto__=i,s},e(p,g)}var I=function(p){M(g,p);function g(){return p.apply(this,arguments)||this}var c=g.prototype;return c.resetInitSegment=function(i,A,o){p.prototype.resetInitSegment.call(this,i,A,o),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:i,duration:o,inputTimeScale:9e4,dropped:0}},g.probe=function(i){if(!i)return!1;for(var A=U.getID3Data(i,0)||[],o=A.length,a=i.length;o<a;o++)if(Y.probe(i,o))return S.logger.log("MPEG Audio sync word found !"),!0;return!1},c.canParse=function(i,A){return Y.canParse(i,A)},c.appendFrame=function(i,A,o){return this.initPTS===null?void 0:Y.appendFrame(i,A,o,this.initPTS,this.frameIndex)},g}(G.default);I.minProbeByteLength=4,K.default=I},"./src/demux/mp4demuxer.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/utils/mp4-tools.ts"),U=O("./src/demux/dummy-demuxed-track.ts"),S=function(){function Y(e,I){this.remainderData=null,this.config=void 0,this.config=I}var M=Y.prototype;return M.resetTimeStamp=function(){},M.resetInitSegment=function(){},M.resetContiguity=function(){},Y.probe=function(I){return Object(G.findBox)({data:I,start:0,end:Math.min(I.length,16384)},["moof"]).length>0},M.demux=function(I){var p=I,g=Object(U.dummyTrack)();if(this.config.progressive){this.remainderData&&(p=Object(G.appendUint8Array)(this.remainderData,I));var c=Object(G.segmentValidRange)(p);this.remainderData=c.remainder,g.samples=c.valid||new Uint8Array}else g.samples=p;return{audioTrack:Object(U.dummyTrack)(),avcTrack:g,id3Track:Object(U.dummyTrack)(),textTrack:Object(U.dummyTrack)()}},M.flush=function(){var I=Object(U.dummyTrack)();return I.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(U.dummyTrack)(),avcTrack:I,id3Track:Object(U.dummyTrack)(),textTrack:Object(U.dummyTrack)()}},M.demuxSampleAes=function(I,p,g){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},M.destroy=function(){},Y}();S.minProbeByteLength=1024,K.default=S},"./src/demux/mpegaudio.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"appendFrame",function(){return e}),O.d(K,"parseHeader",function(){return I}),O.d(K,"isHeaderPattern",function(){return p}),O.d(K,"isHeader",function(){return g}),O.d(K,"canParse",function(){return c}),O.d(K,"probe",function(){return s});var G=null,U=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],S=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Y=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],M=[0,1,1,4];function e(i,A,o,a,r){if(o+24>A.length)return;var t=I(A,o);if(t&&o+t.frameLength<=A.length){var b=t.samplesPerFrame*9e4/t.sampleRate,y=a+r*b,E={unit:A.subarray(o,o+t.frameLength),pts:y,dts:y};return i.config=[],i.channelCount=t.channelCount,i.samplerate=t.sampleRate,i.samples.push(E),{sample:E,length:t.frameLength,missing:0}}}function I(i,A){var o=i[A+1]>>3&3,a=i[A+1]>>1&3,r=i[A+2]>>4&15,t=i[A+2]>>2&3;if(o!==1&&r!==0&&r!==15&&t!==3){var b=i[A+2]>>1&1,y=i[A+3]>>6,E=o===3?3-a:a===3?3:4,T=U[E*14+r-1]*1e3,v=o===3?0:o===2?1:2,d=S[v*3+t],n=y===3?1:2,l=Y[o][a],u=M[a],_=l*8*u,m=Math.floor(l*T/d+b)*u;if(G===null){var h=navigator.userAgent||"",R=h.match(/Chrome\/(\d+)/i);G=R?parseInt(R[1]):0}var F=!!G&&G<=87;return F&&a===2&&T>=224e3&&y===0&&(i[A+3]=i[A+3]|128),{sampleRate:d,channelCount:n,frameLength:m,samplesPerFrame:_}}}function p(i,A){return i[A]===255&&(i[A+1]&224)===224&&(i[A+1]&6)!==0}function g(i,A){return A+1<i.length&&p(i,A)}function c(i,A){var o=4;return p(i,A)&&o<=i.length-A}function s(i,A){if(A+1<i.length&&p(i,A)){var o=4,a=I(i,A),r=o;a!=null&&a.frameLength&&(r=a.frameLength);var t=A+r;return t===i.length||g(i,t)}return!1}},"./src/demux/sample-aes.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/crypt/decrypter.ts"),U=O("./src/demux/tsdemuxer.ts"),S=function(){function Y(e,I,p){this.keyData=void 0,this.decrypter=void 0,this.keyData=p,this.decrypter=new G.default(e,I,{removePKCS7Padding:!1})}var M=Y.prototype;return M.decryptBuffer=function(I,p){this.decrypter.decrypt(I,this.keyData.key.buffer,this.keyData.iv.buffer,p)},M.decryptAacSample=function(I,p,g,c){var s=I[p].unit,i=s.subarray(16,s.length-s.length%16),A=i.buffer.slice(i.byteOffset,i.byteOffset+i.length),o=this;this.decryptBuffer(A,function(a){var r=new Uint8Array(a);s.set(r,16),c||o.decryptAacSamples(I,p+1,g)})},M.decryptAacSamples=function(I,p,g){for(;;p++){if(p>=I.length){g();return}if(I[p].unit.length<32)continue;var c=this.decrypter.isSync();if(this.decryptAacSample(I,p,g,c),!c)return}},M.getAvcEncryptedData=function(I){for(var p=Math.floor((I.length-48)/160)*16+16,g=new Int8Array(p),c=0,s=32;s<=I.length-16;s+=160,c+=16)g.set(I.subarray(s,s+16),c);return g},M.getAvcDecryptedUnit=function(I,p){for(var g=new Uint8Array(p),c=0,s=32;s<=I.length-16;s+=160,c+=16)I.set(g.subarray(c,c+16),s);return I},M.decryptAvcSample=function(I,p,g,c,s,i){var A=Object(U.discardEPB)(s.data),o=this.getAvcEncryptedData(A),a=this;this.decryptBuffer(o.buffer,function(r){s.data=a.getAvcDecryptedUnit(A,r),i||a.decryptAvcSamples(I,p,g+1,c)})},M.decryptAvcSamples=function(I,p,g,c){if(I instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;p++,g=0){if(p>=I.length){c();return}for(var s=I[p].units;!(g>=s.length);g++){var i=s[g];if(i.data.length<=48||i.type!==1&&i.type!==5)continue;var A=this.decrypter.isSync();if(this.decryptAvcSample(I,p,g,c,i,A),!A)return}}},Y}();K.default=S},"./src/demux/transmuxer-interface.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return s});var G=O("./node_modules/webworkify-webpack/index.js"),U=O.n(G),S=O("./src/events.ts"),Y=O("./src/demux/transmuxer.ts"),M=O("./src/utils/logger.ts"),e=O("./src/errors.ts"),I=O("./src/utils/mediasource-helper.ts"),p=O("./node_modules/eventemitter3/index.js"),g=O.n(p),c=Object(I.getMediaSource)()||{isTypeSupported:function(){return!1}},s=function(){function i(o,a,r,t){var b=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=o,this.id=a,this.onTransmuxComplete=r,this.onFlush=t;var y=o.config,E=function(l,u){u=u||{},u.frag=b.frag,u.id=b.id,o.trigger(l,u)};this.observer=new p.EventEmitter,this.observer.on(S.Events.FRAG_DECRYPTED,E),this.observer.on(S.Events.ERROR,E);var T={mp4:c.isTypeSupported("video/mp4"),mpeg:c.isTypeSupported("audio/mpeg"),mp3:c.isTypeSupported('audio/mp4; codecs="mp3"')},v=navigator.vendor;if(y.enableWorker&&typeof Worker!="undefined"){M.logger.log("demuxing in webworker");var d;try{d=this.worker=G("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),d.addEventListener("message",this.onwmsg),d.onerror=function(n){o.trigger(S.Events.ERROR,{type:e.ErrorTypes.OTHER_ERROR,details:e.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(n.message+" ("+n.filename+":"+n.lineno+")")})},d.postMessage({cmd:"init",typeSupported:T,vendor:v,id:a,config:JSON.stringify(y)})}catch(n){M.logger.warn("Error in worker:",n),M.logger.error("Error while initializing DemuxerWorker, fallback to inline"),d&&self.URL.revokeObjectURL(d.objectURL),this.transmuxer=new Y.default(this.observer,T,y,v,a),this.worker=null}}else this.transmuxer=new Y.default(this.observer,T,y,v,a)}var A=i.prototype;return A.destroy=function(){var a=this.worker;if(a)a.removeEventListener("message",this.onwmsg),a.terminate(),this.worker=null;else{var r=this.transmuxer;r&&(r.destroy(),this.transmuxer=null)}var t=this.observer;t&&t.removeAllListeners(),this.observer=null},A.push=function(a,r,t,b,y,E,T,v,d,n){var l=this;d.transmuxing.start=self.performance.now();var u=this.transmuxer,_=this.worker,m=E?E.start:y.start,h=y.decryptdata,R=this.frag,F=!(R&&y.cc===R.cc),C=!(R&&d.level===R.level),P=R?d.sn-R.sn:-1,j=this.part?d.part-this.part.index:1,D=!C&&(P===1||P===0&&j===1),$=self.performance.now();(C||P||y.stats.parsing.start===0)&&(y.stats.parsing.start=$),E&&(j||!D)&&(E.stats.parsing.start=$);var oe=new Y.TransmuxState(F,D,v,C,m);if(!D||F){M.logger.log("[transmuxer-interface, "+y.type+"]: Starting new transmux session for sn: "+d.sn+" p: "+d.part+" level: "+d.level+" id: "+d.id+`
|
|
discontinuity: `+F+`
|
|
trackSwitch: `+C+`
|
|
contiguous: `+D+`
|
|
accurateTimeOffset: `+v+`
|
|
timeOffset: `+m);var Ee=new Y.TransmuxConfig(t,b,r,T,n);this.configureTransmuxer(Ee)}if(this.frag=y,this.part=E,_)_.postMessage({cmd:"demux",data:a,decryptdata:h,chunkMeta:d,state:oe},a instanceof ArrayBuffer?[a]:[]);else if(u){var ve=u.push(a,h,d,oe);Object(Y.isPromise)(ve)?ve.then(function(Le){l.handleTransmuxComplete(Le)}):this.handleTransmuxComplete(ve)}},A.flush=function(a){var r=this;a.transmuxing.start=self.performance.now();var t=this.transmuxer,b=this.worker;if(b)b.postMessage({cmd:"flush",chunkMeta:a});else if(t){var y=t.flush(a);Object(Y.isPromise)(y)?y.then(function(E){r.handleFlushResult(E,a)}):this.handleFlushResult(y,a)}},A.handleFlushResult=function(a,r){var t=this;a.forEach(function(b){t.handleTransmuxComplete(b)}),this.onFlush(r)},A.onWorkerMessage=function(a){var r=a.data,t=this.hls;switch(r.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(r.data);break}case"flush":{this.onFlush(r.data);break}default:{r.data=r.data||{},r.data.frag=this.frag,r.data.id=this.id,t.trigger(r.event,r.data);break}}},A.configureTransmuxer=function(a){var r=this.worker,t=this.transmuxer;r?r.postMessage({cmd:"configure",config:a}):t&&t.configure(a)},A.handleTransmuxComplete=function(a){a.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(a)},i}()},"./src/demux/transmuxer-worker.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return e});var G=O("./src/demux/transmuxer.ts"),U=O("./src/events.ts"),S=O("./src/utils/logger.ts"),Y=O("./node_modules/eventemitter3/index.js"),M=O.n(Y);function e(s){var i=new Y.EventEmitter,A=function(a,r){s.postMessage({event:a,data:r})};i.on(U.Events.FRAG_DECRYPTED,A),i.on(U.Events.ERROR,A),s.addEventListener("message",function(o){var a=o.data;switch(a.cmd){case"init":{var r=JSON.parse(a.config);s.transmuxer=new G.default(i,a.typeSupported,r,a.vendor,a.id),Object(S.enableLogs)(r.debug),A("init",null);break}case"configure":{s.transmuxer.configure(a.config);break}case"demux":{var t=s.transmuxer.push(a.data,a.decryptdata,a.chunkMeta,a.state);Object(G.isPromise)(t)?t.then(function(E){I(s,E)}):I(s,t);break}case"flush":{var b=a.chunkMeta,y=s.transmuxer.flush(b);Object(G.isPromise)(y)?y.then(function(E){g(s,E,b)}):g(s,y,b);break}default:break}})}function I(s,i){if(c(i.remuxResult))return;var A=[],o=i.remuxResult,a=o.audio,r=o.video;a&&p(A,a),r&&p(A,r),s.postMessage({event:"transmuxComplete",data:i},A)}function p(s,i){i.data1&&s.push(i.data1.buffer),i.data2&&s.push(i.data2.buffer)}function g(s,i,A){i.forEach(function(o){I(s,o)}),s.postMessage({event:"flush",data:A})}function c(s){return!s.audio&&!s.video&&!s.text&&!s.id3&&!s.initSegment}},"./src/demux/transmuxer.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return r}),O.d(K,"isPromise",function(){return y}),O.d(K,"TransmuxConfig",function(){return E}),O.d(K,"TransmuxState",function(){return T});var G=O("./src/events.ts"),U=O("./src/errors.ts"),S=O("./src/crypt/decrypter.ts"),Y=O("./src/demux/aacdemuxer.ts"),M=O("./src/demux/mp4demuxer.ts"),e=O("./src/demux/tsdemuxer.ts"),I=O("./src/demux/mp3demuxer.ts"),p=O("./src/remux/mp4-remuxer.ts"),g=O("./src/remux/passthrough-remuxer.ts"),c=O("./src/demux/chunk-cache.ts"),s=O("./src/utils/mp4-tools.ts"),i=O("./src/utils/logger.ts"),A;try{A=self.performance.now.bind(self.performance)}catch(v){i.logger.debug("Unable to use Performance API on this environment"),A=self.Date.now}var o=[{demux:e.default,remux:p.default},{demux:M.default,remux:g.default},{demux:Y.default,remux:p.default},{demux:I.default,remux:p.default}],a=1024;o.forEach(function(v){var d=v.demux;a=Math.max(a,d.minProbeByteLength)});var r=function(){function v(n,l,u,_,m){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new c.default,this.observer=n,this.typeSupported=l,this.config=u,this.vendor=_,this.id=m}var d=v.prototype;return d.configure=function(l){this.transmuxConfig=l,this.decrypter&&this.decrypter.reset()},d.push=function(l,u,_,m){var h=this,R=_.transmuxing;R.executeStart=A();var F=new Uint8Array(l),C=this.cache,P=this.config,j=this.currentTransmuxState,D=this.transmuxConfig;m&&(this.currentTransmuxState=m);var $=t(F,u);if($&&$.method==="AES-128"){var oe=this.getDecrypter();if(P.enableSoftwareAES){var Ee=oe.softwareDecrypt(F,$.key.buffer,$.iv.buffer);if(!Ee)return R.executeEnd=A(),b(_);F=new Uint8Array(Ee)}else return this.decryptionPromise=oe.webCryptoDecrypt(F,$.key.buffer,$.iv.buffer).then(function(H){var W=h.push(H,null,_);return h.decryptionPromise=null,W}),this.decryptionPromise}var ve=m||j,Le=ve.contiguous,Se=ve.discontinuity,Re=ve.trackSwitch,De=ve.accurateTimeOffset,Fe=ve.timeOffset,Ce=D.audioCodec,X=D.videoCodec,L=D.defaultInitPts,N=D.duration,J=D.initSegmentData;if((Se||Re)&&this.resetInitSegment(J,Ce,X,N),Se&&this.resetInitialTimestamp(L),Le||this.resetContiguity(),this.needsProbing(F,Se,Re)){if(C.dataLength){var ne=C.flush();F=Object(s.appendUint8Array)(ne,F)}this.configureTransmuxer(F,D)}var k=this.transmux(F,$,Fe,De,_),Z=this.currentTransmuxState;return Z.contiguous=!0,Z.discontinuity=!1,Z.trackSwitch=!1,R.executeEnd=A(),k},d.flush=function(l){var u=this,_=l.transmuxing;_.executeStart=A();var m=this.decrypter,h=this.cache,R=this.currentTransmuxState,F=this.decryptionPromise;if(F)return F.then(function(){return u.flush(l)});var C=[],P=R.timeOffset;if(m){var j=m.flush();j&&C.push(this.push(j,null,l))}var D=h.dataLength;h.reset();var $=this.demuxer,oe=this.remuxer;if(!$||!oe)return D>=a&&this.observer.emit(G.Events.ERROR,G.Events.ERROR,{type:U.ErrorTypes.MEDIA_ERROR,details:U.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),_.executeEnd=A(),[b(l)];var Ee=$.flush(P);return y(Ee)?Ee.then(function(ve){return u.flushRemux(C,ve,l),C}):(this.flushRemux(C,Ee,l),C)},d.flushRemux=function(l,u,_){var m=u.audioTrack,h=u.avcTrack,R=u.id3Track,F=u.textTrack,C=this.currentTransmuxState,P=C.accurateTimeOffset,j=C.timeOffset;i.logger.log("[transmuxer.ts]: Flushed fragment "+_.sn+(_.part>-1?" p: "+_.part:"")+" of level "+_.level);var D=this.remuxer.remux(m,h,R,F,j,P,!0,this.id);l.push({remuxResult:D,chunkMeta:_}),_.transmuxing.executeEnd=A()},d.resetInitialTimestamp=function(l){var u=this.demuxer,_=this.remuxer;if(!u||!_)return;u.resetTimeStamp(l),_.resetTimeStamp(l)},d.resetContiguity=function(){var l=this.demuxer,u=this.remuxer;if(!l||!u)return;l.resetContiguity(),u.resetNextTimestamp()},d.resetInitSegment=function(l,u,_,m){var h=this.demuxer,R=this.remuxer;if(!h||!R)return;h.resetInitSegment(u,_,m),R.resetInitSegment(l,u,_)},d.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},d.transmux=function(l,u,_,m,h){var R;return u&&u.method==="SAMPLE-AES"?R=this.transmuxSampleAes(l,u,_,m,h):R=this.transmuxUnencrypted(l,_,m,h),R},d.transmuxUnencrypted=function(l,u,_,m){var h=this.demuxer.demux(l,u,!1,!this.config.progressive),R=h.audioTrack,F=h.avcTrack,C=h.id3Track,P=h.textTrack,j=this.remuxer.remux(R,F,C,P,u,_,!1,this.id);return{remuxResult:j,chunkMeta:m}},d.transmuxSampleAes=function(l,u,_,m,h){var R=this;return this.demuxer.demuxSampleAes(l,u,_).then(function(F){var C=R.remuxer.remux(F.audioTrack,F.avcTrack,F.id3Track,F.textTrack,_,m,!1,R.id);return{remuxResult:C,chunkMeta:h}})},d.configureTransmuxer=function(l,u){for(var _=this.config,m=this.observer,h=this.typeSupported,R=this.vendor,F=u.audioCodec,C=u.defaultInitPts,P=u.duration,j=u.initSegmentData,D=u.videoCodec,$,oe=0,Ee=o.length;oe<Ee;oe++)if(o[oe].demux.probe(l)){$=o[oe];break}$||(i.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),$={demux:M.default,remux:g.default});var ve=this.demuxer,Le=this.remuxer,Se=$.remux,Re=$.demux;(!Le||!(Le instanceof Se))&&(this.remuxer=new Se(m,_,h,R)),(!ve||!(ve instanceof Re))&&(this.demuxer=new Re(m,_,h),this.probe=Re.probe),this.resetInitSegment(j,F,D,P),this.resetInitialTimestamp(C)},d.needsProbing=function(l,u,_){return!this.demuxer||!this.remuxer||u||_},d.getDecrypter=function(){var l=this.decrypter;return l||(l=this.decrypter=new S.default(this.observer,this.config)),l},v}();function t(v,d){var n=null;return v.byteLength>0&&d!=null&&d.key!=null&&d.iv!==null&&d.method!=null&&(n=d),n}var b=function(d){return{remuxResult:{},chunkMeta:d}};function y(v){return"then"in v&&v.then instanceof Function}var E=function(d,n,l,u,_){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=d,this.videoCodec=n,this.initSegmentData=l,this.duration=u,this.defaultInitPts=_},T=function(d,n,l,u,_){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=d,this.contiguous=n,this.accurateTimeOffset=l,this.trackSwitch=u,this.timeOffset=_}},"./src/demux/tsdemuxer.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"discardEPB",function(){return b});var G=O("./src/demux/adts.ts"),U=O("./src/demux/mpegaudio.ts"),S=O("./src/demux/exp-golomb.ts"),Y=O("./src/demux/id3.ts"),M=O("./src/demux/sample-aes.ts"),e=O("./src/events.ts"),I=O("./src/utils/mp4-tools.ts"),p=O("./src/utils/logger.ts"),g=O("./src/errors.ts"),c={video:1,audio:2,id3:3,text:4},s=function(){function y(T,v,d){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=T,this.config=v,this.typeSupported=d}y.probe=function(v){var d=y.syncOffset(v);return d<0?!1:(d&&p.logger.warn("MPEG2-TS detected but first sync word found @ offset "+d+", junk ahead ?"),!0)},y.syncOffset=function(v){for(var d=Math.min(1e3,v.length-3*188),n=0;n<d;){if(v[n]===71&&v[n+188]===71&&v[n+2*188]===71)return n;n++}return-1},y.createTrack=function(v,d){return{container:v==="video"||v==="audio"?"video/mp2t":void 0,type:v,id:c[v],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:v==="audio"?d:void 0}};var E=y.prototype;return E.resetInitSegment=function(v,d,n){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=y.createTrack("video",n),this._audioTrack=y.createTrack("audio",n),this._id3Track=y.createTrack("id3",n),this._txtTrack=y.createTrack("text",n),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=v,this.videoCodec=d,this._duration=n},E.resetTimeStamp=function(){},E.resetContiguity=function(){var v=this._audioTrack,d=this._avcTrack,n=this._id3Track;v&&(v.pesData=null),d&&(d.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},E.demux=function(v,d,n,l){n===void 0&&(n=!1),l===void 0&&(l=!1),n||(this.sampleAes=null);var u,_=this._avcTrack,m=this._audioTrack,h=this._id3Track,R=_.pid,F=_.pesData,C=m.pid,P=h.pid,j=m.pesData,D=h.pesData,$=!1,oe=this.pmtParsed,Ee=this._pmtId,ve=v.length;if(this.remainderData&&(v=Object(I.appendUint8Array)(this.remainderData,v),ve=v.length,this.remainderData=null),ve<188&&!l)return this.remainderData=v,{audioTrack:m,avcTrack:_,id3Track:h,textTrack:this._txtTrack};var Le=Math.max(0,y.syncOffset(v));ve-=(ve+Le)%188,ve<v.byteLength&&!l&&(this.remainderData=new Uint8Array(v.buffer,ve,v.buffer.byteLength-ve));for(var Se=Le;Se<ve;Se+=188)if(v[Se]===71){var Re=!!(v[Se+1]&64),De=((v[Se+1]&31)<<8)+v[Se+2],Fe=(v[Se+3]&48)>>4,Ce=void 0;if(Fe>1){if(Ce=Se+5+v[Se+4],Ce===Se+188)continue}else Ce=Se+4;switch(De){case R:Re&&(F&&(u=a(F))&&this.parseAVCPES(u,!1),F={data:[],size:0}),F&&(F.data.push(v.subarray(Ce,Se+188)),F.size+=Se+188-Ce);break;case C:Re&&(j&&(u=a(j))&&(m.isAAC?this.parseAACPES(u):this.parseMPEGPES(u)),j={data:[],size:0}),j&&(j.data.push(v.subarray(Ce,Se+188)),j.size+=Se+188-Ce);break;case P:Re&&(D&&(u=a(D))&&this.parseID3PES(u),D={data:[],size:0}),D&&(D.data.push(v.subarray(Ce,Se+188)),D.size+=Se+188-Ce);break;case 0:Re&&(Ce+=v[Ce]+1),Ee=this._pmtId=A(v,Ce);break;case Ee:{Re&&(Ce+=v[Ce]+1);var X=o(v,Ce,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,n);R=X.avc,R>0&&(_.pid=R),C=X.audio,C>0&&(m.pid=C,m.isAAC=X.isAAC),P=X.id3,P>0&&(h.pid=P),$&&!oe&&(p.logger.log("reparse from beginning"),$=!1,Se=Le-188),oe=this.pmtParsed=!0;break}case 17:case 8191:break;default:$=!0;break}}else this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});_.pesData=F,m.pesData=j,h.pesData=D;var L={audioTrack:m,avcTrack:_,id3Track:h,textTrack:this._txtTrack};return l&&this.extractRemainingSamples(L),L},E.flush=function(){var v=this.remainderData;this.remainderData=null;var d;return v?d=this.demux(v,-1,!1,!0):d={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(d),this.sampleAes?this.decrypt(d,this.sampleAes):d},E.extractRemainingSamples=function(v){var d=v.audioTrack,n=v.avcTrack,l=v.id3Track,u=n.pesData,_=d.pesData,m=l.pesData,h;u&&(h=a(u))?(this.parseAVCPES(h,!0),n.pesData=null):n.pesData=u,_&&(h=a(_))?(d.isAAC?this.parseAACPES(h):this.parseMPEGPES(h),d.pesData=null):(_!=null&&_.size&&p.logger.log("last AAC PES packet truncated,might overlap between fragments"),d.pesData=_),m&&(h=a(m))?(this.parseID3PES(h),l.pesData=null):l.pesData=m},E.demuxSampleAes=function(v,d,n){var l=this.demux(v,n,!0,!this.config.progressive),u=this.sampleAes=new M.default(this.observer,this.config,d);return this.decrypt(l,u)},E.decrypt=function(v,d){return new Promise(function(n){var l=v.audioTrack,u=v.avcTrack;l.samples&&l.isAAC?d.decryptAacSamples(l.samples,0,function(){u.samples?d.decryptAvcSamples(u.samples,0,0,function(){n(v)}):n(v)}):u.samples&&d.decryptAvcSamples(u.samples,0,0,function(){n(v)})})},E.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},E.parseAVCPES=function(v,d){var n=this,l=this._avcTrack,u=this.parseAVCNALu(v.data),_=!1,m=this.avcSample,h,R=!1;v.data=null,m&&u.length&&!l.audFound&&(r(m,l),m=this.avcSample=i(!1,v.pts,v.dts,"")),u.forEach(function(F){switch(F.type){case 1:{h=!0,m||(m=n.avcSample=i(!0,v.pts,v.dts,"")),_&&(m.debug+="NDR "),m.frame=!0;var C=F.data;if(R&&C.length>4){var P=new S.default(C).readSliceType();(P===2||P===4||P===7||P===9)&&(m.key=!0)}break}case 5:h=!0,m||(m=n.avcSample=i(!0,v.pts,v.dts,"")),_&&(m.debug+="IDR "),m.key=!0,m.frame=!0;break;case 6:{h=!0,_&&m&&(m.debug+="SEI ");var j=new S.default(b(F.data));j.readUByte();for(var D=0,$=0,oe=!1,Ee=0;!oe&&j.bytesAvailable>1;){D=0;do Ee=j.readUByte(),D+=Ee;while(Ee===255);$=0;do Ee=j.readUByte(),$+=Ee;while(Ee===255);if(D===4&&j.bytesAvailable!==0){oe=!0;var ve=j.readUByte();if(ve===181){var Le=j.readUShort();if(Le===49){var Se=j.readUInt();if(Se===1195456820){var Re=j.readUByte();if(Re===3){for(var De=j.readUByte(),Fe=j.readUByte(),Ce=31&De,X=[De,Fe],L=0;L<Ce;L++)X.push(j.readUByte()),X.push(j.readUByte()),X.push(j.readUByte());t(n._txtTrack.samples,{type:3,pts:v.pts,bytes:X})}}}}}else if(D===5&&j.bytesAvailable!==0){if(oe=!0,$>16){for(var N=[],J=0;J<16;J++)N.push(j.readUByte().toString(16)),(J===3||J===5||J===7||J===9)&&N.push("-");for(var ne=$-16,k=new Uint8Array(ne),Z=0;Z<ne;Z++)k[Z]=j.readUByte();t(n._txtTrack.samples,{pts:v.pts,payloadType:D,uuid:N.join(""),userData:Object(Y.utf8ArrayToStr)(k),userDataBytes:k})}}else if($<j.bytesAvailable)for(var H=0;H<$;H++)j.readUByte()}break}case 7:if(h=!0,R=!0,_&&m&&(m.debug+="SPS "),!l.sps){var W=new S.default(F.data),z=W.readSPS();l.width=z.width,l.height=z.height,l.pixelRatio=z.pixelRatio,l.sps=[F.data],l.duration=n._duration;for(var se=F.data.subarray(1,4),pe="avc1.",ge=0;ge<3;ge++){var Ne=se[ge].toString(16);Ne.length<2&&(Ne="0"+Ne),pe+=Ne}l.codec=pe}break;case 8:h=!0,_&&m&&(m.debug+="PPS "),l.pps||(l.pps=[F.data]);break;case 9:h=!1,l.audFound=!0,m&&r(m,l),m=n.avcSample=i(!1,v.pts,v.dts,_?"AUD ":"");break;case 12:h=!1;break;default:h=!1,m&&(m.debug+="unknown NAL "+F.type+" ");break}if(m&&h){var Me=m.units;Me.push(F)}}),d&&m&&(r(m,l),this.avcSample=null)},E.getLastNalUnit=function(){var v,d=this.avcSample,n;if(!d||d.units.length===0){var l=this._avcTrack.samples;d=l[l.length-1]}if((v=d)!==null&&v!==void 0&&v.units){var u=d.units;n=u[u.length-1]}return n},E.parseAVCNALu=function(v){var d=v.byteLength,n=this._avcTrack,l=n.naluState||0,u=l,_=[],m=0,h,R,F,C=-1,P=0;for(l===-1&&(C=0,P=v[0]&31,l=0,m=1);m<d;){if(h=v[m++],!l){l=h?0:1;continue}if(l===1){l=h?0:2;continue}if(!h)l=3;else if(h===1){if(C>=0){var j={data:v.subarray(C,m-l-1),type:P};_.push(j)}else{var D=this.getLastNalUnit();if(D&&(u&&m<=4-u&&(D.state&&(D.data=D.data.subarray(0,D.data.byteLength-u))),R=m-l-1,R>0)){var $=new Uint8Array(D.data.byteLength+R);$.set(D.data,0),$.set(v.subarray(0,R),D.data.byteLength),D.data=$,D.state=0}}m<d?(F=v[m]&31,C=m,P=F,l=0):l=-1}else l=0}if(C>=0&&l>=0){var oe={data:v.subarray(C,d),type:P,state:l};_.push(oe)}if(_.length===0){var Ee=this.getLastNalUnit();if(Ee){var ve=new Uint8Array(Ee.data.byteLength+v.byteLength);ve.set(Ee.data,0),ve.set(v,Ee.data.byteLength),Ee.data=ve}}return n.naluState=l,_},E.parseAACPES=function(v){var d=0,n=this._audioTrack,l=this.aacOverFlow,u=v.data;if(l){this.aacOverFlow=null;var _=l.sample.unit.byteLength,m=Math.min(l.missing,_),h=_-m;l.sample.unit.set(u.subarray(0,m),h),n.samples.push(l.sample),d=l.missing}var R,F;for(R=d,F=u.length;R<F-1&&!G.isHeader(u,R);R++);if(R!==d){var C,P;if(R<F-1?(C="AAC PES did not start with ADTS header,offset:"+R,P=!1):(C="no ADTS header found in AAC PES",P=!0),p.logger.warn("parsing error:"+C),this.observer.emit(e.Events.ERROR,e.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:P,reason:C}),P)return}G.initTrackConfig(n,this.observer,u,R,this.audioCodec);var j;if(v.pts!==void 0)j=v.pts;else if(l){var D=G.getFrameDuration(n.samplerate);j=l.sample.pts+D}else{p.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var $=0;R<F;)if(G.isHeader(u,R)){if(R+5<F){var oe=G.appendFrame(n,u,R,j,$);if(oe)if(oe.missing)this.aacOverFlow=oe;else{R+=oe.length,$++;continue}}break}else R++},E.parseMPEGPES=function(v){var d=v.data,n=d.length,l=0,u=0,_=v.pts;if(_===void 0){p.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;u<n;)if(U.isHeader(d,u)){var m=U.appendFrame(this._audioTrack,d,u,_,l);if(m)u+=m.length,l++;else break}else u++},E.parseID3PES=function(v){if(v.pts===void 0){p.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(v)},y}();s.minProbeByteLength=188;function i(y,E,T,v){return{key:y,frame:!1,pts:E,dts:T,units:[],debug:v,length:0}}function A(y,E){return(y[E+10]&31)<<8|y[E+11]}function o(y,E,T,v){var d={audio:-1,avc:-1,id3:-1,isAAC:!0},n=(y[E+1]&15)<<8|y[E+2],l=E+3+n-4,u=(y[E+10]&15)<<8|y[E+11];for(E+=12+u;E<l;){var _=(y[E+1]&31)<<8|y[E+2];switch(y[E]){case 207:if(!v){p.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:d.audio===-1&&(d.audio=_);break;case 21:d.id3===-1&&(d.id3=_);break;case 219:if(!v){p.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:d.avc===-1&&(d.avc=_);break;case 3:case 4:T?d.audio===-1&&(d.audio=_,d.isAAC=!1):p.logger.log("MPEG audio found, not supported in this browser");break;case 36:p.logger.warn("Unsupported HEVC stream type found");break;default:break}E+=((y[E+3]&15)<<8|y[E+4])+5}return d}function a(y){var E=0,T,v,d,n,l,u=y.data;if(!y||y.size===0)return null;for(;u[0].length<19&&u.length>1;){var _=new Uint8Array(u[0].length+u[1].length);_.set(u[0]),_.set(u[1],u[0].length),u[0]=_,u.splice(1,1)}T=u[0];var m=(T[0]<<16)+(T[1]<<8)+T[2];if(m===1){if(v=(T[4]<<8)+T[5],v&&v>y.size-6)return null;var h=T[7];h&192&&(n=(T[9]&14)*536870912+(T[10]&255)*4194304+(T[11]&254)*16384+(T[12]&255)*128+(T[13]&254)/2,h&64?(l=(T[14]&14)*536870912+(T[15]&255)*4194304+(T[16]&254)*16384+(T[17]&255)*128+(T[18]&254)/2,n-l>60*9e4&&(p.logger.warn(Math.round((n-l)/9e4)+"s delta between PTS and DTS, align them"),n=l)):l=n),d=T[8];var R=d+9;if(y.size<=R)return null;y.size-=R;for(var F=new Uint8Array(y.size),C=0,P=u.length;C<P;C++){T=u[C];var j=T.byteLength;if(R)if(R>j){R-=j;continue}else T=T.subarray(R),j-=R,R=0;F.set(T,E),E+=j}return v&&(v-=d+3),{data:F,pts:n,dts:l,len:v}}return null}function r(y,E){if(y.units.length&&y.frame){if(y.pts===void 0){var T=E.samples,v=T.length;if(v){var d=T[v-1];y.pts=d.pts,y.dts=d.dts}else{E.dropped++;return}}E.samples.push(y)}y.debug.length&&p.logger.log(y.pts+"/"+y.dts+":"+y.debug)}function t(y,E){var T=y.length;if(T>0){if(E.pts>=y[T-1].pts)y.push(E);else for(var v=T-1;v>=0;v--)if(E.pts<y[v].pts){y.splice(v,0,E);break}}else y.push(E)}function b(y){for(var E=y.byteLength,T=[],v=1;v<E-2;)y[v]===0&&y[v+1]===0&&y[v+2]===3?(T.push(v+2),v+=2):v++;if(T.length===0)return y;var d=E-T.length,n=new Uint8Array(d),l=0;for(v=0;v<d;l++,v++)l===T[0]&&(l++,T.shift()),n[v]=y[l];return n}K.default=s},"./src/errors.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"ErrorTypes",function(){return G}),O.d(K,"ErrorDetails",function(){return U});var G;(function(S){S.NETWORK_ERROR="networkError",S.MEDIA_ERROR="mediaError",S.KEY_SYSTEM_ERROR="keySystemError",S.MUX_ERROR="muxError",S.OTHER_ERROR="otherError"})(G||(G={}));var U;(function(S){S.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",S.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",S.KEY_SYSTEM_NO_SESSION="keySystemNoSession",S.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",S.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",S.MANIFEST_LOAD_ERROR="manifestLoadError",S.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",S.MANIFEST_PARSING_ERROR="manifestParsingError",S.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",S.LEVEL_EMPTY_ERROR="levelEmptyError",S.LEVEL_LOAD_ERROR="levelLoadError",S.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",S.LEVEL_SWITCH_ERROR="levelSwitchError",S.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",S.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",S.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",S.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",S.FRAG_LOAD_ERROR="fragLoadError",S.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",S.FRAG_DECRYPT_ERROR="fragDecryptError",S.FRAG_PARSING_ERROR="fragParsingError",S.REMUX_ALLOC_ERROR="remuxAllocError",S.KEY_LOAD_ERROR="keyLoadError",S.KEY_LOAD_TIMEOUT="keyLoadTimeOut",S.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",S.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",S.BUFFER_APPEND_ERROR="bufferAppendError",S.BUFFER_APPENDING_ERROR="bufferAppendingError",S.BUFFER_STALLED_ERROR="bufferStalledError",S.BUFFER_FULL_ERROR="bufferFullError",S.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",S.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",S.INTERNAL_EXCEPTION="internalException",S.INTERNAL_ABORTED="aborted",S.UNKNOWN="unknown"})(U||(U={}))},"./src/events.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"Events",function(){return G});var G;(function(U){U.MEDIA_ATTACHING="hlsMediaAttaching",U.MEDIA_ATTACHED="hlsMediaAttached",U.MEDIA_DETACHING="hlsMediaDetaching",U.MEDIA_DETACHED="hlsMediaDetached",U.BUFFER_RESET="hlsBufferReset",U.BUFFER_CODECS="hlsBufferCodecs",U.BUFFER_CREATED="hlsBufferCreated",U.BUFFER_APPENDING="hlsBufferAppending",U.BUFFER_APPENDED="hlsBufferAppended",U.BUFFER_EOS="hlsBufferEos",U.BUFFER_FLUSHING="hlsBufferFlushing",U.BUFFER_FLUSHED="hlsBufferFlushed",U.MANIFEST_LOADING="hlsManifestLoading",U.MANIFEST_LOADED="hlsManifestLoaded",U.MANIFEST_PARSED="hlsManifestParsed",U.LEVEL_SWITCHING="hlsLevelSwitching",U.LEVEL_SWITCHED="hlsLevelSwitched",U.LEVEL_LOADING="hlsLevelLoading",U.LEVEL_LOADED="hlsLevelLoaded",U.LEVEL_UPDATED="hlsLevelUpdated",U.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",U.LEVELS_UPDATED="hlsLevelsUpdated",U.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",U.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",U.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",U.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",U.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",U.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",U.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",U.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",U.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",U.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",U.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",U.CUES_PARSED="hlsCuesParsed",U.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",U.INIT_PTS_FOUND="hlsInitPtsFound",U.FRAG_LOADING="hlsFragLoading",U.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",U.FRAG_LOADED="hlsFragLoaded",U.FRAG_DECRYPTED="hlsFragDecrypted",U.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",U.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",U.FRAG_PARSING_METADATA="hlsFragParsingMetadata",U.FRAG_PARSED="hlsFragParsed",U.FRAG_BUFFERED="hlsFragBuffered",U.FRAG_CHANGED="hlsFragChanged",U.FPS_DROP="hlsFpsDrop",U.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",U.ERROR="hlsError",U.DESTROYING="hlsDestroying",U.KEY_LOADING="hlsKeyLoading",U.KEY_LOADED="hlsKeyLoaded",U.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",U.BACK_BUFFER_REACHED="hlsBackBufferReached"})(G||(G={}))},"./src/hls.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return y});var G=O("./node_modules/url-toolkit/src/url-toolkit.js"),U=O.n(G),S=O("./src/loader/playlist-loader.ts"),Y=O("./src/loader/key-loader.ts"),M=O("./src/controller/id3-track-controller.ts"),e=O("./src/controller/latency-controller.ts"),I=O("./src/controller/level-controller.ts"),p=O("./src/controller/fragment-tracker.ts"),g=O("./src/controller/stream-controller.ts"),c=O("./src/is-supported.ts"),s=O("./src/utils/logger.ts"),i=O("./src/config.ts"),A=O("./node_modules/eventemitter3/index.js"),o=O.n(A),a=O("./src/events.ts"),r=O("./src/errors.ts");function t(E,T){for(var v=0;v<T.length;v++){var d=T[v];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(E,d.key,d)}}function b(E,T,v){return T&&t(E.prototype,T),v&&t(E,v),E}var y=function(){E.isSupported=function(){return Object(c.isSupported)()};function E(v){v===void 0&&(v={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new A.EventEmitter,this._autoLevelCapping=void 0,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var d=this.config=Object(i.mergeConfig)(E.DefaultConfig,v);this.userConfig=v,Object(s.enableLogs)(d.debug),this._autoLevelCapping=-1,d.progressive&&Object(i.enableStreamingMode)(d);var n=d.abrController,l=d.bufferController,u=d.capLevelController,_=d.fpsController,m=this.abrController=new n(this),h=this.bufferController=new l(this),R=this.capLevelController=new u(this),F=new _(this),C=new S.default(this),P=new Y.default(this),j=new M.default(this),D=this.levelController=new I.default(this),$=new p.FragmentTracker(this),oe=this.streamController=new g.default(this,$);R.setStreamController(oe),F.setStreamController(oe);var Ee=[D,oe];this.networkControllers=Ee;var ve=[C,P,m,h,R,F,j,$];this.audioTrackController=this.createController(d.audioTrackController,null,Ee),this.createController(d.audioStreamController,$,Ee),this.subtitleTrackController=this.createController(d.subtitleTrackController,null,Ee),this.createController(d.subtitleStreamController,$,Ee),this.createController(d.timelineController,null,ve),this.emeController=this.createController(d.emeController,null,ve),this.cmcdController=this.createController(d.cmcdController,null,ve),this.latencyController=this.createController(e.default,null,ve),this.coreComponents=ve}var T=E.prototype;return T.createController=function(d,n,l){if(d){var u=n?new d(this,n):new d(this);return l&&l.push(u),u}return null},T.on=function(d,n,l){l===void 0&&(l=this),this._emitter.on(d,n,l)},T.once=function(d,n,l){l===void 0&&(l=this),this._emitter.once(d,n,l)},T.removeAllListeners=function(d){this._emitter.removeAllListeners(d)},T.off=function(d,n,l,u){l===void 0&&(l=this),this._emitter.off(d,n,l,u)},T.listeners=function(d){return this._emitter.listeners(d)},T.emit=function(d,n,l){return this._emitter.emit(d,n,l)},T.trigger=function(d,n){if(this.config.debug)return this.emit(d,d,n);try{return this.emit(d,d,n)}catch(l){s.logger.error("An internal error happened while handling event "+d+'. Error message: "'+l.message+'". Here is a stacktrace:',l),this.trigger(a.Events.ERROR,{type:r.ErrorTypes.OTHER_ERROR,details:r.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:d,error:l})}return!1},T.listenerCount=function(d){return this._emitter.listenerCount(d)},T.destroy=function(){s.logger.log("destroy"),this.trigger(a.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(d){return d.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(d){return d.destroy()}),this.coreComponents.length=0},T.attachMedia=function(d){s.logger.log("attachMedia"),this._media=d,this.trigger(a.Events.MEDIA_ATTACHING,{media:d})},T.detachMedia=function(){s.logger.log("detachMedia"),this.trigger(a.Events.MEDIA_DETACHING,void 0),this._media=null},T.loadSource=function(d){this.stopLoad();var n=this.media,l=this.url,u=this.url=G.buildAbsoluteURL(self.location.href,d,{alwaysNormalize:!0});s.logger.log("loadSource:"+u),n&&l&&l!==u&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(n)),this.trigger(a.Events.MANIFEST_LOADING,{url:d})},T.startLoad=function(d){d===void 0&&(d=-1),s.logger.log("startLoad("+d+")"),this.networkControllers.forEach(function(n){n.startLoad(d)})},T.stopLoad=function(){s.logger.log("stopLoad"),this.networkControllers.forEach(function(d){d.stopLoad()})},T.swapAudioCodec=function(){s.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},T.recoverMediaError=function(){s.logger.log("recoverMediaError");var d=this._media;this.detachMedia(),d&&this.attachMedia(d)},T.removeLevel=function(d,n){n===void 0&&(n=0),this.levelController.removeLevel(d,n)},b(E,[{key:"levels",get:function(){var d=this.levelController.levels;return d||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(d){s.logger.log("set currentLevel:"+d),this.loadLevel=d,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(d){s.logger.log("set nextLevel:"+d),this.levelController.manualLevel=d,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(d){s.logger.log("set loadLevel:"+d),this.levelController.manualLevel=d}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(d){this.levelController.nextLoadLevel=d}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(d){s.logger.log("set firstLevel:"+d),this.levelController.firstLevel=d}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(d){s.logger.log("set startLevel:"+d),d!==-1&&(d=Math.max(d,this.minAutoLevel)),this.levelController.startLevel=d}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(d){var n=!!d;n!==this.config.capLevelToPlayerSize&&(n?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=n)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(d){this._autoLevelCapping!==d&&(s.logger.log("set autoLevelCapping:"+d),this._autoLevelCapping=d)}},{key:"bandwidthEstimate",get:function(){var d=this.abrController.bwEstimator;return d?d.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var d=this.levels,n=this.config.minAutoBitrate;if(!d)return 0;for(var l=d.length,u=0;u<l;u++)if(d[u].maxBitrate>n)return u;return 0}},{key:"maxAutoLevel",get:function(){var d=this.levels,n=this.autoLevelCapping,l;return n===-1&&d&&d.length?l=d.length-1:l=n,l}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(d){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,d)}},{key:"audioTracks",get:function(){var d=this.audioTrackController;return d?d.audioTracks:[]}},{key:"audioTrack",get:function(){var d=this.audioTrackController;return d?d.audioTrack:-1},set:function(d){var n=this.audioTrackController;n&&(n.audioTrack=d)}},{key:"subtitleTracks",get:function(){var d=this.subtitleTrackController;return d?d.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var d=this.subtitleTrackController;return d?d.subtitleTrack:-1},set:function(d){var n=this.subtitleTrackController;n&&(n.subtitleTrack=d)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var d=this.subtitleTrackController;return d?d.subtitleDisplay:!1},set:function(d){var n=this.subtitleTrackController;n&&(n.subtitleDisplay=d)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(d){this.config.lowLatencyMode=d}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return a.Events}},{key:"ErrorTypes",get:function(){return r.ErrorTypes}},{key:"ErrorDetails",get:function(){return r.ErrorDetails}},{key:"DefaultConfig",get:function(){return E.defaultConfig?E.defaultConfig:i.hlsDefaultConfig},set:function(d){E.defaultConfig=d}}]),E}();y.defaultConfig=void 0},"./src/is-supported.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"isSupported",function(){return S}),O.d(K,"changeTypeSupported",function(){return Y});var G=O("./src/utils/mediasource-helper.ts");function U(){return self.SourceBuffer||self.WebKitSourceBuffer}function S(){var M=Object(G.getMediaSource)();if(!M)return!1;var e=U(),I=M&&typeof M.isTypeSupported=="function"&&M.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),p=!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function";return!!I&&!!p}function Y(){var M,e=U();return typeof(e==null||((M=e.prototype)===null||M===void 0)?void 0:M.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return s}),O.d(K,"LoadError",function(){return A});var G=O("./src/polyfills/number.ts"),U=O("./src/errors.ts");function S(o,a){o.prototype=Object.create(a.prototype),o.prototype.constructor=o,p(o,a)}function Y(o){var a=typeof Map=="function"?new Map:void 0;return Y=function(t){if(t===null||!I(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof a!="undefined"){if(a.has(t))return a.get(t);a.set(t,b)}function b(){return M(t,arguments,g(this).constructor)}return b.prototype=Object.create(t.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),p(b,t)},Y(o)}function M(o,a,r){return e()?M=Reflect.construct:M=function(b,y,E){var T=[null];T.push.apply(T,y);var v=Function.bind.apply(b,T),d=new v;return E&&p(d,E.prototype),d},M.apply(null,arguments)}function e(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}function I(o){return Function.toString.call(o).indexOf("[native code]")!==-1}function p(o,a){return p=Object.setPrototypeOf||function(t,b){return t.__proto__=b,t},p(o,a)}function g(o){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},g(o)}var c=Math.pow(2,17),s=function(){function o(r){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=r}var a=o.prototype;return a.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},a.abort=function(){this.loader&&this.loader.abort()},a.load=function(t,b){var y=this,E=t.url;if(!E)return Promise.reject(new A({type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,networkDetails:null},"Fragment does not have a "+(E?"part list":"url")));this.abort();var T=this.config,v=T.fLoader,d=T.loader;return new Promise(function(n,l){y.loader&&y.loader.destroy();var u=y.loader=t.loader=v?new v(T):new d(T),_=i(t),m={timeout:T.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:T.fragLoadingMaxRetryTimeout,highWaterMark:c};t.stats=u.stats,u.load(_,m,{onSuccess:function(R,F,C,P){y.resetLoader(t,u),n({frag:t,part:null,payload:R.data,networkDetails:P})},onError:function(R,F,C){y.resetLoader(t,u),l(new A({type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:R,networkDetails:C}))},onAbort:function(R,F,C){y.resetLoader(t,u),l(new A({type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:t,networkDetails:C}))},onTimeout:function(R,F,C){y.resetLoader(t,u),l(new A({type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,networkDetails:C}))},onProgress:function(R,F,C,P){b&&b({frag:t,part:null,payload:C,networkDetails:P})}})})},a.loadPart=function(t,b,y){var E=this;this.abort();var T=this.config,v=T.fLoader,d=T.loader;return new Promise(function(n,l){E.loader&&E.loader.destroy();var u=E.loader=t.loader=v?new v(T):new d(T),_=i(t,b),m={timeout:T.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:T.fragLoadingMaxRetryTimeout,highWaterMark:c};b.stats=u.stats,u.load(_,m,{onSuccess:function(R,F,C,P){E.resetLoader(t,u),E.updateStatsFromPart(t,b);var j={frag:t,part:b,payload:R.data,networkDetails:P};y(j),n(j)},onError:function(R,F,C){E.resetLoader(t,u),l(new A({type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:b,response:R,networkDetails:C}))},onAbort:function(R,F,C){t.stats.aborted=b.stats.aborted,E.resetLoader(t,u),l(new A({type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:t,part:b,networkDetails:C}))},onTimeout:function(R,F,C){E.resetLoader(t,u),l(new A({type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:b,networkDetails:C}))}})})},a.updateStatsFromPart=function(t,b){var y=t.stats,E=b.stats,T=E.total;if(y.loaded+=E.loaded,T){var v=Math.round(t.duration/b.duration),d=Math.min(Math.round(y.loaded/T),v),n=v-d,l=n*Math.round(y.loaded/d);y.total=y.loaded+l}else y.total=Math.max(y.loaded,y.total);var u=y.loading,_=E.loading;u.start?u.first+=_.first-_.start:(u.start=_.start,u.first=_.first),u.end=_.end},a.resetLoader=function(t,b){t.loader=null,this.loader===b&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),b.destroy()},o}();function i(o,a){a===void 0&&(a=null);var r=a||o,t={frag:o,part:a,responseType:"arraybuffer",url:r.url,headers:{},rangeStart:0,rangeEnd:0},b=r.byteRangeStartOffset,y=r.byteRangeEndOffset;return Object(G.isFiniteNumber)(b)&&Object(G.isFiniteNumber)(y)&&(t.rangeStart=b,t.rangeEnd=y),t}var A=function(o){S(a,o);function a(r){for(var t,b=arguments.length,y=new Array(b>1?b-1:0),E=1;E<b;E++)y[E-1]=arguments[E];return t=o.call.apply(o,[this].concat(y))||this,t.data=void 0,t.data=r,t}return a}(Y(Error))},"./src/loader/fragment.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"ElementaryStreamTypes",function(){return s}),O.d(K,"BaseSegment",function(){return i}),O.d(K,"Fragment",function(){return A}),O.d(K,"Part",function(){return o});var G=O("./src/polyfills/number.ts"),U=O("./node_modules/url-toolkit/src/url-toolkit.js"),S=O.n(U),Y=O("./src/utils/logger.ts"),M=O("./src/loader/level-key.ts"),e=O("./src/loader/load-stats.ts");function I(a,r){a.prototype=Object.create(r.prototype),a.prototype.constructor=a,p(a,r)}function p(a,r){return p=Object.setPrototypeOf||function(b,y){return b.__proto__=y,b},p(a,r)}function g(a,r){for(var t=0;t<r.length;t++){var b=r[t];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(a,b.key,b)}}function c(a,r,t){return r&&g(a.prototype,r),t&&g(a,t),a}var s;(function(a){a.AUDIO="audio",a.VIDEO="video",a.AUDIOVIDEO="audiovideo"})(s||(s={}));var i=function(){function a(t){var b;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(b={},b[s.AUDIO]=null,b[s.VIDEO]=null,b[s.AUDIOVIDEO]=null,b),this.baseurl=t}var r=a.prototype;return r.setByteRange=function(b,y){var E=b.split("@",2),T=[];E.length===1?T[0]=y?y.byteRangeEndOffset:0:T[0]=parseInt(E[1]),T[1]=parseInt(E[0])+T[0],this._byteRange=T},c(a,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Object(U.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(b){this._url=b}}]),a}(),A=function(a){I(r,a);function r(b,y){var E;return E=a.call(this,y)||this,E._decryptdata=null,E.rawProgramDateTime=null,E.programDateTime=null,E.tagList=[],E.duration=0,E.sn=0,E.levelkey=void 0,E.type=void 0,E.loader=null,E.level=-1,E.cc=0,E.startPTS=void 0,E.endPTS=void 0,E.appendedPTS=void 0,E.startDTS=void 0,E.endDTS=void 0,E.start=0,E.deltaPTS=void 0,E.maxStartPTS=void 0,E.minEndPTS=void 0,E.stats=new e.LoadStats,E.urlId=0,E.data=void 0,E.bitrateTest=!1,E.title=null,E.initSegment=null,E.type=b,E}var t=r.prototype;return t.createInitializationVector=function(y){for(var E=new Uint8Array(16),T=12;T<16;T++)E[T]=y>>8*(15-T)&255;return E},t.setDecryptDataFromLevelKey=function(y,E){var T=y;return(y==null?void 0:y.method)==="AES-128"&&y.uri&&!y.iv&&(T=M.LevelKey.fromURI(y.uri),T.method=y.method,T.iv=this.createInitializationVector(E),T.keyFormat="identity"),T},t.setElementaryStreamInfo=function(y,E,T,v,d,n){n===void 0&&(n=!1);var l=this.elementaryStreams,u=l[y];if(!u){l[y]={startPTS:E,endPTS:T,startDTS:v,endDTS:d,partial:n};return}u.startPTS=Math.min(u.startPTS,E),u.endPTS=Math.max(u.endPTS,T),u.startDTS=Math.min(u.startDTS,v),u.endDTS=Math.max(u.endDTS,d)},t.clearElementaryStreamInfo=function(){var y=this.elementaryStreams;y[s.AUDIO]=null,y[s.VIDEO]=null,y[s.AUDIOVIDEO]=null},c(r,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var y=this.sn;typeof y!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&Y.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),y=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,y)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(G.isFiniteNumber)(this.programDateTime))return null;var y=Object(G.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+y*1e3}},{key:"encrypted",get:function(){var y;return!!((y=this.decryptdata)!==null&&y!==void 0&&y.keyFormat&&this.decryptdata.uri)}}]),r}(i),o=function(a){I(r,a);function r(t,b,y,E,T){var v;v=a.call(this,y)||this,v.fragOffset=0,v.duration=0,v.gap=!1,v.independent=!1,v.relurl=void 0,v.fragment=void 0,v.index=void 0,v.stats=new e.LoadStats,v.duration=t.decimalFloatingPoint("DURATION"),v.gap=t.bool("GAP"),v.independent=t.bool("INDEPENDENT"),v.relurl=t.enumeratedString("URI"),v.fragment=b,v.index=E;var d=t.enumeratedString("BYTERANGE");return d&&v.setByteRange(d,T),T&&(v.fragOffset=T.fragOffset+T.duration),v}return c(r,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var b=this.elementaryStreams;return!!(b.audio||b.video||b.audiovideo)}}]),r}(i)},"./src/loader/key-loader.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return Y});var G=O("./src/events.ts"),U=O("./src/errors.ts"),S=O("./src/utils/logger.ts"),Y=function(){function M(I){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=I,this._registerListeners()}var e=M.prototype;return e._registerListeners=function(){this.hls.on(G.Events.KEY_LOADING,this.onKeyLoading,this)},e._unregisterListeners=function(){this.hls.off(G.Events.KEY_LOADING,this.onKeyLoading)},e.destroy=function(){this._unregisterListeners();for(var p in this.loaders){var g=this.loaders[p];g&&g.destroy()}this.loaders={}},e.onKeyLoading=function(p,g){var c=g.frag,s=c.type,i=this.loaders[s];if(!c.decryptdata){S.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var A=c.decryptdata.uri;if(A!==this.decrypturl||this.decryptkey===null){var o=this.hls.config;if(i&&(S.logger.warn("abort previous key loader for type:"+s),i.abort()),!A){S.logger.warn("key uri is falsy");return}var a=o.loader,r=c.loader=this.loaders[s]=new a(o);this.decrypturl=A,this.decryptkey=null;var t={url:A,frag:c,responseType:"arraybuffer"},b={timeout:o.fragLoadingTimeOut,maxRetry:0,retryDelay:o.fragLoadingRetryDelay,maxRetryDelay:o.fragLoadingMaxRetryTimeout,highWaterMark:0},y={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};r.load(t,b,y)}else this.decryptkey&&(c.decryptdata.key=this.decryptkey,this.hls.trigger(G.Events.KEY_LOADED,{frag:c}))},e.loadsuccess=function(p,g,c){var s=c.frag;if(!s.decryptdata){S.logger.error("after key load, decryptdata unset");return}this.decryptkey=s.decryptdata.key=new Uint8Array(p.data),s.loader=null,delete this.loaders[s.type],this.hls.trigger(G.Events.KEY_LOADED,{frag:s})},e.loaderror=function(p,g){var c=g.frag,s=c.loader;s&&s.abort(),delete this.loaders[c.type],this.hls.trigger(G.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:c,response:p})},e.loadtimeout=function(p,g){var c=g.frag,s=c.loader;s&&s.abort(),delete this.loaders[c.type],this.hls.trigger(G.Events.ERROR,{type:U.ErrorTypes.NETWORK_ERROR,details:U.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:c})},M}()},"./src/loader/level-details.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"LevelDetails",function(){return M});var G=O("./src/polyfills/number.ts");function U(e,I){for(var p=0;p<I.length;p++){var g=I[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(e,g.key,g)}}function S(e,I,p){return I&&U(e.prototype,I),p&&U(e,p),e}var Y=10,M=function(){function e(p){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=p}var I=e.prototype;return I.reloaded=function(g){if(!g){this.advanced=!0,this.updated=!0;return}var c=this.lastPartSn-g.lastPartSn,s=this.lastPartIndex-g.lastPartIndex;this.updated=this.endSN!==g.endSN||!!s||!!c,this.advanced=this.endSN>g.endSN||c>0||c===0&&s>0,this.updated||this.advanced?this.misses=Math.floor(g.misses*.6):this.misses=g.misses+1,this.availabilityDelay=g.availabilityDelay},S(e,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(G.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||Y}},{key:"drift",get:function(){var g=this.driftEndTime-this.driftStartTime;if(g>0){var c=this.driftEnd-this.driftStart;return c*1e3/g}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var g;return(g=this.fragments)!==null&&g!==void 0&&g.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var g;return(g=this.partList)!==null&&g!==void 0&&g.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),e}()},"./src/loader/level-key.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"LevelKey",function(){return M});var G=O("./node_modules/url-toolkit/src/url-toolkit.js"),U=O.n(G);function S(e,I){for(var p=0;p<I.length;p++){var g=I[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(e,g.key,g)}}function Y(e,I,p){return I&&S(e.prototype,I),p&&S(e,p),e}var M=function(){e.fromURL=function(p,g){return new e(p,g)},e.fromURI=function(p){return new e(p)};function e(I,p){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,p?this._uri=Object(G.buildAbsoluteURL)(I,p,{alwaysNormalize:!0}):this._uri=I}return Y(e,[{key:"uri",get:function(){return this._uri}}]),e}()},"./src/loader/load-stats.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"LoadStats",function(){return G});var G=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}},"./src/loader/m3u8-parser.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return r});var G=O("./src/polyfills/number.ts"),U=O("./node_modules/url-toolkit/src/url-toolkit.js"),S=O.n(U),Y=O("./src/loader/fragment.ts"),M=O("./src/loader/level-details.ts"),e=O("./src/loader/level-key.ts"),I=O("./src/utils/attr-list.ts"),p=O("./src/utils/logger.ts"),g=O("./src/utils/codecs.ts"),c=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,s=/#EXT-X-MEDIA:(.*)/g,i=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),A=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),o=/\.(mp4|m4s|m4v|m4a)$/i;function a(T){var v,d;return o.test((v=(d=U.parseURL(T))===null||d===void 0?void 0:d.path)!=null?v:"")}var r=function(){function T(){}return T.findGroup=function(d,n){for(var l=0;l<d.length;l++){var u=d[l];if(u.id===n)return u}},T.convertAVC1ToAVCOTI=function(d){var n=d.split(".");if(n.length>2){var l=n.shift()+".";return l+=parseInt(n.shift()).toString(16),l+=("000"+parseInt(n.shift()).toString(16)).substr(-4),l}return d},T.resolve=function(d,n){return U.buildAbsoluteURL(n,d,{alwaysNormalize:!0})},T.parseMasterPlaylist=function(d,n){var l=[],u={},_=!1;c.lastIndex=0;for(var m;(m=c.exec(d))!=null;)if(m[1]){var h=new I.AttrList(m[1]),R={attrs:h,bitrate:h.decimalInteger("AVERAGE-BANDWIDTH")||h.decimalInteger("BANDWIDTH"),name:h.NAME,url:T.resolve(m[2],n)},F=h.decimalResolution("RESOLUTION");F&&(R.width=F.width,R.height=F.height),t((h.CODECS||"").split(/[ ,]+/).filter(function(P){return P}),R),R.videoCodec&&R.videoCodec.indexOf("avc1")!==-1&&(R.videoCodec=T.convertAVC1ToAVCOTI(R.videoCodec)),l.push(R)}else if(m[3]){var C=new I.AttrList(m[3]);C["DATA-ID"]&&(_=!0,u[C["DATA-ID"]]=C)}return{levels:l,sessionData:_?u:null}},T.parseMasterPlaylistMedia=function(d,n,l,u){u===void 0&&(u=[]);var _,m=[],h=0;for(s.lastIndex=0;(_=s.exec(d))!==null;){var R=new I.AttrList(_[1]);if(R.TYPE===l){var F={attrs:R,bitrate:0,id:h++,groupId:R["GROUP-ID"],instreamId:R["INSTREAM-ID"],name:R.NAME||R.LANGUAGE||"",type:l,default:R.bool("DEFAULT"),autoselect:R.bool("AUTOSELECT"),forced:R.bool("FORCED"),lang:R.LANGUAGE,url:R.URI?T.resolve(R.URI,n):""};if(u.length){var C=T.findGroup(u,F.groupId)||u[0];b(F,C,"audioCodec"),b(F,C,"textCodec")}m.push(F)}}return m},T.parseLevelPlaylist=function(d,n,l,u,_){var m=new M.LevelDetails(n),h=m.fragments,R=null,F=0,C=0,P=0,j=0,D=null,$=new Y.Fragment(u,n),oe,Ee,ve,Le=-1,Se=!1;for(i.lastIndex=0,m.m3u8=d;(oe=i.exec(d))!==null;){Se&&(Se=!1,$=new Y.Fragment(u,n),$.start=P,$.sn=F,$.cc=j,$.level=l,R&&($.initSegment=R,$.rawProgramDateTime=R.rawProgramDateTime));var Re=oe[1];if(Re){$.duration=parseFloat(Re);var De=(" "+oe[2]).slice(1);$.title=De||null,$.tagList.push(De?["INF",Re,De]:["INF",Re])}else if(oe[3])Object(G.isFiniteNumber)($.duration)&&($.start=P,ve&&($.levelkey=ve),$.sn=F,$.level=l,$.cc=j,$.urlId=_,h.push($),$.relurl=(" "+oe[3]).slice(1),E($,D),D=$,P+=$.duration,F++,C=0,Se=!0);else if(oe[4]){var Fe=(" "+oe[4]).slice(1);D?$.setByteRange(Fe,D):$.setByteRange(Fe)}else if(oe[5])$.rawProgramDateTime=(" "+oe[5]).slice(1),$.tagList.push(["PROGRAM-DATE-TIME",$.rawProgramDateTime]),Le===-1&&(Le=h.length);else{if(oe=oe[0].match(A),!oe){p.logger.warn("No matches on slow regex match for level playlist!");continue}for(Ee=1;Ee<oe.length&&!(typeof oe[Ee]!="undefined");Ee++);var Ce=(" "+oe[Ee]).slice(1),X=(" "+oe[Ee+1]).slice(1),L=oe[Ee+2]?(" "+oe[Ee+2]).slice(1):"";switch(Ce){case"PLAYLIST-TYPE":m.type=X.toUpperCase();break;case"MEDIA-SEQUENCE":F=m.startSN=parseInt(X);break;case"SKIP":{var N=new I.AttrList(X),J=N.decimalInteger("SKIPPED-SEGMENTS");if(Object(G.isFiniteNumber)(J)){m.skippedSegments=J;for(var ne=J;ne--;)h.unshift(null);F+=J}var k=N.enumeratedString("RECENTLY-REMOVED-DATERANGES");k&&(m.recentlyRemovedDateranges=k.split(" "));break}case"TARGETDURATION":m.targetduration=parseFloat(X);break;case"VERSION":m.version=parseInt(X);break;case"EXTM3U":break;case"ENDLIST":m.live=!1;break;case"#":(X||L)&&$.tagList.push(L?[X,L]:[X]);break;case"DIS":j++;case"GAP":$.tagList.push([Ce]);break;case"BITRATE":$.tagList.push([Ce,X]);break;case"DISCONTINUITY-SEQ":j=parseInt(X);break;case"KEY":{var Z,H=new I.AttrList(X),W=H.enumeratedString("METHOD"),z=H.URI,se=H.hexadecimalInteger("IV"),pe=H.enumeratedString("KEYFORMATVERSIONS"),ge=H.enumeratedString("KEYID"),Ne=(Z=H.enumeratedString("KEYFORMAT"))!=null?Z:"identity",Me=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(Me.indexOf(Ne)>-1){p.logger.warn("Keyformat "+Ne+" is not supported from the manifest");continue}else if(Ne!=="identity")continue;W&&(ve=e.LevelKey.fromURL(n,z),z&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(W)>=0&&(ve.method=W,ve.keyFormat=Ne,ge&&(ve.keyID=ge),pe&&(ve.keyFormatVersions=pe),ve.iv=se));break}case"START":{var ke=new I.AttrList(X),He=ke.decimalFloatingPoint("TIME-OFFSET");Object(G.isFiniteNumber)(He)&&(m.startTimeOffset=He);break}case"MAP":{var Je=new I.AttrList(X);$.relurl=Je.URI,Je.BYTERANGE&&$.setByteRange(Je.BYTERANGE),$.level=l,$.sn="initSegment",ve&&($.levelkey=ve),$.initSegment=null,R=$,Se=!0;break}case"SERVER-CONTROL":{var rt=new I.AttrList(X);m.canBlockReload=rt.bool("CAN-BLOCK-RELOAD"),m.canSkipUntil=rt.optionalFloat("CAN-SKIP-UNTIL",0),m.canSkipDateRanges=m.canSkipUntil>0&&rt.bool("CAN-SKIP-DATERANGES"),m.partHoldBack=rt.optionalFloat("PART-HOLD-BACK",0),m.holdBack=rt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var xe=new I.AttrList(X);m.partTarget=xe.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ue=m.partList;Ue||(Ue=m.partList=[]);var Qe=C>0?Ue[Ue.length-1]:void 0,ze=C++,Ae=new Y.Part(new I.AttrList(X),$,n,ze,Qe);Ue.push(Ae),$.duration+=Ae.duration;break}case"PRELOAD-HINT":{var q=new I.AttrList(X);m.preloadHint=q;break}case"RENDITION-REPORT":{var ee=new I.AttrList(X);m.renditionReports=m.renditionReports||[],m.renditionReports.push(ee);break}default:p.logger.warn("line parsed but not handled: "+oe);break}}}D&&!D.relurl?(h.pop(),P-=D.duration,m.partList&&(m.fragmentHint=D)):m.partList&&(E($,D),$.cc=j,m.fragmentHint=$);var ie=h.length,le=h[0],te=h[ie-1];if(P+=m.skippedSegments*m.targetduration,P>0&&ie&&te){m.averagetargetduration=P/ie;var ae=te.sn;m.endSN=ae!=="initSegment"?ae:0,le&&(m.startCC=le.cc,le.initSegment||m.fragments.every(function(he){return he.relurl&&a(he.relurl)})&&(p.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),$=new Y.Fragment(u,n),$.relurl=te.relurl,$.level=l,$.sn="initSegment",le.initSegment=$,m.needSidxRanges=!0))}else m.endSN=0,m.startCC=0;return m.fragmentHint&&(P+=m.fragmentHint.duration),m.totalduration=P,m.endCC=j,Le>0&&y(h,Le),m},T}();function t(T,v){["video","audio","text"].forEach(function(d){var n=T.filter(function(u){return Object(g.isCodecType)(u,d)});if(n.length){var l=n.filter(function(u){return u.lastIndexOf("avc1",0)===0||u.lastIndexOf("mp4a",0)===0});v[d+"Codec"]=l.length>0?l[0]:n[0],T=T.filter(function(u){return n.indexOf(u)===-1})}}),v.unknownCodecs=T}function b(T,v,d){var n=v[d];n&&(T[d]=n)}function y(T,v){for(var d=T[v],n=v;n--;){var l=T[n];if(!l)return;l.programDateTime=d.programDateTime-l.duration*1e3,d=l}}function E(T,v){T.rawProgramDateTime?T.programDateTime=Date.parse(T.rawProgramDateTime):v!=null&&v.programDateTime&&(T.programDateTime=v.endProgramDateTime),Object(G.isFiniteNumber)(T.programDateTime)||(T.programDateTime=null,T.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/polyfills/number.ts"),U=O("./src/events.ts"),S=O("./src/errors.ts"),Y=O("./src/utils/logger.ts"),M=O("./src/utils/mp4-tools.ts"),e=O("./src/loader/m3u8-parser.ts"),I=O("./src/types/loader.ts"),p=O("./src/utils/attr-list.ts");function g(i){var A=i.type;switch(A){case I.PlaylistContextType.AUDIO_TRACK:return I.PlaylistLevelType.AUDIO;case I.PlaylistContextType.SUBTITLE_TRACK:return I.PlaylistLevelType.SUBTITLE;default:return I.PlaylistLevelType.MAIN}}function c(i,A){var o=i.url;return(o===void 0||o.indexOf("data:")===0)&&(o=A.url),o}var s=function(){function i(o){this.hls=void 0,this.loaders=Object.create(null),this.hls=o,this.registerListeners()}var A=i.prototype;return A.registerListeners=function(){var a=this.hls;a.on(U.Events.MANIFEST_LOADING,this.onManifestLoading,this),a.on(U.Events.LEVEL_LOADING,this.onLevelLoading,this),a.on(U.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),a.on(U.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},A.unregisterListeners=function(){var a=this.hls;a.off(U.Events.MANIFEST_LOADING,this.onManifestLoading,this),a.off(U.Events.LEVEL_LOADING,this.onLevelLoading,this),a.off(U.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),a.off(U.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},A.createInternalLoader=function(a){var r=this.hls.config,t=r.pLoader,b=r.loader,y=t||b,E=new y(r);return a.loader=E,this.loaders[a.type]=E,E},A.getInternalLoader=function(a){return this.loaders[a.type]},A.resetInternalLoader=function(a){this.loaders[a]&&delete this.loaders[a]},A.destroyInternalLoaders=function(){for(var a in this.loaders){var r=this.loaders[a];r&&r.destroy(),this.resetInternalLoader(a)}},A.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},A.onManifestLoading=function(a,r){var t=r.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:I.PlaylistContextType.MANIFEST,url:t,deliveryDirectives:null})},A.onLevelLoading=function(a,r){var t=r.id,b=r.level,y=r.url,E=r.deliveryDirectives;this.load({id:t,groupId:null,level:b,responseType:"text",type:I.PlaylistContextType.LEVEL,url:y,deliveryDirectives:E})},A.onAudioTrackLoading=function(a,r){var t=r.id,b=r.groupId,y=r.url,E=r.deliveryDirectives;this.load({id:t,groupId:b,level:null,responseType:"text",type:I.PlaylistContextType.AUDIO_TRACK,url:y,deliveryDirectives:E})},A.onSubtitleTrackLoading=function(a,r){var t=r.id,b=r.groupId,y=r.url,E=r.deliveryDirectives;this.load({id:t,groupId:b,level:null,responseType:"text",type:I.PlaylistContextType.SUBTITLE_TRACK,url:y,deliveryDirectives:E})},A.load=function(a){var r,t=this.hls.config,b=this.getInternalLoader(a);if(b){var y=b.context;if(y&&y.url===a.url){Y.logger.trace("[playlist-loader]: playlist request ongoing");return}Y.logger.log("[playlist-loader]: aborting previous loader for type: "+a.type),b.abort()}var E,T,v,d;switch(a.type){case I.PlaylistContextType.MANIFEST:E=t.manifestLoadingMaxRetry,T=t.manifestLoadingTimeOut,v=t.manifestLoadingRetryDelay,d=t.manifestLoadingMaxRetryTimeout;break;case I.PlaylistContextType.LEVEL:case I.PlaylistContextType.AUDIO_TRACK:case I.PlaylistContextType.SUBTITLE_TRACK:E=0,T=t.levelLoadingTimeOut;break;default:E=t.levelLoadingMaxRetry,T=t.levelLoadingTimeOut,v=t.levelLoadingRetryDelay,d=t.levelLoadingMaxRetryTimeout;break}if(b=this.createInternalLoader(a),(r=a.deliveryDirectives)!==null&&r!==void 0&&r.part){var n;if(a.type===I.PlaylistContextType.LEVEL&&a.level!==null?n=this.hls.levels[a.level].details:a.type===I.PlaylistContextType.AUDIO_TRACK&&a.id!==null?n=this.hls.audioTracks[a.id].details:a.type===I.PlaylistContextType.SUBTITLE_TRACK&&a.id!==null&&(n=this.hls.subtitleTracks[a.id].details),n){var l=n.partTarget,u=n.targetduration;l&&u&&(T=Math.min(Math.max(l*3,u*.8)*1e3,T))}}var _={timeout:T,maxRetry:E,retryDelay:v,maxRetryDelay:d,highWaterMark:0},m={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};b.load(a,_,m)},A.loadsuccess=function(a,r,t,b){if(b===void 0&&(b=null),t.isSidxRequest){this.handleSidxRequest(a,t),this.handlePlaylistLoaded(a,r,t,b);return}this.resetInternalLoader(t.type);var y=a.data;if(y.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(a,t,"no EXTM3U delimiter",b);return}r.parsing.start=performance.now(),y.indexOf("#EXTINF:")>0||y.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(a,r,t,b):this.handleMasterPlaylist(a,r,t,b)},A.loaderror=function(a,r,t){t===void 0&&(t=null),this.handleNetworkError(r,t,!1,a)},A.loadtimeout=function(a,r,t){t===void 0&&(t=null),this.handleNetworkError(r,t,!0)},A.handleMasterPlaylist=function(a,r,t,b){var y=this.hls,E=a.data,T=c(a,t),v=e.default.parseMasterPlaylist(E,T),d=v.levels,n=v.sessionData;if(!d.length){this.handleManifestParsingError(a,t,"no level found in manifest",b);return}var l=d.map(function(F){return{id:F.attrs.AUDIO,audioCodec:F.audioCodec}}),u=d.map(function(F){return{id:F.attrs.SUBTITLES,textCodec:F.textCodec}}),_=e.default.parseMasterPlaylistMedia(E,T,"AUDIO",l),m=e.default.parseMasterPlaylistMedia(E,T,"SUBTITLES",u),h=e.default.parseMasterPlaylistMedia(E,T,"CLOSED-CAPTIONS");if(_.length){var R=_.some(function(F){return!F.url});!R&&d[0].audioCodec&&!d[0].attrs.AUDIO&&(Y.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),_.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new p.AttrList({}),bitrate:0,url:""}))}y.trigger(U.Events.MANIFEST_LOADED,{levels:d,audioTracks:_,subtitles:m,captions:h,url:T,stats:r,networkDetails:b,sessionData:n})},A.handleTrackOrLevelPlaylist=function(a,r,t,b){var y=this.hls,E=t.id,T=t.level,v=t.type,d=c(a,t),n=Object(G.isFiniteNumber)(E)?E:0,l=Object(G.isFiniteNumber)(T)?T:n,u=g(t),_=e.default.parseLevelPlaylist(a.data,d,l,u,n);if(!_.fragments.length){y.trigger(U.Events.ERROR,{type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:d,reason:"no fragments found in level",level:typeof t.level=="number"?t.level:void 0});return}if(v===I.PlaylistContextType.MANIFEST){var m={attrs:new p.AttrList({}),bitrate:0,details:_,name:"",url:d};y.trigger(U.Events.MANIFEST_LOADED,{levels:[m],audioTracks:[],url:d,stats:r,networkDetails:b,sessionData:null})}if(r.parsing.end=performance.now(),_.needSidxRanges){var h,R=(h=_.fragments[0].initSegment)===null||h===void 0?void 0:h.url;this.load({url:R,isSidxRequest:!0,type:v,level:T,levelDetails:_,id:E,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}t.levelDetails=_,this.handlePlaylistLoaded(a,r,t,b)},A.handleSidxRequest=function(a,r){var t=Object(M.parseSegmentIndex)(new Uint8Array(a.data));if(!t)return;var b=t.references,y=r.levelDetails;b.forEach(function(E,T){var v=E.info,d=y.fragments[T];d.byteRange.length===0&&d.setByteRange(String(1+v.end-v.start)+"@"+String(v.start)),d.initSegment&&d.initSegment.setByteRange(String(t.moovEndOffset)+"@0")})},A.handleManifestParsingError=function(a,r,t,b){this.hls.trigger(U.Events.ERROR,{type:S.ErrorTypes.NETWORK_ERROR,details:S.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:r.type===I.PlaylistContextType.MANIFEST,url:a.url,reason:t,response:a,context:r,networkDetails:b})},A.handleNetworkError=function(a,r,t,b){t===void 0&&(t=!1),Y.logger.warn("[playlist-loader]: A network "+(t?"timeout":"error")+" occurred while loading "+a.type+" level: "+a.level+" id: "+a.id+' group-id: "'+a.groupId+'"');var y=S.ErrorDetails.UNKNOWN,E=!1,T=this.getInternalLoader(a);switch(a.type){case I.PlaylistContextType.MANIFEST:y=t?S.ErrorDetails.MANIFEST_LOAD_TIMEOUT:S.ErrorDetails.MANIFEST_LOAD_ERROR,E=!0;break;case I.PlaylistContextType.LEVEL:y=t?S.ErrorDetails.LEVEL_LOAD_TIMEOUT:S.ErrorDetails.LEVEL_LOAD_ERROR,E=!1;break;case I.PlaylistContextType.AUDIO_TRACK:y=t?S.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:S.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,E=!1;break;case I.PlaylistContextType.SUBTITLE_TRACK:y=t?S.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:S.ErrorDetails.SUBTITLE_LOAD_ERROR,E=!1;break}T&&this.resetInternalLoader(a.type);var v={type:S.ErrorTypes.NETWORK_ERROR,details:y,fatal:E,url:a.url,loader:T,context:a,networkDetails:r};b&&(v.response=b),this.hls.trigger(U.Events.ERROR,v)},A.handlePlaylistLoaded=function(a,r,t,b){var y=t.type,E=t.level,T=t.id,v=t.groupId,d=t.loader,n=t.levelDetails,l=t.deliveryDirectives;if(!(n!=null&&n.targetduration)){this.handleManifestParsingError(a,t,"invalid target duration",b);return}if(!d)return;n.live&&(d.getCacheAge&&(n.ageHeader=d.getCacheAge()||0),(!d.getCacheAge||isNaN(n.ageHeader))&&(n.ageHeader=0));switch(y){case I.PlaylistContextType.MANIFEST:case I.PlaylistContextType.LEVEL:this.hls.trigger(U.Events.LEVEL_LOADED,{details:n,level:E||0,id:T||0,stats:r,networkDetails:b,deliveryDirectives:l});break;case I.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(U.Events.AUDIO_TRACK_LOADED,{details:n,id:T||0,groupId:v||"",stats:r,networkDetails:b,deliveryDirectives:l});break;case I.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(U.Events.SUBTITLE_TRACK_LOADED,{details:n,id:T||0,groupId:v||"",stats:r,networkDetails:b,deliveryDirectives:l});break}},i}();K.default=s},"./src/polyfills/number.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"isFiniteNumber",function(){return G}),O.d(K,"MAX_SAFE_INTEGER",function(){return U});var G=Number.isFinite||function(S){return typeof S=="number"&&isFinite(S)},U=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(de,K,O){"use strict";O.r(K);var G=function(){function U(){}return U.getSilentFrame=function(Y,M){switch(Y){case"mp4a.40.2":if(M===1)return new Uint8Array([0,200,0,128,35,128]);if(M===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(M===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(M===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(M===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(M===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(M===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(M===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(M===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},U}();K.default=G},"./src/remux/mp4-generator.ts":function(de,K,O){"use strict";O.r(K);var G=Math.pow(2,32)-1,U=function(){function S(){}return S.init=function(){S.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var M;for(M in S.types)S.types.hasOwnProperty(M)&&(S.types[M]=[M.charCodeAt(0),M.charCodeAt(1),M.charCodeAt(2),M.charCodeAt(3)]);var e=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),I=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);S.HDLR_TYPES={video:e,audio:I};var p=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),g=new Uint8Array([0,0,0,0,0,0,0,0]);S.STTS=S.STSC=S.STCO=g,S.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),S.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),S.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),S.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var c=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),i=new Uint8Array([0,0,0,1]);S.FTYP=S.box(S.types.ftyp,c,i,c,s),S.DINF=S.box(S.types.dinf,S.box(S.types.dref,p))},S.box=function(M){for(var e=8,I=arguments.length,p=new Array(I>1?I-1:0),g=1;g<I;g++)p[g-1]=arguments[g];for(var c=p.length,s=c;c--;)e+=p[c].byteLength;var i=new Uint8Array(e);for(i[0]=e>>24&255,i[1]=e>>16&255,i[2]=e>>8&255,i[3]=e&255,i.set(M,4),c=0,e=8;c<s;c++)i.set(p[c],e),e+=p[c].byteLength;return i},S.hdlr=function(M){return S.box(S.types.hdlr,S.HDLR_TYPES[M])},S.mdat=function(M){return S.box(S.types.mdat,M)},S.mdhd=function(M,e){e*=M;var I=Math.floor(e/(G+1)),p=Math.floor(e%(G+1));return S.box(S.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,M>>24&255,M>>16&255,M>>8&255,M&255,I>>24,I>>16&255,I>>8&255,I&255,p>>24,p>>16&255,p>>8&255,p&255,85,196,0,0]))},S.mdia=function(M){return S.box(S.types.mdia,S.mdhd(M.timescale,M.duration),S.hdlr(M.type),S.minf(M))},S.mfhd=function(M){return S.box(S.types.mfhd,new Uint8Array([0,0,0,0,M>>24,M>>16&255,M>>8&255,M&255]))},S.minf=function(M){return M.type==="audio"?S.box(S.types.minf,S.box(S.types.smhd,S.SMHD),S.DINF,S.stbl(M)):S.box(S.types.minf,S.box(S.types.vmhd,S.VMHD),S.DINF,S.stbl(M))},S.moof=function(M,e,I){return S.box(S.types.moof,S.mfhd(M),S.traf(I,e))},S.moov=function(M){for(var e=M.length,I=[];e--;)I[e]=S.trak(M[e]);return S.box.apply(null,[S.types.moov,S.mvhd(M[0].timescale,M[0].duration)].concat(I).concat(S.mvex(M)))},S.mvex=function(M){for(var e=M.length,I=[];e--;)I[e]=S.trex(M[e]);return S.box.apply(null,[S.types.mvex].concat(I))},S.mvhd=function(M,e){e*=M;var I=Math.floor(e/(G+1)),p=Math.floor(e%(G+1)),g=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,M>>24&255,M>>16&255,M>>8&255,M&255,I>>24,I>>16&255,I>>8&255,I&255,p>>24,p>>16&255,p>>8&255,p&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,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,255,255,255,255]);return S.box(S.types.mvhd,g)},S.sdtp=function(M){var e=M.samples||[],I=new Uint8Array(4+e.length),p,g;for(p=0;p<e.length;p++)g=e[p].flags,I[p+4]=g.dependsOn<<4|g.isDependedOn<<2|g.hasRedundancy;return S.box(S.types.sdtp,I)},S.stbl=function(M){return S.box(S.types.stbl,S.stsd(M),S.box(S.types.stts,S.STTS),S.box(S.types.stsc,S.STSC),S.box(S.types.stsz,S.STSZ),S.box(S.types.stco,S.STCO))},S.avc1=function(M){var e=[],I=[],p,g,c;for(p=0;p<M.sps.length;p++)g=M.sps[p],c=g.byteLength,e.push(c>>>8&255),e.push(c&255),e=e.concat(Array.prototype.slice.call(g));for(p=0;p<M.pps.length;p++)g=M.pps[p],c=g.byteLength,I.push(c>>>8&255),I.push(c&255),I=I.concat(Array.prototype.slice.call(g));var s=S.box(S.types.avcC,new Uint8Array([1,e[3],e[4],e[5],252|3,224|M.sps.length].concat(e).concat([M.pps.length]).concat(I))),i=M.width,A=M.height,o=M.pixelRatio[0],a=M.pixelRatio[1];return S.box(S.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>8&255,i&255,A>>8&255,A&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,S.box(S.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),S.box(S.types.pasp,new Uint8Array([o>>24,o>>16&255,o>>8&255,o&255,a>>24,a>>16&255,a>>8&255,a&255])))},S.esds=function(M){var e=M.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(M.config).concat([6,1,2]))},S.mp4a=function(M){var e=M.samplerate;return S.box(S.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,M.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]),S.box(S.types.esds,S.esds(M)))},S.mp3=function(M){var e=M.samplerate;return S.box(S.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,M.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0]))},S.stsd=function(M){return M.type==="audio"?!M.isAAC&&M.codec==="mp3"?S.box(S.types.stsd,S.STSD,S.mp3(M)):S.box(S.types.stsd,S.STSD,S.mp4a(M)):S.box(S.types.stsd,S.STSD,S.avc1(M))},S.tkhd=function(M){var e=M.id,I=M.duration*M.timescale,p=M.width,g=M.height,c=Math.floor(I/(G+1)),s=Math.floor(I%(G+1));return S.box(S.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,0,0,0,0,c>>24,c>>16&255,c>>8&255,c&255,s>>24,s>>16&255,s>>8&255,s&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,p>>8&255,p&255,0,0,g>>8&255,g&255,0,0]))},S.traf=function(M,e){var I=S.sdtp(M),p=M.id,g=Math.floor(e/(G+1)),c=Math.floor(e%(G+1));return S.box(S.types.traf,S.box(S.types.tfhd,new Uint8Array([0,0,0,0,p>>24,p>>16&255,p>>8&255,p&255])),S.box(S.types.tfdt,new Uint8Array([1,0,0,0,g>>24,g>>16&255,g>>8&255,g&255,c>>24,c>>16&255,c>>8&255,c&255])),S.trun(M,I.length+16+20+8+16+8+8),I)},S.trak=function(M){return M.duration=M.duration||4294967295,S.box(S.types.trak,S.tkhd(M),S.mdia(M))},S.trex=function(M){var e=M.id;return S.box(S.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},S.trun=function(M,e){var I=M.samples||[],p=I.length,g=12+16*p,c=new Uint8Array(g),s,i,A,o,a,r;for(e+=8+g,c.set([0,0,15,1,p>>>24&255,p>>>16&255,p>>>8&255,p&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255],0),s=0;s<p;s++)i=I[s],A=i.duration,o=i.size,a=i.flags,r=i.cts,c.set([A>>>24&255,A>>>16&255,A>>>8&255,A&255,o>>>24&255,o>>>16&255,o>>>8&255,o&255,a.isLeading<<2|a.dependsOn,a.isDependedOn<<6|a.hasRedundancy<<4|a.paddingValue<<1|a.isNonSync,a.degradPrio&240<<8,a.degradPrio&15,r>>>24&255,r>>>16&255,r>>>8&255,r&255],12+16*s);return S.box(S.types.trun,c)},S.initSegment=function(M){S.types||S.init();var e=S.moov(M),I=new Uint8Array(S.FTYP.byteLength+e.byteLength);return I.set(S.FTYP),I.set(e,S.FTYP.byteLength),I},S}();U.types=void 0,U.HDLR_TYPES=void 0,U.STTS=void 0,U.STSC=void 0,U.STCO=void 0,U.STSZ=void 0,U.VMHD=void 0,U.SMHD=void 0,U.STSD=void 0,U.FTYP=void 0,U.DINF=void 0,K.default=U},"./src/remux/mp4-remuxer.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return r}),O.d(K,"normalizePts",function(){return t});var G=O("./src/polyfills/number.ts"),U=O("./src/remux/aac-helper.ts"),S=O("./src/remux/mp4-generator.ts"),Y=O("./src/events.ts"),M=O("./src/errors.ts"),e=O("./src/utils/logger.ts"),I=O("./src/types/loader.ts"),p=O("./src/utils/timescale-conversion.ts");function g(){return g=Object.assign||function(T){for(var v=1;v<arguments.length;v++){var d=arguments[v];for(var n in d)Object.prototype.hasOwnProperty.call(d,n)&&(T[n]=d[n])}return T},g.apply(this,arguments)}var c=10*1e3,s=1024,i=1152,A=null,o=null,a=!1,r=function(){function T(d,n,l,u){if(u===void 0&&(u=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=d,this.config=n,this.typeSupported=l,this.ISGenerated=!1,A===null){var _=navigator.userAgent||"",m=_.match(/Chrome\/(\d+)/i);A=m?parseInt(m[1]):0}if(o===null){var h=navigator.userAgent.match(/Safari\/(\d+)/i);o=h?parseInt(h[1]):0}a=!!A&&A<75||!!o&&o<600}var v=T.prototype;return v.destroy=function(){},v.resetTimeStamp=function(n){e.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=n},v.resetNextTimestamp=function(){e.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},v.resetInitSegment=function(){e.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},v.getVideoStartPts=function(n){var l=!1,u=n.reduce(function(_,m){var h=m.pts-_;return h<-4294967296?(l=!0,t(_,m.pts)):h>0?_:m.pts},n[0].pts);return l&&e.logger.debug("PTS rollover detected"),u},v.remux=function(n,l,u,_,m,h,R,F){var C,P,j,D,$,oe,Ee=m,ve=m,Le=n.pid>-1,Se=l.pid>-1,Re=l.samples.length,De=n.samples.length>0,Fe=Re>1,Ce=(!Le||De)&&(!Se||Fe)||this.ISGenerated||R;if(Ce){this.ISGenerated||(j=this.generateIS(n,l,m));var X=this.isVideoContiguous,L=-1;if(Fe&&(L=b(l.samples),!X&&this.config.forceKeyFrameOnDiscontinuity))if(oe=!0,L>0){e.logger.warn("[mp4-remuxer]: Dropped "+L+" out of "+Re+" video samples due to a missing keyframe");var N=this.getVideoStartPts(l.samples);l.samples=l.samples.slice(L),l.dropped+=L,ve+=(l.samples[0].pts-N)/(l.timescale||9e4)}else L===-1&&(e.logger.warn("[mp4-remuxer]: No keyframe found out of "+Re+" video samples"),oe=!1);if(this.ISGenerated){if(De&&Fe){var J=this.getVideoStartPts(l.samples),ne=t(n.samples[0].pts,J)-J,k=ne/l.inputTimeScale;Ee+=Math.max(0,k),ve+=Math.max(0,-k)}if(De){if(n.samplerate||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),j=this.generateIS(n,l,m)),P=this.remuxAudio(n,Ee,this.isAudioContiguous,h,Se||Fe||F===I.PlaylistLevelType.AUDIO?ve:void 0),Fe){var Z=P?P.endPTS-P.startPTS:0;l.inputTimeScale||(e.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),j=this.generateIS(n,l,m)),C=this.remuxVideo(l,ve,X,Z)}}else Fe&&(C=this.remuxVideo(l,ve,X,0));C&&(C.firstKeyFrame=L,C.independent=L!==-1)}}return this.ISGenerated&&(u.samples.length&&($=this.remuxID3(u,m)),_.samples.length&&(D=this.remuxText(_,m))),{audio:P,video:C,initSegment:j,independent:oe,text:D,id3:$}},v.generateIS=function(n,l,u){var _=n.samples,m=l.samples,h=this.typeSupported,R={},F=!Object(G.isFiniteNumber)(this._initPTS),C="audio/mp4",P,j,D;if(F&&(P=j=Infinity),n.config&&_.length&&(n.timescale=n.samplerate,n.isAAC||(h.mpeg?(C="audio/mpeg",n.codec=""):h.mp3&&(n.codec="mp3")),R.audio={id:"audio",container:C,codec:n.codec,initSegment:!n.isAAC&&h.mpeg?new Uint8Array(0):S.default.initSegment([n]),metadata:{channelCount:n.channelCount}},F&&(D=n.inputTimeScale,P=j=_[0].pts-Math.round(D*u))),l.sps&&l.pps&&m.length&&(l.timescale=l.inputTimeScale,R.video={id:"main",container:"video/mp4",codec:l.codec,initSegment:S.default.initSegment([l]),metadata:{width:l.width,height:l.height}},F)){D=l.inputTimeScale;var $=this.getVideoStartPts(m),oe=Math.round(D*u);j=Math.min(j,t(m[0].dts,$)-oe),P=Math.min(P,$-oe)}if(Object.keys(R).length)return this.ISGenerated=!0,F&&(this._initPTS=P,this._initDTS=j),{tracks:R,initPTS:P,timescale:D}},v.remuxVideo=function(n,l,u,_){var m=n.inputTimeScale,h=n.samples,R=[],F=h.length,C=this._initPTS,P=this.nextAvcDts,j=8,D,$,oe,Ee=Number.POSITIVE_INFINITY,ve=Number.NEGATIVE_INFINITY,Le=0,Se=!1;if(!u||P===null){var Re=l*m,De=h[0].pts-t(h[0].dts,h[0].pts);P=Re-De}for(var Fe=0;Fe<F;Fe++){var Ce=h[Fe];if(Ce.pts=t(Ce.pts-C,P),Ce.dts=t(Ce.dts-C,P),Ce.dts>Ce.pts){var X=9e4*.2;Le=Math.max(Math.min(Le,Ce.pts-Ce.dts),-1*X)}Ce.dts<h[Fe>0?Fe-1:Fe].dts&&(Se=!0)}Se&&h.sort(function(_t,ut){var $e=_t.dts-ut.dts,kt=_t.pts-ut.pts;return $e||kt}),$=h[0].dts,oe=h[h.length-1].dts;var L=Math.round((oe-$)/(F-1));if(Le<0){if(Le<L*-2){e.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(p.toMsFromMpegTsClock)(-L,!0)+" ms");for(var N=Le,J=0;J<F;J++)h[J].dts=N=Math.max(N,h[J].pts-L),h[J].pts=Math.max(N,h[J].pts)}else{e.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(p.toMsFromMpegTsClock)(Le,!0)+" ms to overcome this issue");for(var ne=0;ne<F;ne++)h[ne].dts=h[ne].dts+Le}$=h[0].dts}if(u){var k=$-P,Z=k>L,H=k<-1;if(Z||H){Z?e.logger.warn("AVC: "+Object(p.toMsFromMpegTsClock)(k,!0)+" ms ("+k+"dts) hole between fragments detected, filling it"):e.logger.warn("AVC: "+Object(p.toMsFromMpegTsClock)(-k,!0)+" ms ("+k+"dts) overlapping between fragments detected"),$=P;var W=h[0].pts-k;h[0].dts=$,h[0].pts=W,e.logger.log("Video: First PTS/DTS adjusted: "+Object(p.toMsFromMpegTsClock)(W,!0)+"/"+Object(p.toMsFromMpegTsClock)($,!0)+", delta: "+Object(p.toMsFromMpegTsClock)(k,!0)+" ms")}}a&&($=Math.max(0,$));for(var z=0,se=0,pe=0;pe<F;pe++){for(var ge=h[pe],Ne=ge.units,Me=Ne.length,ke=0,He=0;He<Me;He++)ke+=Ne[He].data.length;se+=ke,z+=Me,ge.length=ke,ge.dts=Math.max(ge.dts,$),ge.pts=Math.max(ge.pts,ge.dts,0),Ee=Math.min(ge.pts,Ee),ve=Math.max(ge.pts,ve)}oe=h[F-1].dts;var Je=se+4*z+8,rt;try{rt=new Uint8Array(Je)}catch(_t){this.observer.emit(Y.Events.ERROR,Y.Events.ERROR,{type:M.ErrorTypes.MUX_ERROR,details:M.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Je,reason:"fail allocating video mdat "+Je});return}var xe=new DataView(rt.buffer);xe.setUint32(0,Je),rt.set(S.default.types.mdat,4);for(var Ue=0;Ue<F;Ue++){for(var Qe=h[Ue],ze=Qe.units,Ae=0,q=0,ee=ze.length;q<ee;q++){var ie=ze[q],le=ie.data,te=ie.data.byteLength;xe.setUint32(j,te),j+=4,rt.set(le,j),j+=te,Ae+=4+te}if(Ue<F-1)D=h[Ue+1].dts-Qe.dts;else{var ae=this.config,he=Qe.dts-h[Ue>0?Ue-1:Ue].dts;if(ae.stretchShortVideoTrack&&this.nextAudioPts!==null){var me=Math.floor(ae.maxBufferHole*m),Te=(_?Ee+_*m:this.nextAudioPts)-Qe.pts;Te>me?(D=Te-he,D<0&&(D=he),e.logger.log("[mp4-remuxer]: It is approximately "+Te/90+" ms to the next segment; using duration "+D/90+" ms for the last video frame.")):D=he}else D=he}var Be=Math.round(Qe.pts-Qe.dts);R.push(new y(Qe.key,D,Ae,Be))}if(R.length&&A&&A<70){var je=R[0].flags;je.dependsOn=2,je.isNonSync=0}console.assert(D!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=P=oe+D,this.isVideoContiguous=!0;var qe=S.default.moof(n.sequenceNumber++,$,g({},n,{samples:R})),at="video",et={data1:qe,data2:rt,startPTS:Ee/m,endPTS:(ve+D)/m,startDTS:$/m,endDTS:P/m,type:at,hasAudio:!1,hasVideo:!0,nb:R.length,dropped:n.dropped};return n.samples=[],n.dropped=0,console.assert(rt.length,"MDAT length must not be zero"),et},v.remuxAudio=function(n,l,u,_,m){var h=n.inputTimeScale,R=n.samplerate?n.samplerate:h,F=h/R,C=n.isAAC?s:i,P=C*F,j=this._initPTS,D=!n.isAAC&&this.typeSupported.mpeg,$=[],oe=n.samples,Ee=D?0:8,ve=this.nextAudioPts||-1,Le=l*h;if(this.isAudioContiguous=u=u||oe.length&&ve>0&&(_&&Math.abs(Le-ve)<9e3||Math.abs(t(oe[0].pts-j,Le)-ve)<20*P),oe.forEach(function(le){le.pts=t(le.pts-j,Le)}),!u||ve<0){if(oe=oe.filter(function(le){return le.pts>=0}),!oe.length)return;m===0?ve=0:_?ve=Math.max(0,Le):ve=oe[0].pts}if(n.isAAC)for(var Se=m!==void 0,Re=this.config.maxAudioFramesDrift,De=0,Fe=ve;De<oe.length;De++){var Ce=oe[De],X=Ce.pts,L=X-Fe,N=Math.abs(1e3*L/h);if(L<=-Re*P&&Se)De===0&&(e.logger.warn("Audio frame @ "+(X/h).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*L/h)+" ms."),this.nextAudioPts=ve=Fe=X);else if(L>=Re*P&&N<c&&Se){var J=Math.round(L/P);Fe=X-J*P,Fe<0&&(J--,Fe+=P),De===0&&(this.nextAudioPts=ve=Fe),e.logger.warn("[mp4-remuxer]: Injecting "+J+" audio frame @ "+(Fe/h).toFixed(3)+"s due to "+Math.round(1e3*L/h)+" ms gap.");for(var ne=0;ne<J;ne++){var k=Math.max(Fe,0),Z=U.default.getSilentFrame(n.manifestCodec||n.codec,n.channelCount);Z||(e.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Z=Ce.unit.subarray()),oe.splice(De,0,{unit:Z,pts:k}),Fe+=P,De++}}Ce.pts=Fe,Fe+=P}for(var H=null,W=null,z,se=0,pe=oe.length;pe--;)se+=oe[pe].unit.byteLength;for(var ge=0,Ne=oe.length;ge<Ne;ge++){var Me=oe[ge],ke=Me.unit,He=Me.pts;if(W!==null){var Je=$[ge-1];Je.duration=Math.round((He-W)/F)}else if(u&&n.isAAC&&(He=ve),H=He,se>0){se+=Ee;try{z=new Uint8Array(se)}catch(le){this.observer.emit(Y.Events.ERROR,Y.Events.ERROR,{type:M.ErrorTypes.MUX_ERROR,details:M.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:se,reason:"fail allocating audio mdat "+se});return}if(!D){var rt=new DataView(z.buffer);rt.setUint32(0,se),z.set(S.default.types.mdat,4)}}else return;z.set(ke,Ee);var xe=ke.byteLength;Ee+=xe,$.push(new y(!0,C,xe,0)),W=He}var Ue=$.length;if(!Ue)return;var Qe=$[$.length-1];this.nextAudioPts=ve=W+F*Qe.duration;var ze=D?new Uint8Array(0):S.default.moof(n.sequenceNumber++,H/F,g({},n,{samples:$}));n.samples=[];var Ae=H/h,q=ve/h,ee="audio",ie={data1:ze,data2:z,startPTS:Ae,endPTS:q,startDTS:Ae,endDTS:q,type:ee,hasAudio:!0,hasVideo:!1,nb:Ue};return this.isAudioContiguous=!0,console.assert(z.length,"MDAT length must not be zero"),ie},v.remuxEmptyAudio=function(n,l,u,_){var m=n.inputTimeScale,h=n.samplerate?n.samplerate:m,R=m/h,F=this.nextAudioPts,C=(F!==null?F:_.startDTS*m)+this._initDTS,P=_.endDTS*m+this._initDTS,j=R*s,D=Math.ceil((P-C)/j),$=U.default.getSilentFrame(n.manifestCodec||n.codec,n.channelCount);if(e.logger.warn("[mp4-remuxer]: remux empty Audio"),!$){e.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var oe=[],Ee=0;Ee<D;Ee++){var ve=C+Ee*j;oe.push({unit:$,pts:ve,dts:ve})}return n.samples=oe,this.remuxAudio(n,l,u,!1)},v.remuxID3=function(n,l){var u=n.samples.length;if(!u)return;for(var _=n.inputTimeScale,m=this._initPTS,h=this._initDTS,R=0;R<u;R++){var F=n.samples[R];F.pts=t(F.pts-m,l*_)/_,F.dts=t(F.dts-h,l*_)/_}var C=n.samples;return n.samples=[],{samples:C}},v.remuxText=function(n,l){var u=n.samples.length;if(!u)return;for(var _=n.inputTimeScale,m=this._initPTS,h=0;h<u;h++){var R=n.samples[h];R.pts=t(R.pts-m,l*_)/_}n.samples.sort(function(C,P){return C.pts-P.pts});var F=n.samples;return n.samples=[],{samples:F}},T}();function t(T,v){var d;if(v===null)return T;for(v<T?d=-8589934592:d=8589934592;Math.abs(T-v)>4294967296;)T+=d;return T}function b(T){for(var v=0;v<T.length;v++)if(T[v].key)return v;return-1}var y=function(v,d,n,l){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=d,this.size=n,this.cts=l,this.flags=new E(v)},E=function(v){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=v?2:1,this.isNonSync=v?0:1}},"./src/remux/passthrough-remuxer.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/polyfills/number.ts"),U=O("./src/utils/mp4-tools.ts"),S=O("./src/loader/fragment.ts"),Y=O("./src/utils/logger.ts"),M=function(){function p(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var g=p.prototype;return g.destroy=function(){},g.resetTimeStamp=function(s){this.initPTS=s,this.lastEndDTS=null},g.resetNextTimestamp=function(){this.lastEndDTS=null},g.resetInitSegment=function(s,i,A){this.audioCodec=i,this.videoCodec=A,this.generateInitSegment(s),this.emitInitSegment=!0},g.generateInitSegment=function(s){var i=this.audioCodec,A=this.videoCodec;if(!s||!s.byteLength){this.initTracks=void 0,this.initData=void 0;return}var o=this.initData=Object(U.parseInitSegment)(s);i||(i=I(o.audio,S.ElementaryStreamTypes.AUDIO)),A||(A=I(o.video,S.ElementaryStreamTypes.VIDEO));var a={};o.audio&&o.video?a.audiovideo={container:"video/mp4",codec:i+","+A,initSegment:s,id:"main"}:o.audio?a.audio={container:"audio/mp4",codec:i,initSegment:s,id:"audio"}:o.video?a.video={container:"video/mp4",codec:A,initSegment:s,id:"main"}:Y.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=a},g.remux=function(s,i,A,o,a){var r=this.initPTS,t=this.lastEndDTS,b={audio:void 0,video:void 0,text:o,id3:A,initSegment:void 0};Object(G.isFiniteNumber)(t)||(t=this.lastEndDTS=a||0);var y=i.samples;if(!y||!y.length)return b;var E={initPTS:void 0,timescale:1},T=this.initData;if((!T||!T.length)&&(this.generateInitSegment(y),T=this.initData),!T||!T.length)return Y.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),b;this.emitInitSegment&&(E.tracks=this.initTracks,this.emitInitSegment=!1),Object(G.isFiniteNumber)(r)||(this.initPTS=E.initPTS=r=e(T,y,t));var v=Object(U.getDuration)(y,T),d=t,n=v+d;Object(U.offsetStartDTS)(T,y,r),v>0?this.lastEndDTS=n:(Y.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var l=!!T.audio,u=!!T.video,_="";l&&(_+="audio"),u&&(_+="video");var m={data1:y,startPTS:d,startDTS:d,endPTS:n,endDTS:n,type:_,hasAudio:l,hasVideo:u,nb:1,dropped:0};return b.audio=m.type==="audio"?m:void 0,b.video=m.type!=="audio"?m:void 0,b.text=o,b.id3=A,b.initSegment=E,b},p}(),e=function(g,c,s){return Object(U.getStartDTS)(g,c)-s};function I(p,g){var c=p==null?void 0:p.codec;return c&&c.length>4?c:c==="hvc1"?"hvc1.1.c.L120.90":c==="av01"?"av01.0.04M.08":c==="avc1"||g===S.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}K.default=M},"./src/task-loop.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return G});var G=function(){function U(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var S=U.prototype;return S.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},S.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},S.onHandlerDestroyed=function(){},S.hasInterval=function(){return!!this._tickInterval},S.hasNextTick=function(){return!!this._tickTimer},S.setInterval=function(M){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,M),!0)},S.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},S.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},S.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},S.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},S.doTick=function(){},U}()},"./src/types/cmcd.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"CMCDVersion",function(){return G}),O.d(K,"CMCDObjectType",function(){return U}),O.d(K,"CMCDStreamingFormat",function(){return S}),O.d(K,"CMCDStreamType",function(){return Y});var G=1,U;(function(M){M.MANIFEST="m",M.AUDIO="a",M.VIDEO="v",M.MUXED="av",M.INIT="i",M.CAPTION="c",M.TIMED_TEXT="tt",M.KEY="k",M.OTHER="o"})(U||(U={}));var S;(function(M){M.DASH="d",M.HLS="h",M.SMOOTH="s",M.OTHER="o"})(S||(S={}));var Y;(function(M){M.VOD="v",M.LIVE="l"})(Y||(Y={}))},"./src/types/level.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"HlsSkip",function(){return S}),O.d(K,"getSkipValue",function(){return Y}),O.d(K,"HlsUrlParameters",function(){return M}),O.d(K,"Level",function(){return e});function G(I,p){for(var g=0;g<p.length;g++){var c=p[g];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(I,c.key,c)}}function U(I,p,g){return p&&G(I.prototype,p),g&&G(I,g),I}var S;(function(I){I.No="",I.Yes="YES",I.v2="v2"})(S||(S={}));function Y(I,p){var g=I.canSkipUntil,c=I.canSkipDateRanges,s=I.endSN,i=p!==void 0?p-s:0;return g&&i<g?c?S.v2:S.Yes:S.No}var M=function(){function I(g,c,s){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=g,this.part=c,this.skip=s}var p=I.prototype;return p.addDirectives=function(c){var s=new self.URL(c);return this.msn!==void 0&&s.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&s.searchParams.set("_HLS_part",this.part.toString()),this.skip&&s.searchParams.set("_HLS_skip",this.skip),s.toString()},I}(),e=function(){function I(p){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[p.url],this.attrs=p.attrs,this.bitrate=p.bitrate,p.details&&(this.details=p.details),this.id=p.id||0,this.name=p.name,this.width=p.width||0,this.height=p.height||0,this.audioCodec=p.audioCodec,this.videoCodec=p.videoCodec,this.unknownCodecs=p.unknownCodecs,this.codecSet=[p.videoCodec,p.audioCodec].filter(function(g){return g}).join(",").replace(/\.[^.,]+/g,"")}return U(I,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(g){var c=g%this.url.length;this._urlId!==c&&(this.details=void 0,this._urlId=c)}}]),I}()},"./src/types/loader.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"PlaylistContextType",function(){return G}),O.d(K,"PlaylistLevelType",function(){return U});var G;(function(S){S.MANIFEST="manifest",S.LEVEL="level",S.AUDIO_TRACK="audioTrack",S.SUBTITLE_TRACK="subtitleTrack"})(G||(G={}));var U;(function(S){S.MAIN="main",S.AUDIO="audio",S.SUBTITLE="subtitle"})(U||(U={}))},"./src/types/transmuxer.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"ChunkMetadata",function(){return G});var G=function(Y,M,e,I,p,g){I===void 0&&(I=0),p===void 0&&(p=-1),g===void 0&&(g=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=U(),this.buffering={audio:U(),video:U(),audiovideo:U()},this.level=Y,this.sn=M,this.id=e,this.size=I,this.part=p,this.partial=g};function U(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"AttrList",function(){return S});var G=/^(\d+)x(\d+)$/,U=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,S=function(){function Y(e){typeof e=="string"&&(e=Y.parseAttrList(e));for(var I in e)e.hasOwnProperty(I)&&(this[I]=e[I])}var M=Y.prototype;return M.decimalInteger=function(I){var p=parseInt(this[I],10);return p>Number.MAX_SAFE_INTEGER?Infinity:p},M.hexadecimalInteger=function(I){if(this[I]){var p=(this[I]||"0x").slice(2);p=(p.length&1?"0":"")+p;for(var g=new Uint8Array(p.length/2),c=0;c<p.length/2;c++)g[c]=parseInt(p.slice(c*2,c*2+2),16);return g}else return null},M.hexadecimalIntegerAsNumber=function(I){var p=parseInt(this[I],16);return p>Number.MAX_SAFE_INTEGER?Infinity:p},M.decimalFloatingPoint=function(I){return parseFloat(this[I])},M.optionalFloat=function(I,p){var g=this[I];return g?parseFloat(g):p},M.enumeratedString=function(I){return this[I]},M.bool=function(I){return this[I]==="YES"},M.decimalResolution=function(I){var p=G.exec(this[I]);return p===null?void 0:{width:parseInt(p[1],10),height:parseInt(p[2],10)}},Y.parseAttrList=function(I){var p,g={},c='"';for(U.lastIndex=0;(p=U.exec(I))!==null;){var s=p[2];s.indexOf(c)===0&&s.lastIndexOf(c)===s.length-1&&(s=s.slice(1,-1)),g[p[1]]=s}return g},Y}()},"./src/utils/binary-search.ts":function(de,K,O){"use strict";O.r(K);var G={search:function(S,Y){for(var M=0,e=S.length-1,I=null,p=null;M<=e;){I=(M+e)/2|0,p=S[I];var g=Y(p);if(g>0)M=I+1;else if(g<0)e=I-1;else return p}return null}};K.default=G},"./src/utils/buffer-helper.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"BufferHelper",function(){return S});var G=O("./src/utils/logger.ts"),U={length:0,start:function(){return 0},end:function(){return 0}},S=function(){function Y(){}return Y.isBuffered=function(e,I){try{if(e){for(var p=Y.getBuffered(e),g=0;g<p.length;g++)if(I>=p.start(g)&&I<=p.end(g))return!0}}catch(c){}return!1},Y.bufferInfo=function(e,I,p){try{if(e){var g=Y.getBuffered(e),c=[],s;for(s=0;s<g.length;s++)c.push({start:g.start(s),end:g.end(s)});return this.bufferedInfo(c,I,p)}}catch(i){}return{len:0,start:I,end:I,nextStart:void 0}},Y.bufferedInfo=function(e,I,p){I=Math.max(0,I),e.sort(function(E,T){var v=E.start-T.start;return v||T.end-E.end});var g=[];if(p)for(var c=0;c<e.length;c++){var s=g.length;if(s){var i=g[s-1].end;e[c].start-i<p?e[c].end>i&&(g[s-1].end=e[c].end):g.push(e[c])}else g.push(e[c])}else g=e;for(var A=0,o,a=I,r=I,t=0;t<g.length;t++){var b=g[t].start,y=g[t].end;if(I+p>=b&&I<y)a=b,r=y,A=r-I;else if(I+p<b){o=b;break}}return{len:A,start:a||0,end:r||0,nextStart:o}},Y.getBuffered=function(e){try{return e.buffered}catch(I){return G.logger.log("failed to get media.buffered",I),U}},Y}()},"./src/utils/cea-608-parser.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"Row",function(){return r}),O.d(K,"CaptionScreen",function(){return t});var G=O("./src/utils/logger.ts"),U={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},S=function(n){var l=n;return U.hasOwnProperty(n)&&(l=U[n]),String.fromCharCode(l)},Y=15,M=100,e={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},I={17:2,18:4,21:6,22:8,23:10,19:13,20:15},p={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},g={25:2,26:4,29:6,30:8,31:10,27:13,28:15},c=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],s;(function(d){d[d.ERROR=0]="ERROR",d[d.TEXT=1]="TEXT",d[d.WARNING=2]="WARNING",d[d.INFO=2]="INFO",d[d.DEBUG=3]="DEBUG",d[d.DATA=3]="DATA"})(s||(s={}));var i=function(){function d(){this.time=null,this.verboseLevel=s.ERROR}var n=d.prototype;return n.log=function(u,_){this.verboseLevel>=u&&G.logger.log(this.time+" ["+u+"] "+_)},d}(),A=function(n){for(var l=[],u=0;u<n.length;u++)l.push(n[u].toString(16));return l},o=function(){function d(l,u,_,m,h){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=l||"white",this.underline=u||!1,this.italics=_||!1,this.background=m||"black",this.flash=h||!1}var n=d.prototype;return n.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},n.setStyles=function(u){for(var _=["foreground","underline","italics","background","flash"],m=0;m<_.length;m++){var h=_[m];u.hasOwnProperty(h)&&(this[h]=u[h])}},n.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},n.equals=function(u){return this.foreground===u.foreground&&this.underline===u.underline&&this.italics===u.italics&&this.background===u.background&&this.flash===u.flash},n.copy=function(u){this.foreground=u.foreground,this.underline=u.underline,this.italics=u.italics,this.background=u.background,this.flash=u.flash},n.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},d}(),a=function(){function d(l,u,_,m,h,R){this.uchar=void 0,this.penState=void 0,this.uchar=l||" ",this.penState=new o(u,_,m,h,R)}var n=d.prototype;return n.reset=function(){this.uchar=" ",this.penState.reset()},n.setChar=function(u,_){this.uchar=u,this.penState.copy(_)},n.setPenState=function(u){this.penState.copy(u)},n.equals=function(u){return this.uchar===u.uchar&&this.penState.equals(u.penState)},n.copy=function(u){this.uchar=u.uchar,this.penState.copy(u.penState)},n.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},d}(),r=function(){function d(l){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var u=0;u<M;u++)this.chars.push(new a);this.logger=l,this.pos=0,this.currPenState=new o}var n=d.prototype;return n.equals=function(u){for(var _=!0,m=0;m<M;m++)if(!this.chars[m].equals(u.chars[m])){_=!1;break}return _},n.copy=function(u){for(var _=0;_<M;_++)this.chars[_].copy(u.chars[_])},n.isEmpty=function(){for(var u=!0,_=0;_<M;_++)if(!this.chars[_].isEmpty()){u=!1;break}return u},n.setCursor=function(u){this.pos!==u&&(this.pos=u),this.pos<0?(this.logger.log(s.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>M&&(this.logger.log(s.DEBUG,"Too large cursor position "+this.pos),this.pos=M)},n.moveCursor=function(u){var _=this.pos+u;if(u>1)for(var m=this.pos+1;m<_+1;m++)this.chars[m].setPenState(this.currPenState);this.setCursor(_)},n.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},n.insertChar=function(u){u>=144&&this.backSpace();var _=S(u);if(this.pos>=M){this.logger.log(s.ERROR,"Cannot insert "+u.toString(16)+" ("+_+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(_,this.currPenState),this.moveCursor(1)},n.clearFromPos=function(u){var _;for(_=u;_<M;_++)this.chars[_].reset()},n.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},n.clearToEndOfRow=function(){this.clearFromPos(this.pos)},n.getTextString=function(){for(var u=[],_=!0,m=0;m<M;m++){var h=this.chars[m].uchar;h!==" "&&(_=!1),u.push(h)}return _?"":u.join("")},n.setPenStyles=function(u){this.currPenState.setStyles(u);var _=this.chars[this.pos];_.setPenState(this.currPenState)},d}(),t=function(){function d(l){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var u=0;u<Y;u++)this.rows.push(new r(l));this.logger=l,this.currRow=Y-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var n=d.prototype;return n.reset=function(){for(var u=0;u<Y;u++)this.rows[u].clear();this.currRow=Y-1},n.equals=function(u){for(var _=!0,m=0;m<Y;m++)if(!this.rows[m].equals(u.rows[m])){_=!1;break}return _},n.copy=function(u){for(var _=0;_<Y;_++)this.rows[_].copy(u.rows[_])},n.isEmpty=function(){for(var u=!0,_=0;_<Y;_++)if(!this.rows[_].isEmpty()){u=!1;break}return u},n.backSpace=function(){var u=this.rows[this.currRow];u.backSpace()},n.clearToEndOfRow=function(){var u=this.rows[this.currRow];u.clearToEndOfRow()},n.insertChar=function(u){var _=this.rows[this.currRow];_.insertChar(u)},n.setPen=function(u){var _=this.rows[this.currRow];_.setPenStyles(u)},n.moveCursor=function(u){var _=this.rows[this.currRow];_.moveCursor(u)},n.setCursor=function(u){this.logger.log(s.INFO,"setCursor: "+u);var _=this.rows[this.currRow];_.setCursor(u)},n.setPAC=function(u){this.logger.log(s.INFO,"pacData = "+JSON.stringify(u));var _=u.row-1;if(this.nrRollUpRows&&_<this.nrRollUpRows-1&&(_=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==_){for(var m=0;m<Y;m++)this.rows[m].clear();var h=this.currRow+1-this.nrRollUpRows,R=this.lastOutputScreen;if(R){var F=R.rows[h].cueStartTime,C=this.logger.time;if(F&&C!==null&&F<C)for(var P=0;P<this.nrRollUpRows;P++)this.rows[_-this.nrRollUpRows+P+1].copy(R.rows[h+P])}}this.currRow=_;var j=this.rows[this.currRow];if(u.indent!==null){var D=u.indent,$=Math.max(D-1,0);j.setCursor(u.indent),u.color=j.chars[$].penState.foreground}var oe={foreground:u.color,underline:u.underline,italics:u.italics,background:"black",flash:!1};this.setPen(oe)},n.setBkgData=function(u){this.logger.log(s.INFO,"bkgData = "+JSON.stringify(u)),this.backSpace(),this.setPen(u),this.insertChar(32)},n.setRollUpRows=function(u){this.nrRollUpRows=u},n.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(s.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(s.TEXT,this.getDisplayText());var u=this.currRow+1-this.nrRollUpRows,_=this.rows.splice(u,1)[0];_.clear(),this.rows.splice(this.currRow,0,_),this.logger.log(s.INFO,"Rolling up")},n.getDisplayText=function(u){u=u||!1;for(var _=[],m="",h=-1,R=0;R<Y;R++){var F=this.rows[R].getTextString();F&&(h=R+1,u?_.push("Row "+h+": '"+F+"'"):_.push(F.trim()))}return _.length>0&&(u?m="["+_.join(" | ")+"]":m=_.join(`
|
|
`)),m},n.getTextAndFormat=function(){return this.rows},d}(),b=function(){function d(l,u,_){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=l,this.outputFilter=u,this.mode=null,this.verbose=0,this.displayedMemory=new t(_),this.nonDisplayedMemory=new t(_),this.lastOutputScreen=new t(_),this.currRollUpRow=this.displayedMemory.rows[Y-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=_}var n=d.prototype;return n.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[Y-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},n.getHandler=function(){return this.outputFilter},n.setHandler=function(u){this.outputFilter=u},n.setPAC=function(u){this.writeScreen.setPAC(u)},n.setBkgData=function(u){this.writeScreen.setBkgData(u)},n.setMode=function(u){if(u===this.mode)return;this.mode=u,this.logger.log(s.INFO,"MODE="+u),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=u},n.insertChars=function(u){for(var _=0;_<u.length;_++)this.writeScreen.insertChar(u[_]);var m=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(s.INFO,m+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(s.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},n.ccRCL=function(){this.logger.log(s.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},n.ccBS=function(){if(this.logger.log(s.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},n.ccAOF=function(){},n.ccAON=function(){},n.ccDER=function(){this.logger.log(s.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},n.ccRU=function(u){this.logger.log(s.INFO,"RU("+u+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(u)},n.ccFON=function(){this.logger.log(s.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},n.ccRDC=function(){this.logger.log(s.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},n.ccTR=function(){this.logger.log(s.INFO,"TR"),this.setMode("MODE_TEXT")},n.ccRTD=function(){this.logger.log(s.INFO,"RTD"),this.setMode("MODE_TEXT")},n.ccEDM=function(){this.logger.log(s.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},n.ccCR=function(){this.logger.log(s.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},n.ccENM=function(){this.logger.log(s.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},n.ccEOC=function(){if(this.logger.log(s.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var u=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=u,this.writeScreen=this.nonDisplayedMemory,this.logger.log(s.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},n.ccTO=function(u){this.logger.log(s.INFO,"TO("+u+") - Tab Offset"),this.writeScreen.moveCursor(u)},n.ccMIDROW=function(u){var _={flash:!1};if(_.underline=u%2===1,_.italics=u>=46,_.italics)_.foreground="white";else{var m=Math.floor(u/2)-16,h=["white","green","blue","cyan","red","yellow","magenta"];_.foreground=h[m]}this.logger.log(s.INFO,"MIDROW: "+JSON.stringify(_)),this.writeScreen.setPen(_)},n.outputDataUpdate=function(u){u===void 0&&(u=!1);var _=this.logger.time;if(_===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=_:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,_,this.lastOutputScreen),u&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:_),this.lastOutputScreen.copy(this.displayedMemory))},n.cueSplitAtTime=function(u){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,u,this.displayedMemory),this.cueStartTime=u))},d}(),y=function(){function d(l,u,_){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var m=new i;this.channels=[null,new b(l,u,m),new b(l+1,_,m)],this.cmdHistory=v(),this.logger=m}var n=d.prototype;return n.getHandler=function(u){return this.channels[u].getHandler()},n.setHandler=function(u,_){this.channels[u].setHandler(_)},n.addData=function(u,_){var m,h,R,F=!1;this.logger.time=u;for(var C=0;C<_.length;C+=2){if(h=_[C]&127,R=_[C+1]&127,h===0&&R===0)continue;if(this.logger.log(s.DATA,"["+A([_[C],_[C+1]])+"] -> ("+A([h,R])+")"),m=this.parseCmd(h,R),m||(m=this.parseMidrow(h,R)),m||(m=this.parsePAC(h,R)),m||(m=this.parseBackgroundAttributes(h,R)),!m&&(F=this.parseChars(h,R),F)){var P=this.currentChannel;if(P&&P>0){var j=this.channels[P];j.insertChars(F)}else this.logger.log(s.WARNING,"No channel found yet. TEXT-MODE?")}!m&&!F&&this.logger.log(s.WARNING,"Couldn't parse cleaned data "+A([h,R])+" orig: "+A([_[C],_[C+1]]))}},n.parseCmd=function(u,_){var m=this.cmdHistory,h=(u===20||u===28||u===21||u===29)&&_>=32&&_<=47,R=(u===23||u===31)&&_>=33&&_<=35;if(!(h||R))return!1;if(T(u,_,m))return E(null,null,m),this.logger.log(s.DEBUG,"Repeated command ("+A([u,_])+") is dropped"),!0;var F=u===20||u===21||u===23?1:2,C=this.channels[F];return u===20||u===21||u===28||u===29?_===32?C.ccRCL():_===33?C.ccBS():_===34?C.ccAOF():_===35?C.ccAON():_===36?C.ccDER():_===37?C.ccRU(2):_===38?C.ccRU(3):_===39?C.ccRU(4):_===40?C.ccFON():_===41?C.ccRDC():_===42?C.ccTR():_===43?C.ccRTD():_===44?C.ccEDM():_===45?C.ccCR():_===46?C.ccENM():_===47&&C.ccEOC():C.ccTO(_-32),E(u,_,m),this.currentChannel=F,!0},n.parseMidrow=function(u,_){var m=0;if((u===17||u===25)&&_>=32&&_<=47){if(u===17?m=1:m=2,m!==this.currentChannel)return this.logger.log(s.ERROR,"Mismatch channel in midrow parsing"),!1;var h=this.channels[m];return h?(h.ccMIDROW(_),this.logger.log(s.DEBUG,"MIDROW ("+A([u,_])+")"),!0):!1}return!1},n.parsePAC=function(u,_){var m,h=this.cmdHistory,R=(u>=17&&u<=23||u>=25&&u<=31)&&_>=64&&_<=127,F=(u===16||u===24)&&_>=64&&_<=95;if(!(R||F))return!1;if(T(u,_,h))return E(null,null,h),!0;var C=u<=23?1:2;_>=64&&_<=95?m=C===1?e[u]:p[u]:m=C===1?I[u]:g[u];var P=this.channels[C];return P?(P.setPAC(this.interpretPAC(m,_)),E(u,_,h),this.currentChannel=C,!0):!1},n.interpretPAC=function(u,_){var m,h={color:null,italics:!1,indent:null,underline:!1,row:u};return _>95?m=_-96:m=_-64,h.underline=(m&1)===1,m<=13?h.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(m/2)]:m<=15?(h.italics=!0,h.color="white"):h.indent=Math.floor((m-16)/2)*4,h},n.parseChars=function(u,_){var m,h=null,R=null;if(u>=25?(m=2,R=u-8):(m=1,R=u),R>=17&&R<=19){var F;R===17?F=_+80:R===18?F=_+112:F=_+144,this.logger.log(s.INFO,"Special char '"+S(F)+"' in channel "+m),h=[F]}else u>=32&&u<=127&&(h=_===0?[u]:[u,_]);if(h){var C=A(h);this.logger.log(s.DEBUG,"Char codes = "+C.join(",")),E(u,_,this.cmdHistory)}return h},n.parseBackgroundAttributes=function(u,_){var m=(u===16||u===24)&&_>=32&&_<=47,h=(u===23||u===31)&&_>=45&&_<=47;if(!(m||h))return!1;var R,F={};u===16||u===24?(R=Math.floor((_-32)/2),F.background=c[R],_%2===1&&(F.background=F.background+"_semi")):_===45?F.background="transparent":(F.foreground="black",_===47&&(F.underline=!0));var C=u<=23?1:2,P=this.channels[C];return P.setBkgData(F),E(u,_,this.cmdHistory),!0},n.reset=function(){for(var u=0;u<Object.keys(this.channels).length;u++){var _=this.channels[u];_&&_.reset()}this.cmdHistory=v()},n.cueSplitAtTime=function(u){for(var _=0;_<this.channels.length;_++){var m=this.channels[_];m&&m.cueSplitAtTime(u)}},d}();function E(d,n,l){l.a=d,l.b=n}function T(d,n,l){return l.a===d&&l.b===n}function v(){return{a:null,b:null}}K.default=y},"./src/utils/codecs.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"isCodecType",function(){return U}),O.d(K,"isCodecSupportedInMp4",function(){return S});var G={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}};function U(Y,M){var e=G[M];return!!e&&e[Y.slice(0,4)]===!0}function S(Y,M){return MediaSource.isTypeSupported((M||"video")+'/mp4;codecs="'+Y+'"')}},"./src/utils/cues.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/utils/vttparser.ts"),U=O("./src/utils/webvtt-parser.ts"),S=O("./src/utils/texttrack-utils.ts"),Y=/\s/,M={newCue:function(I,p,g,c){for(var s=[],i,A,o,a,r,t=self.VTTCue||self.TextTrackCue,b=0;b<c.rows.length;b++)if(i=c.rows[b],o=!0,a=0,r="",!i.isEmpty()){for(var y=0;y<i.chars.length;y++)Y.test(i.chars[y].uchar)&&o?a++:(r+=i.chars[y].uchar,o=!1);i.cueStartTime=p,p===g&&(g+=1e-4),a>=16?a--:a++;var E=Object(G.fixLineBreaks)(r.trim()),T=Object(U.generateCueId)(p,g,E);(!I||!I.cues||!I.cues.getCueById(T))&&(A=new t(p,g,E),A.id=T,A.line=b+1,A.align="left",A.position=10+Math.min(80,Math.floor(a*8/32)*10),s.push(A))}return I&&s.length&&(s.sort(function(v,d){return v.line==="auto"||d.line==="auto"?0:v.line>8&&d.line>8?d.line-v.line:v.line-d.line}),s.forEach(function(v){return Object(S.addCueToTrack)(I,v)})),s}};K.default=M},"./src/utils/discontinuities.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"findFirstFragWithCC",function(){return Y}),O.d(K,"shouldAlignOnDiscontinuities",function(){return M}),O.d(K,"findDiscontinuousReferenceFrag",function(){return e}),O.d(K,"adjustSlidingStart",function(){return p}),O.d(K,"alignStream",function(){return g}),O.d(K,"alignPDT",function(){return s}),O.d(K,"alignFragmentByPDTDelta",function(){return i}),O.d(K,"alignMediaPlaylistByPDT",function(){return A});var G=O("./src/polyfills/number.ts"),U=O("./src/utils/logger.ts"),S=O("./src/controller/level-helper.ts");function Y(o,a){for(var r=null,t=0,b=o.length;t<b;t++){var y=o[t];if(y&&y.cc===a){r=y;break}}return r}function M(o,a,r){return!!(a.details&&(r.endCC>r.startCC||o&&o.cc<r.startCC))}function e(o,a){var r=o.fragments,t=a.fragments;if(!t.length||!r.length){U.logger.log("No fragments to align");return}var b=Y(r,t[0].cc);if(!b||b&&!b.startPTS){U.logger.log("No frag in previous level to align on");return}return b}function I(o,a){if(o){var r=o.start+a;o.start=o.startPTS=r,o.endPTS=r+o.duration}}function p(o,a){for(var r=a.fragments,t=0,b=r.length;t<b;t++)I(r[t],o);a.fragmentHint&&I(a.fragmentHint,o),a.alignedSliding=!0}function g(o,a,r){if(!a)return;c(o,r,a),!r.alignedSliding&&a.details&&s(r,a.details),!r.alignedSliding&&a.details&&!r.skippedSegments&&Object(S.adjustSliding)(a.details,r)}function c(o,a,r){if(M(o,r,a)){var t=e(r.details,a);t&&Object(G.isFiniteNumber)(t.start)&&(U.logger.log("Adjusting PTS using last level due to CC increase within current level "+a.url),p(t.start,a))}}function s(o,a){if(!a.fragments.length||!o.hasProgramDateTime||!a.hasProgramDateTime)return;var r=a.fragments[0].programDateTime,t=o.fragments[0].programDateTime,b=(t-r)/1e3+a.fragments[0].start;b&&Object(G.isFiniteNumber)(b)&&(U.logger.log("Adjusting PTS using programDateTime delta "+(t-r)+"ms, sliding:"+b.toFixed(3)+" "+o.url+" "),p(b,o))}function i(o,a){var r=o.programDateTime;if(!r)return;var t=(r-a)/1e3;o.start=o.startPTS=t,o.endPTS=t+o.duration}function A(o,a){if(!a.fragments.length||!o.hasProgramDateTime||!a.hasProgramDateTime)return;var r=a.fragments[0].programDateTime,t=a.fragments[0].start,b=r-t*1e3;o.fragments.forEach(function(y){i(y,b)}),o.fragmentHint&&i(o.fragmentHint,b),o.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/utils/ewma.ts"),U=function(){function S(M,e,I){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=I,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new G.default(M),this.fast_=new G.default(e)}var Y=S.prototype;return Y.update=function(e,I){var p=this.slow_,g=this.fast_;this.slow_.halfLife!==e&&(this.slow_=new G.default(e,p.getEstimate(),p.getTotalWeight())),this.fast_.halfLife!==I&&(this.fast_=new G.default(I,g.getEstimate(),g.getTotalWeight()))},Y.sample=function(e,I){e=Math.max(e,this.minDelayMs_);var p=8*I,g=e/1e3,c=p/g;this.fast_.sample(g,c),this.slow_.sample(g,c)},Y.canEstimate=function(){var e=this.fast_;return e&&e.getTotalWeight()>=this.minWeight_},Y.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},Y.destroy=function(){},S}();K.default=U},"./src/utils/ewma.ts":function(de,K,O){"use strict";O.r(K);var G=function(){function U(Y,M,e){M===void 0&&(M=0),e===void 0&&(e=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=Y,this.alpha_=Y?Math.exp(Math.log(.5)/Y):0,this.estimate_=M,this.totalWeight_=e}var S=U.prototype;return S.sample=function(M,e){var I=Math.pow(this.alpha_,M);this.estimate_=e*(1-I)+I*this.estimate_,this.totalWeight_+=M},S.getTotalWeight=function(){return this.totalWeight_},S.getEstimate=function(){if(this.alpha_){var M=1-Math.pow(this.alpha_,this.totalWeight_);if(M)return this.estimate_/M}return this.estimate_},U}();K.default=G},"./src/utils/fetch-loader.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"fetchSupported",function(){return i});var G=O("./src/polyfills/number.ts"),U=O("./src/loader/load-stats.ts"),S=O("./src/demux/chunk-cache.ts");function Y(t,b){t.prototype=Object.create(b.prototype),t.prototype.constructor=t,g(t,b)}function M(t){var b=typeof Map=="function"?new Map:void 0;return M=function(E){if(E===null||!p(E))return E;if(typeof E!="function")throw new TypeError("Super expression must either be null or a function");if(typeof b!="undefined"){if(b.has(E))return b.get(E);b.set(E,T)}function T(){return e(E,arguments,c(this).constructor)}return T.prototype=Object.create(E.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),g(T,E)},M(t)}function e(t,b,y){return I()?e=Reflect.construct:e=function(T,v,d){var n=[null];n.push.apply(n,v);var l=Function.bind.apply(T,n),u=new l;return d&&g(u,d.prototype),u},e.apply(null,arguments)}function I(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function p(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function g(t,b){return g=Object.setPrototypeOf||function(E,T){return E.__proto__=T,E},g(t,b)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},c(t)}function s(){return s=Object.assign||function(t){for(var b=1;b<arguments.length;b++){var y=arguments[b];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(t[E]=y[E])}return t},s.apply(this,arguments)}function i(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(t){}return!1}var A=function(){function t(y){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=y.fetchSetup||a,this.controller=new self.AbortController,this.stats=new U.LoadStats}var b=t.prototype;return b.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},b.abortInternal=function(){var E=this.response;(!E||!E.ok)&&(this.stats.aborted=!0,this.controller.abort())},b.abort=function(){var E;this.abortInternal(),(E=this.callbacks)!==null&&E!==void 0&&E.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},b.load=function(E,T,v){var d=this,n=this.stats;if(n.loading.start)throw new Error("Loader can only be used once.");n.loading.start=self.performance.now();var l=o(E,this.controller.signal),u=v.onProgress,_=E.responseType==="arraybuffer",m=_?"byteLength":"length";this.context=E,this.config=T,this.callbacks=v,this.request=this.fetchSetup(E,l),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){d.abortInternal(),v.onTimeout(n,E,d.response)},T.timeout),self.fetch(this.request).then(function(h){if(d.response=d.loader=h,!h.ok){var R=h.status,F=h.statusText;throw new r(F||"fetch, bad network response",R,h)}return n.loading.first=Math.max(self.performance.now(),n.loading.start),n.total=parseInt(h.headers.get("Content-Length")||"0"),u&&Object(G.isFiniteNumber)(T.highWaterMark)?d.loadProgressively(h,n,E,T.highWaterMark,u):_?h.arrayBuffer():h.text()}).then(function(h){var R=d.response;self.clearTimeout(d.requestTimeout),n.loading.end=Math.max(self.performance.now(),n.loading.first),n.loaded=n.total=h[m];var F={url:R.url,data:h};u&&!Object(G.isFiniteNumber)(T.highWaterMark)&&u(n,E,h,R),v.onSuccess(F,n,E,R)}).catch(function(h){if(self.clearTimeout(d.requestTimeout),n.aborted)return;var R=h.code||0;v.onError({code:R,text:h.message},E,h.details)})},b.getCacheAge=function(){var E=null;if(this.response){var T=this.response.headers.get("age");E=T?parseFloat(T):null}return E},b.loadProgressively=function(E,T,v,d,n){d===void 0&&(d=0);var l=new S.default,u=E.body.getReader(),_=function m(){return u.read().then(function(h){if(h.done)return l.dataLength&&n(T,v,l.flush(),E),Promise.resolve(new ArrayBuffer(0));var R=h.value,F=R.length;return T.loaded+=F,F<d||l.dataLength?(l.push(R),l.dataLength>=d&&n(T,v,l.flush(),E)):n(T,v,R,E),m()}).catch(function(){return Promise.reject()})};return _()},t}();function o(t,b){var y={method:"GET",mode:"cors",credentials:"same-origin",signal:b,headers:new self.Headers(s({},t.headers))};return t.rangeEnd&&y.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1)),y}function a(t,b){return new self.Request(t.url,b)}var r=function(t){Y(b,t);function b(y,E,T){var v;return v=t.call(this,y)||this,v.code=void 0,v.details=void 0,v.code=E,v.details=T,v}return b}(M(Error));K.default=A},"./src/utils/imsc1-ttml-parser.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"IMSC1_CODEC",function(){return p}),O.d(K,"parseIMSC1",function(){return i});var G=O("./src/utils/mp4-tools.ts"),U=O("./src/utils/vttparser.ts"),S=O("./src/utils/vttcue.ts"),Y=O("./src/demux/id3.ts"),M=O("./src/utils/timescale-conversion.ts"),e=O("./src/utils/webvtt-parser.ts");function I(){return I=Object.assign||function(d){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(d[u]=l[u])}return d},I.apply(this,arguments)}var p="stpp.ttml.im1t",g=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,c=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,s={left:"start",center:"center",right:"end",start:"start",end:"end"};function i(d,n,l,u,_){var m=Object(G.findBox)(new Uint8Array(d),["mdat"]);if(m.length===0){_(new Error("Could not parse IMSC1 mdat"));return}var h=m[0],R=Object(Y.utf8ArrayToStr)(new Uint8Array(d,h.start,h.end-h.start)),F=Object(M.toTimescaleFromScale)(n,1,l);try{u(A(R,F))}catch(C){_(C)}}function A(d,n){var l=new DOMParser,u=l.parseFromString(d,"text/xml"),_=u.getElementsByTagName("tt")[0];if(!_)throw new Error("Invalid ttml");var m={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},h=Object.keys(m).reduce(function(j,D){return j[D]=_.getAttribute("ttp:"+D)||m[D],j},{}),R=_.getAttribute("xml:space")!=="preserve",F=a(o(_,"styling","style")),C=a(o(_,"layout","region")),P=o(_,"body","[begin]");return[].map.call(P,function(j){var D=r(j,R);if(!D||!j.hasAttribute("begin"))return null;var $=E(j.getAttribute("begin"),h),oe=E(j.getAttribute("dur"),h),Ee=E(j.getAttribute("end"),h);if($===null)throw y(j);if(Ee===null){if(oe===null)throw y(j);Ee=$+oe}var ve=new S.default($-n,Ee-n,D);ve.id=Object(e.generateCueId)(ve.startTime,ve.endTime,ve.text);var Le=C[j.getAttribute("region")],Se=F[j.getAttribute("style")];ve.position=10,ve.size=80;var Re=t(Le,Se),De=Re.textAlign;if(De){var Fe=s[De];Fe&&(ve.lineAlign=Fe),ve.align=De}return I(ve,Re),ve}).filter(function(j){return j!==null})}function o(d,n,l){var u=d.getElementsByTagName(n)[0];return u?[].slice.call(u.querySelectorAll(l)):[]}function a(d){return d.reduce(function(n,l){var u=l.getAttribute("xml:id");return u&&(n[u]=l),n},{})}function r(d,n){return[].slice.call(d.childNodes).reduce(function(l,u,_){var m;return u.nodeName==="br"&&_?l+`
|
|
`:(m=u.childNodes)!==null&&m!==void 0&&m.length?r(u,n):n?l+u.textContent.trim().replace(/\s+/g," "):l+u.textContent},"")}function t(d,n){var l="http://www.w3.org/ns/ttml#styling",u=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return u.reduce(function(_,m){var h=b(n,l,m)||b(d,l,m);return h&&(_[m]=h),_},{})}function b(d,n,l){return d.hasAttributeNS(n,l)?d.getAttributeNS(n,l):null}function y(d){return new Error("Could not parse ttml timestamp "+d)}function E(d,n){if(!d)return null;var l=Object(U.parseTimeStamp)(d);return l===null&&(g.test(d)?l=T(d,n):c.test(d)&&(l=v(d,n))),l}function T(d,n){var l=g.exec(d),u=(l[4]|0)+(l[5]|0)/n.subFrameRate;return(l[1]|0)*3600+(l[2]|0)*60+(l[3]|0)+u/n.frameRate}function v(d,n){var l=c.exec(d),u=Number(l[1]),_=l[2];switch(_){case"h":return u*3600;case"m":return u*60;case"ms":return u*1e3;case"f":return u/n.frameRate;case"t":return u/n.tickRate}return u}},"./src/utils/logger.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"enableLogs",function(){return e}),O.d(K,"logger",function(){return I});var G=function(){},U={trace:G,debug:G,log:G,warn:G,info:G,error:G},S=U;function Y(p){var g=self.console[p];return g?g.bind(self.console,"["+p+"] >"):G}function M(p){for(var g=arguments.length,c=new Array(g>1?g-1:0),s=1;s<g;s++)c[s-1]=arguments[s];c.forEach(function(i){S[i]=p[i]?p[i].bind(p):Y(i)})}function e(p){if(self.console&&p===!0||typeof p=="object"){M(p,"debug","log","info","warn","error");try{S.log()}catch(g){S=U}}else S=U}var I=S},"./src/utils/mediakeys-helper.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"KeySystems",function(){return G}),O.d(K,"requestMediaKeySystemAccess",function(){return U});var G;(function(S){S.WIDEVINE="com.widevine.alpha",S.PLAYREADY="com.microsoft.playready"})(G||(G={}));var U=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"getMediaSource",function(){return G});function G(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"bin2str",function(){return M}),O.d(K,"readUint16",function(){return e}),O.d(K,"readUint32",function(){return I}),O.d(K,"writeUint32",function(){return p}),O.d(K,"findBox",function(){return g}),O.d(K,"parseSegmentIndex",function(){return c}),O.d(K,"parseInitSegment",function(){return s}),O.d(K,"getStartDTS",function(){return i}),O.d(K,"getDuration",function(){return A}),O.d(K,"computeRawDurationFromSamples",function(){return o}),O.d(K,"offsetStartDTS",function(){return a}),O.d(K,"segmentValidRange",function(){return r}),O.d(K,"appendUint8Array",function(){return t});var G=O("./src/utils/typed-array.ts"),U=O("./src/loader/fragment.ts"),S=Math.pow(2,32)-1,Y=[].push;function M(b){return String.fromCharCode.apply(null,b)}function e(b,y){"data"in b&&(y+=b.start,b=b.data);var E=b[y]<<8|b[y+1];return E<0?65536+E:E}function I(b,y){"data"in b&&(y+=b.start,b=b.data);var E=b[y]<<24|b[y+1]<<16|b[y+2]<<8|b[y+3];return E<0?4294967296+E:E}function p(b,y,E){"data"in b&&(y+=b.start,b=b.data),b[y]=E>>24,b[y+1]=E>>16&255,b[y+2]=E>>8&255,b[y+3]=E&255}function g(b,y){var E=[];if(!y.length)return E;var T,v,d;"data"in b?(T=b.data,v=b.start,d=b.end):(T=b,v=0,d=T.byteLength);for(var n=v;n<d;){var l=I(T,n),u=M(T.subarray(n+4,n+8)),_=l>1?n+l:d;if(u===y[0])if(y.length===1)E.push({data:T,start:n+8,end:_});else{var m=g({data:T,start:n+8,end:_},y.slice(1));m.length&&Y.apply(E,m)}n=_}return E}function c(b){var y=g(b,["moov"]),E=y[0],T=E?E.end:null,v=g(b,["sidx"]);if(!v||!v[0])return null;var d=[],n=v[0],l=n.data[0],u=l===0?8:16,_=I(n,u);u+=4;var m=0,h=0;l===0?u+=8:u+=16,u+=2;var R=n.end+h,F=e(n,u);u+=2;for(var C=0;C<F;C++){var P=u,j=I(n,P);P+=4;var D=j&2147483647,$=(j&2147483648)>>>31;if($===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var oe=I(n,P);P+=4,d.push({referenceSize:D,subsegmentDuration:oe,info:{duration:oe/_,start:R,end:R+D-1}}),R+=D,P+=4,u=P}return{earliestPresentationTime:m,timescale:_,version:l,referencesCount:F,references:d,moovEndOffset:T}}function s(b){for(var y=[],E=g(b,["moov","trak"]),T=0;T<E.length;T++){var v=E[T],d=g(v,["tkhd"])[0];if(d){var n=d.data[d.start],l=n===0?12:20,u=I(d,l),_=g(v,["mdia","mdhd"])[0];if(_){n=_.data[_.start],l=n===0?12:20;var m=I(_,l),h=g(v,["mdia","hdlr"])[0];if(h){var R=M(h.data.subarray(h.start+8,h.start+12)),F={soun:U.ElementaryStreamTypes.AUDIO,vide:U.ElementaryStreamTypes.VIDEO}[R];if(F){var C=g(v,["mdia","minf","stbl","stsd"])[0],P=void 0;C&&(P=M(C.data.subarray(C.start+12,C.start+16))),y[u]={timescale:m,type:F},y[F]={timescale:m,id:u,codec:P}}}}}}var j=g(b,["moov","mvex","trex"]);return j.forEach(function(D){var $=I(D,4),oe=y[$];oe&&(oe.default={duration:I(D,12),flags:I(D,20)})}),y}function i(b,y){return g(y,["moof","traf"]).reduce(function(E,T){var v=g(T,["tfdt"])[0],d=v.data[v.start],n=g(T,["tfhd"]).reduce(function(l,u){var _=I(u,4),m=b[_];if(m){var h=I(v,4);d===1&&(h*=Math.pow(2,32),h+=I(v,8));var R=m.timescale||9e4,F=h/R;if(isFinite(F)&&(l===null||F<l))return F}return l},null);return n!==null&&isFinite(n)&&(E===null||n<E)?n:E},null)||0}function A(b,y){for(var E=0,T=0,v=0,d=g(b,["moof","traf"]),n=0;n<d.length;n++){var l=d[n],u=g(l,["tfhd"])[0],_=I(u,4),m=y[_];if(!m)continue;var h=m.default,R=I(u,0)|(h==null?void 0:h.flags),F=h==null?void 0:h.duration;R&8&&(R&2?F=I(u,12):F=I(u,8));for(var C=m.timescale||9e4,P=g(l,["trun"]),j=0;j<P.length;j++){if(F){var D=I(P[j],4);E=F*D}else E=o(P[j]);m.type===U.ElementaryStreamTypes.VIDEO?T+=E/C:m.type===U.ElementaryStreamTypes.AUDIO&&(v+=E/C)}}if(T===0&&v===0){var $=c(b);if($!=null&&$.references)return $.references.reduce(function(oe,Ee){return oe+Ee.info.duration||0},0)}return T||v}function o(b){var y=I(b,0),E=8;y&1&&(E+=4),y&4&&(E+=4);for(var T=0,v=I(b,4),d=0;d<v;d++){if(y&256){var n=I(b,E);T+=n,E+=4}y&512&&(E+=4),y&1024&&(E+=4),y&2048&&(E+=4)}return T}function a(b,y,E){g(y,["moof","traf"]).forEach(function(T){g(T,["tfhd"]).forEach(function(v){var d=I(v,4),n=b[d];if(!n)return;var l=n.timescale||9e4;g(T,["tfdt"]).forEach(function(u){var _=u.data[u.start],m=I(u,4);if(_===0)p(u,4,m-E*l);else{m*=Math.pow(2,32),m+=I(u,8),m-=E*l,m=Math.max(m,0);var h=Math.floor(m/(S+1)),R=Math.floor(m%(S+1));p(u,4,h),p(u,8,R)}})})})}function r(b){var y={valid:null,remainder:null},E=g(b,["moof"]);if(E){if(E.length<2)return y.remainder=b,y}else return y;var T=E[E.length-1];return y.valid=Object(G.sliceUint8)(b,0,T.start-8),y.remainder=Object(G.sliceUint8)(b,T.start-8),y}function t(b,y){var E=new Uint8Array(b.length+y.length);return E.set(b),E.set(y,b.length),E}},"./src/utils/output-filter.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"default",function(){return G});var G=function(){function U(Y,M){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=Y,this.trackName=M}var S=U.prototype;return S.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},S.newCue=function(M,e,I){(this.startTime===null||this.startTime>M)&&(this.startTime=M),this.endTime=e,this.screen=I,this.timelineController.createCaptionsTrack(this.trackName)},S.reset=function(){this.cueRanges=[]},U}()},"./src/utils/texttrack-utils.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"sendAddTrackEvent",function(){return U}),O.d(K,"addCueToTrack",function(){return S}),O.d(K,"clearCurrentCues",function(){return Y}),O.d(K,"removeCuesInRange",function(){return M}),O.d(K,"getCuesInRange",function(){return I});var G=O("./src/utils/logger.ts");function U(p,g){var c;try{c=new Event("addtrack")}catch(s){c=document.createEvent("Event"),c.initEvent("addtrack",!1,!1)}c.track=p,g.dispatchEvent(c)}function S(p,g){var c=p.mode;if(c==="disabled"&&(p.mode="hidden"),p.cues&&!p.cues.getCueById(g.id))try{if(p.addCue(g),!p.cues.getCueById(g.id))throw new Error("addCue is failed for: "+g)}catch(i){G.logger.debug("[texttrack-utils]: "+i);var s=new self.TextTrackCue(g.startTime,g.endTime,g.text);s.id=g.id,p.addCue(s)}c==="disabled"&&(p.mode=c)}function Y(p){var g=p.mode;if(g==="disabled"&&(p.mode="hidden"),p.cues)for(var c=p.cues.length;c--;)p.removeCue(p.cues[c]);g==="disabled"&&(p.mode=g)}function M(p,g,c){var s=p.mode;if(s==="disabled"&&(p.mode="hidden"),p.cues&&p.cues.length>0)for(var i=I(p.cues,g,c),A=0;A<i.length;A++)p.removeCue(i[A]);s==="disabled"&&(p.mode=s)}function e(p,g){if(g<p[0].startTime)return 0;var c=p.length-1;if(g>p[c].endTime)return-1;for(var s=0,i=c;s<=i;){var A=Math.floor((i+s)/2);if(g<p[A].startTime)i=A-1;else if(g>p[A].startTime&&s<c)s=A+1;else return A}return p[s].startTime-g<g-p[i].startTime?s:i}function I(p,g,c){var s=[],i=e(p,g);if(i>-1)for(var A=i,o=p.length;A<o;A++){var a=p[A];if(a.startTime>=g&&a.endTime<=c)s.push(a);else if(a.startTime>c)return s}return s}},"./src/utils/time-ranges.ts":function(de,K,O){"use strict";O.r(K);var G={toString:function(S){for(var Y="",M=S.length,e=0;e<M;e++)Y+="["+S.start(e).toFixed(3)+","+S.end(e).toFixed(3)+"]";return Y}};K.default=G},"./src/utils/timescale-conversion.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"toTimescaleFromBase",function(){return U}),O.d(K,"toTimescaleFromScale",function(){return S}),O.d(K,"toMsFromMpegTsClock",function(){return Y}),O.d(K,"toMpegTsClockFromTimescale",function(){return M});var G=9e4;function U(e,I,p,g){p===void 0&&(p=1),g===void 0&&(g=!1);var c=e*I*p;return g?Math.round(c):c}function S(e,I,p,g){return p===void 0&&(p=1),g===void 0&&(g=!1),U(e,I,1/p,g)}function Y(e,I){return I===void 0&&(I=!1),U(e,1e3,1/G,I)}function M(e,I){return I===void 0&&(I=1),U(e,G,1/I)}},"./src/utils/typed-array.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"sliceUint8",function(){return G});function G(U,S,Y){return Uint8Array.prototype.slice?U.slice(S,Y):new Uint8Array(Array.prototype.slice.call(U,S,Y))}},"./src/utils/vttcue.ts":function(de,K,O){"use strict";O.r(K),K.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var G=["","lr","rl"],U=["start","middle","end","left","right"];function S(p,g){if(typeof g!="string")return!1;if(!Array.isArray(p))return!1;var c=g.toLowerCase();return~p.indexOf(c)?c:!1}function Y(p){return S(G,p)}function M(p){return S(U,p)}function e(p){for(var g=arguments.length,c=new Array(g>1?g-1:0),s=1;s<g;s++)c[s-1]=arguments[s];for(var i=1;i<arguments.length;i++){var A=arguments[i];for(var o in A)p[o]=A[o]}return p}function I(p,g,c){var s=this,i={enumerable:!0};s.hasBeenReset=!1;var A="",o=!1,a=p,r=g,t=c,b=null,y="",E=!0,T="auto",v="start",d=50,n="middle",l=50,u="middle";Object.defineProperty(s,"id",e({},i,{get:function(){return A},set:function(m){A=""+m}})),Object.defineProperty(s,"pauseOnExit",e({},i,{get:function(){return o},set:function(m){o=!!m}})),Object.defineProperty(s,"startTime",e({},i,{get:function(){return a},set:function(m){if(typeof m!="number")throw new TypeError("Start time must be set to a number.");a=m,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",e({},i,{get:function(){return r},set:function(m){if(typeof m!="number")throw new TypeError("End time must be set to a number.");r=m,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",e({},i,{get:function(){return t},set:function(m){t=""+m,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",e({},i,{get:function(){return b},set:function(m){b=m,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",e({},i,{get:function(){return y},set:function(m){var h=Y(m);if(h===!1)throw new SyntaxError("An invalid or illegal string was specified.");y=h,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",e({},i,{get:function(){return E},set:function(m){E=!!m,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",e({},i,{get:function(){return T},set:function(m){if(typeof m!="number"&&m!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");T=m,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",e({},i,{get:function(){return v},set:function(m){var h=M(m);if(!h)throw new SyntaxError("An invalid or illegal string was specified.");v=h,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",e({},i,{get:function(){return d},set:function(m){if(m<0||m>100)throw new Error("Position must be between 0 and 100.");d=m,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",e({},i,{get:function(){return n},set:function(m){var h=M(m);if(!h)throw new SyntaxError("An invalid or illegal string was specified.");n=h,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",e({},i,{get:function(){return l},set:function(m){if(m<0||m>100)throw new Error("Size must be between 0 and 100.");l=m,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",e({},i,{get:function(){return u},set:function(m){var h=M(m);if(!h)throw new SyntaxError("An invalid or illegal string was specified.");u=h,this.hasBeenReset=!0}})),s.displayState=void 0}return I.prototype.getCueAsHTML=function(){var p=self.WebVTT;return p.convertCueToDOMTree(self,this.text)},I}()},"./src/utils/vttparser.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"parseTimeStamp",function(){return S}),O.d(K,"fixLineBreaks",function(){return g}),O.d(K,"VTTParser",function(){return c});var G=O("./src/utils/vttcue.ts"),U=function(){function s(){}var i=s.prototype;return i.decode=function(o,a){if(!o)return"";if(typeof o!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(o))},s}();function S(s){function i(o,a,r,t){return(o|0)*3600+(a|0)*60+(r|0)+parseFloat(t||0)}var A=s.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return A?parseFloat(A[2])>59?i(A[2],A[3],0,A[4]):i(A[1],A[2],A[3],A[4]):null}var Y=function(){function s(){this.values=Object.create(null)}var i=s.prototype;return i.set=function(o,a){!this.get(o)&&a!==""&&(this.values[o]=a)},i.get=function(o,a,r){return r?this.has(o)?this.values[o]:a[r]:this.has(o)?this.values[o]:a},i.has=function(o){return o in this.values},i.alt=function(o,a,r){for(var t=0;t<r.length;++t)if(a===r[t]){this.set(o,a);break}},i.integer=function(o,a){/^-?\d+$/.test(a)&&this.set(o,parseInt(a,10))},i.percent=function(o,a){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(a)){var r=parseFloat(a);if(r>=0&&r<=100)return this.set(o,r),!0}return!1},s}();function M(s,i,A,o){var a=o?s.split(o):[s];for(var r in a){if(typeof a[r]!="string")continue;var t=a[r].split(A);if(t.length!==2)continue;var b=t[0],y=t[1];i(b,y)}}var e=new G.default(0,0,""),I=e.align==="middle"?"middle":"center";function p(s,i,A){var o=s;function a(){var b=S(s);if(b===null)throw new Error("Malformed timestamp: "+o);return s=s.replace(/^[^\sa-zA-Z-]+/,""),b}function r(b,y){var E=new Y;M(b,function(d,n){var l;switch(d){case"region":for(var u=A.length-1;u>=0;u--)if(A[u].id===n){E.set(d,A[u].region);break}break;case"vertical":E.alt(d,n,["rl","lr"]);break;case"line":l=n.split(","),E.integer(d,l[0]),E.percent(d,l[0])&&E.set("snapToLines",!1),E.alt(d,l[0],["auto"]),l.length===2&&E.alt("lineAlign",l[1],["start",I,"end"]);break;case"position":l=n.split(","),E.percent(d,l[0]),l.length===2&&E.alt("positionAlign",l[1],["start",I,"end","line-left","line-right","auto"]);break;case"size":E.percent(d,n);break;case"align":E.alt(d,n,["start",I,"end","left","right"]);break}},/:/,/\s/),y.region=E.get("region",null),y.vertical=E.get("vertical","");var T=E.get("line","auto");T==="auto"&&e.line===-1&&(T=-1),y.line=T,y.lineAlign=E.get("lineAlign","start"),y.snapToLines=E.get("snapToLines",!0),y.size=E.get("size",100),y.align=E.get("align",I);var v=E.get("position","auto");v==="auto"&&e.position===50&&(v=y.align==="start"||y.align==="left"?0:y.align==="end"||y.align==="right"?100:50),y.position=v}function t(){s=s.replace(/^\s+/,"")}if(t(),i.startTime=a(),t(),s.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+o);s=s.substr(3),t(),i.endTime=a(),t(),r(s,i)}function g(s){return s.replace(/<br(?: \/)?>/gi,`
|
|
`)}var c=function(){function s(){this.state="INITIAL",this.buffer="",this.decoder=new U,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var i=s.prototype;return i.parse=function(o){var a=this;o&&(a.buffer+=a.decoder.decode(o,{stream:!0}));function r(){var v=a.buffer,d=0;for(v=g(v);d<v.length&&v[d]!=="\r"&&v[d]!==`
|
|
`;)++d;var n=v.substr(0,d);return v[d]==="\r"&&++d,v[d]===`
|
|
`&&++d,a.buffer=v.substr(d),n}function t(v){M(v,function(d,n){},/:/)}try{var b="";if(a.state==="INITIAL"){if(!/\r\n|\n/.test(a.buffer))return this;b=r();var y=b.match(/^()?WEBVTT([ \t].*)?$/);if(!y||!y[0])throw new Error("Malformed WebVTT signature.");a.state="HEADER"}for(var E=!1;a.buffer;){if(!/\r\n|\n/.test(a.buffer))return this;E?E=!1:b=r();switch(a.state){case"HEADER":/:/.test(b)?t(b):b||(a.state="ID");continue;case"NOTE":b||(a.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(b)){a.state="NOTE";break}if(!b)continue;if(a.cue=new G.default(0,0,""),a.state="CUE",b.indexOf("-->")===-1){a.cue.id=b;continue}case"CUE":if(!a.cue){a.state="BADCUE";continue}try{p(b,a.cue,a.regionList)}catch(v){a.cue=null,a.state="BADCUE";continue}a.state="CUETEXT";continue;case"CUETEXT":{var T=b.indexOf("-->")!==-1;if(!b||T&&(E=!0)){a.oncue&&a.cue&&a.oncue(a.cue),a.cue=null,a.state="ID";continue}if(a.cue===null)continue;a.cue.text&&(a.cue.text+=`
|
|
`),a.cue.text+=b}continue;case"BADCUE":b||(a.state="ID")}}}catch(v){a.state==="CUETEXT"&&a.cue&&a.oncue&&a.oncue(a.cue),a.cue=null,a.state=a.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},i.flush=function(){var o=this;try{if((o.cue||o.state==="HEADER")&&(o.buffer+=`
|
|
|
|
`,o.parse()),o.state==="INITIAL"||o.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(a){o.onparsingerror&&o.onparsingerror(a)}return o.onflush&&o.onflush(),this},s}()},"./src/utils/webvtt-parser.ts":function(de,K,O){"use strict";O.r(K),O.d(K,"generateCueId",function(){return c}),O.d(K,"parseWebVTT",function(){return i});var G=O("./src/polyfills/number.ts"),U=O("./src/utils/vttparser.ts"),S=O("./src/demux/id3.ts"),Y=O("./src/utils/timescale-conversion.ts"),M=O("./src/remux/mp4-remuxer.ts"),e=/\r\n|\n\r|\n|\r/g,I=function(o,a,r){return r===void 0&&(r=0),o.substr(r,a.length)===a},p=function(o){var a=parseInt(o.substr(-3)),r=parseInt(o.substr(-6,2)),t=parseInt(o.substr(-9,2)),b=o.length>9?parseInt(o.substr(0,o.indexOf(":"))):0;if(!Object(G.isFiniteNumber)(a)||!Object(G.isFiniteNumber)(r)||!Object(G.isFiniteNumber)(t)||!Object(G.isFiniteNumber)(b))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+o);return a+=1e3*r,a+=60*1e3*t,a+=60*60*1e3*b,a},g=function(o){for(var a=5381,r=o.length;r;)a=a*33^o.charCodeAt(--r);return(a>>>0).toString()};function c(A,o,a){return g(A.toString())+g(o.toString())+g(a)}var s=function(o,a,r){var t=o[a],b=o[t.prevCC];if(!b||!b.new&&t.new){o.ccOffset=o.presentationOffset=t.start,t.new=!1;return}for(;(y=b)!==null&&y!==void 0&&y.new;){var y;o.ccOffset+=t.start-b.start,t.new=!1,t=b,b=o[t.prevCC]}o.presentationOffset=r};function i(A,o,a,r,t,b,y,E){var T=new U.VTTParser,v=Object(S.utf8ArrayToStr)(new Uint8Array(A)).trim().replace(e,`
|
|
`).split(`
|
|
`),d=[],n=Object(Y.toMpegTsClockFromTimescale)(o,a),l="00:00.000",u=0,_=0,m,h=!0,R=!1;T.oncue=function(F){var C=r[t],P=r.ccOffset,j=(u-n)/9e4;if(C!=null&&C.new&&(_!==void 0?P=r.ccOffset=C.start:s(r,t,j)),j&&(P=j-r.presentationOffset),R){var D=F.endTime-F.startTime,$=Object(M.normalizePts)((F.startTime+P-_)*9e4,b*9e4)/9e4;F.startTime=$,F.endTime=$+D}var oe=F.text.trim();F.text=decodeURIComponent(encodeURIComponent(oe)),F.id||(F.id=c(F.startTime,F.endTime,oe)),F.endTime>0&&d.push(F)},T.onparsingerror=function(F){m=F},T.onflush=function(){if(m){E(m);return}y(d)},v.forEach(function(F){if(h)if(I(F,"X-TIMESTAMP-MAP=")){h=!1,R=!0,F.substr(16).split(",").forEach(function(C){I(C,"LOCAL:")?l=C.substr(6):I(C,"MPEGTS:")&&(u=parseInt(C.substr(7)))});try{_=p(l)/1e3}catch(C){R=!1,m=C}return}else F===""&&(h=!1);T.parse(F+`
|
|
`)}),T.flush()}},"./src/utils/xhr-loader.ts":function(de,K,O){"use strict";O.r(K);var G=O("./src/utils/logger.ts"),U=O("./src/loader/load-stats.ts"),S=/^age:\s*[\d.]+\s*$/m,Y=function(){function M(I){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=I?I.xhrSetup:null,this.stats=new U.LoadStats,this.retryDelay=0}var e=M.prototype;return e.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},e.abortInternal=function(){var p=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),p&&(p.onreadystatechange=null,p.onprogress=null,p.readyState!==4&&(this.stats.aborted=!0,p.abort()))},e.abort=function(){var p;this.abortInternal(),(p=this.callbacks)!==null&&p!==void 0&&p.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},e.load=function(p,g,c){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=p,this.config=g,this.callbacks=c,this.retryDelay=g.retryDelay,this.loadInternal()},e.loadInternal=function(){var p=this.config,g=this.context;if(!p)return;var c=this.loader=new self.XMLHttpRequest,s=this.stats;s.loading.first=0,s.loaded=0;var i=this.xhrSetup;try{if(i)try{i(c,g.url)}catch(a){c.open("GET",g.url,!0),i(c,g.url)}c.readyState||c.open("GET",g.url,!0);var A=this.context.headers;if(A)for(var o in A)c.setRequestHeader(o,A[o])}catch(a){this.callbacks.onError({code:c.status,text:a.message},g,c);return}g.rangeEnd&&c.setRequestHeader("Range","bytes="+g.rangeStart+"-"+(g.rangeEnd-1)),c.onreadystatechange=this.readystatechange.bind(this),c.onprogress=this.loadprogress.bind(this),c.responseType=g.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),p.timeout),c.send()},e.readystatechange=function(){var p=this.context,g=this.loader,c=this.stats;if(!p||!g)return;var s=g.readyState,i=this.config;if(c.aborted)return;if(s>=2)if(self.clearTimeout(this.requestTimeout),c.loading.first===0&&(c.loading.first=Math.max(self.performance.now(),c.loading.start)),s===4){g.onreadystatechange=null,g.onprogress=null;var A=g.status;if(A>=200&&A<300){c.loading.end=Math.max(self.performance.now(),c.loading.first);var o,a;if(p.responseType==="arraybuffer"?(o=g.response,a=o.byteLength):(o=g.responseText,a=o.length),c.loaded=c.total=a,!this.callbacks)return;var r=this.callbacks.onProgress;if(r&&r(c,p,o,g),!this.callbacks)return;var t={url:g.responseURL,data:o};this.callbacks.onSuccess(t,c,p,g)}else c.retry>=i.maxRetry||A>=400&&A<499?(G.logger.error(A+" while loading "+p.url),this.callbacks.onError({code:A,text:g.statusText},p,g)):(G.logger.warn(A+" while loading "+p.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,i.maxRetryDelay),c.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.timeout)},e.loadtimeout=function(){G.logger.warn("timeout while loading "+this.context.url);var p=this.callbacks;p&&(this.abortInternal(),p.onTimeout(this.stats,this.context,this.loader))},e.loadprogress=function(p){var g=this.stats;g.loaded=p.loaded,p.lengthComputable&&(g.total=p.total)},e.getCacheAge=function(){var p=null;if(this.loader&&S.test(this.loader.getAllResponseHeaders())){var g=this.loader.getResponseHeader("age");p=g?parseFloat(g):null}return p},M}();K.default=Y}}).default})},vHTk:function(ot,we,Q){ot.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return ke});var de=Q("rePB"),K=Q("VTBJ"),O=Q("KQm4"),G=Q("U8pU"),U=Q("ODXe"),S=Q("q1tI"),Y=Q("TSYQ"),M=Q.n(Y),e=Q("Gytx"),I=Q.n(e),p=Q("Kwbf"),g=Q("t23M"),c=Q("qx4F"),s=Q("6eGT"),i=Q("IBYe"),A=Q("Ff2n"),o=Q("c+Xe"),a=Q("fyJ8"),r=Q("biw7");function t(xe,Ue,Qe,ze,Ae){var q=Qe[xe]||{},ee=Qe[Ue]||{},ie,le;q.fixed==="left"?ie=ze.left[xe]:ee.fixed==="right"&&(le=ze.right[Ue]);var te=!1,ae=!1,he=!1,me=!1,Te=Qe[Ue+1],Be=Qe[xe-1];if(Ae==="rtl"){if(ie!==void 0){var je=Be&&Be.fixed==="left";me=!je}else if(le!==void 0){var qe=Te&&Te.fixed==="right";he=!qe}}else if(ie!==void 0){var at=Te&&Te.fixed==="left";te=!at}else if(le!==void 0){var et=Be&&Be.fixed==="right";ae=!et}return{fixLeft:ie,fixRight:le,lastFixLeft:te,firstFixRight:ae,lastFixRight:he,firstFixLeft:me,isSticky:ze.isSticky}}var b=Q("sR1s");function y(xe){var Ue=xe.cells,Qe=xe.stickyOffsets,ze=xe.flattenColumns,Ae=xe.rowComponent,q=xe.cellComponent,ee=xe.onHeaderRow,ie=xe.index,le=S.useContext(r.a),te=le.prefixCls,ae=le.direction,he;ee&&(he=ee(Ue.map(function(Te){return Te.column}),ie));var me=Object(b.a)(Ue.map(function(Te){return Te.column}));return S.createElement(Ae,Object.assign({},he),Ue.map(function(Te,Be){var je=Te.column,qe=t(Te.colStart,Te.colEnd,ze,Qe,ae),at;return je&&je.onHeaderCell&&(at=Te.column.onHeaderCell(je)),S.createElement(a.a,Object.assign({},Te,{ellipsis:je.ellipsis,align:je.align,component:q,prefixCls:te,key:me[Be]},qe,{additionalProps:at,rowType:"header"}))}))}y.displayName="HeaderRow";var E=y;function T(xe){var Ue=[];function Qe(ee,ie){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ue[le]=Ue[le]||[];var te=ie,ae=ee.filter(Boolean).map(function(he){var me={key:he.key,className:he.className||"",children:he.title,column:he,colStart:te},Te=1,Be=he.children;return Be&&Be.length>0&&(Te=Qe(Be,te,le+1).reduce(function(je,qe){return je+qe},0),me.hasSubColumns=!0),"colSpan"in he&&(Te=he.colSpan),"rowSpan"in he&&(me.rowSpan=he.rowSpan),me.colSpan=Te,me.colEnd=me.colStart+Te-1,Ue[le].push(me),te+=Te,Te});return ae}Qe(xe,0);for(var ze=Ue.length,Ae=function(ie){Ue[ie].forEach(function(le){!("rowSpan"in le)&&!le.hasSubColumns&&(le.rowSpan=ze-ie)})},q=0;q<ze;q+=1)Ae(q);return Ue}function v(xe){var Ue=xe.stickyOffsets,Qe=xe.columns,ze=xe.flattenColumns,Ae=xe.onHeaderRow,q=S.useContext(r.a),ee=q.prefixCls,ie=q.getComponent,le=S.useMemo(function(){return T(Qe)},[Qe]),te=ie(["header","wrapper"],"thead"),ae=ie(["header","row"],"tr"),he=ie(["header","cell"],"th");return S.createElement(te,{className:"".concat(ee,"-thead")},le.map(function(me,Te){var Be=S.createElement(E,{key:Te,flattenColumns:ze,cells:me,stickyOffsets:Ue,rowComponent:ae,cellComponent:he,onHeaderRow:Ae,index:Te});return Be}))}var d=v,n=Q("hW8S");function l(xe){for(var Ue=xe.colWidths,Qe=xe.columns,ze=xe.columCount,Ae=[],q=ze||Qe.length,ee=!1,ie=q-1;ie>=0;ie-=1){var le=Ue[ie],te=Qe&&Qe[ie],ae=te&&te[n.a];(le||ae||ee)&&(Ae.unshift(S.createElement("col",Object.assign({key:ie,style:{width:le,minWidth:le}},ae))),ee=!0)}return S.createElement("colgroup",null,Ae)}var u=l;function _(xe,Ue){return Object(S.useMemo)(function(){for(var Qe=[],ze=0;ze<Ue;ze+=1){var Ae=xe[ze];if(Ae!==void 0)Qe[ze]=Ae;else return null}return Qe},[xe.join("_"),Ue])}var m=S.forwardRef(function(xe,Ue){var Qe=xe.noData,ze=xe.columns,Ae=xe.flattenColumns,q=xe.colWidths,ee=xe.columCount,ie=xe.stickyOffsets,le=xe.direction,te=xe.fixHeader,ae=xe.offsetHeader,he=xe.stickyClassName,me=xe.onScroll,Te=Object(A.a)(xe,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),Be=S.useContext(r.a),je=Be.prefixCls,qe=Be.scrollbarSize,at=Be.isSticky,et=at&&!te?0:qe,_t=S.useRef(null),ut=S.useCallback(function($t){Object(o.b)(Ue,$t),Object(o.b)(_t,$t)},[]);S.useEffect(function(){var $t;function Ft(wt){var sr=wt.currentTarget,vt=wt.deltaX;vt&&(me({currentTarget:sr,scrollLeft:sr.scrollLeft+vt}),wt.preventDefault())}return($t=_t.current)===null||$t===void 0||$t.addEventListener("wheel",Ft),function(){var wt;(wt=_t.current)===null||wt===void 0||wt.removeEventListener("wheel",Ft)}},[]);var $e=Ae[Ae.length-1],kt={fixed:$e?$e.fixed:null,onHeaderCell:function(){return{className:"".concat(je,"-cell-scrollbar")}}},Ut=Object(S.useMemo)(function(){return et?[].concat(Object(O.a)(ze),[kt]):ze},[et,ze]),yt=Object(S.useMemo)(function(){return et?[].concat(Object(O.a)(Ae),[kt]):Ae},[et,Ae]),Wt=Object(S.useMemo)(function(){var $t=ie.right,Ft=ie.left;return Object(K.a)(Object(K.a)({},ie),{},{left:le==="rtl"?[].concat(Object(O.a)(Ft.map(function(wt){return wt+et})),[0]):Ft,right:le==="rtl"?$t:[].concat(Object(O.a)($t.map(function(wt){return wt+et})),[0]),isSticky:at})},[et,ie,at]),St=_(q,ee);return S.createElement("div",{style:Object(K.a)({overflow:"hidden"},at?{top:ae}:{}),ref:ut,className:M()("".concat(je,"-header"),Object(de.a)({},he,!!he))},S.createElement("table",{style:{tableLayout:"fixed",visibility:Qe||St?null:"hidden"}},S.createElement(u,{colWidths:St?[].concat(Object(O.a)(St),[et]):[],columCount:ee+1,columns:yt}),S.createElement(d,Object.assign({},Te,{stickyOffsets:Wt,columns:Ut,flattenColumns:yt}))))});m.displayName="FixedHeader";var h=m,R=S.createContext(null),F=R;function C(xe){var Ue=xe.prefixCls,Qe=xe.children,ze=xe.component,Ae=xe.cellComponent,q=xe.fixHeader,ee=xe.fixColumn,ie=xe.horizonScroll,le=xe.className,te=xe.expanded,ae=xe.componentWidth,he=xe.colSpan,me=S.useContext(r.a),Te=me.scrollbarSize;return S.useMemo(function(){var Be=Qe;return ee&&(Be=S.createElement("div",{style:{width:ae-(q?Te:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ue,"-expanded-row-fixed")},Be)),S.createElement(ze,{className:le,style:{display:te?null:"none"}},S.createElement(a.a,{component:Ae,prefixCls:Ue,colSpan:he},Be))},[Qe,ze,q,ie,le,te,ae,he,Te])}var P=C;function j(xe){var Ue=xe.className,Qe=xe.style,ze=xe.record,Ae=xe.index,q=xe.rowKey,ee=xe.getRowKey,ie=xe.rowExpandable,le=xe.expandedKeys,te=xe.onRow,ae=xe.indent,he=ae===void 0?0:ae,me=xe.rowComponent,Te=xe.cellComponent,Be=xe.childrenColumnName,je=S.useContext(r.a),qe=je.prefixCls,at=je.fixedInfoList,et=S.useContext(F),_t=et.fixHeader,ut=et.fixColumn,$e=et.horizonScroll,kt=et.componentWidth,Ut=et.flattenColumns,yt=et.expandableType,Wt=et.expandRowByClick,St=et.onTriggerExpand,$t=et.rowClassName,Ft=et.expandedRowClassName,wt=et.indentSize,sr=et.expandIcon,vt=et.expandedRowRender,At=et.expandIconColumnIndex,Et=S.useState(!1),hr=Object(U.a)(Et,2),Ir=hr[0],zr=hr[1],nr=le&&le.has(xe.recordKey);S.useEffect(function(){nr&&zr(!0)},[nr]);var Qt=yt==="row"&&(!ie||ie(ze)),It=yt==="nest",Ct=Be&&ze&&ze[Be],yr=Qt||It,Nt;te&&(Nt=te(ze,Ae));var Rr=function(tt){if(Wt&&yr&&St(ze,tt),Nt&&Nt.onClick){for(var Ye,nt=arguments.length,it=new Array(nt>1?nt-1:0),gt=1;gt<nt;gt++)it[gt-1]=arguments[gt];(Ye=Nt).onClick.apply(Ye,[tt].concat(it))}},er;typeof $t=="string"?er=$t:typeof $t=="function"&&(er=$t(ze,Ae,he));var ue=Object(b.a)(Ut),ce=S.createElement(me,Object.assign({},Nt,{"data-row-key":q,className:M()(Ue,"".concat(qe,"-row"),"".concat(qe,"-row-level-").concat(he),er,Nt&&Nt.className),style:Object(K.a)(Object(K.a)({},Qe),Nt?Nt.style:null),onClick:Rr}),Ut.map(function(Ze,tt){var Ye=Ze.render,nt=Ze.dataIndex,it=Ze.className,gt=ue[tt],Ot=at[tt],Rt;tt===(At||0)&&It&&(Rt=S.createElement(S.Fragment,null,S.createElement("span",{style:{paddingLeft:"".concat(wt*he,"px")},className:"".concat(qe,"-row-indent indent-level-").concat(he)}),sr({prefixCls:qe,expanded:nr,expandable:Ct,record:ze,onExpand:St})));var Ke;return Ze.onCell&&(Ke=Ze.onCell(ze,Ae)),S.createElement(a.a,Object.assign({className:it,ellipsis:Ze.ellipsis,align:Ze.align,component:Te,prefixCls:qe,key:gt,record:ze,index:Ae,dataIndex:nt,render:Ye,shouldCellUpdate:Ze.shouldCellUpdate},Ot,{appendNode:Rt,additionalProps:Ke}))})),ye;if(Qt&&(Ir||nr)){var Ie=vt(ze,Ae,he+1,nr),We=Ft&&Ft(ze,Ae,he);ye=S.createElement(P,{expanded:nr,className:M()("".concat(qe,"-expanded-row"),"".concat(qe,"-expanded-row-level-").concat(he+1),We),prefixCls:qe,fixHeader:_t,fixColumn:ut,horizonScroll:$e,component:me,componentWidth:kt,cellComponent:Te,colSpan:Ut.length},Ie)}var Xe;return Ct&&nr&&(Xe=(ze[Be]||[]).map(function(Ze,tt){var Ye=ee(Ze,tt);return S.createElement(j,Object.assign({},xe,{key:Ye,rowKey:Ye,record:Ze,recordKey:Ye,index:tt,indent:he+1}))})),S.createElement(S.Fragment,null,ce,ye,Xe)}j.displayName="BodyRow";var D=j,$=S.createContext(null),oe=$;function Ee(xe){var Ue=xe.columnKey,Qe=xe.onColumnResize,ze=S.useRef();return S.useEffect(function(){ze.current&&Qe(Ue,ze.current.offsetWidth)},[]),S.createElement(g.a,{onResize:function(q){var ee=q.offsetWidth;Qe(Ue,ee)}},S.createElement("td",{ref:ze,style:{padding:0,border:0,height:0}},S.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ve(xe){var Ue=xe.data,Qe=xe.getRowKey,ze=xe.measureColumnWidth,Ae=xe.expandedKeys,q=xe.onRow,ee=xe.rowExpandable,ie=xe.emptyNode,le=xe.childrenColumnName,te=S.useContext(oe),ae=te.onColumnResize,he=S.useContext(r.a),me=he.prefixCls,Te=he.getComponent,Be=S.useContext(F),je=Be.fixHeader,qe=Be.horizonScroll,at=Be.flattenColumns,et=Be.componentWidth;return S.useMemo(function(){var _t=Te(["body","wrapper"],"tbody"),ut=Te(["body","row"],"tr"),$e=Te(["body","cell"],"td"),kt;Ue.length?kt=Ue.map(function(yt,Wt){var St=Qe(yt,Wt);return S.createElement(D,{key:St,rowKey:St,record:yt,recordKey:St,index:Wt,rowComponent:ut,cellComponent:$e,expandedKeys:Ae,onRow:q,getRowKey:Qe,rowExpandable:ee,childrenColumnName:le})}):kt=S.createElement(P,{expanded:!0,className:"".concat(me,"-placeholder"),prefixCls:me,fixHeader:je,fixColumn:qe,horizonScroll:qe,component:ut,componentWidth:et,cellComponent:$e,colSpan:at.length},ie);var Ut=Object(b.a)(at);return S.createElement(_t,{className:"".concat(me,"-tbody")},ze&&S.createElement("tr",{"aria-hidden":"true",className:"".concat(me,"-measure-row"),style:{height:0}},Ut.map(function(yt){return S.createElement(Ee,{key:yt,columnKey:yt,onColumnResize:ae})})),kt)},[Ue,me,q,ze,Ae,Qe,Te,et,ie,at])}var Le=S.memo(ve);Le.displayName="Body";var Se=Le,Re=Q("wRmb"),De=Q("xEkU"),Fe=Q.n(De);function Ce(xe){var Ue=Object(S.useRef)(xe),Qe=Object(S.useState)({}),ze=Object(U.a)(Qe,2),Ae=ze[1],q=Object(S.useRef)(null),ee=Object(S.useRef)([]);function ie(le){q.current===null&&(ee.current=[],q.current=Fe()(function(){ee.current.forEach(function(te){Ue.current=te(Ue.current)}),q.current=null,Ae({})})),ee.current.push(le)}return Object(S.useEffect)(function(){return function(){Fe.a.cancel(q.current)}},[]),[Ue.current,ie]}function X(xe){var Ue=Object(S.useRef)(xe),Qe=Object(S.useRef)(null);function ze(){window.clearTimeout(Qe.current)}function Ae(ee){Ue.current=ee,ze(),Qe.current=window.setTimeout(function(){Ue.current=null,Qe.current=null},100)}function q(){return Ue.current}return Object(S.useEffect)(function(){return ze},[]),[Ae,q]}function L(xe,Ue,Qe){var ze=Object(S.useMemo)(function(){for(var Ae=[],q=[],ee=0,ie=0,le=0;le<Ue;le+=1)if(Qe==="rtl"){q[le]=ie,ie+=xe[le]||0;var te=Ue-le-1;Ae[te]=ee,ee+=xe[te]||0}else{Ae[le]=ee,ee+=xe[le]||0;var ae=Ue-le-1;q[ae]=ie,ie+=xe[ae]||0}return{left:Ae,right:q}},[xe,Ue,Qe]);return ze}var N=L;function J(xe){var Ue=xe.className,Qe=xe.children;return S.createElement("div",{className:Ue},Qe)}var ne=J,k=Q("n6Qo");function Z(xe){var Ue,Qe=xe.prefixCls,ze=xe.record,Ae=xe.onExpand,q=xe.expanded,ee=xe.expandable,ie="".concat(Qe,"-row-expand-icon");if(!ee)return S.createElement("span",{className:M()(ie,"".concat(Qe,"-row-spaced"))});var le=function(ae){Ae(ze,ae),ae.stopPropagation()};return S.createElement("span",{className:M()(ie,(Ue={},Object(de.a)(Ue,"".concat(Qe,"-row-expanded"),q),Object(de.a)(Ue,"".concat(Qe,"-row-collapsed"),!q),Ue)),onClick:le})}function H(xe,Ue,Qe){var ze=[];function Ae(q){(q||[]).forEach(function(ee,ie){ze.push(Ue(ee,ie)),Ae(ee[Qe])})}return Ae(xe),ze}var W=Q("zT1h"),z=Q("y0+3"),se=function(Ue,Qe){var ze,Ae,q=Ue.scrollBodyRef,ee=Ue.onScroll,ie=Ue.offsetScroll,le=S.useContext(r.a),te=le.prefixCls,ae=((ze=q.current)===null||ze===void 0?void 0:ze.scrollWidth)||0,he=((Ae=q.current)===null||Ae===void 0?void 0:Ae.clientWidth)||0,me=ae&&he*(he/ae),Te=S.useRef(),Be=Ce({scrollLeft:0,isHiddenScrollBar:!1}),je=Object(U.a)(Be,2),qe=je[0],at=je[1],et=S.useRef({delta:0,x:0}),_t=S.useState(!1),ut=Object(U.a)(_t,2),$e=ut[0],kt=ut[1],Ut=function(){kt(!1)},yt=function(wt){wt.persist(),et.current.delta=wt.pageX-qe.scrollLeft,et.current.x=0,kt(!0),wt.preventDefault()},Wt=function(wt){var sr,vt=wt||((sr=window)===null||sr===void 0?void 0:sr.event),At=vt.buttons;if(!$e||At===0){$e&&kt(!1);return}var Et=et.current.x+wt.pageX-et.current.x-et.current.delta;Et<=0&&(Et=0),Et+me>=he&&(Et=he-me),ee({scrollLeft:Et/he*(ae+2)}),et.current.x=wt.pageX},St=function(){var wt=Object(z.b)(q.current).top,sr=wt+q.current.offsetHeight,vt=document.documentElement.scrollTop+window.innerHeight;sr-Object(c.a)()<=vt||wt>=vt-ie?at(function(At){return Object(K.a)(Object(K.a)({},At),{},{isHiddenScrollBar:!0})}):at(function(At){return Object(K.a)(Object(K.a)({},At),{},{isHiddenScrollBar:!1})})},$t=function(wt){at(function(sr){return Object(K.a)(Object(K.a)({},sr),{},{scrollLeft:wt/ae*he||0})})};return S.useImperativeHandle(Qe,function(){return{setScrollLeft:$t}}),S.useEffect(function(){var Ft=Object(W.a)(document.body,"mouseup",Ut,!1),wt=Object(W.a)(document.body,"mousemove",Wt,!1);return St(),function(){Ft.remove(),wt.remove()}},[me,$e]),S.useEffect(function(){var Ft=Object(W.a)(window,"scroll",St,!1),wt=Object(W.a)(window,"resize",St,!1);return function(){Ft.remove(),wt.remove()}},[]),S.useEffect(function(){qe.isHiddenScrollBar||at(function(Ft){var wt,sr;return Object(K.a)(Object(K.a)({},Ft),{},{scrollLeft:q.current.scrollLeft/((wt=q.current)===null||wt===void 0?void 0:wt.scrollWidth)*((sr=q.current)===null||sr===void 0?void 0:sr.clientWidth)})})},[qe.isHiddenScrollBar]),ae<=he||!me||qe.isHiddenScrollBar?null:S.createElement("div",{style:{height:Object(c.a)(),width:he,bottom:ie},className:"".concat(te,"-sticky-scroll")},S.createElement("div",{onMouseDown:yt,ref:Te,className:M()("".concat(te,"-sticky-scroll-bar"),Object(de.a)({},"".concat(te,"-sticky-scroll-bar-active"),$e)),style:{width:"".concat(me,"px"),transform:"translate3d(".concat(qe.scrollLeft,"px, 0, 0)")}}))},pe=S.forwardRef(se);function ge(xe,Ue){return S.useMemo(function(){var Qe=!!xe;return{isSticky:Qe,stickyClassName:Qe?"".concat(Ue,"-sticky-header"):"",offsetHeader:Object(G.a)(xe)==="object"&&xe.offsetHeader||0,offsetScroll:Object(G.a)(xe)==="object"&&xe.offsetScroll||0}},[xe,Ue])}var Ne=[],Me={},ke="rc-table-internal-hook",He=S.memo(function(xe){var Ue=xe.children;return Ue},function(xe,Ue){return I()(xe.props,Ue.props)?xe.pingLeft!==Ue.pingLeft||xe.pingRight!==Ue.pingRight:!1});function Je(xe){var Ue,Qe=xe.prefixCls,ze=xe.className,Ae=xe.rowClassName,q=xe.style,ee=xe.data,ie=xe.rowKey,le=xe.scroll,te=xe.tableLayout,ae=xe.direction,he=xe.title,me=xe.footer,Te=xe.summary,Be=xe.id,je=xe.showHeader,qe=xe.components,at=xe.emptyText,et=xe.onRow,_t=xe.onHeaderRow,ut=xe.internalHooks,$e=xe.transformColumns,kt=xe.internalRefs,Ut=xe.sticky,yt=ee||Ne,Wt=!!yt.length,St=S.useState(0),$t=Object(U.a)(St,2),Ft=$t[0],wt=$t[1];S.useEffect(function(){wt(Object(c.a)())});var sr=S.useMemo(function(){return Object(b.c)(qe,{})},[qe]),vt=S.useCallback(function(Mt,jt){return Object(b.b)(sr,Mt)||jt},[sr]),At=S.useMemo(function(){return typeof ie=="function"?ie:function(Mt){var jt=Mt&&Mt[ie];return jt}},[ie]),Et=Object(n.c)(xe),hr=Et.expandIcon,Ir=Et.expandedRowKeys,zr=Et.defaultExpandedRowKeys,nr=Et.defaultExpandAllRows,Qt=Et.expandedRowRender,It=Et.onExpand,Ct=Et.onExpandedRowsChange,yr=Et.expandRowByClick,Nt=Et.rowExpandable,Rr=Et.expandIconColumnIndex,er=Et.expandedRowClassName,ue=Et.childrenColumnName,ce=Et.indentSize,ye=hr||Z,Ie=ue||"children",We=S.useMemo(function(){return Qt?"row":xe.expandable&&ut===ke&&xe.expandable.__PARENT_RENDER_ICON__||yt.some(function(Mt){return Mt&&Object(G.a)(Mt)==="object"&&Mt[Ie]})?"nest":!1},[!!Qt,yt]),Xe=S.useState(function(){return zr||(nr?H(yt,At,Ie):[])}),Ze=Object(U.a)(Xe,2),tt=Ze[0],Ye=Ze[1],nt=S.useMemo(function(){return new Set(Ir||tt||[])},[Ir,tt]),it=S.useCallback(function(Mt){var jt=At(Mt,yt.indexOf(Mt)),Sr,Zr=nt.has(jt);Zr?(nt.delete(jt),Sr=Object(O.a)(nt)):Sr=[].concat(Object(O.a)(nt),[jt]),Ye(Sr),It&&It(!Zr,Mt),Ct&&Ct(Sr)},[At,nt,yt,It,Ct]),gt=S.useState(0),Ot=Object(U.a)(gt,2),Rt=Ot[0],Ke=Ot[1],Gt=Object(Re.b)(Object(K.a)(Object(K.a)(Object(K.a)({},xe),Et),{},{expandable:!!Qt,expandedKeys:nt,getRowKey:At,onTriggerExpand:it,expandIcon:ye,expandIconColumnIndex:Rr,direction:ae}),ut===ke?$e:null),Jt=Object(U.a)(Gt,2),dr=Jt[0],Bt=Jt[1],Pt=S.useMemo(function(){return{columns:dr,flattenColumns:Bt}},[dr,Bt]),Lt=S.useRef(),or=S.useRef(),Zt=S.useRef(),ir=S.useState(!1),Tt=Object(U.a)(ir,2),Er=Tt[0],Vt=Tt[1],Or=S.useState(!1),mr=Object(U.a)(Or,2),Lr=mr[0],Br=mr[1],Cr=Ce(new Map),br=Object(U.a)(Cr,2),_r=br[0],Nr=br[1],Kr=Object(b.a)(Bt),kr=Kr.map(function(Mt){return _r.get(Mt)}),Ur=S.useMemo(function(){return kr},[kr.join("_")]),Ar=N(Ur,Bt.length,ae),gr=le&&Object(b.d)(le.y),fr=le&&Object(b.d)(le.x),vr=fr&&Bt.some(function(Mt){var jt=Mt.fixed;return jt}),cn=S.useRef(),tn=ge(Ut,Qe),Xr=tn.isSticky,Vn=tn.offsetHeader,tr=tn.offsetScroll,Ht=tn.stickyClassName,xt,qt,bt;gr&&(qt={overflowY:"scroll",maxHeight:le.y}),fr&&(xt={overflowX:"auto"},gr||(qt={overflowY:"hidden"}),bt={width:le.x===!0?"auto":le.x,minWidth:"100%"});var zt=S.useCallback(function(Mt,jt){Nr(function(Sr){var Zr=new Map(Sr);return Zr.set(Mt,jt),Zr})},[]),Kt=X(null),rn=Object(U.a)(Kt,2),nn=rn[0],gn=rn[1];function jr(Mt,jt){if(!jt)return;typeof jt=="function"?jt(Mt):jt.scrollLeft!==Mt&&(jt.scrollLeft=Mt)}var Yr=function(jt){var Sr=jt.currentTarget,Zr=jt.scrollLeft,Un=typeof Zr=="number"?Zr:Sr.scrollLeft,wn=Sr||Me;if(!gn()||gn()===wn){var li;nn(wn),jr(Un,or.current),jr(Un,Zt.current),jr(Un,(li=cn.current)===null||li===void 0?void 0:li.setScrollLeft)}if(Sr){var Vi=Sr.scrollWidth,zi=Sr.clientWidth;Vt(Un>0),Br(Un<Vi-zi)}},an=function(){Zt.current&&Yr({currentTarget:Zt.current})},Wr=function(jt){var Sr=jt.width;an(),Ke(Lt.current?Lt.current.offsetWidth:Sr)};S.useEffect(function(){return an},[]),S.useEffect(function(){fr&&an()},[fr]),S.useEffect(function(){ut===ke&&kt&&(kt.body.current=Zt.current)});var Sn=vt(["table"],"table"),xr=S.useMemo(function(){return te||(vr?le.x==="max-content"?"auto":"fixed":gr||Bt.some(function(Mt){var jt=Mt.ellipsis;return jt})?"fixed":"auto")},[gr,vr,Bt,te]),ln,Jr={colWidths:Ur,columCount:Bt.length,stickyOffsets:Ar,onHeaderRow:_t,fixHeader:gr},En=S.useMemo(function(){return Wt?null:typeof at=="function"?at():at},[Wt,at]),bn=S.createElement(Se,{data:yt,measureColumnWidth:gr||fr||Xr,expandedKeys:nt,rowExpandable:Nt,getRowKey:At,onRow:et,emptyNode:En,childrenColumnName:Ie}),$r=S.createElement(u,{colWidths:Bt.map(function(Mt){var jt=Mt.width;return jt}),columns:Bt}),qr=Te&&S.createElement(k.b,null,Te(yt)),sn=vt(["body"]);if(gr||Xr){var un;typeof sn=="function"?(un=sn(yt,{scrollbarSize:Ft,ref:Zt,onScroll:Yr}),Jr.colWidths=Bt.map(function(Mt,jt){var Sr=Mt.width,Zr=jt===dr.length-1?Sr-Ft:Sr;return typeof Zr=="number"&&!Number.isNaN(Zr)?Zr:(Object(p.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):un=S.createElement("div",{style:Object(K.a)(Object(K.a)({},xt),qt),onScroll:Yr,ref:Zt,className:M()("".concat(Qe,"-body"))},S.createElement(Sn,{style:Object(K.a)(Object(K.a)({},bt),{},{tableLayout:xr})},$r,bn,qr),Xr&&S.createElement(pe,{ref:cn,offsetScroll:tr,scrollBodyRef:Zt,onScroll:Yr})),ln=S.createElement(S.Fragment,null,je!==!1&&S.createElement(h,Object.assign({noData:!yt.length},Jr,Pt,{direction:ae,offsetHeader:Vn,stickyClassName:Ht,ref:or,onScroll:Yr})),un)}else ln=S.createElement("div",{style:Object(K.a)(Object(K.a)({},xt),qt),className:M()("".concat(Qe,"-content")),onScroll:Yr,ref:Zt},S.createElement(Sn,{style:Object(K.a)(Object(K.a)({},bt),{},{tableLayout:xr})},$r,je!==!1&&S.createElement(d,Object.assign({},Jr,Pt)),bn,qr));var vn=Object(n.b)(xe),Pr=S.createElement("div",Object.assign({className:M()(Qe,ze,(Ue={},Object(de.a)(Ue,"".concat(Qe,"-rtl"),ae==="rtl"),Object(de.a)(Ue,"".concat(Qe,"-ping-left"),Er),Object(de.a)(Ue,"".concat(Qe,"-ping-right"),Lr),Object(de.a)(Ue,"".concat(Qe,"-layout-fixed"),te==="fixed"),Object(de.a)(Ue,"".concat(Qe,"-fixed-header"),gr),Object(de.a)(Ue,"".concat(Qe,"-fixed-column"),vr),Object(de.a)(Ue,"".concat(Qe,"-scroll-horizontal"),fr),Object(de.a)(Ue,"".concat(Qe,"-has-fix-left"),Bt[0]&&Bt[0].fixed),Object(de.a)(Ue,"".concat(Qe,"-has-fix-right"),Bt[Bt.length-1]&&Bt[Bt.length-1].fixed==="right"),Ue)),style:q,id:Be,ref:Lt},vn),S.createElement(He,{pingLeft:Er,pingRight:Lr,props:Object(K.a)(Object(K.a)({},xe),{},{stickyOffsets:Ar,mergedExpandedKeys:nt})},he&&S.createElement(ne,{className:"".concat(Qe,"-title")},he(yt)),S.createElement("div",{className:"".concat(Qe,"-container")},ln),me&&S.createElement(ne,{className:"".concat(Qe,"-footer")},me(yt))));fr&&(Pr=S.createElement(g.a,{onResize:Wr},Pr));var on=S.useMemo(function(){return{prefixCls:Qe,getComponent:vt,scrollbarSize:Ft,direction:ae,fixedInfoList:Bt.map(function(Mt,jt){return t(jt,jt,Bt,Ar,ae)}),isSticky:Xr}},[Qe,vt,Ft,ae,Bt,Ar,ae,Xr]),_n=S.useMemo(function(){return Object(K.a)(Object(K.a)({},Pt),{},{tableLayout:xr,rowClassName:Ae,expandedRowClassName:er,componentWidth:Rt,fixHeader:gr,fixColumn:vr,horizonScroll:fr,expandIcon:ye,expandableType:We,expandRowByClick:yr,expandedRowRender:Qt,onTriggerExpand:it,expandIconColumnIndex:Rr,indentSize:ce})},[Pt,xr,Ae,er,Rt,gr,vr,fr,ye,We,yr,Qt,it,Rr,ce]),In=S.useMemo(function(){return{onColumnResize:zt}},[zt]);return S.createElement(r.a.Provider,{value:on},S.createElement(F.Provider,{value:_n},S.createElement(oe.Provider,{value:In},Pr)))}Je.Column=i.a,Je.ColumnGroup=s.a,Je.Summary=k.a,Je.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var rt=we.b=Je},wOnQ:function(ot,we,Q){/*!
|
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
* Released under MIT License
|
|
*/(function(de,K){ot.exports=K()})(this,function(){"use strict";/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */var de=function(w,f){return de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,x){B.__proto__=x}||function(B,x){for(var V in x)Object.prototype.hasOwnProperty.call(x,V)&&(B[V]=x[V])},de(w,f)};function K(w,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");de(w,f);function B(){this.constructor=w}w.prototype=f===null?Object.create(f):(B.prototype=f.prototype,new B)}var O=function(){return O=Object.assign||function(f){for(var B,x=1,V=arguments.length;x<V;x++){B=arguments[x];for(var re in B)Object.prototype.hasOwnProperty.call(B,re)&&(f[re]=B[re])}return f},O.apply(this,arguments)};function G(w,f,B,x){function V(re){return re instanceof B?re:new B(function(fe){fe(re)})}return new(B||(B=Promise))(function(re,fe){function _e(Pe){try{Oe(x.next(Pe))}catch(Ge){fe(Ge)}}function be(Pe){try{Oe(x.throw(Pe))}catch(Ge){fe(Ge)}}function Oe(Pe){Pe.done?re(Pe.value):V(Pe.value).then(_e,be)}Oe((x=x.apply(w,f||[])).next())})}function U(w,f){var B={label:0,sent:function(){if(re[0]&1)throw re[1];return re[1]},trys:[],ops:[]},x,V,re,fe;return fe={next:_e(0),throw:_e(1),return:_e(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function _e(Oe){return function(Pe){return be([Oe,Pe])}}function be(Oe){if(x)throw new TypeError("Generator is already executing.");for(;B;)try{if(x=1,V&&(re=Oe[0]&2?V.return:Oe[0]?V.throw||((re=V.return)&&re.call(V),0):V.next)&&!(re=re.call(V,Oe[1])).done)return re;(V=0,re)&&(Oe=[Oe[0]&2,re.value]);switch(Oe[0]){case 0:case 1:re=Oe;break;case 4:return B.label++,{value:Oe[1],done:!1};case 5:B.label++,V=Oe[1],Oe=[0];continue;case 7:Oe=B.ops.pop(),B.trys.pop();continue;default:if(!(re=B.trys,re=re.length>0&&re[re.length-1])&&(Oe[0]===6||Oe[0]===2)){B=0;continue}if(Oe[0]===3&&(!re||Oe[1]>re[0]&&Oe[1]<re[3])){B.label=Oe[1];break}if(Oe[0]===6&&B.label<re[1]){B.label=re[1],re=Oe;break}if(re&&B.label<re[2]){B.label=re[2],B.ops.push(Oe);break}re[2]&&B.ops.pop(),B.trys.pop();continue}Oe=f.call(w,B)}catch(Pe){Oe=[6,Pe],V=0}finally{x=re=0}if(Oe[0]&5)throw Oe[1];return{value:Oe[0]?Oe[1]:void 0,done:!0}}}function S(w,f,B){if(B||arguments.length===2)for(var x=0,V=f.length,re;x<V;x++)(re||!(x in f))&&(re||(re=Array.prototype.slice.call(f,0,x)),re[x]=f[x]);return w.concat(re||f)}for(var Y=function(){function w(f,B,x,V){this.left=f,this.top=B,this.width=x,this.height=V}return w.prototype.add=function(f,B,x,V){return new w(this.left+f,this.top+B,this.width+x,this.height+V)},w.fromClientRect=function(f,B){return new w(B.left+f.windowBounds.left,B.top+f.windowBounds.top,B.width,B.height)},w.fromDOMRectList=function(f,B){var x=Array.from(B).find(function(V){return V.width!==0});return x?new w(x.left+f.windowBounds.left,x.top+f.windowBounds.top,x.width,x.height):w.EMPTY},w.EMPTY=new w(0,0,0,0),w}(),M=function(w,f){return Y.fromClientRect(w,f.getBoundingClientRect())},e=function(w){var f=w.body,B=w.documentElement;if(!f||!B)throw new Error("Unable to get document size");var x=Math.max(Math.max(f.scrollWidth,B.scrollWidth),Math.max(f.offsetWidth,B.offsetWidth),Math.max(f.clientWidth,B.clientWidth)),V=Math.max(Math.max(f.scrollHeight,B.scrollHeight),Math.max(f.offsetHeight,B.offsetHeight),Math.max(f.clientHeight,B.clientHeight));return new Y(0,0,x,V)},I=function(w){for(var f=[],B=0,x=w.length;B<x;){var V=w.charCodeAt(B++);if(V>=55296&&V<=56319&&B<x){var re=w.charCodeAt(B++);(re&64512)===56320?f.push(((V&1023)<<10)+(re&1023)+65536):(f.push(V),B--)}else f.push(V)}return f},p=function(){for(var w=[],f=0;f<arguments.length;f++)w[f]=arguments[f];if(String.fromCodePoint)return String.fromCodePoint.apply(String,w);var B=w.length;if(!B)return"";for(var x=[],V=-1,re="";++V<B;){var fe=w[V];fe<=65535?x.push(fe):(fe-=65536,x.push((fe>>10)+55296,fe%1024+56320)),(V+1===B||x.length>16384)&&(re+=String.fromCharCode.apply(String,x),x.length=0)}return re},g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),s=0;s<g.length;s++)c[g.charCodeAt(s)]=s;for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),o=0;o<i.length;o++)A[i.charCodeAt(o)]=o;for(var a=function(w){var f=w.length*.75,B=w.length,x,V=0,re,fe,_e,be;w[w.length-1]==="="&&(f--,w[w.length-2]==="="&&f--);var Oe=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(f):new Array(f),Pe=Array.isArray(Oe)?Oe:new Uint8Array(Oe);for(x=0;x<B;x+=4)re=A[w.charCodeAt(x)],fe=A[w.charCodeAt(x+1)],_e=A[w.charCodeAt(x+2)],be=A[w.charCodeAt(x+3)],Pe[V++]=re<<2|fe>>4,Pe[V++]=(fe&15)<<4|_e>>2,Pe[V++]=(_e&3)<<6|be&63;return Oe},r=function(w){for(var f=w.length,B=[],x=0;x<f;x+=2)B.push(w[x+1]<<8|w[x]);return B},t=function(w){for(var f=w.length,B=[],x=0;x<f;x+=4)B.push(w[x+3]<<24|w[x+2]<<16|w[x+1]<<8|w[x]);return B},b=5,y=6+5,E=2,T=y-b,v=65536>>b,d=1<<b,n=d-1,l=1024>>b,u=v+l,_=u,m=2048>>6,h=_+m,R=65536>>y,F=1<<T,C=F-1,P=function(w,f,B){return w.slice?w.slice(f,B):new Uint16Array(Array.prototype.slice.call(w,f,B))},j=function(w,f,B){return w.slice?w.slice(f,B):new Uint32Array(Array.prototype.slice.call(w,f,B))},D=function(w,f){var B=a(w),x=Array.isArray(B)?t(B):new Uint32Array(B),V=Array.isArray(B)?r(B):new Uint16Array(B),re=24,fe=P(V,re/2,x[4]/2),_e=x[5]===2?P(V,(re+x[4])/2):j(x,Math.ceil((re+x[4])/4));return new $(x[0],x[1],x[2],x[3],fe,_e)},$=function(){function w(f,B,x,V,re,fe){this.initialValue=f,this.errorValue=B,this.highStart=x,this.highValueIndex=V,this.index=re,this.data=fe}return w.prototype.get=function(f){var B;if(f>=0){if(f<55296||f>56319&&f<=65535)return B=this.index[f>>b],B=(B<<E)+(f&n),this.data[B];if(f<=65535)return B=this.index[v+(f-55296>>b)],B=(B<<E)+(f&n),this.data[B];if(f<this.highStart)return B=h-R+(f>>y),B=this.index[B],B+=f>>b&C,B=this.index[B],B=(B<<E)+(f&n),this.data[B];if(f<=1114111)return this.data[this.highValueIndex]}return this.errorValue},w}(),oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ee=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ve=0;ve<oe.length;ve++)Ee[oe.charCodeAt(ve)]=ve;var Le="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Se=50,Re=1,De=2,Fe=3,Ce=4,X=5,L=7,N=8,J=9,ne=10,k=11,Z=12,H=13,W=14,z=15,se=16,pe=17,ge=18,Ne=19,Me=20,ke=21,He=22,Je=23,rt=24,xe=25,Ue=26,Qe=27,ze=28,Ae=29,q=30,ee=31,ie=32,le=33,te=34,ae=35,he=36,me=37,Te=38,Be=39,je=40,qe=41,at=42,et=43,_t=[9001,65288],ut="!",$e="\xD7",kt="\xF7",Ut=D(Le),yt=[q,he],Wt=[Re,De,Fe,X],St=[ne,N],$t=[Qe,Ue],Ft=Wt.concat(St),wt=[Te,Be,je,te,ae],sr=[z,H],vt=function(w,f){f===void 0&&(f="strict");var B=[],x=[],V=[];return w.forEach(function(re,fe){var _e=Ut.get(re);if(_e>Se?(V.push(!0),_e-=Se):V.push(!1),["normal","auto","loose"].indexOf(f)!==-1&&[8208,8211,12316,12448].indexOf(re)!==-1)return x.push(fe),B.push(se);if(_e===Ce||_e===k){if(fe===0)return x.push(fe),B.push(q);var be=B[fe-1];return Ft.indexOf(be)===-1?(x.push(x[fe-1]),B.push(be)):(x.push(fe),B.push(q))}if(x.push(fe),_e===ee)return B.push(f==="strict"?ke:me);if(_e===at)return B.push(q);if(_e===Ae)return B.push(q);if(_e===et)return re>=131072&&re<=196605||re>=196608&&re<=262141?B.push(me):B.push(q);B.push(_e)}),[x,B,V]},At=function(w,f,B,x){var V=x[B];if(Array.isArray(w)?w.indexOf(V)!==-1:w===V)for(var re=B;re<=x.length;){re++;var fe=x[re];if(fe===f)return!0;if(fe!==ne)break}if(V===ne)for(var re=B;re>0;){re--;var _e=x[re];if(Array.isArray(w)?w.indexOf(_e)!==-1:w===_e)for(var be=B;be<=x.length;){be++;var fe=x[be];if(fe===f)return!0;if(fe!==ne)break}if(_e!==ne)break}return!1},Et=function(w,f){for(var B=w;B>=0;){var x=f[B];if(x===ne)B--;else return x}return 0},hr=function(w,f,B,x,V){if(B[x]===0)return $e;var re=x-1;if(Array.isArray(V)&&V[re]===!0)return $e;var fe=re-1,_e=re+1,be=f[re],Oe=fe>=0?f[fe]:0,Pe=f[_e];if(be===De&&Pe===Fe)return $e;if(Wt.indexOf(be)!==-1)return ut;if(Wt.indexOf(Pe)!==-1)return $e;if(St.indexOf(Pe)!==-1)return $e;if(Et(re,f)===N)return kt;if(Ut.get(w[re])===k)return $e;if((be===ie||be===le)&&Ut.get(w[_e])===k)return $e;if(be===L||Pe===L)return $e;if(be===J)return $e;if([ne,H,z].indexOf(be)===-1&&Pe===J)return $e;if([pe,ge,Ne,rt,ze].indexOf(Pe)!==-1)return $e;if(Et(re,f)===He)return $e;if(At(Je,He,re,f))return $e;if(At([pe,ge],ke,re,f))return $e;if(At(Z,Z,re,f))return $e;if(be===ne)return kt;if(be===Je||Pe===Je)return $e;if(Pe===se||be===se)return kt;if([H,z,ke].indexOf(Pe)!==-1||be===W)return $e;if(Oe===he&&sr.indexOf(be)!==-1)return $e;if(be===ze&&Pe===he)return $e;if(Pe===Me)return $e;if(yt.indexOf(Pe)!==-1&&be===xe||yt.indexOf(be)!==-1&&Pe===xe)return $e;if(be===Qe&&[me,ie,le].indexOf(Pe)!==-1||[me,ie,le].indexOf(be)!==-1&&Pe===Ue)return $e;if(yt.indexOf(be)!==-1&&$t.indexOf(Pe)!==-1||$t.indexOf(be)!==-1&&yt.indexOf(Pe)!==-1)return $e;if([Qe,Ue].indexOf(be)!==-1&&(Pe===xe||[He,z].indexOf(Pe)!==-1&&f[_e+1]===xe)||[He,z].indexOf(be)!==-1&&Pe===xe||be===xe&&[xe,ze,rt].indexOf(Pe)!==-1)return $e;if([xe,ze,rt,pe,ge].indexOf(Pe)!==-1)for(var Ge=re;Ge>=0;){var Ve=f[Ge];if(Ve===xe)return $e;if([ze,rt].indexOf(Ve)!==-1)Ge--;else break}if([Qe,Ue].indexOf(Pe)!==-1)for(var Ge=[pe,ge].indexOf(be)!==-1?fe:re;Ge>=0;){var Ve=f[Ge];if(Ve===xe)return $e;if([ze,rt].indexOf(Ve)!==-1)Ge--;else break}if(Te===be&&[Te,Be,te,ae].indexOf(Pe)!==-1||[Be,te].indexOf(be)!==-1&&[Be,je].indexOf(Pe)!==-1||[je,ae].indexOf(be)!==-1&&Pe===je)return $e;if(wt.indexOf(be)!==-1&&[Me,Ue].indexOf(Pe)!==-1||wt.indexOf(Pe)!==-1&&be===Qe)return $e;if(yt.indexOf(be)!==-1&&yt.indexOf(Pe)!==-1)return $e;if(be===rt&&yt.indexOf(Pe)!==-1)return $e;if(yt.concat(xe).indexOf(be)!==-1&&Pe===He&&_t.indexOf(w[_e])===-1||yt.concat(xe).indexOf(Pe)!==-1&&be===ge)return $e;if(be===qe&&Pe===qe){for(var dt=B[re],st=1;dt>0&&(dt--,f[dt]===qe);)st++;if(st%2!==0)return $e}return be===ie&&Pe===le?$e:kt},Ir=function(w,f){f||(f={lineBreak:"normal",wordBreak:"normal"});var B=vt(w,f.lineBreak),x=B[0],V=B[1],re=B[2];(f.wordBreak==="break-all"||f.wordBreak==="break-word")&&(V=V.map(function(_e){return[xe,q,at].indexOf(_e)!==-1?me:_e}));var fe=f.wordBreak==="keep-all"?re.map(function(_e,be){return _e&&w[be]>=19968&&w[be]<=40959}):void 0;return[x,V,fe]},zr=function(){function w(f,B,x,V){this.codePoints=f,this.required=B===ut,this.start=x,this.end=V}return w.prototype.slice=function(){return p.apply(void 0,this.codePoints.slice(this.start,this.end))},w}(),nr=function(w,f){var B=I(w),x=Ir(B,f),V=x[0],re=x[1],fe=x[2],_e=B.length,be=0,Oe=0;return{next:function(){if(Oe>=_e)return{done:!0,value:null};for(var Pe=$e;Oe<_e&&(Pe=hr(B,re,V,++Oe,fe))===$e;);if(Pe!==$e||Oe===_e){var Ge=new zr(B,Pe,be,Oe);return be=Oe,{value:Ge,done:!1}}return{done:!0,value:null}}}},Qt=1<<0,It=1<<1,Ct=1<<2,yr=1<<3,Nt=10,Rr=47,er=92,ue=9,ce=32,ye=34,Ie=61,We=35,Xe=36,Ze=37,tt=39,Ye=40,nt=41,it=95,gt=45,Ot=33,Rt=60,Ke=62,Gt=64,Jt=91,dr=93,Bt=61,Pt=123,Lt=63,or=125,Zt=124,ir=126,Tt=128,Er=65533,Vt=42,Or=43,mr=44,Lr=58,Br=59,Cr=46,br=0,_r=8,Nr=11,Kr=14,kr=31,Ur=127,Ar=-1,gr=48,fr=97,vr=101,cn=102,tn=117,Xr=122,Vn=65,tr=69,Ht=70,xt=85,qt=90,bt=function(w){return w>=gr&&w<=57},zt=function(w){return w>=55296&&w<=57343},Kt=function(w){return bt(w)||w>=Vn&&w<=Ht||w>=fr&&w<=cn},rn=function(w){return w>=fr&&w<=Xr},nn=function(w){return w>=Vn&&w<=qt},gn=function(w){return rn(w)||nn(w)},jr=function(w){return w>=Tt},Yr=function(w){return w===Nt||w===ue||w===ce},an=function(w){return gn(w)||jr(w)||w===it},Wr=function(w){return an(w)||bt(w)||w===gt},Sn=function(w){return w>=br&&w<=_r||w===Nr||w>=Kr&&w<=kr||w===Ur},xr=function(w,f){return w!==er?!1:f!==Nt},ln=function(w,f,B){return w===gt?an(f)||xr(f,B):an(w)?!0:!!(w===er&&xr(w,f))},Jr=function(w,f,B){return w===Or||w===gt?bt(f)?!0:f===Cr&&bt(B):w===Cr?bt(f):bt(w)},En=function(w){var f=0,B=1;(w[f]===Or||w[f]===gt)&&(w[f]===gt&&(B=-1),f++);for(var x=[];bt(w[f]);)x.push(w[f++]);var V=x.length?parseInt(p.apply(void 0,x),10):0;w[f]===Cr&&f++;for(var re=[];bt(w[f]);)re.push(w[f++]);var fe=re.length,_e=fe?parseInt(p.apply(void 0,re),10):0;(w[f]===tr||w[f]===vr)&&f++;var be=1;(w[f]===Or||w[f]===gt)&&(w[f]===gt&&(be=-1),f++);for(var Oe=[];bt(w[f]);)Oe.push(w[f++]);var Pe=Oe.length?parseInt(p.apply(void 0,Oe),10):0;return B*(V+_e*Math.pow(10,-fe))*Math.pow(10,be*Pe)},bn={type:2},$r={type:3},qr={type:4},sn={type:13},un={type:8},vn={type:21},Pr={type:9},on={type:10},_n={type:11},In={type:12},Mt={type:14},jt={type:23},Sr={type:1},Zr={type:25},Un={type:24},wn={type:26},li={type:27},Vi={type:28},zi={type:29},$s={type:31},Xi={type:32},Ta=function(){function w(){this._value=[]}return w.prototype.write=function(f){this._value=this._value.concat(I(f))},w.prototype.read=function(){for(var f=[],B=this.consumeToken();B!==Xi;)f.push(B),B=this.consumeToken();return f},w.prototype.consumeToken=function(){var f=this.consumeCodePoint();switch(f){case ye:return this.consumeStringToken(ye);case We:var B=this.peekCodePoint(0),x=this.peekCodePoint(1),V=this.peekCodePoint(2);if(Wr(B)||xr(x,V)){var re=ln(B,x,V)?It:Qt,fe=this.consumeName();return{type:5,value:fe,flags:re}}break;case Xe:if(this.peekCodePoint(0)===Ie)return this.consumeCodePoint(),sn;break;case tt:return this.consumeStringToken(tt);case Ye:return bn;case nt:return $r;case Vt:if(this.peekCodePoint(0)===Ie)return this.consumeCodePoint(),Mt;break;case Or:if(Jr(f,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(f),this.consumeNumericToken();break;case mr:return qr;case gt:var _e=f,be=this.peekCodePoint(0),Oe=this.peekCodePoint(1);if(Jr(_e,be,Oe))return this.reconsumeCodePoint(f),this.consumeNumericToken();if(ln(_e,be,Oe))return this.reconsumeCodePoint(f),this.consumeIdentLikeToken();if(be===gt&&Oe===Ke)return this.consumeCodePoint(),this.consumeCodePoint(),Un;break;case Cr:if(Jr(f,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(f),this.consumeNumericToken();break;case Rr:if(this.peekCodePoint(0)===Vt)for(this.consumeCodePoint();;){var Pe=this.consumeCodePoint();if(Pe===Vt&&(Pe=this.consumeCodePoint(),Pe===Rr))return this.consumeToken();if(Pe===Ar)return this.consumeToken()}break;case Lr:return wn;case Br:return li;case Rt:if(this.peekCodePoint(0)===Ot&&this.peekCodePoint(1)===gt&&this.peekCodePoint(2)===gt)return this.consumeCodePoint(),this.consumeCodePoint(),Zr;break;case Gt:var Ge=this.peekCodePoint(0),Ve=this.peekCodePoint(1),dt=this.peekCodePoint(2);if(ln(Ge,Ve,dt)){var fe=this.consumeName();return{type:7,value:fe}}break;case Jt:return Vi;case er:if(xr(f,this.peekCodePoint(0)))return this.reconsumeCodePoint(f),this.consumeIdentLikeToken();break;case dr:return zi;case Bt:if(this.peekCodePoint(0)===Ie)return this.consumeCodePoint(),un;break;case Pt:return _n;case or:return In;case tn:case xt:var st=this.peekCodePoint(0),lt=this.peekCodePoint(1);return st===Or&&(Kt(lt)||lt===Lt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(f),this.consumeIdentLikeToken();case Zt:if(this.peekCodePoint(0)===Ie)return this.consumeCodePoint(),Pr;if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),vn;break;case ir:if(this.peekCodePoint(0)===Ie)return this.consumeCodePoint(),on;break;case Ar:return Xi}return Yr(f)?(this.consumeWhiteSpace(),$s):bt(f)?(this.reconsumeCodePoint(f),this.consumeNumericToken()):an(f)?(this.reconsumeCodePoint(f),this.consumeIdentLikeToken()):{type:6,value:p(f)}},w.prototype.consumeCodePoint=function(){var f=this._value.shift();return typeof f=="undefined"?-1:f},w.prototype.reconsumeCodePoint=function(f){this._value.unshift(f)},w.prototype.peekCodePoint=function(f){return f>=this._value.length?-1:this._value[f]},w.prototype.consumeUnicodeRangeToken=function(){for(var f=[],B=this.consumeCodePoint();Kt(B)&&f.length<6;)f.push(B),B=this.consumeCodePoint();for(var x=!1;B===Lt&&f.length<6;)f.push(B),B=this.consumeCodePoint(),x=!0;if(x){var V=parseInt(p.apply(void 0,f.map(function(be){return be===Lt?gr:be})),16),re=parseInt(p.apply(void 0,f.map(function(be){return be===Lt?Ht:be})),16);return{type:30,start:V,end:re}}var fe=parseInt(p.apply(void 0,f),16);if(this.peekCodePoint(0)===gt&&Kt(this.peekCodePoint(1))){this.consumeCodePoint(),B=this.consumeCodePoint();for(var _e=[];Kt(B)&&_e.length<6;)_e.push(B),B=this.consumeCodePoint();var re=parseInt(p.apply(void 0,_e),16);return{type:30,start:fe,end:re}}else return{type:30,start:fe,end:fe}},w.prototype.consumeIdentLikeToken=function(){var f=this.consumeName();return f.toLowerCase()==="url"&&this.peekCodePoint(0)===Ye?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ye?(this.consumeCodePoint(),{type:19,value:f}):{type:20,value:f}},w.prototype.consumeUrlToken=function(){var f=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ar)return{type:22,value:""};var B=this.peekCodePoint(0);if(B===tt||B===ye){var x=this.consumeStringToken(this.consumeCodePoint());return x.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ar||this.peekCodePoint(0)===nt)?(this.consumeCodePoint(),{type:22,value:x.value}):(this.consumeBadUrlRemnants(),jt)}for(;;){var V=this.consumeCodePoint();if(V===Ar||V===nt)return{type:22,value:p.apply(void 0,f)};if(Yr(V))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ar||this.peekCodePoint(0)===nt?(this.consumeCodePoint(),{type:22,value:p.apply(void 0,f)}):(this.consumeBadUrlRemnants(),jt);if(V===ye||V===tt||V===Ye||Sn(V))return this.consumeBadUrlRemnants(),jt;if(V===er)if(xr(V,this.peekCodePoint(0)))f.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),jt;else f.push(V)}},w.prototype.consumeWhiteSpace=function(){for(;Yr(this.peekCodePoint(0));)this.consumeCodePoint()},w.prototype.consumeBadUrlRemnants=function(){for(;;){var f=this.consumeCodePoint();if(f===nt||f===Ar)return;xr(f,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},w.prototype.consumeStringSlice=function(f){for(var B=5e4,x="";f>0;){var V=Math.min(B,f);x+=p.apply(void 0,this._value.splice(0,V)),f-=V}return this._value.shift(),x},w.prototype.consumeStringToken=function(f){var B="",x=0;do{var V=this._value[x];if(V===Ar||V===void 0||V===f)return B+=this.consumeStringSlice(x),{type:0,value:B};if(V===Nt)return this._value.splice(0,x),Sr;if(V===er){var re=this._value[x+1];re!==Ar&&re!==void 0&&(re===Nt?(B+=this.consumeStringSlice(x),x=-1,this._value.shift()):xr(V,re)&&(B+=this.consumeStringSlice(x),B+=p(this.consumeEscapedCodePoint()),x=-1))}x++}while(!0)},w.prototype.consumeNumber=function(){var f=[],B=Ct,x=this.peekCodePoint(0);for((x===Or||x===gt)&&f.push(this.consumeCodePoint());bt(this.peekCodePoint(0));)f.push(this.consumeCodePoint());x=this.peekCodePoint(0);var V=this.peekCodePoint(1);if(x===Cr&&bt(V))for(f.push(this.consumeCodePoint(),this.consumeCodePoint()),B=yr;bt(this.peekCodePoint(0));)f.push(this.consumeCodePoint());x=this.peekCodePoint(0),V=this.peekCodePoint(1);var re=this.peekCodePoint(2);if((x===tr||x===vr)&&((V===Or||V===gt)&&bt(re)||bt(V)))for(f.push(this.consumeCodePoint(),this.consumeCodePoint()),B=yr;bt(this.peekCodePoint(0));)f.push(this.consumeCodePoint());return[En(f),B]},w.prototype.consumeNumericToken=function(){var f=this.consumeNumber(),B=f[0],x=f[1],V=this.peekCodePoint(0),re=this.peekCodePoint(1),fe=this.peekCodePoint(2);if(ln(V,re,fe)){var _e=this.consumeName();return{type:15,number:B,flags:x,unit:_e}}return V===Ze?(this.consumeCodePoint(),{type:16,number:B,flags:x}):{type:17,number:B,flags:x}},w.prototype.consumeEscapedCodePoint=function(){var f=this.consumeCodePoint();if(Kt(f)){for(var B=p(f);Kt(this.peekCodePoint(0))&&B.length<6;)B+=p(this.consumeCodePoint());Yr(this.peekCodePoint(0))&&this.consumeCodePoint();var x=parseInt(B,16);return x===0||zt(x)||x>1114111?Er:x}return f===Ar?Er:f},w.prototype.consumeName=function(){for(var f="";;){var B=this.consumeCodePoint();if(Wr(B))f+=p(B);else if(xr(B,this.peekCodePoint(0)))f+=p(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(B),f}},w}(),xa=function(){function w(f){this._tokens=f}return w.create=function(f){var B=new Ta;return B.write(f),new w(B.read())},w.parseValue=function(f){return w.create(f).parseComponentValue()},w.parseValues=function(f){return w.create(f).parseComponentValues()},w.prototype.parseComponentValue=function(){for(var f=this.consumeToken();f.type===31;)f=this.consumeToken();if(f.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(f);var B=this.consumeComponentValue();do f=this.consumeToken();while(f.type===31);if(f.type===32)return B;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},w.prototype.parseComponentValues=function(){for(var f=[];;){var B=this.consumeComponentValue();if(B.type===32)return f;f.push(B),f.push()}},w.prototype.consumeComponentValue=function(){var f=this.consumeToken();switch(f.type){case 11:case 28:case 2:return this.consumeSimpleBlock(f.type);case 19:return this.consumeFunction(f)}return f},w.prototype.consumeSimpleBlock=function(f){for(var B={type:f,values:[]},x=this.consumeToken();;){if(x.type===32||qs(x,f))return B;this.reconsumeToken(x),B.values.push(this.consumeComponentValue()),x=this.consumeToken()}},w.prototype.consumeFunction=function(f){for(var B={name:f.value,values:[],type:18};;){var x=this.consumeToken();if(x.type===32||x.type===3)return B;this.reconsumeToken(x),B.values.push(this.consumeComponentValue())}},w.prototype.consumeToken=function(){var f=this._tokens.shift();return typeof f=="undefined"?Xi:f},w.prototype.reconsumeToken=function(f){this._tokens.unshift(f)},w}(),ui=function(w){return w.type===15},qn=function(w){return w.type===17},pr=function(w){return w.type===20},Zs=function(w){return w.type===0},Yi=function(w,f){return pr(w)&&w.value===f},Ba=function(w){return w.type!==31},ei=function(w){return w.type!==31&&w.type!==4},Cn=function(w){var f=[],B=[];return w.forEach(function(x){if(x.type===4){if(B.length===0)throw new Error("Error parsing function args, zero tokens for arg");f.push(B),B=[];return}x.type!==31&&B.push(x)}),B.length&&f.push(B),f},qs=function(w,f){return f===11&&w.type===12||f===28&&w.type===29?!0:f===2&&w.type===3},Fn=function(w){return w.type===17||w.type===15},Fr=function(w){return w.type===16||Fn(w)},Sa=function(w){return w.length>1?[w[0],w[1]]:[w[0]]},Gr={type:17,number:0,flags:Ct},Ji={type:16,number:50,flags:Ct},Nn={type:16,number:100,flags:Ct},hi=function(w,f,B){var x=w[0],V=w[1];return[wr(x,f),wr(typeof V!="undefined"?V:x,B)]},wr=function(w,f){if(w.type===16)return w.number/100*f;if(ui(w))switch(w.unit){case"rem":case"em":return 16*w.number;case"px":default:return w.number}return w.number},Ia="deg",Ra="grad",Oa="rad",La="turn",Ei={name:"angle",parse:function(w,f){if(f.type===15)switch(f.unit){case Ia:return Math.PI*f.number/180;case Ra:return Math.PI/200*f.number;case Oa:return f.number;case La:return Math.PI*2*f.number}throw new Error("Unsupported angle type")}},Da=function(w){return w.type===15&&(w.unit===Ia||w.unit===Ra||w.unit===Oa||w.unit===La)},Ua=function(w){var f=w.filter(pr).map(function(B){return B.value}).join(" ");switch(f){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Gr,Gr];case"to top":case"bottom":return dn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Gr,Nn];case"to right":case"left":return dn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Nn,Nn];case"to bottom":case"top":return dn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Nn,Gr];case"to left":case"right":return dn(270)}return 0},dn=function(w){return Math.PI*w/180},Pn={name:"color",parse:function(w,f){if(f.type===18){var B=eo[f.name];if(typeof B=="undefined")throw new Error('Attempting to parse an unsupported color function "'+f.name+'"');return B(w,f.values)}if(f.type===5){if(f.value.length===3){var x=f.value.substring(0,1),V=f.value.substring(1,2),re=f.value.substring(2,3);return kn(parseInt(x+x,16),parseInt(V+V,16),parseInt(re+re,16),1)}if(f.value.length===4){var x=f.value.substring(0,1),V=f.value.substring(1,2),re=f.value.substring(2,3),fe=f.value.substring(3,4);return kn(parseInt(x+x,16),parseInt(V+V,16),parseInt(re+re,16),parseInt(fe+fe,16)/255)}if(f.value.length===6){var x=f.value.substring(0,2),V=f.value.substring(2,4),re=f.value.substring(4,6);return kn(parseInt(x,16),parseInt(V,16),parseInt(re,16),1)}if(f.value.length===8){var x=f.value.substring(0,2),V=f.value.substring(2,4),re=f.value.substring(4,6),fe=f.value.substring(6,8);return kn(parseInt(x,16),parseInt(V,16),parseInt(re,16),parseInt(fe,16)/255)}}if(f.type===20){var _e=Rn[f.value.toUpperCase()];if(typeof _e!="undefined")return _e}return Rn.TRANSPARENT}},Mn=function(w){return(255&w)===0},Hr=function(w){var f=255&w,B=255&w>>8,x=255&w>>16,V=255&w>>24;return f<255?"rgba("+V+","+x+","+B+","+f/255+")":"rgb("+V+","+x+","+B+")"},kn=function(w,f,B,x){return(w<<24|f<<16|B<<8|Math.round(x*255)<<0)>>>0},Fa=function(w,f){if(w.type===17)return w.number;if(w.type===16){var B=f===3?1:255;return f===3?w.number/100*B:Math.round(w.number/100*B)}return 0},Na=function(w,f){var B=f.filter(ei);if(B.length===3){var x=B.map(Fa),V=x[0],re=x[1],fe=x[2];return kn(V,re,fe,1)}if(B.length===4){var _e=B.map(Fa),V=_e[0],re=_e[1],fe=_e[2],be=_e[3];return kn(V,re,fe,be)}return 0};function $i(w,f,B){return B<0&&(B+=1),B>=1&&(B-=1),B<1/6?(f-w)*B*6+w:B<1/2?f:B<2/3?(f-w)*6*(2/3-B)+w:w}var Pa=function(w,f){var B=f.filter(ei),x=B[0],V=B[1],re=B[2],fe=B[3],_e=(x.type===17?dn(x.number):Ei.parse(w,x))/(Math.PI*2),be=Fr(V)?V.number/100:0,Oe=Fr(re)?re.number/100:0,Pe=typeof fe!="undefined"&&Fr(fe)?wr(fe,1):1;if(be===0)return kn(Oe*255,Oe*255,Oe*255,1);var Ge=Oe<=.5?Oe*(be+1):Oe+be-Oe*be,Ve=Oe*2-Ge,dt=$i(Ve,Ge,_e+1/3),st=$i(Ve,Ge,_e),lt=$i(Ve,Ge,_e-1/3);return kn(dt*255,st*255,lt*255,Pe)},eo={hsl:Pa,hsla:Pa,rgb:Na,rgba:Na},ci=function(w,f){return Pn.parse(w,xa.create(f).parseComponentValue())},Rn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},to={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(w,f){return f.map(function(B){if(pr(B))switch(B.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ro={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bi=function(w,f){var B=Pn.parse(w,f[0]),x=f[1];return x&&Fr(x)?{color:B,stop:x}:{color:B,stop:null}},Ma=function(w,f){var B=w[0],x=w[w.length-1];B.stop===null&&(B.stop=Gr),x.stop===null&&(x.stop=Nn);for(var V=[],re=0,fe=0;fe<w.length;fe++){var _e=w[fe].stop;if(_e!==null){var be=wr(_e,f);be>re?V.push(be):V.push(re),re=be}else V.push(null)}for(var Oe=null,fe=0;fe<V.length;fe++){var Pe=V[fe];if(Pe===null)Oe===null&&(Oe=fe);else if(Oe!==null){for(var Ge=fe-Oe,Ve=V[Oe-1],dt=(Pe-Ve)/(Ge+1),st=1;st<=Ge;st++)V[Oe+st-1]=dt*st;Oe=null}}return w.map(function(lt,Dt){var ct=lt.color;return{color:ct,stop:Math.max(Math.min(1,V[Dt]/f),0)}})},no=function(w,f,B){var x=f/2,V=B/2,re=wr(w[0],f)-x,fe=V-wr(w[1],B);return(Math.atan2(fe,re)+Math.PI*2)%(Math.PI*2)},io=function(w,f,B){var x=typeof w=="number"?w:no(w,f,B),V=Math.abs(f*Math.sin(x))+Math.abs(B*Math.cos(x)),re=f/2,fe=B/2,_e=V/2,be=Math.sin(x-Math.PI/2)*_e,Oe=Math.cos(x-Math.PI/2)*_e;return[V,re-Oe,re+Oe,fe-be,fe+be]},yn=function(w,f){return Math.sqrt(w*w+f*f)},ka=function(w,f,B,x,V){var re=[[0,0],[0,f],[w,0],[w,f]];return re.reduce(function(fe,_e){var be=_e[0],Oe=_e[1],Pe=yn(B-be,x-Oe);return(V?Pe<fe.optimumDistance:Pe>fe.optimumDistance)?{optimumCorner:_e,optimumDistance:Pe}:fe},{optimumDistance:V?Infinity:-Infinity,optimumCorner:null}).optimumCorner},ao=function(w,f,B,x,V){var re=0,fe=0;switch(w.size){case 0:w.shape===0?re=fe=Math.min(Math.abs(f),Math.abs(f-x),Math.abs(B),Math.abs(B-V)):w.shape===1&&(re=Math.min(Math.abs(f),Math.abs(f-x)),fe=Math.min(Math.abs(B),Math.abs(B-V)));break;case 2:if(w.shape===0)re=fe=Math.min(yn(f,B),yn(f,B-V),yn(f-x,B),yn(f-x,B-V));else if(w.shape===1){var _e=Math.min(Math.abs(B),Math.abs(B-V))/Math.min(Math.abs(f),Math.abs(f-x)),be=ka(x,V,f,B,!0),Oe=be[0],Pe=be[1];re=yn(Oe-f,(Pe-B)/_e),fe=_e*re}break;case 1:w.shape===0?re=fe=Math.max(Math.abs(f),Math.abs(f-x),Math.abs(B),Math.abs(B-V)):w.shape===1&&(re=Math.max(Math.abs(f),Math.abs(f-x)),fe=Math.max(Math.abs(B),Math.abs(B-V)));break;case 3:if(w.shape===0)re=fe=Math.max(yn(f,B),yn(f,B-V),yn(f-x,B),yn(f-x,B-V));else if(w.shape===1){var _e=Math.max(Math.abs(B),Math.abs(B-V))/Math.max(Math.abs(f),Math.abs(f-x)),Ge=ka(x,V,f,B,!1),Oe=Ge[0],Pe=Ge[1];re=yn(Oe-f,(Pe-B)/_e),fe=_e*re}break}return Array.isArray(w.size)&&(re=wr(w.size[0],x),fe=w.size.length===2?wr(w.size[1],V):re),[re,fe]},so=function(w,f){var B=dn(180),x=[];return Cn(f).forEach(function(V,re){if(re===0){var fe=V[0];if(fe.type===20&&fe.value==="to"){B=Ua(V);return}else if(Da(fe)){B=Ei.parse(w,fe);return}}var _e=bi(w,V);x.push(_e)}),{angle:B,stops:x,type:1}},_i=function(w,f){var B=dn(180),x=[];return Cn(f).forEach(function(V,re){if(re===0){var fe=V[0];if(fe.type===20&&["top","left","right","bottom"].indexOf(fe.value)!==-1){B=Ua(V);return}else if(Da(fe)){B=(Ei.parse(w,fe)+dn(270))%dn(360);return}}var _e=bi(w,V);x.push(_e)}),{angle:B,stops:x,type:1}},oo=function(w,f){var B=dn(180),x=[],V=1,re=0,fe=3,_e=[];return Cn(f).forEach(function(be,Oe){var Pe=be[0];if(Oe===0){if(pr(Pe)&&Pe.value==="linear"){V=1;return}else if(pr(Pe)&&Pe.value==="radial"){V=2;return}}if(Pe.type===18){if(Pe.name==="from"){var Ge=Pn.parse(w,Pe.values[0]);x.push({stop:Gr,color:Ge})}else if(Pe.name==="to"){var Ge=Pn.parse(w,Pe.values[0]);x.push({stop:Nn,color:Ge})}else if(Pe.name==="color-stop"){var Ve=Pe.values.filter(ei);if(Ve.length===2){var Ge=Pn.parse(w,Ve[1]),dt=Ve[0];qn(dt)&&x.push({stop:{type:16,number:dt.number*100,flags:dt.flags},color:Ge})}}}}),V===1?{angle:(B+dn(180))%dn(360),stops:x,type:V}:{size:fe,shape:re,stops:x,position:_e,type:V}},Ha="closest-side",Qa="farthest-side",Ka="closest-corner",ja="farthest-corner",Wa="circle",Ga="ellipse",Va="cover",za="contain",Ao=function(w,f){var B=0,x=3,V=[],re=[];return Cn(f).forEach(function(fe,_e){var be=!0;if(_e===0){var Oe=!1;be=fe.reduce(function(Ge,Ve){if(Oe)if(pr(Ve))switch(Ve.value){case"center":return re.push(Ji),Ge;case"top":case"left":return re.push(Gr),Ge;case"right":case"bottom":return re.push(Nn),Ge}else(Fr(Ve)||Fn(Ve))&&re.push(Ve);else if(pr(Ve))switch(Ve.value){case Wa:return B=0,!1;case Ga:return B=1,!1;case"at":return Oe=!0,!1;case Ha:return x=0,!1;case Va:case Qa:return x=1,!1;case za:case Ka:return x=2,!1;case ja:return x=3,!1}else if(Fn(Ve)||Fr(Ve))return Array.isArray(x)||(x=[]),x.push(Ve),!1;return Ge},be)}if(be){var Pe=bi(w,fe);V.push(Pe)}}),{size:x,shape:B,stops:V,position:re,type:2}},wi=function(w,f){var B=0,x=3,V=[],re=[];return Cn(f).forEach(function(fe,_e){var be=!0;if(_e===0?be=fe.reduce(function(Pe,Ge){if(pr(Ge))switch(Ge.value){case"center":return re.push(Ji),!1;case"top":case"left":return re.push(Gr),!1;case"right":case"bottom":return re.push(Nn),!1}else if(Fr(Ge)||Fn(Ge))return re.push(Ge),!1;return Pe},be):_e===1&&(be=fe.reduce(function(Pe,Ge){if(pr(Ge))switch(Ge.value){case Wa:return B=0,!1;case Ga:return B=1,!1;case za:case Ha:return x=0,!1;case Qa:return x=1,!1;case Ka:return x=2,!1;case Va:case ja:return x=3,!1}else if(Fn(Ge)||Fr(Ge))return Array.isArray(x)||(x=[]),x.push(Ge),!1;return Pe},be)),be){var Oe=bi(w,fe);V.push(Oe)}}),{size:x,shape:B,stops:V,position:re,type:2}},lo=function(w){return w.type===1},uo=function(w){return w.type===2},Zi={name:"image",parse:function(w,f){if(f.type===22){var B={url:f.value,type:0};return w.cache.addImage(f.value),B}if(f.type===18){var x=Xa[f.name];if(typeof x=="undefined")throw new Error('Attempting to parse an unsupported image function "'+f.name+'"');return x(w,f.values)}throw new Error("Unsupported image type "+f.type)}};function ho(w){return!(w.type===20&&w.value==="none")&&(w.type!==18||!!Xa[w.name])}var Xa={"linear-gradient":so,"-moz-linear-gradient":_i,"-ms-linear-gradient":_i,"-o-linear-gradient":_i,"-webkit-linear-gradient":_i,"radial-gradient":Ao,"-moz-radial-gradient":wi,"-ms-radial-gradient":wi,"-o-radial-gradient":wi,"-webkit-radial-gradient":wi,"-webkit-gradient":oo},co={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(w,f){if(f.length===0)return[];var B=f[0];return B.type===20&&B.value==="none"?[]:f.filter(function(x){return ei(x)&&ho(x)}).map(function(x){return Zi.parse(w,x)})}},fo={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(w,f){return f.map(function(B){if(pr(B))switch(B.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},po={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(w,f){return Cn(f).map(function(B){return B.filter(Fr)}).map(Sa)}},mo={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(w,f){return Cn(f).map(function(B){return B.filter(pr).map(function(x){return x.value}).join(" ")}).map(go)}},go=function(w){switch(w){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},ti;(function(w){w.AUTO="auto",w.CONTAIN="contain",w.COVER="cover"})(ti||(ti={}));var vo={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(w,f){return Cn(f).map(function(B){return B.filter(yo)})}},yo=function(w){return pr(w)||Fr(w)},Ci=function(w){return{name:"border-"+w+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Eo=Ci("top"),bo=Ci("right"),_o=Ci("bottom"),wo=Ci("left"),Ti=function(w){return{name:"border-radius-"+w,initialValue:"0 0",prefix:!1,type:1,parse:function(f,B){return Sa(B.filter(Fr))}}},Co=Ti("top-left"),To=Ti("top-right"),xo=Ti("bottom-right"),Bo=Ti("bottom-left"),xi=function(w){return{name:"border-"+w+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(f,B){switch(B){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},So=xi("top"),Io=xi("right"),Ro=xi("bottom"),Oo=xi("left"),Bi=function(w){return{name:"border-"+w+"-width",initialValue:"0",type:0,prefix:!1,parse:function(f,B){return ui(B)?B.number:0}}},Lo=Bi("top"),Do=Bi("right"),Uo=Bi("bottom"),Fo=Bi("left"),No={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Po={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(w,f){switch(f){case"rtl":return 1;case"ltr":default:return 0}}},Mo={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(w,f){return f.filter(pr).reduce(function(B,x){return B|ko(x.value)},0)}},ko=function(w){switch(w){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Ho={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(w,f){switch(f){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Qo={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(w,f){return f.type===20&&f.value==="normal"?0:f.type===17||f.type===15?f.number:0}},Si;(function(w){w.NORMAL="normal",w.STRICT="strict"})(Si||(Si={}));var Ko={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(w,f){switch(f){case"strict":return Si.STRICT;case"normal":default:return Si.NORMAL}}},jo={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ya=function(w,f){return pr(w)&&w.value==="normal"?1.2*f:w.type===17?f*w.number:Fr(w)?wr(w,f):f},Wo={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(w,f){return f.type===20&&f.value==="none"?null:Zi.parse(w,f)}},Go={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(w,f){switch(f){case"inside":return 0;case"outside":default:return 1}}},qi={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(w,f){switch(f){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ii=function(w){return{name:"margin-"+w,initialValue:"0",prefix:!1,type:4}},Vo=Ii("top"),zo=Ii("right"),Xo=Ii("bottom"),Yo=Ii("left"),Jo={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(w,f){return f.filter(pr).map(function(B){switch(B.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},$o={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(w,f){switch(f){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ri=function(w){return{name:"padding-"+w,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Zo=Ri("top"),qo=Ri("right"),eA=Ri("bottom"),tA=Ri("left"),rA={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(w,f){switch(f){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},nA={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(w,f){switch(f){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},iA={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(w,f){return f.length===1&&Yi(f[0],"none")?[]:Cn(f).map(function(B){for(var x={color:Rn.TRANSPARENT,offsetX:Gr,offsetY:Gr,blur:Gr},V=0,re=0;re<B.length;re++){var fe=B[re];Fn(fe)?(V===0?x.offsetX=fe:V===1?x.offsetY=fe:x.blur=fe,V++):x.color=Pn.parse(w,fe)}return x})}},aA={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(w,f){switch(f){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},sA={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(w,f){if(f.type===20&&f.value==="none")return null;if(f.type===18){var B=lA[f.name];if(typeof B=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+f.name+'"');return B(f.values)}return null}},oA=function(w){var f=w.filter(function(B){return B.type===17}).map(function(B){return B.number});return f.length===6?f:null},AA=function(w){var f=w.filter(function(be){return be.type===17}).map(function(be){return be.number}),B=f[0],x=f[1];f[2],f[3];var V=f[4],re=f[5];f[6],f[7],f[8],f[9],f[10],f[11];var fe=f[12],_e=f[13];return f[14],f[15],f.length===16?[B,x,V,re,fe,_e]:null},lA={matrix:oA,matrix3d:AA},Ja={type:16,number:50,flags:Ct},uA=[Ja,Ja],hA={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(w,f){var B=f.filter(Fr);return B.length!==2?uA:[B[0],B[1]]}},cA={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(w,f){switch(f){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},di;(function(w){w.NORMAL="normal",w.BREAK_ALL="break-all",w.KEEP_ALL="keep-all"})(di||(di={}));for(var dA={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(w,f){switch(f){case"break-all":return di.BREAK_ALL;case"keep-all":return di.KEEP_ALL;case"normal":default:return di.NORMAL}}},fA={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(w,f){if(f.type===20)return{auto:!0,order:0};if(qn(f))return{auto:!1,order:f.number};throw new Error("Invalid z-index number parsed")}},$a={name:"time",parse:function(w,f){if(f.type===15)switch(f.unit.toLowerCase()){case"s":return 1e3*f.number;case"ms":return f.number}throw new Error("Unsupported time type")}},pA={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(w,f){return qn(f)?f.number:1}},mA={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},gA={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(w,f){return f.filter(pr).map(function(B){switch(B.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(B){return B!==0})}},vA={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(w,f){var B=[],x=[];return f.forEach(function(V){switch(V.type){case 20:case 0:B.push(V.value);break;case 17:B.push(V.number.toString());break;case 4:x.push(B.join(" ")),B.length=0;break}}),B.length&&x.push(B.join(" ")),x.map(function(V){return V.indexOf(" ")===-1?V:"'"+V+"'"})}},yA={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},EA={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(w,f){if(qn(f))return f.number;if(pr(f))switch(f.value){case"bold":return 700;case"normal":default:return 400}return 400}},bA={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(w,f){return f.filter(pr).map(function(B){return B.value})}},_A={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(w,f){switch(f){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Mr=function(w,f){return(w&f)!==0},wA={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(w,f){if(f.length===0)return[];var B=f[0];return B.type===20&&B.value==="none"?[]:f}},CA={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(w,f){if(f.length===0)return null;var B=f[0];if(B.type===20&&B.value==="none")return null;for(var x=[],V=f.filter(Ba),re=0;re<V.length;re++){var fe=V[re],_e=V[re+1];if(fe.type===20){var be=_e&&qn(_e)?_e.number:1;x.push({counter:fe.value,increment:be})}}return x}},TA={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(w,f){if(f.length===0)return[];for(var B=[],x=f.filter(Ba),V=0;V<x.length;V++){var re=x[V],fe=x[V+1];if(pr(re)&&re.value!=="none"){var _e=fe&&qn(fe)?fe.number:0;B.push({counter:re.value,reset:_e})}}return B}},xA={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(w,f){return f.filter(ui).map(function(B){return $a.parse(w,B)})}},BA={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(w,f){if(f.length===0)return null;var B=f[0];if(B.type===20&&B.value==="none")return null;var x=[],V=f.filter(Zs);if(V.length%2!==0)return null;for(var re=0;re<V.length;re+=2){var fe=V[re].value,_e=V[re+1].value;x.push({open:fe,close:_e})}return x}},Za=function(w,f,B){if(!w)return"";var x=w[Math.min(f,w.length-1)];return x?B?x.open:x.close:""},SA={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(w,f){return f.length===1&&Yi(f[0],"none")?[]:Cn(f).map(function(B){for(var x={color:255,offsetX:Gr,offsetY:Gr,blur:Gr,spread:Gr,inset:!1},V=0,re=0;re<B.length;re++){var fe=B[re];Yi(fe,"inset")?x.inset=!0:Fn(fe)?(V===0?x.offsetX=fe:V===1?x.offsetY=fe:V===2?x.blur=fe:x.spread=fe,V++):x.color=Pn.parse(w,fe)}return x})}},IA={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(w,f){var B=[0,1,2],x=[];return f.filter(pr).forEach(function(V){switch(V.value){case"stroke":x.push(1);break;case"fill":x.push(0);break;case"markers":x.push(2);break}}),B.forEach(function(V){x.indexOf(V)===-1&&x.push(V)}),x}},RA={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},OA={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(w,f){return ui(f)?f.number:0}},LA=function(){function w(f,B){var x,V;this.animationDuration=pt(f,xA,B.animationDuration),this.backgroundClip=pt(f,to,B.backgroundClip),this.backgroundColor=pt(f,ro,B.backgroundColor),this.backgroundImage=pt(f,co,B.backgroundImage),this.backgroundOrigin=pt(f,fo,B.backgroundOrigin),this.backgroundPosition=pt(f,po,B.backgroundPosition),this.backgroundRepeat=pt(f,mo,B.backgroundRepeat),this.backgroundSize=pt(f,vo,B.backgroundSize),this.borderTopColor=pt(f,Eo,B.borderTopColor),this.borderRightColor=pt(f,bo,B.borderRightColor),this.borderBottomColor=pt(f,_o,B.borderBottomColor),this.borderLeftColor=pt(f,wo,B.borderLeftColor),this.borderTopLeftRadius=pt(f,Co,B.borderTopLeftRadius),this.borderTopRightRadius=pt(f,To,B.borderTopRightRadius),this.borderBottomRightRadius=pt(f,xo,B.borderBottomRightRadius),this.borderBottomLeftRadius=pt(f,Bo,B.borderBottomLeftRadius),this.borderTopStyle=pt(f,So,B.borderTopStyle),this.borderRightStyle=pt(f,Io,B.borderRightStyle),this.borderBottomStyle=pt(f,Ro,B.borderBottomStyle),this.borderLeftStyle=pt(f,Oo,B.borderLeftStyle),this.borderTopWidth=pt(f,Lo,B.borderTopWidth),this.borderRightWidth=pt(f,Do,B.borderRightWidth),this.borderBottomWidth=pt(f,Uo,B.borderBottomWidth),this.borderLeftWidth=pt(f,Fo,B.borderLeftWidth),this.boxShadow=pt(f,SA,B.boxShadow),this.color=pt(f,No,B.color),this.direction=pt(f,Po,B.direction),this.display=pt(f,Mo,B.display),this.float=pt(f,Ho,B.cssFloat),this.fontFamily=pt(f,vA,B.fontFamily),this.fontSize=pt(f,yA,B.fontSize),this.fontStyle=pt(f,_A,B.fontStyle),this.fontVariant=pt(f,bA,B.fontVariant),this.fontWeight=pt(f,EA,B.fontWeight),this.letterSpacing=pt(f,Qo,B.letterSpacing),this.lineBreak=pt(f,Ko,B.lineBreak),this.lineHeight=pt(f,jo,B.lineHeight),this.listStyleImage=pt(f,Wo,B.listStyleImage),this.listStylePosition=pt(f,Go,B.listStylePosition),this.listStyleType=pt(f,qi,B.listStyleType),this.marginTop=pt(f,Vo,B.marginTop),this.marginRight=pt(f,zo,B.marginRight),this.marginBottom=pt(f,Xo,B.marginBottom),this.marginLeft=pt(f,Yo,B.marginLeft),this.opacity=pt(f,pA,B.opacity);var re=pt(f,Jo,B.overflow);this.overflowX=re[0],this.overflowY=re[re.length>1?1:0],this.overflowWrap=pt(f,$o,B.overflowWrap),this.paddingTop=pt(f,Zo,B.paddingTop),this.paddingRight=pt(f,qo,B.paddingRight),this.paddingBottom=pt(f,eA,B.paddingBottom),this.paddingLeft=pt(f,tA,B.paddingLeft),this.paintOrder=pt(f,IA,B.paintOrder),this.position=pt(f,nA,B.position),this.textAlign=pt(f,rA,B.textAlign),this.textDecorationColor=pt(f,mA,(x=B.textDecorationColor)!==null&&x!==void 0?x:B.color),this.textDecorationLine=pt(f,gA,(V=B.textDecorationLine)!==null&&V!==void 0?V:B.textDecoration),this.textShadow=pt(f,iA,B.textShadow),this.textTransform=pt(f,aA,B.textTransform),this.transform=pt(f,sA,B.transform),this.transformOrigin=pt(f,hA,B.transformOrigin),this.visibility=pt(f,cA,B.visibility),this.webkitTextStrokeColor=pt(f,RA,B.webkitTextStrokeColor),this.webkitTextStrokeWidth=pt(f,OA,B.webkitTextStrokeWidth),this.wordBreak=pt(f,dA,B.wordBreak),this.zIndex=pt(f,fA,B.zIndex)}return w.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},w.prototype.isTransparent=function(){return Mn(this.backgroundColor)},w.prototype.isTransformed=function(){return this.transform!==null},w.prototype.isPositioned=function(){return this.position!==0},w.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},w.prototype.isFloating=function(){return this.float!==0},w.prototype.isInlineLevel=function(){return Mr(this.display,4)||Mr(this.display,33554432)||Mr(this.display,268435456)||Mr(this.display,536870912)||Mr(this.display,67108864)||Mr(this.display,134217728)},w}(),DA=function(){function w(f,B){this.content=pt(f,wA,B.content),this.quotes=pt(f,BA,B.quotes)}return w}(),qa=function(){function w(f,B){this.counterIncrement=pt(f,CA,B.counterIncrement),this.counterReset=pt(f,TA,B.counterReset)}return w}(),pt=function(w,f,B){var x=new Ta,V=B!==null&&typeof B!="undefined"?B.toString():f.initialValue;x.write(V);var re=new xa(x.read());switch(f.type){case 2:var fe=re.parseComponentValue();return f.parse(w,pr(fe)?fe.value:f.initialValue);case 0:return f.parse(w,re.parseComponentValue());case 1:return f.parse(w,re.parseComponentValues());case 4:return re.parseComponentValue();case 3:switch(f.format){case"angle":return Ei.parse(w,re.parseComponentValue());case"color":return Pn.parse(w,re.parseComponentValue());case"image":return Zi.parse(w,re.parseComponentValue());case"length":var _e=re.parseComponentValue();return Fn(_e)?_e:Gr;case"length-percentage":var be=re.parseComponentValue();return Fr(be)?be:Gr;case"time":return $a.parse(w,re.parseComponentValue())}break}},UA="data-html2canvas-debug",FA=function(w){var f=w.getAttribute(UA);switch(f){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ea=function(w,f){var B=FA(w);return B===1||f===B},Tn=function(){function w(f,B){if(this.context=f,this.textNodes=[],this.elements=[],this.flags=0,ea(B,3))debugger;this.styles=new LA(f,window.getComputedStyle(B,null)),fa(B)&&(this.styles.animationDuration.some(function(x){return x>0})&&(B.style.animationDuration="0s"),this.styles.transform!==null&&(B.style.transform="none")),this.bounds=M(this.context,B),ea(B,4)&&(this.flags|=16)}return w}(),NA="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",es="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fi=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Oi=0;Oi<es.length;Oi++)fi[es.charCodeAt(Oi)]=Oi;for(var PA=function(w){var f=w.length*.75,B=w.length,x,V=0,re,fe,_e,be;w[w.length-1]==="="&&(f--,w[w.length-2]==="="&&f--);var Oe=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(f):new Array(f),Pe=Array.isArray(Oe)?Oe:new Uint8Array(Oe);for(x=0;x<B;x+=4)re=fi[w.charCodeAt(x)],fe=fi[w.charCodeAt(x+1)],_e=fi[w.charCodeAt(x+2)],be=fi[w.charCodeAt(x+3)],Pe[V++]=re<<2|fe>>4,Pe[V++]=(fe&15)<<4|_e>>2,Pe[V++]=(_e&3)<<6|be&63;return Oe},MA=function(w){for(var f=w.length,B=[],x=0;x<f;x+=2)B.push(w[x+1]<<8|w[x]);return B},kA=function(w){for(var f=w.length,B=[],x=0;x<f;x+=4)B.push(w[x+3]<<24|w[x+2]<<16|w[x+1]<<8|w[x]);return B},zn=5,ta=6+5,ra=2,HA=ta-zn,ts=65536>>zn,QA=1<<zn,na=QA-1,KA=1024>>zn,jA=ts+KA,WA=jA,GA=2048>>6,VA=WA+GA,zA=65536>>ta,XA=1<<HA,YA=XA-1,rs=function(w,f,B){return w.slice?w.slice(f,B):new Uint16Array(Array.prototype.slice.call(w,f,B))},JA=function(w,f,B){return w.slice?w.slice(f,B):new Uint32Array(Array.prototype.slice.call(w,f,B))},$A=function(w,f){var B=PA(w),x=Array.isArray(B)?kA(B):new Uint32Array(B),V=Array.isArray(B)?MA(B):new Uint16Array(B),re=24,fe=rs(V,re/2,x[4]/2),_e=x[5]===2?rs(V,(re+x[4])/2):JA(x,Math.ceil((re+x[4])/4));return new ZA(x[0],x[1],x[2],x[3],fe,_e)},ZA=function(){function w(f,B,x,V,re,fe){this.initialValue=f,this.errorValue=B,this.highStart=x,this.highValueIndex=V,this.index=re,this.data=fe}return w.prototype.get=function(f){var B;if(f>=0){if(f<55296||f>56319&&f<=65535)return B=this.index[f>>zn],B=(B<<ra)+(f&na),this.data[B];if(f<=65535)return B=this.index[ts+(f-55296>>zn)],B=(B<<ra)+(f&na),this.data[B];if(f<this.highStart)return B=VA-zA+(f>>ta),B=this.index[B],B+=f>>zn&YA,B=this.index[B],B=(B<<ra)+(f&na),this.data[B];if(f<=1114111)return this.data[this.highValueIndex]}return this.errorValue},w}(),ns="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qA=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Li=0;Li<ns.length;Li++)qA[ns.charCodeAt(Li)]=Li;var el=1,ia=2,aa=3,is=4,as=5,tl=7,ss=8,sa=9,oa=10,os=11,As=12,ls=13,us=14,Aa=15,rl=function(w){for(var f=[],B=0,x=w.length;B<x;){var V=w.charCodeAt(B++);if(V>=55296&&V<=56319&&B<x){var re=w.charCodeAt(B++);(re&64512)===56320?f.push(((V&1023)<<10)+(re&1023)+65536):(f.push(V),B--)}else f.push(V)}return f},nl=function(){for(var w=[],f=0;f<arguments.length;f++)w[f]=arguments[f];if(String.fromCodePoint)return String.fromCodePoint.apply(String,w);var B=w.length;if(!B)return"";for(var x=[],V=-1,re="";++V<B;){var fe=w[V];fe<=65535?x.push(fe):(fe-=65536,x.push((fe>>10)+55296,fe%1024+56320)),(V+1===B||x.length>16384)&&(re+=String.fromCharCode.apply(String,x),x.length=0)}return re},il=$A(NA),fn="\xD7",la="\xF7",al=function(w){return il.get(w)},sl=function(w,f,B){var x=B-2,V=f[x],re=f[B-1],fe=f[B];if(re===ia&&fe===aa)return fn;if(re===ia||re===aa||re===is)return la;if(fe===ia||fe===aa||fe===is)return la;if(re===ss&&[ss,sa,os,As].indexOf(fe)!==-1)return fn;if((re===os||re===sa)&&(fe===sa||fe===oa))return fn;if((re===As||re===oa)&&fe===oa)return fn;if(fe===ls||fe===as)return fn;if(fe===tl)return fn;if(re===el)return fn;if(re===ls&&fe===us){for(;V===as;)V=f[--x];if(V===us)return fn}if(re===Aa&&fe===Aa){for(var _e=0;V===Aa;)_e++,V=f[--x];if(_e%2===0)return fn}return la},ol=function(w){var f=rl(w),B=f.length,x=0,V=0,re=f.map(al);return{next:function(){if(x>=B)return{done:!0,value:null};for(var fe=fn;x<B&&(fe=sl(f,re,++x))===fn;);if(fe!==fn||x===B){var _e=nl.apply(null,f.slice(V,x));return V=x,{value:_e,done:!1}}return{done:!0,value:null}}}},Al=function(w){for(var f=ol(w),B=[],x;!(x=f.next()).done;)x.value&&B.push(x.value.slice());return B},ll=function(w){var f=123;if(w.createRange){var B=w.createRange();if(B.getBoundingClientRect){var x=w.createElement("boundtest");x.style.height=f+"px",x.style.display="block",w.body.appendChild(x),B.selectNode(x);var V=B.getBoundingClientRect(),re=Math.round(V.height);if(w.body.removeChild(x),re===f)return!0}}return!1},ul=function(w){var f=w.createElement("boundtest");f.style.width="50px",f.style.display="block",f.style.fontSize="12px",f.style.letterSpacing="0px",f.style.wordSpacing="0px",w.body.appendChild(f);var B=w.createRange();f.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var x=f.firstChild,V=I(x.data).map(function(be){return p(be)}),re=0,fe={},_e=V.every(function(be,Oe){B.setStart(x,re),B.setEnd(x,re+be.length);var Pe=B.getBoundingClientRect();re+=be.length;var Ge=Pe.x>fe.x||Pe.y>fe.y;return fe=Pe,Oe===0?!0:Ge});return w.body.removeChild(f),_e},hl=function(){return typeof new Image().crossOrigin!="undefined"},cl=function(){return typeof new XMLHttpRequest().responseType=="string"},dl=function(w){var f=new Image,B=w.createElement("canvas"),x=B.getContext("2d");if(!x)return!1;f.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{x.drawImage(f,0,0),B.toDataURL()}catch(V){return!1}return!0},hs=function(w){return w[0]===0&&w[1]===255&&w[2]===0&&w[3]===255},fl=function(w){var f=w.createElement("canvas"),B=100;f.width=B,f.height=B;var x=f.getContext("2d");if(!x)return Promise.reject(!1);x.fillStyle="rgb(0, 255, 0)",x.fillRect(0,0,B,B);var V=new Image,re=f.toDataURL();V.src=re;var fe=ua(B,B,0,0,V);return x.fillStyle="red",x.fillRect(0,0,B,B),cs(fe).then(function(_e){x.drawImage(_e,0,0);var be=x.getImageData(0,0,B,B).data;x.fillStyle="red",x.fillRect(0,0,B,B);var Oe=w.createElement("div");return Oe.style.backgroundImage="url("+re+")",Oe.style.height=B+"px",hs(be)?cs(ua(B,B,0,0,Oe)):Promise.reject(!1)}).then(function(_e){return x.drawImage(_e,0,0),hs(x.getImageData(0,0,B,B).data)}).catch(function(){return!1})},ua=function(w,f,B,x,V){var re="http://www.w3.org/2000/svg",fe=document.createElementNS(re,"svg"),_e=document.createElementNS(re,"foreignObject");return fe.setAttributeNS(null,"width",w.toString()),fe.setAttributeNS(null,"height",f.toString()),_e.setAttributeNS(null,"width","100%"),_e.setAttributeNS(null,"height","100%"),_e.setAttributeNS(null,"x",B.toString()),_e.setAttributeNS(null,"y",x.toString()),_e.setAttributeNS(null,"externalResourcesRequired","true"),fe.appendChild(_e),_e.appendChild(V),fe},cs=function(w){return new Promise(function(f,B){var x=new Image;x.onload=function(){return f(x)},x.onerror=B,x.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(w))})},Vr={get SUPPORT_RANGE_BOUNDS(){var w=ll(document);return Object.defineProperty(Vr,"SUPPORT_RANGE_BOUNDS",{value:w}),w},get SUPPORT_WORD_BREAKING(){var w=Vr.SUPPORT_RANGE_BOUNDS&&ul(document);return Object.defineProperty(Vr,"SUPPORT_WORD_BREAKING",{value:w}),w},get SUPPORT_SVG_DRAWING(){var w=dl(document);return Object.defineProperty(Vr,"SUPPORT_SVG_DRAWING",{value:w}),w},get SUPPORT_FOREIGNOBJECT_DRAWING(){var w=typeof Array.from=="function"&&typeof window.fetch=="function"?fl(document):Promise.resolve(!1);return Object.defineProperty(Vr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:w}),w},get SUPPORT_CORS_IMAGES(){var w=hl();return Object.defineProperty(Vr,"SUPPORT_CORS_IMAGES",{value:w}),w},get SUPPORT_RESPONSE_TYPE(){var w=cl();return Object.defineProperty(Vr,"SUPPORT_RESPONSE_TYPE",{value:w}),w},get SUPPORT_CORS_XHR(){var w="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Vr,"SUPPORT_CORS_XHR",{value:w}),w},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var w=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(Vr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:w}),w}},pi=function(){function w(f,B){this.text=f,this.bounds=B}return w}(),pl=function(w,f,B,x){var V=vl(f,B),re=[],fe=0;return V.forEach(function(_e){if(B.textDecorationLine.length||_e.trim().length>0)if(Vr.SUPPORT_RANGE_BOUNDS){var be=ds(x,fe,_e.length).getClientRects();if(be.length>1){var Oe=ha(_e),Pe=0;Oe.forEach(function(Ve){re.push(new pi(Ve,Y.fromDOMRectList(w,ds(x,Pe+fe,Ve.length).getClientRects()))),Pe+=Ve.length})}else re.push(new pi(_e,Y.fromDOMRectList(w,be)))}else{var Ge=x.splitText(_e.length);re.push(new pi(_e,ml(w,x))),x=Ge}else Vr.SUPPORT_RANGE_BOUNDS||(x=x.splitText(_e.length));fe+=_e.length}),re},ml=function(w,f){var B=f.ownerDocument;if(B){var x=B.createElement("html2canvaswrapper");x.appendChild(f.cloneNode(!0));var V=f.parentNode;if(V){V.replaceChild(x,f);var re=M(w,x);return x.firstChild&&V.replaceChild(x.firstChild,x),re}}return Y.EMPTY},ds=function(w,f,B){var x=w.ownerDocument;if(!x)throw new Error("Node has no owner document");var V=x.createRange();return V.setStart(w,f),V.setEnd(w,f+B),V},ha=function(w){if(Vr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var f=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(f.segment(w)).map(function(B){return B.segment})}return Al(w)},gl=function(w,f){if(Vr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var B=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(B.segment(w)).map(function(x){return x.segment})}return El(w,f)},vl=function(w,f){return f.letterSpacing!==0?ha(w):gl(w,f)},yl=[32,160,4961,65792,65793,4153,4241],El=function(w,f){for(var B=nr(w,{lineBreak:f.lineBreak,wordBreak:f.overflowWrap==="break-word"?"break-word":f.wordBreak}),x=[],V,re=function(){if(V.value){var fe=V.value.slice(),_e=I(fe),be="";_e.forEach(function(Oe){yl.indexOf(Oe)===-1?be+=p(Oe):(be.length&&x.push(be),x.push(p(Oe)),be="")}),be.length&&x.push(be)}};!(V=B.next()).done;)re();return x},bl=function(){function w(f,B,x){this.text=_l(B.data,x.textTransform),this.textBounds=pl(f,this.text,x,B)}return w}(),_l=function(w,f){switch(f){case 1:return w.toLowerCase();case 3:return w.replace(wl,Cl);case 2:return w.toUpperCase();default:return w}},wl=/(^|\s|:|-|\(|\))([a-z])/g,Cl=function(w,f,B){return w.length>0?f+B.toUpperCase():w},fs=function(w){K(f,w);function f(B,x){var V=w.call(this,B,x)||this;return V.src=x.currentSrc||x.src,V.intrinsicWidth=x.naturalWidth,V.intrinsicHeight=x.naturalHeight,V.context.cache.addImage(V.src),V}return f}(Tn),ps=function(w){K(f,w);function f(B,x){var V=w.call(this,B,x)||this;return V.canvas=x,V.intrinsicWidth=x.width,V.intrinsicHeight=x.height,V}return f}(Tn),ms=function(w){K(f,w);function f(B,x){var V=w.call(this,B,x)||this,re=new XMLSerializer,fe=M(B,x);return x.setAttribute("width",fe.width+"px"),x.setAttribute("height",fe.height+"px"),V.svg="data:image/svg+xml,"+encodeURIComponent(re.serializeToString(x)),V.intrinsicWidth=x.width.baseVal.value,V.intrinsicHeight=x.height.baseVal.value,V.context.cache.addImage(V.svg),V}return f}(Tn),gs=function(w){K(f,w);function f(B,x){var V=w.call(this,B,x)||this;return V.value=x.value,V}return f}(Tn),ca=function(w){K(f,w);function f(B,x){var V=w.call(this,B,x)||this;return V.start=x.start,V.reversed=typeof x.reversed=="boolean"&&x.reversed===!0,V}return f}(Tn),Tl=[{type:15,flags:0,unit:"px",number:3}],xl=[{type:16,flags:0,number:50}],Bl=function(w){return w.width>w.height?new Y(w.left+(w.width-w.height)/2,w.top,w.height,w.height):w.width<w.height?new Y(w.left,w.top+(w.height-w.width)/2,w.width,w.width):w},Sl=function(w){var f=w.type===Il?new Array(w.value.length+1).join("\u2022"):w.value;return f.length===0?w.placeholder||"":f},Di="checkbox",Ui="radio",Il="password",vs=707406591,da=function(w){K(f,w);function f(B,x){var V=w.call(this,B,x)||this;V.type=x.type.toLowerCase(),V.checked=x.checked,V.value=Sl(x),(V.type===Di||V.type===Ui)&&(V.styles.backgroundColor=3739148031,V.styles.borderTopColor=V.styles.borderRightColor=V.styles.borderBottomColor=V.styles.borderLeftColor=2779096575,V.styles.borderTopWidth=V.styles.borderRightWidth=V.styles.borderBottomWidth=V.styles.borderLeftWidth=1,V.styles.borderTopStyle=V.styles.borderRightStyle=V.styles.borderBottomStyle=V.styles.borderLeftStyle=1,V.styles.backgroundClip=[0],V.styles.backgroundOrigin=[0],V.bounds=Bl(V.bounds));switch(V.type){case Di:V.styles.borderTopRightRadius=V.styles.borderTopLeftRadius=V.styles.borderBottomRightRadius=V.styles.borderBottomLeftRadius=Tl;break;case Ui:V.styles.borderTopRightRadius=V.styles.borderTopLeftRadius=V.styles.borderBottomRightRadius=V.styles.borderBottomLeftRadius=xl;break}return V}return f}(Tn),ys=function(w){K(f,w);function f(B,x){var V=w.call(this,B,x)||this,re=x.options[x.selectedIndex||0];return V.value=re&&re.text||"",V}return f}(Tn),Es=function(w){K(f,w);function f(B,x){var V=w.call(this,B,x)||this;return V.value=x.value,V}return f}(Tn),bs=function(w){K(f,w);function f(B,x){var V=w.call(this,B,x)||this;V.src=x.src,V.width=parseInt(x.width,10)||0,V.height=parseInt(x.height,10)||0,V.backgroundColor=V.styles.backgroundColor;try{if(x.contentWindow&&x.contentWindow.document&&x.contentWindow.document.documentElement){V.tree=ws(B,x.contentWindow.document.documentElement);var re=x.contentWindow.document.documentElement?ci(B,getComputedStyle(x.contentWindow.document.documentElement).backgroundColor):Rn.TRANSPARENT,fe=x.contentWindow.document.body?ci(B,getComputedStyle(x.contentWindow.document.body).backgroundColor):Rn.TRANSPARENT;V.backgroundColor=Mn(re)?Mn(fe)?V.styles.backgroundColor:fe:re}}catch(_e){}return V}return f}(Tn),Rl=["OL","UL","MENU"],Fi=function(w,f,B,x){for(var V=f.firstChild,re=void 0;V;V=re)if(re=V.nextSibling,Cs(V)&&V.data.trim().length>0)B.textNodes.push(new bl(w,V,B.styles));else if(ri(V))if(Rs(V)&&V.assignedNodes)V.assignedNodes().forEach(function(_e){return Fi(w,_e,B,x)});else{var fe=_s(w,V);fe.styles.isVisible()&&(Ol(V,fe,x)?fe.flags|=4:Ll(fe.styles)&&(fe.flags|=2),Rl.indexOf(V.tagName)!==-1&&(fe.flags|=8),B.elements.push(fe),V.slot,V.shadowRoot?Fi(w,V.shadowRoot,fe,x):!Pi(V)&&!Ts(V)&&!Mi(V)&&Fi(w,V,fe,x))}},_s=function(w,f){return ma(f)?new fs(w,f):xs(f)?new ps(w,f):Ts(f)?new ms(w,f):Dl(f)?new gs(w,f):Ul(f)?new ca(w,f):Fl(f)?new da(w,f):Mi(f)?new ys(w,f):Pi(f)?new Es(w,f):Ss(f)?new bs(w,f):new Tn(w,f)},ws=function(w,f){var B=_s(w,f);return B.flags|=4,Fi(w,f,B,B),B},Ol=function(w,f,B){return f.styles.isPositionedWithZIndex()||f.styles.opacity<1||f.styles.isTransformed()||pa(w)&&B.styles.isTransparent()},Ll=function(w){return w.isPositioned()||w.isFloating()},Cs=function(w){return w.nodeType===Node.TEXT_NODE},ri=function(w){return w.nodeType===Node.ELEMENT_NODE},fa=function(w){return ri(w)&&typeof w.style!="undefined"&&!Ni(w)},Ni=function(w){return typeof w.className=="object"},Dl=function(w){return w.tagName==="LI"},Ul=function(w){return w.tagName==="OL"},Fl=function(w){return w.tagName==="INPUT"},Nl=function(w){return w.tagName==="HTML"},Ts=function(w){return w.tagName==="svg"},pa=function(w){return w.tagName==="BODY"},xs=function(w){return w.tagName==="CANVAS"},Bs=function(w){return w.tagName==="VIDEO"},ma=function(w){return w.tagName==="IMG"},Ss=function(w){return w.tagName==="IFRAME"},Is=function(w){return w.tagName==="STYLE"},Pl=function(w){return w.tagName==="SCRIPT"},Pi=function(w){return w.tagName==="TEXTAREA"},Mi=function(w){return w.tagName==="SELECT"},Rs=function(w){return w.tagName==="SLOT"},Os=function(w){return w.tagName.indexOf("-")>0},Ml=function(){function w(){this.counters={}}return w.prototype.getCounterValue=function(f){var B=this.counters[f];return B&&B.length?B[B.length-1]:1},w.prototype.getCounterValues=function(f){var B=this.counters[f];return B||[]},w.prototype.pop=function(f){var B=this;f.forEach(function(x){return B.counters[x].pop()})},w.prototype.parse=function(f){var B=this,x=f.counterIncrement,V=f.counterReset,re=!0;x!==null&&x.forEach(function(_e){var be=B.counters[_e.counter];be&&_e.increment!==0&&(re=!1,be.length||be.push(1),be[Math.max(0,be.length-1)]+=_e.increment)});var fe=[];return re&&V.forEach(function(_e){var be=B.counters[_e.counter];fe.push(_e.counter),be||(be=B.counters[_e.counter]=[]),be.push(_e.reset)}),fe},w}(),Ls={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Ds={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},kl={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},Hl={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},ni=function(w,f,B,x,V,re){return w<f||w>B?gi(w,V,re.length>0):x.integers.reduce(function(fe,_e,be){for(;w>=_e;)w-=_e,fe+=x.values[be];return fe},"")+re},Us=function(w,f,B,x){var V="";do B||w--,V=x(w)+V,w/=f;while(w*f>=f);return V},Dr=function(w,f,B,x,V){var re=B-f+1;return(w<0?"-":"")+(Us(Math.abs(w),re,x,function(fe){return p(Math.floor(fe%re)+f)})+V)},Xn=function(w,f,B){B===void 0&&(B=". ");var x=f.length;return Us(Math.abs(w),x,!1,function(V){return f[Math.floor(V%x)]})+B},ii=1<<0,Hn=1<<1,Qn=1<<2,mi=1<<3,On=function(w,f,B,x,V,re){if(w<-9999||w>9999)return gi(w,4,V.length>0);var fe=Math.abs(w),_e=V;if(fe===0)return f[0]+_e;for(var be=0;fe>0&&be<=4;be++){var Oe=fe%10;Oe===0&&Mr(re,ii)&&_e!==""?_e=f[Oe]+_e:Oe>1||Oe===1&&be===0||Oe===1&&be===1&&Mr(re,Hn)||Oe===1&&be===1&&Mr(re,Qn)&&w>100||Oe===1&&be>1&&Mr(re,mi)?_e=f[Oe]+(be>0?B[be-1]:"")+_e:Oe===1&&be>0&&(_e=B[be-1]+_e),fe=Math.floor(fe/10)}return(w<0?x:"")+_e},Fs="\u5341\u767E\u5343\u842C",Ns="\u62FE\u4F70\u4EDF\u842C",Ps="\u30DE\u30A4\u30CA\u30B9",ga="\uB9C8\uC774\uB108\uC2A4",gi=function(w,f,B){var x=B?". ":"",V=B?"\u3001":"",re=B?", ":"",fe=B?" ":"";switch(f){case 0:return"\u2022"+fe;case 1:return"\u25E6"+fe;case 2:return"\u25FE"+fe;case 5:var _e=Dr(w,48,57,!0,x);return _e.length<4?"0"+_e:_e;case 4:return Xn(w,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",V);case 6:return ni(w,1,3999,Ls,3,x).toLowerCase();case 7:return ni(w,1,3999,Ls,3,x);case 8:return Dr(w,945,969,!1,x);case 9:return Dr(w,97,122,!1,x);case 10:return Dr(w,65,90,!1,x);case 11:return Dr(w,1632,1641,!0,x);case 12:case 49:return ni(w,1,9999,Ds,3,x);case 35:return ni(w,1,9999,Ds,3,x).toLowerCase();case 13:return Dr(w,2534,2543,!0,x);case 14:case 30:return Dr(w,6112,6121,!0,x);case 15:return Xn(w,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",V);case 16:return Xn(w,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",V);case 17:case 48:return On(w,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Fs,"\u8CA0",V,Hn|Qn|mi);case 47:return On(w,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Ns,"\u8CA0",V,ii|Hn|Qn|mi);case 42:return On(w,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Fs,"\u8D1F",V,Hn|Qn|mi);case 41:return On(w,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Ns,"\u8D1F",V,ii|Hn|Qn|mi);case 26:return On(w,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",Ps,V,0);case 25:return On(w,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",Ps,V,ii|Hn|Qn);case 31:return On(w,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",ga,re,ii|Hn|Qn);case 33:return On(w,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",ga,re,0);case 32:return On(w,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",ga,re,ii|Hn|Qn);case 18:return Dr(w,2406,2415,!0,x);case 20:return ni(w,1,19999,Hl,3,x);case 21:return Dr(w,2790,2799,!0,x);case 22:return Dr(w,2662,2671,!0,x);case 22:return ni(w,1,10999,kl,3,x);case 23:return Xn(w,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Xn(w,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Dr(w,3302,3311,!0,x);case 28:return Xn(w,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",V);case 29:return Xn(w,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",V);case 34:return Dr(w,3792,3801,!0,x);case 37:return Dr(w,6160,6169,!0,x);case 38:return Dr(w,4160,4169,!0,x);case 39:return Dr(w,2918,2927,!0,x);case 40:return Dr(w,1776,1785,!0,x);case 43:return Dr(w,3046,3055,!0,x);case 44:return Dr(w,3174,3183,!0,x);case 45:return Dr(w,3664,3673,!0,x);case 46:return Dr(w,3872,3881,!0,x);case 3:default:return Dr(w,48,57,!0,x)}},Ms="data-html2canvas-ignore",ks=function(){function w(f,B,x){if(this.context=f,this.options=x,this.scrolledElements=[],this.referenceElement=B,this.counters=new Ml,this.quoteDepth=0,!B.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(B.ownerDocument.documentElement,!1)}return w.prototype.toIFrame=function(f,B){var x=this,V=Ql(f,B);if(!V.contentWindow)return Promise.reject("Unable to find iframe window");var re=f.defaultView.pageXOffset,fe=f.defaultView.pageYOffset,_e=V.contentWindow,be=_e.document,Oe=Wl(V).then(function(){return G(x,void 0,void 0,function(){var Pe,Ge;return U(this,function(Ve){switch(Ve.label){case 0:return this.scrolledElements.forEach(Xl),_e&&(_e.scrollTo(B.left,B.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(_e.scrollY!==B.top||_e.scrollX!==B.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(_e.scrollX-B.left,_e.scrollY-B.top,0,0))),Pe=this.options.onclone,Ge=this.clonedReferenceElement,typeof Ge=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:be.fonts&&be.fonts.ready?[4,be.fonts.ready]:[3,2];case 1:Ve.sent(),Ve.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,jl(be)]:[3,4];case 3:Ve.sent(),Ve.label=4;case 4:return typeof Pe=="function"?[2,Promise.resolve().then(function(){return Pe(be,Ge)}).then(function(){return V})]:[2,V]}})})});return be.open(),be.write(Vl(document.doctype)+"<html></html>"),zl(this.referenceElement.ownerDocument,re,fe),be.replaceChild(be.adoptNode(this.documentElement),be.documentElement),be.close(),Oe},w.prototype.createElementClone=function(f){if(ea(f,2))debugger;if(xs(f))return this.createCanvasClone(f);if(Bs(f))return this.createVideoClone(f);if(Is(f))return this.createStyleClone(f);var B=f.cloneNode(!1);return ma(B)&&(ma(f)&&f.currentSrc&&f.currentSrc!==f.src&&(B.src=f.currentSrc,B.srcset=""),B.loading==="lazy"&&(B.loading="eager")),Os(B)?this.createCustomElementClone(B):B},w.prototype.createCustomElementClone=function(f){var B=document.createElement("html2canvascustomelement");return va(f.style,B),B},w.prototype.createStyleClone=function(f){try{var B=f.sheet;if(B&&B.cssRules){var x=[].slice.call(B.cssRules,0).reduce(function(re,fe){return fe&&typeof fe.cssText=="string"?re+fe.cssText:re},""),V=f.cloneNode(!1);return V.textContent=x,V}}catch(re){if(this.context.logger.error("Unable to access cssRules property",re),re.name!=="SecurityError")throw re}return f.cloneNode(!1)},w.prototype.createCanvasClone=function(f){var B;if(this.options.inlineImages&&f.ownerDocument){var x=f.ownerDocument.createElement("img");try{return x.src=f.toDataURL(),x}catch(Oe){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",f)}}var V=f.cloneNode(!1);try{V.width=f.width,V.height=f.height;var re=f.getContext("2d"),fe=V.getContext("2d");if(fe)if(!this.options.allowTaint&&re)fe.putImageData(re.getImageData(0,0,f.width,f.height),0,0);else{var _e=(B=f.getContext("webgl2"))!==null&&B!==void 0?B:f.getContext("webgl");if(_e){var be=_e.getContextAttributes();(be==null?void 0:be.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",f)}fe.drawImage(f,0,0)}return V}catch(Oe){this.context.logger.info("Unable to clone canvas as it is tainted",f)}return V},w.prototype.createVideoClone=function(f){var B=f.ownerDocument.createElement("canvas");B.width=f.offsetWidth,B.height=f.offsetHeight;var x=B.getContext("2d");try{return x&&(x.drawImage(f,0,0,B.width,B.height),this.options.allowTaint||x.getImageData(0,0,B.width,B.height)),B}catch(re){this.context.logger.info("Unable to clone video as it is tainted",f)}var V=f.ownerDocument.createElement("canvas");return V.width=f.offsetWidth,V.height=f.offsetHeight,V},w.prototype.appendChildNode=function(f,B,x){(!ri(B)||!Pl(B)&&!B.hasAttribute(Ms)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(B)))&&((!this.options.copyStyles||!ri(B)||!Is(B))&&f.appendChild(this.cloneNode(B,x)))},w.prototype.cloneChildNodes=function(f,B,x){for(var V=this,re=f.shadowRoot?f.shadowRoot.firstChild:f.firstChild;re;re=re.nextSibling)if(ri(re)&&Rs(re)&&typeof re.assignedNodes=="function"){var fe=re.assignedNodes();fe.length&&fe.forEach(function(_e){return V.appendChildNode(B,_e,x)})}else this.appendChildNode(B,re,x)},w.prototype.cloneNode=function(f,B){if(Cs(f))return document.createTextNode(f.data);if(!f.ownerDocument)return f.cloneNode(!1);var x=f.ownerDocument.defaultView;if(x&&ri(f)&&(fa(f)||Ni(f))){var V=this.createElementClone(f);V.style.transitionProperty="none";var re=x.getComputedStyle(f),fe=x.getComputedStyle(f,":before"),_e=x.getComputedStyle(f,":after");this.referenceElement===f&&fa(V)&&(this.clonedReferenceElement=V),pa(V)&&$l(V);var be=this.counters.parse(new qa(this.context,re)),Oe=this.resolvePseudoContent(f,V,fe,vi.BEFORE);Os(f)&&(B=!0),Bs(f)||this.cloneChildNodes(f,V,B),Oe&&V.insertBefore(Oe,V.firstChild);var Pe=this.resolvePseudoContent(f,V,_e,vi.AFTER);return Pe&&V.appendChild(Pe),this.counters.pop(be),(re&&(this.options.copyStyles||Ni(f))&&!Ss(f)||B)&&va(re,V),(f.scrollTop!==0||f.scrollLeft!==0)&&this.scrolledElements.push([V,f.scrollLeft,f.scrollTop]),(Pi(f)||Mi(f))&&(Pi(V)||Mi(V))&&(V.value=f.value),V}return f.cloneNode(!1)},w.prototype.resolvePseudoContent=function(f,B,x,V){var re=this;if(!x)return;var fe=x.content,_e=B.ownerDocument;if(!_e||!fe||fe==="none"||fe==="-moz-alt-content"||x.display==="none")return;this.counters.parse(new qa(this.context,x));var be=new DA(this.context,x),Oe=_e.createElement("html2canvaspseudoelement");va(x,Oe),be.content.forEach(function(Ge){if(Ge.type===0)Oe.appendChild(_e.createTextNode(Ge.value));else if(Ge.type===22){var Ve=_e.createElement("img");Ve.src=Ge.value,Ve.style.opacity="1",Oe.appendChild(Ve)}else if(Ge.type===18){if(Ge.name==="attr"){var dt=Ge.values.filter(pr);dt.length&&Oe.appendChild(_e.createTextNode(f.getAttribute(dt[0].value)||""))}else if(Ge.name==="counter"){var st=Ge.values.filter(ei),lt=st[0],Dt=st[1];if(lt&&pr(lt)){var ct=re.counters.getCounterValue(lt.value),mt=Dt&&pr(Dt)?qi.parse(re.context,Dt.value):3;Oe.appendChild(_e.createTextNode(gi(ct,mt,!1)))}}else if(Ge.name==="counters"){var rr=Ge.values.filter(ei),lt=rr[0],Yt=rr[1],Dt=rr[2];if(lt&&pr(lt)){var lr=re.counters.getCounterValues(lt.value),ft=Dt&&pr(Dt)?qi.parse(re.context,Dt.value):3,ar=Yt&&Yt.type===0?Yt.value:"",ur=lr.map(function(en){return gi(en,ft,!1)}).join(ar);Oe.appendChild(_e.createTextNode(ur))}}}else if(Ge.type===20)switch(Ge.value){case"open-quote":Oe.appendChild(_e.createTextNode(Za(be.quotes,re.quoteDepth++,!0)));break;case"close-quote":Oe.appendChild(_e.createTextNode(Za(be.quotes,--re.quoteDepth,!1)));break;default:Oe.appendChild(_e.createTextNode(Ge.value))}}),Oe.className=ya+" "+Ea;var Pe=V===vi.BEFORE?" "+ya:" "+Ea;return Ni(B)?B.className.baseValue+=Pe:B.className+=Pe,Oe},w.destroy=function(f){return f.parentNode?(f.parentNode.removeChild(f),!0):!1},w}(),vi;(function(w){w[w.BEFORE=0]="BEFORE",w[w.AFTER=1]="AFTER"})(vi||(vi={}));var Ql=function(w,f){var B=w.createElement("iframe");return B.className="html2canvas-container",B.style.visibility="hidden",B.style.position="fixed",B.style.left="-10000px",B.style.top="0px",B.style.border="0",B.width=f.width.toString(),B.height=f.height.toString(),B.scrolling="no",B.setAttribute(Ms,"true"),w.body.appendChild(B),B},Kl=function(w){return new Promise(function(f){if(w.complete){f();return}if(!w.src){f();return}w.onload=f,w.onerror=f})},jl=function(w){return Promise.all([].slice.call(w.images,0).map(Kl))},Wl=function(w){return new Promise(function(f,B){var x=w.contentWindow;if(!x)return B("No window assigned for iframe");var V=x.document;x.onload=w.onload=function(){x.onload=w.onload=null;var re=setInterval(function(){V.body.childNodes.length>0&&V.readyState==="complete"&&(clearInterval(re),f(w))},50)}})},Gl=["all","d","content"],va=function(w,f){for(var B=w.length-1;B>=0;B--){var x=w.item(B);Gl.indexOf(x)===-1&&f.style.setProperty(x,w.getPropertyValue(x))}return f},Vl=function(w){var f="";return w&&(f+="<!DOCTYPE ",w.name&&(f+=w.name),w.internalSubset&&(f+=w.internalSubset),w.publicId&&(f+='"'+w.publicId+'"'),w.systemId&&(f+='"'+w.systemId+'"'),f+=">"),f},zl=function(w,f,B){w&&w.defaultView&&(f!==w.defaultView.pageXOffset||B!==w.defaultView.pageYOffset)&&w.defaultView.scrollTo(f,B)},Xl=function(w){var f=w[0],B=w[1],x=w[2];f.scrollLeft=B,f.scrollTop=x},Yl=":before",Jl=":after",ya="___html2canvas___pseudoelement_before",Ea="___html2canvas___pseudoelement_after",Hs=`{
|
|
content: "" !important;
|
|
display: none !important;
|
|
}`,$l=function(w){Zl(w,"."+ya+Yl+Hs+`
|
|
.`+Ea+Jl+Hs)},Zl=function(w,f){var B=w.ownerDocument;if(B){var x=B.createElement("style");x.textContent=f,w.appendChild(x)}},Qs=function(){function w(){}return w.getOrigin=function(f){var B=w._link;return B?(B.href=f,B.href=B.href,B.protocol+B.hostname+B.port):"about:blank"},w.isSameOrigin=function(f){return w.getOrigin(f)===w._origin},w.setContext=function(f){w._link=f.document.createElement("a"),w._origin=w.getOrigin(f.location.href)},w._origin="about:blank",w}(),ql=function(){function w(f,B){this.context=f,this._options=B,this._cache={}}return w.prototype.addImage=function(f){var B=Promise.resolve();return this.has(f)||(_a(f)||nu(f))&&(this._cache[f]=this.loadImage(f)).catch(function(){}),B},w.prototype.match=function(f){return this._cache[f]},w.prototype.loadImage=function(f){return G(this,void 0,void 0,function(){var B,x,V,re,fe=this;return U(this,function(_e){switch(_e.label){case 0:return B=Qs.isSameOrigin(f),x=!ba(f)&&this._options.useCORS===!0&&Vr.SUPPORT_CORS_IMAGES&&!B,V=!ba(f)&&!B&&!_a(f)&&typeof this._options.proxy=="string"&&Vr.SUPPORT_CORS_XHR&&!x,!B&&this._options.allowTaint===!1&&!ba(f)&&!_a(f)&&!V&&!x?[2]:(re=f,V?[4,this.proxy(re)]:[3,2]);case 1:re=_e.sent(),_e.label=2;case 2:return this.context.logger.debug("Added image "+f.substring(0,256)),[4,new Promise(function(be,Oe){var Pe=new Image;Pe.onload=function(){return be(Pe)},Pe.onerror=Oe,(iu(re)||x)&&(Pe.crossOrigin="anonymous"),Pe.src=re,Pe.complete===!0&&setTimeout(function(){return be(Pe)},500),fe._options.imageTimeout>0&&setTimeout(function(){return Oe("Timed out ("+fe._options.imageTimeout+"ms) loading image")},fe._options.imageTimeout)})];case 3:return[2,_e.sent()]}})})},w.prototype.has=function(f){return typeof this._cache[f]!="undefined"},w.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},w.prototype.proxy=function(f){var B=this,x=this._options.proxy;if(!x)throw new Error("No proxy defined");var V=f.substring(0,256);return new Promise(function(re,fe){var _e=Vr.SUPPORT_RESPONSE_TYPE?"blob":"text",be=new XMLHttpRequest;be.onload=function(){if(be.status===200)if(_e==="text")re(be.response);else{var Ge=new FileReader;Ge.addEventListener("load",function(){return re(Ge.result)},!1),Ge.addEventListener("error",function(Ve){return fe(Ve)},!1),Ge.readAsDataURL(be.response)}else fe("Failed to proxy resource "+V+" with status code "+be.status)},be.onerror=fe;var Oe=x.indexOf("?")>-1?"&":"?";if(be.open("GET",""+x+Oe+"url="+encodeURIComponent(f)+"&responseType="+_e),_e!=="text"&&be instanceof XMLHttpRequest&&(be.responseType=_e),B._options.imageTimeout){var Pe=B._options.imageTimeout;be.timeout=Pe,be.ontimeout=function(){return fe("Timed out ("+Pe+"ms) proxying "+V)}}be.send()})},w}(),eu=/^data:image\/svg\+xml/i,tu=/^data:image\/.*;base64,/i,ru=/^data:image\/.*/i,nu=function(w){return Vr.SUPPORT_SVG_DRAWING||!au(w)},ba=function(w){return ru.test(w)},iu=function(w){return tu.test(w)},_a=function(w){return w.substr(0,4)==="blob"},au=function(w){return w.substr(-3).toLowerCase()==="svg"||eu.test(w)},ht=function(){function w(f,B){this.type=0,this.x=f,this.y=B}return w.prototype.add=function(f,B){return new w(this.x+f,this.y+B)},w}(),ai=function(w,f,B){return new ht(w.x+(f.x-w.x)*B,w.y+(f.y-w.y)*B)},ki=function(){function w(f,B,x,V){this.type=1,this.start=f,this.startControl=B,this.endControl=x,this.end=V}return w.prototype.subdivide=function(f,B){var x=ai(this.start,this.startControl,f),V=ai(this.startControl,this.endControl,f),re=ai(this.endControl,this.end,f),fe=ai(x,V,f),_e=ai(V,re,f),be=ai(fe,_e,f);return B?new w(this.start,x,fe,be):new w(be,_e,re,this.end)},w.prototype.add=function(f,B){return new w(this.start.add(f,B),this.startControl.add(f,B),this.endControl.add(f,B),this.end.add(f,B))},w.prototype.reverse=function(){return new w(this.end,this.endControl,this.startControl,this.start)},w}(),pn=function(w){return w.type===1},su=function(){function w(f){var B=f.styles,x=f.bounds,V=hi(B.borderTopLeftRadius,x.width,x.height),re=V[0],fe=V[1],_e=hi(B.borderTopRightRadius,x.width,x.height),be=_e[0],Oe=_e[1],Pe=hi(B.borderBottomRightRadius,x.width,x.height),Ge=Pe[0],Ve=Pe[1],dt=hi(B.borderBottomLeftRadius,x.width,x.height),st=dt[0],lt=dt[1],Dt=[];Dt.push((re+be)/x.width),Dt.push((st+Ge)/x.width),Dt.push((fe+lt)/x.height),Dt.push((Oe+Ve)/x.height);var ct=Math.max.apply(Math,Dt);ct>1&&(re/=ct,fe/=ct,be/=ct,Oe/=ct,Ge/=ct,Ve/=ct,st/=ct,lt/=ct);var mt=x.width-be,rr=x.height-Ve,Yt=x.width-Ge,lr=x.height-lt,ft=B.borderTopWidth,ar=B.borderRightWidth,ur=B.borderBottomWidth,Xt=B.borderLeftWidth,An=wr(B.paddingTop,f.bounds.width),en=wr(B.paddingRight,f.bounds.width),hn=wr(B.paddingBottom,f.bounds.width),Qr=wr(B.paddingLeft,f.bounds.width);this.topLeftBorderDoubleOuterBox=re>0||fe>0?Tr(x.left+Xt/3,x.top+ft/3,re-Xt/3,fe-ft/3,cr.TOP_LEFT):new ht(x.left+Xt/3,x.top+ft/3),this.topRightBorderDoubleOuterBox=re>0||fe>0?Tr(x.left+mt,x.top+ft/3,be-ar/3,Oe-ft/3,cr.TOP_RIGHT):new ht(x.left+x.width-ar/3,x.top+ft/3),this.bottomRightBorderDoubleOuterBox=Ge>0||Ve>0?Tr(x.left+Yt,x.top+rr,Ge-ar/3,Ve-ur/3,cr.BOTTOM_RIGHT):new ht(x.left+x.width-ar/3,x.top+x.height-ur/3),this.bottomLeftBorderDoubleOuterBox=st>0||lt>0?Tr(x.left+Xt/3,x.top+lr,st-Xt/3,lt-ur/3,cr.BOTTOM_LEFT):new ht(x.left+Xt/3,x.top+x.height-ur/3),this.topLeftBorderDoubleInnerBox=re>0||fe>0?Tr(x.left+Xt*2/3,x.top+ft*2/3,re-Xt*2/3,fe-ft*2/3,cr.TOP_LEFT):new ht(x.left+Xt*2/3,x.top+ft*2/3),this.topRightBorderDoubleInnerBox=re>0||fe>0?Tr(x.left+mt,x.top+ft*2/3,be-ar*2/3,Oe-ft*2/3,cr.TOP_RIGHT):new ht(x.left+x.width-ar*2/3,x.top+ft*2/3),this.bottomRightBorderDoubleInnerBox=Ge>0||Ve>0?Tr(x.left+Yt,x.top+rr,Ge-ar*2/3,Ve-ur*2/3,cr.BOTTOM_RIGHT):new ht(x.left+x.width-ar*2/3,x.top+x.height-ur*2/3),this.bottomLeftBorderDoubleInnerBox=st>0||lt>0?Tr(x.left+Xt*2/3,x.top+lr,st-Xt*2/3,lt-ur*2/3,cr.BOTTOM_LEFT):new ht(x.left+Xt*2/3,x.top+x.height-ur*2/3),this.topLeftBorderStroke=re>0||fe>0?Tr(x.left+Xt/2,x.top+ft/2,re-Xt/2,fe-ft/2,cr.TOP_LEFT):new ht(x.left+Xt/2,x.top+ft/2),this.topRightBorderStroke=re>0||fe>0?Tr(x.left+mt,x.top+ft/2,be-ar/2,Oe-ft/2,cr.TOP_RIGHT):new ht(x.left+x.width-ar/2,x.top+ft/2),this.bottomRightBorderStroke=Ge>0||Ve>0?Tr(x.left+Yt,x.top+rr,Ge-ar/2,Ve-ur/2,cr.BOTTOM_RIGHT):new ht(x.left+x.width-ar/2,x.top+x.height-ur/2),this.bottomLeftBorderStroke=st>0||lt>0?Tr(x.left+Xt/2,x.top+lr,st-Xt/2,lt-ur/2,cr.BOTTOM_LEFT):new ht(x.left+Xt/2,x.top+x.height-ur/2),this.topLeftBorderBox=re>0||fe>0?Tr(x.left,x.top,re,fe,cr.TOP_LEFT):new ht(x.left,x.top),this.topRightBorderBox=be>0||Oe>0?Tr(x.left+mt,x.top,be,Oe,cr.TOP_RIGHT):new ht(x.left+x.width,x.top),this.bottomRightBorderBox=Ge>0||Ve>0?Tr(x.left+Yt,x.top+rr,Ge,Ve,cr.BOTTOM_RIGHT):new ht(x.left+x.width,x.top+x.height),this.bottomLeftBorderBox=st>0||lt>0?Tr(x.left,x.top+lr,st,lt,cr.BOTTOM_LEFT):new ht(x.left,x.top+x.height),this.topLeftPaddingBox=re>0||fe>0?Tr(x.left+Xt,x.top+ft,Math.max(0,re-Xt),Math.max(0,fe-ft),cr.TOP_LEFT):new ht(x.left+Xt,x.top+ft),this.topRightPaddingBox=be>0||Oe>0?Tr(x.left+Math.min(mt,x.width-ar),x.top+ft,mt>x.width+ar?0:Math.max(0,be-ar),Math.max(0,Oe-ft),cr.TOP_RIGHT):new ht(x.left+x.width-ar,x.top+ft),this.bottomRightPaddingBox=Ge>0||Ve>0?Tr(x.left+Math.min(Yt,x.width-Xt),x.top+Math.min(rr,x.height-ur),Math.max(0,Ge-ar),Math.max(0,Ve-ur),cr.BOTTOM_RIGHT):new ht(x.left+x.width-ar,x.top+x.height-ur),this.bottomLeftPaddingBox=st>0||lt>0?Tr(x.left+Xt,x.top+Math.min(lr,x.height-ur),Math.max(0,st-Xt),Math.max(0,lt-ur),cr.BOTTOM_LEFT):new ht(x.left+Xt,x.top+x.height-ur),this.topLeftContentBox=re>0||fe>0?Tr(x.left+Xt+Qr,x.top+ft+An,Math.max(0,re-(Xt+Qr)),Math.max(0,fe-(ft+An)),cr.TOP_LEFT):new ht(x.left+Xt+Qr,x.top+ft+An),this.topRightContentBox=be>0||Oe>0?Tr(x.left+Math.min(mt,x.width+Xt+Qr),x.top+ft+An,mt>x.width+Xt+Qr?0:be-Xt+Qr,Oe-(ft+An),cr.TOP_RIGHT):new ht(x.left+x.width-(ar+en),x.top+ft+An),this.bottomRightContentBox=Ge>0||Ve>0?Tr(x.left+Math.min(Yt,x.width-(Xt+Qr)),x.top+Math.min(rr,x.height+ft+An),Math.max(0,Ge-(ar+en)),Ve-(ur+hn),cr.BOTTOM_RIGHT):new ht(x.left+x.width-(ar+en),x.top+x.height-(ur+hn)),this.bottomLeftContentBox=st>0||lt>0?Tr(x.left+Xt+Qr,x.top+lr,Math.max(0,st-(Xt+Qr)),lt-(ur+hn),cr.BOTTOM_LEFT):new ht(x.left+Xt+Qr,x.top+x.height-(ur+hn))}return w}(),cr;(function(w){w[w.TOP_LEFT=0]="TOP_LEFT",w[w.TOP_RIGHT=1]="TOP_RIGHT",w[w.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",w[w.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(cr||(cr={}));var Tr=function(w,f,B,x,V){var re=4*((Math.sqrt(2)-1)/3),fe=B*re,_e=x*re,be=w+B,Oe=f+x;switch(V){case cr.TOP_LEFT:return new ki(new ht(w,Oe),new ht(w,Oe-_e),new ht(be-fe,f),new ht(be,f));case cr.TOP_RIGHT:return new ki(new ht(w,f),new ht(w+fe,f),new ht(be,Oe-_e),new ht(be,Oe));case cr.BOTTOM_RIGHT:return new ki(new ht(be,f),new ht(be,f+_e),new ht(w+fe,Oe),new ht(w,Oe));case cr.BOTTOM_LEFT:default:return new ki(new ht(be,Oe),new ht(be-fe,Oe),new ht(w,f+_e),new ht(w,f))}},Hi=function(w){return[w.topLeftBorderBox,w.topRightBorderBox,w.bottomRightBorderBox,w.bottomLeftBorderBox]},ou=function(w){return[w.topLeftContentBox,w.topRightContentBox,w.bottomRightContentBox,w.bottomLeftContentBox]},Qi=function(w){return[w.topLeftPaddingBox,w.topRightPaddingBox,w.bottomRightPaddingBox,w.bottomLeftPaddingBox]},Au=function(){function w(f,B,x){this.offsetX=f,this.offsetY=B,this.matrix=x,this.type=0,this.target=2|4}return w}(),Ki=function(){function w(f,B){this.path=f,this.target=B,this.type=1}return w}(),lu=function(){function w(f){this.opacity=f,this.type=2,this.target=2|4}return w}(),uu=function(w){return w.type===0},Ks=function(w){return w.type===1},hu=function(w){return w.type===2},js=function(w,f){return w.length===f.length?w.some(function(B,x){return B===f[x]}):!1},cu=function(w,f,B,x,V){return w.map(function(re,fe){switch(fe){case 0:return re.add(f,B);case 1:return re.add(f+x,B);case 2:return re.add(f+x,B+V);case 3:return re.add(f,B+V)}return re})},Ws=function(){function w(f){this.element=f,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return w}(),Gs=function(){function w(f,B){if(this.container=f,this.parent=B,this.effects=[],this.curves=new su(this.container),this.container.styles.opacity<1&&this.effects.push(new lu(this.container.styles.opacity)),this.container.styles.transform!==null){var x=this.container.bounds.left+this.container.styles.transformOrigin[0].number,V=this.container.bounds.top+this.container.styles.transformOrigin[1].number,re=this.container.styles.transform;this.effects.push(new Au(x,V,re))}if(this.container.styles.overflowX!==0){var fe=Hi(this.curves),_e=Qi(this.curves);js(fe,_e)?this.effects.push(new Ki(fe,2|4)):(this.effects.push(new Ki(fe,2)),this.effects.push(new Ki(_e,4)))}}return w.prototype.getEffects=function(f){for(var B=[2,3].indexOf(this.container.styles.position)===-1,x=this.parent,V=this.effects.slice(0);x;){var re=x.effects.filter(function(be){return!Ks(be)});if(B||x.container.styles.position!==0||!x.parent){if(V.unshift.apply(V,re),B=[2,3].indexOf(x.container.styles.position)===-1,x.container.styles.overflowX!==0){var fe=Hi(x.curves),_e=Qi(x.curves);js(fe,_e)||V.unshift(new Ki(_e,2|4))}}else V.unshift.apply(V,re);x=x.parent}return V.filter(function(be){return Mr(be.target,f)})},w}(),wa=function(w,f,B,x){w.container.elements.forEach(function(V){var re=Mr(V.flags,4),fe=Mr(V.flags,2),_e=new Gs(V,w);Mr(V.styles.display,2048)&&x.push(_e);var be=Mr(V.flags,8)?[]:x;if(re||fe){var Oe=re||V.styles.isPositioned()?B:f,Pe=new Ws(_e);if(V.styles.isPositioned()||V.styles.opacity<1||V.styles.isTransformed()){var Ge=V.styles.zIndex.order;if(Ge<0){var Ve=0;Oe.negativeZIndex.some(function(st,lt){return Ge>st.element.container.styles.zIndex.order?(Ve=lt,!1):Ve>0}),Oe.negativeZIndex.splice(Ve,0,Pe)}else if(Ge>0){var dt=0;Oe.positiveZIndex.some(function(st,lt){return Ge>=st.element.container.styles.zIndex.order?(dt=lt+1,!1):dt>0}),Oe.positiveZIndex.splice(dt,0,Pe)}else Oe.zeroOrAutoZIndexOrTransformedOrOpacity.push(Pe)}else V.styles.isFloating()?Oe.nonPositionedFloats.push(Pe):Oe.nonPositionedInlineLevel.push(Pe);wa(_e,Pe,re?Pe:B,be)}else V.styles.isInlineLevel()?f.inlineLevel.push(_e):f.nonInlineLevel.push(_e),wa(_e,f,B,be);Mr(V.flags,8)&&Vs(V,be)})},Vs=function(w,f){for(var B=w instanceof ca?w.start:1,x=w instanceof ca?w.reversed:!1,V=0;V<f.length;V++){var re=f[V];re.container instanceof gs&&typeof re.container.value=="number"&&re.container.value!==0&&(B=re.container.value),re.listValue=gi(B,re.container.styles.listStyleType,!0),B+=x?-1:1}},du=function(w){var f=new Gs(w,null),B=new Ws(f),x=[];return wa(f,B,B,x),Vs(f.container,x),B},zs=function(w,f){switch(f){case 0:return mn(w.topLeftBorderBox,w.topLeftPaddingBox,w.topRightBorderBox,w.topRightPaddingBox);case 1:return mn(w.topRightBorderBox,w.topRightPaddingBox,w.bottomRightBorderBox,w.bottomRightPaddingBox);case 2:return mn(w.bottomRightBorderBox,w.bottomRightPaddingBox,w.bottomLeftBorderBox,w.bottomLeftPaddingBox);case 3:default:return mn(w.bottomLeftBorderBox,w.bottomLeftPaddingBox,w.topLeftBorderBox,w.topLeftPaddingBox)}},fu=function(w,f){switch(f){case 0:return mn(w.topLeftBorderBox,w.topLeftBorderDoubleOuterBox,w.topRightBorderBox,w.topRightBorderDoubleOuterBox);case 1:return mn(w.topRightBorderBox,w.topRightBorderDoubleOuterBox,w.bottomRightBorderBox,w.bottomRightBorderDoubleOuterBox);case 2:return mn(w.bottomRightBorderBox,w.bottomRightBorderDoubleOuterBox,w.bottomLeftBorderBox,w.bottomLeftBorderDoubleOuterBox);case 3:default:return mn(w.bottomLeftBorderBox,w.bottomLeftBorderDoubleOuterBox,w.topLeftBorderBox,w.topLeftBorderDoubleOuterBox)}},pu=function(w,f){switch(f){case 0:return mn(w.topLeftBorderDoubleInnerBox,w.topLeftPaddingBox,w.topRightBorderDoubleInnerBox,w.topRightPaddingBox);case 1:return mn(w.topRightBorderDoubleInnerBox,w.topRightPaddingBox,w.bottomRightBorderDoubleInnerBox,w.bottomRightPaddingBox);case 2:return mn(w.bottomRightBorderDoubleInnerBox,w.bottomRightPaddingBox,w.bottomLeftBorderDoubleInnerBox,w.bottomLeftPaddingBox);case 3:default:return mn(w.bottomLeftBorderDoubleInnerBox,w.bottomLeftPaddingBox,w.topLeftBorderDoubleInnerBox,w.topLeftPaddingBox)}},mu=function(w,f){switch(f){case 0:return ji(w.topLeftBorderStroke,w.topRightBorderStroke);case 1:return ji(w.topRightBorderStroke,w.bottomRightBorderStroke);case 2:return ji(w.bottomRightBorderStroke,w.bottomLeftBorderStroke);case 3:default:return ji(w.bottomLeftBorderStroke,w.topLeftBorderStroke)}},ji=function(w,f){var B=[];return pn(w)?B.push(w.subdivide(.5,!1)):B.push(w),pn(f)?B.push(f.subdivide(.5,!0)):B.push(f),B},mn=function(w,f,B,x){var V=[];return pn(w)?V.push(w.subdivide(.5,!1)):V.push(w),pn(B)?V.push(B.subdivide(.5,!0)):V.push(B),pn(x)?V.push(x.subdivide(.5,!0).reverse()):V.push(x),pn(f)?V.push(f.subdivide(.5,!1).reverse()):V.push(f),V},Xs=function(w){var f=w.bounds,B=w.styles;return f.add(B.borderLeftWidth,B.borderTopWidth,-(B.borderRightWidth+B.borderLeftWidth),-(B.borderTopWidth+B.borderBottomWidth))},Wi=function(w){var f=w.styles,B=w.bounds,x=wr(f.paddingLeft,B.width),V=wr(f.paddingRight,B.width),re=wr(f.paddingTop,B.width),fe=wr(f.paddingBottom,B.width);return B.add(x+f.borderLeftWidth,re+f.borderTopWidth,-(f.borderRightWidth+f.borderLeftWidth+x+V),-(f.borderTopWidth+f.borderBottomWidth+re+fe))},gu=function(w,f){return w===0?f.bounds:w===2?Wi(f):Xs(f)},vu=function(w,f){return w===0?f.bounds:w===2?Wi(f):Xs(f)},Ca=function(w,f,B){var x=gu(oi(w.styles.backgroundOrigin,f),w),V=vu(oi(w.styles.backgroundClip,f),w),re=yu(oi(w.styles.backgroundSize,f),B,x),fe=re[0],_e=re[1],be=hi(oi(w.styles.backgroundPosition,f),x.width-fe,x.height-_e),Oe=Eu(oi(w.styles.backgroundRepeat,f),be,re,x,V),Pe=Math.round(x.left+be[0]),Ge=Math.round(x.top+be[1]);return[Oe,Pe,Ge,fe,_e]},si=function(w){return pr(w)&&w.value===ti.AUTO},Gi=function(w){return typeof w=="number"},yu=function(w,f,B){var x=f[0],V=f[1],re=f[2],fe=w[0],_e=w[1];if(!fe)return[0,0];if(Fr(fe)&&_e&&Fr(_e))return[wr(fe,B.width),wr(_e,B.height)];var be=Gi(re);if(pr(fe)&&(fe.value===ti.CONTAIN||fe.value===ti.COVER)){if(Gi(re)){var Oe=B.width/B.height;return Oe<re!==(fe.value===ti.COVER)?[B.width,B.width/re]:[B.height*re,B.height]}return[B.width,B.height]}var Pe=Gi(x),Ge=Gi(V),Ve=Pe||Ge;if(si(fe)&&(!_e||si(_e))){if(Pe&&Ge)return[x,V];if(!be&&!Ve)return[B.width,B.height];if(Ve&&be){var dt=Pe?x:V*re,st=Ge?V:x/re;return[dt,st]}var lt=Pe?x:B.width,Dt=Ge?V:B.height;return[lt,Dt]}if(be){var ct=0,mt=0;return Fr(fe)?ct=wr(fe,B.width):Fr(_e)&&(mt=wr(_e,B.height)),si(fe)?ct=mt*re:(!_e||si(_e))&&(mt=ct/re),[ct,mt]}var rr=null,Yt=null;if(Fr(fe)?rr=wr(fe,B.width):_e&&Fr(_e)&&(Yt=wr(_e,B.height)),rr!==null&&(!_e||si(_e))&&(Yt=Pe&&Ge?rr/x*V:B.height),Yt!==null&&si(fe)&&(rr=Pe&&Ge?Yt/V*x:B.width),rr!==null&&Yt!==null)return[rr,Yt];throw new Error("Unable to calculate background-size for element")},oi=function(w,f){var B=w[f];return typeof B=="undefined"?w[0]:B},Eu=function(w,f,B,x,V){var re=f[0],fe=f[1],_e=B[0],be=B[1];switch(w){case 2:return[new ht(Math.round(x.left),Math.round(x.top+fe)),new ht(Math.round(x.left+x.width),Math.round(x.top+fe)),new ht(Math.round(x.left+x.width),Math.round(be+x.top+fe)),new ht(Math.round(x.left),Math.round(be+x.top+fe))];case 3:return[new ht(Math.round(x.left+re),Math.round(x.top)),new ht(Math.round(x.left+re+_e),Math.round(x.top)),new ht(Math.round(x.left+re+_e),Math.round(x.height+x.top)),new ht(Math.round(x.left+re),Math.round(x.height+x.top))];case 1:return[new ht(Math.round(x.left+re),Math.round(x.top+fe)),new ht(Math.round(x.left+re+_e),Math.round(x.top+fe)),new ht(Math.round(x.left+re+_e),Math.round(x.top+fe+be)),new ht(Math.round(x.left+re),Math.round(x.top+fe+be))];default:return[new ht(Math.round(V.left),Math.round(V.top)),new ht(Math.round(V.left+V.width),Math.round(V.top)),new ht(Math.round(V.left+V.width),Math.round(V.height+V.top)),new ht(Math.round(V.left),Math.round(V.height+V.top))]}},bu="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ys="Hidden Text",_u=function(){function w(f){this._data={},this._document=f}return w.prototype.parseMetrics=function(f,B){var x=this._document.createElement("div"),V=this._document.createElement("img"),re=this._document.createElement("span"),fe=this._document.body;x.style.visibility="hidden",x.style.fontFamily=f,x.style.fontSize=B,x.style.margin="0",x.style.padding="0",x.style.whiteSpace="nowrap",fe.appendChild(x),V.src=bu,V.width=1,V.height=1,V.style.margin="0",V.style.padding="0",V.style.verticalAlign="baseline",re.style.fontFamily=f,re.style.fontSize=B,re.style.margin="0",re.style.padding="0",re.appendChild(this._document.createTextNode(Ys)),x.appendChild(re),x.appendChild(V);var _e=V.offsetTop-re.offsetTop+2;x.removeChild(re),x.appendChild(this._document.createTextNode(Ys)),x.style.lineHeight="normal",V.style.verticalAlign="super";var be=V.offsetTop-x.offsetTop+2;return fe.removeChild(x),{baseline:_e,middle:be}},w.prototype.getMetrics=function(f,B){var x=f+" "+B;return typeof this._data[x]=="undefined"&&(this._data[x]=this.parseMetrics(f,B)),this._data[x]},w}(),Js=function(){function w(f,B){this.context=f,this.options=B}return w}(),wu=1e4,Cu=function(w){K(f,w);function f(B,x){var V=w.call(this,B,x)||this;return V._activeEffects=[],V.canvas=x.canvas?x.canvas:document.createElement("canvas"),V.ctx=V.canvas.getContext("2d"),x.canvas||(V.canvas.width=Math.floor(x.width*x.scale),V.canvas.height=Math.floor(x.height*x.scale),V.canvas.style.width=x.width+"px",V.canvas.style.height=x.height+"px"),V.fontMetrics=new _u(document),V.ctx.scale(V.options.scale,V.options.scale),V.ctx.translate(-x.x,-x.y),V.ctx.textBaseline="bottom",V._activeEffects=[],V.context.logger.debug("Canvas renderer initialized ("+x.width+"x"+x.height+") with scale "+x.scale),V}return f.prototype.applyEffects=function(B){for(var x=this;this._activeEffects.length;)this.popEffect();B.forEach(function(V){return x.applyEffect(V)})},f.prototype.applyEffect=function(B){this.ctx.save(),hu(B)&&(this.ctx.globalAlpha=B.opacity),uu(B)&&(this.ctx.translate(B.offsetX,B.offsetY),this.ctx.transform(B.matrix[0],B.matrix[1],B.matrix[2],B.matrix[3],B.matrix[4],B.matrix[5]),this.ctx.translate(-B.offsetX,-B.offsetY)),Ks(B)&&(this.path(B.path),this.ctx.clip()),this._activeEffects.push(B)},f.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},f.prototype.renderStack=function(B){return G(this,void 0,void 0,function(){var x;return U(this,function(V){switch(V.label){case 0:return x=B.element.container.styles,x.isVisible()?[4,this.renderStackContent(B)]:[3,2];case 1:V.sent(),V.label=2;case 2:return[2]}})})},f.prototype.renderNode=function(B){return G(this,void 0,void 0,function(){return U(this,function(x){switch(x.label){case 0:if(Mr(B.container.flags,16))debugger;return B.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(B)]:[3,3];case 1:return x.sent(),[4,this.renderNodeContent(B)];case 2:x.sent(),x.label=3;case 3:return[2]}})})},f.prototype.renderTextWithLetterSpacing=function(B,x,V){var re=this;if(x===0)this.ctx.fillText(B.text,B.bounds.left,B.bounds.top+V);else{var fe=ha(B.text);fe.reduce(function(_e,be){return re.ctx.fillText(be,_e,B.bounds.top+V),_e+re.ctx.measureText(be).width},B.bounds.left)}},f.prototype.createFontStyle=function(B){var x=B.fontVariant.filter(function(fe){return fe==="normal"||fe==="small-caps"}).join(""),V=Iu(B.fontFamily).join(", "),re=ui(B.fontSize)?""+B.fontSize.number+B.fontSize.unit:B.fontSize.number+"px";return[[B.fontStyle,x,B.fontWeight,re,V].join(" "),V,re]},f.prototype.renderTextNode=function(B,x){return G(this,void 0,void 0,function(){var V,re,fe,_e,be,Oe,Pe,Ge,Ve=this;return U(this,function(dt){return V=this.createFontStyle(x),re=V[0],fe=V[1],_e=V[2],this.ctx.font=re,this.ctx.direction=x.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",be=this.fontMetrics.getMetrics(fe,_e),Oe=be.baseline,Pe=be.middle,Ge=x.paintOrder,B.textBounds.forEach(function(st){Ge.forEach(function(lt){switch(lt){case 0:Ve.ctx.fillStyle=Hr(x.color),Ve.renderTextWithLetterSpacing(st,x.letterSpacing,Oe);var Dt=x.textShadow;Dt.length&&st.text.trim().length&&(Dt.slice(0).reverse().forEach(function(ct){Ve.ctx.shadowColor=Hr(ct.color),Ve.ctx.shadowOffsetX=ct.offsetX.number*Ve.options.scale,Ve.ctx.shadowOffsetY=ct.offsetY.number*Ve.options.scale,Ve.ctx.shadowBlur=ct.blur.number,Ve.renderTextWithLetterSpacing(st,x.letterSpacing,Oe)}),Ve.ctx.shadowColor="",Ve.ctx.shadowOffsetX=0,Ve.ctx.shadowOffsetY=0,Ve.ctx.shadowBlur=0),x.textDecorationLine.length&&(Ve.ctx.fillStyle=Hr(x.textDecorationColor||x.color),x.textDecorationLine.forEach(function(ct){switch(ct){case 1:Ve.ctx.fillRect(st.bounds.left,Math.round(st.bounds.top+Oe),st.bounds.width,1);break;case 2:Ve.ctx.fillRect(st.bounds.left,Math.round(st.bounds.top),st.bounds.width,1);break;case 3:Ve.ctx.fillRect(st.bounds.left,Math.ceil(st.bounds.top+Pe),st.bounds.width,1);break}}));break;case 1:x.webkitTextStrokeWidth&&st.text.trim().length&&(Ve.ctx.strokeStyle=Hr(x.webkitTextStrokeColor),Ve.ctx.lineWidth=x.webkitTextStrokeWidth,Ve.ctx.lineJoin=window.chrome?"miter":"round",Ve.ctx.strokeText(st.text,st.bounds.left,st.bounds.top+Oe)),Ve.ctx.strokeStyle="",Ve.ctx.lineWidth=0,Ve.ctx.lineJoin="miter";break}})}),[2]})})},f.prototype.renderReplacedElement=function(B,x,V){if(V&&B.intrinsicWidth>0&&B.intrinsicHeight>0){var re=Wi(B),fe=Qi(x);this.path(fe),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(V,0,0,B.intrinsicWidth,B.intrinsicHeight,re.left,re.top,re.width,re.height),this.ctx.restore()}},f.prototype.renderNodeContent=function(B){return G(this,void 0,void 0,function(){var x,V,re,fe,_e,be,Oe,Oe,Pe,Ge,Ve,dt,st,lt,Dt,ct,mt,rr,Yt,Oe,lr,st,ct;return U(this,function(ft){switch(ft.label){case 0:this.applyEffects(B.getEffects(4)),x=B.container,V=B.curves,re=x.styles,fe=0,_e=x.textNodes,ft.label=1;case 1:return fe<_e.length?(be=_e[fe],[4,this.renderTextNode(be,re)]):[3,4];case 2:ft.sent(),ft.label=3;case 3:return fe++,[3,1];case 4:if(!(x instanceof fs))return[3,8];ft.label=5;case 5:return ft.trys.push([5,7,,8]),[4,this.context.cache.match(x.src)];case 6:return Oe=ft.sent(),this.renderReplacedElement(x,V,Oe),[3,8];case 7:return ft.sent(),this.context.logger.error("Error loading image "+x.src),[3,8];case 8:if(x instanceof ps&&this.renderReplacedElement(x,V,x.canvas),!(x instanceof ms))return[3,12];ft.label=9;case 9:return ft.trys.push([9,11,,12]),[4,this.context.cache.match(x.svg)];case 10:return Oe=ft.sent(),this.renderReplacedElement(x,V,Oe),[3,12];case 11:return ft.sent(),this.context.logger.error("Error loading svg "+x.svg.substring(0,255)),[3,12];case 12:return x instanceof bs&&x.tree?(Pe=new f(this.context,{scale:this.options.scale,backgroundColor:x.backgroundColor,x:0,y:0,width:x.width,height:x.height}),[4,Pe.render(x.tree)]):[3,14];case 13:Ge=ft.sent(),x.width&&x.height&&this.ctx.drawImage(Ge,0,0,x.width,x.height,x.bounds.left,x.bounds.top,x.bounds.width,x.bounds.height),ft.label=14;case 14:if(x instanceof da&&(Ve=Math.min(x.bounds.width,x.bounds.height),x.type===Di?x.checked&&(this.ctx.save(),this.path([new ht(x.bounds.left+Ve*.39363,x.bounds.top+Ve*.79),new ht(x.bounds.left+Ve*.16,x.bounds.top+Ve*.5549),new ht(x.bounds.left+Ve*.27347,x.bounds.top+Ve*.44071),new ht(x.bounds.left+Ve*.39694,x.bounds.top+Ve*.5649),new ht(x.bounds.left+Ve*.72983,x.bounds.top+Ve*.23),new ht(x.bounds.left+Ve*.84,x.bounds.top+Ve*.34085),new ht(x.bounds.left+Ve*.39363,x.bounds.top+Ve*.79)]),this.ctx.fillStyle=Hr(vs),this.ctx.fill(),this.ctx.restore()):x.type===Ui&&(x.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(x.bounds.left+Ve/2,x.bounds.top+Ve/2,Ve/4,0,Math.PI*2,!0),this.ctx.fillStyle=Hr(vs),this.ctx.fill(),this.ctx.restore()))),Tu(x)&&x.value.length){dt=this.createFontStyle(re),st=dt[0],lt=dt[1],Dt=this.fontMetrics.getMetrics(st,lt).baseline,this.ctx.font=st,this.ctx.fillStyle=Hr(re.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Bu(x.styles.textAlign),ct=Wi(x),mt=0;switch(x.styles.textAlign){case 1:mt+=ct.width/2;break;case 2:mt+=ct.width;break}rr=ct.add(mt,0,0,-ct.height/2+1),this.ctx.save(),this.path([new ht(ct.left,ct.top),new ht(ct.left+ct.width,ct.top),new ht(ct.left+ct.width,ct.top+ct.height),new ht(ct.left,ct.top+ct.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new pi(x.value,rr),re.letterSpacing,Dt),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Mr(x.styles.display,2048))return[3,20];if(!(x.styles.listStyleImage!==null))return[3,19];if(Yt=x.styles.listStyleImage,!(Yt.type===0))return[3,18];Oe=void 0,lr=Yt.url,ft.label=15;case 15:return ft.trys.push([15,17,,18]),[4,this.context.cache.match(lr)];case 16:return Oe=ft.sent(),this.ctx.drawImage(Oe,x.bounds.left-(Oe.width+10),x.bounds.top),[3,18];case 17:return ft.sent(),this.context.logger.error("Error loading list-style-image "+lr),[3,18];case 18:return[3,20];case 19:B.listValue&&x.styles.listStyleType!==-1&&(st=this.createFontStyle(re)[0],this.ctx.font=st,this.ctx.fillStyle=Hr(re.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",ct=new Y(x.bounds.left,x.bounds.top+wr(x.styles.paddingTop,x.bounds.width),x.bounds.width,Ya(re.lineHeight,re.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new pi(B.listValue,ct),re.letterSpacing,Ya(re.lineHeight,re.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),ft.label=20;case 20:return[2]}})})},f.prototype.renderStackContent=function(B){return G(this,void 0,void 0,function(){var x,V,re,fe,_e,re,be,Oe,re,Pe,Ge,re,Ve,dt,re,st,lt,re,Dt,ct,re;return U(this,function(mt){switch(mt.label){case 0:if(Mr(B.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(B.element)];case 1:mt.sent(),x=0,V=B.negativeZIndex,mt.label=2;case 2:return x<V.length?(re=V[x],[4,this.renderStack(re)]):[3,5];case 3:mt.sent(),mt.label=4;case 4:return x++,[3,2];case 5:return[4,this.renderNodeContent(B.element)];case 6:mt.sent(),fe=0,_e=B.nonInlineLevel,mt.label=7;case 7:return fe<_e.length?(re=_e[fe],[4,this.renderNode(re)]):[3,10];case 8:mt.sent(),mt.label=9;case 9:return fe++,[3,7];case 10:be=0,Oe=B.nonPositionedFloats,mt.label=11;case 11:return be<Oe.length?(re=Oe[be],[4,this.renderStack(re)]):[3,14];case 12:mt.sent(),mt.label=13;case 13:return be++,[3,11];case 14:Pe=0,Ge=B.nonPositionedInlineLevel,mt.label=15;case 15:return Pe<Ge.length?(re=Ge[Pe],[4,this.renderStack(re)]):[3,18];case 16:mt.sent(),mt.label=17;case 17:return Pe++,[3,15];case 18:Ve=0,dt=B.inlineLevel,mt.label=19;case 19:return Ve<dt.length?(re=dt[Ve],[4,this.renderNode(re)]):[3,22];case 20:mt.sent(),mt.label=21;case 21:return Ve++,[3,19];case 22:st=0,lt=B.zeroOrAutoZIndexOrTransformedOrOpacity,mt.label=23;case 23:return st<lt.length?(re=lt[st],[4,this.renderStack(re)]):[3,26];case 24:mt.sent(),mt.label=25;case 25:return st++,[3,23];case 26:Dt=0,ct=B.positiveZIndex,mt.label=27;case 27:return Dt<ct.length?(re=ct[Dt],[4,this.renderStack(re)]):[3,30];case 28:mt.sent(),mt.label=29;case 29:return Dt++,[3,27];case 30:return[2]}})})},f.prototype.mask=function(B){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(B.slice(0).reverse()),this.ctx.closePath()},f.prototype.path=function(B){this.ctx.beginPath(),this.formatPath(B),this.ctx.closePath()},f.prototype.formatPath=function(B){var x=this;B.forEach(function(V,re){var fe=pn(V)?V.start:V;re===0?x.ctx.moveTo(fe.x,fe.y):x.ctx.lineTo(fe.x,fe.y),pn(V)&&x.ctx.bezierCurveTo(V.startControl.x,V.startControl.y,V.endControl.x,V.endControl.y,V.end.x,V.end.y)})},f.prototype.renderRepeat=function(B,x,V,re){this.path(B),this.ctx.fillStyle=x,this.ctx.translate(V,re),this.ctx.fill(),this.ctx.translate(-V,-re)},f.prototype.resizeImage=function(B,x,V){var re;if(B.width===x&&B.height===V)return B;var fe=(re=this.canvas.ownerDocument)!==null&&re!==void 0?re:document,_e=fe.createElement("canvas");_e.width=Math.max(1,x),_e.height=Math.max(1,V);var be=_e.getContext("2d");return be.drawImage(B,0,0,B.width,B.height,0,0,x,V),_e},f.prototype.renderBackgroundImage=function(B){return G(this,void 0,void 0,function(){var x,V,re,fe,_e,be;return U(this,function(Oe){switch(Oe.label){case 0:x=B.styles.backgroundImage.length-1,V=function(Pe){var Ge,Ve,dt,st,lt,Dt,ct,mt,rr,Yt,st,lt,Dt,ct,mt,lr,ft,ar,ur,Xt,An,en,hn,Qr,rr,xn,st,Kn,jn,ct,mt,Wn,lt,Dt,Yn,Bn,Gn,Jn,$n,Ln,Zn,Dn;return U(this,function(Ai){switch(Ai.label){case 0:if(!(Pe.type===0))return[3,5];Ge=void 0,Ve=Pe.url,Ai.label=1;case 1:return Ai.trys.push([1,3,,4]),[4,re.context.cache.match(Ve)];case 2:return Ge=Ai.sent(),[3,4];case 3:return Ai.sent(),re.context.logger.error("Error loading background-image "+Ve),[3,4];case 4:return Ge&&(dt=Ca(B,x,[Ge.width,Ge.height,Ge.width/Ge.height]),st=dt[0],lt=dt[1],Dt=dt[2],ct=dt[3],mt=dt[4],rr=re.ctx.createPattern(re.resizeImage(Ge,ct,mt),"repeat"),re.renderRepeat(st,rr,lt,Dt)),[3,6];case 5:lo(Pe)?(Yt=Ca(B,x,[null,null,null]),st=Yt[0],lt=Yt[1],Dt=Yt[2],ct=Yt[3],mt=Yt[4],lr=io(Pe.angle,ct,mt),ft=lr[0],ar=lr[1],ur=lr[2],Xt=lr[3],An=lr[4],en=document.createElement("canvas"),en.width=ct,en.height=mt,hn=en.getContext("2d"),Qr=hn.createLinearGradient(ar,Xt,ur,An),Ma(Pe.stops,ft).forEach(function(yi){return Qr.addColorStop(yi.stop,Hr(yi.color))}),hn.fillStyle=Qr,hn.fillRect(0,0,ct,mt),ct>0&&mt>0&&(rr=re.ctx.createPattern(en,"repeat"),re.renderRepeat(st,rr,lt,Dt))):uo(Pe)&&(xn=Ca(B,x,[null,null,null]),st=xn[0],Kn=xn[1],jn=xn[2],ct=xn[3],mt=xn[4],Wn=Pe.position.length===0?[Ji]:Pe.position,lt=wr(Wn[0],ct),Dt=wr(Wn[Wn.length-1],mt),Yn=ao(Pe,lt,Dt,ct,mt),Bn=Yn[0],Gn=Yn[1],Bn>0&&Gn>0&&(Jn=re.ctx.createRadialGradient(Kn+lt,jn+Dt,0,Kn+lt,jn+Dt,Bn),Ma(Pe.stops,Bn*2).forEach(function(yi){return Jn.addColorStop(yi.stop,Hr(yi.color))}),re.path(st),re.ctx.fillStyle=Jn,Bn!==Gn?($n=B.bounds.left+.5*B.bounds.width,Ln=B.bounds.top+.5*B.bounds.height,Zn=Gn/Bn,Dn=1/Zn,re.ctx.save(),re.ctx.translate($n,Ln),re.ctx.transform(1,0,0,Zn,0,0),re.ctx.translate(-$n,-Ln),re.ctx.fillRect(Kn,Dn*(jn-Ln)+Ln,ct,mt*Dn),re.ctx.restore()):re.ctx.fill())),Ai.label=6;case 6:return x--,[2]}})},re=this,fe=0,_e=B.styles.backgroundImage.slice(0).reverse(),Oe.label=1;case 1:return fe<_e.length?(be=_e[fe],[5,V(be)]):[3,4];case 2:Oe.sent(),Oe.label=3;case 3:return fe++,[3,1];case 4:return[2]}})})},f.prototype.renderSolidBorder=function(B,x,V){return G(this,void 0,void 0,function(){return U(this,function(re){return this.path(zs(V,x)),this.ctx.fillStyle=Hr(B),this.ctx.fill(),[2]})})},f.prototype.renderDoubleBorder=function(B,x,V,re){return G(this,void 0,void 0,function(){var fe,_e;return U(this,function(be){switch(be.label){case 0:return x<3?[4,this.renderSolidBorder(B,V,re)]:[3,2];case 1:return be.sent(),[2];case 2:return fe=fu(re,V),this.path(fe),this.ctx.fillStyle=Hr(B),this.ctx.fill(),_e=pu(re,V),this.path(_e),this.ctx.fill(),[2]}})})},f.prototype.renderNodeBackgroundAndBorders=function(B){return G(this,void 0,void 0,function(){var x,V,re,fe,_e,be,Oe,Pe,Ge=this;return U(this,function(Ve){switch(Ve.label){case 0:return this.applyEffects(B.getEffects(2)),x=B.container.styles,V=!Mn(x.backgroundColor)||x.backgroundImage.length,re=[{style:x.borderTopStyle,color:x.borderTopColor,width:x.borderTopWidth},{style:x.borderRightStyle,color:x.borderRightColor,width:x.borderRightWidth},{style:x.borderBottomStyle,color:x.borderBottomColor,width:x.borderBottomWidth},{style:x.borderLeftStyle,color:x.borderLeftColor,width:x.borderLeftWidth}],fe=xu(oi(x.backgroundClip,0),B.curves),V||x.boxShadow.length?(this.ctx.save(),this.path(fe),this.ctx.clip(),Mn(x.backgroundColor)||(this.ctx.fillStyle=Hr(x.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(B.container)]):[3,2];case 1:Ve.sent(),this.ctx.restore(),x.boxShadow.slice(0).reverse().forEach(function(dt){Ge.ctx.save();var st=Hi(B.curves),lt=dt.inset?0:wu,Dt=cu(st,-lt+(dt.inset?1:-1)*dt.spread.number,(dt.inset?1:-1)*dt.spread.number,dt.spread.number*(dt.inset?-2:2),dt.spread.number*(dt.inset?-2:2));dt.inset?(Ge.path(st),Ge.ctx.clip(),Ge.mask(Dt)):(Ge.mask(st),Ge.ctx.clip(),Ge.path(Dt)),Ge.ctx.shadowOffsetX=dt.offsetX.number+lt,Ge.ctx.shadowOffsetY=dt.offsetY.number,Ge.ctx.shadowColor=Hr(dt.color),Ge.ctx.shadowBlur=dt.blur.number,Ge.ctx.fillStyle=dt.inset?Hr(dt.color):"rgba(0,0,0,1)",Ge.ctx.fill(),Ge.ctx.restore()}),Ve.label=2;case 2:_e=0,be=0,Oe=re,Ve.label=3;case 3:return be<Oe.length?(Pe=Oe[be],Pe.style!==0&&!Mn(Pe.color)&&Pe.width>0?Pe.style===2?[4,this.renderDashedDottedBorder(Pe.color,Pe.width,_e,B.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return Ve.sent(),[3,11];case 5:return Pe.style===3?[4,this.renderDashedDottedBorder(Pe.color,Pe.width,_e,B.curves,3)]:[3,7];case 6:return Ve.sent(),[3,11];case 7:return Pe.style===4?[4,this.renderDoubleBorder(Pe.color,Pe.width,_e,B.curves)]:[3,9];case 8:return Ve.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Pe.color,_e,B.curves)];case 10:Ve.sent(),Ve.label=11;case 11:_e++,Ve.label=12;case 12:return be++,[3,3];case 13:return[2]}})})},f.prototype.renderDashedDottedBorder=function(B,x,V,re,fe){return G(this,void 0,void 0,function(){var _e,be,Oe,Pe,Ge,Ve,dt,st,lt,Dt,ct,mt,rr,Yt,lr,ft,lr,ft;return U(this,function(ar){return this.ctx.save(),_e=mu(re,V),be=zs(re,V),fe===2&&(this.path(be),this.ctx.clip()),pn(be[0])?(Oe=be[0].start.x,Pe=be[0].start.y):(Oe=be[0].x,Pe=be[0].y),pn(be[1])?(Ge=be[1].end.x,Ve=be[1].end.y):(Ge=be[1].x,Ve=be[1].y),V===0||V===2?dt=Math.abs(Oe-Ge):dt=Math.abs(Pe-Ve),this.ctx.beginPath(),fe===3?this.formatPath(_e):this.formatPath(be.slice(0,2)),st=x<3?x*3:x*2,lt=x<3?x*2:x,fe===3&&(st=x,lt=x),Dt=!0,dt<=st*2?Dt=!1:dt<=st*2+lt?(ct=dt/(2*st+lt),st*=ct,lt*=ct):(mt=Math.floor((dt+lt)/(st+lt)),rr=(dt-mt*st)/(mt-1),Yt=(dt-(mt+1)*st)/mt,lt=Yt<=0||Math.abs(lt-rr)<Math.abs(lt-Yt)?rr:Yt),Dt&&(fe===3?this.ctx.setLineDash([0,st+lt]):this.ctx.setLineDash([st,lt])),fe===3?(this.ctx.lineCap="round",this.ctx.lineWidth=x):this.ctx.lineWidth=x*2+1.1,this.ctx.strokeStyle=Hr(B),this.ctx.stroke(),this.ctx.setLineDash([]),fe===2&&(pn(be[0])&&(lr=be[3],ft=be[0],this.ctx.beginPath(),this.formatPath([new ht(lr.end.x,lr.end.y),new ht(ft.start.x,ft.start.y)]),this.ctx.stroke()),pn(be[1])&&(lr=be[1],ft=be[2],this.ctx.beginPath(),this.formatPath([new ht(lr.end.x,lr.end.y),new ht(ft.start.x,ft.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},f.prototype.render=function(B){return G(this,void 0,void 0,function(){var x;return U(this,function(V){switch(V.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Hr(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),x=du(B),[4,this.renderStack(x)];case 1:return V.sent(),this.applyEffects([]),[2,this.canvas]}})})},f}(Js),Tu=function(w){return w instanceof Es||w instanceof ys?!0:w instanceof da&&w.type!==Ui&&w.type!==Di},xu=function(w,f){switch(w){case 0:return Hi(f);case 2:return ou(f);case 1:default:return Qi(f)}},Bu=function(w){switch(w){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Su=["-apple-system","system-ui"],Iu=function(w){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?w.filter(function(f){return Su.indexOf(f)===-1}):w},Ru=function(w){K(f,w);function f(B,x){var V=w.call(this,B,x)||this;return V.canvas=x.canvas?x.canvas:document.createElement("canvas"),V.ctx=V.canvas.getContext("2d"),V.options=x,V.canvas.width=Math.floor(x.width*x.scale),V.canvas.height=Math.floor(x.height*x.scale),V.canvas.style.width=x.width+"px",V.canvas.style.height=x.height+"px",V.ctx.scale(V.options.scale,V.options.scale),V.ctx.translate(-x.x,-x.y),V.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+x.width+"x"+x.height+" at "+x.x+","+x.y+") with scale "+x.scale),V}return f.prototype.render=function(B){return G(this,void 0,void 0,function(){var x,V;return U(this,function(re){switch(re.label){case 0:return x=ua(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,B),[4,Ou(x)];case 1:return V=re.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Hr(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(V,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},f}(Js),Ou=function(w){return new Promise(function(f,B){var x=new Image;x.onload=function(){f(x)},x.onerror=B,x.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(w))})},Lu=function(){function w(f){var B=f.id,x=f.enabled;this.id=B,this.enabled=x,this.start=Date.now()}return w.prototype.debug=function(){for(var f=[],B=0;B<arguments.length;B++)f[B]=arguments[B];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,S([this.id,this.getTime()+"ms"],f)):this.info.apply(this,f))},w.prototype.getTime=function(){return Date.now()-this.start},w.prototype.info=function(){for(var f=[],B=0;B<arguments.length;B++)f[B]=arguments[B];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,S([this.id,this.getTime()+"ms"],f)))},w.prototype.warn=function(){for(var f=[],B=0;B<arguments.length;B++)f[B]=arguments[B];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,S([this.id,this.getTime()+"ms"],f)):this.info.apply(this,f))},w.prototype.error=function(){for(var f=[],B=0;B<arguments.length;B++)f[B]=arguments[B];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,S([this.id,this.getTime()+"ms"],f)):this.info.apply(this,f))},w.instances={},w}(),Du=function(){function w(f,B){var x;this.windowBounds=B,this.instanceName="#"+w.instanceCount++,this.logger=new Lu({id:this.instanceName,enabled:f.logging}),this.cache=(x=f.cache)!==null&&x!==void 0?x:new ql(this,f)}return w.instanceCount=1,w}(),Uu=function(w,f){return f===void 0&&(f={}),Fu(w,f)};typeof window!="undefined"&&Qs.setContext(window);var Fu=function(w,f){return G(void 0,void 0,void 0,function(){var B,x,V,re,fe,_e,be,Oe,Pe,Ge,Ve,dt,st,lt,Dt,ct,mt,rr,Yt,lr,ft,ar,ft,ur,Xt,An,en,hn,Qr,xn,Kn,jn,Wn,Yn,Bn,Gn,Jn,$n,Ln,Zn;return U(this,function(Dn){switch(Dn.label){case 0:if(!w||typeof w!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(B=w.ownerDocument,!B)throw new Error("Element is not attached to a Document");if(x=B.defaultView,!x)throw new Error("Document is not attached to a Window");return V={allowTaint:(ur=f.allowTaint)!==null&&ur!==void 0?ur:!1,imageTimeout:(Xt=f.imageTimeout)!==null&&Xt!==void 0?Xt:15e3,proxy:f.proxy,useCORS:(An=f.useCORS)!==null&&An!==void 0?An:!1},re=O({logging:(en=f.logging)!==null&&en!==void 0?en:!0,cache:f.cache},V),fe={windowWidth:(hn=f.windowWidth)!==null&&hn!==void 0?hn:x.innerWidth,windowHeight:(Qr=f.windowHeight)!==null&&Qr!==void 0?Qr:x.innerHeight,scrollX:(xn=f.scrollX)!==null&&xn!==void 0?xn:x.pageXOffset,scrollY:(Kn=f.scrollY)!==null&&Kn!==void 0?Kn:x.pageYOffset},_e=new Y(fe.scrollX,fe.scrollY,fe.windowWidth,fe.windowHeight),be=new Du(re,_e),Oe=(jn=f.foreignObjectRendering)!==null&&jn!==void 0?jn:!1,Pe={allowTaint:(Wn=f.allowTaint)!==null&&Wn!==void 0?Wn:!1,onclone:f.onclone,ignoreElements:f.ignoreElements,inlineImages:Oe,copyStyles:Oe},be.logger.debug("Starting document clone with size "+_e.width+"x"+_e.height+" scrolled to "+-_e.left+","+-_e.top),Ge=new ks(be,w,Pe),Ve=Ge.clonedReferenceElement,Ve?[4,Ge.toIFrame(B,_e)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return dt=Dn.sent(),st=pa(Ve)||Nl(Ve)?e(Ve.ownerDocument):M(be,Ve),lt=st.width,Dt=st.height,ct=st.left,mt=st.top,rr=Nu(be,Ve,f.backgroundColor),Yt={canvas:f.canvas,backgroundColor:rr,scale:(Bn=(Yn=f.scale)!==null&&Yn!==void 0?Yn:x.devicePixelRatio)!==null&&Bn!==void 0?Bn:1,x:((Gn=f.x)!==null&&Gn!==void 0?Gn:0)+ct,y:((Jn=f.y)!==null&&Jn!==void 0?Jn:0)+mt,width:($n=f.width)!==null&&$n!==void 0?$n:Math.ceil(lt),height:(Ln=f.height)!==null&&Ln!==void 0?Ln:Math.ceil(Dt)},Oe?(be.logger.debug("Document cloned, using foreign object rendering"),ft=new Ru(be,Yt),[4,ft.render(Ve)]):[3,3];case 2:return lr=Dn.sent(),[3,5];case 3:return be.logger.debug("Document cloned, element located at "+ct+","+mt+" with size "+lt+"x"+Dt+" using computed rendering"),be.logger.debug("Starting DOM parsing"),ar=ws(be,Ve),rr===ar.styles.backgroundColor&&(ar.styles.backgroundColor=Rn.TRANSPARENT),be.logger.debug("Starting renderer for element at "+Yt.x+","+Yt.y+" with size "+Yt.width+"x"+Yt.height),ft=new Cu(be,Yt),[4,ft.render(ar)];case 4:lr=Dn.sent(),Dn.label=5;case 5:return((Zn=f.removeContainer)!==null&&Zn!==void 0?Zn:!0)&&(ks.destroy(dt)||be.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),be.logger.debug("Finished rendering"),[2,lr]}})})},Nu=function(w,f,B){var x=f.ownerDocument,V=x.documentElement?ci(w,getComputedStyle(x.documentElement).backgroundColor):Rn.TRANSPARENT,re=x.body?ci(w,getComputedStyle(x.body).backgroundColor):Rn.TRANSPARENT,fe=typeof B=="string"?ci(w,B):B===null?Rn.TRANSPARENT:4294967295;return f===x.documentElement?Mn(V)?Mn(re)?fe:re:V:fe};return Uu})},wRmb:function(ot,we,Q){"use strict";Q.d(we,"a",function(){return I});var de=Q("rePB"),K=Q("KQm4"),O=Q("VTBJ"),G=Q("Ff2n"),U=Q("q1tI"),S=Q.n(U),Y=Q("Kwbf"),M=Q("Zm9Q"),e=Q("hW8S");function I(i){return Object(M.a)(i).filter(function(A){return U.isValidElement(A)}).map(function(A){var o=A.key,a=A.props,r=a.children,t=Object(G.a)(a,["children"]),b=Object(O.a)({key:o},t);return r&&(b.children=I(r)),b})}function p(i){return i.reduce(function(A,o){var a=o.fixed,r=a===!0?"left":a,t=o.children;return t&&t.length>0?[].concat(Object(K.a)(A),Object(K.a)(p(t).map(function(b){return Object(O.a)({fixed:r},b)}))):[].concat(Object(K.a)(A),[Object(O.a)(Object(O.a)({},o),{},{fixed:r})])},[])}function g(i){for(var A=!0,o=0;o<i.length;o+=1){var a=i[o];if(A&&a.fixed!=="left")A=!1;else if(!A&&a.fixed==="left"){Object(Y.a)(!1,"Index ".concat(o-1," of `columns` missing `fixed='left'` prop."));break}}for(var r=!0,t=i.length-1;t>=0;t-=1){var b=i[t];if(r&&b.fixed!=="right")r=!1;else if(!r&&b.fixed==="right"){Object(Y.a)(!1,"Index ".concat(t+1," of `columns` missing `fixed='right'` prop."));break}}}function c(i){return i.map(function(A){var o=A.fixed,a=Object(G.a)(A,["fixed"]),r=o;return o==="left"?r="right":o==="right"&&(r="left"),Object(O.a)({fixed:r},a)})}function s(i,A){var o=i.prefixCls,a=i.columns,r=i.children,t=i.expandable,b=i.expandedKeys,y=i.getRowKey,E=i.onTriggerExpand,T=i.expandIcon,v=i.rowExpandable,d=i.expandIconColumnIndex,n=i.direction,l=i.expandRowByClick,u=U.useMemo(function(){return a||I(r)},[a,r]),_=U.useMemo(function(){if(t){var R,F=d||0,C=u[F],P=(R={},Object(de.a)(R,e.a,{className:"".concat(o,"-expand-icon-col")}),Object(de.a)(R,"title",""),Object(de.a)(R,"fixed",C?C.fixed:null),Object(de.a)(R,"className","".concat(o,"-row-expand-icon-cell")),Object(de.a)(R,"render",function($,oe,Ee){var ve=y(oe,Ee),Le=b.has(ve),Se=v?v(oe):!0,Re=T({prefixCls:o,expanded:Le,expandable:Se,record:oe,onExpand:E});return l?U.createElement("span",{onClick:function(Fe){return Fe.stopPropagation()}},Re):Re}),R),j=u.slice();return F>=0&&j.splice(F,0,P),j}return u},[t,u,y,b,T,n]),m=U.useMemo(function(){var R=_;return A&&(R=A(R)),R.length||(R=[{render:function(){return null}}]),R},[A,_,n]),h=U.useMemo(function(){return n==="rtl"?c(p(m)):p(m)},[m,n]);return[m,h]}we.b=s},"y0+3":function(ot,we,Q){"use strict";Q.d(we,"a",function(){return p}),Q.d(we,"b",function(){return c});var de=/margin|padding|width|height|max|min|offset/,K={left:!0,top:!0},O={cssFloat:1,styleFloat:1,float:1};function G(s){return s.nodeType===1?s.ownerDocument.defaultView.getComputedStyle(s,null):{}}function U(s,i,A){if(i=i.toLowerCase(),A==="auto"){if(i==="height")return s.offsetHeight;if(i==="width")return s.offsetWidth}return i in K||(K[i]=de.test(i)),K[i]?parseFloat(A)||0:A}function S(s,i){var A=arguments.length,o=G(s);return i=O[i]?"cssFloat"in s.style?"cssFloat":"styleFloat":i,A===1?o:U(s,i,o[i]||s.style[i])}function Y(s,i,A){var o=arguments.length;if(i=O[i]?"cssFloat"in s.style?"cssFloat":"styleFloat":i,o===3)return typeof A=="number"&&de.test(i)&&(A="".concat(A,"px")),s.style[i]=A,A;for(var a in i)i.hasOwnProperty(a)&&Y(s,a,i[a]);return G(s)}function M(s){return s===document.body?document.documentElement.clientWidth:s.offsetWidth}function e(s){return s===document.body?window.innerHeight||document.documentElement.clientHeight:s.offsetHeight}function I(){var s=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),i=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:s,height:i}}function p(){var s=document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight;return{width:s,height:i}}function g(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function c(s){var i=s.getBoundingClientRect(),A=document.documentElement;return{left:i.left+(window.pageXOffset||A.scrollLeft)-(A.clientLeft||document.body.clientLeft||0),top:i.top+(window.pageYOffset||A.scrollTop)-(A.clientTop||document.body.clientTop||0)}}}}]);
|