code_text
stringlengths
604
999k
repo_name
stringlengths
4
100
file_path
stringlengths
4
873
language
stringclasses
23 values
license
stringclasses
15 values
size
int32
1.02k
999k
/*! * Bootstrap Reboot v4.3.1 (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors * Copyright 2011-2019 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md) */*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important} /*# sourceMappingURL=bootstrap-reboot.min.css.map */
ilariabiotti/ilariabiotti.github.io
vendor/bootstrap/css/bootstrap-reboot.min.css
CSS
mit
4,021
/* * /MathJax/extensions/TeX/AMSmath.js * * Copyright (c) 2009-2013 The MathJax Consortium * * 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. */ MathJax.Extension["TeX/AMSmath"]={version:"2.3",number:0,startNumber:0,labels:{},eqlabels:{},refs:[]};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.ElementJax.mml,g=MathJax.InputJax.TeX,f=MathJax.Extension["TeX/AMSmath"];var d=g.Definitions,e=g.Stack.Item,a=g.config.equationNumbers;var c=function(j){var l=[];for(var k=0,h=j.length;k<h;k++){l[k]=g.Parse.prototype.Em(j[k])}return l.join(" ")};d.Add({mathchar0mo:{iiiint:["2A0C",{texClass:b.TEXCLASS.OP}]},macros:{mathring:["Accent","2DA"],nobreakspace:"Tilde",negmedspace:["Spacer",b.LENGTH.NEGATIVEMEDIUMMATHSPACE],negthickspace:["Spacer",b.LENGTH.NEGATIVETHICKMATHSPACE],idotsint:["MultiIntegral","\\int\\cdots\\int"],dddot:["Accent","20DB"],ddddot:["Accent","20DC"],sideset:["Macro","\\mathop{\\mathop{\\rlap{\\phantom{#3}}}\\nolimits#1\\!\\mathop{#3}\\nolimits#2}",3],boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],tag:"HandleTag",notag:"HandleNoTag",label:"HandleLabel",ref:"HandleRef",eqref:["HandleRef",true],substack:["Macro","\\begin{subarray}{c}#1\\end{subarray}",1],injlim:["NamedOp","inj&thinsp;lim"],projlim:["NamedOp","proj&thinsp;lim"],varliminf:["Macro","\\mathop{\\underline{\\mmlToken{mi}{lim}}}"],varlimsup:["Macro","\\mathop{\\overline{\\mmlToken{mi}{lim}}}"],varinjlim:["Macro","\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}\\Rule{-1pt}{0pt}{1pt}}\\Rule{0pt}{0pt}{.45em}}"],varprojlim:["Macro","\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}\\Rule{-1pt}{0pt}{1pt}}\\Rule{0pt}{0pt}{.45em}}"],DeclareMathOperator:"HandleDeclareOp",operatorname:"HandleOperatorName",genfrac:"Genfrac",frac:["Genfrac","","","",""],tfrac:["Genfrac","","","",1],dfrac:["Genfrac","","","",0],binom:["Genfrac","(",")","0em",""],tbinom:["Genfrac","(",")","0em",1],dbinom:["Genfrac","(",")","0em",0],cfrac:"CFrac",shoveleft:["HandleShove",b.ALIGN.LEFT],shoveright:["HandleShove",b.ALIGN.RIGHT],xrightarrow:["xArrow",8594,5,6],xleftarrow:["xArrow",8592,7,3]},environment:{align:["AMSarray",null,true,true,"rlrlrlrlrlrl",c([5/18,2,5/18,2,5/18,2,5/18,2,5/18,2,5/18])],"align*":["AMSarray",null,false,true,"rlrlrlrlrlrl",c([5/18,2,5/18,2,5/18,2,5/18,2,5/18,2,5/18])],multline:["Multline",null,true],"multline*":["Multline",null,false],split:["AMSarray",null,false,false,"rl",c([5/18])],gather:["AMSarray",null,true,true,"c"],"gather*":["AMSarray",null,false,true,"c"],alignat:["AlignAt",null,true,true],"alignat*":["AlignAt",null,false,true],alignedat:["AlignAt",null,false,false],aligned:["AlignedArray",null,null,null,"rlrlrlrlrlrl",c([5/18,2,5/18,2,5/18,2,5/18,2,5/18,2,5/18]),".5em","D"],gathered:["AlignedArray",null,null,null,"c",null,".5em","D"],subarray:["Array",null,null,null,null,c([0,0,0,0]),"0.1em","S",1],smallmatrix:["Array",null,null,null,"c",c([1/3]),".2em","S",1],equation:["EquationBegin","Equation",true],"equation*":["EquationBegin","EquationStar",false],eqnarray:["AMSarray",null,true,true,"rcl",b.LENGTH.THICKMATHSPACE,".5em"],"eqnarray*":["AMSarray",null,false,true,"rcl",b.LENGTH.THICKMATHSPACE,".5em"]},delimiter:{"\\lvert":["2223",{texClass:b.TEXCLASS.OPEN}],"\\rvert":["2223",{texClass:b.TEXCLASS.CLOSE}],"\\lVert":["2225",{texClass:b.TEXCLASS.OPEN}],"\\rVert":["2225",{texClass:b.TEXCLASS.CLOSE}]}},null,true);g.Parse.Augment({HandleTag:function(j){var l=this.GetStar();var i=this.trimSpaces(this.GetArgument(j)),h=i;if(!l){i=a.formatTag(i)}var k=this.stack.global;k.tagID=h;if(k.notags){g.Error(["CommandNotAllowedInEnv","%1 not allowed in %2 environment",j,k.notags])}if(k.tag){g.Error(["MultipleCommand","Multiple %1",j])}k.tag=b.mtd.apply(b,this.InternalMath(i)).With({id:a.formatID(h)})},HandleNoTag:function(h){if(this.stack.global.tag){delete this.stack.global.tag}this.stack.global.notag=true},HandleLabel:function(i){var j=this.stack.global,h=this.GetArgument(i);if(h===""){return}if(!f.refUpdate){if(j.label){g.Error(["MultipleCommand","Multiple %1",i])}j.label=h;if(f.labels[h]||f.eqlabels[h]){g.Error(["MultipleLabel","Label '%1' multiply defined",h])}f.eqlabels[h]="???"}},HandleRef:function(j,l){var i=this.GetArgument(j);var k=f.labels[i]||f.eqlabels[i];if(!k){k="??";f.badref=!f.refUpdate}var h=k;if(l){h=a.formatTag(h)}if(a.useLabelIds){k=i}this.Push(b.mrow.apply(b,this.InternalMath(h)).With({href:a.formatURL(a.formatID(k)),"class":"MathJax_ref"}))},HandleDeclareOp:function(i){var h=(this.GetStar()?"\\limits":"");var j=this.trimSpaces(this.GetArgument(i));if(j.charAt(0)=="\\"){j=j.substr(1)}var k=this.GetArgument(i);k=k.replace(/\*/g,"\\text{*}").replace(/-/g,"\\text{-}");g.Definitions.macros[j]=["Macro","\\mathop{\\rm "+k+"}"+h]},HandleOperatorName:function(i){var h=(this.GetStar()?"\\limits":"\\nolimits");var j=this.trimSpaces(this.GetArgument(i));j=j.replace(/\*/g,"\\text{*}").replace(/-/g,"\\text{-}");this.string="\\mathop{\\rm "+j+"}"+h+" "+this.string.slice(this.i);this.i=0},HandleShove:function(i,h){var j=this.stack.Top();if(j.type!=="multline"||j.data.length){g.Error(["CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",i])}j.data.shove=h},CFrac:function(k){var h=this.trimSpaces(this.GetBrackets(k,"")),j=this.GetArgument(k),l=this.GetArgument(k);var i=b.mfrac(g.Parse("\\strut\\textstyle{"+j+"}",this.stack.env).mml(),g.Parse("\\strut\\textstyle{"+l+"}",this.stack.env).mml());h=({l:b.ALIGN.LEFT,r:b.ALIGN.RIGHT,"":""})[h];if(h==null){g.Error(["IllegalAlign","Illegal alignment specified in %1",k])}if(h){i.numalign=i.denomalign=h}this.Push(i)},Genfrac:function(i,k,p,m,h){if(k==null){k=this.GetDelimiterArg(i)}else{k=this.convertDelimiter(k)}if(p==null){p=this.GetDelimiterArg(i)}else{p=this.convertDelimiter(p)}if(m==null){m=this.GetArgument(i)}if(h==null){h=this.trimSpaces(this.GetArgument(i))}var l=this.ParseArg(i);var o=this.ParseArg(i);var j=b.mfrac(l,o);if(m!==""){j.linethickness=m}if(k||p){j=g.fenced(k,j,p)}if(h!==""){var n=(["D","T","S","SS"])[h];if(n==null){g.Error(["BadMathStyleFor","Bad math style for %1",i])}j=b.mstyle(j);if(n==="D"){j.displaystyle=true;j.scriptlevel=0}else{j.displaystyle=false;j.scriptlevel=h-1}}this.Push(j)},Multline:function(i,h){this.Push(i);this.checkEqnEnv();return e.multline(h,this.stack).With({arraydef:{displaystyle:true,rowspacing:".5em",width:g.config.MultLineWidth,columnwidth:"100%",side:g.config.TagSide,minlabelspacing:g.config.TagIndent}})},AMSarray:function(j,i,h,l,k){this.Push(j);if(h){this.checkEqnEnv()}l=l.replace(/[^clr]/g,"").split("").join(" ");l=l.replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center");return e.AMSarray(j.name,i,h,this.stack).With({arraydef:{displaystyle:true,rowspacing:".5em",columnalign:l,columnspacing:(k||"1em"),rowspacing:"3pt",side:g.config.TagSide,minlabelspacing:g.config.TagIndent}})},AlignAt:function(k,i,h){var p,j,o="",m=[];if(!h){j=this.GetBrackets("\\begin{"+k.name+"}")}p=this.GetArgument("\\begin{"+k.name+"}");if(p.match(/[^0-9]/)){g.Error(["PositiveIntegerArg","Argument to %1 must me a positive integer","\\begin{"+k.name+"}"])}while(p>0){o+="rl";m.push("0em 0em");p--}m=m.join(" ");if(h){return this.AMSarray(k,i,h,o,m)}var l=this.Array.call(this,k,null,null,o,m,".5em","D");return this.setArrayAlign(l,j)},EquationBegin:function(h,i){this.checkEqnEnv();this.stack.global.forcetag=(i&&a.autoNumber!=="none");return h},EquationStar:function(h,i){this.stack.global.tagged=true;return i},checkEqnEnv:function(){if(this.stack.global.eqnenv){g.Error(["ErroneousNestingEq","Erroneous nesting of equation structures"])}this.stack.global.eqnenv=true},MultiIntegral:function(h,l){var k=this.GetNext();if(k==="\\"){var j=this.i;k=this.GetArgument(h);this.i=j;if(k==="\\limits"){if(h==="\\idotsint"){l="\\!\\!\\mathop{\\,\\,"+l+"}"}else{l="\\!\\!\\!\\mathop{\\,\\,\\,"+l+"}"}}}this.string=l+" "+this.string.slice(this.i);this.i=0},xArrow:function(j,n,m,h){var k={width:"+"+(m+h)+"mu",lspace:m+"mu"};var o=this.GetBrackets(j),p=this.ParseArg(j);var q=b.mo(b.chars(String.fromCharCode(n))).With({stretchy:true,texClass:b.TEXCLASS.REL});var i=b.munderover(q);i.SetData(i.over,b.mpadded(p).With(k).With({voffset:".15em"}));if(o){o=g.Parse(o,this.stack.env).mml();i.SetData(i.under,b.mpadded(o).With(k).With({voffset:"-.24em"}))}this.Push(i)},GetDelimiterArg:function(h){var i=this.trimSpaces(this.GetArgument(h));if(i==""){return null}if(d.delimiter[i]==null){g.Error(["MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",h])}return this.convertDelimiter(i)},GetStar:function(){var h=(this.GetNext()==="*");if(h){this.i++}return h}});e.Augment({autoTag:function(){var i=this.global;if(!i.notag){f.number++;i.tagID=a.formatNumber(f.number.toString());var h=g.Parse("\\text{"+a.formatTag(i.tagID)+"}",{}).mml();i.tag=b.mtd(h.With({id:a.formatID(i.tagID)}))}},getTag:function(){var i=this.global,h=i.tag;i.tagged=true;if(i.label){f.eqlabels[i.label]=i.tagID;if(a.useLabelIds){h.id=a.formatID(i.label)}}delete i.tag;delete i.tagID;delete i.label;return h}});e.multline=e.array.Subclass({type:"multline",Init:function(i,h){this.SUPER(arguments).Init.apply(this);this.numbered=(i&&a.autoNumber!=="none");this.save={notag:h.global.notag};h.global.tagged=!i&&!h.global.forcetag},EndEntry:function(){var h=b.mtd.apply(b,this.data);if(this.data.shove){h.columnalign=this.data.shove}this.row.push(h);this.data=[]},EndRow:function(){if(this.row.length!=1){g.Error(["MultlineRowsOneCol","The rows within the %1 environment must have exactly one column","multline"])}this.table.push(this.row);this.row=[]},EndTable:function(){this.SUPER(arguments).EndTable.call(this);if(this.table.length){var j=this.table.length-1,l,k=-1;if(!this.table[0][0].columnalign){this.table[0][0].columnalign=b.ALIGN.LEFT}if(!this.table[j][0].columnalign){this.table[j][0].columnalign=b.ALIGN.RIGHT}if(!this.global.tag&&this.numbered){this.autoTag()}if(this.global.tag&&!this.global.notags){k=(this.arraydef.side==="left"?0:this.table.length-1);this.table[k]=[this.getTag()].concat(this.table[k])}for(l=0,j=this.table.length;l<j;l++){var h=(l===k?b.mlabeledtr:b.mtr);this.table[l]=h.apply(b,this.table[l])}}this.global.notag=this.save.notag}});e.AMSarray=e.array.Subclass({type:"AMSarray",Init:function(k,j,i,h){this.SUPER(arguments).Init.apply(this);this.numbered=(j&&a.autoNumber!=="none");this.save={notags:h.global.notags,notag:h.global.notag};h.global.notags=(i?null:k);h.global.tagged=!j&&!h.global.forcetag},EndRow:function(){var h=b.mtr;if(!this.global.tag&&this.numbered){this.autoTag()}if(this.global.tag&&!this.global.notags){this.row=[this.getTag()].concat(this.row);h=b.mlabeledtr}if(this.numbered){delete this.global.notag}this.table.push(h.apply(b,this.row));this.row=[]},EndTable:function(){this.SUPER(arguments).EndTable.call(this);this.global.notags=this.save.notags;this.global.notag=this.save.notag}});e.start.Augment({oldCheckItem:e.start.prototype.checkItem,checkItem:function(j){if(j.type==="stop"){var h=this.mmlData(),i=this.global;if(f.display&&!i.tag&&!i.tagged&&!i.isInner&&(a.autoNumber==="all"||i.forcetag)){this.autoTag()}if(i.tag){var l=[this.getTag(),b.mtd(h)];var k={side:g.config.TagSide,minlabelspacing:g.config.TagIndent,columnalign:h.displayAlign};if(h.displayAlign===b.INDENTALIGN.LEFT){k.width="100%";if(h.displayIndent&&!String(h.displayIndent).match(/^0+(\.0*)?($|[a-z%])/)){k.columnwidth=h.displayIndent+" fit";k.columnspacing="0";l=[l[0],b.mtd(),l[1]]}}else{if(h.displayAlign===b.INDENTALIGN.RIGHT){k.width="100%";if(h.displayIndent&&!String(h.displayIndent).match(/^0+(\.0*)?($|[a-z%])/)){k.columnwidth="fit "+h.displayIndent;k.columnspacing="0";l[2]=b.mtd()}}}h=b.mtable(b.mlabeledtr.apply(b,l)).With(k)}return e.mml(h)}return this.oldCheckItem.call(this,j)}});g.prefilterHooks.Add(function(h){f.display=h.display;f.number=f.startNumber;f.eqlabels={};f.badref=false;if(f.refUpdate){f.number=h.script.MathJax.startNumber}});g.postfilterHooks.Add(function(h){h.script.MathJax.startNumber=f.startNumber;f.startNumber=f.number;MathJax.Hub.Insert(f.labels,f.eqlabels);if(f.badref&&!h.math.texError){f.refs.push(h.script)}});MathJax.Hub.Register.MessageHook("Begin Math Input",function(){f.refs=[];f.refUpdate=false});MathJax.Hub.Register.MessageHook("End Math Input",function(k){if(f.refs.length){f.refUpdate=true;for(var j=0,h=f.refs.length;j<h;j++){f.refs[j].MathJax.state=MathJax.ElementJax.STATE.UPDATE}return MathJax.Hub.processInput({scripts:f.refs,start:new Date().getTime(),i:0,j:0,jax:{},jaxIDs:[]})}return null});g.resetEquationNumbers=function(i,h){f.startNumber=(i||0);if(!h){f.labels={}}};MathJax.Hub.Startup.signal.Post("TeX AMSmath Ready")});MathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/AMSmath.js");
hare1039/cdnjs
ajax/libs/mathjax/2.3/extensions/TeX/AMSmath.js
JavaScript
mit
13,177
/* Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.*/ (function(a){var b={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},c=b[typeof window]&&window||this,d=b[typeof exports]&&exports&&!exports.nodeType&&exports,e=b[typeof module]&&module&&!module.nodeType&&module,f=(e&&e.exports===d&&d,b[typeof global]&&global);!f||f.global!==f&&f.window!==f||(c=f),"function"==typeof define&&define.amd?define(["rx-lite"],function(b,d){return a(c,d,b)}):"object"==typeof module&&module&&module.exports===d?module.exports=a(c,module.exports,require("./rx-lite")):c.Rx=a(c,{},c.Rx)}).call(this,function(a,b,c,d){function e(a,b){this.scheduler=a,this.disposable=b,this.isDisposed=!1}function f(a,b){b.isDisposed||(b.isDisposed=!0,b.disposable.dispose())}function g(a,b,c){for(var d=0,e=a.length;e>d;d++)if(c(a[d],b))return d;return-1}function h(a){this.comparer=a,this.set=[]}var i=c.Observable,j=i.prototype,k=i.never,l=i.throwException,m=c.AnonymousObservable,n=c.AnonymousObserver,o=c.Notification.createOnNext,p=c.Notification.createOnError,q=c.Notification.createOnCompleted,r=c.Observer,s=c.Subject,t=c.internals,u=c.helpers,v=t.ScheduledObserver,w=c.SerialDisposable,x=c.SingleAssignmentDisposable,y=c.CompositeDisposable,z=c.RefCountDisposable,A=c.Disposable.empty,B=c.Scheduler.immediate,C=(u.defaultKeySerializer,c.internals.addRef),D=(u.identity,u.isPromise),E=t.inherits,F=t.bindCallback,G=(u.noop,u.isScheduler),H=i.fromPromise,I=c.ArgumentOutOfRangeError;e.prototype.dispose=function(){this.scheduler.scheduleWithState(this,f)};var J=function(a){function b(b){a.call(this),this._observer=b,this._state=0}E(b,a);var c=b.prototype;return c.onNext=function(a){this.checkAccess();var b=tryCatch(this._observer.onNext).call(this._observer,a);this._state=0,b===errorObj&&thrower(b.e)},c.onError=function(a){this.checkAccess();var b=tryCatch(this._observer.onError).call(this._observer,a);this._state=2,b===errorObj&&thrower(b.e)},c.onCompleted=function(){this.checkAccess();var a=tryCatch(this._observer.onCompleted).call(this._observer);this._state=2,a===errorObj&&thrower(a.e)},c.checkAccess=function(){if(1===this._state)throw new Error("Re-entrancy detected");if(2===this._state)throw new Error("Observer completed");0===this._state&&(this._state=1)},b}(r),K=function(a){function b(b,c,d){a.call(this,b,c),this._cancel=d}return E(b,a),b.prototype.next=function(b){a.prototype.next.call(this,b),this.ensureActive()},b.prototype.error=function(b){a.prototype.error.call(this,b),this.ensureActive()},b.prototype.completed=function(){a.prototype.completed.call(this),this.ensureActive()},b.prototype.dispose=function(){a.prototype.dispose.call(this),this._cancel&&this._cancel.dispose(),this._cancel=null},b}(v);r.prototype.checked=function(){return new J(this)},r.notifyOn=function(a){return new K(a,this)},r.fromNotifier=function(a,b){var c=F(a,b,1);return new n(function(a){return c(o(a))},function(a){return c(p(a))},function(){return c(q())})},r.prototype.toNotifier=function(){var a=this;return function(b){return b.accept(a)}},r.prototype.asObserver=function(){var a=this;return new n(function(b){a.onNext(b)},function(b){a.onError(b)},function(){a.onCompleted()})},j.observeOn=function(a){var b=this;return new m(function(c){return b.subscribe(new K(a,c))},b)},j.subscribeOn=function(a){var b=this;return new m(function(c){var d=new x,f=new w;return f.setDisposable(d),d.setDisposable(a.schedule(function(){f.setDisposable(new e(a,b.subscribe(c)))})),f},b)},i.generate=function(a,b,c,d,e){return G(e)||(e=currentThreadScheduler),new m(function(f){var g=!0,h=a;return e.scheduleRecursive(function(a){var e,i;try{g?g=!1:h=c(h),e=b(h),e&&(i=d(h))}catch(j){return void f.onError(j)}e?(f.onNext(i),a()):f.onCompleted()})})},i.using=function(a,b){return new m(function(c){var d,e,f=A;try{d=a(),d&&(f=d),e=b(d)}catch(g){return new y(l(g).subscribe(c),f)}return new y(e.subscribe(c),f)})},j.amb=function(a){var b=this;return new m(function(c){function d(){f||(f=g,j.dispose())}function e(){f||(f=h,i.dispose())}var f,g="L",h="R",i=new x,j=new x;return D(a)&&(a=H(a)),i.setDisposable(b.subscribe(function(a){d(),f===g&&c.onNext(a)},function(a){d(),f===g&&c.onError(a)},function(){d(),f===g&&c.onCompleted()})),j.setDisposable(a.subscribe(function(a){e(),f===h&&c.onNext(a)},function(a){e(),f===h&&c.onError(a)},function(){e(),f===h&&c.onCompleted()})),new y(i,j)})},i.amb=function(){function a(a,b){return a.amb(b)}var b=k(),c=[];if(Array.isArray(arguments[0]))c=arguments[0];else for(var d=0,e=arguments.length;e>d;d++)c.push(arguments[d]);for(var d=0,e=c.length;e>d;d++)b=a(b,c[d]);return b},j.onErrorResumeNext=function(a){if(!a)throw new Error("Second observable is required");return L([this,a])};var L=i.onErrorResumeNext=function(){var a=[];if(Array.isArray(arguments[0]))a=arguments[0];else for(var b=0,c=arguments.length;c>b;b++)a.push(arguments[b]);return new m(function(b){var c=0,d=new w,e=B.scheduleRecursive(function(e){var f,g;c<a.length?(f=a[c++],D(f)&&(f=H(f)),g=new x,d.setDisposable(g),g.setDisposable(f.subscribe(b.onNext.bind(b),e,e))):b.onCompleted()});return new y(d,e)})};return j.bufferWithCount=function(a,b){return"number"!=typeof b&&(b=a),this.windowWithCount(a,b).selectMany(function(a){return a.toArray()}).where(function(a){return a.length>0})},j.windowWithCount=function(a,b){var c=this;if(+a||(a=0),Math.abs(a)===1/0&&(a=0),0>=a)throw new I;if(null==b&&(b=a),+b||(b=0),Math.abs(b)===1/0&&(b=0),0>=b)throw new I;return new m(function(d){function e(){var a=new s;i.push(a),d.onNext(C(a,g))}var f=new x,g=new z(f),h=0,i=[];return e(),f.setDisposable(c.subscribe(function(c){for(var d=0,f=i.length;f>d;d++)i[d].onNext(c);var g=h-a+1;g>=0&&g%b===0&&i.shift().onCompleted(),++h%b===0&&e()},function(a){for(;i.length>0;)i.shift().onError(a);d.onError(a)},function(){for(;i.length>0;)i.shift().onCompleted();d.onCompleted()})),g},c)},j.takeLastBuffer=function(a){var b=this;return new m(function(c){var d=[];return b.subscribe(function(b){d.push(b),d.length>a&&d.shift()},function(a){c.onError(a)},function(){c.onNext(d),c.onCompleted()})},b)},j.defaultIfEmpty=function(a){var b=this;return a===d&&(a=null),new m(function(c){var d=!1;return b.subscribe(function(a){d=!0,c.onNext(a)},function(a){c.onError(a)},function(){!d&&c.onNext(a),c.onCompleted()})},b)},h.prototype.push=function(a){var b=-1===g(this.set,a,this.comparer);return b&&this.set.push(a),b},j.distinct=function(a,b){var c=this;return b||(b=defaultComparer),new m(function(d){var e=new h(b);return c.subscribe(function(b){var c=b;if(a)try{c=a(b)}catch(f){return void d.onError(f)}e.push(c)&&d.onNext(b)},function(a){d.onError(a)},function(){d.onCompleted()})},this)},c}); //# sourceMappingURL=rx.lite.extras.map
joosti/dbShare
node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/rx/dist/rx.lite.extras.min.js
JavaScript
mit
6,795
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('history-base', function (Y, NAME) { /** * Provides browser history management functionality using a simple * add/replace/get paradigm. This can be used to ensure that the browser's back * and forward buttons work as the user expects and to provide bookmarkable URLs * that return the user to the current application state, even in an Ajax * application that doesn't perform full-page refreshes. * * @module history * @main history * @since 3.2.0 */ /** * Provides global state management backed by an object, but with no browser * history integration. For actual browser history integration and back/forward * support, use the history-html5 or history-hash modules. * * @module history * @submodule history-base * @class HistoryBase * @uses EventTarget * @constructor * @param {Object} config (optional) configuration object, which may contain * zero or more of the following properties: * * <dl> * <dt>force (Boolean)</dt> * <dd> * If `true`, a `history:change` event will be fired whenever the URL * changes, even if there is no associated state change. Default is `false`. * </dd> * * <dt>initialState (Object)</dt> * <dd> * Initial state to set, as an object hash of key/value pairs. This will be * merged into the current global state. * </dd> * </dl> */ var Lang = Y.Lang, Obj = Y.Object, GlobalEnv = YUI.namespace('Env.History'), YArray = Y.Array, doc = Y.config.doc, docMode = doc.documentMode, win = Y.config.win, DEFAULT_OPTIONS = {merge: true}, EVT_CHANGE = 'change', SRC_ADD = 'add', SRC_REPLACE = 'replace'; function HistoryBase() { this._init.apply(this, arguments); } Y.augment(HistoryBase, Y.EventTarget, null, null, { emitFacade : true, prefix : 'history', preventable: false, queueable : true }); if (!GlobalEnv._state) { GlobalEnv._state = {}; } // -- Private Methods ---------------------------------------------------------- /** * Returns <code>true</code> if <i>value</i> is a simple object and not a * function or an array. * * @method _isSimpleObject * @param {mixed} value * @return {Boolean} * @private */ function _isSimpleObject(value) { return Lang.type(value) === 'object'; } // -- Public Static Properties ------------------------------------------------- /** * Name of this component. * * @property NAME * @type String * @static */ HistoryBase.NAME = 'historyBase'; /** * Constant used to identify state changes originating from the * <code>add()</code> method. * * @property SRC_ADD * @type String * @static * @final */ HistoryBase.SRC_ADD = SRC_ADD; /** * Constant used to identify state changes originating from the * <code>replace()</code> method. * * @property SRC_REPLACE * @type String * @static * @final */ HistoryBase.SRC_REPLACE = SRC_REPLACE; /** * Whether or not this browser supports the HTML5 History API. * * @property html5 * @type Boolean * @static */ // All HTML5-capable browsers except Gecko 2+ (Firefox 4+) correctly return // true for 'onpopstate' in win. In order to support Gecko 2, we fall back to a // UA sniff for now. (current as of Firefox 4.0b2) HistoryBase.html5 = !!(win.history && win.history.pushState && win.history.replaceState && ('onpopstate' in win || Y.UA.gecko >= 2) && (!Y.UA.android || Y.UA.android >= 2.4)); /** * Whether or not this browser supports the <code>window.onhashchange</code> * event natively. Note that even if this is <code>true</code>, you may * still want to use HistoryHash's synthetic <code>hashchange</code> event * since it normalizes implementation differences and fixes spec violations * across various browsers. * * @property nativeHashChange * @type Boolean * @static */ // Most browsers that support hashchange expose it on the window. Opera 10.6+ // exposes it on the document (but you can still attach to it on the window). // // IE8 supports the hashchange event, but only in IE8 Standards // Mode. However, IE8 in IE7 compatibility mode still defines the // event but never fires it, so we can't just detect the event. We also can't // just UA sniff for IE8, since other browsers support this event as well. HistoryBase.nativeHashChange = ('onhashchange' in win || 'onhashchange' in doc) && (!docMode || docMode > 7); Y.mix(HistoryBase.prototype, { // -- Initialization ------------------------------------------------------- /** * Initializes this HistoryBase instance. This method is called by the * constructor. * * @method _init * @param {Object} config configuration object * @protected */ _init: function (config) { var initialState; /** * Configuration object provided by the user on instantiation, or an * empty object if one wasn't provided. * * @property _config * @type Object * @default {} * @protected */ config = this._config = config || {}; /** * If `true`, a `history:change` event will be fired whenever the URL * changes, even if there is no associated state change. * * @property force * @type Boolean * @default false */ this.force = !!config.force; /** * Resolved initial state: a merge of the user-supplied initial state * (if any) and any initial state provided by a subclass. This may * differ from <code>_config.initialState</code>. If neither the config * nor a subclass supplies an initial state, this property will be * <code>null</code>. * * @property _initialState * @type Object|null * @default {} * @protected */ initialState = this._initialState = this._initialState || config.initialState || null; /** * Fired when the state changes. To be notified of all state changes * regardless of the History or YUI instance that generated them, * subscribe to this event on <code>Y.Global</code>. If you would rather * be notified only about changes generated by this specific History * instance, subscribe to this event on the instance. * * @event history:change * @param {EventFacade} e Event facade with the following additional * properties: * * <dl> * <dt>changed (Object)</dt> * <dd> * Object hash of state items that have been added or changed. The * key is the item key, and the value is an object containing * <code>newVal</code> and <code>prevVal</code> properties * representing the values of the item both before and after the * change. If the item was newly added, <code>prevVal</code> will be * <code>undefined</code>. * </dd> * * <dt>newVal (Object)</dt> * <dd> * Object hash of key/value pairs of all state items after the * change. * </dd> * * <dt>prevVal (Object)</dt> * <dd> * Object hash of key/value pairs of all state items before the * change. * </dd> * * <dt>removed (Object)</dt> * <dd> * Object hash of key/value pairs of state items that have been * removed. Values are the old values prior to removal. * </dd> * * <dt>src (String)</dt> * <dd> * The source of the event. This can be used to selectively ignore * events generated by certain sources. * </dd> * </dl> */ this.publish(EVT_CHANGE, { broadcast: 2, defaultFn: this._defChangeFn }); // If initialState was provided, merge it into the current state. if (initialState) { this.replace(initialState); } }, // -- Public Methods ------------------------------------------------------- /** * Adds a state entry with new values for the specified keys. By default, * the new state will be merged into the existing state, and new values will * override existing values. Specifying a <code>null</code> or * <code>undefined</code> value will cause that key to be removed from the * new state entry. * * @method add * @param {Object} state Object hash of key/value pairs. * @param {Object} options (optional) Zero or more of the following options: * <dl> * <dt>merge (Boolean)</dt> * <dd> * <p> * If <code>true</code> (the default), the new state will be merged * into the existing state. New values will override existing values, * and <code>null</code> or <code>undefined</code> values will be * removed from the state. * </p> * * <p> * If <code>false</code>, the existing state will be discarded as a * whole and the new state will take its place. * </p> * </dd> * </dl> * @chainable */ add: function () { var args = YArray(arguments, 0, true); args.unshift(SRC_ADD); return this._change.apply(this, args); }, /** * Adds a state entry with a new value for a single key. By default, the new * value will be merged into the existing state values, and will override an * existing value with the same key if there is one. Specifying a * <code>null</code> or <code>undefined</code> value will cause the key to * be removed from the new state entry. * * @method addValue * @param {String} key State parameter key. * @param {String} value New value. * @param {Object} options (optional) Zero or more options. See * <code>add()</code> for a list of supported options. * @chainable */ addValue: function (key, value, options) { var state = {}; state[key] = value; return this._change(SRC_ADD, state, options); }, /** * Returns the current value of the state parameter specified by <i>key</i>, * or an object hash of key/value pairs for all current state parameters if * no key is specified. * * @method get * @param {String} key (optional) State parameter key. * @return {Object|String} Value of the specified state parameter, or an * object hash of key/value pairs for all current state parameters. */ get: function (key) { var state = GlobalEnv._state, isObject = _isSimpleObject(state); if (key) { return isObject && Obj.owns(state, key) ? state[key] : undefined; } else { return isObject ? Y.mix({}, state, true) : state; // mix provides a fast shallow clone. } }, /** * Same as <code>add()</code> except that a new browser history entry will * not be created. Instead, the current history entry will be replaced with * the new state. * * @method replace * @param {Object} state Object hash of key/value pairs. * @param {Object} options (optional) Zero or more options. See * <code>add()</code> for a list of supported options. * @chainable */ replace: function () { var args = YArray(arguments, 0, true); args.unshift(SRC_REPLACE); return this._change.apply(this, args); }, /** * Same as <code>addValue()</code> except that a new browser history entry * will not be created. Instead, the current history entry will be replaced * with the new state. * * @method replaceValue * @param {String} key State parameter key. * @param {String} value New value. * @param {Object} options (optional) Zero or more options. See * <code>add()</code> for a list of supported options. * @chainable */ replaceValue: function (key, value, options) { var state = {}; state[key] = value; return this._change(SRC_REPLACE, state, options); }, // -- Protected Methods ---------------------------------------------------- /** * Changes the state. This method provides a common implementation shared by * the public methods for changing state. * * @method _change * @param {String} src Source of the change, for inclusion in event facades * to facilitate filtering. * @param {Object} state Object hash of key/value pairs. * @param {Object} options (optional) Zero or more options. See * <code>add()</code> for a list of supported options. * @protected * @chainable */ _change: function (src, state, options) { options = options ? Y.merge(DEFAULT_OPTIONS, options) : DEFAULT_OPTIONS; if (options.merge && _isSimpleObject(state) && _isSimpleObject(GlobalEnv._state)) { state = Y.merge(GlobalEnv._state, state); } this._resolveChanges(src, state, options); return this; }, /** * Called by _resolveChanges() when the state has changed. This method takes * care of actually firing the necessary events. * * @method _fireEvents * @param {String} src Source of the changes, for inclusion in event facades * to facilitate filtering. * @param {Object} changes Resolved changes. * @param {Object} options Zero or more options. See <code>add()</code> for * a list of supported options. * @protected */ _fireEvents: function (src, changes, options) { // Fire the global change event. this.fire(EVT_CHANGE, { _options: options, changed : changes.changed, newVal : changes.newState, prevVal : changes.prevState, removed : changes.removed, src : src }); // Fire change/remove events for individual items. Obj.each(changes.changed, function (value, key) { this._fireChangeEvent(src, key, value); }, this); Obj.each(changes.removed, function (value, key) { this._fireRemoveEvent(src, key, value); }, this); }, /** * Fires a dynamic "[key]Change" event. * * @method _fireChangeEvent * @param {String} src source of the change, for inclusion in event facades * to facilitate filtering * @param {String} key key of the item that was changed * @param {Object} value object hash containing <i>newVal</i> and * <i>prevVal</i> properties for the changed item * @protected */ _fireChangeEvent: function (src, key, value) { /** * <p> * Dynamic event fired when an individual history item is added or * changed. The name of this event depends on the name of the key that * changed. To listen to change events for a key named "foo", subscribe * to the <code>fooChange</code> event; for a key named "bar", subscribe * to <code>barChange</code>, etc. * </p> * * <p> * Key-specific events are only fired for instance-level changes; that * is, changes that were made via the same History instance on which the * event is subscribed. To be notified of changes made by other History * instances, subscribe to the global <code>history:change</code> event. * </p> * * @event [key]Change * @param {EventFacade} e Event facade with the following additional * properties: * * <dl> * <dt>newVal (mixed)</dt> * <dd> * The new value of the item after the change. * </dd> * * <dt>prevVal (mixed)</dt> * <dd> * The previous value of the item before the change, or * <code>undefined</code> if the item was just added and has no * previous value. * </dd> * * <dt>src (String)</dt> * <dd> * The source of the event. This can be used to selectively ignore * events generated by certain sources. * </dd> * </dl> */ this.fire(key + 'Change', { newVal : value.newVal, prevVal: value.prevVal, src : src }); }, /** * Fires a dynamic "[key]Remove" event. * * @method _fireRemoveEvent * @param {String} src source of the change, for inclusion in event facades * to facilitate filtering * @param {String} key key of the item that was removed * @param {mixed} value value of the item prior to its removal * @protected */ _fireRemoveEvent: function (src, key, value) { /** * <p> * Dynamic event fired when an individual history item is removed. The * name of this event depends on the name of the key that was removed. * To listen to remove events for a key named "foo", subscribe to the * <code>fooRemove</code> event; for a key named "bar", subscribe to * <code>barRemove</code>, etc. * </p> * * <p> * Key-specific events are only fired for instance-level changes; that * is, changes that were made via the same History instance on which the * event is subscribed. To be notified of changes made by other History * instances, subscribe to the global <code>history:change</code> event. * </p> * * @event [key]Remove * @param {EventFacade} e Event facade with the following additional * properties: * * <dl> * <dt>prevVal (mixed)</dt> * <dd> * The value of the item before it was removed. * </dd> * * <dt>src (String)</dt> * <dd> * The source of the event. This can be used to selectively ignore * events generated by certain sources. * </dd> * </dl> */ this.fire(key + 'Remove', { prevVal: value, src : src }); }, /** * Resolves the changes (if any) between <i>newState</i> and the current * state and fires appropriate events if things have changed. * * @method _resolveChanges * @param {String} src source of the changes, for inclusion in event facades * to facilitate filtering * @param {Object} newState object hash of key/value pairs representing the * new state * @param {Object} options Zero or more options. See <code>add()</code> for * a list of supported options. * @protected */ _resolveChanges: function (src, newState, options) { var changed = {}, isChanged, prevState = GlobalEnv._state, removed = {}; newState || (newState = {}); options || (options = {}); if (_isSimpleObject(newState) && _isSimpleObject(prevState)) { // Figure out what was added or changed. Obj.each(newState, function (newVal, key) { var prevVal = prevState[key]; if (newVal !== prevVal) { changed[key] = { newVal : newVal, prevVal: prevVal }; isChanged = true; } }, this); // Figure out what was removed. Obj.each(prevState, function (prevVal, key) { if (!Obj.owns(newState, key) || newState[key] === null) { delete newState[key]; removed[key] = prevVal; isChanged = true; } }, this); } else { isChanged = newState !== prevState; } if (isChanged || this.force) { this._fireEvents(src, { changed : changed, newState : newState, prevState: prevState, removed : removed }, options); } }, /** * Stores the specified state. Don't call this method directly; go through * _resolveChanges() to ensure that changes are resolved and all events are * fired properly. * * @method _storeState * @param {String} src source of the changes * @param {Object} newState new state to store * @param {Object} options Zero or more options. See <code>add()</code> for * a list of supported options. * @protected */ _storeState: function (src, newState) { // Note: the src and options params aren't used here, but they are used // by subclasses. GlobalEnv._state = newState || {}; }, // -- Protected Event Handlers --------------------------------------------- /** * Default <code>history:change</code> event handler. * * @method _defChangeFn * @param {EventFacade} e state change event facade * @protected */ _defChangeFn: function (e) { this._storeState(e.src, e.newVal, e._options); } }, true); Y.HistoryBase = HistoryBase; }, '3.17.2', {"requires": ["event-custom-complex"]});
jamesarosen/cdnjs
ajax/libs/yui/3.17.2/history-base/history-base.js
JavaScript
mit
21,719
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ .yui3-datatable-table{empty-cells:show}.yui3-skin-sam .yui3-datatable-table{margin:0;padding:0;font-family:arial,sans-serif;border-collapse:separate;border-spacing:0;border:1px solid #cbcbcb}.yui3-skin-sam .yui3-datatable-caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.yui3-skin-sam .yui3-datatable-cell,.yui3-skin-sam .yui3-datatable-header{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:4px 10px 4px 10px}.yui3-skin-sam .yui3-datatable-cell:first-child,.yui3-skin-sam .yui3-datatable-first-header{border-left-width:0}.yui3-skin-sam .yui3-datatable-header{background:#fff url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;background-image:-webkit-linear-gradient(transparent 40%,rgba(0,0,0,0.21));background-image:-moz-linear-gradient(top,transparent 40%,rgba(0,0,0,0.21));background-image:-ms-linear-gradient(transparent 40%,rgba(0,0,0,0.21));background-image:-o-linear-gradient(transparent 40%,rgba(0,0,0,0.21));background-image:linear-gradient(transparent 40%,rgba(0,0,0,0.21));color:#000;font-weight:normal;text-align:left;text-shadow:0 1px 1px #fff;vertical-align:bottom;white-space:nowrap}.yui3-skin-sam .yui3-datatable-cell{background-color:transparent}.yui3-skin-sam .yui3-datatable-even .yui3-datatable-cell{background-color:#fff}.yui3-skin-sam .yui3-datatable-odd .yui3-datatable-cell{background-color:#edf5ff}#yui3-css-stamp.skin-sam-datatable-base{display:none}
simudream/cdnjs
ajax/libs/yui/3.17.2/datatable-base/assets/skins/sam/datatable-base.css
CSS
mit
1,626
/* * jQuery mmenu header addon * mmenu.frebsite.nl * * Copyright (c) Fred Heusschen */ (function( $ ) { var _PLUGIN_ = 'mmenu', _ADDON_ = 'header'; $[ _PLUGIN_ ].prototype[ '_init_' + _ADDON_ ] = function( $panels ) { if ( !addon_initiated ) { _initAddon(); } var addon_added = this.vars[ _ADDON_ + '_added' ]; this.vars[ _ADDON_ + '_added' ] = true; if ( !addon_added ) { this.opts[ _ADDON_ ] = extendOptions( this.opts[ _ADDON_ ] ); this.conf[ _ADDON_ ] = extendConfiguration( this.conf[ _ADDON_ ] ); } var that = this, opts = this.opts[ _ADDON_ ], conf = this.conf[ _ADDON_ ]; if ( !addon_added && opts.add ) { var content = opts.content ? opts.content : '<a class="' + _c.prev + '" href="#"></a><span class="' + _c.title + '"></span><a class="' + _c.next + '" href="#"></a>'; $( '<div class="' + _c.header + '" />' ) .prependTo( this.$menu ) .append( content ); } var $header = $('div.' + _c.header, this.$menu); if ( $header.length ) { this.$menu.addClass( _c.hasheader ); // Auto-update the title, prev- and next button if ( opts.update ) { var $titl = $header.find( '.' + _c.title ), $prev = $header.find( '.' + _c.prev ), $next = $header.find( '.' + _c.next ), _page = false; if ( glbl.$page ) { _page = '#' + glbl.$page.attr( 'id' ); } if ( !addon_added ) { $prev .add( $next ) .off( _e.click ) .on( _e.click, function( e ) { e.preventDefault(); e.stopPropagation(); var href = $(this).attr( 'href' ); if ( href !== '#' ) { if ( _page && href == _page ) { that.$menu.trigger( _e.close ); } else { $(href, that.$menu).trigger( _e.open ); } } } ); } $panels .each( function() { var $panl = $(this); // Find title, prev and next var $ttl = $('.' + that.conf.classNames[ _ADDON_ ].panelHeader, $panl), $prv = $('.' + that.conf.classNames[ _ADDON_ ].panelPrev, $panl), $nxt = $('.' + that.conf.classNames[ _ADDON_ ].panelNext, $panl), _ttl = $ttl.html(), _prv = $prv.attr( 'href' ), _nxt = $nxt.attr( 'href' ); if ( !_ttl ) { _ttl = $('.' + _c.subclose, $panl).html(); } if ( !_ttl ) { _ttl = opts.title; } if ( !_prv ) { _prv = $('.' + _c.subclose, $panl).attr( 'href' ); } var _prv_txt = $prv.html(), _nxt_txt = $nxt.html(); // Update header info var updateHeader = function() { $titl[ _ttl ? 'show' : 'hide' ](); $titl.html( _ttl ); $prev[ _prv ? 'attr' : 'removeAttr' ]( 'href', _prv ); $prev[ _prv || _prv_txt ? 'show' : 'hide' ](); $prev.html( _prv_txt ); $next[ _nxt ? 'attr' : 'removeAttr' ]( 'href', _nxt ); $next[ _nxt || _nxt_txt ? 'show' : 'hide' ](); $next.html( _nxt_txt ); }; $panl.on( _e.open, updateHeader ); if ( $panl.hasClass( _c.current ) ) { updateHeader(); } } ); } // Init other add-ons if ( typeof this._init_buttonbars == 'function' ) { this._init_buttonbars( $header ); } } }; // Add to plugin $[ _PLUGIN_ ].addons.push( _ADDON_ ); // Defaults $[ _PLUGIN_ ].defaults[ _ADDON_ ] = { add : false, content : false, title : 'Menu', update : false }; $[ _PLUGIN_ ].configuration.classNames[ _ADDON_ ] = { panelHeader : 'Header', panelNext : 'Next', panelPrev : 'Prev' }; function extendOptions( o ) { if ( typeof o == 'boolean' ) { o = { add : o, update : o }; } if ( typeof o != 'object' ) { o = {}; } o = $.extend( true, {}, $[ _PLUGIN_ ].defaults[ _ADDON_ ], o ); return o; } function extendConfiguration( c ) { return c; } function _initAddon() { addon_initiated = true; _c = $[ _PLUGIN_ ]._c; _d = $[ _PLUGIN_ ]._d; _e = $[ _PLUGIN_ ]._e; _c.add( 'header hasheader prev next title' ); glbl = $[ _PLUGIN_ ].glbl; } var _c, _d, _e, glbl, addon_initiated = false; })( jQuery );
johan-gorter/cdnjs
ajax/libs/jQuery.mmenu/4.5.6/js/addons/jquery.mmenu.header.js
JavaScript
mit
4,292
YUI.add('dd-plugin', function (Y, NAME) { /** * Simple Drag plugin that can be attached to a Node or Widget via the plug method. * @module dd * @submodule dd-plugin */ /** * Simple Drag plugin that can be attached to a Node or Widget via the plug method. * @class Drag * @extends DD.Drag * @constructor * @namespace Plugin */ var Drag = function(config) { if (Y.Widget && config.host instanceof Y.Widget) { config.node = config.host.get('boundingBox'); config.widget = config.host; } else { config.node = config.host; config.widget = false; } Drag.superclass.constructor.call(this, config); }, EV_START = 'drag:start', EV_DRAG = 'drag:drag', EV_DRAG_END = 'drag:end'; /** * dd-plugin * @property NAME * @type {String} */ Drag.NAME = "dd-plugin"; /** * The Drag instance will be placed on the Node instance under the dd namespace. It can be accessed via Node.dd; * @property NS * @type {String} */ Drag.NS = "dd"; Y.extend(Drag, Y.DD.Drag, { _widgetHandles: null, /** * refers to a Y.Widget if its the host, otherwise = false. * * @attribute _widget * @private */ _widget: undefined, /** * refers to the [x,y] coordinate where the drag was stopped last * * @attribute _stoppedPosition * @private */ _stoppedPosition: undefined, /** * Returns true if widget uses widgetPosition, otherwise returns false * * @method _usesWidgetPosition * @private */ _usesWidgetPosition: function(widget) { var r = false; if (widget) { r = (widget.hasImpl && widget.hasImpl(Y.WidgetPosition)) ? true : false; } return r; }, /** * Attached to the `drag:start` event, it checks if this plugin needs * to attach or detach listeners for widgets. If `dd-proxy` is plugged * the default widget positioning should be ignored. * @method _checkEvents * @private */ _checkEvents: function() { if (this._widget) { //It's a widget if (this.proxy) { //It's a proxy if (this._widgetHandles.length > 0) { //Remove Listeners this._removeWidgetListeners(); } } else { if (this._widgetHandles.length === 0) { this._attachWidgetListeners(); } } } }, /** * Remove the attached widget listeners * @method _removeWidgetListeners * @private */ _removeWidgetListeners: function() { Y.Array.each(this._widgetHandles, function(handle) { handle.detach(); }); this._widgetHandles = []; }, /** * If this is a Widget, then attach the positioning listeners * @method _attachWidgetListeners * @private */ _attachWidgetListeners: function() { //if this thing is a widget, and it uses widgetposition... if (this._usesWidgetPosition(this._widget)) { //set the x,y on the widget's ATTRS this._widgetHandles.push(this.on(EV_DRAG, this._setWidgetCoords)); //store the new position that the widget ends up on this._widgetHandles.push(this.on(EV_DRAG_END, this._updateStopPosition)); } }, /** * Sets up event listeners on drag events if interacting with a widget * * @method initializer * @protected */ initializer: function(config) { this._widgetHandles = []; this._widget = config.widget; this.on(EV_START, this._checkEvents); //Always run, don't check this._attachWidgetListeners(); }, /** * Updates x,y or xy attributes on widget based on where the widget is dragged * * @method initializer * @param {EventFacade} e Event Facade * @private */ _setWidgetCoords: function(e) { //get the last position where the widget was, or get the starting point var nodeXY = this._stoppedPosition || e.target.nodeXY, realXY = e.target.realXY, //amount moved = [(x2 - x1) , (y2 - y1)] movedXY = [realXY[0] - nodeXY[0], realXY[1] - nodeXY[1]]; //if both have changed.. if (movedXY[0] !== 0 && movedXY[1] !== 0) { this._widget.set('xy', realXY); } //if only x is 0, set the Y else if (movedXY[0] === 0) { this._widget.set('y',realXY[1]); } //otherwise, y is 0, so set X else if (movedXY[1] === 0){ this._widget.set('x', realXY[0]); } }, /** * Updates the last position where the widget was stopped. * * @method _updateStopPosition * @param {EventFacade} e Event Facade * @private */ _updateStopPosition: function(e) { this._stoppedPosition = e.target.realXY; } }); Y.namespace('Plugin'); Y.Plugin.Drag = Drag; }, '@VERSION@', {"optional": ["dd-constrain", "dd-proxy"], "requires": ["dd-drag"]});
nesk/cdnjs
ajax/libs/yui/3.8.0/dd-plugin/dd-plugin.js
JavaScript
mit
7,076
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2014 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ var util = require('./util'); /** * Determine whether mappingB is after mappingA with respect to generated * position. */ function generatedPositionAfter(mappingA, mappingB) { // Optimized for most common case var lineA = mappingA.generatedLine; var lineB = mappingB.generatedLine; var columnA = mappingA.generatedColumn; var columnB = mappingB.generatedColumn; return lineB > lineA || lineB == lineA && columnB >= columnA || util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; } /** * A data structure to provide a sorted view of accumulated mappings in a * performance conscious manner. It trades a neglibable overhead in general * case for a large speedup in case of mappings being added in order. */ function MappingList() { this._array = []; this._sorted = true; // Serves as infimum this._last = {generatedLine: -1, generatedColumn: 0}; } /** * Iterate through internal items. This method takes the same arguments that * `Array.prototype.forEach` takes. * * NOTE: The order of the mappings is NOT guaranteed. */ MappingList.prototype.unsortedForEach = function MappingList_forEach(aCallback, aThisArg) { this._array.forEach(aCallback, aThisArg); }; /** * Add the given source mapping. * * @param Object aMapping */ MappingList.prototype.add = function MappingList_add(aMapping) { if (generatedPositionAfter(this._last, aMapping)) { this._last = aMapping; this._array.push(aMapping); } else { this._sorted = false; this._array.push(aMapping); } }; /** * Returns the flat, sorted array of mappings. The mappings are sorted by * generated position. * * WARNING: This method returns internal data without copying, for * performance. The return value must NOT be mutated, and should be treated as * an immutable borrow. If you want to take ownership, you must make your own * copy. */ MappingList.prototype.toArray = function MappingList_toArray() { if (!this._sorted) { this._array.sort(util.compareByGeneratedPositionsInflated); this._sorted = true; } return this._array; }; exports.MappingList = MappingList;
minatorii/loan-and-debt-management-system
node_modules/gulp-less/node_modules/source-map/lib/mapping-list.js
JavaScript
mit
2,339
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "react-dom"], factory); else if(typeof exports === 'object') exports["ReactBootstrapTable"] = factory(require("react"), require("react-dom")); else root["ReactBootstrapTable"] = factory(root["React"], root["ReactDOM"]); })(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_6__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.loaded = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.SizePerPageDropDown = exports.ButtonGroup = exports.SearchField = exports.ClearSearchButton = exports.ExportCSVButton = exports.ShowSelectedOnlyButton = exports.DeleteButton = exports.InsertButton = exports.InsertModalFooter = exports.InsertModalBody = exports.InsertModalHeader = exports.TableHeaderColumn = exports.BootstrapTable = undefined; var _BootstrapTable = __webpack_require__(1); var _BootstrapTable2 = _interopRequireDefault(_BootstrapTable); var _TableHeaderColumn = __webpack_require__(212); var _TableHeaderColumn2 = _interopRequireDefault(_TableHeaderColumn); var _InsertModalHeader = __webpack_require__(195); var _InsertModalHeader2 = _interopRequireDefault(_InsertModalHeader); var _InsertModalBody = __webpack_require__(197); var _InsertModalBody2 = _interopRequireDefault(_InsertModalBody); var _InsertModalFooter = __webpack_require__(196); var _InsertModalFooter2 = _interopRequireDefault(_InsertModalFooter); var _InsertButton = __webpack_require__(198); var _InsertButton2 = _interopRequireDefault(_InsertButton); var _DeleteButton = __webpack_require__(199); var _DeleteButton2 = _interopRequireDefault(_DeleteButton); var _ExportCSVButton = __webpack_require__(200); var _ExportCSVButton2 = _interopRequireDefault(_ExportCSVButton); var _ShowSelectedOnlyButton = __webpack_require__(201); var _ShowSelectedOnlyButton2 = _interopRequireDefault(_ShowSelectedOnlyButton); var _ClearSearchButton = __webpack_require__(203); var _ClearSearchButton2 = _interopRequireDefault(_ClearSearchButton); var _SearchField = __webpack_require__(202); var _SearchField2 = _interopRequireDefault(_SearchField); var _ButtonGroup = __webpack_require__(218); var _ButtonGroup2 = _interopRequireDefault(_ButtonGroup); var _SizePerPageDropDown = __webpack_require__(182); var _SizePerPageDropDown2 = _interopRequireDefault(_SizePerPageDropDown); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } if (typeof window !== 'undefined') { window.BootstrapTable = _BootstrapTable2.default; window.TableHeaderColumn = _TableHeaderColumn2.default; window.InsertModalHeader = _InsertModalHeader2.default; window.InsertModalBody = _InsertModalBody2.default; window.InsertModalFooter = _InsertModalFooter2.default; window.InsertButton = _InsertButton2.default; window.DeleteButton = _DeleteButton2.default; window.ShowSelectedOnlyButton = _ShowSelectedOnlyButton2.default; window.ExportCSVButton = _ExportCSVButton2.default; window.ClearSearchButton = _ClearSearchButton2.default; window.SearchField = _SearchField2.default; window.ButtonGroup = _ButtonGroup2.default; window.SizePerPageDropDown = _SizePerPageDropDown2.default; } exports.BootstrapTable = _BootstrapTable2.default; exports.TableHeaderColumn = _TableHeaderColumn2.default; exports.InsertModalHeader = _InsertModalHeader2.default; exports.InsertModalBody = _InsertModalBody2.default; exports.InsertModalFooter = _InsertModalFooter2.default; exports.InsertButton = _InsertButton2.default; exports.DeleteButton = _DeleteButton2.default; exports.ShowSelectedOnlyButton = _ShowSelectedOnlyButton2.default; exports.ExportCSVButton = _ExportCSVButton2.default; exports.ClearSearchButton = _ClearSearchButton2.default; exports.SearchField = _SearchField2.default; exports.ButtonGroup = _ButtonGroup2.default; exports.SizePerPageDropDown = _SizePerPageDropDown2.default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } }(); ; /***/ }, /* 1 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); var _TableHeader = __webpack_require__(5); var _TableHeader2 = _interopRequireDefault(_TableHeader); var _TableBody = __webpack_require__(8); var _TableBody2 = _interopRequireDefault(_TableBody); var _PaginationList = __webpack_require__(180); var _PaginationList2 = _interopRequireDefault(_PaginationList); var _ToolBar = __webpack_require__(183); var _ToolBar2 = _interopRequireDefault(_ToolBar); var _TableFilter = __webpack_require__(204); var _TableFilter2 = _interopRequireDefault(_TableFilter); var _TableDataStore = __webpack_require__(205); var _util = __webpack_require__(9); var _util2 = _interopRequireDefault(_util); var _csv_export_util = __webpack_require__(206); var _csv_export_util2 = _interopRequireDefault(_csv_export_util); var _Filter = __webpack_require__(210); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint no-alert: 0 */ /* eslint max-len: 0 */ var BootstrapTable = function (_Component) { _inherits(BootstrapTable, _Component); function BootstrapTable(props) { _classCallCheck(this, BootstrapTable); var _this = _possibleConstructorReturn(this, (BootstrapTable.__proto__ || Object.getPrototypeOf(BootstrapTable)).call(this, props)); _this.handleSort = function () { return _this.__handleSort__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleExpandRow = function () { return _this.__handleExpandRow__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handlePaginationData = function () { return _this.__handlePaginationData__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleMouseLeave = function () { return _this.__handleMouseLeave__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleMouseEnter = function () { return _this.__handleMouseEnter__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleRowMouseOut = function () { return _this.__handleRowMouseOut__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleRowMouseOver = function () { return _this.__handleRowMouseOver__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleNavigateCell = function () { return _this.__handleNavigateCell__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleRowClick = function () { return _this.__handleRowClick__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleRowDoubleClick = function () { return _this.__handleRowDoubleClick__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleSelectAllRow = function () { return _this.__handleSelectAllRow__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleShowOnlySelected = function () { return _this.__handleShowOnlySelected__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleSelectRow = function () { return _this.__handleSelectRow__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleAddRow = function () { return _this.__handleAddRow__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.getPageByRowKey = function () { return _this.__getPageByRowKey__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleDropRow = function () { return _this.__handleDropRow__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleFilterData = function () { return _this.__handleFilterData__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleExportCSV = function () { return _this.__handleExportCSV__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleSearch = function () { return _this.__handleSearch__REACT_HOT_LOADER__.apply(_this, arguments); }; _this._scrollTop = function () { return _this.___scrollTop__REACT_HOT_LOADER__.apply(_this, arguments); }; _this._scrollHeader = function () { return _this.___scrollHeader__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.isIE = false; _this._attachCellEditFunc(); if (_util2.default.canUseDOM()) { _this.isIE = document.documentMode; } _this.store = new _TableDataStore.TableDataStore(_this.props.data ? _this.props.data.slice() : []); _this.isVerticalScroll = false; _this.initTable(_this.props); if (_this.props.selectRow && _this.props.selectRow.selected) { var copy = _this.props.selectRow.selected.slice(); _this.store.setSelectedRowKey(copy); } var currPage = _Const2.default.PAGE_START_INDEX; if (typeof _this.props.options.page !== 'undefined') { currPage = _this.props.options.page; } else if (typeof _this.props.options.pageStartIndex !== 'undefined') { currPage = _this.props.options.pageStartIndex; } _this._adjustHeaderWidth = _this._adjustHeaderWidth.bind(_this); _this._adjustHeight = _this._adjustHeight.bind(_this); _this._adjustTable = _this._adjustTable.bind(_this); _this.state = { data: _this.getTableData(), currPage: currPage, expanding: _this.props.options.expanding || [], sizePerPage: _this.props.options.sizePerPage || _Const2.default.SIZE_PER_PAGE_LIST[0], selectedRowKeys: _this.store.getSelectedRowKeys(), reset: false, x: _this.props.keyBoardNav ? 0 : -1, y: _this.props.keyBoardNav ? 0 : -1 }; return _this; } _createClass(BootstrapTable, [{ key: 'initTable', value: function initTable(props) { var _this2 = this; var keyField = props.keyField; var isKeyFieldDefined = typeof keyField === 'string' && keyField.length; _react2.default.Children.forEach(props.children, function (column) { if (column === null || column === undefined) { // Skip null and undefined value return; } if (column.props.isKey) { if (keyField) { throw new Error('Error. Multiple key column be detected in TableHeaderColumn.'); } keyField = column.props.dataField; } if (column.props.filter) { // a column contains a filter if (!_this2.filter) { // first time create the filter on the BootstrapTable _this2.filter = new _Filter.Filter(); } // pass the filter to column with filter column.props.filter.emitter = _this2.filter; } }); if (this.filter) { this.filter.removeAllListeners('onFilterChange'); this.filter.on('onFilterChange', function (currentFilter) { _this2.handleFilterData(currentFilter); }); } this.colInfos = this.getColumnsDescription(props).reduce(function (prev, curr) { prev[curr.name] = curr; return prev; }, {}); if (!isKeyFieldDefined && !keyField) { throw new Error('Error. No any key column defined in TableHeaderColumn.\n Use \'isKey={true}\' to specify a unique column after version 0.5.4.'); } this.store.setProps({ isPagination: props.pagination, keyField: keyField, colInfos: this.colInfos, multiColumnSearch: props.multiColumnSearch, strictSearch: props.strictSearch, multiColumnSort: props.multiColumnSort, remote: this.props.remote }); } }, { key: 'getTableData', value: function getTableData() { var result = []; var _props = this.props, options = _props.options, pagination = _props.pagination; var sortName = options.defaultSortName || options.sortName; var sortOrder = options.defaultSortOrder || options.sortOrder; var searchText = options.defaultSearch; if (sortName && sortOrder) { this.store.setSortInfo(sortOrder, sortName); if (!this.allowRemote(_Const2.default.REMOTE_SORT)) { this.store.sort(); } } if (searchText) { this.store.search(searchText); } if (pagination) { var page = void 0; var sizePerPage = void 0; if (this.store.isChangedPage()) { sizePerPage = this.state.sizePerPage; page = this.state.currPage; } else { sizePerPage = options.sizePerPage || _Const2.default.SIZE_PER_PAGE_LIST[0]; page = options.page || 1; } result = this.store.page(page, sizePerPage).get(); } else { result = this.store.get(); } return result; } }, { key: 'getColumnsDescription', value: function getColumnsDescription(_ref) { var children = _ref.children; var rowCount = 0; _react2.default.Children.forEach(children, function (column) { if (column === null || column === undefined) { // Skip null and undefined value return; } if (Number(column.props.row) > rowCount) { rowCount = Number(column.props.row); } }); return _react2.default.Children.map(children, function (column, i) { if (column === null || column === undefined) { // Return null for empty objects return null; } var rowIndex = column.props.row ? Number(column.props.row) : 0; var rowSpan = column.props.rowSpan ? Number(column.props.rowSpan) : 1; if (rowSpan + rowIndex === rowCount + 1) { return { name: column.props.dataField, align: column.props.dataAlign, sort: column.props.dataSort, format: column.props.dataFormat, formatExtraData: column.props.formatExtraData, filterFormatted: column.props.filterFormatted, filterValue: column.props.filterValue, editable: column.props.editable, customEditor: column.props.customEditor, hidden: column.props.hidden, hiddenOnInsert: column.props.hiddenOnInsert, searchable: column.props.searchable, className: column.props.columnClassName, editClassName: column.props.editColumnClassName, invalidEditColumnClassName: column.props.invalidEditColumnClassName, columnTitle: column.props.columnTitle, width: column.props.width, text: column.props.headerText || column.props.children, sortFunc: column.props.sortFunc, sortFuncExtraData: column.props.sortFuncExtraData, export: column.props.export, expandable: column.props.expandable, index: i, attrs: column.props.tdAttr, style: column.props.tdStyle }; } }); } }, { key: 'reset', value: function reset() { var pageStartIndex = this.props.options.pageStartIndex; this.store.clean(); this.setState({ data: this.getTableData(), currPage: _util2.default.getFirstPage(pageStartIndex), expanding: [], sizePerPage: _Const2.default.SIZE_PER_PAGE_LIST[0], selectedRowKeys: this.store.getSelectedRowKeys(), reset: true }); } }, { key: 'componentWillReceiveProps', value: function componentWillReceiveProps(nextProps) { this.initTable(nextProps); var options = nextProps.options, selectRow = nextProps.selectRow; this.store.setData(nextProps.data.slice()); // from #481 var page = this.state.currPage; if (this.props.options.page !== options.page) { page = options.page; } // from #481 var sizePerPage = this.state.sizePerPage; if (this.props.options.sizePerPage !== options.sizePerPage) { sizePerPage = options.sizePerPage; } if (this.isRemoteDataSource()) { var data = nextProps.data.slice(); if (nextProps.pagination && !this.allowRemote(_Const2.default.REMOTE_PAGE)) { data = this.store.page(page, sizePerPage).get(); } this.setState({ data: data, currPage: page, sizePerPage: sizePerPage, reset: false }); } else { // #125 // remove !options.page for #709 if (page > Math.ceil(nextProps.data.length / sizePerPage)) { page = 1; } var sortList = this.store.getSortInfo(); var sortField = options.sortName; var sortOrder = options.sortOrder; if (sortField && sortOrder) { this.store.setSortInfo(sortOrder, sortField); this.store.sort(); } else if (sortList.length > 0) { this.store.sort(); } var _data = this.store.page(page, sizePerPage).get(); this.setState({ data: _data, currPage: page, sizePerPage: sizePerPage, reset: false }); if (this.store.isSearching && options.afterSearch) { options.afterSearch(this.store.searchText, this.store.getDataIgnoringPagination()); } if (this.store.isFiltering && options.afterColumnFilter) { options.afterColumnFilter(this.store.filterObj, this.store.getDataIgnoringPagination()); } } // If setting the expanded rows is being handled externally // then overwrite the current expanded rows. if (this.props.options.expanding !== options.expanding) { this.setState({ expanding: options.expanding || [] }); } if (selectRow && selectRow.selected) { // set default select rows to store. var copy = selectRow.selected.slice(); this.store.setSelectedRowKey(copy); this.setState({ selectedRowKeys: copy, reset: false }); } } }, { key: 'componentDidMount', value: function componentDidMount() { this._adjustTable(); window.addEventListener('resize', this._adjustTable); this.refs.body.refs.container.addEventListener('scroll', this._scrollHeader); if (this.props.scrollTop) { this._scrollTop(); } } }, { key: 'componentWillUnmount', value: function componentWillUnmount() { window.removeEventListener('resize', this._adjustTable); if (this.refs && this.refs.body && this.refs.body.refs) { this.refs.body.refs.container.removeEventListener('scroll', this._scrollHeader); } if (this.filter) { this.filter.removeAllListeners('onFilterChange'); } } }, { key: 'componentDidUpdate', value: function componentDidUpdate() { this._adjustTable(); this._attachCellEditFunc(); if (this.props.options.afterTableComplete) { this.props.options.afterTableComplete(); } } }, { key: '_attachCellEditFunc', value: function _attachCellEditFunc() { var cellEdit = this.props.cellEdit; if (cellEdit) { this.props.cellEdit.__onCompleteEdit__ = this.handleEditCell.bind(this); if (cellEdit.mode !== _Const2.default.CELL_EDIT_NONE) { this.props.selectRow.clickToSelect = false; } } } /** * Returns true if in the current configuration, * the datagrid should load its data remotely. * * @param {Object} [props] Optional. If not given, this.props will be used * @return {Boolean} */ }, { key: 'isRemoteDataSource', value: function isRemoteDataSource(props) { var _ref2 = props || this.props, remote = _ref2.remote; return remote === true || _util2.default.isFunction(remote); } /** * Returns true if this action can be handled remote store * From #990, Sometimes, we need some actions as remote, some actions are handled by default * so function will tell you the target action is can be handled as remote or not. * @param {String} [action] Required. * @param {Object} [props] Optional. If not given, this.props will be used * @return {Boolean} */ }, { key: 'allowRemote', value: function allowRemote(action, props) { var _ref3 = props || this.props, remote = _ref3.remote; if (typeof remote === 'function') { var remoteObj = remote(_Const2.default.REMOTE); return remoteObj[action]; } else { return remote; } } }, { key: 'render', value: function render() { var style = { height: this.props.height, maxHeight: this.props.maxHeight }; var columns = this.getColumnsDescription(this.props); var sortList = this.store.getSortInfo(); var pagination = this.renderPagination(); var toolBar = this.renderToolBar(); var tableFilter = this.renderTableFilter(columns); var isSelectAll = this.isSelectAll(); var expandColumnOptions = this.props.expandColumnOptions; if (typeof expandColumnOptions.expandColumnBeforeSelectColumn === 'undefined') { expandColumnOptions.expandColumnBeforeSelectColumn = true; } var colGroups = _util2.default.renderColGroup(columns, this.props.selectRow, expandColumnOptions); var sortIndicator = this.props.options.sortIndicator; if (typeof this.props.options.sortIndicator === 'undefined') sortIndicator = true; var _props$options$pagina = this.props.options.paginationPosition, paginationPosition = _props$options$pagina === undefined ? _Const2.default.PAGINATION_POS_BOTTOM : _props$options$pagina; var showPaginationOnTop = paginationPosition !== _Const2.default.PAGINATION_POS_BOTTOM; var showPaginationOnBottom = paginationPosition !== _Const2.default.PAGINATION_POS_TOP; return _react2.default.createElement( 'div', { className: (0, _classnames2.default)('react-bs-table-container', this.props.className, this.props.containerClass), style: this.props.containerStyle }, toolBar, showPaginationOnTop ? pagination : null, _react2.default.createElement( 'div', { ref: 'table', className: (0, _classnames2.default)('react-bs-table', { 'react-bs-table-bordered': this.props.bordered }, this.props.tableContainerClass), style: _extends({}, style, this.props.tableStyle), onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, _react2.default.createElement( _TableHeader2.default, { ref: 'header', colGroups: colGroups, headerContainerClass: this.props.headerContainerClass, tableHeaderClass: this.props.tableHeaderClass, style: this.props.headerStyle, rowSelectType: this.props.selectRow.mode, customComponent: this.props.selectRow.customComponent, hideSelectColumn: this.props.selectRow.hideSelectColumn, sortList: sortList, sortIndicator: sortIndicator, onSort: this.handleSort, onSelectAllRow: this.handleSelectAllRow, bordered: this.props.bordered, condensed: this.props.condensed, isFiltered: this.filter ? true : false, isSelectAll: isSelectAll, reset: this.state.reset, expandColumnVisible: expandColumnOptions.expandColumnVisible, expandColumnComponent: expandColumnOptions.expandColumnComponent, expandColumnBeforeSelectColumn: expandColumnOptions.expandColumnBeforeSelectColumn }, this.props.children ), _react2.default.createElement(_TableBody2.default, { ref: 'body', bodyContainerClass: this.props.bodyContainerClass, tableBodyClass: this.props.tableBodyClass, style: _extends({}, style, this.props.bodyStyle), data: this.state.data, expandComponent: this.props.expandComponent, expandableRow: this.props.expandableRow, expandRowBgColor: this.props.options.expandRowBgColor, expandBy: this.props.options.expandBy || _Const2.default.EXPAND_BY_ROW, expandBodyClass: this.props.options.expandBodyClass, expandParentClass: this.props.options.expandParentClass, columns: columns, trClassName: this.props.trClassName, striped: this.props.striped, bordered: this.props.bordered, hover: this.props.hover, keyField: this.store.getKeyField(), condensed: this.props.condensed, selectRow: this.props.selectRow, expandColumnOptions: this.props.expandColumnOptions, cellEdit: this.props.cellEdit, selectedRowKeys: this.state.selectedRowKeys, onRowClick: this.handleRowClick, onRowDoubleClick: this.handleRowDoubleClick, onRowMouseOver: this.handleRowMouseOver, onRowMouseOut: this.handleRowMouseOut, onSelectRow: this.handleSelectRow, noDataText: this.props.options.noDataText, withoutNoDataText: this.props.options.withoutNoDataText, expanding: this.state.expanding, onExpand: this.handleExpandRow, onlyOneExpanding: this.props.options.onlyOneExpanding, beforeShowError: this.props.options.beforeShowError, keyBoardNav: this.props.keyBoardNav, onNavigateCell: this.handleNavigateCell, x: this.state.x, y: this.state.y }) ), tableFilter, showPaginationOnBottom ? pagination : null ); } }, { key: 'isSelectAll', value: function isSelectAll() { if (this.store.isEmpty()) return false; var _props$selectRow = this.props.selectRow, unselectable = _props$selectRow.unselectable, onlyUnselectVisible = _props$selectRow.onlyUnselectVisible; var keyField = this.store.getKeyField(); var allRowKeys = onlyUnselectVisible ? this.store.get().map(function (r) { return r[keyField]; }) : this.store.getAllRowkey(); var defaultSelectRowKeys = this.store.getSelectedRowKeys(); if (onlyUnselectVisible) { defaultSelectRowKeys = defaultSelectRowKeys.filter(function (x) { return x !== allRowKeys; }); } if (defaultSelectRowKeys.length === 0) return false; var match = 0; var noFound = 0; var unSelectableCnt = 0; defaultSelectRowKeys.forEach(function (selected) { if (allRowKeys.indexOf(selected) !== -1) match++;else noFound++; if (unselectable && unselectable.indexOf(selected) !== -1) unSelectableCnt++; }); if (noFound === defaultSelectRowKeys.length) return false; if (match === allRowKeys.length) { return true; } else { if (unselectable && match <= unSelectableCnt && unSelectableCnt === unselectable.length) return false;else return 'indeterminate'; } // return (match === allRowKeys.length) ? true : 'indeterminate'; } }, { key: 'cleanSelected', value: function cleanSelected() { this.store.setSelectedRowKey([]); this.setState({ selectedRowKeys: [], reset: false }); } }, { key: 'cleanSort', value: function cleanSort() { this.store.cleanSortInfo(); this.setState({ reset: false }); } }, { key: '__handleSort__REACT_HOT_LOADER__', value: function __handleSort__REACT_HOT_LOADER__(order, sortField) { if (this.props.options.onSortChange) { this.props.options.onSortChange(sortField, order, this.props); } this.store.setSortInfo(order, sortField); if (this.allowRemote(_Const2.default.REMOTE_SORT)) { return; } var result = this.store.sort().get(); this.setState({ data: result, reset: false }); } }, { key: '__handleExpandRow__REACT_HOT_LOADER__', value: function __handleExpandRow__REACT_HOT_LOADER__(expanding, rowKey, isRowExpanding) { var _this3 = this; var onExpand = this.props.options.onExpand; if (onExpand) { onExpand(rowKey, !isRowExpanding); } this.setState({ expanding: expanding, reset: false }, function () { _this3._adjustHeaderWidth(); }); } }, { key: '__handlePaginationData__REACT_HOT_LOADER__', value: function __handlePaginationData__REACT_HOT_LOADER__(page, sizePerPage) { var _props$options = this.props.options, onPageChange = _props$options.onPageChange, pageStartIndex = _props$options.pageStartIndex; var emptyTable = this.store.isEmpty(); if (onPageChange) { onPageChange(page, sizePerPage); } var state = { sizePerPage: sizePerPage, reset: false }; if (!emptyTable) state.currPage = page; this.setState(state); if (this.allowRemote(_Const2.default.REMOTE_PAGE) || emptyTable) { return; } var result = this.store.page(_util2.default.getNormalizedPage(pageStartIndex, page), sizePerPage).get(); this.setState({ data: result, reset: false }); } }, { key: '__handleMouseLeave__REACT_HOT_LOADER__', value: function __handleMouseLeave__REACT_HOT_LOADER__() { if (this.props.options.onMouseLeave) { this.props.options.onMouseLeave(); } } }, { key: '__handleMouseEnter__REACT_HOT_LOADER__', value: function __handleMouseEnter__REACT_HOT_LOADER__() { if (this.props.options.onMouseEnter) { this.props.options.onMouseEnter(); } } }, { key: '__handleRowMouseOut__REACT_HOT_LOADER__', value: function __handleRowMouseOut__REACT_HOT_LOADER__(row, event) { if (this.props.options.onRowMouseOut) { this.props.options.onRowMouseOut(row, event); } } }, { key: '__handleRowMouseOver__REACT_HOT_LOADER__', value: function __handleRowMouseOver__REACT_HOT_LOADER__(row, event) { if (this.props.options.onRowMouseOver) { this.props.options.onRowMouseOver(row, event); } } }, { key: '__handleNavigateCell__REACT_HOT_LOADER__', value: function __handleNavigateCell__REACT_HOT_LOADER__(_ref4) { var offSetX = _ref4.x, offSetY = _ref4.y, lastEditCell = _ref4.lastEditCell; var pagination = this.props.pagination; var _state = this.state, x = _state.x, y = _state.y, currPage = _state.currPage; x += offSetX; y += offSetY; var columns = this.store.getColInfos(); var visibleRowSize = this.state.data.length; var visibleColumnSize = Object.keys(columns).filter(function (k) { return !columns[k].hidden; }).length; if (y >= visibleRowSize) { currPage++; var lastPage = pagination ? this.refs.pagination.getLastPage() : -1; if (currPage <= lastPage) { this.handlePaginationData(currPage, this.state.sizePerPage); } else { return; } y = 0; } else if (y < 0) { currPage--; if (currPage > 0) { this.handlePaginationData(currPage, this.state.sizePerPage); } else { return; } y = visibleRowSize - 1; } else if (x >= visibleColumnSize) { if (y + 1 === visibleRowSize) { currPage++; var _lastPage = pagination ? this.refs.pagination.getLastPage() : -1; if (currPage <= _lastPage) { this.handlePaginationData(currPage, this.state.sizePerPage); } else { return; } y = 0; } else { y++; } x = lastEditCell ? 1 : 0; } else if (x < 0) { x = visibleColumnSize - 1; if (y === 0) { currPage--; if (currPage > 0) { this.handlePaginationData(currPage, this.state.sizePerPage); } else { return; } y = this.state.sizePerPage - 1; } else { y--; } } this.setState({ x: x, y: y, currPage: currPage, reset: false }); } }, { key: '__handleRowClick__REACT_HOT_LOADER__', value: function __handleRowClick__REACT_HOT_LOADER__(row, rowIndex, cellIndex) { var _props2 = this.props, options = _props2.options, keyBoardNav = _props2.keyBoardNav; if (options.onRowClick) { options.onRowClick(row); } if (keyBoardNav) { var _ref5 = (typeof keyBoardNav === 'undefined' ? 'undefined' : _typeof(keyBoardNav)) === 'object' ? keyBoardNav : {}, clickToNav = _ref5.clickToNav; clickToNav = clickToNav === false ? clickToNav : true; if (clickToNav) { this.setState({ x: cellIndex, y: rowIndex, reset: false }); } } } }, { key: '__handleRowDoubleClick__REACT_HOT_LOADER__', value: function __handleRowDoubleClick__REACT_HOT_LOADER__(row) { if (this.props.options.onRowDoubleClick) { this.props.options.onRowDoubleClick(row); } } }, { key: '__handleSelectAllRow__REACT_HOT_LOADER__', value: function __handleSelectAllRow__REACT_HOT_LOADER__(e) { var isSelected = e.currentTarget.checked; var keyField = this.store.getKeyField(); var _props$selectRow2 = this.props.selectRow, onSelectAll = _props$selectRow2.onSelectAll, unselectable = _props$selectRow2.unselectable, selected = _props$selectRow2.selected, onlyUnselectVisible = _props$selectRow2.onlyUnselectVisible; var selectedRowKeys = onlyUnselectVisible ? this.state.selectedRowKeys : []; var result = true; var rows = this.store.get(); // onlyUnselectVisible default is false, #1276 if (!isSelected && !onlyUnselectVisible) { rows = this.store.getRowByKey(this.state.selectedRowKeys); } if (unselectable && unselectable.length > 0) { if (isSelected) { rows = rows.filter(function (r) { return unselectable.indexOf(r[keyField]) === -1 || selected && selected.indexOf(r[keyField]) !== -1; }); } else { rows = rows.filter(function (r) { return unselectable.indexOf(r[keyField]) === -1; }); } } if (onSelectAll) { result = this.props.selectRow.onSelectAll(isSelected, rows); } if (typeof result == 'undefined' || result !== false) { if (isSelected) { if (Array.isArray(result)) { selectedRowKeys = result; } else { var currentRowKeys = rows.map(function (r) { return r[keyField]; }); // onlyUnselectVisible default is false, #1276 if (onlyUnselectVisible) { selectedRowKeys = selectedRowKeys.concat(currentRowKeys); } else { selectedRowKeys = currentRowKeys; } } } else { if (unselectable && selected) { selectedRowKeys = selected.filter(function (r) { return unselectable.indexOf(r) > -1; }); } else if (onlyUnselectVisible) { (function () { var currentRowKeys = rows.map(function (r) { return r[keyField]; }); selectedRowKeys = selectedRowKeys.filter(function (k) { return currentRowKeys.indexOf(k) === -1; }); })(); } } this.store.setSelectedRowKey(selectedRowKeys); this.setState({ selectedRowKeys: selectedRowKeys, reset: false }); } } }, { key: '__handleShowOnlySelected__REACT_HOT_LOADER__', value: function __handleShowOnlySelected__REACT_HOT_LOADER__() { this.store.ignoreNonSelected(); var pageStartIndex = this.props.options.pageStartIndex; var result = void 0; if (this.props.pagination) { result = this.store.page(_util2.default.getNormalizedPage(pageStartIndex), this.state.sizePerPage).get(); } else { result = this.store.get(); } this.setState({ data: result, reset: false, currPage: _util2.default.getFirstPage(pageStartIndex) }); } }, { key: '__handleSelectRow__REACT_HOT_LOADER__', value: function __handleSelectRow__REACT_HOT_LOADER__(row, isSelected, e) { var result = true; var currSelected = this.store.getSelectedRowKeys(); var rowKey = row[this.store.getKeyField()]; var selectRow = this.props.selectRow; if (selectRow.onSelect) { result = selectRow.onSelect(row, isSelected, e); } if (typeof result === 'undefined' || result !== false) { if (selectRow.mode === _Const2.default.ROW_SELECT_SINGLE) { currSelected = isSelected ? [rowKey] : []; } else { if (isSelected) { currSelected.push(rowKey); } else { currSelected = currSelected.filter(function (key) { return rowKey !== key; }); } } this.store.setSelectedRowKey(currSelected); this.setState({ selectedRowKeys: currSelected, reset: false }); } } }, { key: 'handleEditCell', value: function handleEditCell(newVal, rowIndex, colIndex) { var _this4 = this; var beforeSaveCell = this.props.cellEdit.beforeSaveCell; var columns = this.getColumnsDescription(this.props); var fieldName = columns[colIndex].name; var invalid = function invalid() { _this4.setState({ data: _this4.store.get(), reset: false }); return; }; if (beforeSaveCell) { var beforeSaveCellCB = function beforeSaveCellCB(result) { _this4.refs.body.cancelEditCell(); if (result || result === undefined) { _this4.editCell(newVal, rowIndex, colIndex); } else { invalid(); } }; var isValid = beforeSaveCell(this.state.data[rowIndex], fieldName, newVal, beforeSaveCellCB); if (isValid === false && typeof isValid !== 'undefined') { return invalid(); } else if (isValid === _Const2.default.AWAIT_BEFORE_CELL_EDIT) { /* eslint consistent-return: 0 */ return isValid; } } this.editCell(newVal, rowIndex, colIndex); } }, { key: 'editCell', value: function editCell(newVal, rowIndex, colIndex) { var onCellEdit = this.props.options.onCellEdit; var afterSaveCell = this.props.cellEdit.afterSaveCell; var columns = this.getColumnsDescription(this.props); var fieldName = columns[colIndex].name; if (onCellEdit) { newVal = onCellEdit(this.state.data[rowIndex], fieldName, newVal); } if (this.allowRemote(_Const2.default.REMOTE_CELL_EDIT)) { if (afterSaveCell) { afterSaveCell(this.state.data[rowIndex], fieldName, newVal); } return; } var result = this.store.edit(newVal, rowIndex, fieldName).get(); this.setState({ data: result, reset: false }); if (afterSaveCell) { afterSaveCell(this.state.data[rowIndex], fieldName, newVal); } } }, { key: 'handleAddRowAtBegin', value: function handleAddRowAtBegin(newObj) { try { this.store.addAtBegin(newObj); } catch (e) { return e; } this._handleAfterAddingRow(newObj, true); } }, { key: '__handleAddRow__REACT_HOT_LOADER__', value: function __handleAddRow__REACT_HOT_LOADER__(newObj) { var onAddRow = this.props.options.onAddRow; if (onAddRow) { var colInfos = this.store.getColInfos(); onAddRow(newObj, colInfos); } if (this.allowRemote(_Const2.default.REMOTE_INSERT_ROW)) { if (this.props.options.afterInsertRow) { this.props.options.afterInsertRow(newObj); } return null; } try { this.store.add(newObj); } catch (e) { return e.message; } this._handleAfterAddingRow(newObj, false); } }, { key: 'getSizePerPage', value: function getSizePerPage() { return this.state.sizePerPage; } }, { key: 'getCurrentPage', value: function getCurrentPage() { return this.state.currPage; } }, { key: 'getTableDataIgnorePaging', value: function getTableDataIgnorePaging() { return this.store.getCurrentDisplayData(); } }, { key: '__getPageByRowKey__REACT_HOT_LOADER__', value: function __getPageByRowKey__REACT_HOT_LOADER__(rowKey) { var sizePerPage = this.state.sizePerPage; var currentData = this.store.getCurrentDisplayData(); var keyField = this.store.getKeyField(); var result = currentData.findIndex(function (x) { return x[keyField] === rowKey; }); if (result > -1) { return parseInt(result / sizePerPage, 10) + 1; } else { return result; } } }, { key: '__handleDropRow__REACT_HOT_LOADER__', value: function __handleDropRow__REACT_HOT_LOADER__(rowKeys) { var _this5 = this; var dropRowKeys = rowKeys ? rowKeys : this.store.getSelectedRowKeys(); // add confirm before the delete action if that option is set. if (dropRowKeys && dropRowKeys.length > 0) { if (this.props.options.handleConfirmDeleteRow) { this.props.options.handleConfirmDeleteRow(function () { _this5.deleteRow(dropRowKeys); }, dropRowKeys); } else if (confirm('Are you sure you want to delete?')) { this.deleteRow(dropRowKeys); } } } }, { key: 'deleteRow', value: function deleteRow(dropRowKeys) { var onDeleteRow = this.props.options.onDeleteRow; if (onDeleteRow) { onDeleteRow(dropRowKeys); } this.store.setSelectedRowKey([]); // clear selected row key if (this.allowRemote(_Const2.default.REMOTE_DROP_ROW)) { if (this.props.options.afterDeleteRow) { this.props.options.afterDeleteRow(dropRowKeys); } return; } this.store.remove(dropRowKeys); // remove selected Row var result = void 0; if (this.props.pagination) { var sizePerPage = this.state.sizePerPage; var currLastPage = Math.ceil(this.store.getDataNum() / sizePerPage); var currPage = this.state.currPage; if (currPage > currLastPage) currPage = currLastPage; result = this.store.page(_util2.default.getNormalizedPage(currPage), sizePerPage).get(); this.setState({ data: result, selectedRowKeys: this.store.getSelectedRowKeys(), currPage: currPage, reset: false }); } else { result = this.store.get(); this.setState({ data: result, reset: false, selectedRowKeys: this.store.getSelectedRowKeys() }); } if (this.props.options.afterDeleteRow) { this.props.options.afterDeleteRow(dropRowKeys); } } }, { key: '__handleFilterData__REACT_HOT_LOADER__', value: function __handleFilterData__REACT_HOT_LOADER__(filterObj) { var _props$options2 = this.props.options, onFilterChange = _props$options2.onFilterChange, pageStartIndex = _props$options2.pageStartIndex; if (onFilterChange) { var colInfos = this.store.getColInfos(); onFilterChange(filterObj, colInfos); } this.setState({ currPage: _util2.default.getFirstPage(pageStartIndex), reset: false }); if (this.allowRemote(_Const2.default.REMOTE_FILTER)) { if (this.props.options.afterColumnFilter) { this.props.options.afterColumnFilter(filterObj, this.store.getDataIgnoringPagination()); } return; } this.store.filter(filterObj); var sortList = this.store.getSortInfo(); if (sortList.length > 0) { this.store.sort(); } var result = void 0; if (this.props.pagination) { var sizePerPage = this.state.sizePerPage; result = this.store.page(_util2.default.getNormalizedPage(pageStartIndex), sizePerPage).get(); } else { result = this.store.get(); } if (this.props.options.afterColumnFilter) { this.props.options.afterColumnFilter(filterObj, this.store.getDataIgnoringPagination()); } this.setState({ data: result, reset: false }); } }, { key: '__handleExportCSV__REACT_HOT_LOADER__', value: function __handleExportCSV__REACT_HOT_LOADER__() { var result = {}; var csvFileName = this.props.csvFileName; var onExportToCSV = this.props.options.onExportToCSV; if (onExportToCSV) { result = onExportToCSV(); } else { result = this.store.getDataIgnoringPagination(); } var keys = []; this.props.children.filter(function (_) { return _ != null; }).map(function (column) { if (column.props.export === true || typeof column.props.export === 'undefined' && column.props.hidden === false) { keys.push({ field: column.props.dataField, format: column.props.csvFormat, extraData: column.props.csvFormatExtraData, header: column.props.csvHeader || column.props.dataField, row: Number(column.props.row) || 0, rowSpan: Number(column.props.rowSpan) || 1, colSpan: Number(column.props.colSpan) || 1 }); } }); if (_util2.default.isFunction(csvFileName)) { csvFileName = csvFileName(); } (0, _csv_export_util2.default)(result, keys, csvFileName); } }, { key: '__handleSearch__REACT_HOT_LOADER__', value: function __handleSearch__REACT_HOT_LOADER__(searchText) { // Set search field if this function being called outside // but it's not necessary if calling fron inside. if (this.refs.toolbar) { this.refs.toolbar.setSearchInput(searchText); } var _props$options3 = this.props.options, onSearchChange = _props$options3.onSearchChange, pageStartIndex = _props$options3.pageStartIndex; if (onSearchChange) { var colInfos = this.store.getColInfos(); onSearchChange(searchText, colInfos, this.props.multiColumnSearch); } this.setState({ currPage: _util2.default.getFirstPage(pageStartIndex), reset: false }); if (this.allowRemote(_Const2.default.REMOTE_SEARCH)) { if (this.props.options.afterSearch) { this.props.options.afterSearch(searchText, this.store.getDataIgnoringPagination()); } return; } this.store.search(searchText); var sortList = this.store.getSortInfo(); if (sortList.length > 0) { this.store.sort(); } var result = void 0; if (this.props.pagination) { var sizePerPage = this.state.sizePerPage; result = this.store.page(_util2.default.getNormalizedPage(pageStartIndex), sizePerPage).get(); } else { result = this.store.get(); } if (this.props.options.afterSearch) { this.props.options.afterSearch(searchText, this.store.getDataIgnoringPagination()); } this.setState({ data: result, reset: false }); } }, { key: 'renderPagination', value: function renderPagination() { if (this.props.pagination) { var dataSize = void 0; if (this.allowRemote(_Const2.default.REMOTE_PAGE)) { dataSize = this.props.fetchInfo.dataTotalSize; } else { dataSize = this.store.getDataNum(); } var options = this.props.options; var withFirstAndLast = options.withFirstAndLast === undefined ? true : options.withFirstAndLast; if (Math.ceil(dataSize / this.state.sizePerPage) <= 1 && this.props.ignoreSinglePage) return null; return _react2.default.createElement( 'div', { className: 'react-bs-table-pagination' }, _react2.default.createElement(_PaginationList2.default, { ref: 'pagination', withFirstAndLast: withFirstAndLast, alwaysShowAllBtns: options.alwaysShowAllBtns, currPage: this.state.currPage, changePage: this.handlePaginationData, sizePerPage: this.state.sizePerPage, sizePerPageList: options.sizePerPageList || _Const2.default.SIZE_PER_PAGE_LIST, pageStartIndex: options.pageStartIndex, paginationShowsTotal: options.paginationShowsTotal, paginationSize: options.paginationSize || _Const2.default.PAGINATION_SIZE, dataSize: dataSize, onSizePerPageList: options.onSizePerPageList, prePage: options.prePage || _Const2.default.PRE_PAGE, nextPage: options.nextPage || _Const2.default.NEXT_PAGE, firstPage: options.firstPage || _Const2.default.FIRST_PAGE, lastPage: options.lastPage || _Const2.default.LAST_PAGE, prePageTitle: options.prePageTitle || _Const2.default.PRE_PAGE_TITLE, nextPageTitle: options.nextPageTitle || _Const2.default.NEXT_PAGE_TITLE, firstPageTitle: options.firstPageTitle || _Const2.default.FIRST_PAGE_TITLE, lastPageTitle: options.lastPageTitle || _Const2.default.LAST_PAGE_TITLE, hideSizePerPage: options.hideSizePerPage, sizePerPageDropDown: options.sizePerPageDropDown, hidePageListOnlyOnePage: options.hidePageListOnlyOnePage, paginationPanel: options.paginationPanel, keepSizePerPageState: options.keepSizePerPageState, open: false }) ); } return null; } }, { key: 'renderToolBar', value: function renderToolBar() { var _props3 = this.props, exportCSV = _props3.exportCSV, selectRow = _props3.selectRow, insertRow = _props3.insertRow, deleteRow = _props3.deleteRow, search = _props3.search, children = _props3.children, keyField = _props3.keyField; var enableShowOnlySelected = selectRow && selectRow.showOnlySelected; var print = typeof this.props.options.printToolBar === 'undefined' ? true : this.props.options.printToolBar; if (enableShowOnlySelected || insertRow || deleteRow || search || exportCSV || this.props.options.searchPanel || this.props.options.btnGroup || this.props.options.toolBar) { var columns = void 0; if (Array.isArray(children)) { columns = children.filter(function (_) { return _ != null; }).map(function (column, r) { if (!column) return; var props = column.props; var isKey = props.isKey || keyField === props.dataField; return { isKey: isKey, name: props.headerText || props.children, field: props.dataField, hiddenOnInsert: props.hiddenOnInsert, keyValidator: props.keyValidator, customInsertEditor: props.customInsertEditor, // when you want same auto generate value and not allow edit, example ID field autoValue: props.autoValue || false, // for create editor, no params for column.editable() indicate that editor for new row editable: props.editable && _util2.default.isFunction(props.editable === 'function') ? props.editable() : props.editable, format: props.dataFormat ? function (value) { return props.dataFormat(value, null, props.formatExtraData, r).replace(/<.*?>/g, ''); } : false }; }); } else { columns = [{ name: children.props.headerText || children.props.children, field: children.props.dataField, editable: children.props.editable, customInsertEditor: children.props.customInsertEditor, hiddenOnInsert: children.props.hiddenOnInsert, keyValidator: children.props.keyValidator }]; } return _react2.default.createElement( 'div', { className: 'react-bs-table-tool-bar ' + (print ? '' : 'hidden-print') }, _react2.default.createElement(_ToolBar2.default, { ref: 'toolbar', defaultSearch: this.props.options.defaultSearch, clearSearch: this.props.options.clearSearch, searchPosition: this.props.options.searchPosition, searchDelayTime: this.props.options.searchDelayTime, enableInsert: insertRow, enableDelete: deleteRow, enableSearch: search, enableExportCSV: exportCSV, enableShowOnlySelected: enableShowOnlySelected, columns: columns, searchPlaceholder: this.props.searchPlaceholder, exportCSVText: this.props.options.exportCSVText, insertText: this.props.options.insertText, deleteText: this.props.options.deleteText, saveText: this.props.options.saveText, closeText: this.props.options.closeText, ignoreEditable: this.props.options.ignoreEditable, onAddRow: this.handleAddRow, onDropRow: this.handleDropRow, onSearch: this.handleSearch, onExportCSV: this.handleExportCSV, onShowOnlySelected: this.handleShowOnlySelected, insertModalHeader: this.props.options.insertModalHeader, insertModalFooter: this.props.options.insertModalFooter, insertModalBody: this.props.options.insertModalBody, insertModal: this.props.options.insertModal, insertBtn: this.props.options.insertBtn, deleteBtn: this.props.options.deleteBtn, showSelectedOnlyBtn: this.props.options.showSelectedOnlyBtn, exportCSVBtn: this.props.options.exportCSVBtn, clearSearchBtn: this.props.options.clearSearchBtn, searchField: this.props.options.searchField, searchPanel: this.props.options.searchPanel, btnGroup: this.props.options.btnGroup, toolBar: this.props.options.toolBar, reset: this.state.reset, isValidKey: this.store.isValidKey }) ); } else { return null; } } }, { key: 'renderTableFilter', value: function renderTableFilter(columns) { if (this.props.columnFilter) { return _react2.default.createElement(_TableFilter2.default, { columns: columns, rowSelectType: this.props.selectRow.mode, onFilter: this.handleFilterData }); } else { return null; } } }, { key: '___scrollTop__REACT_HOT_LOADER__', value: function ___scrollTop__REACT_HOT_LOADER__() { var scrollTop = this.props.scrollTop; if (scrollTop === _Const2.default.SCROLL_TOP) { this.refs.body.refs.container.scrollTop = 0; } else if (scrollTop === _Const2.default.SCROLL_BOTTOM) { this.refs.body.refs.container.scrollTop = this.refs.body.refs.container.scrollHeight; } else if (typeof scrollTop === 'number' && !isNaN(scrollTop)) { this.refs.body.refs.container.scrollTop = scrollTop; } } }, { key: '___scrollHeader__REACT_HOT_LOADER__', value: function ___scrollHeader__REACT_HOT_LOADER__(e) { this.refs.header.refs.container.scrollLeft = e.currentTarget.scrollLeft; } }, { key: '_adjustTable', value: function _adjustTable() { this._adjustHeight(); if (!this.props.printable) { this._adjustHeaderWidth(); } } }, { key: '_adjustHeaderWidth', value: function _adjustHeaderWidth() { var header = this.refs.header.getHeaderColGrouop(); var tbody = this.refs.body.refs.tbody; var bodyHeader = this.refs.body.getHeaderColGrouop(); var firstRow = tbody.childNodes[0]; var isScroll = tbody.parentNode.getBoundingClientRect().height > tbody.parentNode.parentNode.getBoundingClientRect().height; var scrollBarWidth = isScroll ? _util2.default.getScrollBarWidth() : 0; if (firstRow && this.store.getDataNum()) { if (isScroll || this.isVerticalScroll !== isScroll) { var cells = firstRow.childNodes; for (var i = 0; i < cells.length; i++) { var cell = cells[i]; var computedStyle = window.getComputedStyle(cell); var width = parseFloat(computedStyle.width.replace('px', '')); if (this.isIE) { var paddingLeftWidth = parseFloat(computedStyle.paddingLeft.replace('px', '')); var paddingRightWidth = parseFloat(computedStyle.paddingRight.replace('px', '')); var borderRightWidth = parseFloat(computedStyle.borderRightWidth.replace('px', '')); var borderLeftWidth = parseFloat(computedStyle.borderLeftWidth.replace('px', '')); width = width + paddingLeftWidth + paddingRightWidth + borderRightWidth + borderLeftWidth; } var lastPadding = cells.length - 1 === i ? scrollBarWidth : 0; if (width <= 0) { width = 120; cell.width = width + lastPadding + 'px'; } var result = width + lastPadding + 'px'; header[i].style.width = result; header[i].style.minWidth = result; if (cells.length - 1 === i) { bodyHeader[i].style.width = width + 'px'; bodyHeader[i].style.minWidth = width + 'px'; } else { bodyHeader[i].style.width = result; bodyHeader[i].style.minWidth = result; } } } } else { for (var _i in bodyHeader) { if (bodyHeader.hasOwnProperty(_i)) { var child = bodyHeader[_i]; if (child.style.width) { header[_i].style.width = child.style.width; } if (child.style.minWidth) { header[_i].style.minWidth = child.style.minWidth; } } } } this.isVerticalScroll = isScroll; } }, { key: '_adjustHeight', value: function _adjustHeight() { var height = this.props.height; var maxHeight = this.props.maxHeight; if (typeof height === 'number' && !isNaN(height) || height.indexOf('%') === -1) { this.refs.body.refs.container.style.height = parseFloat(height, 10) - this.refs.header.refs.container.offsetHeight + 'px'; } if (maxHeight) { maxHeight = typeof maxHeight === 'number' ? maxHeight : parseInt(maxHeight.replace('px', ''), 10); this.refs.body.refs.container.style.maxHeight = maxHeight - this.refs.header.refs.container.offsetHeight + 'px'; } } }, { key: '_handleAfterAddingRow', value: function _handleAfterAddingRow(newObj, atTheBeginning) { var result = void 0; if (this.props.pagination) { // if pagination is enabled and inserting row at the end, // change page to the last page // otherwise, change it to the first page var sizePerPage = this.state.sizePerPage; if (atTheBeginning) { var pageStartIndex = this.props.options.pageStartIndex; result = this.store.page(_util2.default.getNormalizedPage(pageStartIndex), sizePerPage).get(); this.setState({ data: result, currPage: _util2.default.getFirstPage(pageStartIndex), reset: false }); } else { var currLastPage = Math.ceil(this.store.getDataNum() / sizePerPage); result = this.store.page(currLastPage, sizePerPage).get(); this.setState({ data: result, currPage: currLastPage, reset: false }); } } else { result = this.store.get(); this.setState({ data: result, reset: false }); } if (this.props.options.afterInsertRow) { this.props.options.afterInsertRow(newObj); } } }]); return BootstrapTable; }(_react.Component); BootstrapTable.propTypes = { keyField: _react.PropTypes.string, height: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.number]), maxHeight: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.number]), data: _react.PropTypes.oneOfType([_react.PropTypes.array, _react.PropTypes.object]), remote: _react.PropTypes.oneOfType([_react.PropTypes.bool, _react.PropTypes.func]), // remote data, default is false scrollTop: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.number]), striped: _react.PropTypes.bool, bordered: _react.PropTypes.bool, hover: _react.PropTypes.bool, condensed: _react.PropTypes.bool, pagination: _react.PropTypes.bool, printable: _react.PropTypes.bool, keyBoardNav: _react.PropTypes.oneOfType([_react.PropTypes.bool, _react.PropTypes.object]), searchPlaceholder: _react.PropTypes.string, selectRow: _react.PropTypes.shape({ mode: _react.PropTypes.oneOf([_Const2.default.ROW_SELECT_NONE, _Const2.default.ROW_SELECT_SINGLE, _Const2.default.ROW_SELECT_MULTI]), customComponent: _react.PropTypes.func, bgColor: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.func]), selected: _react.PropTypes.array, onSelect: _react.PropTypes.func, onSelectAll: _react.PropTypes.func, clickToSelect: _react.PropTypes.bool, hideSelectColumn: _react.PropTypes.bool, clickToSelectAndEditCell: _react.PropTypes.bool, clickToExpand: _react.PropTypes.bool, showOnlySelected: _react.PropTypes.bool, unselectable: _react.PropTypes.array, columnWidth: _react.PropTypes.oneOfType([_react.PropTypes.number, _react.PropTypes.string]), onlyUnselectVisible: _react.PropTypes.bool }), cellEdit: _react.PropTypes.shape({ mode: _react.PropTypes.string, blurToSave: _react.PropTypes.bool, beforeSaveCell: _react.PropTypes.func, afterSaveCell: _react.PropTypes.func, nonEditableRows: _react.PropTypes.func }), insertRow: _react.PropTypes.bool, deleteRow: _react.PropTypes.bool, search: _react.PropTypes.bool, multiColumnSearch: _react.PropTypes.bool, strictSearch: _react.PropTypes.bool, columnFilter: _react.PropTypes.bool, trClassName: _react.PropTypes.any, tableStyle: _react.PropTypes.object, containerStyle: _react.PropTypes.object, headerStyle: _react.PropTypes.object, bodyStyle: _react.PropTypes.object, containerClass: _react.PropTypes.string, tableContainerClass: _react.PropTypes.string, headerContainerClass: _react.PropTypes.string, bodyContainerClass: _react.PropTypes.string, tableHeaderClass: _react.PropTypes.string, tableBodyClass: _react.PropTypes.string, options: _react.PropTypes.shape({ clearSearch: _react.PropTypes.bool, sortName: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.array]), sortOrder: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.array]), defaultSortName: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.array]), defaultSortOrder: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.array]), sortIndicator: _react.PropTypes.bool, afterTableComplete: _react.PropTypes.func, afterDeleteRow: _react.PropTypes.func, afterInsertRow: _react.PropTypes.func, afterSearch: _react.PropTypes.func, afterColumnFilter: _react.PropTypes.func, onRowClick: _react.PropTypes.func, onRowDoubleClick: _react.PropTypes.func, page: _react.PropTypes.number, pageStartIndex: _react.PropTypes.number, paginationShowsTotal: _react.PropTypes.oneOfType([_react.PropTypes.bool, _react.PropTypes.func]), sizePerPageList: _react.PropTypes.array, sizePerPage: _react.PropTypes.number, paginationSize: _react.PropTypes.number, paginationPosition: _react.PropTypes.oneOf([_Const2.default.PAGINATION_POS_TOP, _Const2.default.PAGINATION_POS_BOTTOM, _Const2.default.PAGINATION_POS_BOTH]), hideSizePerPage: _react.PropTypes.bool, hidePageListOnlyOnePage: _react.PropTypes.bool, alwaysShowAllBtns: _react.PropTypes.bool, withFirstAndLast: _react.PropTypes.bool, keepSizePerPageState: _react.PropTypes.bool, onSortChange: _react.PropTypes.func, onPageChange: _react.PropTypes.func, onSizePerPageList: _react.PropTypes.func, onFilterChange: _react2.default.PropTypes.func, onSearchChange: _react2.default.PropTypes.func, onAddRow: _react2.default.PropTypes.func, onExportToCSV: _react2.default.PropTypes.func, onCellEdit: _react2.default.PropTypes.func, noDataText: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.object]), withoutNoDataText: _react2.default.PropTypes.bool, handleConfirmDeleteRow: _react.PropTypes.func, prePage: _react.PropTypes.any, nextPage: _react.PropTypes.any, firstPage: _react.PropTypes.any, lastPage: _react.PropTypes.any, prePageTitle: _react.PropTypes.string, nextPageTitle: _react.PropTypes.string, firstPageTitle: _react.PropTypes.string, lastPageTitle: _react.PropTypes.string, searchDelayTime: _react.PropTypes.number, exportCSVText: _react.PropTypes.string, insertText: _react.PropTypes.string, deleteText: _react.PropTypes.string, saveText: _react.PropTypes.string, closeText: _react.PropTypes.string, ignoreEditable: _react.PropTypes.bool, defaultSearch: _react.PropTypes.string, insertModalHeader: _react.PropTypes.func, insertModalBody: _react.PropTypes.func, insertModalFooter: _react.PropTypes.func, insertModal: _react.PropTypes.func, insertBtn: _react.PropTypes.func, deleteBtn: _react.PropTypes.func, showSelectedOnlyBtn: _react.PropTypes.func, exportCSVBtn: _react.PropTypes.func, clearSearchBtn: _react.PropTypes.func, searchField: _react.PropTypes.func, searchPanel: _react.PropTypes.func, btnGroup: _react.PropTypes.func, toolBar: _react.PropTypes.func, sizePerPageDropDown: _react.PropTypes.func, paginationPanel: _react.PropTypes.func, searchPosition: _react.PropTypes.string, expandRowBgColor: _react.PropTypes.string, expandBy: _react.PropTypes.string, expanding: _react.PropTypes.array, onExpand: _react.PropTypes.func, onlyOneExpanding: _react.PropTypes.bool, expandBodyClass: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.func]), expandParentClass: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.func]), beforeShowError: _react.PropTypes.func, printToolBar: _react.PropTypes.bool }), fetchInfo: _react.PropTypes.shape({ dataTotalSize: _react.PropTypes.number }), exportCSV: _react.PropTypes.bool, csvFileName: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.func]), ignoreSinglePage: _react.PropTypes.bool, expandableRow: _react.PropTypes.func, expandComponent: _react.PropTypes.func, expandColumnOptions: _react.PropTypes.shape({ columnWidth: _react.PropTypes.oneOfType([_react.PropTypes.number, _react.PropTypes.string]), expandColumnVisible: _react.PropTypes.bool, expandColumnComponent: _react.PropTypes.func, expandColumnBeforeSelectColumn: _react.PropTypes.bool }) }; BootstrapTable.defaultProps = { scrollTop: undefined, expandComponent: undefined, expandableRow: undefined, expandColumnOptions: { expandColumnVisible: false, expandColumnComponent: undefined, expandColumnBeforeSelectColumn: true }, height: '100%', maxHeight: undefined, striped: false, bordered: true, hover: false, condensed: false, pagination: false, printable: false, keyBoardNav: false, searchPlaceholder: undefined, selectRow: { mode: _Const2.default.ROW_SELECT_NONE, bgColor: _Const2.default.ROW_SELECT_BG_COLOR, selected: [], onSelect: undefined, onSelectAll: undefined, clickToSelect: false, hideSelectColumn: false, clickToSelectAndEditCell: false, clickToExpand: false, showOnlySelected: false, unselectable: [], customComponent: undefined, onlyUnselectVisible: false }, cellEdit: { mode: _Const2.default.CELL_EDIT_NONE, blurToSave: false, beforeSaveCell: undefined, afterSaveCell: undefined, nonEditableRows: undefined }, insertRow: false, deleteRow: false, search: false, multiColumnSearch: false, strictSearch: undefined, multiColumnSort: 1, columnFilter: false, trClassName: '', tableStyle: undefined, containerStyle: undefined, headerStyle: undefined, bodyStyle: undefined, containerClass: null, tableContainerClass: null, headerContainerClass: null, bodyContainerClass: null, tableHeaderClass: null, tableBodyClass: null, options: { clearSearch: false, sortName: undefined, sortOrder: undefined, defaultSortName: undefined, defaultSortOrder: undefined, sortIndicator: true, afterTableComplete: undefined, afterDeleteRow: undefined, afterInsertRow: undefined, afterSearch: undefined, afterColumnFilter: undefined, onRowClick: undefined, onRowDoubleClick: undefined, onMouseLeave: undefined, onMouseEnter: undefined, onRowMouseOut: undefined, onRowMouseOver: undefined, page: undefined, paginationShowsTotal: false, sizePerPageList: _Const2.default.SIZE_PER_PAGE_LIST, sizePerPage: undefined, paginationSize: _Const2.default.PAGINATION_SIZE, paginationPosition: _Const2.default.PAGINATION_POS_BOTTOM, hideSizePerPage: false, hidePageListOnlyOnePage: false, alwaysShowAllBtns: false, withFirstAndLast: true, keepSizePerPageState: false, onSizePerPageList: undefined, noDataText: undefined, withoutNoDataText: false, handleConfirmDeleteRow: undefined, prePage: _Const2.default.PRE_PAGE, nextPage: _Const2.default.NEXT_PAGE, firstPage: _Const2.default.FIRST_PAGE, lastPage: _Const2.default.LAST_PAGE, prePageTitle: _Const2.default.PRE_PAGE_TITLE, nextPageTitle: _Const2.default.NEXT_PAGE_TITLE, firstPageTitle: _Const2.default.FIRST_PAGE_TITLE, lastPageTitle: _Const2.default.LAST_PAGE_TITLE, pageStartIndex: 1, searchDelayTime: undefined, exportCSVText: _Const2.default.EXPORT_CSV_TEXT, insertText: _Const2.default.INSERT_BTN_TEXT, deleteText: _Const2.default.DELETE_BTN_TEXT, saveText: _Const2.default.SAVE_BTN_TEXT, closeText: _Const2.default.CLOSE_BTN_TEXT, ignoreEditable: false, defaultSearch: '', insertModalHeader: undefined, insertModalBody: undefined, insertModalFooter: undefined, insertModal: undefined, insertBtn: undefined, deleteBtn: undefined, showSelectedOnlyBtn: undefined, exportCSVBtn: undefined, clearSearchBtn: undefined, searchField: undefined, searchPanel: undefined, btnGroup: undefined, toolBar: undefined, sizePerPageDropDown: undefined, paginationPanel: undefined, searchPosition: 'right', expandRowBgColor: undefined, expandBy: _Const2.default.EXPAND_BY_ROW, expanding: [], onExpand: undefined, onlyOneExpanding: false, expandBodyClass: null, expandParentClass: null, beforeShowError: undefined, printToolBar: true }, fetchInfo: { dataTotalSize: 0 }, exportCSV: false, csvFileName: 'spreadsheet.csv', ignoreSinglePage: false }; var _default = BootstrapTable; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(BootstrapTable, 'BootstrapTable', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/BootstrapTable.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/BootstrapTable.js'); }(); ; /***/ }, /* 2 */ /***/ function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE_2__; /***/ }, /* 3 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ /* global define */ (function () { 'use strict'; var hasOwn = {}.hasOwnProperty; function classNames () { var classes = []; for (var i = 0; i < arguments.length; i++) { var arg = arguments[i]; if (!arg) continue; var argType = typeof arg; if (argType === 'string' || argType === 'number') { classes.push(arg); } else if (Array.isArray(arg)) { classes.push(classNames.apply(null, arg)); } else if (argType === 'object') { for (var key in arg) { if (hasOwn.call(arg, key) && arg[key]) { classes.push(key); } } } } return classes.join(' '); } if (typeof module !== 'undefined' && module.exports) { module.exports = classNames; } else if (true) { // register as 'classnames', consistent with npm package name !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () { return classNames; }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else { window.classNames = classNames; } }()); /***/ }, /* 4 */ /***/ function(module, exports) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var CONST_VAR = { SORT_DESC: 'desc', SORT_ASC: 'asc', AWAIT_BEFORE_CELL_EDIT: 1, SIZE_PER_PAGE: 10, NEXT_PAGE: '>', NEXT_PAGE_TITLE: 'next page', LAST_PAGE: '>>', LAST_PAGE_TITLE: 'last page', PRE_PAGE: '<', PRE_PAGE_TITLE: 'previous page', FIRST_PAGE: '<<', FIRST_PAGE_TITLE: 'first page', PAGE_START_INDEX: 1, ROW_SELECT_BG_COLOR: '', ROW_SELECT_NONE: 'none', ROW_SELECT_SINGLE: 'radio', ROW_SELECT_MULTI: 'checkbox', CELL_EDIT_NONE: 'none', CELL_EDIT_CLICK: 'click', CELL_EDIT_DBCLICK: 'dbclick', SIZE_PER_PAGE_LIST: [10, 25, 30, 50], PAGINATION_SIZE: 5, PAGINATION_POS_TOP: 'top', PAGINATION_POS_BOTTOM: 'bottom', PAGINATION_POS_BOTH: 'both', NO_DATA_TEXT: 'There is no data to display', SHOW_ONLY_SELECT: 'Show Selected Only', SHOW_ALL: 'Show All', EXPORT_CSV_TEXT: 'Export to CSV', INSERT_BTN_TEXT: 'New', DELETE_BTN_TEXT: 'Delete', SAVE_BTN_TEXT: 'Save', CLOSE_BTN_TEXT: 'Close', FILTER_DELAY: 500, SCROLL_TOP: 'Top', SCROLL_BOTTOM: 'Bottom', FILTER_TYPE: { TEXT: 'TextFilter', REGEX: 'RegexFilter', SELECT: 'SelectFilter', NUMBER: 'NumberFilter', DATE: 'DateFilter', CUSTOM: 'CustomFilter' }, FILTER_COND_EQ: 'eq', FILTER_COND_LIKE: 'like', EXPAND_BY_ROW: 'row', EXPAND_BY_COL: 'column', CANCEL_TOASTR: 'Pressed ESC can cancel', REMOTE_SORT: 'sort', REMOTE_PAGE: 'pagination', REMOTE_CELL_EDIT: 'cellEdit', REMOTE_INSERT_ROW: 'insertRow', REMOTE_DROP_ROW: 'dropRow', REMOTE_FILTER: 'filter', REMOTE_SEARCH: 'search', REMOTE_EXPORT_CSV: 'exportCSV' }; CONST_VAR.REMOTE = {}; CONST_VAR.REMOTE[CONST_VAR.REMOTE_SORT] = false; CONST_VAR.REMOTE[CONST_VAR.REMOTE_PAGE] = false; CONST_VAR.REMOTE[CONST_VAR.REMOTE_CELL_EDIT] = false; CONST_VAR.REMOTE[CONST_VAR.REMOTE_INSERT_ROW] = false; CONST_VAR.REMOTE[CONST_VAR.REMOTE_DROP_ROW] = false; CONST_VAR.REMOTE[CONST_VAR.REMOTE_FILTER] = false; CONST_VAR.REMOTE[CONST_VAR.REMOTE_SEARCH] = false; CONST_VAR.REMOTE[CONST_VAR.REMOTE_EXPORT_CSV] = false; var _default = CONST_VAR; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(CONST_VAR, 'CONST_VAR', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Const.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Const.js'); }(); ; /***/ }, /* 5 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _reactDom = __webpack_require__(6); var _reactDom2 = _interopRequireDefault(_reactDom); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); var _SelectRowHeaderColumn = __webpack_require__(7); var _SelectRowHeaderColumn2 = _interopRequireDefault(_SelectRowHeaderColumn); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Checkbox = function (_Component) { _inherits(Checkbox, _Component); function Checkbox() { _classCallCheck(this, Checkbox); return _possibleConstructorReturn(this, (Checkbox.__proto__ || Object.getPrototypeOf(Checkbox)).apply(this, arguments)); } _createClass(Checkbox, [{ key: 'componentDidMount', value: function componentDidMount() { this.update(this.props.checked); } }, { key: 'componentWillReceiveProps', value: function componentWillReceiveProps(props) { this.update(props.checked); } }, { key: 'update', value: function update(checked) { _reactDom2.default.findDOMNode(this).indeterminate = checked === 'indeterminate'; } }, { key: 'render', value: function render() { return _react2.default.createElement('input', { className: 'react-bs-select-all', type: 'checkbox', checked: this.props.checked, onChange: this.props.onChange }); } }]); return Checkbox; }(_react.Component); function getSortOrder(sortList, field, enableSort) { if (!enableSort) return undefined; var result = sortList.filter(function (sortObj) { return sortObj.sortField === field; }); if (result.length > 0) { return result[0].order; } else { return undefined; } } var TableHeader = function (_Component2) { _inherits(TableHeader, _Component2); function TableHeader() { var _ref; var _temp, _this2, _ret; _classCallCheck(this, TableHeader); for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return _ret = (_temp = (_this2 = _possibleConstructorReturn(this, (_ref = TableHeader.__proto__ || Object.getPrototypeOf(TableHeader)).call.apply(_ref, [this].concat(args))), _this2), _this2.getHeaderColGrouop = function () { var _this3; return (_this3 = _this2).__getHeaderColGrouop__REACT_HOT_LOADER__.apply(_this3, arguments); }, _temp), _possibleConstructorReturn(_this2, _ret); } _createClass(TableHeader, [{ key: 'render', value: function render() { var containerClasses = (0, _classnames2.default)('react-bs-container-header', 'table-header-wrapper', this.props.headerContainerClass); var tableClasses = (0, _classnames2.default)('table', 'table-hover', { 'table-bordered': this.props.bordered, 'table-condensed': this.props.condensed }, this.props.tableHeaderClass); var rowCount = Math.max.apply(Math, _toConsumableArray(_react2.default.Children.map(this.props.children, function (elm) { return elm && elm.props.row ? Number(elm.props.row) : 0; }))); var rows = []; var rowKey = 0; rows[0] = []; rows[0].push([this.props.expandColumnVisible && this.props.expandColumnBeforeSelectColumn && _react2.default.createElement( 'th', { className: 'react-bs-table-expand-cell' }, ' ' )], [this.renderSelectRowHeader(rowCount + 1, rowKey++)], [this.props.expandColumnVisible && !this.props.expandColumnBeforeSelectColumn && _react2.default.createElement( 'th', { className: 'react-bs-table-expand-cell' }, ' ' )]); var _props = this.props, sortIndicator = _props.sortIndicator, sortList = _props.sortList, onSort = _props.onSort, reset = _props.reset; _react2.default.Children.forEach(this.props.children, function (elm) { if (elm === null || elm === undefined) { // Skip null or undefined elements. return; } var _elm$props = elm.props, dataField = _elm$props.dataField, dataSort = _elm$props.dataSort; var sort = getSortOrder(sortList, dataField, dataSort); var rowIndex = elm.props.row ? Number(elm.props.row) : 0; var rowSpan = elm.props.rowSpan ? Number(elm.props.rowSpan) : 1; if (rows[rowIndex] === undefined) { rows[rowIndex] = []; } if (rowSpan + rowIndex === rowCount + 1) { rows[rowIndex].push(_react2.default.cloneElement(elm, { reset: reset, key: rowKey++, onSort: onSort, sort: sort, sortIndicator: sortIndicator, isOnlyHead: false })); } else { rows[rowIndex].push(_react2.default.cloneElement(elm, { key: rowKey++, isOnlyHead: true })); } }); var trs = rows.map(function (row, indexRow) { return _react2.default.createElement( 'tr', { key: indexRow }, row ); }); return _react2.default.createElement( 'div', { ref: 'container', className: containerClasses, style: this.props.style }, _react2.default.createElement( 'table', { className: tableClasses }, _react2.default.cloneElement(this.props.colGroups, { ref: 'headerGrp' }), _react2.default.createElement( 'thead', { ref: 'header' }, trs ) ) ); } }, { key: '__getHeaderColGrouop__REACT_HOT_LOADER__', value: function __getHeaderColGrouop__REACT_HOT_LOADER__() { return this.refs.headerGrp.childNodes; } }, { key: 'renderSelectRowHeader', value: function renderSelectRowHeader(rowCount, rowKey) { if (this.props.hideSelectColumn) { return null; } else if (this.props.customComponent) { var CustomComponent = this.props.customComponent; return _react2.default.createElement( _SelectRowHeaderColumn2.default, { key: rowKey, rowCount: rowCount }, _react2.default.createElement(CustomComponent, { type: 'checkbox', checked: this.props.isSelectAll, indeterminate: this.props.isSelectAll === 'indeterminate', disabled: false, onChange: this.props.onSelectAllRow, rowIndex: 'Header' }) ); } else if (this.props.rowSelectType === _Const2.default.ROW_SELECT_SINGLE) { return _react2.default.createElement(_SelectRowHeaderColumn2.default, { key: rowKey, rowCount: rowCount }); } else if (this.props.rowSelectType === _Const2.default.ROW_SELECT_MULTI) { return _react2.default.createElement( _SelectRowHeaderColumn2.default, { key: rowKey, rowCount: rowCount }, _react2.default.createElement(Checkbox, { onChange: this.props.onSelectAllRow, checked: this.props.isSelectAll }) ); } else { return null; } } }]); return TableHeader; }(_react.Component); TableHeader.propTypes = { headerContainerClass: _react.PropTypes.string, tableHeaderClass: _react.PropTypes.string, style: _react.PropTypes.object, rowSelectType: _react.PropTypes.string, onSort: _react.PropTypes.func, onSelectAllRow: _react.PropTypes.func, sortList: _react.PropTypes.array, hideSelectColumn: _react.PropTypes.bool, bordered: _react.PropTypes.bool, condensed: _react.PropTypes.bool, isFiltered: _react.PropTypes.bool, isSelectAll: _react.PropTypes.oneOf([true, 'indeterminate', false]), sortIndicator: _react.PropTypes.bool, customComponent: _react.PropTypes.func, colGroups: _react.PropTypes.element, reset: _react.PropTypes.bool, expandColumnVisible: _react.PropTypes.bool, expandColumnComponent: _react.PropTypes.func, expandColumnBeforeSelectColumn: _react.PropTypes.bool }; var _default = TableHeader; exports.default = _default; ; var _temp2 = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(Checkbox, 'Checkbox', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableHeader.js'); __REACT_HOT_LOADER__.register(getSortOrder, 'getSortOrder', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableHeader.js'); __REACT_HOT_LOADER__.register(TableHeader, 'TableHeader', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableHeader.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableHeader.js'); }(); ; /***/ }, /* 6 */ /***/ function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE_6__; /***/ }, /* 7 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var SelectRowHeaderColumn = function (_Component) { _inherits(SelectRowHeaderColumn, _Component); function SelectRowHeaderColumn() { _classCallCheck(this, SelectRowHeaderColumn); return _possibleConstructorReturn(this, (SelectRowHeaderColumn.__proto__ || Object.getPrototypeOf(SelectRowHeaderColumn)).apply(this, arguments)); } _createClass(SelectRowHeaderColumn, [{ key: 'render', value: function render() { return _react2.default.createElement( 'th', { rowSpan: this.props.rowCount, style: { textAlign: 'center' }, 'data-is-only-head': false }, this.props.children ); } }]); return SelectRowHeaderColumn; }(_react.Component); SelectRowHeaderColumn.propTypes = { children: _react.PropTypes.node, rowCount: _react.PropTypes.number }; var _default = SelectRowHeaderColumn; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(SelectRowHeaderColumn, 'SelectRowHeaderColumn', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/SelectRowHeaderColumn.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/SelectRowHeaderColumn.js'); }(); ; /***/ }, /* 8 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _util = __webpack_require__(9); var _util2 = _interopRequireDefault(_util); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); var _TableRow = __webpack_require__(10); var _TableRow2 = _interopRequireDefault(_TableRow); var _TableColumn = __webpack_require__(11); var _TableColumn2 = _interopRequireDefault(_TableColumn); var _TableEditColumn = __webpack_require__(12); var _TableEditColumn2 = _interopRequireDefault(_TableEditColumn); var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); var _ExpandComponent = __webpack_require__(179); var _ExpandComponent2 = _interopRequireDefault(_ExpandComponent); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var TableBody = function (_Component) { _inherits(TableBody, _Component); function TableBody(props) { _classCallCheck(this, TableBody); var _this = _possibleConstructorReturn(this, (TableBody.__proto__ || Object.getPrototypeOf(TableBody)).call(this, props)); _this.handleCellKeyDown = function () { return _this.__handleCellKeyDown__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleRowMouseOut = function () { return _this.__handleRowMouseOut__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleRowMouseOver = function () { return _this.__handleRowMouseOver__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleRowClick = function () { return _this.__handleRowClick__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleRowDoubleClick = function () { return _this.__handleRowDoubleClick__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleSelectRow = function () { return _this.__handleSelectRow__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleSelectRowColumChange = function () { return _this.__handleSelectRowColumChange__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleClickCell = function () { return _this.__handleClickCell__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleEditCell = function () { return _this.__handleEditCell__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.nextEditableCell = function () { return _this.__nextEditableCell__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleCompleteEditCell = function () { return _this.__handleCompleteEditCell__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.cancelEditCell = function () { return _this.__cancelEditCell__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleClickonSelectColumn = function () { return _this.__handleClickonSelectColumn__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.getHeaderColGrouop = function () { return _this.__getHeaderColGrouop__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.state = { currEditCell: null }; return _this; } _createClass(TableBody, [{ key: 'render', value: function render() { var _props = this.props, cellEdit = _props.cellEdit, beforeShowError = _props.beforeShowError, x = _props.x, y = _props.y, keyBoardNav = _props.keyBoardNav; var tableClasses = (0, _classnames2.default)('table', { 'table-striped': this.props.striped, 'table-bordered': this.props.bordered, 'table-hover': this.props.hover, 'table-condensed': this.props.condensed }, this.props.tableBodyClass); var noneditableRows = cellEdit.nonEditableRows && cellEdit.nonEditableRows() || []; var unselectable = this.props.selectRow.unselectable || []; var isSelectRowDefined = this._isSelectRowDefined(); var tableHeader = _util2.default.renderColGroup(this.props.columns, this.props.selectRow, this.props.expandColumnOptions); var inputType = this.props.selectRow.mode === _Const2.default.ROW_SELECT_SINGLE ? 'radio' : 'checkbox'; var CustomComponent = this.props.selectRow.customComponent; var enableKeyBoardNav = keyBoardNav === true || (typeof keyBoardNav === 'undefined' ? 'undefined' : _typeof(keyBoardNav)) === 'object'; var customEditAndNavStyle = (typeof keyBoardNav === 'undefined' ? 'undefined' : _typeof(keyBoardNav)) === 'object' ? keyBoardNav.customStyleOnEditCell : null; var customNavStyle = (typeof keyBoardNav === 'undefined' ? 'undefined' : _typeof(keyBoardNav)) === 'object' ? keyBoardNav.customStyle : null; var ExpandColumnCustomComponent = this.props.expandColumnOptions.expandColumnComponent; var expandColSpan = this.props.columns.filter(function (col) { return col && !col.hidden; }).length; if (isSelectRowDefined && !this.props.selectRow.hideSelectColumn) { expandColSpan += 1; } var tabIndex = 1; if (this.props.expandColumnOptions.expandColumnVisible) { expandColSpan += 1; } var tableRows = this.props.data.map(function (data, r) { var tableColumns = this.props.columns.filter(function (_) { return _ != null; }).map(function (column, i) { var fieldValue = data[column.name]; var isFocusCell = r === y && i === x; if (column.name !== this.props.keyField && // Key field can't be edit column.editable && // column is editable? default is true, user can set it false column.editable.readOnly !== true && this.state.currEditCell !== null && this.state.currEditCell.rid === r && this.state.currEditCell.cid === i && noneditableRows.indexOf(data[this.props.keyField]) === -1) { var editable = column.editable; var format = column.format ? function (value) { return column.format(value, data, column.formatExtraData, r).replace(/<.*?>/g, ''); } : false; if (_util2.default.isFunction(column.editable)) { editable = column.editable(fieldValue, data, r, i); } return _react2.default.createElement(_TableEditColumn2.default, { completeEdit: this.handleCompleteEditCell // add by bluespring for column editor customize , editable: editable, customEditor: column.customEditor, format: column.format ? format : false, key: i, blurToSave: cellEdit.blurToSave, onTab: this.handleEditCell, rowIndex: r, colIndex: i, row: data, fieldValue: fieldValue, className: column.editClassName, invalidColumnClassName: column.invalidEditColumnClassName, beforeShowError: beforeShowError, isFocus: isFocusCell, customStyleWithNav: customEditAndNavStyle }); } else { // add by bluespring for className customize var columnChild = fieldValue && fieldValue.toString(); var columnTitle = null; var tdClassName = column.className; if (_util2.default.isFunction(column.className)) { tdClassName = column.className(fieldValue, data, r, i); } if (typeof column.format !== 'undefined') { var formattedValue = column.format(fieldValue, data, column.formatExtraData, r); if (!_react2.default.isValidElement(formattedValue)) { columnChild = _react2.default.createElement('div', { dangerouslySetInnerHTML: { __html: formattedValue } }); } else { columnChild = formattedValue; columnTitle = column.columnTitle && formattedValue ? formattedValue.toString() : null; } } else { columnTitle = column.columnTitle && fieldValue ? fieldValue.toString() : null; } return _react2.default.createElement( _TableColumn2.default, { key: i, rIndex: r, dataAlign: column.align, className: tdClassName, columnTitle: columnTitle, cellEdit: cellEdit, hidden: column.hidden, onEdit: this.handleEditCell, width: column.width, onClick: this.handleClickCell, attrs: column.attrs, style: column.style, tabIndex: tabIndex++ + '', isFocus: isFocusCell, keyBoardNav: enableKeyBoardNav, onKeyDown: this.handleCellKeyDown, customNavStyle: customNavStyle, row: data }, columnChild ); } }, this); var key = data[this.props.keyField]; var disable = unselectable.indexOf(key) !== -1; var selected = this.props.selectedRowKeys.indexOf(key) !== -1; var selectRowColumn = isSelectRowDefined && !this.props.selectRow.hideSelectColumn ? this.renderSelectRowColumn(selected, inputType, disable, CustomComponent, r, data) : null; var expandedRowColumn = this.renderExpandRowColumn(this.props.expandableRow && this.props.expandableRow(data), this.props.expanding.indexOf(key) > -1, ExpandColumnCustomComponent, r, data); var haveExpandContent = this.props.expandableRow && this.props.expandableRow(data); var isExpanding = haveExpandContent && this.props.expanding.indexOf(key) > -1; // add by bluespring for className customize var trClassName = this.props.trClassName; if (_util2.default.isFunction(this.props.trClassName)) { trClassName = this.props.trClassName(data, r); } if (isExpanding && this.props.expandParentClass) { trClassName += _util2.default.isFunction(this.props.expandParentClass) ? this.props.expandParentClass(data, r) : this.props.expandParentClass; } var result = [_react2.default.createElement( _TableRow2.default, { isSelected: selected, key: key, className: trClassName, index: r, row: data, selectRow: isSelectRowDefined ? this.props.selectRow : undefined, enableCellEdit: cellEdit.mode !== _Const2.default.CELL_EDIT_NONE, onRowClick: this.handleRowClick, onRowDoubleClick: this.handleRowDoubleClick, onRowMouseOver: this.handleRowMouseOver, onRowMouseOut: this.handleRowMouseOut, onSelectRow: this.handleSelectRow, onExpandRow: this.handleClickCell, unselectableRow: disable }, this.props.expandColumnOptions.expandColumnVisible && this.props.expandColumnOptions.expandColumnBeforeSelectColumn && expandedRowColumn, selectRowColumn, this.props.expandColumnOptions.expandColumnVisible && !this.props.expandColumnOptions.expandColumnBeforeSelectColumn && expandedRowColumn, tableColumns )]; if (haveExpandContent) { var expandBodyClass = _util2.default.isFunction(this.props.expandBodyClass) ? this.props.expandBodyClass(data, r) : this.props.expandBodyClass; result.push(_react2.default.createElement( _ExpandComponent2.default, { key: key + '-expand', row: data, className: expandBodyClass, bgColor: this.props.expandRowBgColor || this.props.selectRow.bgColor || undefined, hidden: !isExpanding, colSpan: expandColSpan, width: "100%" }, this.props.expandComponent(data) )); } return result; }, this); if (tableRows.length === 0 && !this.props.withoutNoDataText) { var colSpan = this.props.columns.filter(function (c) { return !c.hidden; }).length + (isSelectRowDefined ? 1 : 0); tableRows = [_react2.default.createElement( _TableRow2.default, { key: '##table-empty##' }, _react2.default.createElement( 'td', { 'data-toggle': 'collapse', colSpan: colSpan, className: 'react-bs-table-no-data' }, this.props.noDataText || _Const2.default.NO_DATA_TEXT ) )]; } return _react2.default.createElement( 'div', { ref: 'container', className: (0, _classnames2.default)('react-bs-container-body', this.props.bodyContainerClass), style: this.props.style }, _react2.default.createElement( 'table', { className: tableClasses }, _react2.default.cloneElement(tableHeader, { ref: 'header' }), _react2.default.createElement( 'tbody', { ref: 'tbody' }, tableRows ) ) ); } }, { key: '__handleCellKeyDown__REACT_HOT_LOADER__', value: function __handleCellKeyDown__REACT_HOT_LOADER__(e, lastEditCell) { e.preventDefault(); var _props2 = this.props, keyBoardNav = _props2.keyBoardNav, onNavigateCell = _props2.onNavigateCell, cellEdit = _props2.cellEdit; var offset = void 0; if (e.keyCode === 37) { offset = { x: -1, y: 0 }; } else if (e.keyCode === 38) { offset = { x: 0, y: -1 }; } else if (e.keyCode === 39 || e.keyCode === 9) { offset = { x: 1, y: 0 }; if (e.keyCode === 9 && lastEditCell) { offset = _extends({}, offset, { lastEditCell: lastEditCell }); } } else if (e.keyCode === 40) { offset = { x: 0, y: 1 }; } else if (e.keyCode === 13) { var enterToEdit = (typeof keyBoardNav === 'undefined' ? 'undefined' : _typeof(keyBoardNav)) === 'object' ? keyBoardNav.enterToEdit : false; var enterToExpand = (typeof keyBoardNav === 'undefined' ? 'undefined' : _typeof(keyBoardNav)) === 'object' ? keyBoardNav.enterToExpand : false; if (cellEdit && enterToEdit) { this.handleEditCell(e.target.parentElement.rowIndex + 1, e.currentTarget.cellIndex, '', e); } if (enterToExpand) { this.handleClickCell(this.props.y + 1, this.props.x); } } if (offset && keyBoardNav) { onNavigateCell(offset); } } }, { key: '__handleRowMouseOut__REACT_HOT_LOADER__', value: function __handleRowMouseOut__REACT_HOT_LOADER__(rowIndex, event) { var targetRow = this.props.data[rowIndex]; this.props.onRowMouseOut(targetRow, event); } }, { key: '__handleRowMouseOver__REACT_HOT_LOADER__', value: function __handleRowMouseOver__REACT_HOT_LOADER__(rowIndex, event) { var targetRow = this.props.data[rowIndex]; this.props.onRowMouseOver(targetRow, event); } }, { key: '__handleRowClick__REACT_HOT_LOADER__', value: function __handleRowClick__REACT_HOT_LOADER__(rowIndex, cellIndex) { var onRowClick = this.props.onRowClick; if (this._isSelectRowDefined()) cellIndex--; if (this._isExpandColumnVisible()) cellIndex--; onRowClick(this.props.data[rowIndex - 1], rowIndex - 1, cellIndex); } }, { key: '__handleRowDoubleClick__REACT_HOT_LOADER__', value: function __handleRowDoubleClick__REACT_HOT_LOADER__(rowIndex) { var onRowDoubleClick = this.props.onRowDoubleClick; var targetRow = this.props.data[rowIndex]; onRowDoubleClick(targetRow); } }, { key: '__handleSelectRow__REACT_HOT_LOADER__', value: function __handleSelectRow__REACT_HOT_LOADER__(rowIndex, isSelected, e) { var selectedRow = void 0; var _props3 = this.props, data = _props3.data, onSelectRow = _props3.onSelectRow; data.forEach(function (row, i) { if (i === rowIndex - 1) { selectedRow = row; return false; } }); onSelectRow(selectedRow, isSelected, e); } }, { key: '__handleSelectRowColumChange__REACT_HOT_LOADER__', value: function __handleSelectRowColumChange__REACT_HOT_LOADER__(e, rowIndex) { if (!this.props.selectRow.clickToSelect || !this.props.selectRow.clickToSelectAndEditCell) { this.handleSelectRow(rowIndex + 1, e.currentTarget.checked, e); } } }, { key: '__handleClickCell__REACT_HOT_LOADER__', value: function __handleClickCell__REACT_HOT_LOADER__(rowIndex) { var _this2 = this; var columnIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1; var _props4 = this.props, columns = _props4.columns, keyField = _props4.keyField, expandBy = _props4.expandBy, expandableRow = _props4.expandableRow, _props4$selectRow = _props4.selectRow, clickToExpand = _props4$selectRow.clickToExpand, hideSelectColumn = _props4$selectRow.hideSelectColumn, onlyOneExpanding = _props4.onlyOneExpanding; var selectRowAndExpand = this._isSelectRowDefined() && !clickToExpand ? false : true; columnIndex = this._isSelectRowDefined() && !hideSelectColumn ? columnIndex - 1 : columnIndex; columnIndex = this._isExpandColumnVisible() ? columnIndex - 1 : columnIndex; if (expandableRow && selectRowAndExpand && (expandBy === _Const2.default.EXPAND_BY_ROW || /* Below will allow expanding trigger by clicking on selection column if configure as expanding by column */ expandBy === _Const2.default.EXPAND_BY_COL && columnIndex < 0 || expandBy === _Const2.default.EXPAND_BY_COL && columns[columnIndex].expandable)) { (function () { var expanding = _this2.props.expanding; var rowKey = _this2.props.data[rowIndex - 1][keyField]; var isRowExpanding = expanding.indexOf(rowKey) > -1; if (isRowExpanding) { // collapse expanding = expanding.filter(function (k) { return k !== rowKey; }); } else { // expand if (onlyOneExpanding) expanding = [rowKey];else expanding.push(rowKey); } _this2.props.onExpand(expanding, rowKey, isRowExpanding); })(); } } }, { key: '__handleEditCell__REACT_HOT_LOADER__', value: function __handleEditCell__REACT_HOT_LOADER__(rowIndex, columnIndex, action, e) { var selectRow = this.props.selectRow; var defineSelectRow = this._isSelectRowDefined(); var expandColumnVisible = this._isExpandColumnVisible(); if (defineSelectRow) { columnIndex--; if (selectRow.hideSelectColumn) columnIndex++; } if (expandColumnVisible) { columnIndex--; } rowIndex--; if (action === 'tab') { if (defineSelectRow && !selectRow.hideSelectColumn) columnIndex++; if (expandColumnVisible) columnIndex++; this.handleCompleteEditCell(e.target.value, rowIndex, columnIndex - 1); if (columnIndex >= this.props.columns.length) { this.handleCellKeyDown(e, true); } else { this.handleCellKeyDown(e); } var _nextEditableCell = this.nextEditableCell(rowIndex, columnIndex), nextRIndex = _nextEditableCell.nextRIndex, nextCIndex = _nextEditableCell.nextCIndex; rowIndex = nextRIndex; columnIndex = nextCIndex; } var stateObj = { currEditCell: { rid: rowIndex, cid: columnIndex } }; if (this.props.selectRow.clickToSelectAndEditCell && this.props.cellEdit.mode !== _Const2.default.CELL_EDIT_DBCLICK) { var selected = this.props.selectedRowKeys.indexOf(this.props.data[rowIndex][this.props.keyField]) !== -1; this.handleSelectRow(rowIndex + 1, !selected, e); } this.setState(stateObj); } }, { key: '__nextEditableCell__REACT_HOT_LOADER__', value: function __nextEditableCell__REACT_HOT_LOADER__(rIndex, cIndex) { var keyField = this.props.keyField; var nextRIndex = rIndex; var nextCIndex = cIndex; var row = void 0; var column = void 0; do { if (nextCIndex >= this.props.columns.length) { nextRIndex++; nextCIndex = 0; } row = this.props.data[nextRIndex]; column = this.props.columns[nextCIndex]; if (!row) break; var editable = column.editable; if (_util2.default.isFunction(column.editable)) { editable = column.editable(column, row, nextRIndex, nextCIndex); } if (editable && editable.readOnly !== true && !column.hidden && keyField !== column.name) { break; } else { nextCIndex++; } } while (row); return { nextRIndex: nextRIndex, nextCIndex: nextCIndex }; } }, { key: '__handleCompleteEditCell__REACT_HOT_LOADER__', value: function __handleCompleteEditCell__REACT_HOT_LOADER__(newVal, rowIndex, columnIndex) { if (newVal !== null) { var result = this.props.cellEdit.__onCompleteEdit__(newVal, rowIndex, columnIndex); if (result !== _Const2.default.AWAIT_BEFORE_CELL_EDIT) { this.setState({ currEditCell: null }); } } else { this.setState({ currEditCell: null }); } } }, { key: '__cancelEditCell__REACT_HOT_LOADER__', value: function __cancelEditCell__REACT_HOT_LOADER__() { this.setState({ currEditCell: null }); } }, { key: '__handleClickonSelectColumn__REACT_HOT_LOADER__', value: function __handleClickonSelectColumn__REACT_HOT_LOADER__(e, isSelect, rowIndex, row) { e.stopPropagation(); if (e.target.tagName === 'TD' && (this.props.selectRow.clickToSelect || this.props.selectRow.clickToSelectAndEditCell)) { var unselectable = this.props.selectRow.unselectable || []; if (unselectable.indexOf(row[this.props.keyField]) === -1) { this.handleSelectRow(rowIndex + 1, isSelect, e); this.handleClickCell(rowIndex + 1); } } } }, { key: 'renderSelectRowColumn', value: function renderSelectRowColumn(selected, inputType, disabled) { var CustomComponent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; var _this3 = this; var rowIndex = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null; var row = arguments[5]; return _react2.default.createElement( 'td', { onClick: function onClick(e) { _this3.handleClickonSelectColumn(e, !selected, rowIndex, row); }, style: { textAlign: 'center' } }, CustomComponent ? _react2.default.createElement(CustomComponent, { type: inputType, checked: selected, disabled: disabled, rowIndex: rowIndex, onChange: function onChange(e) { return _this3.handleSelectRowColumChange(e, rowIndex); } }) : _react2.default.createElement('input', { type: inputType, checked: selected, disabled: disabled, onChange: function onChange(e) { return _this3.handleSelectRowColumChange(e, rowIndex); } }) ); } }, { key: 'renderExpandRowColumn', value: function renderExpandRowColumn(isExpandableRow, isExpanded, CustomComponent) { var _this4 = this; var rowIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; var content = null; if (CustomComponent) { content = _react2.default.createElement(CustomComponent, { isExpandableRow: isExpandableRow, isExpanded: isExpanded }); } else if (isExpandableRow) { content = isExpanded ? _react2.default.createElement('span', { className: 'glyphicon glyphicon-minus' }) : _react2.default.createElement('span', { className: 'glyphicon glyphicon-plus' }); } else { content = ' '; } return _react2.default.createElement( 'td', { className: 'react-bs-table-expand-cell', onClick: function onClick() { return _this4.handleClickCell(rowIndex + 1); } }, content ); } }, { key: '_isSelectRowDefined', value: function _isSelectRowDefined() { return this.props.selectRow.mode === _Const2.default.ROW_SELECT_SINGLE || this.props.selectRow.mode === _Const2.default.ROW_SELECT_MULTI; } }, { key: '_isExpandColumnVisible', value: function _isExpandColumnVisible() { return this.props.expandColumnOptions.expandColumnVisible; } }, { key: '__getHeaderColGrouop__REACT_HOT_LOADER__', value: function __getHeaderColGrouop__REACT_HOT_LOADER__() { return this.refs.header.childNodes; } }]); return TableBody; }(_react.Component); TableBody.propTypes = { data: _react.PropTypes.array, columns: _react.PropTypes.array, striped: _react.PropTypes.bool, bordered: _react.PropTypes.bool, hover: _react.PropTypes.bool, condensed: _react.PropTypes.bool, keyField: _react.PropTypes.string, selectedRowKeys: _react.PropTypes.array, onRowClick: _react.PropTypes.func, onRowDoubleClick: _react.PropTypes.func, onSelectRow: _react.PropTypes.func, noDataText: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.object]), withoutNoDataText: _react.PropTypes.bool, style: _react.PropTypes.object, tableBodyClass: _react.PropTypes.string, bodyContainerClass: _react.PropTypes.string, expandableRow: _react.PropTypes.func, expandComponent: _react.PropTypes.func, expandRowBgColor: _react.PropTypes.string, expandBy: _react.PropTypes.string, expanding: _react.PropTypes.array, onExpand: _react.PropTypes.func, expandBodyClass: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.func]), expandParentClass: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.func]), onlyOneExpanding: _react.PropTypes.bool, beforeShowError: _react.PropTypes.func, keyBoardNav: _react.PropTypes.oneOfType([_react.PropTypes.bool, _react.PropTypes.object]), x: _react.PropTypes.number, y: _react.PropTypes.number, onNavigateCell: _react.PropTypes.func }; var _default = TableBody; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(TableBody, 'TableBody', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableBody.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableBody.js'); }(); ; /***/ }, /* 9 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _default = { renderReactSortCaret: function renderReactSortCaret(order) { var orderClass = (0, _classnames2.default)('order', { 'dropup': order === _Const2.default.SORT_ASC }); return _react2.default.createElement( 'span', { className: orderClass }, _react2.default.createElement('span', { className: 'caret', style: { margin: '10px 5px' } }) ); }, isFunction: function isFunction(obj) { return obj && typeof obj === 'function'; }, getScrollBarWidth: function getScrollBarWidth() { var inner = document.createElement('p'); inner.style.width = '100%'; inner.style.height = '200px'; var outer = document.createElement('div'); outer.style.position = 'absolute'; outer.style.top = '0px'; outer.style.left = '0px'; outer.style.visibility = 'hidden'; outer.style.width = '200px'; outer.style.height = '150px'; outer.style.overflow = 'hidden'; outer.appendChild(inner); document.body.appendChild(outer); var w1 = inner.getBoundingClientRect().width; outer.style.overflow = 'scroll'; var w2 = inner.getBoundingClientRect().width; if (w1 === w2) w2 = outer.clientWidth; document.body.removeChild(outer); return w1 - w2; }, canUseDOM: function canUseDOM() { return typeof window !== 'undefined' && typeof window.document !== 'undefined'; }, // We calculate an offset here in order to properly fetch the indexed data, // despite the page start index not always being 1 getNormalizedPage: function getNormalizedPage(pageStartIndex, page) { pageStartIndex = this.getFirstPage(pageStartIndex); if (page === undefined) page = pageStartIndex; var offset = Math.abs(_Const2.default.PAGE_START_INDEX - pageStartIndex); return page + offset; }, getFirstPage: function getFirstPage(pageStartIndex) { return pageStartIndex !== undefined ? pageStartIndex : _Const2.default.PAGE_START_INDEX; }, renderColGroup: function renderColGroup(columns, selectRow) { var expandColumnOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; var selectRowHeader = null; var expandRowHeader = null; var isSelectRowDefined = selectRow.mode === _Const2.default.ROW_SELECT_SINGLE || selectRow.mode === _Const2.default.ROW_SELECT_MULTI; if (isSelectRowDefined) { var style = { width: selectRow.columnWidth || '30px', minWidth: selectRow.columnWidth || '30px' }; if (!selectRow.hideSelectColumn) { selectRowHeader = _react2.default.createElement('col', { key: 'select-col', style: style }); } } if (expandColumnOptions.expandColumnVisible) { var _style = { width: expandColumnOptions.columnWidth || 30, minWidth: expandColumnOptions.columnWidth || 30 }; expandRowHeader = _react2.default.createElement('col', { key: 'expand-col', style: _style }); } var theader = columns.map(function (column, i) { var style = { display: column.hidden ? 'none' : null }; if (column.width) { var width = !isNaN(column.width) ? column.width + 'px' : column.width; style.width = width; /** add min-wdth to fix user assign column width not eq offsetWidth in large column table **/ style.minWidth = width; } return _react2.default.createElement('col', { style: style, key: i, className: column.className }); }); return _react2.default.createElement( 'colgroup', null, expandColumnOptions.expandColumnVisible && expandColumnOptions.expandColumnBeforeSelectColumn && expandRowHeader, selectRowHeader, expandColumnOptions.expandColumnVisible && !expandColumnOptions.expandColumnBeforeSelectColumn && expandRowHeader, theader ); } }; /* eslint react/display-name: 0 */ exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/util.js'); }(); ; /***/ }, /* 10 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); var _util = __webpack_require__(9); var _util2 = _interopRequireDefault(_util); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint no-nested-ternary: 0 */ var TableRow = function (_Component) { _inherits(TableRow, _Component); function TableRow(props) { _classCallCheck(this, TableRow); var _this = _possibleConstructorReturn(this, (TableRow.__proto__ || Object.getPrototypeOf(TableRow)).call(this, props)); _this.rowClick = function () { return _this.__rowClick__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.expandRow = function () { return _this.__expandRow__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.rowDoubleClick = function () { return _this.__rowDoubleClick__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.rowMouseOut = function () { return _this.__rowMouseOut__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.rowMouseOver = function () { return _this.__rowMouseOver__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.clickNum = 0; return _this; } _createClass(TableRow, [{ key: '__rowClick__REACT_HOT_LOADER__', value: function __rowClick__REACT_HOT_LOADER__(e) { var _this2 = this; var rowIndex = this.props.index + 1; var cellIndex = e.target.cellIndex; if (this.props.onRowClick) this.props.onRowClick(rowIndex, cellIndex); var _props = this.props, selectRow = _props.selectRow, unselectableRow = _props.unselectableRow, isSelected = _props.isSelected, onSelectRow = _props.onSelectRow, onExpandRow = _props.onExpandRow; if (selectRow) { if (selectRow.clickToSelect && !unselectableRow) { onSelectRow(rowIndex, !isSelected, e); } else if (selectRow.clickToSelectAndEditCell && !unselectableRow) { this.clickNum++; /** if clickToSelectAndEditCell is enabled, * there should be a delay to prevent a selection changed when * user dblick to edit cell on same row but different cell **/ setTimeout(function () { if (_this2.clickNum === 1) { onSelectRow(rowIndex, !isSelected, e); onExpandRow(rowIndex, cellIndex); } _this2.clickNum = 0; }, 200); } else { this.expandRow(rowIndex, cellIndex); } } } }, { key: '__expandRow__REACT_HOT_LOADER__', value: function __expandRow__REACT_HOT_LOADER__(rowIndex, cellIndex) { var _this3 = this; this.clickNum++; setTimeout(function () { if (_this3.clickNum === 1) { _this3.props.onExpandRow(rowIndex, cellIndex); } _this3.clickNum = 0; }, 200); } }, { key: '__rowDoubleClick__REACT_HOT_LOADER__', value: function __rowDoubleClick__REACT_HOT_LOADER__(e) { if (e.target.tagName !== 'INPUT' && e.target.tagName !== 'SELECT' && e.target.tagName !== 'TEXTAREA') { if (this.props.onRowDoubleClick) { this.props.onRowDoubleClick(this.props.index); } } } }, { key: '__rowMouseOut__REACT_HOT_LOADER__', value: function __rowMouseOut__REACT_HOT_LOADER__(e) { var rowIndex = this.props.index; if (this.props.onRowMouseOut) { this.props.onRowMouseOut(rowIndex, e); } } }, { key: '__rowMouseOver__REACT_HOT_LOADER__', value: function __rowMouseOver__REACT_HOT_LOADER__(e) { var rowIndex = this.props.index; if (this.props.onRowMouseOver) { this.props.onRowMouseOver(rowIndex, e); } } }, { key: 'render', value: function render() { this.clickNum = 0; var _props2 = this.props, selectRow = _props2.selectRow, row = _props2.row, isSelected = _props2.isSelected, className = _props2.className; var backgroundColor = null; var selectRowClass = null; if (selectRow) { backgroundColor = _util2.default.isFunction(selectRow.bgColor) ? selectRow.bgColor(row, isSelected) : isSelected ? selectRow.bgColor : null; selectRowClass = _util2.default.isFunction(selectRow.className) ? selectRow.className(row, isSelected) : isSelected ? selectRow.className : null; } var trCss = { style: { backgroundColor: backgroundColor }, className: (0, _classnames2.default)(selectRowClass, className) }; return _react2.default.createElement( 'tr', _extends({}, trCss, { onMouseOver: this.rowMouseOver, onMouseOut: this.rowMouseOut, onClick: this.rowClick, onDoubleClick: this.rowDoubleClick }), this.props.children ); } }]); return TableRow; }(_react.Component); TableRow.propTypes = { index: _react.PropTypes.number, row: _react.PropTypes.any, isSelected: _react.PropTypes.bool, enableCellEdit: _react.PropTypes.bool, onRowClick: _react.PropTypes.func, onRowDoubleClick: _react.PropTypes.func, onSelectRow: _react.PropTypes.func, onExpandRow: _react.PropTypes.func, onRowMouseOut: _react.PropTypes.func, onRowMouseOver: _react.PropTypes.func, unselectableRow: _react.PropTypes.bool }; TableRow.defaultProps = { onRowClick: undefined, onRowDoubleClick: undefined }; var _default = TableRow; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(TableRow, 'TableRow', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableRow.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableRow.js'); }(); ; /***/ }, /* 11 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _reactDom = __webpack_require__(6); var _reactDom2 = _interopRequireDefault(_reactDom); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); var _util = __webpack_require__(9); var _util2 = _interopRequireDefault(_util); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var TableColumn = function (_Component) { _inherits(TableColumn, _Component); function TableColumn(props) { _classCallCheck(this, TableColumn); var _this = _possibleConstructorReturn(this, (TableColumn.__proto__ || Object.getPrototypeOf(TableColumn)).call(this, props)); _this.handleCellEdit = function () { return _this.__handleCellEdit__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleCellClick = function () { return _this.__handleCellClick__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleKeyDown = function () { return _this.__handleKeyDown__REACT_HOT_LOADER__.apply(_this, arguments); }; return _this; } /* eslint no-unused-vars: [0, { "args": "after-used" }] */ _createClass(TableColumn, [{ key: 'shouldComponentUpdate', value: function shouldComponentUpdate(nextProps, nextState) { var children = this.props.children; var shouldUpdated = this.props.width !== nextProps.width || this.props.className !== nextProps.className || this.props.hidden !== nextProps.hidden || this.props.dataAlign !== nextProps.dataAlign || this.props.isFocus !== nextProps.isFocus || (typeof children === 'undefined' ? 'undefined' : _typeof(children)) !== _typeof(nextProps.children) || ('' + this.props.onEdit).toString() !== ('' + nextProps.onEdit).toString(); if (shouldUpdated) { return shouldUpdated; } if ((typeof children === 'undefined' ? 'undefined' : _typeof(children)) === 'object' && children !== null && children.props !== null) { if (children.props.type === 'checkbox' || children.props.type === 'radio') { shouldUpdated = shouldUpdated || children.props.type !== nextProps.children.props.type || children.props.checked !== nextProps.children.props.checked || children.props.disabled !== nextProps.children.props.disabled; } else { shouldUpdated = true; } } else { shouldUpdated = shouldUpdated || children !== nextProps.children; } if (shouldUpdated) { return shouldUpdated; } if (!(this.props.cellEdit && nextProps.cellEdit)) { return false; } else { return shouldUpdated || this.props.cellEdit.mode !== nextProps.cellEdit.mode; } } }, { key: 'componentDidMount', value: function componentDidMount() { var dom = _reactDom2.default.findDOMNode(this); if (this.props.isFocus) { dom.focus(); } else { dom.blur(); } } }, { key: 'componentDidUpdate', value: function componentDidUpdate() { var dom = _reactDom2.default.findDOMNode(this); if (this.props.isFocus) { dom.focus(); } else { dom.blur(); } } }, { key: '__handleCellEdit__REACT_HOT_LOADER__', value: function __handleCellEdit__REACT_HOT_LOADER__(e) { if (this.props.cellEdit.mode === _Const2.default.CELL_EDIT_DBCLICK) { if (document.selection && document.selection.empty) { document.selection.empty(); } else if (window.getSelection) { var sel = window.getSelection(); sel.removeAllRanges(); } } this.props.onEdit(this.props.rIndex + 1, e.currentTarget.cellIndex, e); if (this.props.cellEdit.mode !== _Const2.default.CELL_EDIT_DBCLICK) { this.props.onClick(this.props.rIndex + 1, e.currentTarget.cellIndex, e); } } }, { key: '__handleCellClick__REACT_HOT_LOADER__', value: function __handleCellClick__REACT_HOT_LOADER__(e) { var _props = this.props, onClick = _props.onClick, rIndex = _props.rIndex; if (onClick) { onClick(rIndex + 1, e.currentTarget.cellIndex, e); } } }, { key: '__handleKeyDown__REACT_HOT_LOADER__', value: function __handleKeyDown__REACT_HOT_LOADER__(e) { if (this.props.keyBoardNav) { this.props.onKeyDown(e); } } }, { key: 'render', value: function render() { var _props2 = this.props, children = _props2.children, columnTitle = _props2.columnTitle, dataAlign = _props2.dataAlign, hidden = _props2.hidden, cellEdit = _props2.cellEdit, attrs = _props2.attrs, style = _props2.style, isFocus = _props2.isFocus, keyBoardNav = _props2.keyBoardNav, tabIndex = _props2.tabIndex, customNavStyle = _props2.customNavStyle, row = _props2.row; var className = this.props.className; var tdStyle = _extends({ textAlign: dataAlign, display: hidden ? 'none' : null }, style); var opts = {}; if (cellEdit) { if (cellEdit.mode === _Const2.default.CELL_EDIT_CLICK) { opts.onClick = this.handleCellEdit; } else if (cellEdit.mode === _Const2.default.CELL_EDIT_DBCLICK) { opts.onDoubleClick = this.handleCellEdit; } else { opts.onClick = this.handleCellClick; } } if (keyBoardNav && isFocus) { opts.onKeyDown = this.handleKeyDown; } if (isFocus) { if (customNavStyle) { var cusmtStyle = _util2.default.isFunction(customNavStyle) ? customNavStyle(children, row) : customNavStyle; tdStyle = _extends({}, tdStyle, cusmtStyle); } else { className = className + ' default-focus-cell'; } } return _react2.default.createElement( 'td', _extends({ tabIndex: tabIndex, style: tdStyle, title: columnTitle, className: className }, opts, attrs), typeof children === 'boolean' ? children.toString() : children ); } }]); return TableColumn; }(_react.Component); TableColumn.propTypes = { rIndex: _react.PropTypes.number, dataAlign: _react.PropTypes.string, hidden: _react.PropTypes.bool, className: _react.PropTypes.string, columnTitle: _react.PropTypes.string, children: _react.PropTypes.node, onClick: _react.PropTypes.func, attrs: _react.PropTypes.object, style: _react.PropTypes.object, isFocus: _react.PropTypes.bool, onKeyDown: _react.PropTypes.func, tabIndex: _react.PropTypes.string, keyBoardNav: _react.PropTypes.oneOfType([_react.PropTypes.bool, _react.PropTypes.object]), customNavStyle: _react.PropTypes.oneOfType([_react.PropTypes.func, _react.PropTypes.object]), row: _react.PropTypes.any /* only used on custom styling for navigation */ }; TableColumn.defaultProps = { dataAlign: 'left', hidden: false, className: '', isFocus: false, keyBoardNav: false }; var _default = TableColumn; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(TableColumn, 'TableColumn', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableColumn.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableColumn.js'); }(); ; /***/ }, /* 12 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _reactDom = __webpack_require__(6); var _reactDom2 = _interopRequireDefault(_reactDom); var _Editor = __webpack_require__(13); var _Editor2 = _interopRequireDefault(_Editor); var _Notification = __webpack_require__(14); var _Notification2 = _interopRequireDefault(_Notification); var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); var _util = __webpack_require__(9); var _util2 = _interopRequireDefault(_util); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var TableEditColumn = function (_Component) { _inherits(TableEditColumn, _Component); function TableEditColumn(props) { _classCallCheck(this, TableEditColumn); var _this = _possibleConstructorReturn(this, (TableEditColumn.__proto__ || Object.getPrototypeOf(TableEditColumn)).call(this, props)); _this.handleKeyPress = function () { return _this.__handleKeyPress__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleBlur = function () { return _this.__handleBlur__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleCustomUpdate = function () { return _this.__handleCustomUpdate__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.notifyToastr = function () { return _this.__notifyToastr__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleClick = function () { return _this.__handleClick__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.timeouteClear = 0; var _this$props = _this.props, fieldValue = _this$props.fieldValue, row = _this$props.row, className = _this$props.className; _this.focusInEditor = _this.focusInEditor.bind(_this); _this.state = { shakeEditor: false, className: _util2.default.isFunction(className) ? className(fieldValue, row) : className }; return _this; } _createClass(TableEditColumn, [{ key: 'valueShortCircuit', value: function valueShortCircuit(value) { return value === null || typeof value === 'undefined' ? '' : value; } }, { key: '__handleKeyPress__REACT_HOT_LOADER__', value: function __handleKeyPress__REACT_HOT_LOADER__(e) { if (e.keyCode === 13 || e.keyCode === 9) { // Pressed ENTER var value = e.currentTarget.type === 'checkbox' ? this._getCheckBoxValue(e) : e.currentTarget.value; if (!this.validator(value)) { return; } if (e.keyCode === 13) { this.props.completeEdit(value, this.props.rowIndex, this.props.colIndex); } else { this.props.onTab(this.props.rowIndex + 1, this.props.colIndex + 1, 'tab', e); e.preventDefault(); } } else if (e.keyCode === 27) { this.props.completeEdit(null, this.props.rowIndex, this.props.colIndex); } else if (e.type === 'click' && !this.props.blurToSave) { // textarea click save button var _value = e.target.parentElement.firstChild.value; if (!this.validator(_value)) { return; } this.props.completeEdit(_value, this.props.rowIndex, this.props.colIndex); } } }, { key: '__handleBlur__REACT_HOT_LOADER__', value: function __handleBlur__REACT_HOT_LOADER__(e) { e.stopPropagation(); if (this.props.blurToSave) { var value = e.currentTarget.type === 'checkbox' ? this._getCheckBoxValue(e) : e.currentTarget.value; if (!this.validator(value)) { return false; } this.props.completeEdit(value, this.props.rowIndex, this.props.colIndex); } } }, { key: '__handleCustomUpdate__REACT_HOT_LOADER__', // modified by iuculanop // BEGIN value: function __handleCustomUpdate__REACT_HOT_LOADER__(value) { if (!this.validator(value)) { return; } this.props.completeEdit(value, this.props.rowIndex, this.props.colIndex); } }, { key: 'validator', value: function validator(value) { var ts = this; var valid = true; if (ts.props.editable.validator) { var checkVal = ts.props.editable.validator(value, this.props.row); var responseType = typeof checkVal === 'undefined' ? 'undefined' : _typeof(checkVal); if (responseType !== 'object' && checkVal !== true) { valid = false; this.notifyToastr('error', checkVal, _Const2.default.CANCEL_TOASTR); } else if (responseType === 'object' && checkVal.isValid !== true) { valid = false; this.notifyToastr(checkVal.notification.type, checkVal.notification.msg, checkVal.notification.title); } if (!valid) { // animate input ts.clearTimeout(); var _props = this.props, invalidColumnClassName = _props.invalidColumnClassName, row = _props.row; var className = _util2.default.isFunction(invalidColumnClassName) ? invalidColumnClassName(value, row) : invalidColumnClassName; ts.setState({ shakeEditor: true, className: className }); ts.timeouteClear = setTimeout(function () { ts.setState({ shakeEditor: false }); }, 300); this.focusInEditor(); return valid; } } return valid; } // END }, { key: '__notifyToastr__REACT_HOT_LOADER__', value: function __notifyToastr__REACT_HOT_LOADER__(type, message, title) { var toastr = true; var beforeShowError = this.props.beforeShowError; if (beforeShowError) { toastr = beforeShowError(type, message, title); } if (toastr) { this.refs.notifier.notice(type, message, title); } } }, { key: 'clearTimeout', value: function (_clearTimeout) { function clearTimeout() { return _clearTimeout.apply(this, arguments); } clearTimeout.toString = function () { return _clearTimeout.toString(); }; return clearTimeout; }(function () { if (this.timeouteClear !== 0) { clearTimeout(this.timeouteClear); this.timeouteClear = 0; } }) }, { key: 'componentDidMount', value: function componentDidMount() { this.focusInEditor(); var dom = _reactDom2.default.findDOMNode(this); if (this.props.isFocus) { dom.focus(); } else { dom.blur(); } } }, { key: 'componentDidUpdate', value: function componentDidUpdate() { var dom = _reactDom2.default.findDOMNode(this); if (this.props.isFocus) { dom.focus(); } else { dom.blur(); } } }, { key: 'componentWillUnmount', value: function componentWillUnmount() { this.clearTimeout(); } }, { key: 'focusInEditor', value: function focusInEditor() { if (_util2.default.isFunction(this.refs.inputRef.focus)) { this.refs.inputRef.focus(); } } }, { key: '__handleClick__REACT_HOT_LOADER__', value: function __handleClick__REACT_HOT_LOADER__(e) { if (e.target.tagName !== 'TD') { e.stopPropagation(); } } }, { key: 'render', value: function render() { var _props2 = this.props, editable = _props2.editable, format = _props2.format, customEditor = _props2.customEditor, isFocus = _props2.isFocus, customStyleWithNav = _props2.customStyleWithNav, row = _props2.row; var shakeEditor = this.state.shakeEditor; var attr = { ref: 'inputRef', onKeyDown: this.handleKeyPress, onBlur: this.handleBlur }; var style = { position: 'relative' }; var fieldValue = this.props.fieldValue; var className = this.state.className; // put placeholder if exist editable.placeholder && (attr.placeholder = editable.placeholder); var editorClass = (0, _classnames2.default)({ 'animated': shakeEditor, 'shake': shakeEditor }); fieldValue = fieldValue === 0 ? '0' : fieldValue; var cellEditor = void 0; if (customEditor) { var customEditorProps = _extends({ row: row }, attr, { defaultValue: this.valueShortCircuit(fieldValue) }, customEditor.customEditorParameters); cellEditor = customEditor.getElement(this.handleCustomUpdate, customEditorProps); } else { cellEditor = (0, _Editor2.default)(editable, attr, format, editorClass, this.valueShortCircuit(fieldValue)); } if (isFocus) { if (customStyleWithNav) { var customStyle = _util2.default.isFunction(customStyleWithNav) ? customStyleWithNav(fieldValue, row) : customStyleWithNav; style = _extends({}, style, customStyle); } else { className = className + ' default-focus-cell'; } } return _react2.default.createElement( 'td', { ref: 'td', style: style, className: className, onClick: this.handleClick }, cellEditor, _react2.default.createElement(_Notification2.default, { ref: 'notifier' }) ); } }, { key: '_getCheckBoxValue', value: function _getCheckBoxValue(e) { var value = ''; var values = e.currentTarget.value.split(':'); value = e.currentTarget.checked ? values[0] : values[1]; return value; } }]); return TableEditColumn; }(_react.Component); TableEditColumn.propTypes = { completeEdit: _react.PropTypes.func, rowIndex: _react.PropTypes.number, colIndex: _react.PropTypes.number, blurToSave: _react.PropTypes.bool, editable: _react.PropTypes.oneOfType([_react.PropTypes.bool, _react.PropTypes.object]), format: _react.PropTypes.oneOfType([_react.PropTypes.bool, _react.PropTypes.func]), row: _react.PropTypes.any, fieldValue: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.bool, _react.PropTypes.number, _react.PropTypes.array, _react.PropTypes.object]), className: _react.PropTypes.any, beforeShowError: _react.PropTypes.func, isFocus: _react.PropTypes.bool, customStyleWithNav: _react.PropTypes.oneOfType([_react.PropTypes.func, _react.PropTypes.object]) }; var _default = TableEditColumn; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(TableEditColumn, 'TableEditColumn', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableEditColumn.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableEditColumn.js'); }(); ; /***/ }, /* 13 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var editor = function editor(editable, attr, format, editorClass, defaultValue, ignoreEditable) { if (editable === true || editable === false && ignoreEditable || typeof editable === 'string') { // simple declare var type = editable ? 'text' : editable; return _react2.default.createElement('input', _extends({}, attr, { type: type, defaultValue: defaultValue, className: (editorClass || '') + ' form-control editor edit-text' })); } else if (!editable) { var _type = editable ? 'text' : editable; return _react2.default.createElement('input', _extends({}, attr, { type: _type, defaultValue: defaultValue, disabled: 'disabled', className: (editorClass || '') + ' form-control editor edit-text' })); } else if (editable && (editable.type === undefined || editable.type === null || editable.type.trim() === '')) { var _type2 = editable ? 'text' : editable; return _react2.default.createElement('input', _extends({}, attr, { type: _type2, defaultValue: defaultValue, className: (editorClass || '') + ' form-control editor edit-text' })); } else if (editable.type) { // standard declare // put style if exist editable.style && (attr.style = editable.style); // put class if exist attr.className = (editorClass || '') + ' form-control editor edit-' + editable.type + (editable.className ? ' ' + editable.className : ''); if (editable.type === 'select') { var _ret = function () { // process select input var options = []; var _editable$options = editable.options, values = _editable$options.values, textKey = _editable$options.textKey, valueKey = _editable$options.valueKey; if (Array.isArray(values)) { (function () { // only can use arrray data for options var text = void 0; var value = void 0; options = values.map(function (option, i) { if ((typeof option === 'undefined' ? 'undefined' : _typeof(option)) === 'object') { text = textKey ? option[textKey] : option.text; value = valueKey ? option[valueKey] : option.value; } else { text = format ? format(option) : option; value = option; } return _react2.default.createElement( 'option', { key: 'option' + i, value: value }, text ); }); })(); } return { v: _react2.default.createElement( 'select', _extends({}, attr, { defaultValue: defaultValue }), options ) }; }(); if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v; } else if (editable.type === 'textarea') { var _ret3 = function () { // process textarea input // put other if exist editable.cols && (attr.cols = editable.cols); editable.rows && (attr.rows = editable.rows); var saveBtn = void 0; var keyUpHandler = attr.onKeyDown; if (keyUpHandler) { attr.onKeyDown = function (e) { if (e.keyCode !== 13) { // not Pressed ENTER keyUpHandler(e); } }; saveBtn = _react2.default.createElement( 'button', { className: 'btn btn-info btn-xs textarea-save-btn', onClick: keyUpHandler }, 'save' ); } return { v: _react2.default.createElement( 'div', null, _react2.default.createElement('textarea', _extends({}, attr, { defaultValue: defaultValue })), saveBtn ) }; }(); if ((typeof _ret3 === 'undefined' ? 'undefined' : _typeof(_ret3)) === "object") return _ret3.v; } else if (editable.type === 'checkbox') { var _values = 'true:false'; if (editable.options && editable.options.values) { // values = editable.options.values.split(':'); _values = editable.options.values; } attr.className = attr.className.replace('form-control', ''); attr.className += ' checkbox pull-right'; var checked = defaultValue && defaultValue.toString() === _values.split(':')[0] ? true : false; return _react2.default.createElement('input', _extends({}, attr, { type: 'checkbox', value: _values, defaultChecked: checked })); } else if (editable.type === 'datetime') { return _react2.default.createElement('input', _extends({}, attr, { type: 'datetime-local', defaultValue: defaultValue })); } else { // process other input type. as password,url,email... return _react2.default.createElement('input', _extends({}, attr, { type: editable.type, defaultValue: defaultValue })); } } // default return for other case of editable return _react2.default.createElement('input', _extends({}, attr, { type: 'text', className: (editorClass || '') + ' form-control editor edit-text' })); }; var _default = editor; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(editor, 'editor', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Editor.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Editor.js'); }(); ; /***/ }, /* 14 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _reactToastr = __webpack_require__(15); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ToastrMessageFactory = _react2.default.createFactory(_reactToastr.ToastMessage.animation); var Notification = function (_Component) { _inherits(Notification, _Component); function Notification() { _classCallCheck(this, Notification); return _possibleConstructorReturn(this, (Notification.__proto__ || Object.getPrototypeOf(Notification)).apply(this, arguments)); } _createClass(Notification, [{ key: 'notice', // allow type is success,info,warning,error value: function notice(type, msg, title) { this.refs.toastr[type](msg, title, { mode: 'single', timeOut: 5000, extendedTimeOut: 1000, showAnimation: 'animated bounceIn', hideAnimation: 'animated bounceOut' }); } }, { key: 'render', value: function render() { return _react2.default.createElement(_reactToastr.ToastContainer, { ref: 'toastr', toastMessageFactory: ToastrMessageFactory, id: 'toast-container', className: 'toast-top-right' }); } }]); return Notification; }(_react.Component); var _default = Notification; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(ToastrMessageFactory, 'ToastrMessageFactory', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Notification.js'); __REACT_HOT_LOADER__.register(Notification, 'Notification', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Notification.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Notification.js'); }(); ; /***/ }, /* 15 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ToastMessage = exports.ToastContainer = undefined; var _ToastContainer = __webpack_require__(16); var _ToastContainer2 = _interopRequireDefault(_ToastContainer); var _ToastMessage = __webpack_require__(172); var _ToastMessage2 = _interopRequireDefault(_ToastMessage); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.ToastContainer = _ToastContainer2.default; exports.ToastMessage = _ToastMessage2.default; /***/ }, /* 16 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _omit2 = __webpack_require__(17); var _omit3 = _interopRequireDefault(_omit2); var _includes2 = __webpack_require__(154); var _includes3 = _interopRequireDefault(_includes2); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _reactAddonsUpdate = __webpack_require__(165); var _reactAddonsUpdate2 = _interopRequireDefault(_reactAddonsUpdate); var _ToastMessage = __webpack_require__(172); var _ToastMessage2 = _interopRequireDefault(_ToastMessage); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ToastContainer = function (_Component) { _inherits(ToastContainer, _Component); function ToastContainer() { var _ref; var _temp, _this, _ret; _classCallCheck(this, ToastContainer); for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ToastContainer.__proto__ || Object.getPrototypeOf(ToastContainer)).call.apply(_ref, [this].concat(args))), _this), _this.state = { toasts: [], toastId: 0, messageList: [] }, _this._handle_toast_remove = _this._handle_toast_remove.bind(_this), _temp), _possibleConstructorReturn(_this, _ret); } _createClass(ToastContainer, [{ key: "error", value: function error(message, title, optionsOverride) { this._notify(this.props.toastType.error, message, title, optionsOverride); } }, { key: "info", value: function info(message, title, optionsOverride) { this._notify(this.props.toastType.info, message, title, optionsOverride); } }, { key: "success", value: function success(message, title, optionsOverride) { this._notify(this.props.toastType.success, message, title, optionsOverride); } }, { key: "warning", value: function warning(message, title, optionsOverride) { this._notify(this.props.toastType.warning, message, title, optionsOverride); } }, { key: "clear", value: function clear() { var _this2 = this; Object.keys(this.refs).forEach(function (key) { _this2.refs[key].hideToast(false); }); } }, { key: "_notify", value: function _notify(type, message, title) { var _this3 = this; var optionsOverride = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; if (this.props.preventDuplicates) { if ((0, _includes3.default)(this.state.messageList, message)) { return; } } var key = this.state.toastId++; var toastId = key; var newToast = (0, _reactAddonsUpdate2.default)(optionsOverride, { $merge: { type: type, title: title, message: message, toastId: toastId, key: key, ref: "toasts__" + key, handleOnClick: function handleOnClick(e) { if ("function" === typeof optionsOverride.handleOnClick) { optionsOverride.handleOnClick(); } return _this3._handle_toast_on_click(e); }, handleRemove: this._handle_toast_remove } }); var toastOperation = _defineProperty({}, "" + (this.props.newestOnTop ? "$unshift" : "$push"), [newToast]); var messageOperation = _defineProperty({}, "" + (this.props.newestOnTop ? "$unshift" : "$push"), [message]); var nextState = (0, _reactAddonsUpdate2.default)(this.state, { toasts: toastOperation, messageList: messageOperation }); this.setState(nextState); } }, { key: "_handle_toast_on_click", value: function _handle_toast_on_click(event) { this.props.onClick(event); if (event.defaultPrevented) { return; } event.preventDefault(); event.stopPropagation(); } }, { key: "_handle_toast_remove", value: function _handle_toast_remove(toastId) { var _this4 = this; if (this.props.preventDuplicates) { this.state.previousMessage = ""; } var operationName = "" + (this.props.newestOnTop ? "reduceRight" : "reduce"); this.state.toasts[operationName](function (found, toast, index) { if (found || toast.toastId !== toastId) { return false; } _this4.setState((0, _reactAddonsUpdate2.default)(_this4.state, { toasts: { $splice: [[index, 1]] }, messageList: { $splice: [[index, 1]] } })); return true; }, false); } }, { key: "render", value: function render() { var _this5 = this; var divProps = (0, _omit3.default)(this.props, ["toastType", "toastMessageFactory", "preventDuplicates", "newestOnTop"]); return _react2.default.createElement( "div", _extends({}, divProps, { "aria-live": "polite", role: "alert" }), this.state.toasts.map(function (toast) { return _this5.props.toastMessageFactory(toast); }) ); } }]); return ToastContainer; }(_react.Component); ToastContainer.propTypes = { toastType: _react.PropTypes.shape({ error: _react.PropTypes.string, info: _react.PropTypes.string, success: _react.PropTypes.string, warning: _react.PropTypes.string }).isRequired, id: _react.PropTypes.string.isRequired, toastMessageFactory: _react.PropTypes.func.isRequired, preventDuplicates: _react.PropTypes.bool.isRequired, newestOnTop: _react.PropTypes.bool.isRequired, onClick: _react.PropTypes.func.isRequired }; ToastContainer.defaultProps = { toastType: { error: "error", info: "info", success: "success", warning: "warning" }, id: "toast-container", toastMessageFactory: _react2.default.createFactory(_ToastMessage2.default.animation), preventDuplicates: true, newestOnTop: true, onClick: function onClick() {} }; exports.default = ToastContainer; /***/ }, /* 17 */ /***/ function(module, exports, __webpack_require__) { var arrayMap = __webpack_require__(18), baseClone = __webpack_require__(19), baseUnset = __webpack_require__(129), castPath = __webpack_require__(130), copyObject = __webpack_require__(69), flatRest = __webpack_require__(143), getAllKeysIn = __webpack_require__(106); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; /** * The opposite of `_.pick`; this method creates an object composed of the * own and inherited enumerable property paths of `object` that are not omitted. * * **Note:** This method is considerably slower than `_.pick`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The source object. * @param {...(string|string[])} [paths] The property paths to omit. * @returns {Object} Returns the new object. * @example * * var object = { 'a': 1, 'b': '2', 'c': 3 }; * * _.omit(object, ['a', 'c']); * // => { 'b': '2' } */ var omit = flatRest(function(object, paths) { var result = {}; if (object == null) { return result; } var isDeep = false; paths = arrayMap(paths, function(path) { path = castPath(path, object); isDeep || (isDeep = path.length > 1); return path; }); copyObject(object, getAllKeysIn(object), result); if (isDeep) { result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG); } var length = paths.length; while (length--) { baseUnset(result, paths[length]); } return result; }); module.exports = omit; /***/ }, /* 18 */ /***/ function(module, exports) { /** * A specialized version of `_.map` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array. */ function arrayMap(array, iteratee) { var index = -1, length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { result[index] = iteratee(array[index], index, array); } return result; } module.exports = arrayMap; /***/ }, /* 19 */ /***/ function(module, exports, __webpack_require__) { var Stack = __webpack_require__(20), arrayEach = __webpack_require__(64), assignValue = __webpack_require__(65), baseAssign = __webpack_require__(68), baseAssignIn = __webpack_require__(91), cloneBuffer = __webpack_require__(95), copyArray = __webpack_require__(96), copySymbols = __webpack_require__(97), copySymbolsIn = __webpack_require__(100), getAllKeys = __webpack_require__(104), getAllKeysIn = __webpack_require__(106), getTag = __webpack_require__(107), initCloneArray = __webpack_require__(112), initCloneByTag = __webpack_require__(113), initCloneObject = __webpack_require__(127), isArray = __webpack_require__(76), isBuffer = __webpack_require__(77), isObject = __webpack_require__(44), keys = __webpack_require__(70); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values supported by `_.clone`. */ var cloneableTags = {}; cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; /** * The base implementation of `_.clone` and `_.cloneDeep` which tracks * traversed objects. * * @private * @param {*} value The value to clone. * @param {boolean} bitmask The bitmask flags. * 1 - Deep clone * 2 - Flatten inherited properties * 4 - Clone symbols * @param {Function} [customizer] The function to customize cloning. * @param {string} [key] The key of `value`. * @param {Object} [object] The parent object of `value`. * @param {Object} [stack] Tracks traversed objects and their clone counterparts. * @returns {*} Returns the cloned value. */ function baseClone(value, bitmask, customizer, key, object, stack) { var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; if (customizer) { result = object ? customizer(value, key, object, stack) : customizer(value); } if (result !== undefined) { return result; } if (!isObject(value)) { return value; } var isArr = isArray(value); if (isArr) { result = initCloneArray(value); if (!isDeep) { return copyArray(value, result); } } else { var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; if (isBuffer(value)) { return cloneBuffer(value, isDeep); } if (tag == objectTag || tag == argsTag || (isFunc && !object)) { result = (isFlat || isFunc) ? {} : initCloneObject(value); if (!isDeep) { return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value)); } } else { if (!cloneableTags[tag]) { return object ? value : {}; } result = initCloneByTag(value, tag, baseClone, isDeep); } } // Check for circular references and return its corresponding clone. stack || (stack = new Stack); var stacked = stack.get(value); if (stacked) { return stacked; } stack.set(value, result); var keysFunc = isFull ? (isFlat ? getAllKeysIn : getAllKeys) : (isFlat ? keysIn : keys); var props = isArr ? undefined : keysFunc(value); arrayEach(props || value, function(subValue, key) { if (props) { key = subValue; subValue = value[key]; } // Recursively populate clone (susceptible to call stack limits). assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); return result; } module.exports = baseClone; /***/ }, /* 20 */ /***/ function(module, exports, __webpack_require__) { var ListCache = __webpack_require__(21), stackClear = __webpack_require__(29), stackDelete = __webpack_require__(30), stackGet = __webpack_require__(31), stackHas = __webpack_require__(32), stackSet = __webpack_require__(33); /** * Creates a stack cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Stack(entries) { var data = this.__data__ = new ListCache(entries); this.size = data.size; } // Add methods to `Stack`. Stack.prototype.clear = stackClear; Stack.prototype['delete'] = stackDelete; Stack.prototype.get = stackGet; Stack.prototype.has = stackHas; Stack.prototype.set = stackSet; module.exports = Stack; /***/ }, /* 21 */ /***/ function(module, exports, __webpack_require__) { var listCacheClear = __webpack_require__(22), listCacheDelete = __webpack_require__(23), listCacheGet = __webpack_require__(26), listCacheHas = __webpack_require__(27), listCacheSet = __webpack_require__(28); /** * Creates an list cache object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `ListCache`. ListCache.prototype.clear = listCacheClear; ListCache.prototype['delete'] = listCacheDelete; ListCache.prototype.get = listCacheGet; ListCache.prototype.has = listCacheHas; ListCache.prototype.set = listCacheSet; module.exports = ListCache; /***/ }, /* 22 */ /***/ function(module, exports) { /** * Removes all key-value entries from the list cache. * * @private * @name clear * @memberOf ListCache */ function listCacheClear() { this.__data__ = []; this.size = 0; } module.exports = listCacheClear; /***/ }, /* 23 */ /***/ function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(24); /** Used for built-in method references. */ var arrayProto = Array.prototype; /** Built-in value references. */ var splice = arrayProto.splice; /** * Removes `key` and its value from the list cache. * * @private * @name delete * @memberOf ListCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function listCacheDelete(key) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { return false; } var lastIndex = data.length - 1; if (index == lastIndex) { data.pop(); } else { splice.call(data, index, 1); } --this.size; return true; } module.exports = listCacheDelete; /***/ }, /* 24 */ /***/ function(module, exports, __webpack_require__) { var eq = __webpack_require__(25); /** * Gets the index at which the `key` is found in `array` of key-value pairs. * * @private * @param {Array} array The array to inspect. * @param {*} key The key to search for. * @returns {number} Returns the index of the matched value, else `-1`. */ function assocIndexOf(array, key) { var length = array.length; while (length--) { if (eq(array[length][0], key)) { return length; } } return -1; } module.exports = assocIndexOf; /***/ }, /* 25 */ /***/ function(module, exports) { /** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.eq(object, object); * // => true * * _.eq(object, other); * // => false * * _.eq('a', 'a'); * // => true * * _.eq('a', Object('a')); * // => false * * _.eq(NaN, NaN); * // => true */ function eq(value, other) { return value === other || (value !== value && other !== other); } module.exports = eq; /***/ }, /* 26 */ /***/ function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(24); /** * Gets the list cache value for `key`. * * @private * @name get * @memberOf ListCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function listCacheGet(key) { var data = this.__data__, index = assocIndexOf(data, key); return index < 0 ? undefined : data[index][1]; } module.exports = listCacheGet; /***/ }, /* 27 */ /***/ function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(24); /** * Checks if a list cache value for `key` exists. * * @private * @name has * @memberOf ListCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { return assocIndexOf(this.__data__, key) > -1; } module.exports = listCacheHas; /***/ }, /* 28 */ /***/ function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(24); /** * Sets the list cache `key` to `value`. * * @private * @name set * @memberOf ListCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the list cache instance. */ function listCacheSet(key, value) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { ++this.size; data.push([key, value]); } else { data[index][1] = value; } return this; } module.exports = listCacheSet; /***/ }, /* 29 */ /***/ function(module, exports, __webpack_require__) { var ListCache = __webpack_require__(21); /** * Removes all key-value entries from the stack. * * @private * @name clear * @memberOf Stack */ function stackClear() { this.__data__ = new ListCache; this.size = 0; } module.exports = stackClear; /***/ }, /* 30 */ /***/ function(module, exports) { /** * Removes `key` and its value from the stack. * * @private * @name delete * @memberOf Stack * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function stackDelete(key) { var data = this.__data__, result = data['delete'](key); this.size = data.size; return result; } module.exports = stackDelete; /***/ }, /* 31 */ /***/ function(module, exports) { /** * Gets the stack value for `key`. * * @private * @name get * @memberOf Stack * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function stackGet(key) { return this.__data__.get(key); } module.exports = stackGet; /***/ }, /* 32 */ /***/ function(module, exports) { /** * Checks if a stack value for `key` exists. * * @private * @name has * @memberOf Stack * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function stackHas(key) { return this.__data__.has(key); } module.exports = stackHas; /***/ }, /* 33 */ /***/ function(module, exports, __webpack_require__) { var ListCache = __webpack_require__(21), Map = __webpack_require__(34), MapCache = __webpack_require__(49); /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** * Sets the stack `key` to `value`. * * @private * @name set * @memberOf Stack * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the stack cache instance. */ function stackSet(key, value) { var data = this.__data__; if (data instanceof ListCache) { var pairs = data.__data__; if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { pairs.push([key, value]); this.size = ++data.size; return this; } data = this.__data__ = new MapCache(pairs); } data.set(key, value); this.size = data.size; return this; } module.exports = stackSet; /***/ }, /* 34 */ /***/ function(module, exports, __webpack_require__) { var getNative = __webpack_require__(35), root = __webpack_require__(40); /* Built-in method references that are verified to be native. */ var Map = getNative(root, 'Map'); module.exports = Map; /***/ }, /* 35 */ /***/ function(module, exports, __webpack_require__) { var baseIsNative = __webpack_require__(36), getValue = __webpack_require__(48); /** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = getValue(object, key); return baseIsNative(value) ? value : undefined; } module.exports = getNative; /***/ }, /* 36 */ /***/ function(module, exports, __webpack_require__) { var isFunction = __webpack_require__(37), isMasked = __webpack_require__(45), isObject = __webpack_require__(44), toSource = __webpack_require__(47); /** * Used to match `RegExp` * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; /** Used to detect host constructors (Safari). */ var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to detect if a method is native. */ var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); /** * The base implementation of `_.isNative` without bad shim checks. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, * else `false`. */ function baseIsNative(value) { if (!isObject(value) || isMasked(value)) { return false; } var pattern = isFunction(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource(value)); } module.exports = baseIsNative; /***/ }, /* 37 */ /***/ function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(38), isObject = __webpack_require__(44); /** `Object#toString` result references. */ var asyncTag = '[object AsyncFunction]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', proxyTag = '[object Proxy]'; /** * Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); * // => true * * _.isFunction(/abc/); * // => false */ function isFunction(value) { if (!isObject(value)) { return false; } // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 9 which returns 'object' for typed arrays and other constructors. var tag = baseGetTag(value); return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } module.exports = isFunction; /***/ }, /* 38 */ /***/ function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(39), getRawTag = __webpack_require__(42), objectToString = __webpack_require__(43); /** `Object#toString` result references. */ var nullTag = '[object Null]', undefinedTag = '[object Undefined]'; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * The base implementation of `getTag` without fallbacks for buggy environments. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ function baseGetTag(value) { if (value == null) { return value === undefined ? undefinedTag : nullTag; } value = Object(value); return (symToStringTag && symToStringTag in value) ? getRawTag(value) : objectToString(value); } module.exports = baseGetTag; /***/ }, /* 39 */ /***/ function(module, exports, __webpack_require__) { var root = __webpack_require__(40); /** Built-in value references. */ var Symbol = root.Symbol; module.exports = Symbol; /***/ }, /* 40 */ /***/ function(module, exports, __webpack_require__) { var freeGlobal = __webpack_require__(41); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function('return this')(); module.exports = root; /***/ }, /* 41 */ /***/ function(module, exports) { /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; module.exports = freeGlobal; /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, /* 42 */ /***/ function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(39); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** Built-in value references. */ var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. * * @private * @param {*} value The value to query. * @returns {string} Returns the raw `toStringTag`. */ function getRawTag(value) { var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; try { value[symToStringTag] = undefined; var unmasked = true; } catch (e) {} var result = nativeObjectToString.call(value); if (unmasked) { if (isOwn) { value[symToStringTag] = tag; } else { delete value[symToStringTag]; } } return result; } module.exports = getRawTag; /***/ }, /* 43 */ /***/ function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** * Converts `value` to a string using `Object.prototype.toString`. * * @private * @param {*} value The value to convert. * @returns {string} Returns the converted string. */ function objectToString(value) { return nativeObjectToString.call(value); } module.exports = objectToString; /***/ }, /* 44 */ /***/ function(module, exports) { /** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } module.exports = isObject; /***/ }, /* 45 */ /***/ function(module, exports, __webpack_require__) { var coreJsData = __webpack_require__(46); /** Used to detect methods masquerading as native. */ var maskSrcKey = (function() { var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); return uid ? ('Symbol(src)_1.' + uid) : ''; }()); /** * Checks if `func` has its source masked. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked(func) { return !!maskSrcKey && (maskSrcKey in func); } module.exports = isMasked; /***/ }, /* 46 */ /***/ function(module, exports, __webpack_require__) { var root = __webpack_require__(40); /** Used to detect overreaching core-js shims. */ var coreJsData = root['__core-js_shared__']; module.exports = coreJsData; /***/ }, /* 47 */ /***/ function(module, exports) { /** Used for built-in method references. */ var funcProto = Function.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** * Converts `func` to its source code. * * @private * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ function toSource(func) { if (func != null) { try { return funcToString.call(func); } catch (e) {} try { return (func + ''); } catch (e) {} } return ''; } module.exports = toSource; /***/ }, /* 48 */ /***/ function(module, exports) { /** * Gets the value at `key` of `object`. * * @private * @param {Object} [object] The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function getValue(object, key) { return object == null ? undefined : object[key]; } module.exports = getValue; /***/ }, /* 49 */ /***/ function(module, exports, __webpack_require__) { var mapCacheClear = __webpack_require__(50), mapCacheDelete = __webpack_require__(58), mapCacheGet = __webpack_require__(61), mapCacheHas = __webpack_require__(62), mapCacheSet = __webpack_require__(63); /** * Creates a map cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `MapCache`. MapCache.prototype.clear = mapCacheClear; MapCache.prototype['delete'] = mapCacheDelete; MapCache.prototype.get = mapCacheGet; MapCache.prototype.has = mapCacheHas; MapCache.prototype.set = mapCacheSet; module.exports = MapCache; /***/ }, /* 50 */ /***/ function(module, exports, __webpack_require__) { var Hash = __webpack_require__(51), ListCache = __webpack_require__(21), Map = __webpack_require__(34); /** * Removes all key-value entries from the map. * * @private * @name clear * @memberOf MapCache */ function mapCacheClear() { this.size = 0; this.__data__ = { 'hash': new Hash, 'map': new (Map || ListCache), 'string': new Hash }; } module.exports = mapCacheClear; /***/ }, /* 51 */ /***/ function(module, exports, __webpack_require__) { var hashClear = __webpack_require__(52), hashDelete = __webpack_require__(54), hashGet = __webpack_require__(55), hashHas = __webpack_require__(56), hashSet = __webpack_require__(57); /** * Creates a hash object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Hash(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `Hash`. Hash.prototype.clear = hashClear; Hash.prototype['delete'] = hashDelete; Hash.prototype.get = hashGet; Hash.prototype.has = hashHas; Hash.prototype.set = hashSet; module.exports = Hash; /***/ }, /* 52 */ /***/ function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(53); /** * Removes all key-value entries from the hash. * * @private * @name clear * @memberOf Hash */ function hashClear() { this.__data__ = nativeCreate ? nativeCreate(null) : {}; this.size = 0; } module.exports = hashClear; /***/ }, /* 53 */ /***/ function(module, exports, __webpack_require__) { var getNative = __webpack_require__(35); /* Built-in method references that are verified to be native. */ var nativeCreate = getNative(Object, 'create'); module.exports = nativeCreate; /***/ }, /* 54 */ /***/ function(module, exports) { /** * Removes `key` and its value from the hash. * * @private * @name delete * @memberOf Hash * @param {Object} hash The hash to modify. * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { var result = this.has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } module.exports = hashDelete; /***/ }, /* 55 */ /***/ function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(53); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Gets the hash value for `key`. * * @private * @name get * @memberOf Hash * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function hashGet(key) { var data = this.__data__; if (nativeCreate) { var result = data[key]; return result === HASH_UNDEFINED ? undefined : result; } return hasOwnProperty.call(data, key) ? data[key] : undefined; } module.exports = hashGet; /***/ }, /* 56 */ /***/ function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(53); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Checks if a hash value for `key` exists. * * @private * @name has * @memberOf Hash * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function hashHas(key) { var data = this.__data__; return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); } module.exports = hashHas; /***/ }, /* 57 */ /***/ function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(53); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** * Sets the hash `key` to `value`. * * @private * @name set * @memberOf Hash * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the hash instance. */ function hashSet(key, value) { var data = this.__data__; this.size += this.has(key) ? 0 : 1; data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; return this; } module.exports = hashSet; /***/ }, /* 58 */ /***/ function(module, exports, __webpack_require__) { var getMapData = __webpack_require__(59); /** * Removes `key` and its value from the map. * * @private * @name delete * @memberOf MapCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete(key) { var result = getMapData(this, key)['delete'](key); this.size -= result ? 1 : 0; return result; } module.exports = mapCacheDelete; /***/ }, /* 59 */ /***/ function(module, exports, __webpack_require__) { var isKeyable = __webpack_require__(60); /** * Gets the data for `map`. * * @private * @param {Object} map The map to query. * @param {string} key The reference key. * @returns {*} Returns the map data. */ function getMapData(map, key) { var data = map.__data__; return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map; } module.exports = getMapData; /***/ }, /* 60 */ /***/ function(module, exports) { /** * Checks if `value` is suitable for use as unique object key. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ function isKeyable(value) { var type = typeof value; return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') ? (value !== '__proto__') : (value === null); } module.exports = isKeyable; /***/ }, /* 61 */ /***/ function(module, exports, __webpack_require__) { var getMapData = __webpack_require__(59); /** * Gets the map value for `key`. * * @private * @name get * @memberOf MapCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function mapCacheGet(key) { return getMapData(this, key).get(key); } module.exports = mapCacheGet; /***/ }, /* 62 */ /***/ function(module, exports, __webpack_require__) { var getMapData = __webpack_require__(59); /** * Checks if a map value for `key` exists. * * @private * @name has * @memberOf MapCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function mapCacheHas(key) { return getMapData(this, key).has(key); } module.exports = mapCacheHas; /***/ }, /* 63 */ /***/ function(module, exports, __webpack_require__) { var getMapData = __webpack_require__(59); /** * Sets the map `key` to `value`. * * @private * @name set * @memberOf MapCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { var data = getMapData(this, key), size = data.size; data.set(key, value); this.size += data.size == size ? 0 : 1; return this; } module.exports = mapCacheSet; /***/ }, /* 64 */ /***/ function(module, exports) { /** * A specialized version of `_.forEach` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns `array`. */ function arrayEach(array, iteratee) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (iteratee(array[index], index, array) === false) { break; } } return array; } module.exports = arrayEach; /***/ }, /* 65 */ /***/ function(module, exports, __webpack_require__) { var baseAssignValue = __webpack_require__(66), eq = __webpack_require__(25); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignValue(object, key, value) { var objValue = object[key]; if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } module.exports = assignValue; /***/ }, /* 66 */ /***/ function(module, exports, __webpack_require__) { var defineProperty = __webpack_require__(67); /** * The base implementation of `assignValue` and `assignMergeValue` without * value checks. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function baseAssignValue(object, key, value) { if (key == '__proto__' && defineProperty) { defineProperty(object, key, { 'configurable': true, 'enumerable': true, 'value': value, 'writable': true }); } else { object[key] = value; } } module.exports = baseAssignValue; /***/ }, /* 67 */ /***/ function(module, exports, __webpack_require__) { var getNative = __webpack_require__(35); var defineProperty = (function() { try { var func = getNative(Object, 'defineProperty'); func({}, '', {}); return func; } catch (e) {} }()); module.exports = defineProperty; /***/ }, /* 68 */ /***/ function(module, exports, __webpack_require__) { var copyObject = __webpack_require__(69), keys = __webpack_require__(70); /** * The base implementation of `_.assign` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssign(object, source) { return object && copyObject(source, keys(source), object); } module.exports = baseAssign; /***/ }, /* 69 */ /***/ function(module, exports, __webpack_require__) { var assignValue = __webpack_require__(65), baseAssignValue = __webpack_require__(66); /** * Copies properties of `source` to `object`. * * @private * @param {Object} source The object to copy properties from. * @param {Array} props The property identifiers to copy. * @param {Object} [object={}] The object to copy properties to. * @param {Function} [customizer] The function to customize copied values. * @returns {Object} Returns `object`. */ function copyObject(source, props, object, customizer) { var isNew = !object; object || (object = {}); var index = -1, length = props.length; while (++index < length) { var key = props[index]; var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined; if (newValue === undefined) { newValue = source[key]; } if (isNew) { baseAssignValue(object, key, newValue); } else { assignValue(object, key, newValue); } } return object; } module.exports = copyObject; /***/ }, /* 70 */ /***/ function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__(71), baseKeys = __webpack_require__(86), isArrayLike = __webpack_require__(90); /** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * for more details. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keys(new Foo); * // => ['a', 'b'] (iteration order is not guaranteed) * * _.keys('hi'); * // => ['0', '1'] */ function keys(object) { return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); } module.exports = keys; /***/ }, /* 71 */ /***/ function(module, exports, __webpack_require__) { var baseTimes = __webpack_require__(72), isArguments = __webpack_require__(73), isArray = __webpack_require__(76), isBuffer = __webpack_require__(77), isIndex = __webpack_require__(80), isTypedArray = __webpack_require__(81); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Creates an array of the enumerable property names of the array-like `value`. * * @private * @param {*} value The value to query. * @param {boolean} inherited Specify returning inherited property names. * @returns {Array} Returns the array of property names. */ function arrayLikeKeys(value, inherited) { var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; for (var key in value) { if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( // Safari 9 has enumerable `arguments.length` in strict mode. key == 'length' || // Node.js 0.10 has enumerable non-index properties on buffers. (isBuff && (key == 'offset' || key == 'parent')) || // PhantomJS 2 has enumerable non-index properties on typed arrays. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || // Skip index properties. isIndex(key, length) ))) { result.push(key); } } return result; } module.exports = arrayLikeKeys; /***/ }, /* 72 */ /***/ function(module, exports) { /** * The base implementation of `_.times` without support for iteratee shorthands * or max array length checks. * * @private * @param {number} n The number of times to invoke `iteratee`. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the array of results. */ function baseTimes(n, iteratee) { var index = -1, result = Array(n); while (++index < n) { result[index] = iteratee(index); } return result; } module.exports = baseTimes; /***/ }, /* 73 */ /***/ function(module, exports, __webpack_require__) { var baseIsArguments = __webpack_require__(74), isObjectLike = __webpack_require__(75); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /** * Checks if `value` is likely an `arguments` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * * _.isArguments(function() { return arguments; }()); * // => true * * _.isArguments([1, 2, 3]); * // => false */ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); }; module.exports = isArguments; /***/ }, /* 74 */ /***/ function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(38), isObjectLike = __webpack_require__(75); /** `Object#toString` result references. */ var argsTag = '[object Arguments]'; /** * The base implementation of `_.isArguments`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, */ function baseIsArguments(value) { return isObjectLike(value) && baseGetTag(value) == argsTag; } module.exports = baseIsArguments; /***/ }, /* 75 */ /***/ function(module, exports) { /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return value != null && typeof value == 'object'; } module.exports = isObjectLike; /***/ }, /* 76 */ /***/ function(module, exports) { /** * Checks if `value` is classified as an `Array` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); * // => true * * _.isArray(document.body.children); * // => false * * _.isArray('abc'); * // => false * * _.isArray(_.noop); * // => false */ var isArray = Array.isArray; module.exports = isArray; /***/ }, /* 77 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(40), stubFalse = __webpack_require__(79); /** Detect free variable `exports`. */ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; /** * Checks if `value` is a buffer. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. * @example * * _.isBuffer(new Buffer(2)); * // => true * * _.isBuffer(new Uint8Array(2)); * // => false */ var isBuffer = nativeIsBuffer || stubFalse; module.exports = isBuffer; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(78)(module))) /***/ }, /* 78 */ /***/ function(module, exports) { module.exports = function(module) { if(!module.webpackPolyfill) { module.deprecate = function() {}; module.paths = []; // module.parent = undefined by default module.children = []; module.webpackPolyfill = 1; } return module; } /***/ }, /* 79 */ /***/ function(module, exports) { /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } module.exports = stubFalse; /***/ }, /* 80 */ /***/ function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\d*)$/; /** * Checks if `value` is a valid array-like index. * * @private * @param {*} value The value to check. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ function isIndex(value, length) { length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (typeof value == 'number' || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); } module.exports = isIndex; /***/ }, /* 81 */ /***/ function(module, exports, __webpack_require__) { var baseIsTypedArray = __webpack_require__(82), baseUnary = __webpack_require__(84), nodeUtil = __webpack_require__(85); /* Node.js helper references. */ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; /** * Checks if `value` is classified as a typed array. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. * @example * * _.isTypedArray(new Uint8Array); * // => true * * _.isTypedArray([]); * // => false */ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; module.exports = isTypedArray; /***/ }, /* 82 */ /***/ function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(38), isLength = __webpack_require__(83), isObjectLike = __webpack_require__(75); /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values of typed arrays. */ var typedArrayTags = {}; typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; /** * The base implementation of `_.isTypedArray` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. */ function baseIsTypedArray(value) { return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; } module.exports = baseIsTypedArray; /***/ }, /* 83 */ /***/ function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** * Checks if `value` is a valid array-like length. * * **Note:** This method is loosely based on * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. * @example * * _.isLength(3); * // => true * * _.isLength(Number.MIN_VALUE); * // => false * * _.isLength(Infinity); * // => false * * _.isLength('3'); * // => false */ function isLength(value) { return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } module.exports = isLength; /***/ }, /* 84 */ /***/ function(module, exports) { /** * The base implementation of `_.unary` without support for storing metadata. * * @private * @param {Function} func The function to cap arguments for. * @returns {Function} Returns the new capped function. */ function baseUnary(func) { return function(value) { return func(value); }; } module.exports = baseUnary; /***/ }, /* 85 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(41); /** Detect free variable `exports`. */ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Detect free variable `process` from Node.js. */ var freeProcess = moduleExports && freeGlobal.process; /** Used to access faster Node.js helpers. */ var nodeUtil = (function() { try { return freeProcess && freeProcess.binding && freeProcess.binding('util'); } catch (e) {} }()); module.exports = nodeUtil; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(78)(module))) /***/ }, /* 86 */ /***/ function(module, exports, __webpack_require__) { var isPrototype = __webpack_require__(87), nativeKeys = __webpack_require__(88); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { if (!isPrototype(object)) { return nativeKeys(object); } var result = []; for (var key in Object(object)) { if (hasOwnProperty.call(object, key) && key != 'constructor') { result.push(key); } } return result; } module.exports = baseKeys; /***/ }, /* 87 */ /***/ function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Checks if `value` is likely a prototype object. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. */ function isPrototype(value) { var Ctor = value && value.constructor, proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; return value === proto; } module.exports = isPrototype; /***/ }, /* 88 */ /***/ function(module, exports, __webpack_require__) { var overArg = __webpack_require__(89); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = overArg(Object.keys, Object); module.exports = nativeKeys; /***/ }, /* 89 */ /***/ function(module, exports) { /** * Creates a unary function that invokes `func` with its argument transformed. * * @private * @param {Function} func The function to wrap. * @param {Function} transform The argument transform. * @returns {Function} Returns the new function. */ function overArg(func, transform) { return function(arg) { return func(transform(arg)); }; } module.exports = overArg; /***/ }, /* 90 */ /***/ function(module, exports, __webpack_require__) { var isFunction = __webpack_require__(37), isLength = __webpack_require__(83); /** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * * _.isArrayLike([1, 2, 3]); * // => true * * _.isArrayLike(document.body.children); * // => true * * _.isArrayLike('abc'); * // => true * * _.isArrayLike(_.noop); * // => false */ function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } module.exports = isArrayLike; /***/ }, /* 91 */ /***/ function(module, exports, __webpack_require__) { var copyObject = __webpack_require__(69), keysIn = __webpack_require__(92); /** * The base implementation of `_.assignIn` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssignIn(object, source) { return object && copyObject(source, keysIn(source), object); } module.exports = baseAssignIn; /***/ }, /* 92 */ /***/ function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__(71), baseKeysIn = __webpack_require__(93), isArrayLike = __webpack_require__(90); /** * Creates an array of the own and inherited enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @memberOf _ * @since 3.0.0 * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keysIn(new Foo); * // => ['a', 'b', 'c'] (iteration order is not guaranteed) */ function keysIn(object) { return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); } module.exports = keysIn; /***/ }, /* 93 */ /***/ function(module, exports, __webpack_require__) { var isObject = __webpack_require__(44), isPrototype = __webpack_require__(87), nativeKeysIn = __webpack_require__(94); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeysIn(object) { if (!isObject(object)) { return nativeKeysIn(object); } var isProto = isPrototype(object), result = []; for (var key in object) { if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { result.push(key); } } return result; } module.exports = baseKeysIn; /***/ }, /* 94 */ /***/ function(module, exports) { /** * This function is like * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * except that it includes inherited enumerable properties. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function nativeKeysIn(object) { var result = []; if (object != null) { for (var key in Object(object)) { result.push(key); } } return result; } module.exports = nativeKeysIn; /***/ }, /* 95 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(40); /** Detect free variable `exports`. */ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined; /** * Creates a clone of `buffer`. * * @private * @param {Buffer} buffer The buffer to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Buffer} Returns the cloned buffer. */ function cloneBuffer(buffer, isDeep) { if (isDeep) { return buffer.slice(); } var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); buffer.copy(result); return result; } module.exports = cloneBuffer; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(78)(module))) /***/ }, /* 96 */ /***/ function(module, exports) { /** * Copies the values of `source` to `array`. * * @private * @param {Array} source The array to copy values from. * @param {Array} [array=[]] The array to copy values to. * @returns {Array} Returns `array`. */ function copyArray(source, array) { var index = -1, length = source.length; array || (array = Array(length)); while (++index < length) { array[index] = source[index]; } return array; } module.exports = copyArray; /***/ }, /* 97 */ /***/ function(module, exports, __webpack_require__) { var copyObject = __webpack_require__(69), getSymbols = __webpack_require__(98); /** * Copies own symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbols(source, object) { return copyObject(source, getSymbols(source), object); } module.exports = copySymbols; /***/ }, /* 98 */ /***/ function(module, exports, __webpack_require__) { var overArg = __webpack_require__(89), stubArray = __webpack_require__(99); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols; /** * Creates an array of the own enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray; module.exports = getSymbols; /***/ }, /* 99 */ /***/ function(module, exports) { /** * This method returns a new empty array. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {Array} Returns the new empty array. * @example * * var arrays = _.times(2, _.stubArray); * * console.log(arrays); * // => [[], []] * * console.log(arrays[0] === arrays[1]); * // => false */ function stubArray() { return []; } module.exports = stubArray; /***/ }, /* 100 */ /***/ function(module, exports, __webpack_require__) { var copyObject = __webpack_require__(69), getSymbolsIn = __webpack_require__(101); /** * Copies own and inherited symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbolsIn(source, object) { return copyObject(source, getSymbolsIn(source), object); } module.exports = copySymbolsIn; /***/ }, /* 101 */ /***/ function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__(102), getPrototype = __webpack_require__(103), getSymbols = __webpack_require__(98), stubArray = __webpack_require__(99); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeGetSymbols = Object.getOwnPropertySymbols; /** * Creates an array of the own and inherited enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { var result = []; while (object) { arrayPush(result, getSymbols(object)); object = getPrototype(object); } return result; }; module.exports = getSymbolsIn; /***/ }, /* 102 */ /***/ function(module, exports) { /** * Appends the elements of `values` to `array`. * * @private * @param {Array} array The array to modify. * @param {Array} values The values to append. * @returns {Array} Returns `array`. */ function arrayPush(array, values) { var index = -1, length = values.length, offset = array.length; while (++index < length) { array[offset + index] = values[index]; } return array; } module.exports = arrayPush; /***/ }, /* 103 */ /***/ function(module, exports, __webpack_require__) { var overArg = __webpack_require__(89); /** Built-in value references. */ var getPrototype = overArg(Object.getPrototypeOf, Object); module.exports = getPrototype; /***/ }, /* 104 */ /***/ function(module, exports, __webpack_require__) { var baseGetAllKeys = __webpack_require__(105), getSymbols = __webpack_require__(98), keys = __webpack_require__(70); /** * Creates an array of own enumerable property names and symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeys(object) { return baseGetAllKeys(object, keys, getSymbols); } module.exports = getAllKeys; /***/ }, /* 105 */ /***/ function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__(102), isArray = __webpack_require__(76); /** * The base implementation of `getAllKeys` and `getAllKeysIn` which uses * `keysFunc` and `symbolsFunc` to get the enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @param {Function} keysFunc The function to get the keys of `object`. * @param {Function} symbolsFunc The function to get the symbols of `object`. * @returns {Array} Returns the array of property names and symbols. */ function baseGetAllKeys(object, keysFunc, symbolsFunc) { var result = keysFunc(object); return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); } module.exports = baseGetAllKeys; /***/ }, /* 106 */ /***/ function(module, exports, __webpack_require__) { var baseGetAllKeys = __webpack_require__(105), getSymbolsIn = __webpack_require__(101), keysIn = __webpack_require__(92); /** * Creates an array of own and inherited enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeysIn(object) { return baseGetAllKeys(object, keysIn, getSymbolsIn); } module.exports = getAllKeysIn; /***/ }, /* 107 */ /***/ function(module, exports, __webpack_require__) { var DataView = __webpack_require__(108), Map = __webpack_require__(34), Promise = __webpack_require__(109), Set = __webpack_require__(110), WeakMap = __webpack_require__(111), baseGetTag = __webpack_require__(38), toSource = __webpack_require__(47); /** `Object#toString` result references. */ var mapTag = '[object Map]', objectTag = '[object Object]', promiseTag = '[object Promise]', setTag = '[object Set]', weakMapTag = '[object WeakMap]'; var dataViewTag = '[object DataView]'; /** Used to detect maps, sets, and weakmaps. */ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap); /** * Gets the `toStringTag` of `value`. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ var getTag = baseGetTag; // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || (Map && getTag(new Map) != mapTag) || (Promise && getTag(Promise.resolve()) != promiseTag) || (Set && getTag(new Set) != setTag) || (WeakMap && getTag(new WeakMap) != weakMapTag)) { getTag = function(value) { var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : undefined, ctorString = Ctor ? toSource(Ctor) : ''; if (ctorString) { switch (ctorString) { case dataViewCtorString: return dataViewTag; case mapCtorString: return mapTag; case promiseCtorString: return promiseTag; case setCtorString: return setTag; case weakMapCtorString: return weakMapTag; } } return result; }; } module.exports = getTag; /***/ }, /* 108 */ /***/ function(module, exports, __webpack_require__) { var getNative = __webpack_require__(35), root = __webpack_require__(40); /* Built-in method references that are verified to be native. */ var DataView = getNative(root, 'DataView'); module.exports = DataView; /***/ }, /* 109 */ /***/ function(module, exports, __webpack_require__) { var getNative = __webpack_require__(35), root = __webpack_require__(40); /* Built-in method references that are verified to be native. */ var Promise = getNative(root, 'Promise'); module.exports = Promise; /***/ }, /* 110 */ /***/ function(module, exports, __webpack_require__) { var getNative = __webpack_require__(35), root = __webpack_require__(40); /* Built-in method references that are verified to be native. */ var Set = getNative(root, 'Set'); module.exports = Set; /***/ }, /* 111 */ /***/ function(module, exports, __webpack_require__) { var getNative = __webpack_require__(35), root = __webpack_require__(40); /* Built-in method references that are verified to be native. */ var WeakMap = getNative(root, 'WeakMap'); module.exports = WeakMap; /***/ }, /* 112 */ /***/ function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Initializes an array clone. * * @private * @param {Array} array The array to clone. * @returns {Array} Returns the initialized clone. */ function initCloneArray(array) { var length = array.length, result = array.constructor(length); // Add properties assigned by `RegExp#exec`. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { result.index = array.index; result.input = array.input; } return result; } module.exports = initCloneArray; /***/ }, /* 113 */ /***/ function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__(114), cloneDataView = __webpack_require__(116), cloneMap = __webpack_require__(117), cloneRegExp = __webpack_require__(121), cloneSet = __webpack_require__(122), cloneSymbol = __webpack_require__(125), cloneTypedArray = __webpack_require__(126); /** `Object#toString` result references. */ var boolTag = '[object Boolean]', dateTag = '[object Date]', mapTag = '[object Map]', numberTag = '[object Number]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** * Initializes an object clone based on its `toStringTag`. * * **Note:** This function only supports cloning values with tags of * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. * * @private * @param {Object} object The object to clone. * @param {string} tag The `toStringTag` of the object to clone. * @param {Function} cloneFunc The function to clone values. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the initialized clone. */ function initCloneByTag(object, tag, cloneFunc, isDeep) { var Ctor = object.constructor; switch (tag) { case arrayBufferTag: return cloneArrayBuffer(object); case boolTag: case dateTag: return new Ctor(+object); case dataViewTag: return cloneDataView(object, isDeep); case float32Tag: case float64Tag: case int8Tag: case int16Tag: case int32Tag: case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: return cloneTypedArray(object, isDeep); case mapTag: return cloneMap(object, isDeep, cloneFunc); case numberTag: case stringTag: return new Ctor(object); case regexpTag: return cloneRegExp(object); case setTag: return cloneSet(object, isDeep, cloneFunc); case symbolTag: return cloneSymbol(object); } } module.exports = initCloneByTag; /***/ }, /* 114 */ /***/ function(module, exports, __webpack_require__) { var Uint8Array = __webpack_require__(115); /** * Creates a clone of `arrayBuffer`. * * @private * @param {ArrayBuffer} arrayBuffer The array buffer to clone. * @returns {ArrayBuffer} Returns the cloned array buffer. */ function cloneArrayBuffer(arrayBuffer) { var result = new arrayBuffer.constructor(arrayBuffer.byteLength); new Uint8Array(result).set(new Uint8Array(arrayBuffer)); return result; } module.exports = cloneArrayBuffer; /***/ }, /* 115 */ /***/ function(module, exports, __webpack_require__) { var root = __webpack_require__(40); /** Built-in value references. */ var Uint8Array = root.Uint8Array; module.exports = Uint8Array; /***/ }, /* 116 */ /***/ function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__(114); /** * Creates a clone of `dataView`. * * @private * @param {Object} dataView The data view to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned data view. */ function cloneDataView(dataView, isDeep) { var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); } module.exports = cloneDataView; /***/ }, /* 117 */ /***/ function(module, exports, __webpack_require__) { var addMapEntry = __webpack_require__(118), arrayReduce = __webpack_require__(119), mapToArray = __webpack_require__(120); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1; /** * Creates a clone of `map`. * * @private * @param {Object} map The map to clone. * @param {Function} cloneFunc The function to clone values. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned map. */ function cloneMap(map, isDeep, cloneFunc) { var array = isDeep ? cloneFunc(mapToArray(map), CLONE_DEEP_FLAG) : mapToArray(map); return arrayReduce(array, addMapEntry, new map.constructor); } module.exports = cloneMap; /***/ }, /* 118 */ /***/ function(module, exports) { /** * Adds the key-value `pair` to `map`. * * @private * @param {Object} map The map to modify. * @param {Array} pair The key-value pair to add. * @returns {Object} Returns `map`. */ function addMapEntry(map, pair) { // Don't return `map.set` because it's not chainable in IE 11. map.set(pair[0], pair[1]); return map; } module.exports = addMapEntry; /***/ }, /* 119 */ /***/ function(module, exports) { /** * A specialized version of `_.reduce` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {*} [accumulator] The initial value. * @param {boolean} [initAccum] Specify using the first element of `array` as * the initial value. * @returns {*} Returns the accumulated value. */ function arrayReduce(array, iteratee, accumulator, initAccum) { var index = -1, length = array == null ? 0 : array.length; if (initAccum && length) { accumulator = array[++index]; } while (++index < length) { accumulator = iteratee(accumulator, array[index], index, array); } return accumulator; } module.exports = arrayReduce; /***/ }, /* 120 */ /***/ function(module, exports) { /** * Converts `map` to its key-value pairs. * * @private * @param {Object} map The map to convert. * @returns {Array} Returns the key-value pairs. */ function mapToArray(map) { var index = -1, result = Array(map.size); map.forEach(function(value, key) { result[++index] = [key, value]; }); return result; } module.exports = mapToArray; /***/ }, /* 121 */ /***/ function(module, exports) { /** Used to match `RegExp` flags from their coerced string values. */ var reFlags = /\w*$/; /** * Creates a clone of `regexp`. * * @private * @param {Object} regexp The regexp to clone. * @returns {Object} Returns the cloned regexp. */ function cloneRegExp(regexp) { var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); result.lastIndex = regexp.lastIndex; return result; } module.exports = cloneRegExp; /***/ }, /* 122 */ /***/ function(module, exports, __webpack_require__) { var addSetEntry = __webpack_require__(123), arrayReduce = __webpack_require__(119), setToArray = __webpack_require__(124); /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1; /** * Creates a clone of `set`. * * @private * @param {Object} set The set to clone. * @param {Function} cloneFunc The function to clone values. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned set. */ function cloneSet(set, isDeep, cloneFunc) { var array = isDeep ? cloneFunc(setToArray(set), CLONE_DEEP_FLAG) : setToArray(set); return arrayReduce(array, addSetEntry, new set.constructor); } module.exports = cloneSet; /***/ }, /* 123 */ /***/ function(module, exports) { /** * Adds `value` to `set`. * * @private * @param {Object} set The set to modify. * @param {*} value The value to add. * @returns {Object} Returns `set`. */ function addSetEntry(set, value) { // Don't return `set.add` because it's not chainable in IE 11. set.add(value); return set; } module.exports = addSetEntry; /***/ }, /* 124 */ /***/ function(module, exports) { /** * Converts `set` to an array of its values. * * @private * @param {Object} set The set to convert. * @returns {Array} Returns the values. */ function setToArray(set) { var index = -1, result = Array(set.size); set.forEach(function(value) { result[++index] = value; }); return result; } module.exports = setToArray; /***/ }, /* 125 */ /***/ function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(39); /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; /** * Creates a clone of the `symbol` object. * * @private * @param {Object} symbol The symbol object to clone. * @returns {Object} Returns the cloned symbol object. */ function cloneSymbol(symbol) { return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; } module.exports = cloneSymbol; /***/ }, /* 126 */ /***/ function(module, exports, __webpack_require__) { var cloneArrayBuffer = __webpack_require__(114); /** * Creates a clone of `typedArray`. * * @private * @param {Object} typedArray The typed array to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned typed array. */ function cloneTypedArray(typedArray, isDeep) { var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); } module.exports = cloneTypedArray; /***/ }, /* 127 */ /***/ function(module, exports, __webpack_require__) { var baseCreate = __webpack_require__(128), getPrototype = __webpack_require__(103), isPrototype = __webpack_require__(87); /** * Initializes an object clone. * * @private * @param {Object} object The object to clone. * @returns {Object} Returns the initialized clone. */ function initCloneObject(object) { return (typeof object.constructor == 'function' && !isPrototype(object)) ? baseCreate(getPrototype(object)) : {}; } module.exports = initCloneObject; /***/ }, /* 128 */ /***/ function(module, exports, __webpack_require__) { var isObject = __webpack_require__(44); /** Built-in value references. */ var objectCreate = Object.create; /** * The base implementation of `_.create` without support for assigning * properties to the created object. * * @private * @param {Object} proto The object to inherit from. * @returns {Object} Returns the new object. */ var baseCreate = (function() { function object() {} return function(proto) { if (!isObject(proto)) { return {}; } if (objectCreate) { return objectCreate(proto); } object.prototype = proto; var result = new object; object.prototype = undefined; return result; }; }()); module.exports = baseCreate; /***/ }, /* 129 */ /***/ function(module, exports, __webpack_require__) { var castPath = __webpack_require__(130), last = __webpack_require__(138), parent = __webpack_require__(139), toKey = __webpack_require__(141); /** * The base implementation of `_.unset`. * * @private * @param {Object} object The object to modify. * @param {Array|string} path The property path to unset. * @returns {boolean} Returns `true` if the property is deleted, else `false`. */ function baseUnset(object, path) { path = castPath(path, object); object = parent(object, path); return object == null || delete object[toKey(last(path))]; } module.exports = baseUnset; /***/ }, /* 130 */ /***/ function(module, exports, __webpack_require__) { var isArray = __webpack_require__(76), isKey = __webpack_require__(131), stringToPath = __webpack_require__(133), toString = __webpack_require__(136); /** * Casts `value` to a path array if it's not one. * * @private * @param {*} value The value to inspect. * @param {Object} [object] The object to query keys on. * @returns {Array} Returns the cast property path array. */ function castPath(value, object) { if (isArray(value)) { return value; } return isKey(value, object) ? [value] : stringToPath(toString(value)); } module.exports = castPath; /***/ }, /* 131 */ /***/ function(module, exports, __webpack_require__) { var isArray = __webpack_require__(76), isSymbol = __webpack_require__(132); /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; /** * Checks if `value` is a property name and not a property path. * * @private * @param {*} value The value to check. * @param {Object} [object] The object to query keys on. * @returns {boolean} Returns `true` if `value` is a property name, else `false`. */ function isKey(value, object) { if (isArray(value)) { return false; } var type = typeof value; if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) { return true; } return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || (object != null && value in Object(object)); } module.exports = isKey; /***/ }, /* 132 */ /***/ function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(38), isObjectLike = __webpack_require__(75); /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; /** * Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * * _.isSymbol(Symbol.iterator); * // => true * * _.isSymbol('abc'); * // => false */ function isSymbol(value) { return typeof value == 'symbol' || (isObjectLike(value) && baseGetTag(value) == symbolTag); } module.exports = isSymbol; /***/ }, /* 133 */ /***/ function(module, exports, __webpack_require__) { var memoizeCapped = __webpack_require__(134); /** Used to match property names within property paths. */ var reLeadingDot = /^\./, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; /** Used to match backslashes in property paths. */ var reEscapeChar = /\\(\\)?/g; /** * Converts `string` to a property path array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the property path array. */ var stringToPath = memoizeCapped(function(string) { var result = []; if (reLeadingDot.test(string)) { result.push(''); } string.replace(rePropName, function(match, number, quote, string) { result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match)); }); return result; }); module.exports = stringToPath; /***/ }, /* 134 */ /***/ function(module, exports, __webpack_require__) { var memoize = __webpack_require__(135); /** Used as the maximum memoize cache size. */ var MAX_MEMOIZE_SIZE = 500; /** * A specialized version of `_.memoize` which clears the memoized function's * cache when it exceeds `MAX_MEMOIZE_SIZE`. * * @private * @param {Function} func The function to have its output memoized. * @returns {Function} Returns the new memoized function. */ function memoizeCapped(func) { var result = memoize(func, function(key) { if (cache.size === MAX_MEMOIZE_SIZE) { cache.clear(); } return key; }); var cache = result.cache; return result; } module.exports = memoizeCapped; /***/ }, /* 135 */ /***/ function(module, exports, __webpack_require__) { var MapCache = __webpack_require__(49); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** * Creates a function that memoizes the result of `func`. If `resolver` is * provided, it determines the cache key for storing the result based on the * arguments provided to the memoized function. By default, the first argument * provided to the memoized function is used as the map cache key. The `func` * is invoked with the `this` binding of the memoized function. * * **Note:** The cache is exposed as the `cache` property on the memoized * function. Its creation may be customized by replacing the `_.memoize.Cache` * constructor with one whose instances implement the * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) * method interface of `clear`, `delete`, `get`, `has`, and `set`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to have its output memoized. * @param {Function} [resolver] The function to resolve the cache key. * @returns {Function} Returns the new memoized function. * @example * * var object = { 'a': 1, 'b': 2 }; * var other = { 'c': 3, 'd': 4 }; * * var values = _.memoize(_.values); * values(object); * // => [1, 2] * * values(other); * // => [3, 4] * * object.a = 2; * values(object); * // => [1, 2] * * // Modify the result cache. * values.cache.set(object, ['a', 'b']); * values(object); * // => ['a', 'b'] * * // Replace `_.memoize.Cache`. * _.memoize.Cache = WeakMap; */ function memoize(func, resolver) { if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function() { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; if (cache.has(key)) { return cache.get(key); } var result = func.apply(this, args); memoized.cache = cache.set(key, result) || cache; return result; }; memoized.cache = new (memoize.Cache || MapCache); return memoized; } // Expose `MapCache`. memoize.Cache = MapCache; module.exports = memoize; /***/ }, /* 136 */ /***/ function(module, exports, __webpack_require__) { var baseToString = __webpack_require__(137); /** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {string} Returns the converted string. * @example * * _.toString(null); * // => '' * * _.toString(-0); * // => '-0' * * _.toString([1, 2, 3]); * // => '1,2,3' */ function toString(value) { return value == null ? '' : baseToString(value); } module.exports = toString; /***/ }, /* 137 */ /***/ function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(39), arrayMap = __webpack_require__(18), isArray = __webpack_require__(76), isSymbol = __webpack_require__(132); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolToString = symbolProto ? symbolProto.toString : undefined; /** * The base implementation of `_.toString` which doesn't convert nullish * values to empty strings. * * @private * @param {*} value The value to process. * @returns {string} Returns the string. */ function baseToString(value) { // Exit early for strings to avoid a performance hit in some environments. if (typeof value == 'string') { return value; } if (isArray(value)) { // Recursively convert values (susceptible to call stack limits). return arrayMap(value, baseToString) + ''; } if (isSymbol(value)) { return symbolToString ? symbolToString.call(value) : ''; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = baseToString; /***/ }, /* 138 */ /***/ function(module, exports) { /** * Gets the last element of `array`. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to query. * @returns {*} Returns the last element of `array`. * @example * * _.last([1, 2, 3]); * // => 3 */ function last(array) { var length = array == null ? 0 : array.length; return length ? array[length - 1] : undefined; } module.exports = last; /***/ }, /* 139 */ /***/ function(module, exports, __webpack_require__) { var baseGet = __webpack_require__(140), baseSlice = __webpack_require__(142); /** * Gets the parent value at `path` of `object`. * * @private * @param {Object} object The object to query. * @param {Array} path The path to get the parent value of. * @returns {*} Returns the parent value. */ function parent(object, path) { return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1)); } module.exports = parent; /***/ }, /* 140 */ /***/ function(module, exports, __webpack_require__) { var castPath = __webpack_require__(130), toKey = __webpack_require__(141); /** * The base implementation of `_.get` without support for default values. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path of the property to get. * @returns {*} Returns the resolved value. */ function baseGet(object, path) { path = castPath(path, object); var index = 0, length = path.length; while (object != null && index < length) { object = object[toKey(path[index++])]; } return (index && index == length) ? object : undefined; } module.exports = baseGet; /***/ }, /* 141 */ /***/ function(module, exports, __webpack_require__) { var isSymbol = __webpack_require__(132); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** * Converts `value` to a string key if it's not a string or symbol. * * @private * @param {*} value The value to inspect. * @returns {string|symbol} Returns the key. */ function toKey(value) { if (typeof value == 'string' || isSymbol(value)) { return value; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = toKey; /***/ }, /* 142 */ /***/ function(module, exports) { /** * The base implementation of `_.slice` without an iteratee call guard. * * @private * @param {Array} array The array to slice. * @param {number} [start=0] The start position. * @param {number} [end=array.length] The end position. * @returns {Array} Returns the slice of `array`. */ function baseSlice(array, start, end) { var index = -1, length = array.length; if (start < 0) { start = -start > length ? 0 : (length + start); } end = end > length ? length : end; if (end < 0) { end += length; } length = start > end ? 0 : ((end - start) >>> 0); start >>>= 0; var result = Array(length); while (++index < length) { result[index] = array[index + start]; } return result; } module.exports = baseSlice; /***/ }, /* 143 */ /***/ function(module, exports, __webpack_require__) { var flatten = __webpack_require__(144), overRest = __webpack_require__(147), setToString = __webpack_require__(149); /** * A specialized version of `baseRest` which flattens the rest array. * * @private * @param {Function} func The function to apply a rest parameter to. * @returns {Function} Returns the new function. */ function flatRest(func) { return setToString(overRest(func, undefined, flatten), func + ''); } module.exports = flatRest; /***/ }, /* 144 */ /***/ function(module, exports, __webpack_require__) { var baseFlatten = __webpack_require__(145); /** * Flattens `array` a single level deep. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to flatten. * @returns {Array} Returns the new flattened array. * @example * * _.flatten([1, [2, [3, [4]], 5]]); * // => [1, 2, [3, [4]], 5] */ function flatten(array) { var length = array == null ? 0 : array.length; return length ? baseFlatten(array, 1) : []; } module.exports = flatten; /***/ }, /* 145 */ /***/ function(module, exports, __webpack_require__) { var arrayPush = __webpack_require__(102), isFlattenable = __webpack_require__(146); /** * The base implementation of `_.flatten` with support for restricting flattening. * * @private * @param {Array} array The array to flatten. * @param {number} depth The maximum recursion depth. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. * @param {Array} [result=[]] The initial result value. * @returns {Array} Returns the new flattened array. */ function baseFlatten(array, depth, predicate, isStrict, result) { var index = -1, length = array.length; predicate || (predicate = isFlattenable); result || (result = []); while (++index < length) { var value = array[index]; if (depth > 0 && predicate(value)) { if (depth > 1) { // Recursively flatten arrays (susceptible to call stack limits). baseFlatten(value, depth - 1, predicate, isStrict, result); } else { arrayPush(result, value); } } else if (!isStrict) { result[result.length] = value; } } return result; } module.exports = baseFlatten; /***/ }, /* 146 */ /***/ function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(39), isArguments = __webpack_require__(73), isArray = __webpack_require__(76); /** Built-in value references. */ var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; /** * Checks if `value` is a flattenable `arguments` object or array. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. */ function isFlattenable(value) { return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); } module.exports = isFlattenable; /***/ }, /* 147 */ /***/ function(module, exports, __webpack_require__) { var apply = __webpack_require__(148); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; /** * A specialized version of `baseRest` which transforms the rest array. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @param {Function} transform The rest array transform. * @returns {Function} Returns the new function. */ function overRest(func, start, transform) { start = nativeMax(start === undefined ? (func.length - 1) : start, 0); return function() { var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); while (++index < length) { array[index] = args[start + index]; } index = -1; var otherArgs = Array(start + 1); while (++index < start) { otherArgs[index] = args[index]; } otherArgs[start] = transform(array); return apply(func, this, otherArgs); }; } module.exports = overRest; /***/ }, /* 148 */ /***/ function(module, exports) { /** * A faster alternative to `Function#apply`, this function invokes `func` * with the `this` binding of `thisArg` and the arguments of `args`. * * @private * @param {Function} func The function to invoke. * @param {*} thisArg The `this` binding of `func`. * @param {Array} args The arguments to invoke `func` with. * @returns {*} Returns the result of `func`. */ function apply(func, thisArg, args) { switch (args.length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); case 2: return func.call(thisArg, args[0], args[1]); case 3: return func.call(thisArg, args[0], args[1], args[2]); } return func.apply(thisArg, args); } module.exports = apply; /***/ }, /* 149 */ /***/ function(module, exports, __webpack_require__) { var baseSetToString = __webpack_require__(150), shortOut = __webpack_require__(153); /** * Sets the `toString` method of `func` to return `string`. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var setToString = shortOut(baseSetToString); module.exports = setToString; /***/ }, /* 150 */ /***/ function(module, exports, __webpack_require__) { var constant = __webpack_require__(151), defineProperty = __webpack_require__(67), identity = __webpack_require__(152); /** * The base implementation of `setToString` without support for hot loop shorting. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var baseSetToString = !defineProperty ? identity : function(func, string) { return defineProperty(func, 'toString', { 'configurable': true, 'enumerable': false, 'value': constant(string), 'writable': true }); }; module.exports = baseSetToString; /***/ }, /* 151 */ /***/ function(module, exports) { /** * Creates a function that returns `value`. * * @static * @memberOf _ * @since 2.4.0 * @category Util * @param {*} value The value to return from the new function. * @returns {Function} Returns the new constant function. * @example * * var objects = _.times(2, _.constant({ 'a': 1 })); * * console.log(objects); * // => [{ 'a': 1 }, { 'a': 1 }] * * console.log(objects[0] === objects[1]); * // => true */ function constant(value) { return function() { return value; }; } module.exports = constant; /***/ }, /* 152 */ /***/ function(module, exports) { /** * This method returns the first argument it receives. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {*} value Any value. * @returns {*} Returns `value`. * @example * * var object = { 'a': 1 }; * * console.log(_.identity(object) === object); * // => true */ function identity(value) { return value; } module.exports = identity; /***/ }, /* 153 */ /***/ function(module, exports) { /** Used to detect hot functions by number of calls within a span of milliseconds. */ var HOT_COUNT = 800, HOT_SPAN = 16; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeNow = Date.now; /** * Creates a function that'll short out and invoke `identity` instead * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` * milliseconds. * * @private * @param {Function} func The function to restrict. * @returns {Function} Returns the new shortable function. */ function shortOut(func) { var count = 0, lastCalled = 0; return function() { var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); lastCalled = stamp; if (remaining > 0) { if (++count >= HOT_COUNT) { return arguments[0]; } } else { count = 0; } return func.apply(undefined, arguments); }; } module.exports = shortOut; /***/ }, /* 154 */ /***/ function(module, exports, __webpack_require__) { var baseIndexOf = __webpack_require__(155), isArrayLike = __webpack_require__(90), isString = __webpack_require__(159), toInteger = __webpack_require__(160), values = __webpack_require__(163); /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; /** * Checks if `value` is in `collection`. If `collection` is a string, it's * checked for a substring of `value`, otherwise * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * is used for equality comparisons. If `fromIndex` is negative, it's used as * the offset from the end of `collection`. * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object|string} collection The collection to inspect. * @param {*} value The value to search for. * @param {number} [fromIndex=0] The index to search from. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. * @returns {boolean} Returns `true` if `value` is found, else `false`. * @example * * _.includes([1, 2, 3], 1); * // => true * * _.includes([1, 2, 3], 1, 2); * // => false * * _.includes({ 'a': 1, 'b': 2 }, 1); * // => true * * _.includes('abcd', 'bc'); * // => true */ function includes(collection, value, fromIndex, guard) { collection = isArrayLike(collection) ? collection : values(collection); fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0; var length = collection.length; if (fromIndex < 0) { fromIndex = nativeMax(length + fromIndex, 0); } return isString(collection) ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1) : (!!length && baseIndexOf(collection, value, fromIndex) > -1); } module.exports = includes; /***/ }, /* 155 */ /***/ function(module, exports, __webpack_require__) { var baseFindIndex = __webpack_require__(156), baseIsNaN = __webpack_require__(157), strictIndexOf = __webpack_require__(158); /** * The base implementation of `_.indexOf` without `fromIndex` bounds checks. * * @private * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} fromIndex The index to search from. * @returns {number} Returns the index of the matched value, else `-1`. */ function baseIndexOf(array, value, fromIndex) { return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex); } module.exports = baseIndexOf; /***/ }, /* 156 */ /***/ function(module, exports) { /** * The base implementation of `_.findIndex` and `_.findLastIndex` without * support for iteratee shorthands. * * @private * @param {Array} array The array to inspect. * @param {Function} predicate The function invoked per iteration. * @param {number} fromIndex The index to search from. * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {number} Returns the index of the matched value, else `-1`. */ function baseFindIndex(array, predicate, fromIndex, fromRight) { var length = array.length, index = fromIndex + (fromRight ? 1 : -1); while ((fromRight ? index-- : ++index < length)) { if (predicate(array[index], index, array)) { return index; } } return -1; } module.exports = baseFindIndex; /***/ }, /* 157 */ /***/ function(module, exports) { /** * The base implementation of `_.isNaN` without support for number objects. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. */ function baseIsNaN(value) { return value !== value; } module.exports = baseIsNaN; /***/ }, /* 158 */ /***/ function(module, exports) { /** * A specialized version of `_.indexOf` which performs strict equality * comparisons of values, i.e. `===`. * * @private * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} fromIndex The index to search from. * @returns {number} Returns the index of the matched value, else `-1`. */ function strictIndexOf(array, value, fromIndex) { var index = fromIndex - 1, length = array.length; while (++index < length) { if (array[index] === value) { return index; } } return -1; } module.exports = strictIndexOf; /***/ }, /* 159 */ /***/ function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(38), isArray = __webpack_require__(76), isObjectLike = __webpack_require__(75); /** `Object#toString` result references. */ var stringTag = '[object String]'; /** * Checks if `value` is classified as a `String` primitive or object. * * @static * @since 0.1.0 * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a string, else `false`. * @example * * _.isString('abc'); * // => true * * _.isString(1); * // => false */ function isString(value) { return typeof value == 'string' || (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag); } module.exports = isString; /***/ }, /* 160 */ /***/ function(module, exports, __webpack_require__) { var toFinite = __webpack_require__(161); /** * Converts `value` to an integer. * * **Note:** This method is loosely based on * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {number} Returns the converted integer. * @example * * _.toInteger(3.2); * // => 3 * * _.toInteger(Number.MIN_VALUE); * // => 0 * * _.toInteger(Infinity); * // => 1.7976931348623157e+308 * * _.toInteger('3.2'); * // => 3 */ function toInteger(value) { var result = toFinite(value), remainder = result % 1; return result === result ? (remainder ? result - remainder : result) : 0; } module.exports = toInteger; /***/ }, /* 161 */ /***/ function(module, exports, __webpack_require__) { var toNumber = __webpack_require__(162); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0, MAX_INTEGER = 1.7976931348623157e+308; /** * Converts `value` to a finite number. * * @static * @memberOf _ * @since 4.12.0 * @category Lang * @param {*} value The value to convert. * @returns {number} Returns the converted number. * @example * * _.toFinite(3.2); * // => 3.2 * * _.toFinite(Number.MIN_VALUE); * // => 5e-324 * * _.toFinite(Infinity); * // => 1.7976931348623157e+308 * * _.toFinite('3.2'); * // => 3.2 */ function toFinite(value) { if (!value) { return value === 0 ? value : 0; } value = toNumber(value); if (value === INFINITY || value === -INFINITY) { var sign = (value < 0 ? -1 : 1); return sign * MAX_INTEGER; } return value === value ? value : 0; } module.exports = toFinite; /***/ }, /* 162 */ /***/ function(module, exports, __webpack_require__) { var isObject = __webpack_require__(44), isSymbol = __webpack_require__(132); /** Used as references for various `Number` constants. */ var NAN = 0 / 0; /** Used to match leading and trailing whitespace. */ var reTrim = /^\s+|\s+$/g; /** Used to detect bad signed hexadecimal string values. */ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; /** Used to detect binary string values. */ var reIsBinary = /^0b[01]+$/i; /** Used to detect octal string values. */ var reIsOctal = /^0o[0-7]+$/i; /** Built-in method references without a dependency on `root`. */ var freeParseInt = parseInt; /** * Converts `value` to a number. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to process. * @returns {number} Returns the number. * @example * * _.toNumber(3.2); * // => 3.2 * * _.toNumber(Number.MIN_VALUE); * // => 5e-324 * * _.toNumber(Infinity); * // => Infinity * * _.toNumber('3.2'); * // => 3.2 */ function toNumber(value) { if (typeof value == 'number') { return value; } if (isSymbol(value)) { return NAN; } if (isObject(value)) { var other = typeof value.valueOf == 'function' ? value.valueOf() : value; value = isObject(other) ? (other + '') : other; } if (typeof value != 'string') { return value === 0 ? value : +value; } value = value.replace(reTrim, ''); var isBinary = reIsBinary.test(value); return (isBinary || reIsOctal.test(value)) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : (reIsBadHex.test(value) ? NAN : +value); } module.exports = toNumber; /***/ }, /* 163 */ /***/ function(module, exports, __webpack_require__) { var baseValues = __webpack_require__(164), keys = __webpack_require__(70); /** * Creates an array of the own enumerable string keyed property values of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property values. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.values(new Foo); * // => [1, 2] (iteration order is not guaranteed) * * _.values('hi'); * // => ['h', 'i'] */ function values(object) { return object == null ? [] : baseValues(object, keys(object)); } module.exports = values; /***/ }, /* 164 */ /***/ function(module, exports, __webpack_require__) { var arrayMap = __webpack_require__(18); /** * The base implementation of `_.values` and `_.valuesIn` which creates an * array of `object` property values corresponding to the property names * of `props`. * * @private * @param {Object} object The object to query. * @param {Array} props The property names to get values for. * @returns {Object} Returns the array of property values. */ function baseValues(object, props) { return arrayMap(props, function(key) { return object[key]; }); } module.exports = baseValues; /***/ }, /* 165 */ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(166); /***/ }, /* 166 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule update */ /* global hasOwnProperty:true */ 'use strict'; var _prodInvariant = __webpack_require__(168), _assign = __webpack_require__(169); var keyOf = __webpack_require__(170); var invariant = __webpack_require__(171); var hasOwnProperty = {}.hasOwnProperty; function shallowCopy(x) { if (Array.isArray(x)) { return x.concat(); } else if (x && typeof x === 'object') { return _assign(new x.constructor(), x); } else { return x; } } var COMMAND_PUSH = keyOf({ $push: null }); var COMMAND_UNSHIFT = keyOf({ $unshift: null }); var COMMAND_SPLICE = keyOf({ $splice: null }); var COMMAND_SET = keyOf({ $set: null }); var COMMAND_MERGE = keyOf({ $merge: null }); var COMMAND_APPLY = keyOf({ $apply: null }); var ALL_COMMANDS_LIST = [COMMAND_PUSH, COMMAND_UNSHIFT, COMMAND_SPLICE, COMMAND_SET, COMMAND_MERGE, COMMAND_APPLY]; var ALL_COMMANDS_SET = {}; ALL_COMMANDS_LIST.forEach(function (command) { ALL_COMMANDS_SET[command] = true; }); function invariantArrayCase(value, spec, command) { !Array.isArray(value) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): expected target of %s to be an array; got %s.', command, value) : _prodInvariant('1', command, value) : void 0; var specValue = spec[command]; !Array.isArray(specValue) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?', command, specValue) : _prodInvariant('2', command, specValue) : void 0; } /** * Returns a updated shallow copy of an object without mutating the original. * See https://facebook.github.io/react/docs/update.html for details. */ function update(value, spec) { !(typeof spec === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): You provided a key path to update() that did not contain one of %s. Did you forget to include {%s: ...}?', ALL_COMMANDS_LIST.join(', '), COMMAND_SET) : _prodInvariant('3', ALL_COMMANDS_LIST.join(', '), COMMAND_SET) : void 0; if (hasOwnProperty.call(spec, COMMAND_SET)) { !(Object.keys(spec).length === 1) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Cannot have more than one key in an object with %s', COMMAND_SET) : _prodInvariant('4', COMMAND_SET) : void 0; return spec[COMMAND_SET]; } var nextValue = shallowCopy(value); if (hasOwnProperty.call(spec, COMMAND_MERGE)) { var mergeObj = spec[COMMAND_MERGE]; !(mergeObj && typeof mergeObj === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): %s expects a spec of type \'object\'; got %s', COMMAND_MERGE, mergeObj) : _prodInvariant('5', COMMAND_MERGE, mergeObj) : void 0; !(nextValue && typeof nextValue === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): %s expects a target of type \'object\'; got %s', COMMAND_MERGE, nextValue) : _prodInvariant('6', COMMAND_MERGE, nextValue) : void 0; _assign(nextValue, spec[COMMAND_MERGE]); } if (hasOwnProperty.call(spec, COMMAND_PUSH)) { invariantArrayCase(value, spec, COMMAND_PUSH); spec[COMMAND_PUSH].forEach(function (item) { nextValue.push(item); }); } if (hasOwnProperty.call(spec, COMMAND_UNSHIFT)) { invariantArrayCase(value, spec, COMMAND_UNSHIFT); spec[COMMAND_UNSHIFT].forEach(function (item) { nextValue.unshift(item); }); } if (hasOwnProperty.call(spec, COMMAND_SPLICE)) { !Array.isArray(value) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected %s target to be an array; got %s', COMMAND_SPLICE, value) : _prodInvariant('7', COMMAND_SPLICE, value) : void 0; !Array.isArray(spec[COMMAND_SPLICE]) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): expected spec of %s to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?', COMMAND_SPLICE, spec[COMMAND_SPLICE]) : _prodInvariant('8', COMMAND_SPLICE, spec[COMMAND_SPLICE]) : void 0; spec[COMMAND_SPLICE].forEach(function (args) { !Array.isArray(args) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): expected spec of %s to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?', COMMAND_SPLICE, spec[COMMAND_SPLICE]) : _prodInvariant('8', COMMAND_SPLICE, spec[COMMAND_SPLICE]) : void 0; nextValue.splice.apply(nextValue, args); }); } if (hasOwnProperty.call(spec, COMMAND_APPLY)) { !(typeof spec[COMMAND_APPLY] === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'update(): expected spec of %s to be a function; got %s.', COMMAND_APPLY, spec[COMMAND_APPLY]) : _prodInvariant('9', COMMAND_APPLY, spec[COMMAND_APPLY]) : void 0; nextValue = spec[COMMAND_APPLY](nextValue); } for (var k in spec) { if (!(ALL_COMMANDS_SET.hasOwnProperty(k) && ALL_COMMANDS_SET[k])) { nextValue[k] = update(value[k], spec[k]); } } return nextValue; } module.exports = update; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(167))) /***/ }, /* 167 */ /***/ function(module, exports) { // shim for using process in browser var process = module.exports = {}; // cached from whatever global is present so that test runners that stub it // don't break things. But we need to wrap it in a try catch in case it is // wrapped in strict mode code which doesn't define any globals. It's inside a // function because try/catches deoptimize in certain engines. var cachedSetTimeout; var cachedClearTimeout; function defaultSetTimout() { throw new Error('setTimeout has not been defined'); } function defaultClearTimeout () { throw new Error('clearTimeout has not been defined'); } (function () { try { if (typeof setTimeout === 'function') { cachedSetTimeout = setTimeout; } else { cachedSetTimeout = defaultSetTimout; } } catch (e) { cachedSetTimeout = defaultSetTimout; } try { if (typeof clearTimeout === 'function') { cachedClearTimeout = clearTimeout; } else { cachedClearTimeout = defaultClearTimeout; } } catch (e) { cachedClearTimeout = defaultClearTimeout; } } ()) function runTimeout(fun) { if (cachedSetTimeout === setTimeout) { //normal enviroments in sane situations return setTimeout(fun, 0); } // if setTimeout wasn't available but was latter defined if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { cachedSetTimeout = setTimeout; return setTimeout(fun, 0); } try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedSetTimeout(fun, 0); } catch(e){ try { // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally return cachedSetTimeout.call(null, fun, 0); } catch(e){ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error return cachedSetTimeout.call(this, fun, 0); } } } function runClearTimeout(marker) { if (cachedClearTimeout === clearTimeout) { //normal enviroments in sane situations return clearTimeout(marker); } // if clearTimeout wasn't available but was latter defined if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { cachedClearTimeout = clearTimeout; return clearTimeout(marker); } try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedClearTimeout(marker); } catch (e){ try { // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally return cachedClearTimeout.call(null, marker); } catch (e){ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. // Some versions of I.E. have different rules for clearTimeout vs setTimeout return cachedClearTimeout.call(this, marker); } } } var queue = []; var draining = false; var currentQueue; var queueIndex = -1; function cleanUpNextTick() { if (!draining || !currentQueue) { return; } draining = false; if (currentQueue.length) { queue = currentQueue.concat(queue); } else { queueIndex = -1; } if (queue.length) { drainQueue(); } } function drainQueue() { if (draining) { return; } var timeout = runTimeout(cleanUpNextTick); draining = true; var len = queue.length; while(len) { currentQueue = queue; queue = []; while (++queueIndex < len) { if (currentQueue) { currentQueue[queueIndex].run(); } } queueIndex = -1; len = queue.length; } currentQueue = null; draining = false; runClearTimeout(timeout); } process.nextTick = function (fun) { var args = new Array(arguments.length - 1); if (arguments.length > 1) { for (var i = 1; i < arguments.length; i++) { args[i - 1] = arguments[i]; } } queue.push(new Item(fun, args)); if (queue.length === 1 && !draining) { runTimeout(drainQueue); } }; // v8 likes predictible objects function Item(fun, array) { this.fun = fun; this.array = array; } Item.prototype.run = function () { this.fun.apply(null, this.array); }; process.title = 'browser'; process.browser = true; process.env = {}; process.argv = []; process.version = ''; // empty string to avoid regexp issues process.versions = {}; function noop() {} process.on = noop; process.addListener = noop; process.once = noop; process.off = noop; process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; process.binding = function (name) { throw new Error('process.binding is not supported'); }; process.cwd = function () { return '/' }; process.chdir = function (dir) { throw new Error('process.chdir is not supported'); }; process.umask = function() { return 0; }; /***/ }, /* 168 */ /***/ function(module, exports) { /** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule reactProdInvariant * */ 'use strict'; /** * WARNING: DO NOT manually require this module. * This is a replacement for `invariant(...)` used by the error code system * and will _only_ be required by the corresponding babel pass. * It always throws. */ function reactProdInvariant(code) { var argCount = arguments.length - 1; var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code; for (var argIdx = 0; argIdx < argCount; argIdx++) { message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]); } message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.'; var error = new Error(message); error.name = 'Invariant Violation'; error.framesToPop = 1; // we don't care about reactProdInvariant's own frame throw error; } module.exports = reactProdInvariant; /***/ }, /* 169 */ /***/ function(module, exports) { 'use strict'; /* eslint-disable no-unused-vars */ var hasOwnProperty = Object.prototype.hasOwnProperty; var propIsEnumerable = Object.prototype.propertyIsEnumerable; function toObject(val) { if (val === null || val === undefined) { throw new TypeError('Object.assign cannot be called with null or undefined'); } return Object(val); } function shouldUseNative() { try { if (!Object.assign) { return false; } // Detect buggy property enumeration order in older V8 versions. // https://bugs.chromium.org/p/v8/issues/detail?id=4118 var test1 = new String('abc'); // eslint-disable-line test1[5] = 'de'; if (Object.getOwnPropertyNames(test1)[0] === '5') { return false; } // https://bugs.chromium.org/p/v8/issues/detail?id=3056 var test2 = {}; for (var i = 0; i < 10; i++) { test2['_' + String.fromCharCode(i)] = i; } var order2 = Object.getOwnPropertyNames(test2).map(function (n) { return test2[n]; }); if (order2.join('') !== '0123456789') { return false; } // https://bugs.chromium.org/p/v8/issues/detail?id=3056 var test3 = {}; 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { test3[letter] = letter; }); if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') { return false; } return true; } catch (e) { // We don't expect any of the above to throw, but better to be safe. return false; } } module.exports = shouldUseNative() ? Object.assign : function (target, source) { var from; var to = toObject(target); var symbols; for (var s = 1; s < arguments.length; s++) { from = Object(arguments[s]); for (var key in from) { if (hasOwnProperty.call(from, key)) { to[key] = from[key]; } } if (Object.getOwnPropertySymbols) { symbols = Object.getOwnPropertySymbols(from); for (var i = 0; i < symbols.length; i++) { if (propIsEnumerable.call(from, symbols[i])) { to[symbols[i]] = from[symbols[i]]; } } } } return to; }; /***/ }, /* 170 */ /***/ function(module, exports) { "use strict"; /** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ /** * Allows extraction of a minified key. Let's the build system minify keys * without losing the ability to dynamically use key strings as values * themselves. Pass in an object with a single key/val pair and it will return * you the string key of that single record. Suppose you want to grab the * value for a key 'className' inside of an object. Key/val minification may * have aliased that key to be 'xa12'. keyOf({className: null}) will return * 'xa12' in that case. Resolve keys you want to use once at startup time, then * reuse those resolutions. */ var keyOf = function keyOf(oneKeyObj) { var key; for (key in oneKeyObj) { if (!oneKeyObj.hasOwnProperty(key)) { continue; } return key; } return null; }; module.exports = keyOf; /***/ }, /* 171 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ 'use strict'; /** * Use invariant() to assert state which your program assumes to be true. * * Provide sprintf-style format (only %s is supported) and arguments * to provide information about what broke and what you were * expecting. * * The invariant message will be stripped in production, but the invariant * will remain to ensure logic does not differ in production. */ function invariant(condition, format, a, b, c, d, e, f) { if (process.env.NODE_ENV !== 'production') { if (format === undefined) { throw new Error('invariant requires an error message argument'); } } if (!condition) { var error; if (format === undefined) { error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); } else { var args = [a, b, c, d, e, f]; var argIndex = 0; error = new Error(format.replace(/%s/g, function () { return args[argIndex++]; })); error.name = 'Invariant Violation'; } error.framesToPop = 1; // we don't care about invariant's own frame throw error; } } module.exports = invariant; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(167))) /***/ }, /* 172 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.jQuery = exports.animation = undefined; var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _reactAddonsUpdate = __webpack_require__(165); var _reactAddonsUpdate2 = _interopRequireDefault(_reactAddonsUpdate); var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); var _animationMixin = __webpack_require__(173); var _animationMixin2 = _interopRequireDefault(_animationMixin); var _jQueryMixin = __webpack_require__(178); var _jQueryMixin2 = _interopRequireDefault(_jQueryMixin); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function noop() {} var ToastMessageSpec = { displayName: "ToastMessage", getDefaultProps: function getDefaultProps() { var iconClassNames = { error: "toast-error", info: "toast-info", success: "toast-success", warning: "toast-warning" }; return { className: "toast", iconClassNames: iconClassNames, titleClassName: "toast-title", messageClassName: "toast-message", tapToDismiss: true, closeButton: false }; }, handleOnClick: function handleOnClick(event) { this.props.handleOnClick(event); if (this.props.tapToDismiss) { this.hideToast(true); } }, _handle_close_button_click: function _handle_close_button_click(event) { event.stopPropagation(); this.hideToast(true); }, _handle_remove: function _handle_remove() { this.props.handleRemove(this.props.toastId); }, _render_close_button: function _render_close_button() { return this.props.closeButton ? _react2.default.createElement("button", { className: "toast-close-button", role: "button", onClick: this._handle_close_button_click, dangerouslySetInnerHTML: { __html: "&times;" } }) : false; }, _render_title_element: function _render_title_element() { return this.props.title ? _react2.default.createElement( "div", { className: this.props.titleClassName }, this.props.title ) : false; }, _render_message_element: function _render_message_element() { return this.props.message ? _react2.default.createElement( "div", { className: this.props.messageClassName }, this.props.message ) : false; }, render: function render() { var iconClassName = this.props.iconClassName || this.props.iconClassNames[this.props.type]; return _react2.default.createElement( "div", { className: (0, _classnames2.default)(this.props.className, iconClassName), style: this.props.style, onClick: this.handleOnClick, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, this._render_close_button(), this._render_title_element(), this._render_message_element() ); } }; var animation = exports.animation = _react2.default.createClass((0, _reactAddonsUpdate2.default)(ToastMessageSpec, { displayName: { $set: "ToastMessage.animation" }, mixins: { $set: [_animationMixin2.default] } })); var jQuery = exports.jQuery = _react2.default.createClass((0, _reactAddonsUpdate2.default)(ToastMessageSpec, { displayName: { $set: "ToastMessage.jQuery" }, mixins: { $set: [_jQueryMixin2.default] } })); /* * assign default noop functions */ ToastMessageSpec.handleMouseEnter = noop; ToastMessageSpec.handleMouseLeave = noop; ToastMessageSpec.hideToast = noop; var ToastMessage = _react2.default.createClass(ToastMessageSpec); ToastMessage.animation = animation; ToastMessage.jQuery = jQuery; exports.default = ToastMessage; /***/ }, /* 173 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _ReactTransitionEvents = __webpack_require__(174); var _ReactTransitionEvents2 = _interopRequireDefault(_ReactTransitionEvents); var _reactDom = __webpack_require__(6); var _reactDom2 = _interopRequireDefault(_reactDom); var _elementClass = __webpack_require__(177); var _elementClass2 = _interopRequireDefault(_elementClass); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var TICK = 17; var toString = Object.prototype.toString; exports.default = { getDefaultProps: function getDefaultProps() { return { transition: null, // some examples defined in index.scss (scale, fadeInOut, rotate) showAnimation: "animated bounceIn", // or other animations from animate.css hideAnimation: "animated bounceOut", timeOut: 5000, extendedTimeOut: 1000 }; }, componentWillMount: function componentWillMount() { this.classNameQueue = []; this.isHiding = false; this.intervalId = null; }, componentDidMount: function componentDidMount() { var _this = this; this._is_mounted = true; this._show(); var node = _reactDom2.default.findDOMNode(this); var onHideComplete = function onHideComplete() { if (_this.isHiding) { _this._set_is_hiding(false); _ReactTransitionEvents2.default.removeEndEventListener(node, onHideComplete); _this._handle_remove(); } }; _ReactTransitionEvents2.default.addEndEventListener(node, onHideComplete); if (this.props.timeOut > 0) { this._set_interval_id(setTimeout(this.hideToast, this.props.timeOut)); } }, componentWillUnmount: function componentWillUnmount() { this._is_mounted = false; if (this.intervalId) { clearTimeout(this.intervalId); } }, _set_transition: function _set_transition(hide) { var animationType = hide ? "leave" : "enter"; var node = _reactDom2.default.findDOMNode(this); var className = this.props.transition + "-" + animationType; var activeClassName = className + "-active"; var endListener = function endListener(e) { if (e && e.target !== node) { return; } var classList = (0, _elementClass2.default)(node); classList.remove(className); classList.remove(activeClassName); _ReactTransitionEvents2.default.removeEndEventListener(node, endListener); }; _ReactTransitionEvents2.default.addEndEventListener(node, endListener); (0, _elementClass2.default)(node).add(className); // Need to do this to actually trigger a transition. this._queue_class(activeClassName); }, _clear_transition: function _clear_transition(hide) { var node = _reactDom2.default.findDOMNode(this); var animationType = hide ? "leave" : "enter"; var className = this.props.transition + "-" + animationType; var activeClassName = className + "-active"; var classList = (0, _elementClass2.default)(node); classList.remove(className); classList.remove(activeClassName); }, _set_animation: function _set_animation(hide) { var node = _reactDom2.default.findDOMNode(this); var animations = this._get_animation_classes(hide); var endListener = function endListener(e) { if (e && e.target !== node) { return; } animations.forEach(function (anim) { return (0, _elementClass2.default)(node).remove(anim); }); _ReactTransitionEvents2.default.removeEndEventListener(node, endListener); }; _ReactTransitionEvents2.default.addEndEventListener(node, endListener); animations.forEach(function (anim) { return (0, _elementClass2.default)(node).add(anim); }); }, _get_animation_classes: function _get_animation_classes(hide) { var animations = hide ? this.props.hideAnimation : this.props.showAnimation; if ("[object Array]" === toString.call(animations)) { return animations; } else if ("string" === typeof animations) { return animations.split(" "); } }, _clear_animation: function _clear_animation(hide) { var node = _reactDom2.default.findDOMNode(this); var animations = this._get_animation_classes(hide); animations.forEach(function (animation) { return (0, _elementClass2.default)(node).remove(animation); }); }, _queue_class: function _queue_class(className) { this.classNameQueue.push(className); if (!this.timeout) { this.timeout = setTimeout(this._flush_class_name_queue, TICK); } }, _flush_class_name_queue: function _flush_class_name_queue() { var _this2 = this; if (this._is_mounted) { (function () { var node = _reactDom2.default.findDOMNode(_this2); _this2.classNameQueue.forEach(function (className) { return (0, _elementClass2.default)(node).add(className); }); })(); } this.classNameQueue.length = 0; this.timeout = null; }, _show: function _show() { if (this.props.transition) { this._set_transition(); } else if (this.props.showAnimation) { this._set_animation(); } }, handleMouseEnter: function handleMouseEnter() { clearTimeout(this.intervalId); this._set_interval_id(null); if (this.isHiding) { this._set_is_hiding(false); if (this.props.hideAnimation) { this._clear_animation(true); } else if (this.props.transition) { this._clear_transition(true); } } }, handleMouseLeave: function handleMouseLeave() { if (!this.isHiding && (this.props.timeOut > 0 || this.props.extendedTimeOut > 0)) { this._set_interval_id(setTimeout(this.hideToast, this.props.extendedTimeOut)); } }, hideToast: function hideToast(override) { if (this.isHiding || this.intervalId === null && !override) { return; } this._set_is_hiding(true); if (this.props.transition) { this._set_transition(true); } else if (this.props.hideAnimation) { this._set_animation(true); } else { this._handle_remove(); } }, _set_interval_id: function _set_interval_id(intervalId) { this.intervalId = intervalId; }, _set_is_hiding: function _set_is_hiding(isHiding) { this.isHiding = isHiding; } }; /***/ }, /* 174 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactTransitionEvents */ 'use strict'; var ExecutionEnvironment = __webpack_require__(175); var getVendorPrefixedEventName = __webpack_require__(176); var endEvents = []; function detectEvents() { var animEnd = getVendorPrefixedEventName('animationend'); var transEnd = getVendorPrefixedEventName('transitionend'); if (animEnd) { endEvents.push(animEnd); } if (transEnd) { endEvents.push(transEnd); } } if (ExecutionEnvironment.canUseDOM) { detectEvents(); } // We use the raw {add|remove}EventListener() call because EventListener // does not know how to remove event listeners and we really should // clean up. Also, these events are not triggered in older browsers // so we should be A-OK here. function addEventListener(node, eventName, eventListener) { node.addEventListener(eventName, eventListener, false); } function removeEventListener(node, eventName, eventListener) { node.removeEventListener(eventName, eventListener, false); } var ReactTransitionEvents = { addEndEventListener: function (node, eventListener) { if (endEvents.length === 0) { // If CSS transitions are not supported, trigger an "end animation" // event immediately. window.setTimeout(eventListener, 0); return; } endEvents.forEach(function (endEvent) { addEventListener(node, endEvent, eventListener); }); }, removeEndEventListener: function (node, eventListener) { if (endEvents.length === 0) { return; } endEvents.forEach(function (endEvent) { removeEventListener(node, endEvent, eventListener); }); } }; module.exports = ReactTransitionEvents; /***/ }, /* 175 */ /***/ function(module, exports) { /** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ 'use strict'; var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); /** * Simple, lightweight module assisting with the detection and context of * Worker. Helps avoid circular dependencies and allows code to reason about * whether or not they are in a Worker, even if they never include the main * `ReactWorker` dependency. */ var ExecutionEnvironment = { canUseDOM: canUseDOM, canUseWorkers: typeof Worker !== 'undefined', canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent), canUseViewport: canUseDOM && !!window.screen, isInWorker: !canUseDOM // For now, this is true - might change in the future. }; module.exports = ExecutionEnvironment; /***/ }, /* 176 */ /***/ function(module, exports, __webpack_require__) { /** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getVendorPrefixedEventName */ 'use strict'; var ExecutionEnvironment = __webpack_require__(175); /** * Generate a mapping of standard vendor prefixes using the defined style property and event name. * * @param {string} styleProp * @param {string} eventName * @returns {object} */ function makePrefixMap(styleProp, eventName) { var prefixes = {}; prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); prefixes['Webkit' + styleProp] = 'webkit' + eventName; prefixes['Moz' + styleProp] = 'moz' + eventName; prefixes['ms' + styleProp] = 'MS' + eventName; prefixes['O' + styleProp] = 'o' + eventName.toLowerCase(); return prefixes; } /** * A list of event names to a configurable list of vendor prefixes. */ var vendorPrefixes = { animationend: makePrefixMap('Animation', 'AnimationEnd'), animationiteration: makePrefixMap('Animation', 'AnimationIteration'), animationstart: makePrefixMap('Animation', 'AnimationStart'), transitionend: makePrefixMap('Transition', 'TransitionEnd') }; /** * Event names that have already been detected and prefixed (if applicable). */ var prefixedEventNames = {}; /** * Element to check for prefixes on. */ var style = {}; /** * Bootstrap if a DOM exists. */ if (ExecutionEnvironment.canUseDOM) { style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x, // the un-prefixed "animation" and "transition" properties are defined on the // style object but the events that fire will still be prefixed, so we need // to check if the un-prefixed events are usable, and if not remove them from the map. if (!('AnimationEvent' in window)) { delete vendorPrefixes.animationend.animation; delete vendorPrefixes.animationiteration.animation; delete vendorPrefixes.animationstart.animation; } // Same as above if (!('TransitionEvent' in window)) { delete vendorPrefixes.transitionend.transition; } } /** * Attempts to determine the correct vendor prefixed event name. * * @param {string} eventName * @returns {string} */ function getVendorPrefixedEventName(eventName) { if (prefixedEventNames[eventName]) { return prefixedEventNames[eventName]; } else if (!vendorPrefixes[eventName]) { return eventName; } var prefixMap = vendorPrefixes[eventName]; for (var styleProp in prefixMap) { if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) { return prefixedEventNames[eventName] = prefixMap[styleProp]; } } return ''; } module.exports = getVendorPrefixedEventName; /***/ }, /* 177 */ /***/ function(module, exports) { module.exports = function(opts) { return new ElementClass(opts) } function indexOf(arr, prop) { if (arr.indexOf) return arr.indexOf(prop) for (var i = 0, len = arr.length; i < len; i++) if (arr[i] === prop) return i return -1 } function ElementClass(opts) { if (!(this instanceof ElementClass)) return new ElementClass(opts) var self = this if (!opts) opts = {} // similar doing instanceof HTMLElement but works in IE8 if (opts.nodeType) opts = {el: opts} this.opts = opts this.el = opts.el || document.body if (typeof this.el !== 'object') this.el = document.querySelector(this.el) } ElementClass.prototype.add = function(className) { var el = this.el if (!el) return if (el.className === "") return el.className = className var classes = el.className.split(' ') if (indexOf(classes, className) > -1) return classes classes.push(className) el.className = classes.join(' ') return classes } ElementClass.prototype.remove = function(className) { var el = this.el if (!el) return if (el.className === "") return var classes = el.className.split(' ') var idx = indexOf(classes, className) if (idx > -1) classes.splice(idx, 1) el.className = classes.join(' ') return classes } ElementClass.prototype.has = function(className) { var el = this.el if (!el) return var classes = el.className.split(' ') return indexOf(classes, className) > -1 } ElementClass.prototype.toggle = function(className) { var el = this.el if (!el) return if (this.has(className)) this.remove(className) else this.add(className) } /***/ }, /* 178 */ /***/ function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _reactDom = __webpack_require__(6); var _reactDom2 = _interopRequireDefault(_reactDom); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function call_show_method($node, props) { $node[props.showMethod]({ duration: props.showDuration, easing: props.showEasing }); } exports.default = { getDefaultProps: function getDefaultProps() { return { style: { display: "none" }, showMethod: "fadeIn", // slideDown, and show are built into jQuery showDuration: 300, showEasing: "swing", // and linear are built into jQuery hideMethod: "fadeOut", hideDuration: 1000, hideEasing: "swing", // timeOut: 5000, extendedTimeOut: 1000 }; }, getInitialState: function getInitialState() { return { intervalId: null, isHiding: false }; }, componentDidMount: function componentDidMount() { call_show_method(this._get_$_node(), this.props); if (this.props.timeOut > 0) { this._set_interval_id(setTimeout(this.hideToast, this.props.timeOut)); } }, handleMouseEnter: function handleMouseEnter() { clearTimeout(this.state.intervalId); this._set_interval_id(null); this._set_is_hiding(false); call_show_method(this._get_$_node().stop(true, true), this.props); }, handleMouseLeave: function handleMouseLeave() { if (!this.state.isHiding && (this.props.timeOut > 0 || this.props.extendedTimeOut > 0)) { this._set_interval_id(setTimeout(this.hideToast, this.props.extendedTimeOut)); } }, hideToast: function hideToast(override) { if (this.state.isHiding || this.state.intervalId === null && !override) { return; } this.setState({ isHiding: true }); this._get_$_node()[this.props.hideMethod]({ duration: this.props.hideDuration, easing: this.props.hideEasing, complete: this._handle_remove }); }, _get_$_node: function _get_$_node() { /* eslint-disable no-undef */ return jQuery(_reactDom2.default.findDOMNode(this)); /* eslint-enable no-undef */ }, _set_interval_id: function _set_interval_id(intervalId) { this.setState({ intervalId: intervalId }); }, _set_is_hiding: function _set_is_hiding(isHiding) { this.setState({ isHiding: isHiding }); } }; /***/ }, /* 179 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint max-len: 0 */ /* eslint no-nested-ternary: 0 */ var ExpandComponent = function (_Component) { _inherits(ExpandComponent, _Component); function ExpandComponent() { _classCallCheck(this, ExpandComponent); return _possibleConstructorReturn(this, (ExpandComponent.__proto__ || Object.getPrototypeOf(ExpandComponent)).apply(this, arguments)); } _createClass(ExpandComponent, [{ key: 'render', value: function render() { var className = this.props.className; var trCss = { style: { backgroundColor: this.props.bgColor }, className: this.props.hidden ? null : (0, _classnames2.default)(className) }; return _react2.default.createElement( 'tr', _extends({ hidden: this.props.hidden, width: this.props.width }, trCss), _react2.default.createElement( 'td', { colSpan: this.props.colSpan }, this.props.children ) ); } }]); return ExpandComponent; }(_react.Component); var _default = ExpandComponent; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(ExpandComponent, 'ExpandComponent', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/ExpandComponent.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/ExpandComponent.js'); }(); ; /***/ }, /* 180 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); var _PageButton = __webpack_require__(181); var _PageButton2 = _interopRequireDefault(_PageButton); var _SizePerPageDropDown = __webpack_require__(182); var _SizePerPageDropDown2 = _interopRequireDefault(_SizePerPageDropDown); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); var _util = __webpack_require__(9); var _util2 = _interopRequireDefault(_util); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var PaginationList = function (_Component) { _inherits(PaginationList, _Component); function PaginationList(props) { _classCallCheck(this, PaginationList); var _this = _possibleConstructorReturn(this, (PaginationList.__proto__ || Object.getPrototypeOf(PaginationList)).call(this, props)); _this.changePage = function () { return _this.__changePage__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.changeSizePerPage = function () { return _this.__changeSizePerPage__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.toggleDropDown = function () { return _this.__toggleDropDown__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.state = { open: _this.props.open }; return _this; } _createClass(PaginationList, [{ key: 'componentWillReceiveProps', value: function componentWillReceiveProps() { var keepSizePerPageState = this.props.keepSizePerPageState; if (!keepSizePerPageState) { this.setState({ open: false }); } } }, { key: '__changePage__REACT_HOT_LOADER__', value: function __changePage__REACT_HOT_LOADER__(page) { var _props = this.props, pageStartIndex = _props.pageStartIndex, prePage = _props.prePage, currPage = _props.currPage, nextPage = _props.nextPage, lastPage = _props.lastPage, firstPage = _props.firstPage, sizePerPage = _props.sizePerPage, keepSizePerPageState = _props.keepSizePerPageState; if (page === prePage) { page = currPage - 1 < pageStartIndex ? pageStartIndex : currPage - 1; } else if (page === nextPage) { page = currPage + 1 > this.lastPage ? this.lastPage : currPage + 1; } else if (page === lastPage) { page = this.lastPage; } else if (page === firstPage) { page = pageStartIndex; } else { page = parseInt(page, 10); } if (keepSizePerPageState) { this.setState({ open: false }); } if (page !== currPage) { this.props.changePage(page, sizePerPage); } } }, { key: '__changeSizePerPage__REACT_HOT_LOADER__', value: function __changeSizePerPage__REACT_HOT_LOADER__(pageNum) { var selectSize = typeof pageNum === 'string' ? parseInt(pageNum, 10) : pageNum; var currPage = this.props.currPage; if (selectSize !== this.props.sizePerPage) { this.totalPages = Math.ceil(this.props.dataSize / selectSize); this.lastPage = this.props.pageStartIndex + this.totalPages - 1; if (currPage > this.lastPage) currPage = this.lastPage; this.props.changePage(currPage, selectSize); if (this.props.onSizePerPageList) { this.props.onSizePerPageList(selectSize); } } this.setState({ open: false }); } }, { key: '__toggleDropDown__REACT_HOT_LOADER__', value: function __toggleDropDown__REACT_HOT_LOADER__() { this.setState({ open: !this.state.open }); } }, { key: 'render', value: function render() { var _props2 = this.props, currPage = _props2.currPage, dataSize = _props2.dataSize, sizePerPage = _props2.sizePerPage, sizePerPageList = _props2.sizePerPageList, paginationShowsTotal = _props2.paginationShowsTotal, pageStartIndex = _props2.pageStartIndex, paginationPanel = _props2.paginationPanel, hidePageListOnlyOnePage = _props2.hidePageListOnlyOnePage; this.totalPages = Math.ceil(dataSize / sizePerPage); this.lastPage = this.props.pageStartIndex + this.totalPages - 1; var pageBtns = this.makePage(_util2.default.isFunction(paginationPanel)); var dropdown = this.makeDropDown(); var offset = Math.abs(_Const2.default.PAGE_START_INDEX - pageStartIndex); var start = (currPage - pageStartIndex) * sizePerPage; start = dataSize === 0 ? 0 : start + 1; var to = Math.min(sizePerPage * (currPage + offset) - 1, dataSize); if (to >= dataSize) to--; var total = paginationShowsTotal ? _react2.default.createElement( 'span', null, 'Showing rows ', start, ' to\xA0', to + 1, ' of\xA0', dataSize ) : null; if (_util2.default.isFunction(paginationShowsTotal)) { total = paginationShowsTotal(start, to + 1, dataSize); } var content = paginationPanel && paginationPanel({ currPage: currPage, sizePerPage: sizePerPage, sizePerPageList: sizePerPageList, pageStartIndex: pageStartIndex, changePage: this.changePage, toggleDropDown: this.toggleDropDown, changeSizePerPage: this.changeSizePerPage, components: { totalText: total, sizePerPageDropdown: dropdown, pageList: pageBtns } }); var hidePageList = hidePageListOnlyOnePage && this.totalPages === 1 ? 'none' : 'block'; return _react2.default.createElement( 'div', { className: 'row', style: { marginTop: 15 } }, content || _react2.default.createElement( 'div', null, _react2.default.createElement( 'div', { className: 'col-md-6 col-xs-6 col-sm-6 col-lg-6' }, total, sizePerPageList.length > 1 ? dropdown : null ), _react2.default.createElement( 'div', { style: { display: hidePageList }, className: 'col-md-6 col-xs-6 col-sm-6 col-lg-6' }, pageBtns ) ) ); } }, { key: 'makeDropDown', value: function makeDropDown() { var _this2 = this; var dropdown = void 0; var dropdownProps = void 0; var sizePerPageText = ''; var _props3 = this.props, sizePerPageDropDown = _props3.sizePerPageDropDown, hideSizePerPage = _props3.hideSizePerPage, sizePerPage = _props3.sizePerPage, sizePerPageList = _props3.sizePerPageList; if (sizePerPageDropDown) { dropdown = sizePerPageDropDown({ open: this.state.open, hideSizePerPage: hideSizePerPage, currSizePerPage: String(sizePerPage), sizePerPageList: sizePerPageList, toggleDropDown: this.toggleDropDown, changeSizePerPage: this.changeSizePerPage }); if (dropdown.type.name === _SizePerPageDropDown2.default.name) { dropdownProps = dropdown.props; } else { return dropdown; } } if (dropdownProps || !dropdown) { var sizePerPageOptions = sizePerPageList.map(function (_sizePerPage) { var pageText = _sizePerPage.text || _sizePerPage; var pageNum = _sizePerPage.value || _sizePerPage; if (sizePerPage === pageNum) sizePerPageText = pageText; return _react2.default.createElement( 'li', { key: pageText, role: 'presentation' }, _react2.default.createElement( 'a', { role: 'menuitem', tabIndex: '-1', href: '#', 'data-page': pageNum, onClick: function onClick(e) { e.preventDefault(); _this2.changeSizePerPage(pageNum); } }, pageText ) ); }); dropdown = _react2.default.createElement(_SizePerPageDropDown2.default, _extends({ open: this.state.open, hidden: hideSizePerPage, currSizePerPage: String(sizePerPageText), options: sizePerPageOptions, onClick: this.toggleDropDown }, dropdownProps)); } return dropdown; } }, { key: 'makePage', value: function makePage() { var _this3 = this; var isCustomPagingPanel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; var pages = this.getPages(); var isStart = function isStart(page, _ref) { var currPage = _ref.currPage, pageStartIndex = _ref.pageStartIndex, firstPage = _ref.firstPage, prePage = _ref.prePage; return currPage === pageStartIndex && (page === firstPage || page === prePage); }; var isEnd = function isEnd(page, _ref2) { var currPage = _ref2.currPage, nextPage = _ref2.nextPage, lastPage = _ref2.lastPage; return currPage === _this3.lastPage && (page === nextPage || page === lastPage); }; var pageBtns = pages.filter(function (page) { if (this.props.alwaysShowAllBtns) { return true; } return isStart(page, this.props) || isEnd(page, this.props) ? false : true; }, this).map(function (page) { var isActive = page === this.props.currPage; var isDisabled = isStart(page, this.props) || isEnd(page, this.props) ? true : false; var title = page + ''; if (page === this.props.nextPage) { title = this.props.nextPageTitle; } else if (page === this.props.prePage) { title = this.props.prePageTitle; } else if (page === this.props.firstPage) { title = this.props.firstPageTitle; } else if (page === this.props.lastPage) { title = this.props.lastPageTitle; } return _react2.default.createElement( _PageButton2.default, { key: page, title: title, changePage: this.changePage, active: isActive, disable: isDisabled }, page ); }, this); var classname = (0, _classnames2.default)(isCustomPagingPanel ? null : 'react-bootstrap-table-page-btns-ul', 'pagination'); return _react2.default.createElement( 'ul', { className: classname }, pageBtns ); } }, { key: 'getLastPage', value: function getLastPage() { return this.lastPage; } }, { key: 'getPages', value: function getPages() { var pages = void 0; var endPage = this.totalPages; if (endPage <= 0) return []; var startPage = Math.max(this.props.currPage - Math.floor(this.props.paginationSize / 2), this.props.pageStartIndex); endPage = startPage + this.props.paginationSize - 1; if (endPage > this.lastPage) { endPage = this.lastPage; startPage = endPage - this.props.paginationSize + 1; } if (startPage !== this.props.pageStartIndex && this.totalPages > this.props.paginationSize && this.props.withFirstAndLast) { pages = [this.props.firstPage, this.props.prePage]; } else if (this.totalPages > 1 || this.props.alwaysShowAllBtns) { pages = [this.props.prePage]; } else { pages = []; } for (var i = startPage; i <= endPage; i++) { if (i >= this.props.pageStartIndex) pages.push(i); } if (endPage <= this.lastPage && pages.length > 1) { pages.push(this.props.nextPage); } if (endPage !== this.lastPage && this.props.withFirstAndLast) { pages.push(this.props.lastPage); } return pages; } }]); return PaginationList; }(_react.Component); PaginationList.propTypes = { currPage: _react.PropTypes.number, sizePerPage: _react.PropTypes.number, dataSize: _react.PropTypes.number, changePage: _react.PropTypes.func, sizePerPageList: _react.PropTypes.array, paginationShowsTotal: _react.PropTypes.oneOfType([_react.PropTypes.bool, _react.PropTypes.func]), paginationSize: _react.PropTypes.number, onSizePerPageList: _react.PropTypes.func, prePage: _react.PropTypes.string, pageStartIndex: _react.PropTypes.number, hideSizePerPage: _react.PropTypes.bool, alwaysShowAllBtns: _react.PropTypes.bool, withFirstAndLast: _react.PropTypes.bool, sizePerPageDropDown: _react.PropTypes.func, paginationPanel: _react.PropTypes.func, prePageTitle: _react.PropTypes.string, nextPageTitle: _react.PropTypes.string, firstPageTitle: _react.PropTypes.string, lastPageTitle: _react.PropTypes.string, hidePageListOnlyOnePage: _react.PropTypes.bool, keepSizePerPageState: _react.PropTypes.bool }; PaginationList.defaultProps = { sizePerPage: _Const2.default.SIZE_PER_PAGE, pageStartIndex: _Const2.default.PAGE_START_INDEX }; var _default = PaginationList; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(PaginationList, 'PaginationList', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/PaginationList.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/PaginationList.js'); }(); ; /***/ }, /* 181 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var PageButton = function (_Component) { _inherits(PageButton, _Component); function PageButton(props) { _classCallCheck(this, PageButton); var _this = _possibleConstructorReturn(this, (PageButton.__proto__ || Object.getPrototypeOf(PageButton)).call(this, props)); _this.pageBtnClick = function () { return _this.__pageBtnClick__REACT_HOT_LOADER__.apply(_this, arguments); }; return _this; } _createClass(PageButton, [{ key: '__pageBtnClick__REACT_HOT_LOADER__', value: function __pageBtnClick__REACT_HOT_LOADER__(e) { e.preventDefault(); this.props.changePage(e.currentTarget.textContent); } }, { key: 'render', value: function render() { var classes = (0, _classnames2.default)({ 'active': this.props.active, 'disabled': this.props.disable, 'hidden': this.props.hidden, 'page-item': true }); return _react2.default.createElement( 'li', { className: classes, title: this.props.title }, _react2.default.createElement( 'a', { href: '#', onClick: this.pageBtnClick, className: 'page-link' }, this.props.children ) ); } }]); return PageButton; }(_react.Component); PageButton.propTypes = { title: _react.PropTypes.string, changePage: _react.PropTypes.func, active: _react.PropTypes.bool, disable: _react.PropTypes.bool, hidden: _react.PropTypes.bool, children: _react.PropTypes.node }; var _default = PageButton; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(PageButton, 'PageButton', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/PageButton.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/PageButton.js'); }(); ; /***/ }, /* 182 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var sizePerPageDefaultClass = 'react-bs-table-sizePerPage-dropdown'; var SizePerPageDropDown = function (_Component) { _inherits(SizePerPageDropDown, _Component); function SizePerPageDropDown() { _classCallCheck(this, SizePerPageDropDown); return _possibleConstructorReturn(this, (SizePerPageDropDown.__proto__ || Object.getPrototypeOf(SizePerPageDropDown)).apply(this, arguments)); } _createClass(SizePerPageDropDown, [{ key: 'render', value: function render() { var _props = this.props, open = _props.open, hidden = _props.hidden, onClick = _props.onClick, options = _props.options, className = _props.className, variation = _props.variation, btnContextual = _props.btnContextual, currSizePerPage = _props.currSizePerPage; var openClass = open ? 'open' : ''; var dropDownStyle = { visibility: hidden ? 'hidden' : 'visible' }; return _react2.default.createElement( 'span', { style: dropDownStyle, className: variation + ' ' + openClass + ' ' + className + ' ' + sizePerPageDefaultClass }, _react2.default.createElement( 'button', { className: 'btn ' + btnContextual + ' dropdown-toggle', id: 'pageDropDown', 'data-toggle': 'dropdown', 'aria-expanded': open, onClick: onClick }, currSizePerPage, _react2.default.createElement( 'span', null, ' ', _react2.default.createElement('span', { className: 'caret' }) ) ), _react2.default.createElement( 'ul', { className: 'dropdown-menu', role: 'menu', 'aria-labelledby': 'pageDropDown' }, options ) ); } }]); return SizePerPageDropDown; }(_react.Component); SizePerPageDropDown.propTypes = { open: _react.PropTypes.bool, hidden: _react.PropTypes.bool, btnContextual: _react.PropTypes.string, currSizePerPage: _react.PropTypes.string, options: _react.PropTypes.array, variation: _react.PropTypes.oneOf(['dropdown', 'dropup']), className: _react.PropTypes.string, onClick: _react.PropTypes.func }; SizePerPageDropDown.defaultProps = { open: false, hidden: false, btnContextual: 'btn-default', variation: 'dropdown', className: '' }; var _default = SizePerPageDropDown; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(sizePerPageDefaultClass, 'sizePerPageDefaultClass', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/SizePerPageDropDown.js'); __REACT_HOT_LOADER__.register(SizePerPageDropDown, 'SizePerPageDropDown', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/SizePerPageDropDown.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/pagination/SizePerPageDropDown.js'); }(); ; /***/ }, /* 183 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _reactModal = __webpack_require__(184); var _reactModal2 = _interopRequireDefault(_reactModal); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); var _Notification = __webpack_require__(14); var _Notification2 = _interopRequireDefault(_Notification); var _InsertModal = __webpack_require__(194); var _InsertModal2 = _interopRequireDefault(_InsertModal); var _InsertButton = __webpack_require__(198); var _InsertButton2 = _interopRequireDefault(_InsertButton); var _DeleteButton = __webpack_require__(199); var _DeleteButton2 = _interopRequireDefault(_DeleteButton); var _ExportCSVButton = __webpack_require__(200); var _ExportCSVButton2 = _interopRequireDefault(_ExportCSVButton); var _ShowSelectedOnlyButton = __webpack_require__(201); var _ShowSelectedOnlyButton2 = _interopRequireDefault(_ShowSelectedOnlyButton); var _SearchField = __webpack_require__(202); var _SearchField2 = _interopRequireDefault(_SearchField); var _ClearSearchButton = __webpack_require__(203); var _ClearSearchButton2 = _interopRequireDefault(_ClearSearchButton); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint no-console: 0 */ // import classSet from 'classnames'; // import editor from '../Editor'; var ToolBar = function (_Component) { _inherits(ToolBar, _Component); function ToolBar(props) { var _arguments = arguments; _classCallCheck(this, ToolBar); var _this = _possibleConstructorReturn(this, (ToolBar.__proto__ || Object.getPrototypeOf(ToolBar)).call(this, props)); _this.displayCommonMessage = function () { return _this.__displayCommonMessage__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleSaveBtnClick = function () { return _this.__handleSaveBtnClick__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleModalClose = function () { return _this.__handleModalClose__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleModalOpen = function () { return _this.__handleModalOpen__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleShowOnlyToggle = function () { return _this.__handleShowOnlyToggle__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleDropRowBtnClick = function () { return _this.__handleDropRowBtnClick__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleDebounce = function (func, wait, immediate) { var timeout = void 0; return function () { var later = function later() { timeout = null; if (!immediate) { func.apply(_this, _arguments); } }; var callNow = immediate && !timeout; clearTimeout(timeout); timeout = setTimeout(later, wait || 0); if (callNow) { func.appy(_this, _arguments); } }; }; _this.handleKeyUp = function () { return _this.__handleKeyUp__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleExportCSV = function () { return _this.__handleExportCSV__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleClearBtnClick = function () { return _this.__handleClearBtnClick__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.timeouteClear = 0; _this.modalClassName; _this.state = { isInsertModalOpen: false, validateState: null, shakeEditor: false, showSelected: false }; return _this; } _createClass(ToolBar, [{ key: 'componentWillMount', value: function componentWillMount() { var _this2 = this; var delay = this.props.searchDelayTime ? this.props.searchDelayTime : 0; this.debounceCallback = this.handleDebounce(function () { var seachInput = _this2.refs.seachInput; seachInput && _this2.props.onSearch(seachInput.getValue()); }, delay); } }, { key: 'componentWillReceiveProps', value: function componentWillReceiveProps(nextProps) { if (nextProps.reset) { this.setSearchInput(''); } } }, { key: 'componentWillUnmount', value: function componentWillUnmount() { this.clearTimeout(); } }, { key: 'setSearchInput', value: function setSearchInput(text) { var seachInput = this.refs.seachInput; if (seachInput && seachInput.value !== text) { seachInput.value = text; } } }, { key: 'clearTimeout', value: function (_clearTimeout) { function clearTimeout() { return _clearTimeout.apply(this, arguments); } clearTimeout.toString = function () { return _clearTimeout.toString(); }; return clearTimeout; }(function () { if (this.timeouteClear) { clearTimeout(this.timeouteClear); this.timeouteClear = 0; } }) }, { key: '__displayCommonMessage__REACT_HOT_LOADER__', value: function __displayCommonMessage__REACT_HOT_LOADER__() { this.refs.notifier.notice('error', 'Form validate errors, please checking!', 'Pressed ESC can cancel'); } }, { key: 'validateNewRow', value: function validateNewRow(newRow) { var _this3 = this; var validateState = {}; var isValid = true; var tempMsg = void 0; var responseType = void 0; this.props.columns.forEach(function (column) { if (column.isKey && column.keyValidator) { // key validator for checking exist key tempMsg = _this3.props.isValidKey(newRow[column.field]); if (tempMsg) { _this3.displayCommonMessage(); isValid = false; validateState[column.field] = tempMsg; } } else if (column.editable && column.editable.validator) { // process validate tempMsg = column.editable.validator(newRow[column.field]); responseType = typeof tempMsg === 'undefined' ? 'undefined' : _typeof(tempMsg); if (responseType !== 'object' && tempMsg !== true) { _this3.displayCommonMessage(); isValid = false; validateState[column.field] = tempMsg; } else if (responseType === 'object' && tempMsg.isValid !== true) { _this3.refs.notifier.notice(tempMsg.notification.type, tempMsg.notification.msg, tempMsg.notification.title); isValid = false; validateState[column.field] = tempMsg.notification.msg; } } }); if (isValid) { return true; } else { this.clearTimeout(); // show error in form and shake it this.setState({ validateState: validateState, shakeEditor: true }); this.timeouteClear = setTimeout(function () { _this3.setState({ shakeEditor: false }); }, 300); return null; } } }, { key: '__handleSaveBtnClick__REACT_HOT_LOADER__', value: function __handleSaveBtnClick__REACT_HOT_LOADER__(newRow) { var _this4 = this; if (!this.validateNewRow(newRow)) { // validation fail return; } var msg = this.props.onAddRow(newRow); if (msg) { this.refs.notifier.notice('error', msg, 'Pressed ESC can cancel'); this.clearTimeout(); // shake form and hack prevent modal hide this.setState({ shakeEditor: true, validateState: 'this is hack for prevent bootstrap modal hide' }); // clear animate class this.timeouteClear = setTimeout(function () { _this4.setState({ shakeEditor: false }); }, 300); } else { // reset state and hide modal hide this.setState({ validateState: null, shakeEditor: false, isInsertModalOpen: false }); } } }, { key: '__handleModalClose__REACT_HOT_LOADER__', value: function __handleModalClose__REACT_HOT_LOADER__() { this.setState({ isInsertModalOpen: false }); } }, { key: '__handleModalOpen__REACT_HOT_LOADER__', value: function __handleModalOpen__REACT_HOT_LOADER__() { this.setState({ isInsertModalOpen: true }); } }, { key: '__handleShowOnlyToggle__REACT_HOT_LOADER__', value: function __handleShowOnlyToggle__REACT_HOT_LOADER__() { this.setState({ showSelected: !this.state.showSelected }); this.props.onShowOnlySelected(); } }, { key: '__handleDropRowBtnClick__REACT_HOT_LOADER__', value: function __handleDropRowBtnClick__REACT_HOT_LOADER__() { this.props.onDropRow(); } }, { key: 'handleCloseBtn', value: function handleCloseBtn() { this.refs.warning.style.display = 'none'; } }, { key: '__handleKeyUp__REACT_HOT_LOADER__', value: function __handleKeyUp__REACT_HOT_LOADER__(event) { event.persist(); this.debounceCallback(event); } }, { key: '__handleExportCSV__REACT_HOT_LOADER__', value: function __handleExportCSV__REACT_HOT_LOADER__() { this.props.onExportCSV(); } }, { key: '__handleClearBtnClick__REACT_HOT_LOADER__', value: function __handleClearBtnClick__REACT_HOT_LOADER__() { var seachInput = this.refs.seachInput; seachInput && seachInput.setValue(''); this.props.onSearch(''); } }, { key: 'render', value: function render() { this.modalClassName = 'bs-table-modal-sm' + ToolBar.modalSeq++; var toolbar = null; var btnGroup = null; var insertBtn = null; var deleteBtn = null; var exportCSVBtn = null; var showSelectedOnlyBtn = null; if (this.props.enableInsert) { if (this.props.insertBtn) { insertBtn = this.renderCustomBtn(this.props.insertBtn, [this.handleModalOpen], _InsertButton2.default.name, 'onClick', this.handleModalOpen); } else { insertBtn = _react2.default.createElement(_InsertButton2.default, { btnText: this.props.insertText, onClick: this.handleModalOpen }); } } if (this.props.enableDelete) { if (this.props.deleteBtn) { deleteBtn = this.renderCustomBtn(this.props.deleteBtn, [this.handleDropRowBtnClick], _DeleteButton2.default.name, 'onClick', this.handleDropRowBtnClick); } else { deleteBtn = _react2.default.createElement(_DeleteButton2.default, { btnText: this.props.deleteText, onClick: this.handleDropRowBtnClick }); } } if (this.props.enableShowOnlySelected) { if (this.props.showSelectedOnlyBtn) { showSelectedOnlyBtn = this.renderCustomBtn(this.props.showSelectedOnlyBtn, [this.handleShowOnlyToggle, this.state.showSelected], _ShowSelectedOnlyButton2.default.name, 'onClick', this.handleShowOnlyToggle); } else { showSelectedOnlyBtn = _react2.default.createElement(_ShowSelectedOnlyButton2.default, { toggle: this.state.showSelected, onClick: this.handleShowOnlyToggle }); } } if (this.props.enableExportCSV) { if (this.props.exportCSVBtn) { exportCSVBtn = this.renderCustomBtn(this.props.exportCSVBtn, [this.handleExportCSV], _ExportCSVButton2.default.name, 'onClick', this.handleExportCSV); } else { exportCSVBtn = _react2.default.createElement(_ExportCSVButton2.default, { btnText: this.props.exportCSVText, onClick: this.handleExportCSV }); } } if (this.props.btnGroup) { btnGroup = this.props.btnGroup({ exportCSVBtn: exportCSVBtn, insertBtn: insertBtn, deleteBtn: deleteBtn, showSelectedOnlyBtn: showSelectedOnlyBtn }); } else { btnGroup = _react2.default.createElement( 'div', { className: 'btn-group btn-group-sm', role: 'group' }, exportCSVBtn, insertBtn, deleteBtn, showSelectedOnlyBtn ); } var _renderSearchPanel = this.renderSearchPanel(), _renderSearchPanel2 = _slicedToArray(_renderSearchPanel, 3), searchPanel = _renderSearchPanel2[0], searchField = _renderSearchPanel2[1], clearBtn = _renderSearchPanel2[2]; var modal = this.props.enableInsert ? this.renderInsertRowModal() : null; if (this.props.toolBar) { toolbar = this.props.toolBar({ components: { exportCSVBtn: exportCSVBtn, insertBtn: insertBtn, deleteBtn: deleteBtn, showSelectedOnlyBtn: showSelectedOnlyBtn, searchPanel: searchPanel, btnGroup: btnGroup, searchField: searchField, clearBtn: clearBtn }, event: { openInsertModal: this.handleModalOpen, closeInsertModal: this.handleModalClose, dropRow: this.handleDropRowBtnClick, showOnlyToogle: this.handleShowOnlyToggle, exportCSV: this.handleExportCSV, search: this.props.onSearch } }); } else { toolbar = _react2.default.createElement( 'div', null, _react2.default.createElement( 'div', { className: 'col-xs-6 col-sm-6 col-md-6 col-lg-8' }, this.props.searchPosition === 'left' ? searchPanel : btnGroup ), _react2.default.createElement( 'div', { className: 'col-xs-6 col-sm-6 col-md-6 col-lg-4' }, this.props.searchPosition === 'left' ? btnGroup : searchPanel ) ); } return _react2.default.createElement( 'div', { className: 'row' }, toolbar, _react2.default.createElement(_Notification2.default, { ref: 'notifier' }), modal ); } }, { key: 'renderSearchPanel', value: function renderSearchPanel() { if (this.props.enableSearch) { var classNames = 'form-group form-group-sm react-bs-table-search-form'; var clearBtn = null; var searchField = null; var searchPanel = null; if (this.props.clearSearch) { if (this.props.clearSearchBtn) { clearBtn = this.renderCustomBtn(this.props.clearSearchBtn, [this.handleClearBtnClick], _ClearSearchButton2.default.name, 'onClick', this.handleClearBtnClick); /* eslint max-len: 0*/ } else { clearBtn = _react2.default.createElement(_ClearSearchButton2.default, { onClick: this.handleClearBtnClick }); } classNames += ' input-group input-group-sm'; } if (this.props.searchField) { searchField = this.props.searchField({ search: this.handleKeyUp, defaultValue: this.props.defaultSearch, placeholder: this.props.searchPlaceholder }); if (searchField.type.name === _SearchField2.default.name) { searchField = _react2.default.cloneElement(searchField, { ref: 'seachInput', onKeyUp: this.handleKeyUp }); } else { searchField = _react2.default.cloneElement(searchField, { ref: 'seachInput' }); } } else { searchField = _react2.default.createElement(_SearchField2.default, { ref: 'seachInput', defaultValue: this.props.defaultSearch, placeholder: this.props.searchPlaceholder, onKeyUp: this.handleKeyUp }); } if (this.props.searchPanel) { searchPanel = this.props.searchPanel({ searchField: searchField, clearBtn: clearBtn, search: this.props.onSearch, defaultValue: this.props.defaultSearch, placeholder: this.props.searchPlaceholder, clearBtnClick: this.handleClearBtnClick }); } else { searchPanel = _react2.default.createElement( 'div', { className: classNames }, searchField, _react2.default.createElement( 'span', { className: 'input-group-btn' }, clearBtn ) ); } return [searchPanel, searchField, clearBtn]; } else { return []; } } }, { key: 'renderInsertRowModal', value: function renderInsertRowModal() { var validateState = this.state.validateState || {}; var _props = this.props, columns = _props.columns, ignoreEditable = _props.ignoreEditable, insertModalHeader = _props.insertModalHeader, insertModalBody = _props.insertModalBody, insertModalFooter = _props.insertModalFooter, insertModal = _props.insertModal; var modal = void 0; modal = insertModal && insertModal(this.handleModalClose, this.handleSaveBtnClick, columns, validateState, ignoreEditable); if (!modal) { modal = _react2.default.createElement(_InsertModal2.default, { columns: columns, validateState: validateState, ignoreEditable: ignoreEditable, onModalClose: this.handleModalClose, onSave: this.handleSaveBtnClick, headerComponent: insertModalHeader, bodyComponent: insertModalBody, footerComponent: insertModalFooter }); } return _react2.default.createElement( _reactModal2.default, { className: 'react-bs-insert-modal modal-dialog', isOpen: this.state.isInsertModalOpen, onRequestClose: this.handleModalClose, contentLabel: 'Modal' }, modal ); } }, { key: 'renderCustomBtn', value: function renderCustomBtn(cb, params, componentName, eventName, event) { var element = cb.apply(null, params); if (element.type.name === componentName && !element.props[eventName]) { var props = {}; props[eventName] = event; element = _react2.default.cloneElement(element, props); } return element; } }]); return ToolBar; }(_react.Component); ToolBar.modalSeq = 0; ToolBar.propTypes = { onAddRow: _react.PropTypes.func, onDropRow: _react.PropTypes.func, onShowOnlySelected: _react.PropTypes.func, enableInsert: _react.PropTypes.bool, enableDelete: _react.PropTypes.bool, enableSearch: _react.PropTypes.bool, enableShowOnlySelected: _react.PropTypes.bool, columns: _react.PropTypes.array, searchPlaceholder: _react.PropTypes.string, exportCSVText: _react.PropTypes.string, insertText: _react.PropTypes.string, deleteText: _react.PropTypes.string, saveText: _react.PropTypes.string, closeText: _react.PropTypes.string, clearSearch: _react.PropTypes.bool, ignoreEditable: _react.PropTypes.bool, defaultSearch: _react.PropTypes.string, insertModalHeader: _react.PropTypes.func, insertModalBody: _react.PropTypes.func, insertModalFooter: _react.PropTypes.func, insertModal: _react.PropTypes.func, insertBtn: _react.PropTypes.func, deleteBtn: _react.PropTypes.func, showSelectedOnlyBtn: _react.PropTypes.func, exportCSVBtn: _react.PropTypes.func, clearSearchBtn: _react.PropTypes.func, searchField: _react.PropTypes.func, searchPanel: _react.PropTypes.func, btnGroup: _react.PropTypes.func, toolBar: _react.PropTypes.func, searchPosition: _react.PropTypes.string, reset: _react.PropTypes.bool, isValidKey: _react.PropTypes.func }; ToolBar.defaultProps = { reset: false, enableInsert: false, enableDelete: false, enableSearch: false, enableShowOnlySelected: false, clearSearch: false, ignoreEditable: false, exportCSVText: _Const2.default.EXPORT_CSV_TEXT, insertText: _Const2.default.INSERT_BTN_TEXT, deleteText: _Const2.default.DELETE_BTN_TEXT, saveText: _Const2.default.SAVE_BTN_TEXT, closeText: _Const2.default.CLOSE_BTN_TEXT }; var _default = ToolBar; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(ToolBar, 'ToolBar', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ToolBar.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ToolBar.js'); }(); ; /***/ }, /* 184 */ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(185); /***/ }, /* 185 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {var React = __webpack_require__(2); var ReactDOM = __webpack_require__(6); var ExecutionEnvironment = __webpack_require__(186); var ModalPortal = React.createFactory(__webpack_require__(187)); var ariaAppHider = __webpack_require__(192); var elementClass = __webpack_require__(193); var renderSubtreeIntoContainer = __webpack_require__(6).unstable_renderSubtreeIntoContainer; var Assign = __webpack_require__(191); var SafeHTMLElement = ExecutionEnvironment.canUseDOM ? window.HTMLElement : {}; var AppElement = ExecutionEnvironment.canUseDOM ? document.body : {appendChild: function() {}}; function getParentElement(parentSelector) { return parentSelector(); } var Modal = React.createClass({ displayName: 'Modal', statics: { setAppElement: function(element) { AppElement = ariaAppHider.setElement(element); }, injectCSS: function() { "production" !== process.env.NODE_ENV && console.warn('React-Modal: injectCSS has been deprecated ' + 'and no longer has any effect. It will be removed in a later version'); } }, propTypes: { isOpen: React.PropTypes.bool.isRequired, style: React.PropTypes.shape({ content: React.PropTypes.object, overlay: React.PropTypes.object }), portalClassName: React.PropTypes.string, appElement: React.PropTypes.instanceOf(SafeHTMLElement), onAfterOpen: React.PropTypes.func, onRequestClose: React.PropTypes.func, closeTimeoutMS: React.PropTypes.number, ariaHideApp: React.PropTypes.bool, shouldCloseOnOverlayClick: React.PropTypes.bool, parentSelector: React.PropTypes.func, role: React.PropTypes.string, contentLabel: React.PropTypes.string.isRequired }, getDefaultProps: function () { return { isOpen: false, portalClassName: 'ReactModalPortal', ariaHideApp: true, closeTimeoutMS: 0, shouldCloseOnOverlayClick: true, parentSelector: function () { return document.body; } }; }, componentDidMount: function() { this.node = document.createElement('div'); this.node.className = this.props.portalClassName; var parent = getParentElement(this.props.parentSelector); parent.appendChild(this.node); this.renderPortal(this.props); }, componentWillReceiveProps: function(newProps) { var currentParent = getParentElement(this.props.parentSelector); var newParent = getParentElement(newProps.parentSelector); if(newParent !== currentParent) { currentParent.removeChild(this.node); newParent.appendChild(this.node); } this.renderPortal(newProps); }, componentWillUnmount: function() { if (this.props.ariaHideApp) { ariaAppHider.show(this.props.appElement); } ReactDOM.unmountComponentAtNode(this.node); var parent = getParentElement(this.props.parentSelector); parent.removeChild(this.node); elementClass(document.body).remove('ReactModal__Body--open'); }, renderPortal: function(props) { if (props.isOpen) { elementClass(document.body).add('ReactModal__Body--open'); } else { elementClass(document.body).remove('ReactModal__Body--open'); } if (props.ariaHideApp) { ariaAppHider.toggle(props.isOpen, props.appElement); } this.portal = renderSubtreeIntoContainer(this, ModalPortal(Assign({}, props, {defaultStyles: Modal.defaultStyles})), this.node); }, render: function () { return React.DOM.noscript(); } }); Modal.defaultStyles = { overlay: { position : 'fixed', top : 0, left : 0, right : 0, bottom : 0, backgroundColor : 'rgba(255, 255, 255, 0.75)' }, content: { position : 'absolute', top : '40px', left : '40px', right : '40px', bottom : '40px', border : '1px solid #ccc', background : '#fff', overflow : 'auto', WebkitOverflowScrolling : 'touch', borderRadius : '4px', outline : 'none', padding : '20px' } } module.exports = Modal /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(167))) /***/ }, /* 186 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;/*! Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. */ (function () { 'use strict'; var canUseDOM = !!( typeof window !== 'undefined' && window.document && window.document.createElement ); var ExecutionEnvironment = { canUseDOM: canUseDOM, canUseWorkers: typeof Worker !== 'undefined', canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent), canUseViewport: canUseDOM && !!window.screen }; if (true) { !(__WEBPACK_AMD_DEFINE_RESULT__ = function () { return ExecutionEnvironment; }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (typeof module !== 'undefined' && module.exports) { module.exports = ExecutionEnvironment; } else { window.ExecutionEnvironment = ExecutionEnvironment; } }()); /***/ }, /* 187 */ /***/ function(module, exports, __webpack_require__) { var React = __webpack_require__(2); var div = React.DOM.div; var focusManager = __webpack_require__(188); var scopeTab = __webpack_require__(190); var Assign = __webpack_require__(191); // so that our CSS is statically analyzable var CLASS_NAMES = { overlay: { base: 'ReactModal__Overlay', afterOpen: 'ReactModal__Overlay--after-open', beforeClose: 'ReactModal__Overlay--before-close' }, content: { base: 'ReactModal__Content', afterOpen: 'ReactModal__Content--after-open', beforeClose: 'ReactModal__Content--before-close' } }; var ModalPortal = module.exports = React.createClass({ displayName: 'ModalPortal', shouldClose: null, getDefaultProps: function() { return { style: { overlay: {}, content: {} } }; }, getInitialState: function() { return { afterOpen: false, beforeClose: false }; }, componentDidMount: function() { // Focus needs to be set when mounting and already open if (this.props.isOpen) { this.setFocusAfterRender(true); this.open(); } }, componentWillUnmount: function() { clearTimeout(this.closeTimer); }, componentWillReceiveProps: function(newProps) { // Focus only needs to be set once when the modal is being opened if (!this.props.isOpen && newProps.isOpen) { this.setFocusAfterRender(true); this.open(); } else if (this.props.isOpen && !newProps.isOpen) { this.close(); } }, componentDidUpdate: function () { if (this.focusAfterRender) { this.focusContent(); this.setFocusAfterRender(false); } }, setFocusAfterRender: function (focus) { this.focusAfterRender = focus; }, open: function() { if (this.state.afterOpen && this.state.beforeClose) { clearTimeout(this.closeTimer); this.setState({ beforeClose: false }); } else { focusManager.setupScopedFocus(this.node); focusManager.markForFocusLater(); this.setState({isOpen: true}, function() { this.setState({afterOpen: true}); if (this.props.isOpen && this.props.onAfterOpen) { this.props.onAfterOpen(); } }.bind(this)); } }, close: function() { if (!this.ownerHandlesClose()) return; if (this.props.closeTimeoutMS > 0) this.closeWithTimeout(); else this.closeWithoutTimeout(); }, focusContent: function() { // Don't steal focus from inner elements if (!this.contentHasFocus()) { this.refs.content.focus(); } }, closeWithTimeout: function() { this.setState({beforeClose: true}, function() { this.closeTimer = setTimeout(this.closeWithoutTimeout, this.props.closeTimeoutMS); }.bind(this)); }, closeWithoutTimeout: function() { this.setState({ beforeClose: false, isOpen: false, afterOpen: false, }, this.afterClose); }, afterClose: function() { focusManager.returnFocus(); focusManager.teardownScopedFocus(); }, handleKeyDown: function(event) { if (event.keyCode == 9 /*tab*/) scopeTab(this.refs.content, event); if (event.keyCode == 27 /*esc*/) { event.preventDefault(); this.requestClose(event); } }, handleOverlayMouseDown: function(event) { if (this.shouldClose === null) { this.shouldClose = true; } }, handleOverlayMouseUp: function(event) { if (this.shouldClose && this.props.shouldCloseOnOverlayClick) { if (this.ownerHandlesClose()) this.requestClose(event); else this.focusContent(); } this.shouldClose = null; }, handleContentMouseDown: function(event) { this.shouldClose = false; }, handleContentMouseUp: function(event) { this.shouldClose = false; }, requestClose: function(event) { if (this.ownerHandlesClose()) this.props.onRequestClose(event); }, ownerHandlesClose: function() { return this.props.onRequestClose; }, shouldBeClosed: function() { return !this.props.isOpen && !this.state.beforeClose; }, contentHasFocus: function() { return document.activeElement === this.refs.content || this.refs.content.contains(document.activeElement); }, buildClassName: function(which, additional) { var className = CLASS_NAMES[which].base; if (this.state.afterOpen) className += ' '+CLASS_NAMES[which].afterOpen; if (this.state.beforeClose) className += ' '+CLASS_NAMES[which].beforeClose; return additional ? className + ' ' + additional : className; }, render: function() { var contentStyles = (this.props.className) ? {} : this.props.defaultStyles.content; var overlayStyles = (this.props.overlayClassName) ? {} : this.props.defaultStyles.overlay; return this.shouldBeClosed() ? div() : ( div({ ref: "overlay", className: this.buildClassName('overlay', this.props.overlayClassName), style: Assign({}, overlayStyles, this.props.style.overlay || {}), onMouseDown: this.handleOverlayMouseDown, onMouseUp: this.handleOverlayMouseUp }, div({ ref: "content", style: Assign({}, contentStyles, this.props.style.content || {}), className: this.buildClassName('content', this.props.className), tabIndex: "-1", onKeyDown: this.handleKeyDown, onMouseDown: this.handleContentMouseDown, onMouseUp: this.handleContentMouseUp, role: this.props.role, "aria-label": this.props.contentLabel }, this.props.children ) ) ); } }); /***/ }, /* 188 */ /***/ function(module, exports, __webpack_require__) { var findTabbable = __webpack_require__(189); var modalElement = null; var focusLaterElement = null; var needToFocus = false; function handleBlur(event) { needToFocus = true; } function handleFocus(event) { if (needToFocus) { needToFocus = false; if (!modalElement) { return; } // need to see how jQuery shims document.on('focusin') so we don't need the // setTimeout, firefox doesn't support focusin, if it did, we could focus // the element outside of a setTimeout. Side-effect of this implementation // is that the document.body gets focus, and then we focus our element right // after, seems fine. setTimeout(function() { if (modalElement.contains(document.activeElement)) return; var el = (findTabbable(modalElement)[0] || modalElement); el.focus(); }, 0); } } exports.markForFocusLater = function() { focusLaterElement = document.activeElement; }; exports.returnFocus = function() { try { focusLaterElement.focus(); } catch (e) { console.warn('You tried to return focus to '+focusLaterElement+' but it is not in the DOM anymore'); } focusLaterElement = null; }; exports.setupScopedFocus = function(element) { modalElement = element; if (window.addEventListener) { window.addEventListener('blur', handleBlur, false); document.addEventListener('focus', handleFocus, true); } else { window.attachEvent('onBlur', handleBlur); document.attachEvent('onFocus', handleFocus); } }; exports.teardownScopedFocus = function() { modalElement = null; if (window.addEventListener) { window.removeEventListener('blur', handleBlur); document.removeEventListener('focus', handleFocus); } else { window.detachEvent('onBlur', handleBlur); document.detachEvent('onFocus', handleFocus); } }; /***/ }, /* 189 */ /***/ function(module, exports) { /*! * Adapted from jQuery UI core * * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/category/ui-core/ */ function focusable(element, isTabIndexNotNaN) { var nodeName = element.nodeName.toLowerCase(); return (/input|select|textarea|button|object/.test(nodeName) ? !element.disabled : "a" === nodeName ? element.href || isTabIndexNotNaN : isTabIndexNotNaN) && visible(element); } function hidden(el) { return (el.offsetWidth <= 0 && el.offsetHeight <= 0) || el.style.display === 'none'; } function visible(element) { while (element) { if (element === document.body) break; if (hidden(element)) return false; element = element.parentNode; } return true; } function tabbable(element) { var tabIndex = element.getAttribute('tabindex'); if (tabIndex === null) tabIndex = undefined; var isTabIndexNaN = isNaN(tabIndex); return (isTabIndexNaN || tabIndex >= 0) && focusable(element, !isTabIndexNaN); } function findTabbableDescendants(element) { return [].slice.call(element.querySelectorAll('*'), 0).filter(function(el) { return tabbable(el); }); } module.exports = findTabbableDescendants; /***/ }, /* 190 */ /***/ function(module, exports, __webpack_require__) { var findTabbable = __webpack_require__(189); module.exports = function(node, event) { var tabbable = findTabbable(node); if (!tabbable.length) { event.preventDefault(); return; } var finalTabbable = tabbable[event.shiftKey ? 0 : tabbable.length - 1]; var leavingFinalTabbable = ( finalTabbable === document.activeElement || // handle immediate shift+tab after opening with mouse node === document.activeElement ); if (!leavingFinalTabbable) return; event.preventDefault(); var target = tabbable[event.shiftKey ? tabbable.length - 1 : 0]; target.focus(); }; /***/ }, /* 191 */ /***/ function(module, exports) { /** * lodash (Custom Build) <https://lodash.com/> * Build: `lodash modularize exports="npm" -o ./` * Copyright jQuery Foundation and other contributors <https://jquery.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** `Object#toString` result references. */ var argsTag = '[object Arguments]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]'; /** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\d*)$/; /** * A faster alternative to `Function#apply`, this function invokes `func` * with the `this` binding of `thisArg` and the arguments of `args`. * * @private * @param {Function} func The function to invoke. * @param {*} thisArg The `this` binding of `func`. * @param {Array} args The arguments to invoke `func` with. * @returns {*} Returns the result of `func`. */ function apply(func, thisArg, args) { switch (args.length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); case 2: return func.call(thisArg, args[0], args[1]); case 3: return func.call(thisArg, args[0], args[1], args[2]); } return func.apply(thisArg, args); } /** * The base implementation of `_.times` without support for iteratee shorthands * or max array length checks. * * @private * @param {number} n The number of times to invoke `iteratee`. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the array of results. */ function baseTimes(n, iteratee) { var index = -1, result = Array(n); while (++index < n) { result[index] = iteratee(index); } return result; } /** * Creates a unary function that invokes `func` with its argument transformed. * * @private * @param {Function} func The function to wrap. * @param {Function} transform The argument transform. * @returns {Function} Returns the new function. */ function overArg(func, transform) { return function(arg) { return func(transform(arg)); }; } /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var objectToString = objectProto.toString; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeKeys = overArg(Object.keys, Object), nativeMax = Math.max; /** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */ var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf'); /** * Creates an array of the enumerable property names of the array-like `value`. * * @private * @param {*} value The value to query. * @param {boolean} inherited Specify returning inherited property names. * @returns {Array} Returns the array of property names. */ function arrayLikeKeys(value, inherited) { // Safari 8.1 makes `arguments.callee` enumerable in strict mode. // Safari 9 makes `arguments.length` enumerable in strict mode. var result = (isArray(value) || isArguments(value)) ? baseTimes(value.length, String) : []; var length = result.length, skipIndexes = !!length; for (var key in value) { if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == 'length' || isIndex(key, length)))) { result.push(key); } } return result; } /** * Assigns `value` to `key` of `object` if the existing value is not equivalent * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignValue(object, key, value) { var objValue = object[key]; if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { object[key] = value; } } /** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { if (!isPrototype(object)) { return nativeKeys(object); } var result = []; for (var key in Object(object)) { if (hasOwnProperty.call(object, key) && key != 'constructor') { result.push(key); } } return result; } /** * The base implementation of `_.rest` which doesn't validate or coerce arguments. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @returns {Function} Returns the new function. */ function baseRest(func, start) { start = nativeMax(start === undefined ? (func.length - 1) : start, 0); return function() { var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); while (++index < length) { array[index] = args[start + index]; } index = -1; var otherArgs = Array(start + 1); while (++index < start) { otherArgs[index] = args[index]; } otherArgs[start] = array; return apply(func, this, otherArgs); }; } /** * Copies properties of `source` to `object`. * * @private * @param {Object} source The object to copy properties from. * @param {Array} props The property identifiers to copy. * @param {Object} [object={}] The object to copy properties to. * @param {Function} [customizer] The function to customize copied values. * @returns {Object} Returns `object`. */ function copyObject(source, props, object, customizer) { object || (object = {}); var index = -1, length = props.length; while (++index < length) { var key = props[index]; var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined; assignValue(object, key, newValue === undefined ? source[key] : newValue); } return object; } /** * Creates a function like `_.assign`. * * @private * @param {Function} assigner The function to assign values. * @returns {Function} Returns the new assigner function. */ function createAssigner(assigner) { return baseRest(function(object, sources) { var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined, guard = length > 2 ? sources[2] : undefined; customizer = (assigner.length > 3 && typeof customizer == 'function') ? (length--, customizer) : undefined; if (guard && isIterateeCall(sources[0], sources[1], guard)) { customizer = length < 3 ? undefined : customizer; length = 1; } object = Object(object); while (++index < length) { var source = sources[index]; if (source) { assigner(object, source, index, customizer); } } return object; }); } /** * Checks if `value` is a valid array-like index. * * @private * @param {*} value The value to check. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ function isIndex(value, length) { length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (typeof value == 'number' || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); } /** * Checks if the given arguments are from an iteratee call. * * @private * @param {*} value The potential iteratee value argument. * @param {*} index The potential iteratee index or key argument. * @param {*} object The potential iteratee object argument. * @returns {boolean} Returns `true` if the arguments are from an iteratee call, * else `false`. */ function isIterateeCall(value, index, object) { if (!isObject(object)) { return false; } var type = typeof index; if (type == 'number' ? (isArrayLike(object) && isIndex(index, object.length)) : (type == 'string' && index in object) ) { return eq(object[index], value); } return false; } /** * Checks if `value` is likely a prototype object. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. */ function isPrototype(value) { var Ctor = value && value.constructor, proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; return value === proto; } /** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.eq(object, object); * // => true * * _.eq(object, other); * // => false * * _.eq('a', 'a'); * // => true * * _.eq('a', Object('a')); * // => false * * _.eq(NaN, NaN); * // => true */ function eq(value, other) { return value === other || (value !== value && other !== other); } /** * Checks if `value` is likely an `arguments` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * * _.isArguments(function() { return arguments; }()); * // => true * * _.isArguments([1, 2, 3]); * // => false */ function isArguments(value) { // Safari 8.1 makes `arguments.callee` enumerable in strict mode. return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag); } /** * Checks if `value` is classified as an `Array` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); * // => true * * _.isArray(document.body.children); * // => false * * _.isArray('abc'); * // => false * * _.isArray(_.noop); * // => false */ var isArray = Array.isArray; /** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * * _.isArrayLike([1, 2, 3]); * // => true * * _.isArrayLike(document.body.children); * // => true * * _.isArrayLike('abc'); * // => true * * _.isArrayLike(_.noop); * // => false */ function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } /** * This method is like `_.isArrayLike` except that it also checks if `value` * is an object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array-like object, * else `false`. * @example * * _.isArrayLikeObject([1, 2, 3]); * // => true * * _.isArrayLikeObject(document.body.children); * // => true * * _.isArrayLikeObject('abc'); * // => false * * _.isArrayLikeObject(_.noop); * // => false */ function isArrayLikeObject(value) { return isObjectLike(value) && isArrayLike(value); } /** * Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); * // => true * * _.isFunction(/abc/); * // => false */ function isFunction(value) { // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 8-9 which returns 'object' for typed array and other constructors. var tag = isObject(value) ? objectToString.call(value) : ''; return tag == funcTag || tag == genTag; } /** * Checks if `value` is a valid array-like length. * * **Note:** This method is loosely based on * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. * @example * * _.isLength(3); * // => true * * _.isLength(Number.MIN_VALUE); * // => false * * _.isLength(Infinity); * // => false * * _.isLength('3'); * // => false */ function isLength(value) { return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } /** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return !!value && (type == 'object' || type == 'function'); } /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return !!value && typeof value == 'object'; } /** * Assigns own enumerable string keyed properties of source objects to the * destination object. Source objects are applied from left to right. * Subsequent sources overwrite property assignments of previous sources. * * **Note:** This method mutates `object` and is loosely based on * [`Object.assign`](https://mdn.io/Object/assign). * * @static * @memberOf _ * @since 0.10.0 * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. * @see _.assignIn * @example * * function Foo() { * this.a = 1; * } * * function Bar() { * this.c = 3; * } * * Foo.prototype.b = 2; * Bar.prototype.d = 4; * * _.assign({ 'a': 0 }, new Foo, new Bar); * // => { 'a': 1, 'c': 3 } */ var assign = createAssigner(function(object, source) { if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) { copyObject(source, keys(source), object); return; } for (var key in source) { if (hasOwnProperty.call(source, key)) { assignValue(object, key, source[key]); } } }); /** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * for more details. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keys(new Foo); * // => ['a', 'b'] (iteration order is not guaranteed) * * _.keys('hi'); * // => ['0', '1'] */ function keys(object) { return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); } module.exports = assign; /***/ }, /* 192 */ /***/ function(module, exports) { var _element = typeof document !== 'undefined' ? document.body : null; function setElement(element) { if (typeof element === 'string') { var el = document.querySelectorAll(element); element = 'length' in el ? el[0] : el; } _element = element || _element; return _element; } function hide(appElement) { validateElement(appElement); (appElement || _element).setAttribute('aria-hidden', 'true'); } function show(appElement) { validateElement(appElement); (appElement || _element).removeAttribute('aria-hidden'); } function toggle(shouldHide, appElement) { if (shouldHide) hide(appElement); else show(appElement); } function validateElement(appElement) { if (!appElement && !_element) throw new Error('react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible'); } function resetForTesting() { _element = document.body; } exports.toggle = toggle; exports.setElement = setElement; exports.show = show; exports.hide = hide; exports.resetForTesting = resetForTesting; /***/ }, /* 193 */ /***/ function(module, exports) { module.exports = function(opts) { return new ElementClass(opts) } function indexOf(arr, prop) { if (arr.indexOf) return arr.indexOf(prop) for (var i = 0, len = arr.length; i < len; i++) if (arr[i] === prop) return i return -1 } function ElementClass(opts) { if (!(this instanceof ElementClass)) return new ElementClass(opts) var self = this if (!opts) opts = {} // similar doing instanceof HTMLElement but works in IE8 if (opts.nodeType) opts = {el: opts} this.opts = opts this.el = opts.el || document.body if (typeof this.el !== 'object') this.el = document.querySelector(this.el) } ElementClass.prototype.add = function(className) { var el = this.el if (!el) return if (el.className === "") return el.className = className var classes = el.className.split(' ') if (indexOf(classes, className) > -1) return classes classes.push(className) el.className = classes.join(' ') return classes } ElementClass.prototype.remove = function(className) { var el = this.el if (!el) return if (el.className === "") return var classes = el.className.split(' ') var idx = indexOf(classes, className) if (idx > -1) classes.splice(idx, 1) el.className = classes.join(' ') return classes } ElementClass.prototype.has = function(className) { var el = this.el if (!el) return var classes = el.className.split(' ') return indexOf(classes, className) > -1 } ElementClass.prototype.toggle = function(className) { var el = this.el if (!el) return if (this.has(className)) this.remove(className) else this.add(className) } /***/ }, /* 194 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _InsertModalHeader = __webpack_require__(195); var _InsertModalHeader2 = _interopRequireDefault(_InsertModalHeader); var _InsertModalFooter = __webpack_require__(196); var _InsertModalFooter2 = _interopRequireDefault(_InsertModalFooter); var _InsertModalBody = __webpack_require__(197); var _InsertModalBody2 = _interopRequireDefault(_InsertModalBody); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint no-console: 0 */ var defaultModalClassName = 'react-bs-table-insert-modal'; var InsertModal = function (_Component) { _inherits(InsertModal, _Component); function InsertModal() { var _ref; var _temp, _this, _ret; _classCallCheck(this, InsertModal); for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = InsertModal.__proto__ || Object.getPrototypeOf(InsertModal)).call.apply(_ref, [this].concat(args))), _this), _this.handleSave = function () { var _this2; return (_this2 = _this).__handleSave__REACT_HOT_LOADER__.apply(_this2, arguments); }, _temp), _possibleConstructorReturn(_this, _ret); } _createClass(InsertModal, [{ key: '__handleSave__REACT_HOT_LOADER__', value: function __handleSave__REACT_HOT_LOADER__() { var bodyRefs = this.refs.body; if (bodyRefs.getFieldValue) { this.props.onSave(bodyRefs.getFieldValue()); } else { console.error('Custom InsertModalBody should implement getFieldValue function\n and should return an object presented as the new row that user input.'); } } }, { key: 'render', value: function render() { var _props = this.props, headerComponent = _props.headerComponent, footerComponent = _props.footerComponent, bodyComponent = _props.bodyComponent; var _props2 = this.props, columns = _props2.columns, validateState = _props2.validateState, ignoreEditable = _props2.ignoreEditable, onModalClose = _props2.onModalClose; var bodyAttr = { columns: columns, validateState: validateState, ignoreEditable: ignoreEditable }; bodyComponent = bodyComponent && bodyComponent(columns, validateState, ignoreEditable); headerComponent = headerComponent && headerComponent(onModalClose, this.handleSave); footerComponent = footerComponent && footerComponent(onModalClose, this.handleSave); if (bodyComponent) { bodyComponent = _react2.default.cloneElement(bodyComponent, { ref: 'body' }); } if (headerComponent && headerComponent.type.name === _InsertModalHeader2.default.name) { var eventProps = {}; if (!headerComponent.props.onModalClose) eventProps.onModalClose = onModalClose; if (!headerComponent.props.onSave) eventProps.onSave = this.handleSave; if (Object.keys(eventProps).length > 0) { headerComponent = _react2.default.cloneElement(headerComponent, eventProps); } } else if (headerComponent && headerComponent.type.name !== _InsertModalHeader2.default.name) { var className = headerComponent.props.className; if (typeof className === 'undefined' || className.indexOf('modal-header') === -1) { headerComponent = _react2.default.createElement( 'div', { className: 'modal-header' }, headerComponent ); } } if (footerComponent && footerComponent.type.name === _InsertModalFooter2.default.name) { var _eventProps = {}; if (!footerComponent.props.onModalClose) _eventProps.onModalClose = onModalClose; if (!footerComponent.props.onSave) _eventProps.onSave = this.handleSave; if (Object.keys(_eventProps).length > 0) { footerComponent = _react2.default.cloneElement(footerComponent, _eventProps); } } else if (footerComponent && footerComponent.type.name !== _InsertModalFooter2.default.name) { var _className = footerComponent.props.className; if (typeof _className === 'undefined' || _className.indexOf('modal-footer') === -1) { footerComponent = _react2.default.createElement( 'div', { className: 'modal-footer' }, footerComponent ); } } return _react2.default.createElement( 'div', { className: 'modal-content ' + defaultModalClassName }, headerComponent || _react2.default.createElement(_InsertModalHeader2.default, { className: 'react-bs-table-inser-modal-header', onModalClose: onModalClose }), bodyComponent || _react2.default.createElement(_InsertModalBody2.default, _extends({ ref: 'body' }, bodyAttr)), footerComponent || _react2.default.createElement(_InsertModalFooter2.default, { className: 'react-bs-table-inser-modal-footer', onModalClose: onModalClose, onSave: this.handleSave }) ); } }]); return InsertModal; }(_react.Component); var _default = InsertModal; exports.default = _default; InsertModal.propTypes = { columns: _react.PropTypes.array.isRequired, validateState: _react.PropTypes.object.isRequired, ignoreEditable: _react.PropTypes.bool, headerComponent: _react.PropTypes.func, bodyComponent: _react.PropTypes.func, footerComponent: _react.PropTypes.func, onModalClose: _react.PropTypes.func, onSave: _react.PropTypes.func }; InsertModal.defaultProps = {}; ; var _temp2 = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(defaultModalClassName, 'defaultModalClassName', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModal.js'); __REACT_HOT_LOADER__.register(InsertModal, 'InsertModal', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModal.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModal.js'); }(); ; /***/ }, /* 195 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var InsertModalHeader = function (_Component) { _inherits(InsertModalHeader, _Component); function InsertModalHeader() { var _ref; var _temp, _this, _ret; _classCallCheck(this, InsertModalHeader); for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = InsertModalHeader.__proto__ || Object.getPrototypeOf(InsertModalHeader)).call.apply(_ref, [this].concat(args))), _this), _this.handleCloseBtnClick = function () { var _this2; return (_this2 = _this).__handleCloseBtnClick__REACT_HOT_LOADER__.apply(_this2, arguments); }, _temp), _possibleConstructorReturn(_this, _ret); } _createClass(InsertModalHeader, [{ key: '__handleCloseBtnClick__REACT_HOT_LOADER__', value: function __handleCloseBtnClick__REACT_HOT_LOADER__(e) { var _props = this.props, onModalClose = _props.onModalClose, beforeClose = _props.beforeClose; beforeClose && beforeClose(e); onModalClose(); } }, { key: 'render', value: function render() { var _props2 = this.props, title = _props2.title, hideClose = _props2.hideClose, className = _props2.className, children = _props2.children; var closeBtn = hideClose ? null : _react2.default.createElement( 'button', { type: 'button', className: 'close', onClick: this.handleCloseBtnClick }, _react2.default.createElement( 'span', { 'aria-hidden': 'true' }, '\xD7' ), _react2.default.createElement( 'span', { className: 'sr-only' }, 'Close' ) ); var content = children || _react2.default.createElement( 'span', null, closeBtn, _react2.default.createElement( 'h4', { className: 'modal-title' }, title ) ); return _react2.default.createElement( 'div', { className: 'modal-header ' + className }, content ); } }]); return InsertModalHeader; }(_react.Component); InsertModalHeader.propTypes = { className: _react.PropTypes.string, title: _react.PropTypes.string, onModalClose: _react.PropTypes.func, hideClose: _react.PropTypes.bool, beforeClose: _react.PropTypes.func }; InsertModalHeader.defaultProps = { className: '', title: 'Add Row', onModalClose: undefined, hideClose: false, beforeClose: undefined }; var _default = InsertModalHeader; exports.default = _default; ; var _temp2 = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(InsertModalHeader, 'InsertModalHeader', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModalHeader.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModalHeader.js'); }(); ; /***/ }, /* 196 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var InsertModalFooter = function (_Component) { _inherits(InsertModalFooter, _Component); function InsertModalFooter() { var _ref; var _temp, _this, _ret; _classCallCheck(this, InsertModalFooter); for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = InsertModalFooter.__proto__ || Object.getPrototypeOf(InsertModalFooter)).call.apply(_ref, [this].concat(args))), _this), _this.handleCloseBtnClick = function () { var _this2; return (_this2 = _this).__handleCloseBtnClick__REACT_HOT_LOADER__.apply(_this2, arguments); }, _this.handleSaveBtnClick = function () { var _this3; return (_this3 = _this).__handleSaveBtnClick__REACT_HOT_LOADER__.apply(_this3, arguments); }, _temp), _possibleConstructorReturn(_this, _ret); } _createClass(InsertModalFooter, [{ key: '__handleCloseBtnClick__REACT_HOT_LOADER__', value: function __handleCloseBtnClick__REACT_HOT_LOADER__(e) { var _props = this.props, beforeClose = _props.beforeClose, onModalClose = _props.onModalClose; beforeClose && beforeClose(e); onModalClose(); } }, { key: '__handleSaveBtnClick__REACT_HOT_LOADER__', value: function __handleSaveBtnClick__REACT_HOT_LOADER__(e) { var _props2 = this.props, beforeSave = _props2.beforeSave, onSave = _props2.onSave; beforeSave && beforeSave(e); onSave(); } }, { key: 'render', value: function render() { var _props3 = this.props, className = _props3.className, saveBtnText = _props3.saveBtnText, closeBtnText = _props3.closeBtnText, closeBtnContextual = _props3.closeBtnContextual, saveBtnContextual = _props3.saveBtnContextual, closeBtnClass = _props3.closeBtnClass, saveBtnClass = _props3.saveBtnClass, children = _props3.children; var content = children || _react2.default.createElement( 'span', null, _react2.default.createElement( 'button', { type: 'button', className: 'btn ' + closeBtnContextual + ' ' + closeBtnClass, onClick: this.handleCloseBtnClick }, closeBtnText ), _react2.default.createElement( 'button', { type: 'button', className: 'btn ' + saveBtnContextual + ' ' + saveBtnClass, onClick: this.handleSaveBtnClick }, saveBtnText ) ); return _react2.default.createElement( 'div', { className: 'modal-footer ' + className }, content ); } }]); return InsertModalFooter; }(_react.Component); InsertModalFooter.propTypes = { className: _react.PropTypes.string, saveBtnText: _react.PropTypes.string, closeBtnText: _react.PropTypes.string, closeBtnContextual: _react.PropTypes.string, saveBtnContextual: _react.PropTypes.string, closeBtnClass: _react.PropTypes.string, saveBtnClass: _react.PropTypes.string, beforeClose: _react.PropTypes.func, beforeSave: _react.PropTypes.func, onSave: _react.PropTypes.func, onModalClose: _react.PropTypes.func }; InsertModalFooter.defaultProps = { className: '', saveBtnText: _Const2.default.SAVE_BTN_TEXT, closeBtnText: _Const2.default.CLOSE_BTN_TEXT, closeBtnContextual: 'btn-default', saveBtnContextual: 'btn-primary', closeBtnClass: '', saveBtnClass: '', beforeClose: undefined, beforeSave: undefined }; var _default = InsertModalFooter; exports.default = _default; ; var _temp2 = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(InsertModalFooter, 'InsertModalFooter', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModalFooter.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModalFooter.js'); }(); ; /***/ }, /* 197 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _Editor = __webpack_require__(13); var _Editor2 = _interopRequireDefault(_Editor); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint react/display-name: 0 */ var InsertModalBody = function (_Component) { _inherits(InsertModalBody, _Component); function InsertModalBody() { _classCallCheck(this, InsertModalBody); return _possibleConstructorReturn(this, (InsertModalBody.__proto__ || Object.getPrototypeOf(InsertModalBody)).apply(this, arguments)); } _createClass(InsertModalBody, [{ key: 'getFieldValue', value: function getFieldValue() { var _this2 = this; var newRow = {}; this.props.columns.forEach(function (column, i) { var inputVal = void 0; if (column.autoValue) { // when you want same auto generate value and not allow edit, example ID field var time = new Date().getTime(); inputVal = typeof column.autoValue === 'function' ? column.autoValue() : 'autovalue-' + time; } else if (column.hiddenOnInsert || !column.field) { inputVal = ''; } else { var dom = _this2.refs[column.field + i]; inputVal = dom.value; if (column.editable && column.editable.type === 'checkbox') { var values = inputVal.split(':'); inputVal = dom.checked ? values[0] : values[1]; } else if (column.customInsertEditor) { inputVal = inputVal || dom.getFieldValue(); } } newRow[column.field] = inputVal; }, this); return newRow; } }, { key: 'render', value: function render() { var _props = this.props, columns = _props.columns, validateState = _props.validateState, ignoreEditable = _props.ignoreEditable; return _react2.default.createElement( 'div', { className: 'modal-body' }, columns.map(function (column, i) { var editable = column.editable, format = column.format, field = column.field, name = column.name, autoValue = column.autoValue, hiddenOnInsert = column.hiddenOnInsert, customInsertEditor = column.customInsertEditor; var attr = { ref: field + i, placeholder: editable.placeholder ? editable.placeholder : name }; var fieldElement = void 0; var defaultValue = editable.defaultValue || undefined; if (customInsertEditor) { var getElement = customInsertEditor.getElement; fieldElement = getElement(column, attr, 'form-control', ignoreEditable, defaultValue); } else { fieldElement = (0, _Editor2.default)(editable, attr, format, '', defaultValue, ignoreEditable); } if (autoValue || hiddenOnInsert || !column.field) { // when you want same auto generate value // and not allow edit, for example ID field return null; } var error = validateState[field] ? _react2.default.createElement( 'span', { className: 'help-block bg-danger' }, validateState[field] ) : null; return _react2.default.createElement( 'div', { className: 'form-group', key: field }, _react2.default.createElement( 'label', null, name ), fieldElement, error ); }) ); } }]); return InsertModalBody; }(_react.Component); InsertModalBody.propTypes = { columns: _react.PropTypes.array, validateState: _react.PropTypes.object, ignoreEditable: _react.PropTypes.bool }; InsertModalBody.defaultProps = { validateState: {}, ignoreEditable: false }; var _default = InsertModalBody; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(InsertModalBody, 'InsertModalBody', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModalBody.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertModalBody.js'); }(); ; /***/ }, /* 198 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var insertBtnDefaultClass = 'react-bs-table-add-btn'; var InsertButton = function (_Component) { _inherits(InsertButton, _Component); function InsertButton() { _classCallCheck(this, InsertButton); return _possibleConstructorReturn(this, (InsertButton.__proto__ || Object.getPrototypeOf(InsertButton)).apply(this, arguments)); } _createClass(InsertButton, [{ key: 'render', value: function render() { var _props = this.props, btnContextual = _props.btnContextual, className = _props.className, onClick = _props.onClick, btnGlyphicon = _props.btnGlyphicon, btnText = _props.btnText, children = _props.children, rest = _objectWithoutProperties(_props, ['btnContextual', 'className', 'onClick', 'btnGlyphicon', 'btnText', 'children']); var content = children || _react2.default.createElement( 'span', null, _react2.default.createElement('i', { className: 'glyphicon ' + btnGlyphicon }), btnText ); return _react2.default.createElement( 'button', _extends({ type: 'button', className: 'btn ' + btnContextual + ' ' + insertBtnDefaultClass + ' ' + className, onClick: onClick }, rest), content ); } }]); return InsertButton; }(_react.Component); InsertButton.propTypes = { btnText: _react.PropTypes.string, btnContextual: _react.PropTypes.string, className: _react.PropTypes.string, onClick: _react.PropTypes.func, btnGlyphicon: _react.PropTypes.string }; InsertButton.defaultProps = { btnText: _Const2.default.INSERT_BTN_TEXT, btnContextual: 'btn-info', className: '', onClick: undefined, btnGlyphicon: 'glyphicon-plus' }; var _default = InsertButton; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(insertBtnDefaultClass, 'insertBtnDefaultClass', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertButton.js'); __REACT_HOT_LOADER__.register(InsertButton, 'InsertButton', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertButton.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/InsertButton.js'); }(); ; /***/ }, /* 199 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var deleteBtnDefaultClass = 'react-bs-table-del-btn'; var DeleteButton = function (_Component) { _inherits(DeleteButton, _Component); function DeleteButton() { _classCallCheck(this, DeleteButton); return _possibleConstructorReturn(this, (DeleteButton.__proto__ || Object.getPrototypeOf(DeleteButton)).apply(this, arguments)); } _createClass(DeleteButton, [{ key: 'render', value: function render() { var _props = this.props, btnContextual = _props.btnContextual, className = _props.className, onClick = _props.onClick, btnGlyphicon = _props.btnGlyphicon, btnText = _props.btnText, children = _props.children, rest = _objectWithoutProperties(_props, ['btnContextual', 'className', 'onClick', 'btnGlyphicon', 'btnText', 'children']); var content = children || _react2.default.createElement( 'span', null, _react2.default.createElement('i', { className: 'glyphicon ' + btnGlyphicon }), ' ', btnText ); return _react2.default.createElement( 'button', _extends({ type: 'button', className: 'btn ' + btnContextual + ' ' + deleteBtnDefaultClass + ' ' + className, onClick: onClick }, rest), content ); } }]); return DeleteButton; }(_react.Component); DeleteButton.propTypes = { btnText: _react.PropTypes.string, btnContextual: _react.PropTypes.string, className: _react.PropTypes.string, onClick: _react.PropTypes.func, btnGlyphicon: _react.PropTypes.string }; DeleteButton.defaultProps = { btnText: _Const2.default.DELETE_BTN_TEXT, btnContextual: 'btn-warning', className: '', onClick: undefined, btnGlyphicon: 'glyphicon-trash' }; var _default = DeleteButton; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(deleteBtnDefaultClass, 'deleteBtnDefaultClass', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/DeleteButton.js'); __REACT_HOT_LOADER__.register(DeleteButton, 'DeleteButton', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/DeleteButton.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/DeleteButton.js'); }(); ; /***/ }, /* 200 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var exportCsvBtnDefaultClass = 'react-bs-table-csv-btn'; var ExportCSVButton = function (_Component) { _inherits(ExportCSVButton, _Component); function ExportCSVButton() { _classCallCheck(this, ExportCSVButton); return _possibleConstructorReturn(this, (ExportCSVButton.__proto__ || Object.getPrototypeOf(ExportCSVButton)).apply(this, arguments)); } _createClass(ExportCSVButton, [{ key: 'render', value: function render() { var _props = this.props, btnContextual = _props.btnContextual, className = _props.className, onClick = _props.onClick, btnGlyphicon = _props.btnGlyphicon, btnText = _props.btnText, children = _props.children, rest = _objectWithoutProperties(_props, ['btnContextual', 'className', 'onClick', 'btnGlyphicon', 'btnText', 'children']); var content = children || _react2.default.createElement( 'span', null, _react2.default.createElement('i', { className: 'glyphicon ' + btnGlyphicon }), ' ', btnText ); return _react2.default.createElement( 'button', _extends({ type: 'button', className: 'btn ' + btnContextual + ' ' + exportCsvBtnDefaultClass + ' ' + className + ' hidden-print', onClick: onClick }, rest), content ); } }]); return ExportCSVButton; }(_react.Component); ExportCSVButton.propTypes = { btnText: _react.PropTypes.string, btnContextual: _react.PropTypes.string, className: _react.PropTypes.string, onClick: _react.PropTypes.func, btnGlyphicon: _react.PropTypes.string }; ExportCSVButton.defaultProps = { btnText: _Const2.default.EXPORT_CSV_TEXT, btnContextual: 'btn-success', className: '', onClick: undefined, btnGlyphicon: 'glyphicon-export' }; var _default = ExportCSVButton; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(exportCsvBtnDefaultClass, 'exportCsvBtnDefaultClass', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ExportCSVButton.js'); __REACT_HOT_LOADER__.register(ExportCSVButton, 'ExportCSVButton', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ExportCSVButton.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ExportCSVButton.js'); }(); ; /***/ }, /* 201 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var showSelectedOnlyBtnDefaultClass = 'react-bs-table-show-sel-only-btn'; var ShowSelectedOnlyButton = function (_Component) { _inherits(ShowSelectedOnlyButton, _Component); function ShowSelectedOnlyButton() { _classCallCheck(this, ShowSelectedOnlyButton); return _possibleConstructorReturn(this, (ShowSelectedOnlyButton.__proto__ || Object.getPrototypeOf(ShowSelectedOnlyButton)).apply(this, arguments)); } _createClass(ShowSelectedOnlyButton, [{ key: 'render', value: function render() { var _props = this.props, btnContextual = _props.btnContextual, className = _props.className, onClick = _props.onClick, toggle = _props.toggle, showAllText = _props.showAllText, showOnlySelectText = _props.showOnlySelectText, children = _props.children, rest = _objectWithoutProperties(_props, ['btnContextual', 'className', 'onClick', 'toggle', 'showAllText', 'showOnlySelectText', 'children']); var content = children || _react2.default.createElement( 'span', null, toggle ? showOnlySelectText : showAllText ); return _react2.default.createElement( 'button', _extends({ type: 'button', 'aria-pressed': 'false', 'data-toggle': 'button', className: 'btn ' + btnContextual + ' ' + showSelectedOnlyBtnDefaultClass + ' ' + className, onClick: onClick }, rest), content ); } }]); return ShowSelectedOnlyButton; }(_react.Component); ShowSelectedOnlyButton.propTypes = { showAllText: _react.PropTypes.string, showOnlySelectText: _react.PropTypes.string, toggle: _react.PropTypes.bool, btnContextual: _react.PropTypes.string, className: _react.PropTypes.string, onClick: _react.PropTypes.func }; ShowSelectedOnlyButton.defaultProps = { showAllText: _Const2.default.SHOW_ALL, showOnlySelectText: _Const2.default.SHOW_ONLY_SELECT, toggle: false, btnContextual: 'btn-primary', className: '', onClick: undefined }; var _default = ShowSelectedOnlyButton; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(showSelectedOnlyBtnDefaultClass, 'showSelectedOnlyBtnDefaultClass', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ShowSelectedOnlyButton.js'); __REACT_HOT_LOADER__.register(ShowSelectedOnlyButton, 'ShowSelectedOnlyButton', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ShowSelectedOnlyButton.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ShowSelectedOnlyButton.js'); }(); ; /***/ }, /* 202 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _reactDom = __webpack_require__(6); var _reactDom2 = _interopRequireDefault(_reactDom); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var SearchField = function (_Component) { _inherits(SearchField, _Component); function SearchField() { _classCallCheck(this, SearchField); return _possibleConstructorReturn(this, (SearchField.__proto__ || Object.getPrototypeOf(SearchField)).apply(this, arguments)); } _createClass(SearchField, [{ key: 'getValue', value: function getValue() { return _reactDom2.default.findDOMNode(this).value; } }, { key: 'setValue', value: function setValue(value) { _reactDom2.default.findDOMNode(this).value = value; } }, { key: 'render', value: function render() { var _props = this.props, className = _props.className, defaultValue = _props.defaultValue, placeholder = _props.placeholder, onKeyUp = _props.onKeyUp, rest = _objectWithoutProperties(_props, ['className', 'defaultValue', 'placeholder', 'onKeyUp']); return _react2.default.createElement('input', _extends({ className: 'form-control ' + className, type: 'text', defaultValue: defaultValue, placeholder: placeholder || SearchField.defaultProps.placeholder, onKeyUp: onKeyUp, style: { zIndex: 0 } }, rest)); } }]); return SearchField; }(_react.Component); SearchField.propTypes = { className: _react.PropTypes.string, defaultValue: _react.PropTypes.string, placeholder: _react.PropTypes.string, onKeyUp: _react.PropTypes.func }; SearchField.defaultProps = { className: '', defaultValue: '', placeholder: 'Search', onKeyUp: undefined }; var _default = SearchField; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(SearchField, 'SearchField', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/SearchField.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/SearchField.js'); }(); ; /***/ }, /* 203 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var clearBtnDefaultClass = 'react-bs-table-search-clear-btn'; var ClearSearchButton = function (_Component) { _inherits(ClearSearchButton, _Component); function ClearSearchButton() { _classCallCheck(this, ClearSearchButton); return _possibleConstructorReturn(this, (ClearSearchButton.__proto__ || Object.getPrototypeOf(ClearSearchButton)).apply(this, arguments)); } _createClass(ClearSearchButton, [{ key: 'render', value: function render() { var _props = this.props, btnContextual = _props.btnContextual, className = _props.className, onClick = _props.onClick, btnText = _props.btnText, children = _props.children, rest = _objectWithoutProperties(_props, ['btnContextual', 'className', 'onClick', 'btnText', 'children']); var content = children || _react2.default.createElement( 'span', null, btnText ); return _react2.default.createElement( 'button', _extends({ ref: 'btn', className: 'btn ' + btnContextual + ' ' + className + ' ' + clearBtnDefaultClass, type: 'button', onClick: onClick }, rest), content ); } }]); return ClearSearchButton; }(_react.Component); ClearSearchButton.propTypes = { btnContextual: _react.PropTypes.string, className: _react.PropTypes.string, btnText: _react.PropTypes.string, onClick: _react.PropTypes.func }; ClearSearchButton.defaultProps = { btnContextual: 'btn-default', className: '', btnText: 'Clear', onClick: undefined }; var _default = ClearSearchButton; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(clearBtnDefaultClass, 'clearBtnDefaultClass', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ClearSearchButton.js'); __REACT_HOT_LOADER__.register(ClearSearchButton, 'ClearSearchButton', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ClearSearchButton.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ClearSearchButton.js'); }(); ; /***/ }, /* 204 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var TableFilter = function (_Component) { _inherits(TableFilter, _Component); function TableFilter(props) { _classCallCheck(this, TableFilter); var _this = _possibleConstructorReturn(this, (TableFilter.__proto__ || Object.getPrototypeOf(TableFilter)).call(this, props)); _this.handleKeyUp = function () { return _this.__handleKeyUp__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.filterObj = {}; return _this; } _createClass(TableFilter, [{ key: '__handleKeyUp__REACT_HOT_LOADER__', value: function __handleKeyUp__REACT_HOT_LOADER__(e) { var _e$currentTarget = e.currentTarget, value = _e$currentTarget.value, name = _e$currentTarget.name; if (value.trim() === '') { delete this.filterObj[name]; } else { this.filterObj[name] = value; } this.props.onFilter(this.filterObj); } }, { key: 'render', value: function render() { var _props = this.props, striped = _props.striped, condensed = _props.condensed, rowSelectType = _props.rowSelectType, columns = _props.columns; var tableClasses = (0, _classnames2.default)('table', { 'table-striped': striped, 'table-condensed': condensed }); var selectRowHeader = null; if (rowSelectType === _Const2.default.ROW_SELECT_SINGLE || rowSelectType === _Const2.default.ROW_SELECT_MULTI) { var style = { width: 35, paddingLeft: 0, paddingRight: 0 }; selectRowHeader = _react2.default.createElement( 'th', { style: style, key: -1 }, 'Filter' ); } var filterField = columns.map(function (column) { var hidden = column.hidden, width = column.width, name = column.name; var thStyle = { display: hidden ? 'none' : null, width: width }; return _react2.default.createElement( 'th', { key: name, style: thStyle }, _react2.default.createElement( 'div', { className: 'th-inner table-header-column' }, _react2.default.createElement('input', { size: '10', type: 'text', placeholder: name, name: name, onKeyUp: this.handleKeyUp }) ) ); }, this); return _react2.default.createElement( 'table', { className: tableClasses, style: { marginTop: 5 } }, _react2.default.createElement( 'thead', null, _react2.default.createElement( 'tr', { style: { borderBottomStyle: 'hidden' } }, selectRowHeader, filterField ) ) ); } }]); return TableFilter; }(_react.Component); TableFilter.propTypes = { columns: _react.PropTypes.array, rowSelectType: _react.PropTypes.string, onFilter: _react.PropTypes.func }; var _default = TableFilter; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(TableFilter, 'TableFilter', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableFilter.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableFilter.js'); }(); ; /***/ }, /* 205 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.TableDataStore = undefined; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /* eslint no-nested-ternary: 0 */ /* eslint guard-for-in: 0 */ /* eslint no-console: 0 */ /* eslint eqeqeq: 0 */ /* eslint one-var: 0 */ var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var TableDataStore = function () { function TableDataStore(data) { var _this = this; _classCallCheck(this, TableDataStore); this.isValidKey = function () { return _this.__isValidKey__REACT_HOT_LOADER__.apply(_this, arguments); }; this.data = data; this.filteredData = null; this.isOnFilter = false; this.filterObj = null; this.searchText = null; this.sortList = []; this.pageObj = {}; this.selected = []; this.showOnlySelected = false; } _createClass(TableDataStore, [{ key: 'setProps', value: function setProps(props) { this.keyField = props.keyField; this.enablePagination = props.isPagination; this.colInfos = props.colInfos; this.remote = props.remote; this.multiColumnSearch = props.multiColumnSearch; // default behaviour if strictSearch prop is not provided: !multiColumnSearch this.strictSearch = typeof props.strictSearch === 'undefined' ? !props.multiColumnSearch : props.strictSearch; this.multiColumnSort = props.multiColumnSort; } }, { key: 'clean', value: function clean() { this.filteredData = null; this.isOnFilter = false; this.filterObj = null; this.searchText = null; this.sortList = []; this.pageObj = {}; this.selected = []; } }, { key: 'isSearching', value: function isSearching() { return this.searchText !== null; } }, { key: 'isFiltering', value: function isFiltering() { return this.filterObj !== null; } }, { key: 'setData', value: function setData(data) { this.data = data; if (this.remote) { return; } this._refresh(true); } }, { key: 'getColInfos', value: function getColInfos() { return this.colInfos; } }, { key: 'getSortInfo', value: function getSortInfo() { return this.sortList; } }, { key: 'setSortInfo', value: function setSortInfo(order, sortField) { if ((typeof order === 'undefined' ? 'undefined' : _typeof(order)) !== (typeof sortField === 'undefined' ? 'undefined' : _typeof(sortField))) { throw new Error('The type of sort field and order should be both with String or Array'); } if (Array.isArray(order) && Array.isArray(sortField)) { if (order.length !== sortField.length) { throw new Error('The length of sort fields and orders should be equivalent'); } order = order.slice().reverse(); this.sortList = sortField.slice().reverse().map(function (field, i) { return { order: order[i], sortField: field }; }); this.sortList = this.sortList.slice(0, this.multiColumnSort); } else { var sortObj = { order: order, sortField: sortField }; if (this.multiColumnSort > 1) { var i = this.sortList.length - 1; var sortFieldInHistory = false; for (; i >= 0; i--) { if (this.sortList[i].sortField === sortField) { sortFieldInHistory = true; break; } } if (sortFieldInHistory) { if (i > 0) { this.sortList = this.sortList.slice(0, i); } else { this.sortList = this.sortList.slice(1); } } this.sortList.unshift(sortObj); this.sortList = this.sortList.slice(0, this.multiColumnSort); } else { this.sortList = [sortObj]; } } } }, { key: 'cleanSortInfo', value: function cleanSortInfo() { this.sortList = []; } }, { key: 'setSelectedRowKey', value: function setSelectedRowKey(selectedRowKeys) { this.selected = selectedRowKeys; } }, { key: 'getRowByKey', value: function getRowByKey(keys) { var _this2 = this; // Bad Performance #1164 // return keys.map(key => { // const result = this.data.filter(d => d[this.keyField] === key); // if (result.length !== 0) return result[0]; // }); var result = []; var _loop = function _loop(i) { var d = _this2.data[i]; if (!keys || keys.length === 0) return 'break'; if (keys.indexOf(d[_this2.keyField]) > -1) { keys = keys.filter(function (k) { return k !== d[_this2.keyField]; }); result.push(d); } }; for (var i = 0; i < this.data.length; i++) { var _ret = _loop(i); if (_ret === 'break') break; } return result; } }, { key: 'getSelectedRowKeys', value: function getSelectedRowKeys() { return this.selected; } }, { key: 'getCurrentDisplayData', value: function getCurrentDisplayData() { if (this.isOnFilter) return this.filteredData;else return this.data; } }, { key: '_refresh', value: function _refresh(skipSorting) { if (this.isOnFilter) { if (this.filterObj !== null) this.filter(this.filterObj); if (this.searchText !== null) this.search(this.searchText); } if (!skipSorting && this.sortList.length > 0) { this.sort(); } } }, { key: 'ignoreNonSelected', value: function ignoreNonSelected() { var _this3 = this; this.showOnlySelected = !this.showOnlySelected; if (this.showOnlySelected) { this.isOnFilter = true; this.filteredData = this.data.filter(function (row) { var result = _this3.selected.find(function (x) { return row[_this3.keyField] === x; }); return typeof result !== 'undefined' ? true : false; }); } else { this.isOnFilter = false; } } }, { key: 'sort', value: function sort() { var currentDisplayData = this.getCurrentDisplayData(); currentDisplayData = this._sort(currentDisplayData); return this; } }, { key: 'page', value: function page(_page, sizePerPage) { this.pageObj.end = _page * sizePerPage - 1; this.pageObj.start = this.pageObj.end - (sizePerPage - 1); return this; } }, { key: 'edit', value: function edit(newVal, rowIndex, fieldName) { var currentDisplayData = this.getCurrentDisplayData(); var rowKeyCache = void 0; if (!this.enablePagination) { currentDisplayData[rowIndex][fieldName] = newVal; rowKeyCache = currentDisplayData[rowIndex][this.keyField]; } else { currentDisplayData[this.pageObj.start + rowIndex][fieldName] = newVal; rowKeyCache = currentDisplayData[this.pageObj.start + rowIndex][this.keyField]; } if (this.isOnFilter) { this.data.forEach(function (row) { if (row[this.keyField] === rowKeyCache) { row[fieldName] = newVal; } }, this); if (this.filterObj !== null) this.filter(this.filterObj); if (this.searchText !== null) this.search(this.searchText); } return this; } }, { key: 'addAtBegin', value: function addAtBegin(newObj) { if (!newObj[this.keyField] || newObj[this.keyField].toString() === '') { throw new Error(this.keyField + ' can\'t be empty value.'); } var currentDisplayData = this.getCurrentDisplayData(); currentDisplayData.forEach(function (row) { if (row[this.keyField].toString() === newObj[this.keyField].toString()) { throw new Error(this.keyField + ' ' + newObj[this.keyField] + ' already exists'); } }, this); currentDisplayData.unshift(newObj); if (this.isOnFilter) { this.data.unshift(newObj); } this._refresh(false); } }, { key: 'add', value: function add(newObj) { var e = this.isValidKey(newObj[this.keyField]); if (e) throw new Error(e); var currentDisplayData = this.getCurrentDisplayData(); currentDisplayData.push(newObj); if (this.isOnFilter) { this.data.push(newObj); } this._refresh(false); } }, { key: '__isValidKey__REACT_HOT_LOADER__', value: function __isValidKey__REACT_HOT_LOADER__(key) { var _this4 = this; if (!key || key.toString() === '') { return this.keyField + ' can\'t be empty value.'; } var currentDisplayData = this.getCurrentDisplayData(); var exist = currentDisplayData.find(function (row) { return row[_this4.keyField].toString() === key.toString(); }); if (exist) return this.keyField + ' ' + key + ' already exists'; } }, { key: 'remove', value: function remove(rowKey) { var _this5 = this; var currentDisplayData = this.getCurrentDisplayData(); var result = currentDisplayData.filter(function (row) { return rowKey.indexOf(row[_this5.keyField]) === -1; }); if (this.isOnFilter) { this.data = this.data.filter(function (row) { return rowKey.indexOf(row[_this5.keyField]) === -1; }); this.filteredData = result; } else { this.data = result; } } }, { key: 'filter', value: function filter(filterObj) { if (Object.keys(filterObj).length === 0) { this.filteredData = null; this.isOnFilter = false; this.filterObj = null; if (this.searchText) this._search(this.data); } else { var source = this.data; this.filterObj = filterObj; if (this.searchText) { this._search(source); source = this.filteredData; } this._filter(source); } } }, { key: 'filterNumber', value: function filterNumber(targetVal, filterVal, comparator) { var valid = true; switch (comparator) { case '=': { if (targetVal != filterVal) { valid = false; } break; } case '>': { if (targetVal <= filterVal) { valid = false; } break; } case '>=': { if (targetVal < filterVal) { valid = false; } break; } case '<': { if (targetVal >= filterVal) { valid = false; } break; } case '<=': { if (targetVal > filterVal) { valid = false; } break; } case '!=': { if (targetVal == filterVal) { valid = false; } break; } default: { console.error('Number comparator provided is not supported'); break; } } return valid; } }, { key: 'filterDate', value: function filterDate(targetVal, filterVal, comparator) { if (!targetVal) return false; var filterDate = filterVal.getDate(); var filterMonth = filterVal.getMonth(); var filterYear = filterVal.getFullYear(); if ((typeof targetVal === 'undefined' ? 'undefined' : _typeof(targetVal)) !== 'object') { targetVal = new Date(targetVal); } var targetDate = targetVal.getDate(); var targetMonth = targetVal.getMonth(); var targetYear = targetVal.getFullYear(); var valid = true; switch (comparator) { case '=': { if (filterDate !== targetDate || filterMonth !== targetMonth || filterYear !== targetYear) { valid = false; } break; } case '>': { if (targetVal <= filterVal) { valid = false; } break; } case '>=': { if (targetYear < filterYear) { valid = false; } else if (targetYear === filterYear && targetMonth < filterMonth) { valid = false; } else if (targetYear === filterYear && targetMonth === filterMonth && targetDate < filterDate) { valid = false; } break; } case '<': { if (targetVal >= filterVal) { valid = false; } break; } case '<=': { if (targetYear > filterYear) { valid = false; } else if (targetYear === filterYear && targetMonth > filterMonth) { valid = false; } else if (targetYear === filterYear && targetMonth === filterMonth && targetDate > filterDate) { valid = false; } break; } case '!=': { if (filterDate === targetDate && filterMonth === targetMonth && filterYear === targetYear) { valid = false; } break; } default: { console.error('Date comparator provided is not supported'); break; } } return valid; } }, { key: 'filterRegex', value: function filterRegex(targetVal, filterVal) { try { return new RegExp(filterVal, 'i').test(targetVal); } catch (e) { return true; } } }, { key: 'filterCustom', value: function filterCustom(targetVal, filterVal, callbackInfo, cond) { if (callbackInfo !== null && (typeof callbackInfo === 'undefined' ? 'undefined' : _typeof(callbackInfo)) === 'object') { return callbackInfo.callback(targetVal, callbackInfo.callbackParameters); } return this.filterText(targetVal, filterVal, cond); } }, { key: 'filterText', value: function filterText(targetVal, filterVal) { var cond = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _Const2.default.FILTER_COND_LIKE; targetVal = targetVal.toString(); filterVal = filterVal.toString(); if (cond === _Const2.default.FILTER_COND_EQ) { return targetVal === filterVal; } else { targetVal = targetVal.toLowerCase(); filterVal = filterVal.toLowerCase(); return !(targetVal.indexOf(filterVal) === -1); } } /* General search function * It will search for the text if the input includes that text; */ }, { key: 'search', value: function search(searchText) { if (searchText.trim() === '') { this.filteredData = null; this.isOnFilter = false; this.searchText = null; if (this.filterObj) this._filter(this.data); } else { var source = this.data; this.searchText = searchText; if (this.filterObj) { this._filter(source); source = this.filteredData; } this._search(source); } } }, { key: '_filter', value: function _filter(source) { var _this6 = this; var filterObj = this.filterObj; this.filteredData = source.filter(function (row, r) { var valid = true; var filterVal = void 0; for (var key in filterObj) { var targetVal = row[key]; if (targetVal === null || targetVal === undefined) { targetVal = ''; } switch (filterObj[key].type) { case _Const2.default.FILTER_TYPE.NUMBER: { filterVal = filterObj[key].value.number; break; } case _Const2.default.FILTER_TYPE.CUSTOM: { filterVal = _typeof(filterObj[key].value) === 'object' ? undefined : typeof filterObj[key].value === 'string' ? filterObj[key].value.toLowerCase() : filterObj[key].value; break; } case _Const2.default.FILTER_TYPE.DATE: { filterVal = filterObj[key].value.date; break; } case _Const2.default.FILTER_TYPE.REGEX: { filterVal = filterObj[key].value; break; } default: { filterVal = filterObj[key].value; if (filterVal === undefined) { // Support old filter filterVal = filterObj[key]; } break; } } var format = void 0, filterFormatted = void 0, formatExtraData = void 0, filterValue = void 0; if (_this6.colInfos[key]) { format = _this6.colInfos[key].format; filterFormatted = _this6.colInfos[key].filterFormatted; formatExtraData = _this6.colInfos[key].formatExtraData; filterValue = _this6.colInfos[key].filterValue; if (filterFormatted && format) { targetVal = format(row[key], row, formatExtraData, r); } else if (filterValue) { targetVal = filterValue(row[key], row); } } switch (filterObj[key].type) { case _Const2.default.FILTER_TYPE.NUMBER: { valid = _this6.filterNumber(targetVal, filterVal, filterObj[key].value.comparator); break; } case _Const2.default.FILTER_TYPE.DATE: { valid = _this6.filterDate(targetVal, filterVal, filterObj[key].value.comparator); break; } case _Const2.default.FILTER_TYPE.REGEX: { valid = _this6.filterRegex(targetVal, filterVal); break; } case _Const2.default.FILTER_TYPE.CUSTOM: { var cond = filterObj[key].props ? filterObj[key].props.cond : _Const2.default.FILTER_COND_LIKE; valid = _this6.filterCustom(targetVal, filterVal, filterObj[key].value, cond); break; } default: { if (filterObj[key].type === _Const2.default.FILTER_TYPE.SELECT && filterFormatted && filterFormatted && format) { filterVal = format(filterVal, row, formatExtraData, r); } var _cond = filterObj[key].props ? filterObj[key].props.cond : _Const2.default.FILTER_COND_LIKE; valid = _this6.filterText(targetVal, filterVal, _cond); break; } } if (!valid) { break; } } return valid; }); this.isOnFilter = true; } /* * Four different sort modes, all case insensitive: * (1) strictSearch && !multiColumnSearch * search text must be contained as provided in a single column * (2) strictSearch && multiColumnSearch * conjunction (AND combination) of whitespace separated terms over multiple columns * (3) !strictSearch && !multiColumnSearch * conjunction (AND combination) of whitespace separated terms in a single column * (4) !strictSearch && multiColumnSearch * any of the whitespace separated terms must be contained in any column */ }, { key: '_search', value: function _search(source) { var _this7 = this; var searchTextArray = void 0; if (this.multiColumnSearch || !this.strictSearch) { // ignore leading and trailing whitespaces searchTextArray = this.searchText.trim().toLowerCase().split(/\s+/); } else { searchTextArray = [this.searchText.toLowerCase()]; } var searchTermCount = searchTextArray.length; var multipleTerms = searchTermCount > 1; var nonStrictMultiCol = multipleTerms && !this.strictSearch && this.multiColumnSearch; var nonStrictSingleCol = multipleTerms && !this.strictSearch && !this.multiColumnSearch; this.filteredData = source.filter(function (row, r) { var keys = Object.keys(row); // only clone array if necessary var searchTerms = multipleTerms ? searchTextArray.slice() : searchTextArray; // for loops are ugly, but performance matters here. // And you cant break from a forEach. // http://jsperf.com/for-vs-foreach/66 for (var i = 0, keysLength = keys.length; i < keysLength; i++) { var key = keys[i]; var colInfo = _this7.colInfos[key]; if (colInfo && colInfo.searchable) { var format = colInfo.format, filterFormatted = colInfo.filterFormatted, filterValue = colInfo.filterValue, formatExtraData = colInfo.formatExtraData; var targetVal = void 0; if (filterFormatted && format) { targetVal = format(row[key], row, formatExtraData, r); } else if (filterValue) { targetVal = filterValue(row[key], row); } else { targetVal = row[key]; } if (targetVal !== null && typeof targetVal !== 'undefined') { targetVal = targetVal.toString().toLowerCase(); if (nonStrictSingleCol && searchTermCount > searchTerms.length) { // reset search terms for single column search searchTerms = searchTextArray.slice(); } for (var j = searchTerms.length - 1; j > -1; j--) { if (targetVal.indexOf(searchTerms[j]) !== -1) { if (nonStrictMultiCol || searchTerms.length === 1) { // match found: the last or only one return true; } // match found: but there are more search terms to check for searchTerms.splice(j, 1); } else if (!_this7.multiColumnSearch) { // one of the search terms was not found in this column break; } } } } } return false; }); this.isOnFilter = true; } }, { key: '_sort', value: function _sort(arr) { var _this8 = this; if (this.sortList.length === 0 || typeof this.sortList[0] === 'undefined') { return arr; } arr.sort(function (a, b) { var result = 0; for (var i = 0; i < _this8.sortList.length; i++) { var sortDetails = _this8.sortList[i]; var isDesc = sortDetails.order.toLowerCase() === _Const2.default.SORT_DESC; var _colInfos$sortDetails = _this8.colInfos[sortDetails.sortField], sortFunc = _colInfos$sortDetails.sortFunc, sortFuncExtraData = _colInfos$sortDetails.sortFuncExtraData; if (sortFunc) { result = sortFunc(a, b, sortDetails.order, sortDetails.sortField, sortFuncExtraData); } else { var valueA = a[sortDetails.sortField] === null ? '' : a[sortDetails.sortField]; var valueB = b[sortDetails.sortField] === null ? '' : b[sortDetails.sortField]; if (isDesc) { if (typeof valueB === 'string') { result = valueB.localeCompare(valueA); } else { result = valueA > valueB ? -1 : valueA < valueB ? 1 : 0; } } else { if (typeof valueA === 'string') { result = valueA.localeCompare(valueB); } else { result = valueA < valueB ? -1 : valueA > valueB ? 1 : 0; } } } if (result !== 0) { return result; } } return result; }); return arr; } }, { key: 'getDataIgnoringPagination', value: function getDataIgnoringPagination() { return this.getCurrentDisplayData(); } }, { key: 'get', value: function get() { var _data = this.getCurrentDisplayData(); if (_data.length === 0) return _data; var remote = typeof this.remote === 'function' ? this.remote(_Const2.default.REMOTE)[_Const2.default.REMOTE_PAGE] : this.remote; if (remote || !this.enablePagination) { return _data; } else { var result = []; for (var i = this.pageObj.start; i <= this.pageObj.end; i++) { result.push(_data[i]); if (i + 1 === _data.length) break; } return result; } } }, { key: 'getKeyField', value: function getKeyField() { return this.keyField; } }, { key: 'getDataNum', value: function getDataNum() { return this.getCurrentDisplayData().length; } }, { key: 'isChangedPage', value: function isChangedPage() { return this.pageObj.start && this.pageObj.end ? true : false; } }, { key: 'isEmpty', value: function isEmpty() { return this.data.length === 0 || this.data === null || this.data === undefined; } }, { key: 'getAllRowkey', value: function getAllRowkey() { var _this9 = this; return this.data.map(function (row) { return row[_this9.keyField]; }); } }]); return TableDataStore; }(); exports.TableDataStore = TableDataStore; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(TableDataStore, 'TableDataStore', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/store/TableDataStore.js'); }(); ; /***/ }, /* 206 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _util = __webpack_require__(9); var _util2 = _interopRequireDefault(_util); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } if (_util2.default.canUseDOM()) { var filesaver = __webpack_require__(207); var saveAs = filesaver.saveAs; } /* eslint block-scoped-var: 0 */ /* eslint vars-on-top: 0 */ /* eslint no-var: 0 */ /* eslint no-unused-vars: 0 */ function toString(data, keys) { var dataString = ''; if (data.length === 0) return dataString; var headCells = []; var rowCount = 0; keys.forEach(function (key) { if (key.row > rowCount) { rowCount = key.row; } // rowCount += (key.rowSpan + key.colSpan - 1); for (var index = 0; index < key.colSpan; index++) { headCells.push(key); } }); var _loop = function _loop(i) { dataString += headCells.map(function (x) { if (x.row + (x.rowSpan - 1) === i) { return x.header; } if (x.row === i && x.rowSpan > 1) { return ''; } }).filter(function (key) { return typeof key !== 'undefined'; }).join(',') + '\n'; }; for (var i = 0; i <= rowCount; i++) { _loop(i); } keys = keys.filter(function (key) { return key.field !== undefined; }); data.map(function (row) { keys.map(function (col, i) { var field = col.field, format = col.format, extraData = col.extraData; var value = typeof format !== 'undefined' ? format(row[field], row, extraData) : row[field]; var cell = typeof value !== 'undefined' ? '"' + value + '"' : ''; dataString += cell; if (i + 1 < keys.length) dataString += ','; }); dataString += '\n'; }); return dataString; } var exportCSV = function exportCSV(data, keys, filename) { var dataString = toString(data, keys); if (typeof window !== 'undefined') { saveAs(new Blob([dataString], { type: 'text/plain;charset=utf-8' }), filename, true); } }; var _default = exportCSV; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(saveAs, 'saveAs', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/csv_export_util.js'); __REACT_HOT_LOADER__.register(toString, 'toString', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/csv_export_util.js'); __REACT_HOT_LOADER__.register(exportCSV, 'exportCSV', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/csv_export_util.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/csv_export_util.js'); }(); ; /***/ }, /* 207 */ /***/ function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;"use strict"; /* FileSaver.js * A saveAs() FileSaver implementation. * 1.3.2 * 2016-06-16 18:25:19 * * By Eli Grey, http://eligrey.com * License: MIT * See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md */ /*global self */ /*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */ /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */ var saveAs = saveAs || function (view) { "use strict"; // IE <10 is explicitly unsupported if (typeof view === "undefined" || typeof navigator !== "undefined" && /MSIE [1-9]\./.test(navigator.userAgent)) { return; } var doc = view.document // only get URL when necessary in case Blob.js hasn't overridden it yet , get_URL = function get_URL() { return view.URL || view.webkitURL || view; }, save_link = doc.createElementNS("http://www.w3.org/1999/xhtml", "a"), can_use_save_link = "download" in save_link, click = function click(node) { var event = new MouseEvent("click"); node.dispatchEvent(event); }, is_safari = /constructor/i.test(view.HTMLElement) || view.safari, is_chrome_ios = /CriOS\/[\d]+/.test(navigator.userAgent), throw_outside = function throw_outside(ex) { (view.setImmediate || view.setTimeout)(function () { throw ex; }, 0); }, force_saveable_type = "application/octet-stream" // the Blob API is fundamentally broken as there is no "downloadfinished" event to subscribe to , arbitrary_revoke_timeout = 1000 * 40 // in ms , revoke = function revoke(file) { var revoker = function revoker() { if (typeof file === "string") { // file is an object URL get_URL().revokeObjectURL(file); } else { // file is a File file.remove(); } }; setTimeout(revoker, arbitrary_revoke_timeout); }, dispatch = function dispatch(filesaver, event_types, event) { event_types = [].concat(event_types); var i = event_types.length; while (i--) { var listener = filesaver["on" + event_types[i]]; if (typeof listener === "function") { try { listener.call(filesaver, event || filesaver); } catch (ex) { throw_outside(ex); } } } }, auto_bom = function auto_bom(blob) { // prepend BOM for UTF-8 XML and text/* types (including HTML) // note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF if (/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(blob.type)) { return new Blob([String.fromCharCode(0xFEFF), blob], { type: blob.type }); } return blob; }, FileSaver = function FileSaver(blob, name, no_auto_bom) { if (!no_auto_bom) { blob = auto_bom(blob); } // First try a.download, then web filesystem, then object URLs var filesaver = this, type = blob.type, force = type === force_saveable_type, object_url, dispatch_all = function dispatch_all() { dispatch(filesaver, "writestart progress write writeend".split(" ")); } // on any filesys errors revert to saving with object URLs , fs_error = function fs_error() { if ((is_chrome_ios || force && is_safari) && view.FileReader) { // Safari doesn't allow downloading of blob urls var reader = new FileReader(); reader.onloadend = function () { var url = is_chrome_ios ? reader.result : reader.result.replace(/^data:[^;]*;/, 'data:attachment/file;'); var popup = view.open(url, '_blank'); if (!popup) view.location.href = url; url = undefined; // release reference before dispatching filesaver.readyState = filesaver.DONE; dispatch_all(); }; reader.readAsDataURL(blob); filesaver.readyState = filesaver.INIT; return; } // don't create more object URLs than needed if (!object_url) { object_url = get_URL().createObjectURL(blob); } if (force) { view.location.href = object_url; } else { var opened = view.open(object_url, "_blank"); if (!opened) { // Apple does not allow window.open, see https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/WorkingwithWindowsandTabs/WorkingwithWindowsandTabs.html view.location.href = object_url; } } filesaver.readyState = filesaver.DONE; dispatch_all(); revoke(object_url); }; filesaver.readyState = filesaver.INIT; if (can_use_save_link) { object_url = get_URL().createObjectURL(blob); setTimeout(function () { save_link.href = object_url; save_link.download = name; click(save_link); dispatch_all(); revoke(object_url); filesaver.readyState = filesaver.DONE; }); return; } fs_error(); }, FS_proto = FileSaver.prototype, saveAs = function saveAs(blob, name, no_auto_bom) { return new FileSaver(blob, name || blob.name || "download", no_auto_bom); }; // IE 10+ (native saveAs) if (typeof navigator !== "undefined" && navigator.msSaveOrOpenBlob) { return function (blob, name, no_auto_bom) { name = name || blob.name || "download"; if (!no_auto_bom) { blob = auto_bom(blob); } return navigator.msSaveOrOpenBlob(blob, name); }; } FS_proto.abort = function () {}; FS_proto.readyState = FS_proto.INIT = 0; FS_proto.WRITING = 1; FS_proto.DONE = 2; FS_proto.error = FS_proto.onwritestart = FS_proto.onprogress = FS_proto.onwrite = FS_proto.onabort = FS_proto.onerror = FS_proto.onwriteend = null; return saveAs; }(typeof self !== "undefined" && self || typeof window !== "undefined" && window || undefined.content); // `self` is undefined in Firefox for Android content script context // while `this` is nsIContentFrameMessageManager // with an attribute `content` that corresponds to the window if (typeof module !== "undefined" && module.exports) { module.exports.saveAs = saveAs; } else if ("function" !== "undefined" && __webpack_require__(208) !== null && __webpack_require__(209) !== null) { !(__WEBPACK_AMD_DEFINE_RESULT__ = function () { return saveAs; }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(saveAs, "saveAs", "/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filesaver.js"); }(); ; /***/ }, /* 208 */ /***/ function(module, exports) { module.exports = function() { throw new Error("define cannot be used indirect"); }; /***/ }, /* 209 */ /***/ function(module, exports) { /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {module.exports = __webpack_amd_options__; /* WEBPACK VAR INJECTION */}.call(exports, {})) /***/ }, /* 210 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.Filter = undefined; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); var _events = __webpack_require__(211); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var Filter = exports.Filter = function (_EventEmitter) { _inherits(Filter, _EventEmitter); function Filter(data) { _classCallCheck(this, Filter); var _this = _possibleConstructorReturn(this, (Filter.__proto__ || Object.getPrototypeOf(Filter)).call(this, data)); _this.currentFilter = {}; return _this; } _createClass(Filter, [{ key: 'handleFilter', value: function handleFilter(dataField, value, type, filterObj) { var filterType = type || _Const2.default.FILTER_TYPE.CUSTOM; var props = { cond: filterObj.condition // Only for select and text filter }; if (value !== null && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') { // value of the filter is an object var hasValue = true; for (var prop in value) { if (!value[prop] || value[prop] === '') { hasValue = false; break; } } // if one of the object properties is undefined or empty, we remove the filter if (hasValue) { this.currentFilter[dataField] = { value: value, type: filterType, props: props }; } else { delete this.currentFilter[dataField]; } } else if (!value || value.trim() === '') { delete this.currentFilter[dataField]; } else { this.currentFilter[dataField] = { value: value.trim(), type: filterType, props: props }; } this.emit('onFilterChange', this.currentFilter); } }]); return Filter; }(_events.EventEmitter); ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(Filter, 'Filter', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/Filter.js'); }(); ; /***/ }, /* 211 */ /***/ function(module, exports) { // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. function EventEmitter() { this._events = this._events || {}; this._maxListeners = this._maxListeners || undefined; } module.exports = EventEmitter; // Backwards-compat with node 0.10.x EventEmitter.EventEmitter = EventEmitter; EventEmitter.prototype._events = undefined; EventEmitter.prototype._maxListeners = undefined; // By default EventEmitters will print a warning if more than 10 listeners are // added to it. This is a useful default which helps finding memory leaks. EventEmitter.defaultMaxListeners = 10; // Obviously not all Emitters should be limited to 10. This function allows // that to be increased. Set to zero for unlimited. EventEmitter.prototype.setMaxListeners = function(n) { if (!isNumber(n) || n < 0 || isNaN(n)) throw TypeError('n must be a positive number'); this._maxListeners = n; return this; }; EventEmitter.prototype.emit = function(type) { var er, handler, len, args, i, listeners; if (!this._events) this._events = {}; // If there is no 'error' event listener then throw. if (type === 'error') { if (!this._events.error || (isObject(this._events.error) && !this._events.error.length)) { er = arguments[1]; if (er instanceof Error) { throw er; // Unhandled 'error' event } else { // At least give some kind of context to the user var err = new Error('Uncaught, unspecified "error" event. (' + er + ')'); err.context = er; throw err; } } } handler = this._events[type]; if (isUndefined(handler)) return false; if (isFunction(handler)) { switch (arguments.length) { // fast cases case 1: handler.call(this); break; case 2: handler.call(this, arguments[1]); break; case 3: handler.call(this, arguments[1], arguments[2]); break; // slower default: args = Array.prototype.slice.call(arguments, 1); handler.apply(this, args); } } else if (isObject(handler)) { args = Array.prototype.slice.call(arguments, 1); listeners = handler.slice(); len = listeners.length; for (i = 0; i < len; i++) listeners[i].apply(this, args); } return true; }; EventEmitter.prototype.addListener = function(type, listener) { var m; if (!isFunction(listener)) throw TypeError('listener must be a function'); if (!this._events) this._events = {}; // To avoid recursion in the case that type === "newListener"! Before // adding it to the listeners, first emit "newListener". if (this._events.newListener) this.emit('newListener', type, isFunction(listener.listener) ? listener.listener : listener); if (!this._events[type]) // Optimize the case of one listener. Don't need the extra array object. this._events[type] = listener; else if (isObject(this._events[type])) // If we've already got an array, just append. this._events[type].push(listener); else // Adding the second element, need to change to array. this._events[type] = [this._events[type], listener]; // Check for listener leak if (isObject(this._events[type]) && !this._events[type].warned) { if (!isUndefined(this._maxListeners)) { m = this._maxListeners; } else { m = EventEmitter.defaultMaxListeners; } if (m && m > 0 && this._events[type].length > m) { this._events[type].warned = true; console.error('(node) warning: possible EventEmitter memory ' + 'leak detected. %d listeners added. ' + 'Use emitter.setMaxListeners() to increase limit.', this._events[type].length); if (typeof console.trace === 'function') { // not supported in IE 10 console.trace(); } } } return this; }; EventEmitter.prototype.on = EventEmitter.prototype.addListener; EventEmitter.prototype.once = function(type, listener) { if (!isFunction(listener)) throw TypeError('listener must be a function'); var fired = false; function g() { this.removeListener(type, g); if (!fired) { fired = true; listener.apply(this, arguments); } } g.listener = listener; this.on(type, g); return this; }; // emits a 'removeListener' event iff the listener was removed EventEmitter.prototype.removeListener = function(type, listener) { var list, position, length, i; if (!isFunction(listener)) throw TypeError('listener must be a function'); if (!this._events || !this._events[type]) return this; list = this._events[type]; length = list.length; position = -1; if (list === listener || (isFunction(list.listener) && list.listener === listener)) { delete this._events[type]; if (this._events.removeListener) this.emit('removeListener', type, listener); } else if (isObject(list)) { for (i = length; i-- > 0;) { if (list[i] === listener || (list[i].listener && list[i].listener === listener)) { position = i; break; } } if (position < 0) return this; if (list.length === 1) { list.length = 0; delete this._events[type]; } else { list.splice(position, 1); } if (this._events.removeListener) this.emit('removeListener', type, listener); } return this; }; EventEmitter.prototype.removeAllListeners = function(type) { var key, listeners; if (!this._events) return this; // not listening for removeListener, no need to emit if (!this._events.removeListener) { if (arguments.length === 0) this._events = {}; else if (this._events[type]) delete this._events[type]; return this; } // emit removeListener for all listeners on all events if (arguments.length === 0) { for (key in this._events) { if (key === 'removeListener') continue; this.removeAllListeners(key); } this.removeAllListeners('removeListener'); this._events = {}; return this; } listeners = this._events[type]; if (isFunction(listeners)) { this.removeListener(type, listeners); } else if (listeners) { // LIFO order while (listeners.length) this.removeListener(type, listeners[listeners.length - 1]); } delete this._events[type]; return this; }; EventEmitter.prototype.listeners = function(type) { var ret; if (!this._events || !this._events[type]) ret = []; else if (isFunction(this._events[type])) ret = [this._events[type]]; else ret = this._events[type].slice(); return ret; }; EventEmitter.prototype.listenerCount = function(type) { if (this._events) { var evlistener = this._events[type]; if (isFunction(evlistener)) return 1; else if (evlistener) return evlistener.length; } return 0; }; EventEmitter.listenerCount = function(emitter, type) { return emitter.listenerCount(type); }; function isFunction(arg) { return typeof arg === 'function'; } function isNumber(arg) { return typeof arg === 'number'; } function isObject(arg) { return typeof arg === 'object' && arg !== null; } function isUndefined(arg) { return arg === void 0; } /***/ }, /* 212 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); var _util = __webpack_require__(9); var _util2 = _interopRequireDefault(_util); var _Date = __webpack_require__(213); var _Date2 = _interopRequireDefault(_Date); var _Text = __webpack_require__(214); var _Text2 = _interopRequireDefault(_Text); var _Regex = __webpack_require__(215); var _Regex2 = _interopRequireDefault(_Regex); var _Select = __webpack_require__(216); var _Select2 = _interopRequireDefault(_Select); var _Number = __webpack_require__(217); var _Number2 = _interopRequireDefault(_Number); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint default-case: 0 */ /* eslint guard-for-in: 0 */ var TableHeaderColumn = function (_Component) { _inherits(TableHeaderColumn, _Component); function TableHeaderColumn(props) { _classCallCheck(this, TableHeaderColumn); var _this = _possibleConstructorReturn(this, (TableHeaderColumn.__proto__ || Object.getPrototypeOf(TableHeaderColumn)).call(this, props)); _this.handleColumnClick = function () { return _this.__handleColumnClick__REACT_HOT_LOADER__.apply(_this, arguments); }; _this.handleFilter = _this.handleFilter.bind(_this); return _this; } _createClass(TableHeaderColumn, [{ key: 'componentWillReceiveProps', value: function componentWillReceiveProps(nextProps) { if (nextProps.reset) { this.cleanFiltered(); } } }, { key: '__handleColumnClick__REACT_HOT_LOADER__', value: function __handleColumnClick__REACT_HOT_LOADER__() { if (this.props.isOnlyHead || !this.props.dataSort) return; var order = this.props.sort; if (!order && this.props.defaultASC) order = _Const2.default.SORT_ASC;else order = this.props.sort === _Const2.default.SORT_DESC ? _Const2.default.SORT_ASC : _Const2.default.SORT_DESC; this.props.onSort(order, this.props.dataField); } }, { key: 'handleFilter', value: function handleFilter(value, type) { var filter = this.props.filter; filter.emitter.handleFilter(this.props.dataField, value, type, filter); } }, { key: 'getFilters', value: function getFilters() { var _props = this.props, headerText = _props.headerText, children = _props.children; switch (this.props.filter.type) { case _Const2.default.FILTER_TYPE.TEXT: { return _react2.default.createElement(_Text2.default, _extends({ ref: 'textFilter' }, this.props.filter, { columnName: headerText || children, filterHandler: this.handleFilter })); } case _Const2.default.FILTER_TYPE.REGEX: { return _react2.default.createElement(_Regex2.default, _extends({ ref: 'regexFilter' }, this.props.filter, { columnName: headerText || children, filterHandler: this.handleFilter })); } case _Const2.default.FILTER_TYPE.SELECT: { return _react2.default.createElement(_Select2.default, _extends({ ref: 'selectFilter' }, this.props.filter, { columnName: headerText || children, filterHandler: this.handleFilter })); } case _Const2.default.FILTER_TYPE.NUMBER: { return _react2.default.createElement(_Number2.default, _extends({ ref: 'numberFilter' }, this.props.filter, { columnName: headerText || children, filterHandler: this.handleFilter })); } case _Const2.default.FILTER_TYPE.DATE: { return _react2.default.createElement(_Date2.default, _extends({ ref: 'dateFilter' }, this.props.filter, { columnName: headerText || children, filterHandler: this.handleFilter })); } case _Const2.default.FILTER_TYPE.CUSTOM: { var elm = this.props.filter.getElement(this.handleFilter, this.props.filter.customFilterParameters); return _react2.default.cloneElement(elm, { ref: 'customFilter' }); } } } }, { key: 'componentDidMount', value: function componentDidMount() { this.refs['header-col'].setAttribute('data-field', this.props.dataField); } }, { key: 'render', value: function render() { var defaultCaret = void 0; var sortCaret = void 0; var _props2 = this.props, headerText = _props2.headerText, dataAlign = _props2.dataAlign, dataField = _props2.dataField, headerAlign = _props2.headerAlign, headerTitle = _props2.headerTitle, hidden = _props2.hidden, sort = _props2.sort, dataSort = _props2.dataSort, sortIndicator = _props2.sortIndicator, children = _props2.children, caretRender = _props2.caretRender, className = _props2.className, isOnlyHead = _props2.isOnlyHead, style = _props2.thStyle; var thStyle = _extends({ textAlign: headerAlign || dataAlign, display: hidden ? 'none' : null }, style); if (!isOnlyHead) { if (sortIndicator) { defaultCaret = !dataSort ? null : _react2.default.createElement( 'span', { className: 'order' }, _react2.default.createElement( 'span', { className: 'dropdown' }, _react2.default.createElement('span', { className: 'caret', style: { margin: '10px 0 10px 5px', color: '#ccc' } }) ), _react2.default.createElement( 'span', { className: 'dropup' }, _react2.default.createElement('span', { className: 'caret', style: { margin: '10px 0', color: '#ccc' } }) ) ); } sortCaret = sort ? _util2.default.renderReactSortCaret(sort) : defaultCaret; if (caretRender) { sortCaret = caretRender(sort, dataField); } } var classes = (0, _classnames2.default)(_util2.default.isFunction(className) ? className() : className, !isOnlyHead && dataSort ? 'sort-column' : ''); var attr = {}; if (headerTitle) { if (typeof children === 'string' && !headerText) { attr.title = children; } else { attr.title = headerText; } } return _react2.default.createElement( 'th', _extends({ ref: 'header-col', className: classes, style: thStyle, onClick: this.handleColumnClick, rowSpan: this.props.rowSpan, colSpan: this.props.colSpan, 'data-is-only-head': this.props.isOnlyHead }, attr), children, sortCaret, _react2.default.createElement( 'div', { onClick: function onClick(e) { return e.stopPropagation(); } }, this.props.filter && !isOnlyHead ? this.getFilters() : null ) ); } }, { key: 'cleanFiltered', value: function cleanFiltered() { if (this.props.filter === undefined) { return; } switch (this.props.filter.type) { case _Const2.default.FILTER_TYPE.TEXT: { this.refs.textFilter.cleanFiltered(); break; } case _Const2.default.FILTER_TYPE.REGEX: { this.refs.regexFilter.cleanFiltered(); break; } case _Const2.default.FILTER_TYPE.SELECT: { this.refs.selectFilter.cleanFiltered(); break; } case _Const2.default.FILTER_TYPE.NUMBER: { this.refs.numberFilter.cleanFiltered(); break; } case _Const2.default.FILTER_TYPE.DATE: { this.refs.dateFilter.cleanFiltered(); break; } case _Const2.default.FILTER_TYPE.CUSTOM: { this.refs.customFilter.cleanFiltered(); break; } } } }, { key: 'applyFilter', value: function applyFilter(val) { if (this.props.filter === undefined) return; switch (this.props.filter.type) { case _Const2.default.FILTER_TYPE.TEXT: { this.refs.textFilter.applyFilter(val); break; } case _Const2.default.FILTER_TYPE.REGEX: { this.refs.regexFilter.applyFilter(val); break; } case _Const2.default.FILTER_TYPE.SELECT: { this.refs.selectFilter.applyFilter(val); break; } case _Const2.default.FILTER_TYPE.NUMBER: { this.refs.numberFilter.applyFilter(val); break; } case _Const2.default.FILTER_TYPE.DATE: { this.refs.dateFilter.applyFilter(val); break; } } } }]); return TableHeaderColumn; }(_react.Component); var filterTypeArray = []; for (var key in _Const2.default.FILTER_TYPE) { filterTypeArray.push(_Const2.default.FILTER_TYPE[key]); } TableHeaderColumn.propTypes = { dataField: _react.PropTypes.string, dataAlign: _react.PropTypes.string, headerAlign: _react.PropTypes.string, headerTitle: _react.PropTypes.bool, headerText: _react.PropTypes.string, dataSort: _react.PropTypes.bool, onSort: _react.PropTypes.func, dataFormat: _react.PropTypes.func, csvFormat: _react.PropTypes.func, csvHeader: _react.PropTypes.string, isKey: _react.PropTypes.bool, editable: _react.PropTypes.any, hidden: _react.PropTypes.bool, hiddenOnInsert: _react.PropTypes.bool, searchable: _react.PropTypes.bool, className: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.func]), width: _react.PropTypes.string, sortFunc: _react.PropTypes.func, sortFuncExtraData: _react.PropTypes.any, columnClassName: _react.PropTypes.any, editColumnClassName: _react.PropTypes.any, invalidEditColumnClassName: _react.PropTypes.any, columnTitle: _react.PropTypes.bool, filterFormatted: _react.PropTypes.bool, filterValue: _react.PropTypes.func, sort: _react.PropTypes.string, caretRender: _react.PropTypes.func, formatExtraData: _react.PropTypes.any, csvFormatExtraData: _react.PropTypes.any, filter: _react.PropTypes.shape({ type: _react.PropTypes.oneOf(filterTypeArray), delay: _react.PropTypes.number, options: _react.PropTypes.oneOfType([_react.PropTypes.object, // for SelectFilter _react.PropTypes.arrayOf(_react.PropTypes.number) // for NumberFilter ]), numberComparators: _react.PropTypes.arrayOf(_react.PropTypes.string), emitter: _react.PropTypes.object, placeholder: _react.PropTypes.string, getElement: _react.PropTypes.func, customFilterParameters: _react.PropTypes.object, condition: _react.PropTypes.oneOf([_Const2.default.FILTER_COND_EQ, _Const2.default.FILTER_COND_LIKE]) }), sortIndicator: _react.PropTypes.bool, export: _react.PropTypes.bool, expandable: _react.PropTypes.bool, tdAttr: _react.PropTypes.object, tdStyle: _react.PropTypes.object, thStyle: _react.PropTypes.object, keyValidator: _react.PropTypes.bool, defaultASC: _react.PropTypes.bool }; TableHeaderColumn.defaultProps = { dataAlign: 'left', headerAlign: undefined, headerTitle: true, dataSort: false, dataFormat: undefined, csvFormat: undefined, csvHeader: undefined, isKey: false, editable: true, onSort: undefined, hidden: false, hiddenOnInsert: false, searchable: true, className: '', columnTitle: false, width: null, sortFunc: undefined, columnClassName: '', editColumnClassName: '', invalidEditColumnClassName: '', filterFormatted: false, filterValue: undefined, sort: undefined, formatExtraData: undefined, sortFuncExtraData: undefined, filter: undefined, sortIndicator: true, expandable: true, tdAttr: undefined, tdStyle: undefined, thStyle: undefined, keyValidator: false, defaultASC: false }; var _default = TableHeaderColumn; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(TableHeaderColumn, 'TableHeaderColumn', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableHeaderColumn.js'); __REACT_HOT_LOADER__.register(filterTypeArray, 'filterTypeArray', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableHeaderColumn.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/TableHeaderColumn.js'); }(); ; /***/ }, /* 213 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /* eslint quotes: 0 */ /* eslint max-len: 0 */ var legalComparators = ['=', '>', '>=', '<', '<=', '!=']; function dateParser(d) { return d.getFullYear() + '-' + ("0" + (d.getMonth() + 1)).slice(-2) + '-' + ("0" + d.getDate()).slice(-2); } var DateFilter = function (_Component) { _inherits(DateFilter, _Component); function DateFilter(props) { _classCallCheck(this, DateFilter); var _this = _possibleConstructorReturn(this, (DateFilter.__proto__ || Object.getPrototypeOf(DateFilter)).call(this, props)); _this.dateComparators = _this.props.dateComparators || legalComparators; _this.filter = _this.filter.bind(_this); _this.onChangeComparator = _this.onChangeComparator.bind(_this); return _this; } _createClass(DateFilter, [{ key: 'setDefaultDate', value: function setDefaultDate() { var defaultDate = ''; var defaultValue = this.props.defaultValue; if (defaultValue && defaultValue.date) { // Set the appropriate format for the input type=date, i.e. "YYYY-MM-DD" defaultDate = dateParser(new Date(defaultValue.date)); } return defaultDate; } }, { key: 'onChangeComparator', value: function onChangeComparator(event) { var date = this.refs.inputDate.value; var comparator = event.target.value; if (date === '') { return; } date = new Date(date); this.props.filterHandler({ date: date, comparator: comparator }, _Const2.default.FILTER_TYPE.DATE); } }, { key: 'getComparatorOptions', value: function getComparatorOptions() { var optionTags = []; optionTags.push(_react2.default.createElement('option', { key: '-1' })); for (var i = 0; i < this.dateComparators.length; i++) { optionTags.push(_react2.default.createElement( 'option', { key: i, value: this.dateComparators[i] }, this.dateComparators[i] )); } return optionTags; } }, { key: 'filter', value: function filter(event) { var comparator = this.refs.dateFilterComparator.value; var dateValue = event.target.value; if (dateValue) { this.props.filterHandler({ date: new Date(dateValue), comparator: comparator }, _Const2.default.FILTER_TYPE.DATE); } else { this.props.filterHandler(null, _Const2.default.FILTER_TYPE.DATE); } } }, { key: 'cleanFiltered', value: function cleanFiltered() { var value = this.setDefaultDate(); var comparator = this.props.defaultValue ? this.props.defaultValue.comparator : ''; this.setState({ isPlaceholderSelected: value === '' }); this.refs.dateFilterComparator.value = comparator; this.refs.inputDate.value = value; this.props.filterHandler({ date: new Date(value), comparator: comparator }, _Const2.default.FILTER_TYPE.DATE); } }, { key: 'applyFilter', value: function applyFilter(filterDateObj) { var date = filterDateObj.date, comparator = filterDateObj.comparator; this.setState({ isPlaceholderSelected: date === '' }); this.refs.dateFilterComparator.value = comparator; this.refs.inputDate.value = dateParser(date); this.props.filterHandler({ date: date, comparator: comparator }, _Const2.default.FILTER_TYPE.DATE); } }, { key: 'componentDidMount', value: function componentDidMount() { var comparator = this.refs.dateFilterComparator.value; var dateValue = this.refs.inputDate.value; if (comparator && dateValue) { this.props.filterHandler({ date: new Date(dateValue), comparator: comparator }, _Const2.default.FILTER_TYPE.DATE); } } }, { key: 'render', value: function render() { var _props = this.props, defaultValue = _props.defaultValue, _props$style = _props.style, date = _props$style.date, comparator = _props$style.comparator; return _react2.default.createElement( 'div', { className: 'filter date-filter' }, _react2.default.createElement( 'select', { ref: 'dateFilterComparator', style: comparator, className: 'date-filter-comparator form-control', onChange: this.onChangeComparator, defaultValue: defaultValue ? defaultValue.comparator : '' }, this.getComparatorOptions() ), _react2.default.createElement('input', { ref: 'inputDate', className: 'filter date-filter-input form-control', style: date, type: 'date', onChange: this.filter, defaultValue: this.setDefaultDate() }) ); } }]); return DateFilter; }(_react.Component); DateFilter.propTypes = { filterHandler: _react.PropTypes.func.isRequired, defaultValue: _react.PropTypes.shape({ date: _react.PropTypes.object, comparator: _react.PropTypes.oneOf(legalComparators) }), style: _react.PropTypes.shape({ date: _react.PropTypes.oneOfType([_react.PropTypes.object]), comparator: _react.PropTypes.oneOfType([_react.PropTypes.object]) }), /* eslint consistent-return: 0 */ dateComparators: function dateComparators(props, propName) { if (!props[propName]) { return; } for (var i = 0; i < props[propName].length; i++) { var comparatorIsValid = false; for (var j = 0; j < legalComparators.length; j++) { if (legalComparators[j] === props[propName][i]) { comparatorIsValid = true; break; } } if (!comparatorIsValid) { return new Error('Date comparator provided is not supported.\n Use only ' + legalComparators); } } }, columnName: _react.PropTypes.string }; DateFilter.defaultProps = { style: { date: null, comparator: null } }; var _default = DateFilter; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(legalComparators, 'legalComparators', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Date.js'); __REACT_HOT_LOADER__.register(dateParser, 'dateParser', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Date.js'); __REACT_HOT_LOADER__.register(DateFilter, 'DateFilter', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Date.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Date.js'); }(); ; /***/ }, /* 214 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var TextFilter = function (_Component) { _inherits(TextFilter, _Component); function TextFilter(props) { _classCallCheck(this, TextFilter); var _this = _possibleConstructorReturn(this, (TextFilter.__proto__ || Object.getPrototypeOf(TextFilter)).call(this, props)); _this.filter = _this.filter.bind(_this); _this.timeout = null; return _this; } _createClass(TextFilter, [{ key: 'filter', value: function filter(event) { var _this2 = this; if (this.timeout) { clearTimeout(this.timeout); } var filterValue = event.target.value; this.timeout = setTimeout(function () { _this2.props.filterHandler(filterValue, _Const2.default.FILTER_TYPE.TEXT); }, this.props.delay); } }, { key: 'cleanFiltered', value: function cleanFiltered() { var value = this.props.defaultValue ? this.props.defaultValue : ''; this.refs.inputText.value = value; this.props.filterHandler(value, _Const2.default.FILTER_TYPE.TEXT); } }, { key: 'applyFilter', value: function applyFilter(filterText) { this.refs.inputText.value = filterText; this.props.filterHandler(filterText, _Const2.default.FILTER_TYPE.TEXT); } }, { key: 'componentDidMount', value: function componentDidMount() { var defaultValue = this.refs.inputText.value; if (defaultValue) { this.props.filterHandler(defaultValue, _Const2.default.FILTER_TYPE.TEXT); } } }, { key: 'componentWillUnmount', value: function componentWillUnmount() { clearTimeout(this.timeout); } }, { key: 'render', value: function render() { var _props = this.props, placeholder = _props.placeholder, columnName = _props.columnName, defaultValue = _props.defaultValue, style = _props.style; return _react2.default.createElement('input', { ref: 'inputText', className: 'filter text-filter form-control', type: 'text', style: style, onChange: this.filter, placeholder: placeholder || 'Enter ' + columnName + '...', defaultValue: defaultValue ? defaultValue : '' }); } }]); return TextFilter; }(_react.Component); TextFilter.propTypes = { filterHandler: _react.PropTypes.func.isRequired, defaultValue: _react.PropTypes.string, delay: _react.PropTypes.number, placeholder: _react.PropTypes.string, columnName: _react.PropTypes.string, style: _react.PropTypes.oneOfType([_react.PropTypes.object]) }; TextFilter.defaultProps = { delay: _Const2.default.FILTER_DELAY }; var _default = TextFilter; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(TextFilter, 'TextFilter', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Text.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Text.js'); }(); ; /***/ }, /* 215 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var RegexFilter = function (_Component) { _inherits(RegexFilter, _Component); function RegexFilter(props) { _classCallCheck(this, RegexFilter); var _this = _possibleConstructorReturn(this, (RegexFilter.__proto__ || Object.getPrototypeOf(RegexFilter)).call(this, props)); _this.filter = _this.filter.bind(_this); _this.timeout = null; return _this; } _createClass(RegexFilter, [{ key: 'filter', value: function filter(event) { var _this2 = this; if (this.timeout) { clearTimeout(this.timeout); } var filterValue = event.target.value; this.timeout = setTimeout(function () { _this2.props.filterHandler(filterValue, _Const2.default.FILTER_TYPE.REGEX); }, this.props.delay); } }, { key: 'cleanFiltered', value: function cleanFiltered() { var value = this.props.defaultValue ? this.props.defaultValue : ''; this.refs.inputText.value = value; this.props.filterHandler(value, _Const2.default.FILTER_TYPE.TEXT); } }, { key: 'applyFilter', value: function applyFilter(filterRegx) { this.refs.inputText.value = filterRegx; this.props.filterHandler(filterRegx, _Const2.default.FILTER_TYPE.REGEX); } }, { key: 'componentDidMount', value: function componentDidMount() { var value = this.refs.inputText.value; if (value) { this.props.filterHandler(value, _Const2.default.FILTER_TYPE.REGEX); } } }, { key: 'componentWillUnmount', value: function componentWillUnmount() { clearTimeout(this.timeout); } }, { key: 'render', value: function render() { var _props = this.props, defaultValue = _props.defaultValue, placeholder = _props.placeholder, columnName = _props.columnName, style = _props.style; return _react2.default.createElement('input', { ref: 'inputText', className: 'filter text-filter form-control', type: 'text', style: style, onChange: this.filter, placeholder: placeholder || 'Enter Regex for ' + columnName + '...', defaultValue: defaultValue ? defaultValue : '' }); } }]); return RegexFilter; }(_react.Component); RegexFilter.propTypes = { filterHandler: _react.PropTypes.func.isRequired, defaultValue: _react.PropTypes.string, delay: _react.PropTypes.number, placeholder: _react.PropTypes.string, columnName: _react.PropTypes.string, style: _react.PropTypes.oneOfType([_react.PropTypes.object]) }; RegexFilter.defaultProps = { delay: _Const2.default.FILTER_DELAY }; var _default = RegexFilter; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(RegexFilter, 'RegexFilter', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Regex.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Regex.js'); }(); ; /***/ }, /* 216 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function optionsEquals(options1, options2) { var keys = Object.keys(options1); for (var k in keys) { if (options1[k] !== options2[k]) { return false; } } return Object.keys(options1).length === Object.keys(options2).length; } var SelectFilter = function (_Component) { _inherits(SelectFilter, _Component); function SelectFilter(props) { _classCallCheck(this, SelectFilter); var _this = _possibleConstructorReturn(this, (SelectFilter.__proto__ || Object.getPrototypeOf(SelectFilter)).call(this, props)); _this.filter = _this.filter.bind(_this); _this.state = { isPlaceholderSelected: _this.props.defaultValue === undefined || !_this.props.options.hasOwnProperty(_this.props.defaultValue) }; return _this; } _createClass(SelectFilter, [{ key: 'componentWillReceiveProps', value: function componentWillReceiveProps(nextProps) { var isPlaceholderSelected = nextProps.defaultValue === undefined || !nextProps.options.hasOwnProperty(nextProps.defaultValue); this.setState({ isPlaceholderSelected: isPlaceholderSelected }); } }, { key: 'componentDidUpdate', value: function componentDidUpdate(prevProps) { var needFilter = false; if (this.props.defaultValue !== prevProps.defaultValue) { needFilter = true; } else if (!optionsEquals(this.props.options, prevProps.options)) { needFilter = true; } if (needFilter) { var value = this.refs.selectInput.value; if (value) { this.props.filterHandler(value, _Const2.default.FILTER_TYPE.SELECT); } } } }, { key: 'filter', value: function filter(event) { var value = event.target.value; this.setState({ isPlaceholderSelected: value === '' }); this.props.filterHandler(value, _Const2.default.FILTER_TYPE.SELECT); } }, { key: 'cleanFiltered', value: function cleanFiltered() { var value = this.props.defaultValue !== undefined ? this.props.defaultValue : ''; this.setState({ isPlaceholderSelected: value === '' }); this.refs.selectInput.value = value; this.props.filterHandler(value, _Const2.default.FILTER_TYPE.SELECT); } }, { key: 'applyFilter', value: function applyFilter(filterOption) { filterOption = filterOption + ''; this.setState({ isPlaceholderSelected: filterOption === '' }); this.refs.selectInput.value = filterOption; this.props.filterHandler(filterOption, _Const2.default.FILTER_TYPE.SELECT); } }, { key: 'getOptions', value: function getOptions() { var optionTags = []; var _props = this.props, options = _props.options, placeholder = _props.placeholder, columnName = _props.columnName, selectText = _props.selectText, withoutEmptyOption = _props.withoutEmptyOption; var selectTextValue = selectText !== undefined ? selectText : 'Select'; if (!withoutEmptyOption) { optionTags.push(_react2.default.createElement( 'option', { key: '-1', value: '' }, placeholder || selectTextValue + ' ' + columnName + '...' )); } Object.keys(options).map(function (key) { optionTags.push(_react2.default.createElement( 'option', { key: key, value: key }, options[key] + '' )); }); return optionTags; } }, { key: 'componentDidMount', value: function componentDidMount() { var value = this.refs.selectInput.value; if (value) { this.props.filterHandler(value, _Const2.default.FILTER_TYPE.SELECT); } } }, { key: 'render', value: function render() { var selectClass = (0, _classnames2.default)('filter', 'select-filter', 'form-control', { 'placeholder-selected': this.state.isPlaceholderSelected }); return _react2.default.createElement( 'select', { ref: 'selectInput', style: this.props.style, className: selectClass, onChange: this.filter, defaultValue: this.props.defaultValue !== undefined ? this.props.defaultValue : '' }, this.getOptions() ); } }]); return SelectFilter; }(_react.Component); SelectFilter.propTypes = { filterHandler: _react.PropTypes.func.isRequired, options: _react.PropTypes.object.isRequired, placeholder: _react.PropTypes.string, columnName: _react.PropTypes.string, style: _react.PropTypes.oneOfType([_react.PropTypes.object]) }; var _default = SelectFilter; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(optionsEquals, 'optionsEquals', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Select.js'); __REACT_HOT_LOADER__.register(SelectFilter, 'SelectFilter', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Select.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Select.js'); }(); ; /***/ }, /* 217 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); var _classnames = __webpack_require__(3); var _classnames2 = _interopRequireDefault(_classnames); var _Const = __webpack_require__(4); var _Const2 = _interopRequireDefault(_Const); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var legalComparators = ['=', '>', '>=', '<', '<=', '!=']; var NumberFilter = function (_Component) { _inherits(NumberFilter, _Component); function NumberFilter(props) { _classCallCheck(this, NumberFilter); var _this = _possibleConstructorReturn(this, (NumberFilter.__proto__ || Object.getPrototypeOf(NumberFilter)).call(this, props)); _this.numberComparators = _this.props.numberComparators || legalComparators; _this.timeout = null; _this.state = { isPlaceholderSelected: _this.props.defaultValue === undefined || _this.props.defaultValue.number === undefined || _this.props.options && _this.props.options.indexOf(_this.props.defaultValue.number) === -1 }; _this.onChangeNumber = _this.onChangeNumber.bind(_this); _this.onChangeNumberSet = _this.onChangeNumberSet.bind(_this); _this.onChangeComparator = _this.onChangeComparator.bind(_this); return _this; } _createClass(NumberFilter, [{ key: 'onChangeNumber', value: function onChangeNumber(event) { var _this2 = this; var comparator = this.refs.numberFilterComparator.value; if (comparator === '') { return; } if (this.timeout) { clearTimeout(this.timeout); } var filterValue = event.target.value; this.timeout = setTimeout(function () { _this2.props.filterHandler({ number: filterValue, comparator: comparator }, _Const2.default.FILTER_TYPE.NUMBER); }, this.props.delay); } }, { key: 'onChangeNumberSet', value: function onChangeNumberSet(event) { var comparator = this.refs.numberFilterComparator.value; var value = event.target.value; this.setState({ isPlaceholderSelected: value === '' }); if (comparator === '') { return; } this.props.filterHandler({ number: value, comparator: comparator }, _Const2.default.FILTER_TYPE.NUMBER); } }, { key: 'onChangeComparator', value: function onChangeComparator(event) { var value = this.refs.numberFilter.value; var comparator = event.target.value; if (value === '') { return; } this.props.filterHandler({ number: value, comparator: comparator }, _Const2.default.FILTER_TYPE.NUMBER); } }, { key: 'cleanFiltered', value: function cleanFiltered() { var value = this.props.defaultValue ? this.props.defaultValue.number : ''; var comparator = this.props.defaultValue ? this.props.defaultValue.comparator : ''; this.setState({ isPlaceholderSelected: value === '' }); this.refs.numberFilterComparator.value = comparator; this.refs.numberFilter.value = value; this.props.filterHandler({ number: value, comparator: comparator }, _Const2.default.FILTER_TYPE.NUMBER); } }, { key: 'applyFilter', value: function applyFilter(filterObj) { var number = filterObj.number, comparator = filterObj.comparator; this.setState({ isPlaceholderSelected: number === '' }); this.refs.numberFilterComparator.value = comparator; this.refs.numberFilter.value = number; this.props.filterHandler({ number: number, comparator: comparator }, _Const2.default.FILTER_TYPE.NUMBER); } }, { key: 'getComparatorOptions', value: function getComparatorOptions() { var optionTags = []; var withoutEmptyComparatorOption = this.props.withoutEmptyComparatorOption; if (!withoutEmptyComparatorOption) { optionTags.push(_react2.default.createElement('option', { key: '-1' })); } for (var i = 0; i < this.numberComparators.length; i++) { optionTags.push(_react2.default.createElement( 'option', { key: i, value: this.numberComparators[i] }, this.numberComparators[i] )); } return optionTags; } }, { key: 'getNumberOptions', value: function getNumberOptions() { var optionTags = []; var _props = this.props, options = _props.options, withoutEmptyNumberOption = _props.withoutEmptyNumberOption; if (!withoutEmptyNumberOption) { optionTags.push(_react2.default.createElement( 'option', { key: '-1', value: '' }, this.props.placeholder || 'Select ' + this.props.columnName + '...' )); } for (var i = 0; i < options.length; i++) { optionTags.push(_react2.default.createElement( 'option', { key: i, value: options[i] }, options[i] )); } return optionTags; } }, { key: 'componentDidMount', value: function componentDidMount() { var comparator = this.refs.numberFilterComparator.value; var number = this.refs.numberFilter.value; if (comparator && number) { this.props.filterHandler({ number: number, comparator: comparator }, _Const2.default.FILTER_TYPE.NUMBER); } } }, { key: 'componentWillUnmount', value: function componentWillUnmount() { clearTimeout(this.timeout); } }, { key: 'render', value: function render() { var selectClass = (0, _classnames2.default)('select-filter', 'number-filter-input', 'form-control', { 'placeholder-selected': this.state.isPlaceholderSelected }); return _react2.default.createElement( 'div', { className: 'filter number-filter' }, _react2.default.createElement( 'select', { ref: 'numberFilterComparator', style: this.props.style.comparator, className: 'number-filter-comparator form-control', onChange: this.onChangeComparator, defaultValue: this.props.defaultValue ? this.props.defaultValue.comparator : '' }, this.getComparatorOptions() ), this.props.options ? _react2.default.createElement( 'select', { ref: 'numberFilter', className: selectClass, onChange: this.onChangeNumberSet, defaultValue: this.props.defaultValue ? this.props.defaultValue.number : '' }, this.getNumberOptions() ) : _react2.default.createElement('input', { ref: 'numberFilter', type: 'number', style: this.props.style.number, className: 'number-filter-input form-control', placeholder: this.props.placeholder || 'Enter ' + this.props.columnName + '...', onChange: this.onChangeNumber, defaultValue: this.props.defaultValue ? this.props.defaultValue.number : '' }) ); } }]); return NumberFilter; }(_react.Component); NumberFilter.propTypes = { filterHandler: _react.PropTypes.func.isRequired, options: _react.PropTypes.arrayOf(_react.PropTypes.number), defaultValue: _react.PropTypes.shape({ number: _react.PropTypes.number, comparator: _react.PropTypes.oneOf(legalComparators) }), style: _react.PropTypes.shape({ number: _react.PropTypes.oneOfType([_react.PropTypes.object]), comparator: _react.PropTypes.oneOfType([_react.PropTypes.object]) }), delay: _react.PropTypes.number, /* eslint consistent-return: 0 */ numberComparators: function numberComparators(props, propName) { if (!props[propName]) { return; } for (var i = 0; i < props[propName].length; i++) { var comparatorIsValid = false; for (var j = 0; j < legalComparators.length; j++) { if (legalComparators[j] === props[propName][i]) { comparatorIsValid = true; break; } } if (!comparatorIsValid) { return new Error('Number comparator provided is not supported.\n Use only ' + legalComparators); } } }, placeholder: _react.PropTypes.string, columnName: _react.PropTypes.string, withoutEmptyComparatorOption: _react.PropTypes.bool, withoutEmptyNumberOption: _react.PropTypes.bool }; NumberFilter.defaultProps = { delay: _Const2.default.FILTER_DELAY, withoutEmptyComparatorOption: false, withoutEmptyNumberOption: false, style: { number: null, comparator: null } }; var _default = NumberFilter; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(legalComparators, 'legalComparators', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Number.js'); __REACT_HOT_LOADER__.register(NumberFilter, 'NumberFilter', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Number.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/filters/Number.js'); }(); ; /***/ }, /* 218 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = __webpack_require__(2); var _react2 = _interopRequireDefault(_react); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ButtonGroup = function (_Component) { _inherits(ButtonGroup, _Component); function ButtonGroup() { _classCallCheck(this, ButtonGroup); return _possibleConstructorReturn(this, (ButtonGroup.__proto__ || Object.getPrototypeOf(ButtonGroup)).apply(this, arguments)); } _createClass(ButtonGroup, [{ key: 'render', value: function render() { var _props = this.props, className = _props.className, sizeClass = _props.sizeClass, children = _props.children, rest = _objectWithoutProperties(_props, ['className', 'sizeClass', 'children']); return _react2.default.createElement( 'div', _extends({ className: 'btn-group ' + sizeClass + ' ' + className, role: 'group' }, rest), children ); } }]); return ButtonGroup; }(_react.Component); ButtonGroup.propTypes = { sizeClass: _react.PropTypes.string, className: _react.PropTypes.string }; ButtonGroup.defaultProps = { sizeClass: 'btn-group-sm', className: '' }; var _default = ButtonGroup; exports.default = _default; ; var _temp = function () { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; } __REACT_HOT_LOADER__.register(ButtonGroup, 'ButtonGroup', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ButtonGroup.js'); __REACT_HOT_LOADER__.register(_default, 'default', '/Users/allen/Node/react-bootstrap-table-new/react-bootstrap-table/src/toolbar/ButtonGroup.js'); }(); ; /***/ } /******/ ]) }); ; //# sourceMappingURL=react-bootstrap-table.js.map
ahocevar/cdnjs
ajax/libs/react-bootstrap-table/3.4.0/react-bootstrap-table.js
JavaScript
mit
588,481
module Fastlane module Actions module SharedValues end class SetBuildNumberRepositoryAction < Action def self.is_supported?(platform) platform == :ios end def self.is_svn? Actions.sh 'svn info' return true rescue return false end def self.is_git? Actions.sh 'git rev-parse HEAD' return true rescue return false end def self.is_git_svn? Actions.sh 'git svn info' return true rescue return false end def self.run(params) if is_svn? Helper.log.info "Detected repo: svn" command = 'svn info | grep Revision | egrep -o "[0-9]+"' elsif is_git_svn? Helper.log.info "Detected repo: git-svn" command = 'git svn info | grep Revision | egrep -o "[0-9]+"' elsif is_git? Helper.log.info "Detected repo: git" command = 'git rev-parse --short HEAD' else raise "No repository detected" end build_number = Actions.sh command Fastlane::Actions::IncrementBuildNumberAction.run(build_number: build_number) end ##################################################### # @!group Documentation ##################################################### def self.description "Set the build number from the current repository" end def self.available_options [ ] end def self.output [ ] end def self.author 'pbrooks' end end end end
rafaortiz/fastlane
lib/fastlane/actions/set_build_number_repository.rb
Ruby
mit
1,629
# frozen_string_literal: true require "spec_helper" describe(Jekyll::JekyllSitemap) do let(:overrides) do { "source" => source_dir, "destination" => dest_dir, "url" => "http://example.org", "collections" => { "my_collection" => { "output" => true }, "other_things" => { "output" => false }, }, } end let(:config) do Jekyll.configuration(overrides) end let(:site) { Jekyll::Site.new(config) } let(:contents) { File.read(dest_dir("sitemap.xml")) } before(:each) do # simulate `last_modified_at` injection by `jekyll-last-modified-at` plugin Jekyll::Hooks.register([:pages, :documents], :post_init) do |page| page.data["last_modified_at"] = Time.parse("2015-01-18T00:00:00+00:00") end site.process end context "with jekyll-last-modified-at" do it "correctly adds the modified time to the posts" do expect(contents).to match( %r! <loc>http://example.org/2015/01/18/jekyll-last-modified-at.html</loc>\s+ <lastmod>2015-01-18T00:00:00\+00:00</lastmod> !x ) end it "correctly adds the modified time to the pages" do expect(contents).to match( %r! <loc>http://example.org/jekyll-last-modified-at/page.html</loc>\s+ <lastmod>2015-01-18T00:00:00\+00:00</lastmod> !x ) end end end
taolicd/taolicd.github.io
vendor/bundle/ruby/2.6.0/gems/jekyll-sitemap-1.4.0/spec/test_jekyll-last-modified-at.rb
Ruby
mit
1,404
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="robots" content="index, follow, all" /> <title>Thelia\Form\SeoForm | </title> <link rel="stylesheet" type="text/css" href="../../stylesheet.css"> </head> <body id="class"> <div class="header"> <ul> <li><a href="../../classes.html">Classes</a></li> <li><a href="../../namespaces.html">Namespaces</a></li> <li><a href="../../interfaces.html">Interfaces</a></li> <li><a href="../../traits.html">Traits</a></li> <li><a href="../../doc-index.html">Index</a></li> </ul> <div id="title"></div> <div class="type">Class</div> <h1><a href="../../Thelia/Form.html">Thelia\Form</a>\SeoForm</h1> </div> <div class="content"> <p> class <strong>SeoForm</strong> extends <a href="../../Thelia/Form/BaseForm.html"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a></p> <div class="description"> <p>Class SeoForm</p> <p> </p> </div> <h2>Methods</h2> <table> <tr> <td class="type"> </td> <td class="last"> <a href="#method___construct">__construct</a>(<abbr title="Symfony\Component\HttpFoundation\Request">Request</abbr> $request, $type = &#039;form&#039;, $data = array(), $options = array()) <p> </p> </td> <td><small>from&nbsp;<a href="../../Thelia/Form/BaseForm.html#method___construct"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a></small></td> </tr> <tr> <td class="type"> bool </td> <td class="last"> <a href="#method_isTemplateDefinedHiddenField">isTemplateDefinedHiddenField</a>(<abbr title="Symfony\Component\Form\FormView">FormView</abbr> $fieldView) <p>Return true if the given field value is defined only in the HTML template, and its value is defined in the template file, not the form builder.</p> </td> <td><small>from&nbsp;<a href="../../Thelia/Form/BaseForm.html#method_isTemplateDefinedHiddenField"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a></small></td> </tr> <tr> <td class="type"> </td> <td class="last"> <a href="#method_getRequest">getRequest</a>() <p> </p> </td> <td><small>from&nbsp;<a href="../../Thelia/Form/BaseForm.html#method_getRequest"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a></small></td> </tr> <tr> <td class="type"> string </td> <td class="last"> <a href="#method_getSuccessUrl">getSuccessUrl</a>(string $default = null) <p>Returns the absolute URL to redirect the user to if the form is successfully processed.</p> </td> <td><small>from&nbsp;<a href="../../Thelia/Form/BaseForm.html#method_getSuccessUrl"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a></small></td> </tr> <tr> <td class="type"> </td> <td class="last"> <a href="#method_createView">createView</a>() <p> </p> </td> <td><small>from&nbsp;<a href="../../Thelia/Form/BaseForm.html#method_createView"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a></small></td> </tr> <tr> <td class="type"> <abbr title="Symfony\Component\Form\FormView">FormView</abbr> </td> <td class="last"> <a href="#method_getView">getView</a>() <p> </p> </td> <td><small>from&nbsp;<a href="../../Thelia/Form/BaseForm.html#method_getView"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a></small></td> </tr> <tr> <td class="type"> </td> <td class="last"> <a href="#method_setError">setError</a>(boolean $has_error = true) <p>Set the error status of the form.</p> </td> <td><small>from&nbsp;<a href="../../Thelia/Form/BaseForm.html#method_setError"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a></small></td> </tr> <tr> <td class="type"> boolean </td> <td class="last"> <a href="#method_hasError">hasError</a>() <p>Get the cuirrent error status of the form.</p> </td> <td><small>from&nbsp;<a href="../../Thelia/Form/BaseForm.html#method_hasError"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a></small></td> </tr> <tr> <td class="type"> </td> <td class="last"> <a href="#method_setErrorMessage">setErrorMessage</a>(string $message) <p>Set the error message related to global form error</p> </td> <td><small>from&nbsp;<a href="../../Thelia/Form/BaseForm.html#method_setErrorMessage"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a></small></td> </tr> <tr> <td class="type"> string </td> <td class="last"> <a href="#method_getErrorMessage">getErrorMessage</a>() <p>Get the form error message.</p> </td> <td><small>from&nbsp;<a href="../../Thelia/Form/BaseForm.html#method_getErrorMessage"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a></small></td> </tr> <tr> <td class="type"> <abbr title="Symfony\Component\Form\Form">Form</abbr> </td> <td class="last"> <a href="#method_getForm">getForm</a>() <p> </p> </td> <td><small>from&nbsp;<a href="../../Thelia/Form/BaseForm.html#method_getForm"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a></small></td> </tr> <tr> <td class="type"> string </td> <td class="last"> <a href="#method_getName">getName</a>() <p> </p> </td> <td></td> </tr> </table> <h2>Details</h2> <h3 id="method___construct"> <div class="location">in <a href="../../Thelia/Form/BaseForm.html#method___construct"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a> at line 62</div> <code> public <strong>__construct</strong>(<abbr title="Symfony\Component\HttpFoundation\Request">Request</abbr> $request, $type = &#039;form&#039;, $data = array(), $options = array())</code> </h3> <div class="details"> <p> </p> <p> </p> <div class="tags"> <h4>Parameters</h4> <table> <tr> <td><abbr title="Symfony\Component\HttpFoundation\Request">Request</abbr></td> <td>$request</td> <td> </td> </tr> <tr> <td></td> <td>$type</td> <td> </td> </tr> <tr> <td></td> <td>$data</td> <td> </td> </tr> <tr> <td></td> <td>$options</td> <td> </td> </tr> </table> </div> </div> <h3 id="method_isTemplateDefinedHiddenField"> <div class="location">in <a href="../../Thelia/Form/BaseForm.html#method_isTemplateDefinedHiddenField"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a> at line 124</div> <code> public bool <strong>isTemplateDefinedHiddenField</strong>(<abbr title="Symfony\Component\Form\FormView">FormView</abbr> $fieldView)</code> </h3> <div class="details"> <p>Return true if the given field value is defined only in the HTML template, and its value is defined in the template file, not the form builder.</p> <p>Thus, it should not be included in the form hidden fields generated by form<em>hidden</em>fields Smarty function, to prevent it from exiting twice in the form.</p> <div class="tags"> <h4>Parameters</h4> <table> <tr> <td><abbr title="Symfony\Component\Form\FormView">FormView</abbr></td> <td>$fieldView</td> <td> </td> </tr> </table> <h4>Return Value</h4> <table> <tr> <td>bool</td> <td> </td> </tr> </table> </div> </div> <h3 id="method_getRequest"> <div class="location">in <a href="../../Thelia/Form/BaseForm.html#method_getRequest"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a> at line 131</div> <code> public <strong>getRequest</strong>()</code> </h3> <div class="details"> <p> </p> <p> </p> <div class="tags"> </div> </div> <h3 id="method_getSuccessUrl"> <div class="location">in <a href="../../Thelia/Form/BaseForm.html#method_getSuccessUrl"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a> at line 150</div> <code> public string <strong>getSuccessUrl</strong>(string $default = null)</code> </h3> <div class="details"> <p>Returns the absolute URL to redirect the user to if the form is successfully processed.</p> <p> </p> <div class="tags"> <h4>Parameters</h4> <table> <tr> <td>string</td> <td>$default</td> <td>the default URL. If not given, the configured base URL is used.</td> </tr> </table> <h4>Return Value</h4> <table> <tr> <td>string</td> <td>an absolute URL</td> </tr> </table> </div> </div> <h3 id="method_createView"> <div class="location">in <a href="../../Thelia/Form/BaseForm.html#method_createView"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a> at line 164</div> <code> public <strong>createView</strong>()</code> </h3> <div class="details"> <p> </p> <p> </p> <div class="tags"> </div> </div> <h3 id="method_getView"> <div class="location">in <a href="../../Thelia/Form/BaseForm.html#method_getView"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a> at line 175</div> <code> public <abbr title="Symfony\Component\Form\FormView">FormView</abbr> <strong>getView</strong>()</code> </h3> <div class="details"> <p> </p> <p> </p> <div class="tags"> <h4>Return Value</h4> <table> <tr> <td><abbr title="Symfony\Component\Form\FormView">FormView</abbr></td> <td> </td> </tr> </table> <h4>Exceptions</h4> <table> <tr> <td><a href="http://php.net/LogicException"><abbr title="LogicException">LogicException</abbr></a></td> <td> </td> </tr> </table> </div> </div> <h3 id="method_setError"> <div class="location">in <a href="../../Thelia/Form/BaseForm.html#method_setError"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a> at line 188</div> <code> public <strong>setError</strong>(boolean $has_error = true)</code> </h3> <div class="details"> <p>Set the error status of the form.</p> <p> </p> <div class="tags"> <h4>Parameters</h4> <table> <tr> <td>boolean</td> <td>$has_error</td> <td> </td> </tr> </table> </div> </div> <h3 id="method_hasError"> <div class="location">in <a href="../../Thelia/Form/BaseForm.html#method_hasError"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a> at line 200</div> <code> public boolean <strong>hasError</strong>()</code> </h3> <div class="details"> <p>Get the cuirrent error status of the form.</p> <p> </p> <div class="tags"> <h4>Return Value</h4> <table> <tr> <td>boolean</td> <td> </td> </tr> </table> </div> </div> <h3 id="method_setErrorMessage"> <div class="location">in <a href="../../Thelia/Form/BaseForm.html#method_setErrorMessage"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a> at line 210</div> <code> public <strong>setErrorMessage</strong>(string $message)</code> </h3> <div class="details"> <p>Set the error message related to global form error</p> <p> </p> <div class="tags"> <h4>Parameters</h4> <table> <tr> <td>string</td> <td>$message</td> <td> </td> </tr> </table> </div> </div> <h3 id="method_getErrorMessage"> <div class="location">in <a href="../../Thelia/Form/BaseForm.html#method_getErrorMessage"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a> at line 223</div> <code> public string <strong>getErrorMessage</strong>()</code> </h3> <div class="details"> <p>Get the form error message.</p> <p> </p> <div class="tags"> <h4>Return Value</h4> <table> <tr> <td>string</td> <td> </td> </tr> </table> </div> </div> <h3 id="method_getForm"> <div class="location">in <a href="../../Thelia/Form/BaseForm.html#method_getForm"><abbr title="Thelia\Form\BaseForm">BaseForm</abbr></a> at line 231</div> <code> public <abbr title="Symfony\Component\Form\Form">Form</abbr> <strong>getForm</strong>()</code> </h3> <div class="details"> <p> </p> <p> </p> <div class="tags"> <h4>Return Value</h4> <table> <tr> <td><abbr title="Symfony\Component\Form\Form">Form</abbr></td> <td> </td> </tr> </table> </div> </div> <h3 id="method_getName"> <div class="location">at line 52</div> <code> public string <strong>getName</strong>()</code> </h3> <div class="details"> <p> </p> <p> </p> <div class="tags"> <h4>Return Value</h4> <table> <tr> <td>string</td> <td>the name of you form. This name must be unique</td> </tr> </table> </div> </div> </div> <div id="footer"> Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>. </div> </body> </html>
bibich/thelia.github.io
api/2.0.3-beta2/Thelia/Form/SeoForm.html
HTML
mit
17,426
<?php /** * A single Message * * .. php:attr:: date_created * * The date the message was created * * .. php:attr:: date_updated * * The date the message was updated * * .. php:attr:: sid * * A 34 character string that identifies this object * * .. php:attr:: account_sid * * The account that sent the message * * .. php:attr:: body * * The body of the message * * .. php:attr:: num_segments * * The number of sms messages used to deliver the body * * .. php:attr:: num_media * * The number of media that are associated with the image * * .. php:attr:: subresource_uris * * The subresources associated with this message (just Media at the moment) * * .. php:attr:: from * * The number this message was sent from * * .. php:attr:: to * * The phone number this message was sent to */ class Services_Twilio_Rest_Message extends Services_Twilio_InstanceResource { protected function init($client, $uri) { $this->setupSubresources( 'media' ); } public function redact() { $postParams = array('Body' => ''); self::update($postParams); } }
abbyacakadud/Twillio-PHP-Send-SMS
Services/Twilio/Rest/Message.php
PHP
mit
1,167
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.combined",[],t):"object"==typeof exports?exports["pdfjs-dist/build/pdf.combined"]=t():e["pdfjs-dist/build/pdf.combined"]=e.pdfjsDistBuildPdfCombined=t()}(this,function(){return function(e){function t(a){if(r[a])return r[a].exports;var i=r[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,r,a){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=48)}([function(e,t,r){"use strict";(function(e){function a(e){E>=I.warnings&&console.log("Warning: "+e)}function i(e){throw E>=I.errors&&(console.log("Error: "+e),console.log(n())),new Error(e)}function n(){try{throw new Error}catch(e){return e.stack?e.stack.split("\n").slice(2).join("\n"):""}}function o(e,t){e||i(t)}function s(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function c(e){o("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,r=new Uint8Array(t),a=0;a<t;++a)r[a]=255&e.charCodeAt(a);return r}function l(e){return void 0!==e.length?e.length:(o(void 0!==e.byteLength),e.byteLength)}function h(e){return"number"==typeof e&&(0|e)===e}function u(){var e={};return e.promise=new Promise(function(t,r){e.resolve=t,e.reject=r}),e}function d(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e?new Promise(function(a,i){a(e.apply(r,t))}):Promise.resolve(void 0)}function f(e,t,r){t?e.resolve():e.reject(r)}function g(e){return Promise.resolve(e).catch(function(){})}function p(e,t,r){var a=this;this.sourceName=e,this.targetName=t,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null);var n=this.callbacksCapabilities=Object.create(null),o=this.actionHandler=Object.create(null);this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===a.sourceName)if(t.stream)a._processStreamMessage(t);else if(t.isReply){var s=t.callbackId;if(t.callbackId in n){var c=n[s];delete n[s],"error"in t?c.reject(t.error):c.resolve(t.data)}else i("Cannot resolve callback "+s)}else if(t.action in o){var l=o[t.action];if(t.callbackId){var h=a.sourceName,u=t.sourceName;Promise.resolve().then(function(){return l[0].call(l[1],t.data)}).then(function(e){r.postMessage({sourceName:h,targetName:u,isReply:!0,callbackId:t.callbackId,data:e})},function(e){e instanceof Error&&(e+=""),r.postMessage({sourceName:h,targetName:u,isReply:!0,callbackId:t.callbackId,error:e})})}else t.streamId?a._createStreamSink(t):l[0].call(l[1],t.data)}else i("Unknown action from worker: "+t.action)},r.addEventListener("message",this._onComObjOnMessage)}Object.defineProperty(t,"__esModule",{value:!0}),t.warn=t.utf8StringToString=t.stringToUTF8String=t.stringToPDFString=t.stringToBytes=t.string32=t.shadow=t.setVerbosityLevel=t.ReadableStream=t.removeNullCharacters=t.readUint32=t.readUint16=t.readInt8=t.log2=t.loadJpegStream=t.isEvalSupported=t.isLittleEndian=t.createValidAbsoluteUrl=t.isSameOrigin=t.isNodeJS=t.isSpace=t.isString=t.isNum=t.isInt=t.isEmptyObj=t.isBool=t.isArrayBuffer=t.isArray=t.info=t.globalScope=t.getVerbosityLevel=t.getLookupTableFactory=t.error=t.deprecated=t.createObjectURL=t.createPromiseCapability=t.createBlob=t.bytesToString=t.assert=t.arraysToBytes=t.arrayByteLength=t.XRefParseException=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.StatTimer=t.PasswordResponses=t.PasswordException=t.PageViewport=t.NotImplementedException=t.NativeImageDecoding=t.MissingPDFException=t.MissingDataException=t.MessageHandler=t.InvalidPDFException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VERBOSITY_LEVELS=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=void 0;var m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r(49);var b=r(27),v="undefined"!=typeof window&&window.Math===Math?window:void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:void 0,y=[.001,0,0,.001,0,0],k={NONE:"none",DECODE:"decode",DISPLAY:"display"},w={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},S={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},A={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},C={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},x={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},P={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},_={UNKNOWN:0,FLATE:1,LZW:2,DCT:3,JPX:4,JBIG:5,A85:6,AHX:7,CCF:8,RL:9},T={UNKNOWN:0,TYPE1:1,TYPE1C:2,CIDFONTTYPE0:3,CIDFONTTYPE0C:4,TRUETYPE:5,CIDFONTTYPE2:6,TYPE3:7,OPENTYPE:8,TYPE0:9,MMTYPE1:10},I={errors:0,warnings:1,infos:5},R={NONE:0,BINARY:1,STREAM:2},O={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},E=I.warnings,F={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"},L={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},D=function(){function e(e,t){this.name="PasswordException",this.message=e,this.code=t}return e.prototype=new Error,e.constructor=e,e}(),M=function(){function e(e,t){this.name="UnknownErrorException",this.message=e,this.details=t}return e.prototype=new Error,e.constructor=e,e}(),B=function(){function e(e){this.name="InvalidPDFException",this.message=e}return e.prototype=new Error,e.constructor=e,e}(),N=function(){function e(e){this.name="MissingPDFException",this.message=e}return e.prototype=new Error,e.constructor=e,e}(),U=function(){function e(e,t){this.name="UnexpectedResponseException",this.message=e,this.status=t}return e.prototype=new Error,e.constructor=e,e}(),j=function(){function e(e){this.message=e}return e.prototype=new Error,e.prototype.name="NotImplementedException",e.constructor=e,e}(),q=function(){function e(e,t){this.begin=e,this.end=t,this.message="Missing data ["+e+", "+t+")"}return e.prototype=new Error,e.prototype.name="MissingDataException",e.constructor=e,e}(),z=function(){function e(e){this.message=e}return e.prototype=new Error,e.prototype.name="XRefParseException",e.constructor=e,e}(),G=/\x00/g,H=[1,0,0,1,0,0],W=function(){function e(){}var t=["rgb(",0,",",0,",",0,")"];e.makeCssRgb=function(e,r,a){return t[1]=e,t[3]=r,t[5]=a,t.join("")},e.transform=function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]},e.applyTransform=function(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]},e.applyInverseTransform=function(e,t){var r=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]},e.getAxialAlignedBoundingBox=function(t,r){var a=e.applyTransform(t,r),i=e.applyTransform(t.slice(2,4),r),n=e.applyTransform([t[0],t[3]],r),o=e.applyTransform([t[2],t[1]],r);return[Math.min(a[0],i[0],n[0],o[0]),Math.min(a[1],i[1],n[1],o[1]),Math.max(a[0],i[0],n[0],o[0]),Math.max(a[1],i[1],n[1],o[1])]},e.inverseTransform=function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]},e.apply3dTransform=function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]},e.singularValueDecompose2dScale=function(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],a=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],n=e[2]*t[1]+e[3]*t[3],o=(r+n)/2,s=Math.sqrt((r+n)*(r+n)-4*(r*n-i*a))/2,c=o+s||1,l=o-s||1;return[Math.sqrt(c),Math.sqrt(l)]},e.normalizeRect=function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t},e.intersect=function(t,r){function a(e,t){return e-t}var i=[t[0],t[2],r[0],r[2]].sort(a),n=[t[1],t[3],r[1],r[3]].sort(a),o=[];return t=e.normalizeRect(t),r=e.normalizeRect(r),(i[0]===t[0]&&i[1]===r[0]||i[0]===r[0]&&i[1]===t[0])&&(o[0]=i[1],o[2]=i[2],(n[0]===t[1]&&n[1]===r[1]||n[0]===r[1]&&n[1]===t[1])&&(o[1]=n[1],o[3]=n[2],o))},e.sign=function(e){return e<0?-1:1};var r=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];return e.toRoman=function(e,t){o(h(e)&&e>0,"The number should be a positive integer.");for(var a,i=[];e>=1e3;)e-=1e3,i.push("M");a=e/100|0,e%=100,i.push(r[a]),a=e/10|0,e%=10,i.push(r[10+a]),i.push(r[20+e]);var n=i.join("");return t?n.toLowerCase():n},e.appendToArray=function(e,t){Array.prototype.push.apply(e,t)},e.prependToArray=function(e,t){Array.prototype.unshift.apply(e,t)},e.extendObj=function(e,t){for(var r in t)e[r]=t[r]},e.getInheritableProperty=function(e,t,r){for(;e&&!e.has(t);)e=e.get("Parent");return e?r?e.getArray(t):e.get(t):null},e.inherit=function(e,t,r){e.prototype=Object.create(t.prototype),e.prototype.constructor=e;for(var a in r)e.prototype[a]=r[a]},e.loadScript=function(e,t){var r=document.createElement("script"),a=!1;r.setAttribute("src",e),t&&(r.onload=function(){a||t(),a=!0}),document.getElementsByTagName("head")[0].appendChild(r)},e}(),X=function(){function e(e,t,r,a,i,n){this.viewBox=e,this.scale=t,this.rotation=r,this.offsetX=a,this.offsetY=i;var o,s,c,l,h=(e[2]+e[0])/2,u=(e[3]+e[1])/2;switch(r%=360,r=r<0?r+360:r){case 180:o=-1,s=0,c=0,l=1;break;case 90:o=0,s=1,c=1,l=0;break;case 270:o=0,s=-1,c=-1,l=0;break;default:o=1,s=0,c=0,l=-1}n&&(c=-c,l=-l);var d,f,g,p;0===o?(d=Math.abs(u-e[1])*t+a,f=Math.abs(h-e[0])*t+i,g=Math.abs(e[3]-e[1])*t,p=Math.abs(e[2]-e[0])*t):(d=Math.abs(h-e[0])*t+a,f=Math.abs(u-e[1])*t+i,g=Math.abs(e[2]-e[0])*t,p=Math.abs(e[3]-e[1])*t),this.transform=[o*t,s*t,c*t,l*t,d-o*t*h-c*t*u,f-s*t*h-l*t*u],this.width=g,this.height=p,this.fontScale=t}return e.prototype={clone:function(t){var r="scale"in(t=t||{})?t.scale:this.scale,a="rotation"in t?t.rotation:this.rotation;return new e(this.viewBox.slice(),r,a,this.offsetX,this.offsetY,t.dontFlip)},convertToViewportPoint:function(e,t){return W.applyTransform([e,t],this.transform)},convertToViewportRectangle:function(e){var t=W.applyTransform([e[0],e[1]],this.transform),r=W.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]},convertToPdfPoint:function(e,t){return W.applyInverseTransform([e,t],this.transform)}},e}(),V=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],Y=function(){function e(e,t,r){for(;e.length<r;)e+=t;return e}function t(){this.started=Object.create(null),this.times=[],this.enabled=!0}return t.prototype={time:function(e){this.enabled&&(e in this.started&&a("Timer is already running for "+e),this.started[e]=Date.now())},timeEnd:function(e){this.enabled&&(e in this.started||a("Timer has not been started for "+e),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e])},toString:function(){var t,r,a=this.times,i="",n=0;for(t=0,r=a.length;t<r;++t){var o=a[t].name;o.length>n&&(n=o.length)}for(t=0,r=a.length;t<r;++t){var s=a[t],c=s.end-s.start;i+=e(s.name," ",n)+" "+c+"ms\n"}return i}},t}(),J=function(e,t){if("undefined"!=typeof Blob)return new Blob([e],{type:t});throw new Error('The "Blob" constructor is not supported.')},K=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,r){if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var a=J(t,r);return URL.createObjectURL(a)}for(var i="data:"+r+";base64,",n=0,o=t.length;n<o;n+=3){var s=255&t[n],c=255&t[n+1],l=255&t[n+2],h=s>>2,u=(3&s)<<4|c>>4,d=n+1<o?(15&c)<<2|l>>6:64,f=n+2<o?63&l:64;i+=e[h]+e[u]+e[d]+e[f]}return i}}();p.prototype={on:function(e,t,r){var a=this.actionHandler;a[e]&&i('There is already an actionName called "'+e+'"'),a[e]=[t,r]},send:function(e,t,r){var a={sourceName:this.sourceName,targetName:this.targetName,action:e,data:t};this.postMessage(a,r)},sendWithPromise:function(e,t,r){var a=this.callbackId++,i={sourceName:this.sourceName,targetName:this.targetName,action:e,data:t,callbackId:a},n=u();this.callbacksCapabilities[a]=n;try{this.postMessage(i,r)}catch(e){n.reject(e)}return n.promise},sendWithStream:function(e,t,r,a){var i=this,n=this.streamId++,o=this.sourceName,s=this.targetName;return new b.ReadableStream({start:function(r){var a=u();return i.streamControllers[n]={controller:r,startCall:a},i.postMessage({sourceName:o,targetName:s,action:e,streamId:n,data:t,desiredSize:r.desiredSize}),a.promise},pull:function(e){var t=u();return i.streamControllers[n].pullCall=t,i.postMessage({sourceName:o,targetName:s,stream:"pull",streamId:n,desiredSize:e.desiredSize}),t.promise},cancel:function(e){var t=u();return i.streamControllers[n].cancelCall=t,i.postMessage({sourceName:o,targetName:s,stream:"cancel",reason:e,streamId:n}),t.promise}},r)},_createStreamSink:function(e){var t=this,r=this,a=this.actionHandler[e.action],i=e.streamId,n=e.desiredSize,o=this.sourceName,s=e.sourceName,c=function(e){var r=e.stream,a=e.chunk,n=e.success,c=e.reason;t.comObj.postMessage({sourceName:o,targetName:s,stream:r,streamId:i,chunk:a,success:n,reason:c})},l={enqueue:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this.desiredSize;this.desiredSize-=t,r>0&&this.desiredSize<=0&&(this.sinkCapability=u(),this.ready=this.sinkCapability.promise),c({stream:"enqueue",chunk:e})},close:function(){c({stream:"close"}),delete r.streamSinks[i]},error:function(e){c({stream:"error",reason:e})},sinkCapability:u(),onPull:null,onCancel:null,desiredSize:n,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[i]=l,d(a[0],[e.data,l],a[1]).then(function(){c({stream:"start_complete",success:!0})},function(e){c({stream:"start_complete",success:!1,reason:e})})},_processStreamMessage:function(e){var t=this,r=this.sourceName,a=e.sourceName,i=e.streamId,n=function(e){var n=e.stream,o=e.success,s=e.reason;t.comObj.postMessage({sourceName:r,targetName:a,stream:n,success:o,streamId:i,reason:s})},o=function(){Promise.all([t.streamControllers[e.streamId].startCall,t.streamControllers[e.streamId].pullCall,t.streamControllers[e.streamId].cancelCall].map(function(e){return e&&g(e.promise)})).then(function(){delete t.streamControllers[e.streamId]})};switch(e.stream){case"start_complete":f(this.streamControllers[e.streamId].startCall,e.success,e.reason);break;case"pull_complete":f(this.streamControllers[e.streamId].pullCall,e.success,e.reason);break;case"pull":if(!this.streamSinks[e.streamId]){n({stream:"pull_complete",success:!0});break}this.streamSinks[e.streamId].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[e.streamId].sinkCapability.resolve(),this.streamSinks[e.streamId].desiredSize=e.desiredSize,d(this.streamSinks[e.streamId].onPull).then(function(){n({stream:"pull_complete",success:!0})},function(e){n({stream:"pull_complete",success:!1,reason:e})});break;case"enqueue":this.streamControllers[e.streamId].controller.enqueue(e.chunk);break;case"close":this.streamControllers[e.streamId].controller.close(),o();break;case"error":this.streamControllers[e.streamId].controller.error(e.reason),o();break;case"cancel_complete":f(this.streamControllers[e.streamId].cancelCall,e.success,e.reason),o();break;case"cancel":d(this.streamSinks[e.streamId].onCancel,[e.reason]).then(function(){n({stream:"cancel_complete",success:!0})},function(e){n({stream:"cancel_complete",success:!1,reason:e})}),delete this.streamSinks[e.streamId];break;default:throw new Error("Unexpected stream case")}},postMessage:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)},destroy:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}},t.FONT_IDENTITY_MATRIX=y,t.IDENTITY_MATRIX=H,t.OPS=O,t.VERBOSITY_LEVELS=I,t.UNSUPPORTED_FEATURES=F,t.AnnotationBorderStyleType=P,t.AnnotationFieldFlag=x,t.AnnotationFlag=C,t.AnnotationType=A,t.FontType=T,t.ImageKind=S,t.CMapCompressionType=R,t.InvalidPDFException=B,t.MessageHandler=p,t.MissingDataException=q,t.MissingPDFException=N,t.NativeImageDecoding=k,t.NotImplementedException=j,t.PageViewport=X,t.PasswordException=D,t.PasswordResponses=L,t.StatTimer=Y,t.StreamType=_,t.TextRenderingMode=w,t.UnexpectedResponseException=U,t.UnknownErrorException=M,t.Util=W,t.XRefParseException=z,t.arrayByteLength=l,t.arraysToBytes=function(e){if(1===e.length&&e[0]instanceof Uint8Array)return e[0];var t,r,a,i=0,n=e.length;for(t=0;t<n;t++)i+=a=l(r=e[t]);var o=0,s=new Uint8Array(i);for(t=0;t<n;t++)(r=e[t])instanceof Uint8Array||(r="string"==typeof r?c(r):new Uint8Array(r)),a=r.byteLength,s.set(r,o),o+=a;return s},t.assert=o,t.bytesToString=function(e){o(null!==e&&"object"===(void 0===e?"undefined":m(e))&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length;if(t<8192)return String.fromCharCode.apply(null,e);for(var r=[],a=0;a<t;a+=8192){var i=Math.min(a+8192,t),n=e.subarray(a,i);r.push(String.fromCharCode.apply(null,n))}return r.join("")},t.createBlob=J,t.createPromiseCapability=u,t.createObjectURL=K,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.error=i,t.getLookupTableFactory=function(e){var t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}},t.getVerbosityLevel=function(){return E},t.globalScope=v,t.info=function(e){E>=I.infos&&console.log("Info: "+e)},t.isArray=function(e){return e instanceof Array},t.isArrayBuffer=function(e){return"object"===(void 0===e?"undefined":m(e))&&null!==e&&void 0!==e.byteLength},t.isBool=function(e){return"boolean"==typeof e},t.isEmptyObj=function(e){for(var t in e)return!1;return!0},t.isInt=h,t.isNum=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSpace=function(e){return 32===e||9===e||13===e||10===e},t.isNodeJS=function(){return"undefined"==typeof __pdfjsdev_webpack__&&"object"===("undefined"==typeof process?"undefined":m(process))&&process+""=="[object process]"},t.isSameOrigin=function(e,t){try{var r=new URL(e);if(!r.origin||"null"===r.origin)return!1}catch(e){return!1}var a=new URL(t,r);return r.origin===a.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{var r=t?new URL(e,t):new URL(e);if(s(r))return r}catch(e){}return null},t.isLittleEndian=function(){var e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]},t.isEvalSupported=function(){try{return new Function(""),!0}catch(e){return!1}},t.loadJpegStream=function(e,t,r){var i=new Image;i.onload=function(){r.resolve(e,i)},i.onerror=function(){r.resolve(e,null),a("Error during JPEG image loading")},i.src=t},t.log2=function(e){for(var t=1,r=0;e>t;)t<<=1,r++;return r},t.readInt8=function(e,t){return e[t]<<24>>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.removeNullCharacters=function(e){return"string"!=typeof e?(a("The argument for removeNullCharacters must be a string."),e):e.replace(G,"")},t.ReadableStream=b.ReadableStream,t.setVerbosityLevel=function(e){E=e},t.shadow=function(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r},t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=c,t.stringToPDFString=function(e){var t,r=e.length,a=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;t<r;t+=2)a.push(String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1)));else for(t=0;t<r;++t){var i=V[e.charCodeAt(t)];a.push(i?String.fromCharCode(i):e.charAt(t))}return a.join("")},t.stringToUTF8String=function(e){return decodeURIComponent(escape(e))},t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=a}).call(t,r(13))},function(e,t,r){"use strict";function a(e,t){return e instanceof l&&(void 0===t||e.name===t)}function i(e,t){return e instanceof u&&(void 0===t||a(e.get("Type"),t))}function n(e){return e instanceof d}Object.defineProperty(t,"__esModule",{value:!0}),t.isStream=t.isRefsEqual=t.isRef=t.isName=t.isDict=t.isCmd=t.isEOF=t.RefSetCache=t.RefSet=t.Ref=t.Name=t.Dict=t.Cmd=t.EOF=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=r(0),c={},l=function(){function e(e){this.name=e}e.prototype={};var t=Object.create(null);return e.get=function(r){var a=t[r];return a||(t[r]=new e(r))},e}(),h=function(){function e(e){this.cmd=e}e.prototype={};var t=Object.create(null);return e.get=function(r){var a=t[r];return a||(t[r]=new e(r))},e}(),u=function(){function e(e){this.map=Object.create(null),this.xref=e,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=t}var t=function(){return t};return e.prototype={assignXref:function(e){this.xref=e},get:function(e,t,r){var a,i=this.xref,n=this.suppressEncryption;return void 0!==(a=this.map[e])||e in this.map||void 0===t?i?i.fetchIfRef(a,n):a:void 0!==(a=this.map[t])||t in this.map||void 0===r?i?i.fetchIfRef(a,n):a:(a=this.map[r]||null,i?i.fetchIfRef(a,n):a)},getAsync:function(e,t,r){var a,i=this.xref,n=this.suppressEncryption;return void 0!==(a=this.map[e])||e in this.map||void 0===t?i?i.fetchIfRefAsync(a,n):Promise.resolve(a):void 0!==(a=this.map[t])||t in this.map||void 0===r?i?i.fetchIfRefAsync(a,n):Promise.resolve(a):(a=this.map[r]||null,i?i.fetchIfRefAsync(a,n):Promise.resolve(a))},getArray:function(e,t,r){var a=this.get(e,t,r),i=this.xref,o=this.suppressEncryption;if(!(0,s.isArray)(a)||!i)return a;for(var c=0,l=(a=a.slice()).length;c<l;c++)n(a[c])&&(a[c]=i.fetch(a[c],o));return a},getRaw:function(e){return this.map[e]},getKeys:function(){return Object.keys(this.map)},set:function(e,t){this.map[e]=t},has:function(e){return e in this.map},forEach:function(e){for(var t in this.map)e(t,this.get(t))}},e.empty=new e(null),e.merge=function(t,r){for(var a=new e(t),n=0,o=r.length;n<o;n++){var s=r[n];if(i(s))for(var c in s.map)a.map[c]||(a.map[c]=s.map[c])}return a},e}(),d=function(){function e(e,t){this.num=e,this.gen=t}return e.prototype={toString:function(){var e=this.num+"R";return 0!==this.gen&&(e+=this.gen),e}},e}(),f=function(){function e(){this.dict=Object.create(null)}return e.prototype={has:function(e){return e.toString()in this.dict},put:function(e){this.dict[e.toString()]=!0},remove:function(e){delete this.dict[e.toString()]}},e}(),g=function(){function e(){this.dict=Object.create(null)}return e.prototype={get:function(e){return this.dict[e.toString()]},has:function(e){return e.toString()in this.dict},put:function(e,t){this.dict[e.toString()]=t},putAlias:function(e,t){this.dict[e.toString()]=this.get(t)},forEach:function(e,t){for(var r in this.dict)e.call(t,this.dict[r])},clear:function(){this.dict=Object.create(null)}},e}();t.EOF=c,t.Cmd=h,t.Dict=u,t.Name=l,t.Ref=d,t.RefSet=f,t.RefSetCache=g,t.isEOF=function(e){return e===c},t.isCmd=function(e,t){return e instanceof h&&(void 0===t||e.cmd===t)},t.isDict=i,t.isName=a,t.isRef=n,t.isRefsEqual=function(e,t){return e.num===t.num&&e.gen===t.gen},t.isStream=function(e){return"object"===(void 0===e?"undefined":o(e))&&null!==e&&void 0!==e.getBytes}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=t.StringStream=t.StreamsSequenceStream=t.Stream=t.RunLengthStream=t.PredictorStream=t.NullStream=t.JpxStream=t.JpegStream=t.Jbig2Stream=t.FlateStream=t.DecodeStream=t.DecryptStream=t.CCITTFaxStream=t.AsciiHexStream=t.Ascii85Stream=void 0;var a=r(0),i=r(1),n=r(36),o=r(37),s=r(19),c=function(){function e(e,t,r,a){this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+r||this.bytes.length,this.dict=a}return e.prototype={get length(){return this.end-this.start},get isEmpty(){return 0===this.length},getByte:function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes:function(e){var t=this.bytes,r=this.pos,a=this.end;if(!e)return t.subarray(r,a);var i=r+e;return i>a&&(i=a),this.pos=i,t.subarray(r,i)},peekByte:function(){var e=this.getByte();return this.pos--,e},peekBytes:function(e){var t=this.getBytes(e);return this.pos-=t.length,t},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=this.start},moveStart:function(){this.start=this.pos},makeSubStream:function(t,r,a){return new e(this.bytes.buffer,t,r,a)}},e}(),l=function(){function e(e){for(var t=e.length,r=new Uint8Array(t),a=0;a<t;++a)r[a]=e.charCodeAt(a);c.call(this,r)}return e.prototype=c.prototype,e}(),h=function(){function e(e){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=t,this.minBufferLength=512,e)for(;this.minBufferLength<e;)this.minBufferLength*=2}var t=new Uint8Array(0);return e.prototype={get isEmpty(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength},ensureBuffer:function(e){var t=this.buffer;if(e<=t.byteLength)return t;for(var r=this.minBufferLength;r<e;)r*=2;var a=new Uint8Array(r);return a.set(t),this.buffer=a},getByte:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes:function(e){var t,r=this.pos;if(e){for(this.ensureBuffer(r+e),t=r+e;!this.eof&&this.bufferLength<t;)this.readBlock();var a=this.bufferLength;t>a&&(t=a)}else{for(;!this.eof;)this.readBlock();t=this.bufferLength}return this.pos=t,this.buffer.subarray(r,t)},peekByte:function(){var e=this.getByte();return this.pos--,e},peekBytes:function(e){var t=this.getBytes(e);return this.pos-=t.length,t},makeSubStream:function(e,t,r){for(var a=e+t;this.bufferLength<=a&&!this.eof;)this.readBlock();return new c(this.buffer,e,t,r)},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=0},getBaseStreams:function(){return this.str&&this.str.getBaseStreams?this.str.getBaseStreams():[]}},e}(),u=function(){function e(e){this.streams=e,h.call(this,null)}return e.prototype=Object.create(h.prototype),e.prototype.readBlock=function(){var e=this.streams;if(0!==e.length){var t=e.shift().getBytes(),r=this.bufferLength,a=r+t.length;this.ensureBuffer(a).set(t,r),this.bufferLength=a}else this.eof=!0},e.prototype.getBaseStreams=function(){for(var e=[],t=0,r=this.streams.length;t<r;t++){var i=this.streams[t];i.getBaseStreams&&a.Util.appendToArray(e,i.getBaseStreams())}return e},e}(),d=function(){function e(e,t){this.str=e,this.dict=e.dict;var r=e.getByte(),i=e.getByte();-1!==r&&-1!==i||(0,a.error)("Invalid header in flate stream: "+r+", "+i),8!=(15&r)&&(0,a.error)("Unknown compression method in flate stream: "+r+", "+i),((r<<8)+i)%31!=0&&(0,a.error)("Bad FCHECK in flate stream: "+r+", "+i),32&i&&(0,a.error)("FDICT bit set in flate stream: "+r+", "+i),this.codeSize=0,this.codeBuf=0,h.call(this,t)}var t=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),i=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),n=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],o=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return e.prototype=Object.create(h.prototype),e.prototype.getBits=function(e){for(var t,r=this.str,i=this.codeSize,n=this.codeBuf;i<e;)-1===(t=r.getByte())&&(0,a.error)("Bad encoding in flate stream"),n|=t<<i,i+=8;return t=n&(1<<e)-1,this.codeBuf=n>>e,this.codeSize=i-=e,t},e.prototype.getCode=function(e){for(var t,r=this.str,i=e[0],n=e[1],o=this.codeSize,s=this.codeBuf;o<n&&-1!==(t=r.getByte());)s|=t<<o,o+=8;var c=i[s&(1<<n)-1],l=c>>16,h=65535&c;return(l<1||o<l)&&(0,a.error)("Bad encoding in flate stream"),this.codeBuf=s>>l,this.codeSize=o-l,h},e.prototype.generateHuffmanTable=function(e){var t,r=e.length,a=0;for(t=0;t<r;++t)e[t]>a&&(a=e[t]);for(var i=1<<a,n=new Int32Array(i),o=1,s=0,c=2;o<=a;++o,s<<=1,c<<=1)for(var l=0;l<r;++l)if(e[l]===o){var h=0,u=s;for(t=0;t<o;++t)h=h<<1|1&u,u>>=1;for(t=h;t<i;t+=c)n[t]=o<<16|l;++s}return[n,a]},e.prototype.readBlock=function(){var e,s,c=this.str,l=this.getBits(3);if(1&l&&(this.eof=!0),0!==(l>>=1)){var h,u;if(1===l)h=n,u=o;else if(2===l){var d,f=this.getBits(5)+257,g=this.getBits(5)+1,p=this.getBits(4)+4,m=new Uint8Array(t.length);for(d=0;d<p;++d)m[t[d]]=this.getBits(3);var b=this.generateHuffmanTable(m);s=0,d=0;for(var v,y,k,w=f+g,S=new Uint8Array(w);d<w;){var A=this.getCode(b);if(16===A)v=2,y=3,k=s;else if(17===A)v=3,y=3,k=s=0;else{if(18!==A){S[d++]=s=A;continue}v=7,y=11,k=s=0}for(var C=this.getBits(v)+y;C-- >0;)S[d++]=k}h=this.generateHuffmanTable(S.subarray(0,f)),u=this.generateHuffmanTable(S.subarray(f,w))}else(0,a.error)("Unknown block type in flate stream");for(var x=(e=this.buffer)?e.length:0,P=this.bufferLength;;){var _=this.getCode(h);if(_<256)P+1>=x&&(x=(e=this.ensureBuffer(P+1)).length),e[P++]=_;else{if(256===_)return void(this.bufferLength=P);var T=(_=r[_-=257])>>16;T>0&&(T=this.getBits(T)),s=(65535&_)+T,_=this.getCode(u),(T=(_=i[_])>>16)>0&&(T=this.getBits(T));var I=(65535&_)+T;P+s>=x&&(x=(e=this.ensureBuffer(P+s)).length);for(var R=0;R<s;++R,++P)e[P]=e[P-I]}}}else{var O;-1===(O=c.getByte())&&(0,a.error)("Bad block header in flate stream");var E=O;-1===(O=c.getByte())&&(0,a.error)("Bad block header in flate stream"),E|=O<<8,-1===(O=c.getByte())&&(0,a.error)("Bad block header in flate stream");var F=O;-1===(O=c.getByte())&&(0,a.error)("Bad block header in flate stream"),(F|=O<<8)===(65535&~E)||0===E&&0===F||(0,a.error)("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var L=this.bufferLength;e=this.ensureBuffer(L+E);var D=L+E;if(this.bufferLength=D,0===E)-1===c.peekByte()&&(this.eof=!0);else for(var M=L;M<D;++M){if(-1===(O=c.getByte())){this.eof=!0;break}e[M]=O}}},e}(),f=function(){function e(e,t,r){if(!(0,i.isDict)(r))return e;var n=this.predictor=r.get("Predictor")||1;if(n<=1)return e;2!==n&&(n<10||n>15)&&(0,a.error)("Unsupported predictor: "+n),this.readBlock=2===n?this.readBlockTiff:this.readBlockPng,this.str=e,this.dict=e.dict;var o=this.colors=r.get("Colors")||1,s=this.bits=r.get("BitsPerComponent")||8,c=this.columns=r.get("Columns")||1;return this.pixBytes=o*s+7>>3,this.rowBytes=c*o*s+7>>3,h.call(this,t),this}return e.prototype=Object.create(h.prototype),e.prototype.readBlockTiff=function(){var e=this.rowBytes,t=this.bufferLength,r=this.ensureBuffer(t+e),a=this.bits,i=this.colors,n=this.str.getBytes(e);if(this.eof=!n.length,!this.eof){var o,s=0,c=0,l=0,h=0,u=t;if(1===a&&1===i)for(o=0;o<e;++o){var d=n[o]^s;d^=d>>1,d^=d>>2,s=(1&(d^=d>>4))<<7,r[u++]=d}else if(8===a){for(o=0;o<i;++o)r[u++]=n[o];for(;o<e;++o)r[u]=r[u-i]+n[o],u++}else{var f=new Uint8Array(i+1),g=(1<<a)-1,p=0,m=t,b=this.columns;for(o=0;o<b;++o)for(var v=0;v<i;++v)l<a&&(s=s<<8|255&n[p++],l+=8),f[v]=f[v]+(s>>l-a)&g,l-=a,c=c<<a|f[v],(h+=a)>=8&&(r[m++]=c>>h-8&255,h-=8);h>0&&(r[m++]=(c<<8-h)+(s&(1<<8-h)-1))}this.bufferLength+=e}},e.prototype.readBlockPng=function(){var e=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),i=this.str.getBytes(e);if(this.eof=!i.length,!this.eof){var n=this.bufferLength,o=this.ensureBuffer(n+e),s=o.subarray(n-e,n);0===s.length&&(s=new Uint8Array(e));var c,l,h,u=n;switch(r){case 0:for(c=0;c<e;++c)o[u++]=i[c];break;case 1:for(c=0;c<t;++c)o[u++]=i[c];for(;c<e;++c)o[u]=o[u-t]+i[c]&255,u++;break;case 2:for(c=0;c<e;++c)o[u++]=s[c]+i[c]&255;break;case 3:for(c=0;c<t;++c)o[u++]=(s[c]>>1)+i[c];for(;c<e;++c)o[u]=(s[c]+o[u-t]>>1)+i[c]&255,u++;break;case 4:for(c=0;c<t;++c)l=s[c],h=i[c],o[u++]=l+h;for(;c<e;++c){l=s[c];var d=s[c-t],f=o[u-t],g=f+l-d,p=g-f;p<0&&(p=-p);var m=g-l;m<0&&(m=-m);var b=g-d;b<0&&(b=-b),h=i[c],o[u++]=p<=m&&p<=b?f+h:m<=b?l+h:d+h}break;default:(0,a.error)("Unsupported predictor: "+r)}this.bufferLength+=e}},e}(),g=function(){function e(e,t,r,a){for(var i;-1!==(i=e.getByte());)if(255===i){e.skip(-1);break}this.stream=e,this.maybeLength=t,this.dict=r,this.params=a,h.call(this,t)}return e.prototype=Object.create(h.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){if(!this.bufferLength){var t=new o.JpegImage,r=this.dict.getArray("Decode","D");if(this.forceRGB&&(0,a.isArray)(r)){for(var n=this.dict.get("BitsPerComponent")||8,s=r.length,c=new Int32Array(s),l=!1,h=(1<<n)-1,u=0;u<s;u+=2)c[u]=256*(r[u+1]-r[u])|0,c[u+1]=r[u]*h|0,256===c[u]&&0===c[u+1]||(l=!0);l&&(t.decodeTransform=c)}if((0,i.isDict)(this.params)){var d=this.params.get("ColorTransform");(0,a.isInt)(d)&&(t.colorTransform=d)}t.parse(this.bytes);var f=t.getData(this.drawWidth,this.drawHeight,this.forceRGB);this.buffer=f,this.bufferLength=f.length,this.eof=!0}},e.prototype.getBytes=function(e){return this.ensureBuffer(),this.buffer},e.prototype.getIR=function(e){return(0,a.createObjectURL)(this.bytes,"image/jpeg",e)},e}(),p=function(){function e(e,t,r,a){this.stream=e,this.maybeLength=t,this.dict=r,this.params=a,h.call(this,t)}return e.prototype=Object.create(h.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){if(!this.bufferLength){var t=new s.JpxImage;t.parse(this.bytes);var r=t.width,a=t.height,i=t.componentsCount,n=t.tiles.length;if(1===n)this.buffer=t.tiles[0].items;else{for(var o=new Uint8Array(r*a*i),c=0;c<n;c++)for(var l=t.tiles[c],h=l.width,u=l.height,d=l.left,f=l.top,g=l.items,p=0,m=(r*f+d)*i,b=r*i,v=h*i,y=0;y<u;y++){var k=g.subarray(p,p+v);o.set(k,m),p+=v,m+=b}this.buffer=o}this.bufferLength=this.buffer.length,this.eof=!0}},e}(),m=function(){function e(e,t,r,a){this.stream=e,this.maybeLength=t,this.dict=r,this.params=a,h.call(this,t)}return e.prototype=Object.create(h.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){if(!this.bufferLength){var t=new n.Jbig2Image,r=[];if((0,i.isDict)(this.params)){var a=this.params.get("JBIG2Globals");if((0,i.isStream)(a)){var o=a.getBytes();r.push({data:o,start:0,end:o.length})}}r.push({data:this.bytes,start:0,end:this.bytes.length});for(var s=t.parseChunks(r),c=s.length,l=0;l<c;l++)s[l]^=255;this.buffer=s,this.bufferLength=c,this.eof=!0}},e}(),b=function(){function e(e,t,r){this.str=e,this.dict=e.dict,this.decrypt=r,this.nextChunk=null,this.initialized=!1,h.call(this,t)}return e.prototype=Object.create(h.prototype),e.prototype.readBlock=function(){var e;if(this.initialized?e=this.nextChunk:(e=this.str.getBytes(512),this.initialized=!0),e&&0!==e.length){this.nextChunk=this.str.getBytes(512);var t=this.nextChunk&&this.nextChunk.length>0;e=(0,this.decrypt)(e,!t);var r,a=this.bufferLength,i=e.length,n=this.ensureBuffer(a+i);for(r=0;r<i;r++)n[a++]=e[r];this.bufferLength=a}else this.eof=!0},e}(),v=function(){function e(e,t){this.str=e,this.dict=e.dict,this.input=new Uint8Array(5),t&&(t*=.8),h.call(this,t)}return e.prototype=Object.create(h.prototype),e.prototype.readBlock=function(){for(var e=this.str,t=e.getByte();(0,a.isSpace)(t);)t=e.getByte();if(-1!==t&&126!==t){var r,i,n=this.bufferLength;if(122===t){for(r=this.ensureBuffer(n+4),i=0;i<4;++i)r[n+i]=0;this.bufferLength+=4}else{var o=this.input;for(o[0]=t,i=1;i<5;++i){for(t=e.getByte();(0,a.isSpace)(t);)t=e.getByte();if(o[i]=t,-1===t||126===t)break}if(r=this.ensureBuffer(n+i-1),this.bufferLength+=i-1,i<5){for(;i<5;++i)o[i]=117;this.eof=!0}var s=0;for(i=0;i<5;++i)s=85*s+(o[i]-33);for(i=3;i>=0;--i)r[n+i]=255&s,s>>=8}}else this.eof=!0},e}(),y=function(){function e(e,t){this.str=e,this.dict=e.dict,this.firstDigit=-1,t&&(t*=.5),h.call(this,t)}return e.prototype=Object.create(h.prototype),e.prototype.readBlock=function(){var e=this.str.getBytes(8e3);if(e.length){for(var t=e.length+1>>1,r=this.ensureBuffer(this.bufferLength+t),a=this.bufferLength,i=this.firstDigit,n=0,o=e.length;n<o;n++){var s,c=e[n];if(c>=48&&c<=57)s=15&c;else{if(!(c>=65&&c<=70||c>=97&&c<=102)){if(62===c){this.eof=!0;break}continue}s=9+(15&c)}i<0?i=s:(r[a++]=i<<4|s,i=-1)}i>=0&&this.eof&&(r[a++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=a}else this.eof=!0},e}(),k=function(){function e(e,t){this.str=e,this.dict=e.dict,h.call(this,t)}return e.prototype=Object.create(h.prototype),e.prototype.readBlock=function(){var e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])this.eof=!0;else{var t,r=this.bufferLength,a=e[0];if(a<128){if(t=this.ensureBuffer(r+a+1),t[r++]=e[1],a>0){var i=this.str.getBytes(a);t.set(i,r),r+=a}}else{a=257-a;var n=e[1];t=this.ensureBuffer(r+a+1);for(var o=0;o<a;o++)t[r++]=n}this.bufferLength=r}},e}(),w=function(){function e(e,t,r){this.str=e,this.dict=e.dict,r=r||i.Dict.empty,this.encoding=r.get("K")||0,this.eoline=r.get("EndOfLine")||!1,this.byteAlign=r.get("EncodedByteAlign")||!1,this.columns=r.get("Columns")||1728,this.rows=r.get("Rows")||0;var a=r.get("EndOfBlock");null!==a&&void 0!==a||(a=!0),this.eoblock=a,this.black=r.get("BlackIs1")||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0;for(var n;0===(n=this.lookBits(12));)this.eatBits(1);1===n&&this.eatBits(12),this.encoding>0&&(this.nextLine2D=!this.lookBits(1),this.eatBits(1)),h.call(this,t)}var t=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],r=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],n=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],o=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],s=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],c=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];return e.prototype=Object.create(h.prototype),e.prototype.readBlock=function(){for(;!this.eof;){var e=this.lookChar();this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}},e.prototype.addPixels=function(e,t){var r=this.codingLine,i=this.codingPos;e>r[i]&&(e>this.columns&&((0,a.info)("row is wrong length"),this.err=!0,e=this.columns),1&i^t&&++i,r[i]=e),this.codingPos=i},e.prototype.addPixelsNeg=function(e,t){var r=this.codingLine,i=this.codingPos;if(e>r[i])e>this.columns&&((0,a.info)("row is wrong length"),this.err=!0,e=this.columns),1&i^t&&++i,r[i]=e;else if(e<r[i]){for(e<0&&((0,a.info)("invalid code"),this.err=!0,e=0);i>0&&e<r[i-1];)--i;r[i]=e}this.codingPos=i},e.prototype.lookChar=function(){var e,t,r,i,n=this.refLine,o=this.codingLine,s=this.columns;if(0===this.outputBits){if(this.eof)return null;this.err=!1;var c,l,h;if(this.nextLine2D){for(i=0;o[i]<s;++i)n[i]=o[i];for(n[i++]=s,n[i]=s,o[0]=0,this.codingPos=0,e=0,t=0;o[this.codingPos]<s;)switch(c=this.getTwoDimCode()){case 0:this.addPixels(n[e+1],t),n[e+1]<s&&(e+=2);break;case 1:if(c=l=0,t){do{c+=h=this.getBlackCode()}while(h>=64);do{l+=h=this.getWhiteCode()}while(h>=64)}else{do{c+=h=this.getWhiteCode()}while(h>=64);do{l+=h=this.getBlackCode()}while(h>=64)}for(this.addPixels(o[this.codingPos]+c,t),o[this.codingPos]<s&&this.addPixels(o[this.codingPos]+l,1^t);n[e]<=o[this.codingPos]&&n[e]<s;)e+=2;break;case 7:if(this.addPixels(n[e]+3,t),t^=1,o[this.codingPos]<s)for(++e;n[e]<=o[this.codingPos]&&n[e]<s;)e+=2;break;case 5:if(this.addPixels(n[e]+2,t),t^=1,o[this.codingPos]<s)for(++e;n[e]<=o[this.codingPos]&&n[e]<s;)e+=2;break;case 3:if(this.addPixels(n[e]+1,t),t^=1,o[this.codingPos]<s)for(++e;n[e]<=o[this.codingPos]&&n[e]<s;)e+=2;break;case 2:if(this.addPixels(n[e],t),t^=1,o[this.codingPos]<s)for(++e;n[e]<=o[this.codingPos]&&n[e]<s;)e+=2;break;case 8:if(this.addPixelsNeg(n[e]-3,t),t^=1,o[this.codingPos]<s)for(e>0?--e:++e;n[e]<=o[this.codingPos]&&n[e]<s;)e+=2;break;case 6:if(this.addPixelsNeg(n[e]-2,t),t^=1,o[this.codingPos]<s)for(e>0?--e:++e;n[e]<=o[this.codingPos]&&n[e]<s;)e+=2;break;case 4:if(this.addPixelsNeg(n[e]-1,t),t^=1,o[this.codingPos]<s)for(e>0?--e:++e;n[e]<=o[this.codingPos]&&n[e]<s;)e+=2;break;case-1:this.addPixels(s,0),this.eof=!0;break;default:(0,a.info)("bad 2d code"),this.addPixels(s,0),this.err=!0}}else for(o[0]=0,this.codingPos=0,t=0;o[this.codingPos]<s;){if(c=0,t)do{c+=h=this.getBlackCode()}while(h>=64);else do{c+=h=this.getWhiteCode()}while(h>=64);this.addPixels(o[this.codingPos]+c,t),t^=1}var u=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(c=this.lookBits(12),this.eoline)for(;-1!==c&&1!==c;)this.eatBits(1),c=this.lookBits(12);else for(;0===c;)this.eatBits(1),c=this.lookBits(12);1===c?(this.eatBits(12),u=!0):-1===c&&(this.eof=!0)}else this.eof=!0;if(!this.eof&&this.encoding>0&&(this.nextLine2D=!this.lookBits(1),this.eatBits(1)),this.eoblock&&u&&this.byteAlign){if(1===(c=this.lookBits(12))){if(this.eatBits(12),this.encoding>0&&(this.lookBits(1),this.eatBits(1)),this.encoding>=0)for(i=0;i<4;++i)1!==(c=this.lookBits(12))&&(0,a.info)("bad rtc code: "+c),this.eatBits(12),this.encoding>0&&(this.lookBits(1),this.eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(-1===(c=this.lookBits(13)))return this.eof=!0,null;if(c>>1==1)break;this.eatBits(1)}this.eatBits(12),this.encoding>0&&(this.eatBits(1),this.nextLine2D=!(1&c))}o[0]>0?this.outputBits=o[this.codingPos=0]:this.outputBits=o[this.codingPos=1],this.row++}var d;if(this.outputBits>=8)d=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&o[this.codingPos]<s&&(this.codingPos++,this.outputBits=o[this.codingPos]-o[this.codingPos-1]);else{r=8,d=0;do{this.outputBits>r?(d<<=r,1&this.codingPos||(d|=255>>8-r),this.outputBits-=r,r=0):(d<<=this.outputBits,1&this.codingPos||(d|=255>>8-this.outputBits),r-=this.outputBits,this.outputBits=0,o[this.codingPos]<s?(this.codingPos++,this.outputBits=o[this.codingPos]-o[this.codingPos-1]):r>0&&(d<<=r,r=0))}while(r)}return this.black&&(d^=255),d},e.prototype.findTableCode=function(e,t,r,a){for(var i=a||0,n=e;n<=t;++n){var o=this.lookBits(n);if(-1===o)return[!0,1,!1];if(n<t&&(o<<=t-n),!i||o>=i){var s=r[o-i];if(s[0]===n)return this.eatBits(n),[!0,s[1],!0]}}return[!1,0,!1]},e.prototype.getTwoDimCode=function(){var e,r=0;if(this.eoblock){if(r=this.lookBits(7),(e=t[r])&&e[0]>0)return this.eatBits(e[0]),e[1]}else{var i=this.findTableCode(1,7,t);if(i[0]&&i[2])return i[1]}return(0,a.info)("Bad two dim code"),-1},e.prototype.getWhiteCode=function(){var e,t=0;if(this.eoblock){if(-1===(t=this.lookBits(12)))return 1;if((e=t>>5==0?r[t]:n[t>>3])[0]>0)return this.eatBits(e[0]),e[1]}else{var i=this.findTableCode(1,9,n);if(i[0])return i[1];if((i=this.findTableCode(11,12,r))[0])return i[1]}return(0,a.info)("bad white code"),this.eatBits(1),1},e.prototype.getBlackCode=function(){var e,t;if(this.eoblock){if(-1===(e=this.lookBits(13)))return 1;if((t=e>>7==0?o[e]:e>>9==0&&e>>7!=0?s[(e>>1)-64]:c[e>>7])[0]>0)return this.eatBits(t[0]),t[1]}else{var r=this.findTableCode(2,6,c);if(r[0])return r[1];if((r=this.findTableCode(7,12,s,64))[0])return r[1];if((r=this.findTableCode(10,13,o))[0])return r[1]}return(0,a.info)("bad black code"),this.eatBits(1),1},e.prototype.lookBits=function(e){for(var t;this.inputBits<e;){if(-1===(t=this.str.getByte()))return 0===this.inputBits?-1:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e},e.prototype.eatBits=function(e){(this.inputBits-=e)<0&&(this.inputBits=0)},e}(),S=function(){function e(e,t,r){this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;for(var a={earlyChange:r,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(4096),dictionaryLengths:new Uint16Array(4096),dictionaryPrevCodes:new Uint16Array(4096),currentSequence:new Uint8Array(4096),currentSequenceLength:0},i=0;i<256;++i)a.dictionaryValues[i]=i,a.dictionaryLengths[i]=1;this.lzwState=a,h.call(this,t)}return e.prototype=Object.create(h.prototype),e.prototype.readBits=function(e){for(var t=this.bitsCached,r=this.cachedData;t<e;){var a=this.str.getByte();if(-1===a)return this.eof=!0,null;r=r<<8|a,t+=8}return this.bitsCached=t-=e,this.cachedData=r,this.lastCode=null,r>>>t&(1<<e)-1},e.prototype.readBlock=function(){var e,t,r,a=1024,i=this.lzwState;if(i){var n=i.earlyChange,o=i.nextCode,s=i.dictionaryValues,c=i.dictionaryLengths,l=i.dictionaryPrevCodes,h=i.codeLength,u=i.prevCode,d=i.currentSequence,f=i.currentSequenceLength,g=0,p=this.bufferLength,m=this.ensureBuffer(this.bufferLength+a);for(e=0;e<512;e++){var b=this.readBits(h),v=f>0;if(b<256)d[0]=b,f=1;else{if(!(b>=258)){if(256===b){h=9,o=258,f=0;continue}this.eof=!0,delete this.lzwState;break}if(b<o)for(t=(f=c[b])-1,r=b;t>=0;t--)d[t]=s[r],r=l[r];else d[f++]=d[0]}if(v&&(l[o]=u,c[o]=c[u]+1,s[o]=d[0],h=++o+n&o+n-1?h:0|Math.min(Math.log(o+n)/.6931471805599453+1,12)),u=b,g+=f,a<g){do{a+=512}while(a<g);m=this.ensureBuffer(this.bufferLength+a)}for(t=0;t<f;t++)m[p++]=d[t]}i.nextCode=o,i.codeLength=h,i.prevCode=u,i.currentSequenceLength=f,this.bufferLength=p}},e}(),A=function(){function e(){c.call(this,new Uint8Array(0))}return e.prototype=c.prototype,e}();t.Ascii85Stream=v,t.AsciiHexStream=y,t.CCITTFaxStream=w,t.DecryptStream=b,t.DecodeStream=h,t.FlateStream=d,t.Jbig2Stream=m,t.JpegStream=g,t.JpxStream=p,t.NullStream=A,t.PredictorStream=f,t.RunLengthStream=k,t.Stream=c,t.StreamsSequenceStream=u,t.StringStream=l,t.LZWStream=S},function(e,t,r){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){var t=o.globalScope.PDFJS;switch(e){case"pdfBug":return!!t&&t.pdfBug;case"disableAutoFetch":return!!t&&t.disableAutoFetch;case"disableStream":return!!t&&t.disableStream;case"disableRange":return!!t&&t.disableRange;case"disableFontFace":return!!t&&t.disableFontFace;case"disableCreateObjectURL":return!!t&&t.disableCreateObjectURL;case"disableWebGL":return!t||t.disableWebGL;case"cMapUrl":return t?t.cMapUrl:null;case"cMapPacked":return!!t&&t.cMapPacked;case"postMessageTransfers":return!t||t.postMessageTransfers;case"workerPort":return t?t.workerPort:null;case"workerSrc":return t?t.workerSrc:null;case"disableWorker":return!!t&&t.disableWorker;case"maxImageSize":return t?t.maxImageSize:-1;case"imageResourcesPath":return t?t.imageResourcesPath:"";case"isEvalSupported":return!t||t.isEvalSupported;case"externalLinkTarget":if(!t)return d.NONE;switch(t.externalLinkTarget){case d.NONE:case d.SELF:case d.BLANK:case d.PARENT:case d.TOP:return t.externalLinkTarget}return(0,o.warn)("PDFJS.externalLinkTarget is invalid: "+t.externalLinkTarget),t.externalLinkTarget=d.NONE,d.NONE;case"externalLinkRel":return t?t.externalLinkRel:s;case"enableStats":return!(!t||!t.enableStats);case"pdfjsNext":return!(!t||!t.pdfjsNext);default:throw new Error("Unknown default setting: "+e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.getDefaultSetting=t.LinkTarget=t.getFilenameFromUrl=t.isValidUrl=t.isExternalLinkTargetSet=t.addLinkAttributes=t.RenderingCancelledException=t.CustomStyle=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,r,a){return r&&e(t.prototype,r),a&&e(t,a),t}}(),o=r(0),s="noopener noreferrer nofollow",c=function(){function e(){a(this,e)}return n(e,[{key:"create",value:function(e,t){(0,o.assert)(e>0&&t>0,"invalid canvas size");var r=document.createElement("canvas"),a=r.getContext("2d");return r.width=e,r.height=t,{canvas:r,context:a}}},{key:"reset",value:function(e,t,r){(0,o.assert)(e.canvas,"canvas is not specified"),(0,o.assert)(t>0&&r>0,"invalid canvas size"),e.canvas.width=t,e.canvas.height=r}},{key:"destroy",value:function(e){(0,o.assert)(e.canvas,"canvas is not specified"),e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}}]),e}(),l=function(){function e(t){var r=t.baseUrl,i=void 0===r?null:r,n=t.isCompressed,o=void 0!==n&&n;a(this,e),this.baseUrl=i,this.isCompressed=o}return n(e,[{key:"fetch",value:function(e){var t=this,r=e.name;return r?new Promise(function(e,a){var i=t.baseUrl+r+(t.isCompressed?".bcmap":""),n=new XMLHttpRequest;n.open("GET",i,!0),t.isCompressed&&(n.responseType="arraybuffer"),n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE){if(200===n.status||0===n.status){var r=void 0;if(t.isCompressed&&n.response?r=new Uint8Array(n.response):!t.isCompressed&&n.responseText&&(r=(0,o.stringToBytes)(n.responseText)),r)return void e({cMapData:r,compressionType:t.isCompressed?o.CMapCompressionType.BINARY:o.CMapCompressionType.NONE})}a(new Error("Unable to load "+(t.isCompressed?"binary ":"")+"CMap at: "+i))}},n.send(null)}):Promise.reject(new Error("CMap name must be specified."))}}]),e}(),h=function(){function e(){}var t=["ms","Moz","Webkit","O"],r=Object.create(null);return e.getProp=function(e,a){if(1===arguments.length&&"string"==typeof r[e])return r[e];var i,n,o=(a=a||document.documentElement).style;if("string"==typeof o[e])return r[e]=e;n=e.charAt(0).toUpperCase()+e.slice(1);for(var s=0,c=t.length;s<c;s++)if(i=t[s]+n,"string"==typeof o[i])return r[e]=i;return r[e]="undefined"},e.setProp=function(e,t,r){var a=this.getProp(e);"undefined"!==a&&(t.style[a]=r)},e}(),u=function(){function e(e,t){this.message=e,this.type=t}return e.prototype=new Error,e.prototype.name="RenderingCancelledException",e.constructor=e,e}(),d={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4},f=["","_self","_blank","_parent","_top"];t.CustomStyle=h,t.RenderingCancelledException=u,t.addLinkAttributes=function(e,t){var r=t&&t.url;if(e.href=e.title=r?(0,o.removeNullCharacters)(r):"",r){var a=t.target;void 0===a&&(a=i("externalLinkTarget")),e.target=f[a];var n=t.rel;void 0===n&&(n=i("externalLinkRel")),e.rel=n}},t.isExternalLinkTargetSet=function(){switch(i("externalLinkTarget")){case d.NONE:return!1;case d.SELF:case d.BLANK:case d.PARENT:case d.TOP:return!0}},t.isValidUrl=function(e,t){(0,o.deprecated)("isValidUrl(), please use createValidAbsoluteUrl() instead.");var r=t?"http://example.com":null;return null!==(0,o.createValidAbsoluteUrl)(e,r)},t.getFilenameFromUrl=function(e){var t=e.indexOf("#"),r=e.indexOf("?"),a=Math.min(t>0?t:e.length,r>0?r:e.length);return e.substring(e.lastIndexOf("/",a)+1,a)},t.LinkTarget=d,t.getDefaultSetting=i,t.DEFAULT_LINK_REL=s,t.DOMCanvasFactory=c,t.DOMCMapReaderFactory=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var a=r(0),i=r(1),n=r(7),o=function(){function e(e,t,r,a,i,n,o,s){o=1!==o?0:o;var c,l,h,u,d=r/i,f=a/n,g=0,p=new Uint16Array(i),m=3*r;for(c=0;c<i;c++)p[c]=3*Math.floor(c*d);for(c=0;c<n;c++)for(h=Math.floor(c*f)*m,l=0;l<i;l++)u=h+p[l],s[g++]=e[u++],s[g++]=e[u++],s[g++]=e[u++],g+=o}function t(){(0,a.error)("should not call ColorSpace constructor")}return t.prototype={getRgb:function(e,t){var r=new Uint8Array(3);return this.getRgbItem(e,t,r,0),r},getRgbItem:function(e,t,r,i){(0,a.error)("Should not call ColorSpace.getRgbItem")},getRgbBuffer:function(e,t,r,i,n,o,s){(0,a.error)("Should not call ColorSpace.getRgbBuffer")},getOutputLength:function(e,t){(0,a.error)("Should not call ColorSpace.getOutputLength")},isPassthrough:function(e){return!1},fillRgb:function(t,r,a,i,n,o,s,c,l){var h,u,d=r*a,f=null,g=1<<s,p=a!==n||r!==i;if(this.isPassthrough(s))f=c;else if(1===this.numComps&&d>g&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){var m,b=s<=8?new Uint8Array(g):new Uint16Array(g);for(h=0;h<g;h++)b[h]=h;var v=new Uint8Array(3*g);this.getRgbBuffer(b,0,g,v,0,s,0);var y,k;if(p)for(f=new Uint8Array(3*d),k=0,h=0;h<d;++h)m=3*c[h],f[k++]=v[m],f[k++]=v[m+1],f[k++]=v[m+2];else for(y=0,h=0;h<d;++h)m=3*c[h],t[y++]=v[m],t[y++]=v[m+1],t[y++]=v[m+2],y+=l}else p?(f=new Uint8Array(3*d),this.getRgbBuffer(c,0,d,f,0,s,0)):this.getRgbBuffer(c,0,i*o,t,0,s,l);if(f)if(p)e(f,s,r,a,i,n,l,t);else for(k=0,y=0,h=0,u=i*o;h<u;h++)t[y++]=f[k++],t[y++]=f[k++],t[y++]=f[k++],y+=l},usesZeroToOneRange:!0},t.parse=function(e,r,a){var i=t.parseToIR(e,r,a);return i instanceof s?i:t.fromIR(i)},t.fromIR=function(e){var r,i,o,h=(0,a.isArray)(e)?e[0]:e;switch(h){case"DeviceGrayCS":return this.singletons.gray;case"DeviceRgbCS":return this.singletons.rgb;case"DeviceCmykCS":return this.singletons.cmyk;case"CalGrayCS":return r=e[1],i=e[2],o=e[3],new f(r,i,o);case"CalRGBCS":r=e[1],i=e[2],o=e[3];var u=e[4];return new g(r,i,o,u);case"PatternCS":var d=e[1];return d&&(d=t.fromIR(d)),new c(d);case"IndexedCS":var m=e[1],b=e[2],v=e[3];return new l(t.fromIR(m),b,v);case"AlternateCS":var y=e[1],k=e[2],w=e[3];return new s(y,t.fromIR(k),n.PDFFunction.fromIR(w));case"LabCS":r=e[1],i=e[2];var S=e[3];return new p(r,i,S);default:(0,a.error)("Unknown name "+h)}return null},t.parseToIR=function(e,r,o){if((0,i.isName)(e)){var s=o.get("ColorSpace");if((0,i.isDict)(s)){var c=s.get(e.name);c&&(e=c)}}if(e=r.fetchIfRef(e),(0,i.isName)(e))switch(e.name){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"Pattern":return["PatternCS",null];default:(0,a.error)("unrecognized colorspace "+e.name)}else if((0,a.isArray)(e)){var l,h,u,d,f,g,p=r.fetchIfRef(e[0]).name;switch(p){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"CalGray":return h=r.fetchIfRef(e[1]),d=h.getArray("WhitePoint"),f=h.getArray("BlackPoint"),g=h.get("Gamma"),["CalGrayCS",d,f,g];case"CalRGB":return["CalRGBCS",d=(h=r.fetchIfRef(e[1])).getArray("WhitePoint"),f=h.getArray("BlackPoint"),g=h.getArray("Gamma"),h.getArray("Matrix")];case"ICCBased":var m=r.fetchIfRef(e[1]).dict;if(l=m.get("N"),u=m.get("Alternate")){var b=t.parseToIR(u,r,o);if(t.fromIR(b).numComps===l)return b;(0,a.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===l)return"DeviceGrayCS";if(3===l)return"DeviceRgbCS";if(4===l)return"DeviceCmykCS";break;case"Pattern":var v=e[1]||null;return v&&(v=t.parseToIR(v,r,o)),["PatternCS",v];case"Indexed":case"I":var y=t.parseToIR(e[1],r,o),k=r.fetchIfRef(e[2])+1,w=r.fetchIfRef(e[3]);return(0,i.isStream)(w)&&(w=w.getBytes()),["IndexedCS",y,k,w];case"Separation":case"DeviceN":var S=r.fetchIfRef(e[1]);return["AlternateCS",l=(0,a.isArray)(S)?S.length:1,u=t.parseToIR(e[2],r,o),n.PDFFunction.getIR(r,r.fetchIfRef(e[3]))];case"Lab":return["LabCS",d=(h=r.fetchIfRef(e[1])).getArray("WhitePoint"),f=h.getArray("BlackPoint"),h.getArray("Range")];default:(0,a.error)('unimplemented color space object "'+p+'"')}}else(0,a.error)('unrecognized color space object: "'+e+'"');return null},t.isDefaultDecode=function(e,t){if(!(0,a.isArray)(e))return!0;if(2*t!==e.length)return(0,a.warn)("The decode map is not the correct length"),!0;for(var r=0,i=e.length;r<i;r+=2)if(0!==e[r]||1!==e[r+1])return!1;return!0},t.singletons={get gray(){return(0,a.shadow)(this,"gray",new h)},get rgb(){return(0,a.shadow)(this,"rgb",new u)},get cmyk(){return(0,a.shadow)(this,"cmyk",new d)}},t}(),s=function(){function e(e,t,r){this.name="Alternate",this.numComps=e,this.defaultColor=new Float32Array(e);for(var a=0;a<e;++a)this.defaultColor[a]=1;this.base=t,this.tintFn=r,this.tmpBuf=new Float32Array(t.numComps)}return e.prototype={getRgb:o.prototype.getRgb,getRgbItem:function(e,t,r,a){var i=this.tmpBuf;this.tintFn(e,t,i,0),this.base.getRgbItem(i,0,r,a)},getRgbBuffer:function(e,t,r,a,i,n,o){var s,c,l=this.tintFn,h=this.base,u=1/((1<<n)-1),d=h.numComps,f=h.usesZeroToOneRange,g=(h.isPassthrough(8)||!f)&&0===o,p=g?i:0,m=g?a:new Uint8Array(d*r),b=this.numComps,v=new Float32Array(b),y=new Float32Array(d);for(s=0;s<r;s++){for(c=0;c<b;c++)v[c]=e[t++]*u;if(l(v,0,y,0),f)for(c=0;c<d;c++)m[p++]=255*y[c];else h.getRgbItem(y,0,m,p),p+=d}g||h.getRgbBuffer(m,0,r,a,i,8,o)},getOutputLength:function(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)},isPassthrough:o.prototype.isPassthrough,fillRgb:o.prototype.fillRgb,isDefaultDecode:function(e){return o.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0},e}(),c=function(){function e(e){this.name="Pattern",this.base=e}return e.prototype={},e}(),l=function(){function e(e,t,r){this.name="Indexed",this.numComps=1,this.defaultColor=new Uint8Array(this.numComps),this.base=e,this.highVal=t;var n=e.numComps*t;if((0,i.isStream)(r)){this.lookup=new Uint8Array(n);var o=r.getBytes(n);this.lookup.set(o)}else if((0,a.isString)(r)){this.lookup=new Uint8Array(n);for(var s=0;s<n;++s)this.lookup[s]=r.charCodeAt(s)}else r instanceof Uint8Array||r instanceof Array?this.lookup=r:(0,a.error)("Unrecognized lookup table: "+r)}return e.prototype={getRgb:o.prototype.getRgb,getRgbItem:function(e,t,r,a){var i=this.base.numComps,n=e[t]*i;this.base.getRgbItem(this.lookup,n,r,a)},getRgbBuffer:function(e,t,r,a,i,n,o){for(var s=this.base,c=s.numComps,l=s.getOutputLength(c,o),h=this.lookup,u=0;u<r;++u){var d=e[t++]*c;s.getRgbBuffer(h,d,1,a,i,8,o),i+=l}},getOutputLength:function(e,t){return this.base.getOutputLength(e*this.base.numComps,t)},isPassthrough:o.prototype.isPassthrough,fillRgb:o.prototype.fillRgb,isDefaultDecode:function(e){return!0},usesZeroToOneRange:!0},e}(),h=function(){function e(){this.name="DeviceGray",this.numComps=1,this.defaultColor=new Float32Array(this.numComps)}return e.prototype={getRgb:o.prototype.getRgb,getRgbItem:function(e,t,r,a){var i=255*e[t]|0;i=i<0?0:i>255?255:i,r[a]=r[a+1]=r[a+2]=i},getRgbBuffer:function(e,t,r,a,i,n,o){for(var s=255/((1<<n)-1),c=t,l=i,h=0;h<r;++h){var u=s*e[c++]|0;a[l++]=u,a[l++]=u,a[l++]=u,l+=o}},getOutputLength:function(e,t){return e*(3+t)},isPassthrough:o.prototype.isPassthrough,fillRgb:o.prototype.fillRgb,isDefaultDecode:function(e){return o.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0},e}(),u=function(){function e(){this.name="DeviceRGB",this.numComps=3,this.defaultColor=new Float32Array(this.numComps)}return e.prototype={getRgb:o.prototype.getRgb,getRgbItem:function(e,t,r,a){var i=255*e[t]|0,n=255*e[t+1]|0,o=255*e[t+2]|0;r[a]=i<0?0:i>255?255:i,r[a+1]=n<0?0:n>255?255:n,r[a+2]=o<0?0:o>255?255:o},getRgbBuffer:function(e,t,r,a,i,n,o){if(8!==n||0!==o)for(var s=255/((1<<n)-1),c=t,l=i,h=0;h<r;++h)a[l++]=s*e[c++]|0,a[l++]=s*e[c++]|0,a[l++]=s*e[c++]|0,l+=o;else a.set(e.subarray(t,t+3*r),i)},getOutputLength:function(e,t){return e*(3+t)/3|0},isPassthrough:function(e){return 8===e},fillRgb:o.prototype.fillRgb,isDefaultDecode:function(e){return o.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0},e}(),d=function(){function e(e,t,r,a,i){var n=e[t+0]*r,o=e[t+1]*r,s=e[t+2]*r,c=e[t+3]*r,l=n*(-4.387332384609988*n+54.48615194189176*o+18.82290502165302*s+212.25662451639585*c-285.2331026137004)+o*(1.7149763477362134*o-5.6096736904047315*s+-17.873870861415444*c-5.497006427196366)+s*(-2.5217340131683033*s-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747)+255|0,h=n*(8.841041422036149*n+60.118027045597366*o+6.871425592049007*s+31.159100130055922*c-79.2970844816548)+o*(-15.310361306967817*o+17.575251261109482*s+131.35250912493976*c-190.9453302588951)+s*(4.444339102852739*s+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578)+255|0,u=n*(.8842522430003296*n+8.078677503112928*o+30.89978309703729*s-.23883238689178934*c-14.183576799673286)+o*(10.49593273432072*o+63.02378494754052*s+50.606957656360734*c-112.23884253719248)+s*(.03296041114873217*s+115.60384449646641*c-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367)+255|0;a[i]=l>255?255:l<0?0:l,a[i+1]=h>255?255:h<0?0:h,a[i+2]=u>255?255:u<0?0:u}function t(){this.name="DeviceCMYK",this.numComps=4,this.defaultColor=new Float32Array(this.numComps),this.defaultColor[3]=1}return t.prototype={getRgb:o.prototype.getRgb,getRgbItem:function(t,r,a,i){e(t,r,1,a,i)},getRgbBuffer:function(t,r,a,i,n,o,s){for(var c=1/((1<<o)-1),l=0;l<a;l++)e(t,r,c,i,n),r+=4,n+=3+s},getOutputLength:function(e,t){return e/4*(3+t)|0},isPassthrough:o.prototype.isPassthrough,fillRgb:o.prototype.fillRgb,isDefaultDecode:function(e){return o.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0},t}(),f=function(){function e(e,t,r){this.name="CalGray",this.numComps=1,this.defaultColor=new Float32Array(this.numComps),e||(0,a.error)("WhitePoint missing - required for color space CalGray"),t=t||[0,0,0],r=r||1,this.XW=e[0],this.YW=e[1],this.ZW=e[2],this.XB=t[0],this.YB=t[1],this.ZB=t[2],this.G=r,(this.XW<0||this.ZW<0||1!==this.YW)&&(0,a.error)("Invalid WhitePoint components for "+this.name+", no fallback available"),(this.XB<0||this.YB<0||this.ZB<0)&&((0,a.info)("Invalid BlackPoint for "+this.name+", falling back to default"),this.XB=this.YB=this.ZB=0),0===this.XB&&0===this.YB&&0===this.ZB||(0,a.warn)(this.name+", BlackPoint: XB: "+this.XB+", YB: "+this.YB+", ZB: "+this.ZB+", only default values are supported."),this.G<1&&((0,a.info)("Invalid Gamma: "+this.G+" for "+this.name+", falling back to default"),this.G=1)}function t(e,t,r,a,i,n){var o=t[r]*n,s=Math.pow(o,e.G),c=e.YW*s,l=0|Math.max(295.8*Math.pow(c,.3333333333333333)-40.8,0);a[i]=l,a[i+1]=l,a[i+2]=l}return e.prototype={getRgb:o.prototype.getRgb,getRgbItem:function(e,r,a,i){t(this,e,r,a,i,1)},getRgbBuffer:function(e,r,a,i,n,o,s){for(var c=1/((1<<o)-1),l=0;l<a;++l)t(this,e,r,i,n,c),r+=1,n+=3+s},getOutputLength:function(e,t){return e*(3+t)},isPassthrough:o.prototype.isPassthrough,fillRgb:o.prototype.fillRgb,isDefaultDecode:function(e){return o.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0},e}(),g=function(){function e(e,t,r,i){this.name="CalRGB",this.numComps=3,this.defaultColor=new Float32Array(this.numComps),e||(0,a.error)("WhitePoint missing - required for color space CalRGB"),t=t||new Float32Array(3),r=r||new Float32Array([1,1,1]),i=i||new Float32Array([1,0,0,0,1,0,0,0,1]);var n=e[0],o=e[1],s=e[2];this.whitePoint=e;var c=t[0],l=t[1],h=t[2];this.blackPoint=t,this.GR=r[0],this.GG=r[1],this.GB=r[2],this.MXA=i[0],this.MYA=i[1],this.MZA=i[2],this.MXB=i[3],this.MYB=i[4],this.MZB=i[5],this.MXC=i[6],this.MYC=i[7],this.MZC=i[8],(n<0||s<0||1!==o)&&(0,a.error)("Invalid WhitePoint components for "+this.name+", no fallback available"),(c<0||l<0||h<0)&&((0,a.info)("Invalid BlackPoint for "+this.name+" ["+c+", "+l+", "+h+"], falling back to default"),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&((0,a.info)("Invalid Gamma ["+this.GR+", "+this.GG+", "+this.GB+"] for "+this.name+", falling back to default"),this.GR=this.GG=this.GB=1),(this.MXA<0||this.MYA<0||this.MZA<0||this.MXB<0||this.MYB<0||this.MZB<0||this.MXC<0||this.MYC<0||this.MZC<0)&&((0,a.info)("Invalid Matrix for "+this.name+" ["+this.MXA+", "+this.MYA+", "+this.MZA+this.MXB+", "+this.MYB+", "+this.MZB+this.MXC+", "+this.MYC+", "+this.MZC+"], falling back to default"),this.MXA=this.MYB=this.MZC=1,this.MXB=this.MYA=this.MZA=this.MXC=this.MYC=this.MZB=0)}function t(e,t,r){r[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2],r[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2],r[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}function r(e,t,r){r[0]=1*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1*t[2]/e[2]}function i(e,t,r){r[0]=.95047*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1.08883*t[2]/e[2]}function n(e){return e<=.0031308?s(0,1,12.92*e):s(0,1,1.055*Math.pow(e,1/2.4)-.055)}function s(e,t,r){return Math.max(e,Math.min(t,r))}function c(e){return e<0?-c(-e):e>8?Math.pow((e+16)/116,3):e*k}function l(e,t,r){if(0===e[0]&&0===e[1]&&0===e[2])return r[0]=t[0],r[1]=t[1],void(r[2]=t[2]);var a=c(0),i=(1-a)/(1-c(e[0])),n=1-i,o=(1-a)/(1-c(e[1])),s=1-o,l=(1-a)/(1-c(e[2])),h=1-l;r[0]=t[0]*i+n,r[1]=t[1]*o+s,r[2]=t[2]*l+h}function h(e,a,i){if(1===e[0]&&1===e[2])return i[0]=a[0],i[1]=a[1],void(i[2]=a[2]);var n=i;t(f,a,n);var o=b;r(e,n,o),t(g,o,i)}function u(e,r,a){var n=a;t(f,r,n);var o=b;i(e,n,o),t(g,o,a)}function d(e,r,a,i,o,c){var d=s(0,1,r[a]*c),f=s(0,1,r[a+1]*c),g=s(0,1,r[a+2]*c),b=Math.pow(d,e.GR),k=Math.pow(f,e.GG),w=Math.pow(g,e.GB),S=e.MXA*b+e.MXB*k+e.MXC*w,A=e.MYA*b+e.MYB*k+e.MYC*w,C=e.MZA*b+e.MZB*k+e.MZC*w,x=v;x[0]=S,x[1]=A,x[2]=C;var P=y;h(e.whitePoint,x,P);var _=v;l(e.blackPoint,P,_);var T=y;u(m,_,T);var I=v;t(p,T,I);var R=n(I[0]),O=n(I[1]),E=n(I[2]);i[o]=Math.round(255*R),i[o+1]=Math.round(255*O),i[o+2]=Math.round(255*E)}var f=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),g=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),p=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),m=new Float32Array([1,1,1]),b=new Float32Array(3),v=new Float32Array(3),y=new Float32Array(3),k=Math.pow(24/116,3)/8;return e.prototype={getRgb:function(e,t){var r=new Uint8Array(3);return this.getRgbItem(e,t,r,0),r},getRgbItem:function(e,t,r,a){d(this,e,t,r,a,1)},getRgbBuffer:function(e,t,r,a,i,n,o){for(var s=1/((1<<n)-1),c=0;c<r;++c)d(this,e,t,a,i,s),t+=3,i+=3+o},getOutputLength:function(e,t){return e*(3+t)/3|0},isPassthrough:o.prototype.isPassthrough,fillRgb:o.prototype.fillRgb,isDefaultDecode:function(e){return o.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0},e}(),p=function(){function e(e,t,r){this.name="Lab",this.numComps=3,this.defaultColor=new Float32Array(this.numComps),e||(0,a.error)("WhitePoint missing - required for color space Lab"),t=t||[0,0,0],r=r||[-100,100,-100,100],this.XW=e[0],this.YW=e[1],this.ZW=e[2],this.amin=r[0],this.amax=r[1],this.bmin=r[2],this.bmax=r[3],this.XB=t[0],this.YB=t[1],this.ZB=t[2],(this.XW<0||this.ZW<0||1!==this.YW)&&(0,a.error)("Invalid WhitePoint components, no fallback available"),(this.XB<0||this.YB<0||this.ZB<0)&&((0,a.info)("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&((0,a.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}function t(e){return e>=6/29?e*e*e:108/841*(e-4/29)}function r(e,t,r,a){return r+e*(a-r)/t}function i(e,a,i,n,o,s){var c=a[i],l=a[i+1],h=a[i+2];!1!==n&&(c=r(c,n,0,100),l=r(l,n,e.amin,e.amax),h=r(h,n,e.bmin,e.bmax));var u,d,f,g=(c+16)/116,p=g+(l=l>e.amax?e.amax:l<e.amin?e.amin:l)/500,m=g-(h=h>e.bmax?e.bmax:h<e.bmin?e.bmin:h)/200,b=e.XW*t(p),v=e.YW*t(g),y=e.ZW*t(m);e.ZW<1?(u=3.1339*b+-1.617*v+-.4906*y,d=-.9785*b+1.916*v+.0333*y,f=.072*b+-.229*v+1.4057*y):(u=3.2406*b+-1.5372*v+-.4986*y,d=-.9689*b+1.8758*v+.0415*y,f=.0557*b+-.204*v+1.057*y),o[s]=u<=0?0:u>=1?255:255*Math.sqrt(u)|0,o[s+1]=d<=0?0:d>=1?255:255*Math.sqrt(d)|0,o[s+2]=f<=0?0:f>=1?255:255*Math.sqrt(f)|0}return e.prototype={getRgb:o.prototype.getRgb,getRgbItem:function(e,t,r,a){i(this,e,t,!1,r,a)},getRgbBuffer:function(e,t,r,a,n,o,s){for(var c=(1<<o)-1,l=0;l<r;l++)i(this,e,t,c,a,n),t+=3,n+=3+s},getOutputLength:function(e,t){return e*(3+t)/3|0},isPassthrough:o.prototype.isPassthrough,fillRgb:o.prototype.fillRgb,isDefaultDecode:function(e){return!0},usesZeroToOneRange:!1},e}();t.ColorSpace=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall"],n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"],o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"],c=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt"],l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191"];t.WinAnsiEncoding=s,t.StandardEncoding=o,t.MacRomanEncoding=n,t.SymbolSetEncoding=c,t.ZapfDingbatsEncoding=l,t.ExpertEncoding=a,t.getEncoding=function(e){switch(e){case"WinAnsiEncoding":return s;case"StandardEncoding":return o;case"MacRomanEncoding":return n;case"SymbolSetEncoding":return c;case"ZapfDingbatsEncoding":return l;case"ExpertEncoding":return a;case"MacExpertEncoding":return i;default:return null}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0;var a=r(2),i=r(0),n=r(1),o=function(){function e(e,t,r,a){this.lexer=e,this.allowStreams=t,this.xref=r,this.recoveryMode=a||!1,this.imageCache=Object.create(null),this.refill()}return e.prototype={refill:function(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()},shift:function(){(0,n.isCmd)(this.buf2,"ID")?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())},tryShift:function(){try{return this.shift(),!0}catch(e){if(e instanceof i.MissingDataException)throw e;return!1}},getObj:function(e){var t=this.buf1;if(this.shift(),t instanceof n.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":for(var r=[];!(0,n.isCmd)(this.buf1,"]")&&!(0,n.isEOF)(this.buf1);)r.push(this.getObj(e));return(0,n.isEOF)(this.buf1)?(this.recoveryMode||(0,i.error)("End of file inside array"),r):(this.shift(),r);case"<<":for(var a=new n.Dict(this.xref);!(0,n.isCmd)(this.buf1,">>")&&!(0,n.isEOF)(this.buf1);)if((0,n.isName)(this.buf1)){var o=this.buf1.name;if(this.shift(),(0,n.isEOF)(this.buf1))break;a.set(o,this.getObj(e))}else(0,i.info)("Malformed dictionary: key must be a name object"),this.shift();return(0,n.isEOF)(this.buf1)?(this.recoveryMode||(0,i.error)("End of file inside dictionary"),a):(0,n.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(a,e):a:(this.shift(),a);default:return t}if((0,i.isInt)(t)){var s=t;if((0,i.isInt)(this.buf1)&&(0,n.isCmd)(this.buf2,"R")){var c=new n.Ref(s,this.buf1);return this.shift(),this.shift(),c}return s}if((0,i.isString)(t)){var l=t;return e&&(l=e.decryptString(l)),l}return t},findDefaultInlineStreamEnd:function(e){for(var t,r,a,n,o=e.pos,s=0;-1!==(t=e.getByte());)if(0===s)s=69===t?1:0;else if(1===s)s=73===t?2:0;else if((0,i.assert)(2===s),32===t||10===t||13===t){for(a=5,n=e.peekBytes(a),r=0;r<a;r++)if(10!==(t=n[r])&&13!==t&&(t<32||t>127)){s=0;break}if(2===s)break}else s=0;return e.pos-4-o},findDCTDecodeInlineStreamEnd:function(e){for(var t,r,a,n=e.pos,o=!1;-1!==(t=e.getByte());)if(255===t){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:o=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:(r=e.getUint16())>2?e.skip(r-2):e.skip(-2)}if(o)break}return a=e.pos-n,-1===t?((0,i.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-a),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),a)},findASCII85DecodeInlineStreamEnd:function(e){for(var t,r,a=e.pos;-1!==(t=e.getByte());)if(126===t&&62===e.peekByte()){e.skip();break}return r=e.pos-a,-1===t?((0,i.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)},findASCIIHexDecodeInlineStreamEnd:function(e){for(var t,r,a=e.pos;-1!==(t=e.getByte())&&62!==t;);return r=e.pos-a,-1===t?((0,i.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)},inlineStreamSkipEI:function(e){for(var t,r=0;-1!==(t=e.getByte());)if(0===r)r=69===t?1:0;else if(1===r)r=73===t?2:0;else if(2===r)break},makeInlineImage:function(e){for(var t=this.lexer.stream,r=new n.Dict(this.xref);!(0,n.isCmd)(this.buf1,"ID")&&!(0,n.isEOF)(this.buf1);){(0,n.isName)(this.buf1)||(0,i.error)("Dictionary key must be a name object");var a=this.buf1.name;if(this.shift(),(0,n.isEOF)(this.buf1))break;r.set(a,this.getObj(e))}var o,s=r.get("Filter","F");if((0,n.isName)(s))o=s.name;else if((0,i.isArray)(s)){var c=this.xref.fetchIfRef(s[0]);(0,n.isName)(c)&&(o=c.name)}var l,h,u,d=t.pos;l="DCTDecode"===o||"DCT"===o?this.findDCTDecodeInlineStreamEnd(t):"ASCII85Decide"===o||"A85"===o?this.findASCII85DecodeInlineStreamEnd(t):"ASCIIHexDecode"===o||"AHx"===o?this.findASCIIHexDecodeInlineStreamEnd(t):this.findDefaultInlineStreamEnd(t);var f,g=t.makeSubStream(d,l,r);if(l<1e3){var p=g.getBytes();g.reset();var m=1,b=0;for(h=0,u=p.length;h<u;++h)b+=m+=255&p[h];if(f=b%65521<<16|m%65521,this.imageCache.adler32===f)return this.buf2=n.Cmd.get("EI"),this.shift(),this.imageCache[f].reset(),this.imageCache[f]}return e&&(g=e.createStream(g,l)),g=this.filter(g,r,l),g.dict=r,void 0!==f&&(g.cacheKey="inline_"+l+"_"+f,this.imageCache[f]=g),this.buf2=n.Cmd.get("EI"),this.shift(),g},makeStream:function(e,t){var r=this.lexer,a=r.stream;r.skipToNextLine();var o=a.pos-1,s=e.get("Length");if((0,i.isInt)(s)||((0,i.info)("Bad "+s+" attribute in stream"),s=0),a.pos=o+s,r.nextChar(),this.tryShift()&&(0,n.isCmd)(this.buf2,"endstream"))this.shift();else{a.pos=o;for(var c,l,h=[101,110,100,115,116,114,101,97,109],u=0,d=!1;a.pos<a.end;){var f=a.peekBytes(2048),g=f.length-9;if(g<=0)break;for(d=!1,c=0;c<g;){for(l=0;l<9&&f[c+l]===h[l];)l++;if(l>=9){d=!0;break}c++}if(d){u+=c,a.pos+=c;break}u+=g,a.pos+=g}d||(0,i.error)("Missing endstream"),s=u,r.nextChar(),this.shift(),this.shift()}return this.shift(),a=a.makeSubStream(o,s,e),t&&(a=t.createStream(a,s)),a=this.filter(a,e,s),a.dict=e,a},filter:function(e,t,r){var a=t.get("Filter","F"),o=t.get("DecodeParms","DP");if((0,n.isName)(a))return(0,i.isArray)(o)&&(o=this.xref.fetchIfRef(o[0])),this.makeFilter(e,a.name,r,o);var s=r;if((0,i.isArray)(a))for(var c=a,l=o,h=0,u=c.length;h<u;++h)a=this.xref.fetchIfRef(c[h]),(0,n.isName)(a)||(0,i.error)("Bad filter name: "+a),o=null,(0,i.isArray)(l)&&h in l&&(o=this.xref.fetchIfRef(l[h])),e=this.makeFilter(e,a.name,s,o),s=null;return e},makeFilter:function(e,t,r,n){if(0===r)return(0,i.warn)('Empty "'+t+'" stream.'),new a.NullStream(e);try{var o=this.xref.stats.streamTypes;if("FlateDecode"===t||"Fl"===t)return o[i.StreamType.FLATE]=!0,n?new a.PredictorStream(new a.FlateStream(e,r),r,n):new a.FlateStream(e,r);if("LZWDecode"===t||"LZW"===t){o[i.StreamType.LZW]=!0;var s=1;return n?(n.has("EarlyChange")&&(s=n.get("EarlyChange")),new a.PredictorStream(new a.LZWStream(e,r,s),r,n)):new a.LZWStream(e,r,s)}return"DCTDecode"===t||"DCT"===t?(o[i.StreamType.DCT]=!0,new a.JpegStream(e,r,e.dict,n)):"JPXDecode"===t||"JPX"===t?(o[i.StreamType.JPX]=!0,new a.JpxStream(e,r,e.dict,n)):"ASCII85Decode"===t||"A85"===t?(o[i.StreamType.A85]=!0,new a.Ascii85Stream(e,r)):"ASCIIHexDecode"===t||"AHx"===t?(o[i.StreamType.AHX]=!0,new a.AsciiHexStream(e,r)):"CCITTFaxDecode"===t||"CCF"===t?(o[i.StreamType.CCF]=!0,new a.CCITTFaxStream(e,r,n)):"RunLengthDecode"===t||"RL"===t?(o[i.StreamType.RL]=!0,new a.RunLengthStream(e,r)):"JBIG2Decode"===t?(o[i.StreamType.JBIG]=!0,new a.Jbig2Stream(e,r,e.dict,n)):((0,i.warn)('filter "'+t+'" not supported yet'),e)}catch(t){if(t instanceof i.MissingDataException)throw t;return(0,i.warn)('Invalid stream: "'+t+'"'),new a.NullStream(e)}}},e}(),s=function(){function e(e,t){this.stream=e,this.nextChar(),this.strBuf=[],this.knownCommands=t}function t(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var r=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];return e.prototype={nextChar:function(){return this.currentChar=this.stream.getByte()},peekChar:function(){return this.stream.peekByte()},getNumber:function(){var e=this.currentChar,t=!1,r=0,a=1;if(45===e?(a=-1,45===(e=this.nextChar())&&(e=this.nextChar())):43===e&&(e=this.nextChar()),46===e&&(r=10,e=this.nextChar()),10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);(e<48||e>57)&&(0,i.error)("Invalid number: "+String.fromCharCode(e)+" (charCode "+e+")");for(var n=e-48,o=0,s=1;(e=this.nextChar())>=0;)if(48<=e&&e<=57){var c=e-48;t?o=10*o+c:(0!==r&&(r*=10),n=10*n+c)}else if(46===e){if(0!==r)break;r=1}else if(45===e)(0,i.warn)("Badly formatted number");else{if(69!==e&&101!==e)break;if(43===(e=this.peekChar())||45===e)s=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==r&&(n/=r),t&&(n*=Math.pow(10,s*o)),a*n},getString:function(){var e=1,t=!1,r=this.strBuf;r.length=0;for(var a=this.nextChar();;){var n=!1;switch(0|a){case-1:(0,i.warn)("Unterminated string"),t=!0;break;case 40:++e,r.push("(");break;case 41:0==--e?(this.nextChar(),t=!0):r.push(")");break;case 92:switch(a=this.nextChar()){case-1:(0,i.warn)("Unterminated string"),t=!0;break;case 110:r.push("\n");break;case 114:r.push("\r");break;case 116:r.push("\t");break;case 98:r.push("\b");break;case 102:r.push("\f");break;case 92:case 40:case 41:r.push(String.fromCharCode(a));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var o=15&a;n=!0,(a=this.nextChar())>=48&&a<=55&&(o=(o<<3)+(15&a),(a=this.nextChar())>=48&&a<=55&&(n=!1,o=(o<<3)+(15&a))),r.push(String.fromCharCode(o));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:r.push(String.fromCharCode(a))}break;default:r.push(String.fromCharCode(a))}if(t)break;n||(a=this.nextChar())}return r.join("")},getName:function(){var e,a,o=this.strBuf;for(o.length=0;(e=this.nextChar())>=0&&!r[e];)if(35===e){if(e=this.nextChar(),r[e]){(0,i.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),o.push("#");break}var s=t(e);if(-1!==s){a=e;var c=t(e=this.nextChar());if(-1===c){if((0,i.warn)("Lexer_getName: Illegal digit ("+String.fromCharCode(e)+") in hexadecimal number."),o.push("#",String.fromCharCode(a)),r[e])break;o.push(String.fromCharCode(e));continue}o.push(String.fromCharCode(s<<4|c))}else o.push("#",String.fromCharCode(e))}else o.push(String.fromCharCode(e));return o.length>127&&(0,i.warn)("name token is longer than allowed by the spec: "+o.length),n.Name.get(o.join(""))},getHexString:function(){var e=this.strBuf;e.length=0;for(var a,n,o=this.currentChar,s=!0;;){if(o<0){(0,i.warn)("Unterminated hex string");break}if(62===o){this.nextChar();break}if(1!==r[o]){if(s){if(-1===(a=t(o))){(0,i.warn)('Ignoring invalid character "'+o+'" in hex string'),o=this.nextChar();continue}}else{if(-1===(n=t(o))){(0,i.warn)('Ignoring invalid character "'+o+'" in hex string'),o=this.nextChar();continue}e.push(String.fromCharCode(a<<4|n))}s=!s,o=this.nextChar()}else o=this.nextChar()}return e.join("")},getObj:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return n.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==r[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),n.Cmd.get("[");case 93:return this.nextChar(),n.Cmd.get("]");case 60:return t=this.nextChar(),60===t?(this.nextChar(),n.Cmd.get("<<")):this.getHexString();case 62:return t=this.nextChar(),62===t?(this.nextChar(),n.Cmd.get(">>")):n.Cmd.get(">");case 123:return this.nextChar(),n.Cmd.get("{");case 125:return this.nextChar(),n.Cmd.get("}");case 41:this.nextChar(),(0,i.error)("Illegal character: "+t)}for(var a=String.fromCharCode(t),o=this.knownCommands,s=o&&void 0!==o[a];(t=this.nextChar())>=0&&!r[t];){var c=a+String.fromCharCode(t);if(s&&void 0===o[c])break;128===a.length&&(0,i.error)("Command token too long: "+a.length),a=c,s=o&&void 0!==o[a]}return"true"===a||"false"!==a&&("null"===a?null:n.Cmd.get(a))},skipToNextLine:function(){for(var e=this.currentChar;e>=0;){if(13===e){10===(e=this.nextChar())&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}},e}(),c={create:function(e){function t(e,t){var r=d.get(e);if((0,i.isInt)(r)&&(t?r>=0:r>0))return r;throw new Error('The "'+e+'" parameter in the linearization dictionary is invalid.')}var r,a,c=new o(new s(e),!1,null),l=c.getObj(),h=c.getObj(),u=c.getObj(),d=c.getObj();if(!((0,i.isInt)(l)&&(0,i.isInt)(h)&&(0,n.isCmd)(u,"obj")&&(0,n.isDict)(d)&&(0,i.isNum)(r=d.get("Linearized"))&&r>0))return null;if((a=t("L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:a,hints:function(){var e,t,r=d.get("H");if((0,i.isArray)(r)&&(2===(e=r.length)||4===e)){for(var a=0;a<e;a++)if(!((0,i.isInt)(t=r[a])&&t>0))throw new Error("Hint ("+a+") in the linearization dictionary is invalid.");return r}throw new Error("Hint array in the linearization dictionary is invalid.")}(),objectNumberFirst:t("O"),endFirst:t("E"),numPages:t("N"),mainXRefEntriesOffset:t("T"),pageFirst:d.has("P")?t("P",!0):0}}};t.Lexer=s,t.Linearization=c,t.Parser=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptCompiler=t.PostScriptEvaluator=t.PDFFunction=t.isPDFFunction=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=r(0),n=r(1),o=r(43),s={getSampleArray:function(e,t,r,a){var i,n,o=1;for(i=0,n=e.length;i<n;i++)o*=e[i];o*=t;var s=new Array(o),c=0,l=0,h=1/(Math.pow(2,r)-1),u=a.getBytes((o*r+7)/8),d=0;for(i=0;i<o;i++){for(;c<r;)l<<=8,l|=u[d++],c+=8;c-=r,s[i]=(l>>c)*h,l&=(1<<c)-1}return s},getIR:function(e,t){var r=t.dict;r||(r=t);var a=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript][r.get("FunctionType")];return a||(0,i.error)("Unknown type of function"),a.call(this,t,r,e)},fromIR:function(e){switch(e[0]){case 0:return this.constructSampledFromIR(e);case 2:return this.constructInterpolatedFromIR(e);case 3:return this.constructStichedFromIR(e);default:return this.constructPostScriptFromIR(e)}},parse:function(e,t){var r=this.getIR(e,t);return this.fromIR(r)},parseArray:function(e,t){if(!(0,i.isArray)(t))return this.parse(e,t);for(var r=[],a=0,n=t.length;a<n;a++){var o=e.fetchIfRef(t[a]);r.push(s.parse(e,o))}return function(e,t,a,i){for(var n=0,o=r.length;n<o;n++)r[n](e,t,a,i+n)}},constructSampled:function(e,t){function r(e){for(var t=e.length,r=[],a=0,i=0;i<t;i+=2)r[a]=[e[i],e[i+1]],++a;return r}var a=t.getArray("Domain"),n=t.getArray("Range");a&&n||(0,i.error)("No domain or range");var o=a.length/2,s=n.length/2;a=r(a),n=r(n);var c=t.get("Size"),l=t.get("BitsPerSample"),h=t.get("Order")||1;1!==h&&(0,i.info)("No support for cubic spline interpolation: "+h);var u=t.getArray("Encode");if(!u){u=[];for(var d=0;d<o;++d)u.push(0),u.push(c[d]-1)}u=r(u);var f=t.getArray("Decode");return[0,o,a,u,f=f?r(f):n,this.getSampleArray(c,s,l,e),c,s,Math.pow(2,l)-1,n]},constructSampledFromIR:function(e){function t(e,t,r,a,i){return a+(i-a)/(r-t)*(e-t)}return function(r,a,i,n){var o,s,c=e[1],l=e[2],h=e[3],u=e[4],d=e[5],f=e[6],g=e[7],p=e[9],m=1<<c,b=new Float64Array(m),v=new Uint32Array(m);for(s=0;s<m;s++)b[s]=1;var y=g,k=1;for(o=0;o<c;++o){var w=l[o][0],S=l[o][1],A=t(Math.min(Math.max(r[a+o],w),S),w,S,h[o][0],h[o][1]),C=f[o],x=(A=Math.min(Math.max(A,0),C-1))<C-1?Math.floor(A):A-1,P=x+1-A,_=A-x,T=x*y,I=T+y;for(s=0;s<m;s++)s&k?(b[s]*=_,v[s]+=I):(b[s]*=P,v[s]+=T);y*=C,k<<=1}for(s=0;s<g;++s){var R=0;for(o=0;o<m;o++)R+=d[v[o]+s]*b[o];R=t(R,0,1,u[s][0],u[s][1]),i[n+s]=Math.min(Math.max(R,p[s][0]),p[s][1])}}},constructInterpolated:function(e,t){var r=t.getArray("C0")||[0],a=t.getArray("C1")||[1],n=t.get("N");(0,i.isArray)(r)&&(0,i.isArray)(a)||(0,i.error)("Illegal dictionary for interpolated function");for(var o=r.length,s=[],c=0;c<o;++c)s.push(a[c]-r[c]);return[2,r,s,n]},constructInterpolatedFromIR:function(e){var t=e[1],r=e[2],a=e[3],i=r.length;return function(e,n,o,s){for(var c=1===a?e[n]:Math.pow(e[n],a),l=0;l<i;++l)o[s+l]=t[l]+c*r[l]}},constructStiched:function(e,t,r){var a=t.getArray("Domain");a||(0,i.error)("No domain"),1!=a.length/2&&(0,i.error)("Bad domain for stiched function");for(var n=t.get("Functions"),o=[],c=0,l=n.length;c<l;++c)o.push(s.getIR(r,r.fetchIfRef(n[c])));return[3,a,t.getArray("Bounds"),t.getArray("Encode"),o]},constructStichedFromIR:function(e){for(var t=e[1],r=e[2],a=e[3],i=e[4],n=[],o=new Float32Array(1),c=0,l=i.length;c<l;c++)n.push(s.fromIR(i[c]));return function(e,i,s,c){for(var l=function(e,t,r){return e>r?e=r:e<t&&(e=t),e}(e[i],t[0],t[1]),h=0,u=r.length;h<u&&!(l<r[h]);++h);var d=t[0];h>0&&(d=r[h-1]);var f=t[1];h<r.length&&(f=r[h]);var g=a[2*h],p=a[2*h+1];o[0]=d===f?g:g+(l-d)*(p-g)/(f-d),n[h](o,0,s,c)}},constructPostScript:function(e,t,r){var a=t.getArray("Domain"),n=t.getArray("Range");a||(0,i.error)("No domain."),n||(0,i.error)("No range.");var s=new o.PostScriptLexer(e);return[4,a,n,new o.PostScriptParser(s).parse()]},constructPostScriptFromIR:function(e){var t=e[1],r=e[2],a=e[3],n=(new h).compile(a,t,r);if(n)return new Function("src","srcOffset","dest","destOffset",n);(0,i.info)("Unable to compile PS function");var o=r.length>>1,s=t.length>>1,c=new l(a),u=Object.create(null),d=8192,f=new Float32Array(s);return function(e,t,a,i){var n,l,h="",g=f;for(n=0;n<s;n++)l=e[t+n],g[n]=l,h+=l+"_";var p=u[h];if(void 0===p){var m=new Float32Array(o),b=c.execute(g),v=b.length-o;for(n=0;n<o;n++){l=b[v+n];var y=r[2*n];l<y?l=y:l>(y=r[2*n+1])&&(l=y),m[n]=l}d>0&&(d--,u[h]=m),a.set(m,i)}else a.set(p,i)}}},c=function(){function e(e){this.stack=e?Array.prototype.slice.call(e,0):[]}return e.prototype={push:function(e){this.stack.length>=100&&(0,i.error)("PostScript function stack overflow."),this.stack.push(e)},pop:function(){return this.stack.length<=0&&(0,i.error)("PostScript function stack underflow."),this.stack.pop()},copy:function(e){this.stack.length+e>=100&&(0,i.error)("PostScript function stack overflow.");for(var t=this.stack,r=t.length-e,a=e-1;a>=0;a--,r++)t.push(t[r])},index:function(e){this.push(this.stack[this.stack.length-e-1])},roll:function(e,t){var r,a,i,n=this.stack,o=n.length-e,s=n.length-1,c=o+(t-Math.floor(t/e)*e);for(r=o,a=s;r<a;r++,a--)i=n[r],n[r]=n[a],n[a]=i;for(r=o,a=c-1;r<a;r++,a--)i=n[r],n[r]=n[a],n[a]=i;for(r=c,a=s;r<a;r++,a--)i=n[r],n[r]=n[a],n[a]=i}},e}(),l=function(){function e(e){this.operators=e}return e.prototype={execute:function(e){for(var t,r,a,n=new c(e),o=0,s=this.operators,l=s.length;o<l;)if("number"!=typeof(t=s[o++]))switch(t){case"jz":a=n.pop(),(r=n.pop())||(o=a);break;case"j":o=r=n.pop();break;case"abs":r=n.pop(),n.push(Math.abs(r));break;case"add":a=n.pop(),r=n.pop(),n.push(r+a);break;case"and":a=n.pop(),r=n.pop(),(0,i.isBool)(r)&&(0,i.isBool)(a)?n.push(r&&a):n.push(r&a);break;case"atan":r=n.pop(),n.push(Math.atan(r));break;case"bitshift":a=n.pop(),(r=n.pop())>0?n.push(r<<a):n.push(r>>a);break;case"ceiling":r=n.pop(),n.push(Math.ceil(r));break;case"copy":r=n.pop(),n.copy(r);break;case"cos":r=n.pop(),n.push(Math.cos(r));break;case"cvi":r=0|n.pop(),n.push(r);break;case"cvr":break;case"div":a=n.pop(),r=n.pop(),n.push(r/a);break;case"dup":n.copy(1);break;case"eq":a=n.pop(),r=n.pop(),n.push(r===a);break;case"exch":n.roll(2,1);break;case"exp":a=n.pop(),r=n.pop(),n.push(Math.pow(r,a));break;case"false":n.push(!1);break;case"floor":r=n.pop(),n.push(Math.floor(r));break;case"ge":a=n.pop(),r=n.pop(),n.push(r>=a);break;case"gt":a=n.pop(),r=n.pop(),n.push(r>a);break;case"idiv":a=n.pop(),r=n.pop(),n.push(r/a|0);break;case"index":r=n.pop(),n.index(r);break;case"le":a=n.pop(),r=n.pop(),n.push(r<=a);break;case"ln":r=n.pop(),n.push(Math.log(r));break;case"log":r=n.pop(),n.push(Math.log(r)/Math.LN10);break;case"lt":a=n.pop(),r=n.pop(),n.push(r<a);break;case"mod":a=n.pop(),r=n.pop(),n.push(r%a);break;case"mul":a=n.pop(),r=n.pop(),n.push(r*a);break;case"ne":a=n.pop(),r=n.pop(),n.push(r!==a);break;case"neg":r=n.pop(),n.push(-r);break;case"not":r=n.pop(),(0,i.isBool)(r)?n.push(!r):n.push(~r);break;case"or":a=n.pop(),r=n.pop(),(0,i.isBool)(r)&&(0,i.isBool)(a)?n.push(r||a):n.push(r|a);break;case"pop":n.pop();break;case"roll":a=n.pop(),r=n.pop(),n.roll(r,a);break;case"round":r=n.pop(),n.push(Math.round(r));break;case"sin":r=n.pop(),n.push(Math.sin(r));break;case"sqrt":r=n.pop(),n.push(Math.sqrt(r));break;case"sub":a=n.pop(),r=n.pop(),n.push(r-a);break;case"true":n.push(!0);break;case"truncate":r=(r=n.pop())<0?Math.ceil(r):Math.floor(r),n.push(r);break;case"xor":a=n.pop(),r=n.pop(),(0,i.isBool)(r)&&(0,i.isBool)(a)?n.push(r!==a):n.push(r^a);break;default:(0,i.error)("Unknown operator "+t)}else n.push(t);return n.stack}},e}(),h=function(){function e(e){this.type=e}function t(t,r,a){e.call(this,"args"),this.index=t,this.min=r,this.max=a}function r(t){e.call(this,"literal"),this.number=t,this.min=t,this.max=t}function a(t,r,a,i,n){e.call(this,"binary"),this.op=t,this.arg1=r,this.arg2=a,this.min=i,this.max=n}function i(t,r){e.call(this,"max"),this.arg=t,this.min=t.min,this.max=r}function n(t,r,a){e.call(this,"var"),this.index=t,this.min=r,this.max=a}function o(t,r){e.call(this,"definition"),this.variable=t,this.arg=r}function s(){this.parts=[]}function c(e,t){return"literal"===t.type&&0===t.number?e:"literal"===e.type&&0===e.number?t:"literal"===t.type&&"literal"===e.type?new r(e.number+t.number):new a("+",e,t,e.min+t.min,e.max+t.max)}function l(e,t){if("literal"===t.type){if(0===t.number)return new r(0);if(1===t.number)return e;if("literal"===e.type)return new r(e.number*t.number)}if("literal"===e.type){if(0===e.number)return new r(0);if(1===e.number)return t}return new a("*",e,t,Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max))}function h(e,t){if("literal"===t.type){if(0===t.number)return e;if("literal"===e.type)return new r(e.number-t.number)}return"binary"===t.type&&"-"===t.op&&"literal"===e.type&&1===e.number&&"literal"===t.arg1.type&&1===t.arg1.number?t.arg2:new a("-",e,t,e.min-t.max,e.max-t.min)}function u(e,t){return e.min>=t?new r(t):e.max<=t?e:new i(e,t)}function d(){}return e.prototype.visit=function(e){throw new Error("abstract method")},t.prototype=Object.create(e.prototype),t.prototype.visit=function(e){e.visitArgument(this)},r.prototype=Object.create(e.prototype),r.prototype.visit=function(e){e.visitLiteral(this)},a.prototype=Object.create(e.prototype),a.prototype.visit=function(e){e.visitBinaryOperation(this)},i.prototype=Object.create(e.prototype),i.prototype.visit=function(e){e.visitMin(this)},n.prototype=Object.create(e.prototype),n.prototype.visit=function(e){e.visitVariable(this)},o.prototype=Object.create(e.prototype),o.prototype.visit=function(e){e.visitVariableDefinition(this)},s.prototype={visitArgument:function(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")},visitVariable:function(e){this.parts.push("v",e.index)},visitLiteral:function(e){this.parts.push(e.number)},visitBinaryOperation:function(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")},visitVariableDefinition:function(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")},visitMin:function(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")},toString:function(){return this.parts.join("")}},d.prototype={compile:function(e,a,i){var d,f,g,p,m,b,v,y,k,w,S=[],A=[],C=a.length>>1,x=i.length>>1,P=0;for(d=0;d<C;d++)S.push(new t(d,a[2*d],a[2*d+1]));for(d=0,f=e.length;d<f;d++)if("number"!=typeof(w=e[d]))switch(w){case"add":if(S.length<2)return null;b=S.pop(),m=S.pop(),S.push(c(m,b));break;case"cvr":if(S.length<1)return null;break;case"mul":if(S.length<2)return null;b=S.pop(),m=S.pop(),S.push(l(m,b));break;case"sub":if(S.length<2)return null;b=S.pop(),m=S.pop(),S.push(h(m,b));break;case"exch":if(S.length<2)return null;v=S.pop(),y=S.pop(),S.push(v,y);break;case"pop":if(S.length<1)return null;S.pop();break;case"index":if(S.length<1)return null;if("literal"!==(m=S.pop()).type)return null;if((g=m.number)<0||(0|g)!==g||S.length<g)return null;if("literal"===(v=S[S.length-g-1]).type||"var"===v.type){S.push(v);break}k=new n(P++,v.min,v.max),S[S.length-g-1]=k,S.push(k),A.push(new o(k,v));break;case"dup":if(S.length<1)return null;if("number"==typeof e[d+1]&&"gt"===e[d+2]&&e[d+3]===d+7&&"jz"===e[d+4]&&"pop"===e[d+5]&&e[d+6]===e[d+1]){m=S.pop(),S.push(u(m,e[d+1])),d+=6;break}if("literal"===(v=S[S.length-1]).type||"var"===v.type){S.push(v);break}k=new n(P++,v.min,v.max),S[S.length-1]=k,S.push(k),A.push(new o(k,v));break;case"roll":if(S.length<2)return null;if(b=S.pop(),m=S.pop(),"literal"!==b.type||"literal"!==m.type)return null;if(p=b.number,(g=m.number)<=0||(0|g)!==g||(0|p)!==p||S.length<g)return null;if(0==(p=(p%g+g)%g))break;Array.prototype.push.apply(S,S.splice(S.length-g,g-p));break;default:return null}else S.push(new r(w));if(S.length!==x)return null;var _=[];return A.forEach(function(e){var t=new s;e.visit(t),_.push(t.toString())}),S.forEach(function(e,t){var r=new s;e.visit(r);var a=i[2*t],n=i[2*t+1],o=[r.toString()];a>e.min&&(o.unshift("Math.max(",a,", "),o.push(")")),n<e.max&&(o.unshift("Math.min(",n,", "),o.push(")")),o.unshift("dest[destOffset + ",t,"] = "),o.push(";"),_.push(o.join(""))}),_.join("\n")}},d}();t.isPDFFunction=function(e){var t;if("object"!==(void 0===e?"undefined":a(e)))return!1;if((0,n.isDict)(e))t=e;else{if(!(0,n.isStream)(e))return!1;t=e.dict}return t.has("FunctionType")},t.PDFFunction=s,t.PostScriptEvaluator=l,t.PostScriptCompiler=h},function(e,t,r){"use strict";var a=r(0).getLookupTableFactory,i=a(function(e){e.A=65,e.AE=198,e.AEacute=508,e.AEmacron=482,e.AEsmall=63462,e.Aacute=193,e.Aacutesmall=63457,e.Abreve=258,e.Abreveacute=7854,e.Abrevecyrillic=1232,e.Abrevedotbelow=7862,e.Abrevegrave=7856,e.Abrevehookabove=7858,e.Abrevetilde=7860,e.Acaron=461,e.Acircle=9398,e.Acircumflex=194,e.Acircumflexacute=7844,e.Acircumflexdotbelow=7852,e.Acircumflexgrave=7846,e.Acircumflexhookabove=7848,e.Acircumflexsmall=63458,e.Acircumflextilde=7850,e.Acute=63177,e.Acutesmall=63412,e.Acyrillic=1040,e.Adblgrave=512,e.Adieresis=196,e.Adieresiscyrillic=1234,e.Adieresismacron=478,e.Adieresissmall=63460,e.Adotbelow=7840,e.Adotmacron=480,e.Agrave=192,e.Agravesmall=63456,e.Ahookabove=7842,e.Aiecyrillic=1236,e.Ainvertedbreve=514,e.Alpha=913,e.Alphatonos=902,e.Amacron=256,e.Amonospace=65313,e.Aogonek=260,e.Aring=197,e.Aringacute=506,e.Aringbelow=7680,e.Aringsmall=63461,e.Asmall=63329,e.Atilde=195,e.Atildesmall=63459,e.Aybarmenian=1329,e.B=66,e.Bcircle=9399,e.Bdotaccent=7682,e.Bdotbelow=7684,e.Becyrillic=1041,e.Benarmenian=1330,e.Beta=914,e.Bhook=385,e.Blinebelow=7686,e.Bmonospace=65314,e.Brevesmall=63220,e.Bsmall=63330,e.Btopbar=386,e.C=67,e.Caarmenian=1342,e.Cacute=262,e.Caron=63178,e.Caronsmall=63221,e.Ccaron=268,e.Ccedilla=199,e.Ccedillaacute=7688,e.Ccedillasmall=63463,e.Ccircle=9400,e.Ccircumflex=264,e.Cdot=266,e.Cdotaccent=266,e.Cedillasmall=63416,e.Chaarmenian=1353,e.Cheabkhasiancyrillic=1212,e.Checyrillic=1063,e.Chedescenderabkhasiancyrillic=1214,e.Chedescendercyrillic=1206,e.Chedieresiscyrillic=1268,e.Cheharmenian=1347,e.Chekhakassiancyrillic=1227,e.Cheverticalstrokecyrillic=1208,e.Chi=935,e.Chook=391,e.Circumflexsmall=63222,e.Cmonospace=65315,e.Coarmenian=1361,e.Csmall=63331,e.D=68,e.DZ=497,e.DZcaron=452,e.Daarmenian=1332,e.Dafrican=393,e.Dcaron=270,e.Dcedilla=7696,e.Dcircle=9401,e.Dcircumflexbelow=7698,e.Dcroat=272,e.Ddotaccent=7690,e.Ddotbelow=7692,e.Decyrillic=1044,e.Deicoptic=1006,e.Delta=8710,e.Deltagreek=916,e.Dhook=394,e.Dieresis=63179,e.DieresisAcute=63180,e.DieresisGrave=63181,e.Dieresissmall=63400,e.Digammagreek=988,e.Djecyrillic=1026,e.Dlinebelow=7694,e.Dmonospace=65316,e.Dotaccentsmall=63223,e.Dslash=272,e.Dsmall=63332,e.Dtopbar=395,e.Dz=498,e.Dzcaron=453,e.Dzeabkhasiancyrillic=1248,e.Dzecyrillic=1029,e.Dzhecyrillic=1039,e.E=69,e.Eacute=201,e.Eacutesmall=63465,e.Ebreve=276,e.Ecaron=282,e.Ecedillabreve=7708,e.Echarmenian=1333,e.Ecircle=9402,e.Ecircumflex=202,e.Ecircumflexacute=7870,e.Ecircumflexbelow=7704,e.Ecircumflexdotbelow=7878,e.Ecircumflexgrave=7872,e.Ecircumflexhookabove=7874,e.Ecircumflexsmall=63466,e.Ecircumflextilde=7876,e.Ecyrillic=1028,e.Edblgrave=516,e.Edieresis=203,e.Edieresissmall=63467,e.Edot=278,e.Edotaccent=278,e.Edotbelow=7864,e.Efcyrillic=1060,e.Egrave=200,e.Egravesmall=63464,e.Eharmenian=1335,e.Ehookabove=7866,e.Eightroman=8551,e.Einvertedbreve=518,e.Eiotifiedcyrillic=1124,e.Elcyrillic=1051,e.Elevenroman=8554,e.Emacron=274,e.Emacronacute=7702,e.Emacrongrave=7700,e.Emcyrillic=1052,e.Emonospace=65317,e.Encyrillic=1053,e.Endescendercyrillic=1186,e.Eng=330,e.Enghecyrillic=1188,e.Enhookcyrillic=1223,e.Eogonek=280,e.Eopen=400,e.Epsilon=917,e.Epsilontonos=904,e.Ercyrillic=1056,e.Ereversed=398,e.Ereversedcyrillic=1069,e.Escyrillic=1057,e.Esdescendercyrillic=1194,e.Esh=425,e.Esmall=63333,e.Eta=919,e.Etarmenian=1336,e.Etatonos=905,e.Eth=208,e.Ethsmall=63472,e.Etilde=7868,e.Etildebelow=7706,e.Euro=8364,e.Ezh=439,e.Ezhcaron=494,e.Ezhreversed=440,e.F=70,e.Fcircle=9403,e.Fdotaccent=7710,e.Feharmenian=1366,e.Feicoptic=996,e.Fhook=401,e.Fitacyrillic=1138,e.Fiveroman=8548,e.Fmonospace=65318,e.Fourroman=8547,e.Fsmall=63334,e.G=71,e.GBsquare=13191,e.Gacute=500,e.Gamma=915,e.Gammaafrican=404,e.Gangiacoptic=1002,e.Gbreve=286,e.Gcaron=486,e.Gcedilla=290,e.Gcircle=9404,e.Gcircumflex=284,e.Gcommaaccent=290,e.Gdot=288,e.Gdotaccent=288,e.Gecyrillic=1043,e.Ghadarmenian=1346,e.Ghemiddlehookcyrillic=1172,e.Ghestrokecyrillic=1170,e.Gheupturncyrillic=1168,e.Ghook=403,e.Gimarmenian=1331,e.Gjecyrillic=1027,e.Gmacron=7712,e.Gmonospace=65319,e.Grave=63182,e.Gravesmall=63328,e.Gsmall=63335,e.Gsmallhook=667,e.Gstroke=484,e.H=72,e.H18533=9679,e.H18543=9642,e.H18551=9643,e.H22073=9633,e.HPsquare=13259,e.Haabkhasiancyrillic=1192,e.Hadescendercyrillic=1202,e.Hardsigncyrillic=1066,e.Hbar=294,e.Hbrevebelow=7722,e.Hcedilla=7720,e.Hcircle=9405,e.Hcircumflex=292,e.Hdieresis=7718,e.Hdotaccent=7714,e.Hdotbelow=7716,e.Hmonospace=65320,e.Hoarmenian=1344,e.Horicoptic=1e3,e.Hsmall=63336,e.Hungarumlaut=63183,e.Hungarumlautsmall=63224,e.Hzsquare=13200,e.I=73,e.IAcyrillic=1071,e.IJ=306,e.IUcyrillic=1070,e.Iacute=205,e.Iacutesmall=63469,e.Ibreve=300,e.Icaron=463,e.Icircle=9406,e.Icircumflex=206,e.Icircumflexsmall=63470,e.Icyrillic=1030,e.Idblgrave=520,e.Idieresis=207,e.Idieresisacute=7726,e.Idieresiscyrillic=1252,e.Idieresissmall=63471,e.Idot=304,e.Idotaccent=304,e.Idotbelow=7882,e.Iebrevecyrillic=1238,e.Iecyrillic=1045,e.Ifraktur=8465,e.Igrave=204,e.Igravesmall=63468,e.Ihookabove=7880,e.Iicyrillic=1048,e.Iinvertedbreve=522,e.Iishortcyrillic=1049,e.Imacron=298,e.Imacroncyrillic=1250,e.Imonospace=65321,e.Iniarmenian=1339,e.Iocyrillic=1025,e.Iogonek=302,e.Iota=921,e.Iotaafrican=406,e.Iotadieresis=938,e.Iotatonos=906,e.Ismall=63337,e.Istroke=407,e.Itilde=296,e.Itildebelow=7724,e.Izhitsacyrillic=1140,e.Izhitsadblgravecyrillic=1142,e.J=74,e.Jaarmenian=1345,e.Jcircle=9407,e.Jcircumflex=308,e.Jecyrillic=1032,e.Jheharmenian=1355,e.Jmonospace=65322,e.Jsmall=63338,e.K=75,e.KBsquare=13189,e.KKsquare=13261,e.Kabashkircyrillic=1184,e.Kacute=7728,e.Kacyrillic=1050,e.Kadescendercyrillic=1178,e.Kahookcyrillic=1219,e.Kappa=922,e.Kastrokecyrillic=1182,e.Kaverticalstrokecyrillic=1180,e.Kcaron=488,e.Kcedilla=310,e.Kcircle=9408,e.Kcommaaccent=310,e.Kdotbelow=7730,e.Keharmenian=1364,e.Kenarmenian=1343,e.Khacyrillic=1061,e.Kheicoptic=998,e.Khook=408,e.Kjecyrillic=1036,e.Klinebelow=7732,e.Kmonospace=65323,e.Koppacyrillic=1152,e.Koppagreek=990,e.Ksicyrillic=1134,e.Ksmall=63339,e.L=76,e.LJ=455,e.LL=63167,e.Lacute=313,e.Lambda=923,e.Lcaron=317,e.Lcedilla=315,e.Lcircle=9409,e.Lcircumflexbelow=7740,e.Lcommaaccent=315,e.Ldot=319,e.Ldotaccent=319,e.Ldotbelow=7734,e.Ldotbelowmacron=7736,e.Liwnarmenian=1340,e.Lj=456,e.Ljecyrillic=1033,e.Llinebelow=7738,e.Lmonospace=65324,e.Lslash=321,e.Lslashsmall=63225,e.Lsmall=63340,e.M=77,e.MBsquare=13190,e.Macron=63184,e.Macronsmall=63407,e.Macute=7742,e.Mcircle=9410,e.Mdotaccent=7744,e.Mdotbelow=7746,e.Menarmenian=1348,e.Mmonospace=65325,e.Msmall=63341,e.Mturned=412,e.Mu=924,e.N=78,e.NJ=458,e.Nacute=323,e.Ncaron=327,e.Ncedilla=325,e.Ncircle=9411,e.Ncircumflexbelow=7754,e.Ncommaaccent=325,e.Ndotaccent=7748,e.Ndotbelow=7750,e.Nhookleft=413,e.Nineroman=8552,e.Nj=459,e.Njecyrillic=1034,e.Nlinebelow=7752,e.Nmonospace=65326,e.Nowarmenian=1350,e.Nsmall=63342,e.Ntilde=209,e.Ntildesmall=63473,e.Nu=925,e.O=79,e.OE=338,e.OEsmall=63226,e.Oacute=211,e.Oacutesmall=63475,e.Obarredcyrillic=1256,e.Obarreddieresiscyrillic=1258,e.Obreve=334,e.Ocaron=465,e.Ocenteredtilde=415,e.Ocircle=9412,e.Ocircumflex=212,e.Ocircumflexacute=7888,e.Ocircumflexdotbelow=7896,e.Ocircumflexgrave=7890,e.Ocircumflexhookabove=7892,e.Ocircumflexsmall=63476,e.Ocircumflextilde=7894,e.Ocyrillic=1054,e.Odblacute=336,e.Odblgrave=524,e.Odieresis=214,e.Odieresiscyrillic=1254,e.Odieresissmall=63478,e.Odotbelow=7884,e.Ogoneksmall=63227,e.Ograve=210,e.Ogravesmall=63474,e.Oharmenian=1365,e.Ohm=8486,e.Ohookabove=7886,e.Ohorn=416,e.Ohornacute=7898,e.Ohorndotbelow=7906,e.Ohorngrave=7900,e.Ohornhookabove=7902,e.Ohorntilde=7904,e.Ohungarumlaut=336,e.Oi=418,e.Oinvertedbreve=526,e.Omacron=332,e.Omacronacute=7762,e.Omacrongrave=7760,e.Omega=8486,e.Omegacyrillic=1120,e.Omegagreek=937,e.Omegaroundcyrillic=1146,e.Omegatitlocyrillic=1148,e.Omegatonos=911,e.Omicron=927,e.Omicrontonos=908,e.Omonospace=65327,e.Oneroman=8544,e.Oogonek=490,e.Oogonekmacron=492,e.Oopen=390,e.Oslash=216,e.Oslashacute=510,e.Oslashsmall=63480,e.Osmall=63343,e.Ostrokeacute=510,e.Otcyrillic=1150,e.Otilde=213,e.Otildeacute=7756,e.Otildedieresis=7758,e.Otildesmall=63477,e.P=80,e.Pacute=7764,e.Pcircle=9413,e.Pdotaccent=7766,e.Pecyrillic=1055,e.Peharmenian=1354,e.Pemiddlehookcyrillic=1190,e.Phi=934,e.Phook=420,e.Pi=928,e.Piwrarmenian=1363,e.Pmonospace=65328,e.Psi=936,e.Psicyrillic=1136,e.Psmall=63344,e.Q=81,e.Qcircle=9414,e.Qmonospace=65329,e.Qsmall=63345,e.R=82,e.Raarmenian=1356,e.Racute=340,e.Rcaron=344,e.Rcedilla=342,e.Rcircle=9415,e.Rcommaaccent=342,e.Rdblgrave=528,e.Rdotaccent=7768,e.Rdotbelow=7770,e.Rdotbelowmacron=7772,e.Reharmenian=1360,e.Rfraktur=8476,e.Rho=929,e.Ringsmall=63228,e.Rinvertedbreve=530,e.Rlinebelow=7774,e.Rmonospace=65330,e.Rsmall=63346,e.Rsmallinverted=641,e.Rsmallinvertedsuperior=694,e.S=83,e.SF010000=9484,e.SF020000=9492,e.SF030000=9488,e.SF040000=9496,e.SF050000=9532,e.SF060000=9516,e.SF070000=9524,e.SF080000=9500,e.SF090000=9508,e.SF100000=9472,e.SF110000=9474,e.SF190000=9569,e.SF200000=9570,e.SF210000=9558,e.SF220000=9557,e.SF230000=9571,e.SF240000=9553,e.SF250000=9559,e.SF260000=9565,e.SF270000=9564,e.SF280000=9563,e.SF360000=9566,e.SF370000=9567,e.SF380000=9562,e.SF390000=9556,e.SF400000=9577,e.SF410000=9574,e.SF420000=9568,e.SF430000=9552,e.SF440000=9580,e.SF450000=9575,e.SF460000=9576,e.SF470000=9572,e.SF480000=9573,e.SF490000=9561,e.SF500000=9560,e.SF510000=9554,e.SF520000=9555,e.SF530000=9579,e.SF540000=9578,e.Sacute=346,e.Sacutedotaccent=7780,e.Sampigreek=992,e.Scaron=352,e.Scarondotaccent=7782,e.Scaronsmall=63229,e.Scedilla=350,e.Schwa=399,e.Schwacyrillic=1240,e.Schwadieresiscyrillic=1242,e.Scircle=9416,e.Scircumflex=348,e.Scommaaccent=536,e.Sdotaccent=7776,e.Sdotbelow=7778,e.Sdotbelowdotaccent=7784,e.Seharmenian=1357,e.Sevenroman=8550,e.Shaarmenian=1351,e.Shacyrillic=1064,e.Shchacyrillic=1065,e.Sheicoptic=994,e.Shhacyrillic=1210,e.Shimacoptic=1004,e.Sigma=931,e.Sixroman=8549,e.Smonospace=65331,e.Softsigncyrillic=1068,e.Ssmall=63347,e.Stigmagreek=986,e.T=84,e.Tau=932,e.Tbar=358,e.Tcaron=356,e.Tcedilla=354,e.Tcircle=9417,e.Tcircumflexbelow=7792,e.Tcommaaccent=354,e.Tdotaccent=7786,e.Tdotbelow=7788,e.Tecyrillic=1058,e.Tedescendercyrillic=1196,e.Tenroman=8553,e.Tetsecyrillic=1204,e.Theta=920,e.Thook=428,e.Thorn=222,e.Thornsmall=63486,e.Threeroman=8546,e.Tildesmall=63230,e.Tiwnarmenian=1359,e.Tlinebelow=7790,e.Tmonospace=65332,e.Toarmenian=1337,e.Tonefive=444,e.Tonesix=388,e.Tonetwo=423,e.Tretroflexhook=430,e.Tsecyrillic=1062,e.Tshecyrillic=1035,e.Tsmall=63348,e.Twelveroman=8555,e.Tworoman=8545,e.U=85,e.Uacute=218,e.Uacutesmall=63482,e.Ubreve=364,e.Ucaron=467,e.Ucircle=9418,e.Ucircumflex=219,e.Ucircumflexbelow=7798,e.Ucircumflexsmall=63483,e.Ucyrillic=1059,e.Udblacute=368,e.Udblgrave=532,e.Udieresis=220,e.Udieresisacute=471,e.Udieresisbelow=7794,e.Udieresiscaron=473,e.Udieresiscyrillic=1264,e.Udieresisgrave=475,e.Udieresismacron=469,e.Udieresissmall=63484,e.Udotbelow=7908,e.Ugrave=217,e.Ugravesmall=63481,e.Uhookabove=7910,e.Uhorn=431,e.Uhornacute=7912,e.Uhorndotbelow=7920,e.Uhorngrave=7914,e.Uhornhookabove=7916,e.Uhorntilde=7918,e.Uhungarumlaut=368,e.Uhungarumlautcyrillic=1266,e.Uinvertedbreve=534,e.Ukcyrillic=1144,e.Umacron=362,e.Umacroncyrillic=1262,e.Umacrondieresis=7802,e.Umonospace=65333,e.Uogonek=370,e.Upsilon=933,e.Upsilon1=978,e.Upsilonacutehooksymbolgreek=979,e.Upsilonafrican=433,e.Upsilondieresis=939,e.Upsilondieresishooksymbolgreek=980,e.Upsilonhooksymbol=978,e.Upsilontonos=910,e.Uring=366,e.Ushortcyrillic=1038,e.Usmall=63349,e.Ustraightcyrillic=1198,e.Ustraightstrokecyrillic=1200,e.Utilde=360,e.Utildeacute=7800,e.Utildebelow=7796,e.V=86,e.Vcircle=9419,e.Vdotbelow=7806,e.Vecyrillic=1042,e.Vewarmenian=1358,e.Vhook=434,e.Vmonospace=65334,e.Voarmenian=1352,e.Vsmall=63350,e.Vtilde=7804,e.W=87,e.Wacute=7810,e.Wcircle=9420,e.Wcircumflex=372,e.Wdieresis=7812,e.Wdotaccent=7814,e.Wdotbelow=7816,e.Wgrave=7808,e.Wmonospace=65335,e.Wsmall=63351,e.X=88,e.Xcircle=9421,e.Xdieresis=7820,e.Xdotaccent=7818,e.Xeharmenian=1341,e.Xi=926,e.Xmonospace=65336,e.Xsmall=63352,e.Y=89,e.Yacute=221,e.Yacutesmall=63485,e.Yatcyrillic=1122,e.Ycircle=9422,e.Ycircumflex=374,e.Ydieresis=376,e.Ydieresissmall=63487,e.Ydotaccent=7822,e.Ydotbelow=7924,e.Yericyrillic=1067,e.Yerudieresiscyrillic=1272,e.Ygrave=7922,e.Yhook=435,e.Yhookabove=7926,e.Yiarmenian=1349,e.Yicyrillic=1031,e.Yiwnarmenian=1362,e.Ymonospace=65337,e.Ysmall=63353,e.Ytilde=7928,e.Yusbigcyrillic=1130,e.Yusbigiotifiedcyrillic=1132,e.Yuslittlecyrillic=1126,e.Yuslittleiotifiedcyrillic=1128,e.Z=90,e.Zaarmenian=1334,e.Zacute=377,e.Zcaron=381,e.Zcaronsmall=63231,e.Zcircle=9423,e.Zcircumflex=7824,e.Zdot=379,e.Zdotaccent=379,e.Zdotbelow=7826,e.Zecyrillic=1047,e.Zedescendercyrillic=1176,e.Zedieresiscyrillic=1246,e.Zeta=918,e.Zhearmenian=1338,e.Zhebrevecyrillic=1217,e.Zhecyrillic=1046,e.Zhedescendercyrillic=1174,e.Zhedieresiscyrillic=1244,e.Zlinebelow=7828,e.Zmonospace=65338,e.Zsmall=63354,e.Zstroke=437,e.a=97,e.aabengali=2438,e.aacute=225,e.aadeva=2310,e.aagujarati=2694,e.aagurmukhi=2566,e.aamatragurmukhi=2622,e.aarusquare=13059,e.aavowelsignbengali=2494,e.aavowelsigndeva=2366,e.aavowelsigngujarati=2750,e.abbreviationmarkarmenian=1375,e.abbreviationsigndeva=2416,e.abengali=2437,e.abopomofo=12570,e.abreve=259,e.abreveacute=7855,e.abrevecyrillic=1233,e.abrevedotbelow=7863,e.abrevegrave=7857,e.abrevehookabove=7859,e.abrevetilde=7861,e.acaron=462,e.acircle=9424,e.acircumflex=226,e.acircumflexacute=7845,e.acircumflexdotbelow=7853,e.acircumflexgrave=7847,e.acircumflexhookabove=7849,e.acircumflextilde=7851,e.acute=180,e.acutebelowcmb=791,e.acutecmb=769,e.acutecomb=769,e.acutedeva=2388,e.acutelowmod=719,e.acutetonecmb=833,e.acyrillic=1072,e.adblgrave=513,e.addakgurmukhi=2673,e.adeva=2309,e.adieresis=228,e.adieresiscyrillic=1235,e.adieresismacron=479,e.adotbelow=7841,e.adotmacron=481,e.ae=230,e.aeacute=509,e.aekorean=12624,e.aemacron=483,e.afii00208=8213,e.afii08941=8356,e.afii10017=1040,e.afii10018=1041,e.afii10019=1042,e.afii10020=1043,e.afii10021=1044,e.afii10022=1045,e.afii10023=1025,e.afii10024=1046,e.afii10025=1047,e.afii10026=1048,e.afii10027=1049,e.afii10028=1050,e.afii10029=1051,e.afii10030=1052;e.afii10031=1053,e.afii10032=1054,e.afii10033=1055,e.afii10034=1056,e.afii10035=1057,e.afii10036=1058,e.afii10037=1059,e.afii10038=1060,e.afii10039=1061,e.afii10040=1062,e.afii10041=1063,e.afii10042=1064,e.afii10043=1065,e.afii10044=1066,e.afii10045=1067,e.afii10046=1068,e.afii10047=1069,e.afii10048=1070,e.afii10049=1071,e.afii10050=1168,e.afii10051=1026,e.afii10052=1027,e.afii10053=1028,e.afii10054=1029,e.afii10055=1030,e.afii10056=1031,e.afii10057=1032,e.afii10058=1033,e.afii10059=1034,e.afii10060=1035,e.afii10061=1036,e.afii10062=1038,e.afii10063=63172,e.afii10064=63173,e.afii10065=1072,e.afii10066=1073,e.afii10067=1074,e.afii10068=1075,e.afii10069=1076,e.afii10070=1077,e.afii10071=1105,e.afii10072=1078,e.afii10073=1079,e.afii10074=1080,e.afii10075=1081,e.afii10076=1082,e.afii10077=1083,e.afii10078=1084,e.afii10079=1085,e.afii10080=1086,e.afii10081=1087,e.afii10082=1088,e.afii10083=1089,e.afii10084=1090,e.afii10085=1091,e.afii10086=1092,e.afii10087=1093,e.afii10088=1094,e.afii10089=1095,e.afii10090=1096,e.afii10091=1097,e.afii10092=1098,e.afii10093=1099,e.afii10094=1100,e.afii10095=1101,e.afii10096=1102,e.afii10097=1103,e.afii10098=1169,e.afii10099=1106,e.afii10100=1107,e.afii10101=1108,e.afii10102=1109,e.afii10103=1110,e.afii10104=1111,e.afii10105=1112,e.afii10106=1113,e.afii10107=1114,e.afii10108=1115,e.afii10109=1116,e.afii10110=1118,e.afii10145=1039,e.afii10146=1122,e.afii10147=1138,e.afii10148=1140,e.afii10192=63174,e.afii10193=1119,e.afii10194=1123,e.afii10195=1139,e.afii10196=1141,e.afii10831=63175,e.afii10832=63176,e.afii10846=1241,e.afii299=8206,e.afii300=8207,e.afii301=8205,e.afii57381=1642,e.afii57388=1548,e.afii57392=1632,e.afii57393=1633,e.afii57394=1634,e.afii57395=1635,e.afii57396=1636,e.afii57397=1637,e.afii57398=1638,e.afii57399=1639,e.afii57400=1640,e.afii57401=1641,e.afii57403=1563,e.afii57407=1567,e.afii57409=1569,e.afii57410=1570,e.afii57411=1571,e.afii57412=1572,e.afii57413=1573,e.afii57414=1574,e.afii57415=1575,e.afii57416=1576,e.afii57417=1577,e.afii57418=1578,e.afii57419=1579,e.afii57420=1580,e.afii57421=1581,e.afii57422=1582,e.afii57423=1583,e.afii57424=1584,e.afii57425=1585,e.afii57426=1586,e.afii57427=1587,e.afii57428=1588,e.afii57429=1589,e.afii57430=1590,e.afii57431=1591,e.afii57432=1592,e.afii57433=1593,e.afii57434=1594,e.afii57440=1600,e.afii57441=1601,e.afii57442=1602,e.afii57443=1603,e.afii57444=1604,e.afii57445=1605,e.afii57446=1606,e.afii57448=1608,e.afii57449=1609,e.afii57450=1610,e.afii57451=1611,e.afii57452=1612,e.afii57453=1613,e.afii57454=1614,e.afii57455=1615,e.afii57456=1616,e.afii57457=1617,e.afii57458=1618,e.afii57470=1607,e.afii57505=1700,e.afii57506=1662,e.afii57507=1670,e.afii57508=1688,e.afii57509=1711,e.afii57511=1657,e.afii57512=1672,e.afii57513=1681,e.afii57514=1722,e.afii57519=1746,e.afii57534=1749,e.afii57636=8362,e.afii57645=1470,e.afii57658=1475,e.afii57664=1488,e.afii57665=1489,e.afii57666=1490,e.afii57667=1491,e.afii57668=1492,e.afii57669=1493,e.afii57670=1494,e.afii57671=1495,e.afii57672=1496,e.afii57673=1497,e.afii57674=1498,e.afii57675=1499,e.afii57676=1500,e.afii57677=1501,e.afii57678=1502,e.afii57679=1503,e.afii57680=1504,e.afii57681=1505,e.afii57682=1506,e.afii57683=1507,e.afii57684=1508,e.afii57685=1509,e.afii57686=1510,e.afii57687=1511,e.afii57688=1512,e.afii57689=1513,e.afii57690=1514,e.afii57694=64298,e.afii57695=64299,e.afii57700=64331,e.afii57705=64287,e.afii57716=1520,e.afii57717=1521,e.afii57718=1522,e.afii57723=64309,e.afii57793=1460,e.afii57794=1461,e.afii57795=1462,e.afii57796=1467,e.afii57797=1464,e.afii57798=1463,e.afii57799=1456,e.afii57800=1458,e.afii57801=1457,e.afii57802=1459,e.afii57803=1474,e.afii57804=1473,e.afii57806=1465,e.afii57807=1468,e.afii57839=1469,e.afii57841=1471,e.afii57842=1472,e.afii57929=700,e.afii61248=8453,e.afii61289=8467,e.afii61352=8470,e.afii61573=8236,e.afii61574=8237,e.afii61575=8238,e.afii61664=8204,e.afii63167=1645,e.afii64937=701,e.agrave=224,e.agujarati=2693,e.agurmukhi=2565,e.ahiragana=12354,e.ahookabove=7843,e.aibengali=2448,e.aibopomofo=12574,e.aideva=2320,e.aiecyrillic=1237,e.aigujarati=2704,e.aigurmukhi=2576,e.aimatragurmukhi=2632,e.ainarabic=1593,e.ainfinalarabic=65226,e.aininitialarabic=65227,e.ainmedialarabic=65228,e.ainvertedbreve=515,e.aivowelsignbengali=2504,e.aivowelsigndeva=2376,e.aivowelsigngujarati=2760,e.akatakana=12450,e.akatakanahalfwidth=65393,e.akorean=12623,e.alef=1488,e.alefarabic=1575,e.alefdageshhebrew=64304,e.aleffinalarabic=65166,e.alefhamzaabovearabic=1571,e.alefhamzaabovefinalarabic=65156,e.alefhamzabelowarabic=1573,e.alefhamzabelowfinalarabic=65160,e.alefhebrew=1488,e.aleflamedhebrew=64335,e.alefmaddaabovearabic=1570,e.alefmaddaabovefinalarabic=65154,e.alefmaksuraarabic=1609,e.alefmaksurafinalarabic=65264,e.alefmaksurainitialarabic=65267,e.alefmaksuramedialarabic=65268,e.alefpatahhebrew=64302,e.alefqamatshebrew=64303,e.aleph=8501,e.allequal=8780,e.alpha=945,e.alphatonos=940,e.amacron=257,e.amonospace=65345,e.ampersand=38,e.ampersandmonospace=65286,e.ampersandsmall=63270,e.amsquare=13250,e.anbopomofo=12578,e.angbopomofo=12580,e.angbracketleft=12296,e.angbracketright=12297,e.angkhankhuthai=3674,e.angle=8736,e.anglebracketleft=12296,e.anglebracketleftvertical=65087,e.anglebracketright=12297,e.anglebracketrightvertical=65088,e.angleleft=9001,e.angleright=9002,e.angstrom=8491,e.anoteleia=903,e.anudattadeva=2386,e.anusvarabengali=2434,e.anusvaradeva=2306,e.anusvaragujarati=2690,e.aogonek=261,e.apaatosquare=13056,e.aparen=9372,e.apostrophearmenian=1370,e.apostrophemod=700,e.apple=63743,e.approaches=8784,e.approxequal=8776,e.approxequalorimage=8786,e.approximatelyequal=8773,e.araeaekorean=12686,e.araeakorean=12685,e.arc=8978,e.arighthalfring=7834,e.aring=229,e.aringacute=507,e.aringbelow=7681,e.arrowboth=8596,e.arrowdashdown=8675,e.arrowdashleft=8672,e.arrowdashright=8674,e.arrowdashup=8673,e.arrowdblboth=8660,e.arrowdbldown=8659,e.arrowdblleft=8656,e.arrowdblright=8658,e.arrowdblup=8657,e.arrowdown=8595,e.arrowdownleft=8601,e.arrowdownright=8600,e.arrowdownwhite=8681,e.arrowheaddownmod=709,e.arrowheadleftmod=706,e.arrowheadrightmod=707,e.arrowheadupmod=708,e.arrowhorizex=63719,e.arrowleft=8592,e.arrowleftdbl=8656,e.arrowleftdblstroke=8653,e.arrowleftoverright=8646,e.arrowleftwhite=8678,e.arrowright=8594,e.arrowrightdblstroke=8655,e.arrowrightheavy=10142,e.arrowrightoverleft=8644,e.arrowrightwhite=8680,e.arrowtableft=8676,e.arrowtabright=8677,e.arrowup=8593,e.arrowupdn=8597,e.arrowupdnbse=8616,e.arrowupdownbase=8616,e.arrowupleft=8598,e.arrowupleftofdown=8645,e.arrowupright=8599,e.arrowupwhite=8679,e.arrowvertex=63718,e.asciicircum=94,e.asciicircummonospace=65342,e.asciitilde=126,e.asciitildemonospace=65374,e.ascript=593,e.ascriptturned=594,e.asmallhiragana=12353,e.asmallkatakana=12449,e.asmallkatakanahalfwidth=65383,e.asterisk=42,e.asteriskaltonearabic=1645,e.asteriskarabic=1645,e.asteriskmath=8727,e.asteriskmonospace=65290,e.asterisksmall=65121,e.asterism=8258,e.asuperior=63209,e.asymptoticallyequal=8771,e.at=64,e.atilde=227,e.atmonospace=65312,e.atsmall=65131,e.aturned=592,e.aubengali=2452,e.aubopomofo=12576,e.audeva=2324,e.augujarati=2708,e.augurmukhi=2580,e.aulengthmarkbengali=2519,e.aumatragurmukhi=2636,e.auvowelsignbengali=2508,e.auvowelsigndeva=2380,e.auvowelsigngujarati=2764,e.avagrahadeva=2365,e.aybarmenian=1377,e.ayin=1506,e.ayinaltonehebrew=64288,e.ayinhebrew=1506,e.b=98,e.babengali=2476,e.backslash=92,e.backslashmonospace=65340,e.badeva=2348,e.bagujarati=2732,e.bagurmukhi=2604,e.bahiragana=12400,e.bahtthai=3647,e.bakatakana=12496,e.bar=124,e.barmonospace=65372,e.bbopomofo=12549,e.bcircle=9425,e.bdotaccent=7683,e.bdotbelow=7685,e.beamedsixteenthnotes=9836,e.because=8757,e.becyrillic=1073,e.beharabic=1576,e.behfinalarabic=65168,e.behinitialarabic=65169,e.behiragana=12409,e.behmedialarabic=65170,e.behmeeminitialarabic=64671,e.behmeemisolatedarabic=64520,e.behnoonfinalarabic=64621,e.bekatakana=12505,e.benarmenian=1378,e.bet=1489,e.beta=946,e.betasymbolgreek=976,e.betdagesh=64305,e.betdageshhebrew=64305,e.bethebrew=1489,e.betrafehebrew=64332,e.bhabengali=2477,e.bhadeva=2349,e.bhagujarati=2733,e.bhagurmukhi=2605,e.bhook=595,e.bihiragana=12403,e.bikatakana=12499,e.bilabialclick=664,e.bindigurmukhi=2562,e.birusquare=13105,e.blackcircle=9679,e.blackdiamond=9670,e.blackdownpointingtriangle=9660,e.blackleftpointingpointer=9668,e.blackleftpointingtriangle=9664,e.blacklenticularbracketleft=12304,e.blacklenticularbracketleftvertical=65083,e.blacklenticularbracketright=12305,e.blacklenticularbracketrightvertical=65084,e.blacklowerlefttriangle=9699,e.blacklowerrighttriangle=9698,e.blackrectangle=9644,e.blackrightpointingpointer=9658,e.blackrightpointingtriangle=9654,e.blacksmallsquare=9642,e.blacksmilingface=9787,e.blacksquare=9632,e.blackstar=9733,e.blackupperlefttriangle=9700,e.blackupperrighttriangle=9701,e.blackuppointingsmalltriangle=9652,e.blackuppointingtriangle=9650,e.blank=9251,e.blinebelow=7687,e.block=9608,e.bmonospace=65346,e.bobaimaithai=3610,e.bohiragana=12412,e.bokatakana=12508,e.bparen=9373,e.bqsquare=13251,e.braceex=63732,e.braceleft=123,e.braceleftbt=63731,e.braceleftmid=63730,e.braceleftmonospace=65371,e.braceleftsmall=65115,e.bracelefttp=63729,e.braceleftvertical=65079,e.braceright=125,e.bracerightbt=63742,e.bracerightmid=63741,e.bracerightmonospace=65373,e.bracerightsmall=65116,e.bracerighttp=63740,e.bracerightvertical=65080,e.bracketleft=91,e.bracketleftbt=63728,e.bracketleftex=63727,e.bracketleftmonospace=65339,e.bracketlefttp=63726,e.bracketright=93,e.bracketrightbt=63739,e.bracketrightex=63738,e.bracketrightmonospace=65341,e.bracketrighttp=63737,e.breve=728,e.brevebelowcmb=814,e.brevecmb=774,e.breveinvertedbelowcmb=815,e.breveinvertedcmb=785,e.breveinverteddoublecmb=865,e.bridgebelowcmb=810,e.bridgeinvertedbelowcmb=826,e.brokenbar=166,e.bstroke=384,e.bsuperior=63210,e.btopbar=387,e.buhiragana=12406,e.bukatakana=12502,e.bullet=8226,e.bulletinverse=9688,e.bulletoperator=8729,e.bullseye=9678,e.c=99,e.caarmenian=1390,e.cabengali=2458,e.cacute=263,e.cadeva=2330,e.cagujarati=2714,e.cagurmukhi=2586,e.calsquare=13192,e.candrabindubengali=2433,e.candrabinducmb=784,e.candrabindudeva=2305,e.candrabindugujarati=2689,e.capslock=8682,e.careof=8453,e.caron=711,e.caronbelowcmb=812,e.caroncmb=780,e.carriagereturn=8629,e.cbopomofo=12568,e.ccaron=269,e.ccedilla=231,e.ccedillaacute=7689,e.ccircle=9426,e.ccircumflex=265,e.ccurl=597,e.cdot=267,e.cdotaccent=267,e.cdsquare=13253,e.cedilla=184,e.cedillacmb=807,e.cent=162,e.centigrade=8451,e.centinferior=63199,e.centmonospace=65504,e.centoldstyle=63394,e.centsuperior=63200,e.chaarmenian=1401,e.chabengali=2459,e.chadeva=2331,e.chagujarati=2715,e.chagurmukhi=2587,e.chbopomofo=12564,e.cheabkhasiancyrillic=1213,e.checkmark=10003,e.checyrillic=1095,e.chedescenderabkhasiancyrillic=1215,e.chedescendercyrillic=1207,e.chedieresiscyrillic=1269,e.cheharmenian=1395,e.chekhakassiancyrillic=1228,e.cheverticalstrokecyrillic=1209,e.chi=967,e.chieuchacirclekorean=12919,e.chieuchaparenkorean=12823,e.chieuchcirclekorean=12905,e.chieuchkorean=12618,e.chieuchparenkorean=12809,e.chochangthai=3594,e.chochanthai=3592,e.chochingthai=3593,e.chochoethai=3596,e.chook=392,e.cieucacirclekorean=12918,e.cieucaparenkorean=12822,e.cieuccirclekorean=12904,e.cieuckorean=12616,e.cieucparenkorean=12808,e.cieucuparenkorean=12828,e.circle=9675,e.circlecopyrt=169,e.circlemultiply=8855,e.circleot=8857,e.circleplus=8853,e.circlepostalmark=12342,e.circlewithlefthalfblack=9680,e.circlewithrighthalfblack=9681,e.circumflex=710,e.circumflexbelowcmb=813,e.circumflexcmb=770,e.clear=8999,e.clickalveolar=450,e.clickdental=448,e.clicklateral=449,e.clickretroflex=451,e.club=9827,e.clubsuitblack=9827,e.clubsuitwhite=9831,e.cmcubedsquare=13220,e.cmonospace=65347,e.cmsquaredsquare=13216,e.coarmenian=1409,e.colon=58,e.colonmonetary=8353,e.colonmonospace=65306,e.colonsign=8353,e.colonsmall=65109,e.colontriangularhalfmod=721,e.colontriangularmod=720,e.comma=44,e.commaabovecmb=787,e.commaaboverightcmb=789,e.commaaccent=63171,e.commaarabic=1548,e.commaarmenian=1373,e.commainferior=63201,e.commamonospace=65292,e.commareversedabovecmb=788,e.commareversedmod=701,e.commasmall=65104,e.commasuperior=63202,e.commaturnedabovecmb=786,e.commaturnedmod=699,e.compass=9788,e.congruent=8773,e.contourintegral=8750,e.control=8963,e.controlACK=6,e.controlBEL=7,e.controlBS=8,e.controlCAN=24,e.controlCR=13,e.controlDC1=17,e.controlDC2=18,e.controlDC3=19,e.controlDC4=20,e.controlDEL=127,e.controlDLE=16,e.controlEM=25,e.controlENQ=5,e.controlEOT=4,e.controlESC=27,e.controlETB=23,e.controlETX=3,e.controlFF=12,e.controlFS=28,e.controlGS=29,e.controlHT=9,e.controlLF=10,e.controlNAK=21,e.controlNULL=0,e.controlRS=30,e.controlSI=15,e.controlSO=14,e.controlSOT=2,e.controlSTX=1,e.controlSUB=26,e.controlSYN=22,e.controlUS=31,e.controlVT=11,e.copyright=169,e.copyrightsans=63721,e.copyrightserif=63193,e.cornerbracketleft=12300,e.cornerbracketlefthalfwidth=65378,e.cornerbracketleftvertical=65089,e.cornerbracketright=12301,e.cornerbracketrighthalfwidth=65379,e.cornerbracketrightvertical=65090,e.corporationsquare=13183,e.cosquare=13255,e.coverkgsquare=13254,e.cparen=9374,e.cruzeiro=8354,e.cstretched=663,e.curlyand=8911,e.curlyor=8910,e.currency=164,e.cyrBreve=63185,e.cyrFlex=63186,e.cyrbreve=63188,e.cyrflex=63189,e.d=100,e.daarmenian=1380,e.dabengali=2470,e.dadarabic=1590,e.dadeva=2342,e.dadfinalarabic=65214,e.dadinitialarabic=65215,e.dadmedialarabic=65216,e.dagesh=1468,e.dageshhebrew=1468,e.dagger=8224,e.daggerdbl=8225,e.dagujarati=2726,e.dagurmukhi=2598,e.dahiragana=12384,e.dakatakana=12480,e.dalarabic=1583,e.dalet=1491,e.daletdagesh=64307,e.daletdageshhebrew=64307,e.dalethebrew=1491,e.dalfinalarabic=65194,e.dammaarabic=1615,e.dammalowarabic=1615,e.dammatanaltonearabic=1612,e.dammatanarabic=1612,e.danda=2404,e.dargahebrew=1447,e.dargalefthebrew=1447,e.dasiapneumatacyrilliccmb=1157,e.dblGrave=63187,e.dblanglebracketleft=12298,e.dblanglebracketleftvertical=65085,e.dblanglebracketright=12299,e.dblanglebracketrightvertical=65086,e.dblarchinvertedbelowcmb=811,e.dblarrowleft=8660,e.dblarrowright=8658,e.dbldanda=2405,e.dblgrave=63190,e.dblgravecmb=783,e.dblintegral=8748,e.dbllowline=8215,e.dbllowlinecmb=819,e.dbloverlinecmb=831,e.dblprimemod=698,e.dblverticalbar=8214,e.dblverticallineabovecmb=782,e.dbopomofo=12553,e.dbsquare=13256,e.dcaron=271,e.dcedilla=7697,e.dcircle=9427,e.dcircumflexbelow=7699,e.dcroat=273,e.ddabengali=2465,e.ddadeva=2337,e.ddagujarati=2721,e.ddagurmukhi=2593,e.ddalarabic=1672,e.ddalfinalarabic=64393,e.dddhadeva=2396,e.ddhabengali=2466,e.ddhadeva=2338,e.ddhagujarati=2722,e.ddhagurmukhi=2594,e.ddotaccent=7691,e.ddotbelow=7693,e.decimalseparatorarabic=1643,e.decimalseparatorpersian=1643,e.decyrillic=1076,e.degree=176,e.dehihebrew=1453,e.dehiragana=12391,e.deicoptic=1007,e.dekatakana=12487,e.deleteleft=9003,e.deleteright=8998,e.delta=948,e.deltaturned=397,e.denominatorminusonenumeratorbengali=2552,e.dezh=676,e.dhabengali=2471,e.dhadeva=2343,e.dhagujarati=2727,e.dhagurmukhi=2599,e.dhook=599,e.dialytikatonos=901,e.dialytikatonoscmb=836,e.diamond=9830,e.diamondsuitwhite=9826,e.dieresis=168,e.dieresisacute=63191,e.dieresisbelowcmb=804,e.dieresiscmb=776,e.dieresisgrave=63192,e.dieresistonos=901,e.dihiragana=12386,e.dikatakana=12482,e.dittomark=12291,e.divide=247,e.divides=8739,e.divisionslash=8725,e.djecyrillic=1106,e.dkshade=9619,e.dlinebelow=7695,e.dlsquare=13207,e.dmacron=273,e.dmonospace=65348,e.dnblock=9604,e.dochadathai=3598,e.dodekthai=3604,e.dohiragana=12393,e.dokatakana=12489,e.dollar=36;e.dollarinferior=63203,e.dollarmonospace=65284,e.dollaroldstyle=63268,e.dollarsmall=65129,e.dollarsuperior=63204,e.dong=8363,e.dorusquare=13094,e.dotaccent=729,e.dotaccentcmb=775,e.dotbelowcmb=803,e.dotbelowcomb=803,e.dotkatakana=12539,e.dotlessi=305,e.dotlessj=63166,e.dotlessjstrokehook=644,e.dotmath=8901,e.dottedcircle=9676,e.doubleyodpatah=64287,e.doubleyodpatahhebrew=64287,e.downtackbelowcmb=798,e.downtackmod=725,e.dparen=9375,e.dsuperior=63211,e.dtail=598,e.dtopbar=396,e.duhiragana=12389,e.dukatakana=12485,e.dz=499,e.dzaltone=675,e.dzcaron=454,e.dzcurl=677,e.dzeabkhasiancyrillic=1249,e.dzecyrillic=1109,e.dzhecyrillic=1119,e.e=101,e.eacute=233,e.earth=9793,e.ebengali=2447,e.ebopomofo=12572,e.ebreve=277,e.ecandradeva=2317,e.ecandragujarati=2701,e.ecandravowelsigndeva=2373,e.ecandravowelsigngujarati=2757,e.ecaron=283,e.ecedillabreve=7709,e.echarmenian=1381,e.echyiwnarmenian=1415,e.ecircle=9428,e.ecircumflex=234,e.ecircumflexacute=7871,e.ecircumflexbelow=7705,e.ecircumflexdotbelow=7879,e.ecircumflexgrave=7873,e.ecircumflexhookabove=7875,e.ecircumflextilde=7877,e.ecyrillic=1108,e.edblgrave=517,e.edeva=2319,e.edieresis=235,e.edot=279,e.edotaccent=279,e.edotbelow=7865,e.eegurmukhi=2575,e.eematragurmukhi=2631,e.efcyrillic=1092,e.egrave=232,e.egujarati=2703,e.eharmenian=1383,e.ehbopomofo=12573,e.ehiragana=12360,e.ehookabove=7867,e.eibopomofo=12575,e.eight=56,e.eightarabic=1640,e.eightbengali=2542,e.eightcircle=9319,e.eightcircleinversesansserif=10129,e.eightdeva=2414,e.eighteencircle=9329,e.eighteenparen=9349,e.eighteenperiod=9369,e.eightgujarati=2798,e.eightgurmukhi=2670,e.eighthackarabic=1640,e.eighthangzhou=12328,e.eighthnotebeamed=9835,e.eightideographicparen=12839,e.eightinferior=8328,e.eightmonospace=65304,e.eightoldstyle=63288,e.eightparen=9339,e.eightperiod=9359,e.eightpersian=1784,e.eightroman=8567,e.eightsuperior=8312,e.eightthai=3672,e.einvertedbreve=519,e.eiotifiedcyrillic=1125,e.ekatakana=12456,e.ekatakanahalfwidth=65396,e.ekonkargurmukhi=2676,e.ekorean=12628,e.elcyrillic=1083,e.element=8712,e.elevencircle=9322,e.elevenparen=9342,e.elevenperiod=9362,e.elevenroman=8570,e.ellipsis=8230,e.ellipsisvertical=8942,e.emacron=275,e.emacronacute=7703,e.emacrongrave=7701,e.emcyrillic=1084,e.emdash=8212,e.emdashvertical=65073,e.emonospace=65349,e.emphasismarkarmenian=1371,e.emptyset=8709,e.enbopomofo=12579,e.encyrillic=1085,e.endash=8211,e.endashvertical=65074,e.endescendercyrillic=1187,e.eng=331,e.engbopomofo=12581,e.enghecyrillic=1189,e.enhookcyrillic=1224,e.enspace=8194,e.eogonek=281,e.eokorean=12627,e.eopen=603,e.eopenclosed=666,e.eopenreversed=604,e.eopenreversedclosed=606,e.eopenreversedhook=605,e.eparen=9376,e.epsilon=949,e.epsilontonos=941,e.equal=61,e.equalmonospace=65309,e.equalsmall=65126,e.equalsuperior=8316,e.equivalence=8801,e.erbopomofo=12582,e.ercyrillic=1088,e.ereversed=600,e.ereversedcyrillic=1101,e.escyrillic=1089,e.esdescendercyrillic=1195,e.esh=643,e.eshcurl=646,e.eshortdeva=2318,e.eshortvowelsigndeva=2374,e.eshreversedloop=426,e.eshsquatreversed=645,e.esmallhiragana=12359,e.esmallkatakana=12455,e.esmallkatakanahalfwidth=65386,e.estimated=8494,e.esuperior=63212,e.eta=951,e.etarmenian=1384,e.etatonos=942,e.eth=240,e.etilde=7869,e.etildebelow=7707,e.etnahtafoukhhebrew=1425,e.etnahtafoukhlefthebrew=1425,e.etnahtahebrew=1425,e.etnahtalefthebrew=1425,e.eturned=477,e.eukorean=12641,e.euro=8364,e.evowelsignbengali=2503,e.evowelsigndeva=2375,e.evowelsigngujarati=2759,e.exclam=33,e.exclamarmenian=1372,e.exclamdbl=8252,e.exclamdown=161,e.exclamdownsmall=63393,e.exclammonospace=65281,e.exclamsmall=63265,e.existential=8707,e.ezh=658,e.ezhcaron=495,e.ezhcurl=659,e.ezhreversed=441,e.ezhtail=442,e.f=102,e.fadeva=2398,e.fagurmukhi=2654,e.fahrenheit=8457,e.fathaarabic=1614,e.fathalowarabic=1614,e.fathatanarabic=1611,e.fbopomofo=12552,e.fcircle=9429,e.fdotaccent=7711,e.feharabic=1601,e.feharmenian=1414,e.fehfinalarabic=65234,e.fehinitialarabic=65235,e.fehmedialarabic=65236,e.feicoptic=997,e.female=9792,e.ff=64256,e.ffi=64259,e.ffl=64260,e.fi=64257,e.fifteencircle=9326,e.fifteenparen=9346,e.fifteenperiod=9366,e.figuredash=8210,e.filledbox=9632,e.filledrect=9644,e.finalkaf=1498,e.finalkafdagesh=64314,e.finalkafdageshhebrew=64314,e.finalkafhebrew=1498,e.finalmem=1501,e.finalmemhebrew=1501,e.finalnun=1503,e.finalnunhebrew=1503,e.finalpe=1507,e.finalpehebrew=1507,e.finaltsadi=1509,e.finaltsadihebrew=1509,e.firsttonechinese=713,e.fisheye=9673,e.fitacyrillic=1139,e.five=53,e.fivearabic=1637,e.fivebengali=2539,e.fivecircle=9316,e.fivecircleinversesansserif=10126,e.fivedeva=2411,e.fiveeighths=8541,e.fivegujarati=2795,e.fivegurmukhi=2667,e.fivehackarabic=1637,e.fivehangzhou=12325,e.fiveideographicparen=12836,e.fiveinferior=8325,e.fivemonospace=65301,e.fiveoldstyle=63285,e.fiveparen=9336,e.fiveperiod=9356,e.fivepersian=1781,e.fiveroman=8564,e.fivesuperior=8309,e.fivethai=3669,e.fl=64258,e.florin=402,e.fmonospace=65350,e.fmsquare=13209,e.fofanthai=3615,e.fofathai=3613,e.fongmanthai=3663,e.forall=8704,e.four=52,e.fourarabic=1636,e.fourbengali=2538,e.fourcircle=9315,e.fourcircleinversesansserif=10125,e.fourdeva=2410,e.fourgujarati=2794,e.fourgurmukhi=2666,e.fourhackarabic=1636,e.fourhangzhou=12324,e.fourideographicparen=12835,e.fourinferior=8324,e.fourmonospace=65300,e.fournumeratorbengali=2551,e.fouroldstyle=63284,e.fourparen=9335,e.fourperiod=9355,e.fourpersian=1780,e.fourroman=8563,e.foursuperior=8308,e.fourteencircle=9325,e.fourteenparen=9345,e.fourteenperiod=9365,e.fourthai=3668,e.fourthtonechinese=715,e.fparen=9377,e.fraction=8260,e.franc=8355,e.g=103,e.gabengali=2455,e.gacute=501,e.gadeva=2327,e.gafarabic=1711,e.gaffinalarabic=64403,e.gafinitialarabic=64404,e.gafmedialarabic=64405,e.gagujarati=2711,e.gagurmukhi=2583,e.gahiragana=12364,e.gakatakana=12460,e.gamma=947,e.gammalatinsmall=611,e.gammasuperior=736,e.gangiacoptic=1003,e.gbopomofo=12557,e.gbreve=287,e.gcaron=487,e.gcedilla=291,e.gcircle=9430,e.gcircumflex=285,e.gcommaaccent=291,e.gdot=289,e.gdotaccent=289,e.gecyrillic=1075,e.gehiragana=12370,e.gekatakana=12466,e.geometricallyequal=8785,e.gereshaccenthebrew=1436,e.gereshhebrew=1523,e.gereshmuqdamhebrew=1437,e.germandbls=223,e.gershayimaccenthebrew=1438,e.gershayimhebrew=1524,e.getamark=12307,e.ghabengali=2456,e.ghadarmenian=1394,e.ghadeva=2328,e.ghagujarati=2712,e.ghagurmukhi=2584,e.ghainarabic=1594,e.ghainfinalarabic=65230,e.ghaininitialarabic=65231,e.ghainmedialarabic=65232,e.ghemiddlehookcyrillic=1173,e.ghestrokecyrillic=1171,e.gheupturncyrillic=1169,e.ghhadeva=2394,e.ghhagurmukhi=2650,e.ghook=608,e.ghzsquare=13203,e.gihiragana=12366,e.gikatakana=12462,e.gimarmenian=1379,e.gimel=1490,e.gimeldagesh=64306,e.gimeldageshhebrew=64306,e.gimelhebrew=1490,e.gjecyrillic=1107,e.glottalinvertedstroke=446,e.glottalstop=660,e.glottalstopinverted=662,e.glottalstopmod=704,e.glottalstopreversed=661,e.glottalstopreversedmod=705,e.glottalstopreversedsuperior=740,e.glottalstopstroke=673,e.glottalstopstrokereversed=674,e.gmacron=7713,e.gmonospace=65351,e.gohiragana=12372,e.gokatakana=12468,e.gparen=9378,e.gpasquare=13228,e.gradient=8711,e.grave=96,e.gravebelowcmb=790,e.gravecmb=768,e.gravecomb=768,e.gravedeva=2387,e.gravelowmod=718,e.gravemonospace=65344,e.gravetonecmb=832,e.greater=62,e.greaterequal=8805,e.greaterequalorless=8923,e.greatermonospace=65310,e.greaterorequivalent=8819,e.greaterorless=8823,e.greateroverequal=8807,e.greatersmall=65125,e.gscript=609,e.gstroke=485,e.guhiragana=12368,e.guillemotleft=171,e.guillemotright=187,e.guilsinglleft=8249,e.guilsinglright=8250,e.gukatakana=12464,e.guramusquare=13080,e.gysquare=13257,e.h=104,e.haabkhasiancyrillic=1193,e.haaltonearabic=1729,e.habengali=2489,e.hadescendercyrillic=1203,e.hadeva=2361,e.hagujarati=2745,e.hagurmukhi=2617,e.haharabic=1581,e.hahfinalarabic=65186,e.hahinitialarabic=65187,e.hahiragana=12399,e.hahmedialarabic=65188,e.haitusquare=13098,e.hakatakana=12495,e.hakatakanahalfwidth=65418,e.halantgurmukhi=2637,e.hamzaarabic=1569,e.hamzalowarabic=1569,e.hangulfiller=12644,e.hardsigncyrillic=1098,e.harpoonleftbarbup=8636,e.harpoonrightbarbup=8640,e.hasquare=13258,e.hatafpatah=1458,e.hatafpatah16=1458,e.hatafpatah23=1458,e.hatafpatah2f=1458,e.hatafpatahhebrew=1458,e.hatafpatahnarrowhebrew=1458,e.hatafpatahquarterhebrew=1458,e.hatafpatahwidehebrew=1458,e.hatafqamats=1459,e.hatafqamats1b=1459,e.hatafqamats28=1459,e.hatafqamats34=1459,e.hatafqamatshebrew=1459,e.hatafqamatsnarrowhebrew=1459,e.hatafqamatsquarterhebrew=1459,e.hatafqamatswidehebrew=1459,e.hatafsegol=1457,e.hatafsegol17=1457,e.hatafsegol24=1457,e.hatafsegol30=1457,e.hatafsegolhebrew=1457,e.hatafsegolnarrowhebrew=1457,e.hatafsegolquarterhebrew=1457,e.hatafsegolwidehebrew=1457,e.hbar=295,e.hbopomofo=12559,e.hbrevebelow=7723,e.hcedilla=7721,e.hcircle=9431,e.hcircumflex=293,e.hdieresis=7719,e.hdotaccent=7715,e.hdotbelow=7717,e.he=1492,e.heart=9829,e.heartsuitblack=9829,e.heartsuitwhite=9825,e.hedagesh=64308,e.hedageshhebrew=64308,e.hehaltonearabic=1729,e.heharabic=1607,e.hehebrew=1492,e.hehfinalaltonearabic=64423,e.hehfinalalttwoarabic=65258,e.hehfinalarabic=65258,e.hehhamzaabovefinalarabic=64421,e.hehhamzaaboveisolatedarabic=64420,e.hehinitialaltonearabic=64424,e.hehinitialarabic=65259,e.hehiragana=12408,e.hehmedialaltonearabic=64425,e.hehmedialarabic=65260,e.heiseierasquare=13179,e.hekatakana=12504,e.hekatakanahalfwidth=65421,e.hekutaarusquare=13110,e.henghook=615,e.herutusquare=13113,e.het=1495,e.hethebrew=1495,e.hhook=614,e.hhooksuperior=689,e.hieuhacirclekorean=12923,e.hieuhaparenkorean=12827,e.hieuhcirclekorean=12909,e.hieuhkorean=12622,e.hieuhparenkorean=12813,e.hihiragana=12402,e.hikatakana=12498,e.hikatakanahalfwidth=65419,e.hiriq=1460,e.hiriq14=1460,e.hiriq21=1460,e.hiriq2d=1460,e.hiriqhebrew=1460,e.hiriqnarrowhebrew=1460,e.hiriqquarterhebrew=1460,e.hiriqwidehebrew=1460,e.hlinebelow=7830,e.hmonospace=65352,e.hoarmenian=1392,e.hohipthai=3627,e.hohiragana=12411,e.hokatakana=12507,e.hokatakanahalfwidth=65422,e.holam=1465,e.holam19=1465,e.holam26=1465,e.holam32=1465,e.holamhebrew=1465,e.holamnarrowhebrew=1465,e.holamquarterhebrew=1465,e.holamwidehebrew=1465,e.honokhukthai=3630,e.hookabovecomb=777,e.hookcmb=777,e.hookpalatalizedbelowcmb=801,e.hookretroflexbelowcmb=802,e.hoonsquare=13122,e.horicoptic=1001,e.horizontalbar=8213,e.horncmb=795,e.hotsprings=9832,e.house=8962,e.hparen=9379,e.hsuperior=688,e.hturned=613,e.huhiragana=12405,e.huiitosquare=13107,e.hukatakana=12501,e.hukatakanahalfwidth=65420,e.hungarumlaut=733,e.hungarumlautcmb=779,e.hv=405,e.hyphen=45,e.hypheninferior=63205,e.hyphenmonospace=65293,e.hyphensmall=65123,e.hyphensuperior=63206,e.hyphentwo=8208,e.i=105,e.iacute=237,e.iacyrillic=1103,e.ibengali=2439,e.ibopomofo=12583,e.ibreve=301,e.icaron=464,e.icircle=9432,e.icircumflex=238,e.icyrillic=1110,e.idblgrave=521,e.ideographearthcircle=12943,e.ideographfirecircle=12939,e.ideographicallianceparen=12863,e.ideographiccallparen=12858,e.ideographiccentrecircle=12965,e.ideographicclose=12294,e.ideographiccomma=12289,e.ideographiccommaleft=65380,e.ideographiccongratulationparen=12855,e.ideographiccorrectcircle=12963,e.ideographicearthparen=12847,e.ideographicenterpriseparen=12861,e.ideographicexcellentcircle=12957,e.ideographicfestivalparen=12864,e.ideographicfinancialcircle=12950,e.ideographicfinancialparen=12854,e.ideographicfireparen=12843,e.ideographichaveparen=12850,e.ideographichighcircle=12964,e.ideographiciterationmark=12293,e.ideographiclaborcircle=12952,e.ideographiclaborparen=12856,e.ideographicleftcircle=12967,e.ideographiclowcircle=12966,e.ideographicmedicinecircle=12969,e.ideographicmetalparen=12846,e.ideographicmoonparen=12842,e.ideographicnameparen=12852,e.ideographicperiod=12290,e.ideographicprintcircle=12958,e.ideographicreachparen=12867,e.ideographicrepresentparen=12857,e.ideographicresourceparen=12862,e.ideographicrightcircle=12968,e.ideographicsecretcircle=12953,e.ideographicselfparen=12866,e.ideographicsocietyparen=12851,e.ideographicspace=12288,e.ideographicspecialparen=12853,e.ideographicstockparen=12849,e.ideographicstudyparen=12859,e.ideographicsunparen=12848,e.ideographicsuperviseparen=12860,e.ideographicwaterparen=12844,e.ideographicwoodparen=12845,e.ideographiczero=12295,e.ideographmetalcircle=12942,e.ideographmooncircle=12938,e.ideographnamecircle=12948,e.ideographsuncircle=12944,e.ideographwatercircle=12940,e.ideographwoodcircle=12941,e.ideva=2311,e.idieresis=239,e.idieresisacute=7727,e.idieresiscyrillic=1253,e.idotbelow=7883,e.iebrevecyrillic=1239,e.iecyrillic=1077,e.ieungacirclekorean=12917,e.ieungaparenkorean=12821,e.ieungcirclekorean=12903,e.ieungkorean=12615,e.ieungparenkorean=12807,e.igrave=236,e.igujarati=2695,e.igurmukhi=2567,e.ihiragana=12356,e.ihookabove=7881,e.iibengali=2440,e.iicyrillic=1080,e.iideva=2312,e.iigujarati=2696,e.iigurmukhi=2568,e.iimatragurmukhi=2624,e.iinvertedbreve=523,e.iishortcyrillic=1081,e.iivowelsignbengali=2496,e.iivowelsigndeva=2368,e.iivowelsigngujarati=2752,e.ij=307,e.ikatakana=12452,e.ikatakanahalfwidth=65394,e.ikorean=12643,e.ilde=732,e.iluyhebrew=1452,e.imacron=299,e.imacroncyrillic=1251,e.imageorapproximatelyequal=8787,e.imatragurmukhi=2623,e.imonospace=65353,e.increment=8710,e.infinity=8734,e.iniarmenian=1387,e.integral=8747,e.integralbottom=8993,e.integralbt=8993,e.integralex=63733,e.integraltop=8992,e.integraltp=8992,e.intersection=8745,e.intisquare=13061,e.invbullet=9688,e.invcircle=9689,e.invsmileface=9787,e.iocyrillic=1105,e.iogonek=303,e.iota=953,e.iotadieresis=970,e.iotadieresistonos=912,e.iotalatin=617,e.iotatonos=943,e.iparen=9380,e.irigurmukhi=2674,e.ismallhiragana=12355,e.ismallkatakana=12451,e.ismallkatakanahalfwidth=65384,e.issharbengali=2554,e.istroke=616,e.isuperior=63213,e.iterationhiragana=12445,e.iterationkatakana=12541,e.itilde=297,e.itildebelow=7725,e.iubopomofo=12585,e.iucyrillic=1102,e.ivowelsignbengali=2495,e.ivowelsigndeva=2367,e.ivowelsigngujarati=2751,e.izhitsacyrillic=1141,e.izhitsadblgravecyrillic=1143,e.j=106,e.jaarmenian=1393,e.jabengali=2460,e.jadeva=2332,e.jagujarati=2716,e.jagurmukhi=2588,e.jbopomofo=12560,e.jcaron=496,e.jcircle=9433,e.jcircumflex=309,e.jcrossedtail=669,e.jdotlessstroke=607,e.jecyrillic=1112,e.jeemarabic=1580,e.jeemfinalarabic=65182,e.jeeminitialarabic=65183,e.jeemmedialarabic=65184,e.jeharabic=1688,e.jehfinalarabic=64395,e.jhabengali=2461,e.jhadeva=2333,e.jhagujarati=2717,e.jhagurmukhi=2589,e.jheharmenian=1403,e.jis=12292,e.jmonospace=65354,e.jparen=9381,e.jsuperior=690,e.k=107,e.kabashkircyrillic=1185,e.kabengali=2453,e.kacute=7729,e.kacyrillic=1082,e.kadescendercyrillic=1179,e.kadeva=2325,e.kaf=1499,e.kafarabic=1603,e.kafdagesh=64315,e.kafdageshhebrew=64315,e.kaffinalarabic=65242,e.kafhebrew=1499,e.kafinitialarabic=65243,e.kafmedialarabic=65244,e.kafrafehebrew=64333,e.kagujarati=2709,e.kagurmukhi=2581,e.kahiragana=12363,e.kahookcyrillic=1220,e.kakatakana=12459,e.kakatakanahalfwidth=65398,e.kappa=954,e.kappasymbolgreek=1008,e.kapyeounmieumkorean=12657,e.kapyeounphieuphkorean=12676,e.kapyeounpieupkorean=12664,e.kapyeounssangpieupkorean=12665,e.karoriisquare=13069,e.kashidaautoarabic=1600,e.kashidaautonosidebearingarabic=1600,e.kasmallkatakana=12533,e.kasquare=13188,e.kasraarabic=1616,e.kasratanarabic=1613,e.kastrokecyrillic=1183,e.katahiraprolongmarkhalfwidth=65392,e.kaverticalstrokecyrillic=1181,e.kbopomofo=12558,e.kcalsquare=13193,e.kcaron=489,e.kcedilla=311,e.kcircle=9434,e.kcommaaccent=311,e.kdotbelow=7731,e.keharmenian=1412,e.kehiragana=12369,e.kekatakana=12465,e.kekatakanahalfwidth=65401,e.kenarmenian=1391,e.kesmallkatakana=12534,e.kgreenlandic=312,e.khabengali=2454,e.khacyrillic=1093,e.khadeva=2326,e.khagujarati=2710,e.khagurmukhi=2582,e.khaharabic=1582,e.khahfinalarabic=65190,e.khahinitialarabic=65191,e.khahmedialarabic=65192,e.kheicoptic=999,e.khhadeva=2393,e.khhagurmukhi=2649,e.khieukhacirclekorean=12920,e.khieukhaparenkorean=12824,e.khieukhcirclekorean=12906,e.khieukhkorean=12619,e.khieukhparenkorean=12810,e.khokhaithai=3586,e.khokhonthai=3589,e.khokhuatthai=3587,e.khokhwaithai=3588,e.khomutthai=3675,e.khook=409,e.khorakhangthai=3590,e.khzsquare=13201,e.kihiragana=12365,e.kikatakana=12461,e.kikatakanahalfwidth=65399,e.kiroguramusquare=13077,e.kiromeetorusquare=13078,e.kirosquare=13076,e.kiyeokacirclekorean=12910,e.kiyeokaparenkorean=12814,e.kiyeokcirclekorean=12896,e.kiyeokkorean=12593,e.kiyeokparenkorean=12800,e.kiyeoksioskorean=12595,e.kjecyrillic=1116,e.klinebelow=7733,e.klsquare=13208,e.kmcubedsquare=13222,e.kmonospace=65355;e.kmsquaredsquare=13218,e.kohiragana=12371,e.kohmsquare=13248,e.kokaithai=3585,e.kokatakana=12467,e.kokatakanahalfwidth=65402,e.kooposquare=13086,e.koppacyrillic=1153,e.koreanstandardsymbol=12927,e.koroniscmb=835,e.kparen=9382,e.kpasquare=13226,e.ksicyrillic=1135,e.ktsquare=13263,e.kturned=670,e.kuhiragana=12367,e.kukatakana=12463,e.kukatakanahalfwidth=65400,e.kvsquare=13240,e.kwsquare=13246,e.l=108,e.labengali=2482,e.lacute=314,e.ladeva=2354,e.lagujarati=2738,e.lagurmukhi=2610,e.lakkhangyaothai=3653,e.lamaleffinalarabic=65276,e.lamalefhamzaabovefinalarabic=65272,e.lamalefhamzaaboveisolatedarabic=65271,e.lamalefhamzabelowfinalarabic=65274,e.lamalefhamzabelowisolatedarabic=65273,e.lamalefisolatedarabic=65275,e.lamalefmaddaabovefinalarabic=65270,e.lamalefmaddaaboveisolatedarabic=65269,e.lamarabic=1604,e.lambda=955,e.lambdastroke=411,e.lamed=1500,e.lameddagesh=64316,e.lameddageshhebrew=64316,e.lamedhebrew=1500,e.lamfinalarabic=65246,e.lamhahinitialarabic=64714,e.laminitialarabic=65247,e.lamjeeminitialarabic=64713,e.lamkhahinitialarabic=64715,e.lamlamhehisolatedarabic=65010,e.lammedialarabic=65248,e.lammeemhahinitialarabic=64904,e.lammeeminitialarabic=64716,e.largecircle=9711,e.lbar=410,e.lbelt=620,e.lbopomofo=12556,e.lcaron=318,e.lcedilla=316,e.lcircle=9435,e.lcircumflexbelow=7741,e.lcommaaccent=316,e.ldot=320,e.ldotaccent=320,e.ldotbelow=7735,e.ldotbelowmacron=7737,e.leftangleabovecmb=794,e.lefttackbelowcmb=792,e.less=60,e.lessequal=8804,e.lessequalorgreater=8922,e.lessmonospace=65308,e.lessorequivalent=8818,e.lessorgreater=8822,e.lessoverequal=8806,e.lesssmall=65124,e.lezh=622,e.lfblock=9612,e.lhookretroflex=621,e.lira=8356,e.liwnarmenian=1388,e.lj=457,e.ljecyrillic=1113,e.ll=63168,e.lladeva=2355,e.llagujarati=2739,e.llinebelow=7739,e.llladeva=2356,e.llvocalicbengali=2529,e.llvocalicdeva=2401,e.llvocalicvowelsignbengali=2531,e.llvocalicvowelsigndeva=2403,e.lmiddletilde=619,e.lmonospace=65356,e.lmsquare=13264,e.lochulathai=3628,e.logicaland=8743,e.logicalnot=172,e.logicalnotreversed=8976,e.logicalor=8744,e.lolingthai=3621,e.longs=383,e.lowlinecenterline=65102,e.lowlinecmb=818,e.lowlinedashed=65101,e.lozenge=9674,e.lparen=9383,e.lslash=322,e.lsquare=8467,e.lsuperior=63214,e.ltshade=9617,e.luthai=3622,e.lvocalicbengali=2444,e.lvocalicdeva=2316,e.lvocalicvowelsignbengali=2530,e.lvocalicvowelsigndeva=2402,e.lxsquare=13267,e.m=109,e.mabengali=2478,e.macron=175,e.macronbelowcmb=817,e.macroncmb=772,e.macronlowmod=717,e.macronmonospace=65507,e.macute=7743,e.madeva=2350,e.magujarati=2734,e.magurmukhi=2606,e.mahapakhhebrew=1444,e.mahapakhlefthebrew=1444,e.mahiragana=12414,e.maichattawalowleftthai=63637,e.maichattawalowrightthai=63636,e.maichattawathai=3659,e.maichattawaupperleftthai=63635,e.maieklowleftthai=63628,e.maieklowrightthai=63627,e.maiekthai=3656,e.maiekupperleftthai=63626,e.maihanakatleftthai=63620,e.maihanakatthai=3633,e.maitaikhuleftthai=63625,e.maitaikhuthai=3655,e.maitholowleftthai=63631,e.maitholowrightthai=63630,e.maithothai=3657,e.maithoupperleftthai=63629,e.maitrilowleftthai=63634,e.maitrilowrightthai=63633,e.maitrithai=3658,e.maitriupperleftthai=63632,e.maiyamokthai=3654,e.makatakana=12510,e.makatakanahalfwidth=65423,e.male=9794,e.mansyonsquare=13127,e.maqafhebrew=1470,e.mars=9794,e.masoracirclehebrew=1455,e.masquare=13187,e.mbopomofo=12551,e.mbsquare=13268,e.mcircle=9436,e.mcubedsquare=13221,e.mdotaccent=7745,e.mdotbelow=7747,e.meemarabic=1605,e.meemfinalarabic=65250,e.meeminitialarabic=65251,e.meemmedialarabic=65252,e.meemmeeminitialarabic=64721,e.meemmeemisolatedarabic=64584,e.meetorusquare=13133,e.mehiragana=12417,e.meizierasquare=13182,e.mekatakana=12513,e.mekatakanahalfwidth=65426,e.mem=1502,e.memdagesh=64318,e.memdageshhebrew=64318,e.memhebrew=1502,e.menarmenian=1396,e.merkhahebrew=1445,e.merkhakefulahebrew=1446,e.merkhakefulalefthebrew=1446,e.merkhalefthebrew=1445,e.mhook=625,e.mhzsquare=13202,e.middledotkatakanahalfwidth=65381,e.middot=183,e.mieumacirclekorean=12914,e.mieumaparenkorean=12818,e.mieumcirclekorean=12900,e.mieumkorean=12609,e.mieumpansioskorean=12656,e.mieumparenkorean=12804,e.mieumpieupkorean=12654,e.mieumsioskorean=12655,e.mihiragana=12415,e.mikatakana=12511,e.mikatakanahalfwidth=65424,e.minus=8722,e.minusbelowcmb=800,e.minuscircle=8854,e.minusmod=727,e.minusplus=8723,e.minute=8242,e.miribaarusquare=13130,e.mirisquare=13129,e.mlonglegturned=624,e.mlsquare=13206,e.mmcubedsquare=13219,e.mmonospace=65357,e.mmsquaredsquare=13215,e.mohiragana=12418,e.mohmsquare=13249,e.mokatakana=12514,e.mokatakanahalfwidth=65427,e.molsquare=13270,e.momathai=3617,e.moverssquare=13223,e.moverssquaredsquare=13224,e.mparen=9384,e.mpasquare=13227,e.mssquare=13235,e.msuperior=63215,e.mturned=623,e.mu=181,e.mu1=181,e.muasquare=13186,e.muchgreater=8811,e.muchless=8810,e.mufsquare=13196,e.mugreek=956,e.mugsquare=13197,e.muhiragana=12416,e.mukatakana=12512,e.mukatakanahalfwidth=65425,e.mulsquare=13205,e.multiply=215,e.mumsquare=13211,e.munahhebrew=1443,e.munahlefthebrew=1443,e.musicalnote=9834,e.musicalnotedbl=9835,e.musicflatsign=9837,e.musicsharpsign=9839,e.mussquare=13234,e.muvsquare=13238,e.muwsquare=13244,e.mvmegasquare=13241,e.mvsquare=13239,e.mwmegasquare=13247,e.mwsquare=13245,e.n=110,e.nabengali=2472,e.nabla=8711,e.nacute=324,e.nadeva=2344,e.nagujarati=2728,e.nagurmukhi=2600,e.nahiragana=12394,e.nakatakana=12490,e.nakatakanahalfwidth=65413,e.napostrophe=329,e.nasquare=13185,e.nbopomofo=12555,e.nbspace=160,e.ncaron=328,e.ncedilla=326,e.ncircle=9437,e.ncircumflexbelow=7755,e.ncommaaccent=326,e.ndotaccent=7749,e.ndotbelow=7751,e.nehiragana=12397,e.nekatakana=12493,e.nekatakanahalfwidth=65416,e.newsheqelsign=8362,e.nfsquare=13195,e.ngabengali=2457,e.ngadeva=2329,e.ngagujarati=2713,e.ngagurmukhi=2585,e.ngonguthai=3591,e.nhiragana=12435,e.nhookleft=626,e.nhookretroflex=627,e.nieunacirclekorean=12911,e.nieunaparenkorean=12815,e.nieuncieuckorean=12597,e.nieuncirclekorean=12897,e.nieunhieuhkorean=12598,e.nieunkorean=12596,e.nieunpansioskorean=12648,e.nieunparenkorean=12801,e.nieunsioskorean=12647,e.nieuntikeutkorean=12646,e.nihiragana=12395,e.nikatakana=12491,e.nikatakanahalfwidth=65414,e.nikhahitleftthai=63641,e.nikhahitthai=3661,e.nine=57,e.ninearabic=1641,e.ninebengali=2543,e.ninecircle=9320,e.ninecircleinversesansserif=10130,e.ninedeva=2415,e.ninegujarati=2799,e.ninegurmukhi=2671,e.ninehackarabic=1641,e.ninehangzhou=12329,e.nineideographicparen=12840,e.nineinferior=8329,e.ninemonospace=65305,e.nineoldstyle=63289,e.nineparen=9340,e.nineperiod=9360,e.ninepersian=1785,e.nineroman=8568,e.ninesuperior=8313,e.nineteencircle=9330,e.nineteenparen=9350,e.nineteenperiod=9370,e.ninethai=3673,e.nj=460,e.njecyrillic=1114,e.nkatakana=12531,e.nkatakanahalfwidth=65437,e.nlegrightlong=414,e.nlinebelow=7753,e.nmonospace=65358,e.nmsquare=13210,e.nnabengali=2467,e.nnadeva=2339,e.nnagujarati=2723,e.nnagurmukhi=2595,e.nnnadeva=2345,e.nohiragana=12398,e.nokatakana=12494,e.nokatakanahalfwidth=65417,e.nonbreakingspace=160,e.nonenthai=3603,e.nonuthai=3609,e.noonarabic=1606,e.noonfinalarabic=65254,e.noonghunnaarabic=1722,e.noonghunnafinalarabic=64415,e.nooninitialarabic=65255,e.noonjeeminitialarabic=64722,e.noonjeemisolatedarabic=64587,e.noonmedialarabic=65256,e.noonmeeminitialarabic=64725,e.noonmeemisolatedarabic=64590,e.noonnoonfinalarabic=64653,e.notcontains=8716,e.notelement=8713,e.notelementof=8713,e.notequal=8800,e.notgreater=8815,e.notgreaternorequal=8817,e.notgreaternorless=8825,e.notidentical=8802,e.notless=8814,e.notlessnorequal=8816,e.notparallel=8742,e.notprecedes=8832,e.notsubset=8836,e.notsucceeds=8833,e.notsuperset=8837,e.nowarmenian=1398,e.nparen=9385,e.nssquare=13233,e.nsuperior=8319,e.ntilde=241,e.nu=957,e.nuhiragana=12396,e.nukatakana=12492,e.nukatakanahalfwidth=65415,e.nuktabengali=2492,e.nuktadeva=2364,e.nuktagujarati=2748,e.nuktagurmukhi=2620,e.numbersign=35,e.numbersignmonospace=65283,e.numbersignsmall=65119,e.numeralsigngreek=884,e.numeralsignlowergreek=885,e.numero=8470,e.nun=1504,e.nundagesh=64320,e.nundageshhebrew=64320,e.nunhebrew=1504,e.nvsquare=13237,e.nwsquare=13243,e.nyabengali=2462,e.nyadeva=2334,e.nyagujarati=2718,e.nyagurmukhi=2590,e.o=111,e.oacute=243,e.oangthai=3629,e.obarred=629,e.obarredcyrillic=1257,e.obarreddieresiscyrillic=1259,e.obengali=2451,e.obopomofo=12571,e.obreve=335,e.ocandradeva=2321,e.ocandragujarati=2705,e.ocandravowelsigndeva=2377,e.ocandravowelsigngujarati=2761,e.ocaron=466,e.ocircle=9438,e.ocircumflex=244,e.ocircumflexacute=7889,e.ocircumflexdotbelow=7897,e.ocircumflexgrave=7891,e.ocircumflexhookabove=7893,e.ocircumflextilde=7895,e.ocyrillic=1086,e.odblacute=337,e.odblgrave=525,e.odeva=2323,e.odieresis=246,e.odieresiscyrillic=1255,e.odotbelow=7885,e.oe=339,e.oekorean=12634,e.ogonek=731,e.ogonekcmb=808,e.ograve=242,e.ogujarati=2707,e.oharmenian=1413,e.ohiragana=12362,e.ohookabove=7887,e.ohorn=417,e.ohornacute=7899,e.ohorndotbelow=7907,e.ohorngrave=7901,e.ohornhookabove=7903,e.ohorntilde=7905,e.ohungarumlaut=337,e.oi=419,e.oinvertedbreve=527,e.okatakana=12458,e.okatakanahalfwidth=65397,e.okorean=12631,e.olehebrew=1451,e.omacron=333,e.omacronacute=7763,e.omacrongrave=7761,e.omdeva=2384,e.omega=969,e.omega1=982,e.omegacyrillic=1121,e.omegalatinclosed=631,e.omegaroundcyrillic=1147,e.omegatitlocyrillic=1149,e.omegatonos=974,e.omgujarati=2768,e.omicron=959,e.omicrontonos=972,e.omonospace=65359,e.one=49,e.onearabic=1633,e.onebengali=2535,e.onecircle=9312,e.onecircleinversesansserif=10122,e.onedeva=2407,e.onedotenleader=8228,e.oneeighth=8539,e.onefitted=63196,e.onegujarati=2791,e.onegurmukhi=2663,e.onehackarabic=1633,e.onehalf=189,e.onehangzhou=12321,e.oneideographicparen=12832,e.oneinferior=8321,e.onemonospace=65297,e.onenumeratorbengali=2548,e.oneoldstyle=63281,e.oneparen=9332,e.oneperiod=9352,e.onepersian=1777,e.onequarter=188,e.oneroman=8560,e.onesuperior=185,e.onethai=3665,e.onethird=8531,e.oogonek=491,e.oogonekmacron=493,e.oogurmukhi=2579,e.oomatragurmukhi=2635,e.oopen=596,e.oparen=9386,e.openbullet=9702,e.option=8997,e.ordfeminine=170,e.ordmasculine=186,e.orthogonal=8735,e.oshortdeva=2322,e.oshortvowelsigndeva=2378,e.oslash=248,e.oslashacute=511,e.osmallhiragana=12361,e.osmallkatakana=12457,e.osmallkatakanahalfwidth=65387,e.ostrokeacute=511,e.osuperior=63216,e.otcyrillic=1151,e.otilde=245,e.otildeacute=7757,e.otildedieresis=7759,e.oubopomofo=12577,e.overline=8254,e.overlinecenterline=65098,e.overlinecmb=773,e.overlinedashed=65097,e.overlinedblwavy=65100,e.overlinewavy=65099,e.overscore=175,e.ovowelsignbengali=2507,e.ovowelsigndeva=2379,e.ovowelsigngujarati=2763,e.p=112,e.paampssquare=13184,e.paasentosquare=13099,e.pabengali=2474,e.pacute=7765,e.padeva=2346,e.pagedown=8671,e.pageup=8670,e.pagujarati=2730,e.pagurmukhi=2602,e.pahiragana=12401,e.paiyannoithai=3631,e.pakatakana=12497,e.palatalizationcyrilliccmb=1156,e.palochkacyrillic=1216,e.pansioskorean=12671,e.paragraph=182,e.parallel=8741,e.parenleft=40,e.parenleftaltonearabic=64830,e.parenleftbt=63725,e.parenleftex=63724,e.parenleftinferior=8333,e.parenleftmonospace=65288,e.parenleftsmall=65113,e.parenleftsuperior=8317,e.parenlefttp=63723,e.parenleftvertical=65077,e.parenright=41,e.parenrightaltonearabic=64831,e.parenrightbt=63736,e.parenrightex=63735,e.parenrightinferior=8334,e.parenrightmonospace=65289,e.parenrightsmall=65114,e.parenrightsuperior=8318,e.parenrighttp=63734,e.parenrightvertical=65078,e.partialdiff=8706,e.paseqhebrew=1472,e.pashtahebrew=1433,e.pasquare=13225,e.patah=1463,e.patah11=1463,e.patah1d=1463,e.patah2a=1463,e.patahhebrew=1463,e.patahnarrowhebrew=1463,e.patahquarterhebrew=1463,e.patahwidehebrew=1463,e.pazerhebrew=1441,e.pbopomofo=12550,e.pcircle=9439,e.pdotaccent=7767,e.pe=1508,e.pecyrillic=1087,e.pedagesh=64324,e.pedageshhebrew=64324,e.peezisquare=13115,e.pefinaldageshhebrew=64323,e.peharabic=1662,e.peharmenian=1402,e.pehebrew=1508,e.pehfinalarabic=64343,e.pehinitialarabic=64344,e.pehiragana=12410,e.pehmedialarabic=64345,e.pekatakana=12506,e.pemiddlehookcyrillic=1191,e.perafehebrew=64334,e.percent=37,e.percentarabic=1642,e.percentmonospace=65285,e.percentsmall=65130,e.period=46,e.periodarmenian=1417,e.periodcentered=183,e.periodhalfwidth=65377,e.periodinferior=63207,e.periodmonospace=65294,e.periodsmall=65106,e.periodsuperior=63208,e.perispomenigreekcmb=834,e.perpendicular=8869,e.perthousand=8240,e.peseta=8359,e.pfsquare=13194,e.phabengali=2475,e.phadeva=2347,e.phagujarati=2731,e.phagurmukhi=2603,e.phi=966,e.phi1=981,e.phieuphacirclekorean=12922,e.phieuphaparenkorean=12826,e.phieuphcirclekorean=12908,e.phieuphkorean=12621,e.phieuphparenkorean=12812,e.philatin=632,e.phinthuthai=3642,e.phisymbolgreek=981,e.phook=421,e.phophanthai=3614,e.phophungthai=3612,e.phosamphaothai=3616,e.pi=960,e.pieupacirclekorean=12915,e.pieupaparenkorean=12819,e.pieupcieuckorean=12662,e.pieupcirclekorean=12901,e.pieupkiyeokkorean=12658,e.pieupkorean=12610,e.pieupparenkorean=12805,e.pieupsioskiyeokkorean=12660,e.pieupsioskorean=12612,e.pieupsiostikeutkorean=12661,e.pieupthieuthkorean=12663,e.pieuptikeutkorean=12659,e.pihiragana=12404,e.pikatakana=12500,e.pisymbolgreek=982,e.piwrarmenian=1411,e.plus=43,e.plusbelowcmb=799,e.pluscircle=8853,e.plusminus=177,e.plusmod=726,e.plusmonospace=65291,e.plussmall=65122,e.plussuperior=8314,e.pmonospace=65360,e.pmsquare=13272,e.pohiragana=12413,e.pointingindexdownwhite=9759,e.pointingindexleftwhite=9756,e.pointingindexrightwhite=9758,e.pointingindexupwhite=9757,e.pokatakana=12509,e.poplathai=3611,e.postalmark=12306,e.postalmarkface=12320,e.pparen=9387,e.precedes=8826,e.prescription=8478,e.primemod=697,e.primereversed=8245,e.product=8719,e.projective=8965,e.prolongedkana=12540,e.propellor=8984,e.propersubset=8834,e.propersuperset=8835,e.proportion=8759,e.proportional=8733,e.psi=968,e.psicyrillic=1137,e.psilipneumatacyrilliccmb=1158,e.pssquare=13232,e.puhiragana=12407,e.pukatakana=12503,e.pvsquare=13236,e.pwsquare=13242,e.q=113,e.qadeva=2392,e.qadmahebrew=1448,e.qafarabic=1602,e.qaffinalarabic=65238,e.qafinitialarabic=65239,e.qafmedialarabic=65240,e.qamats=1464,e.qamats10=1464,e.qamats1a=1464,e.qamats1c=1464,e.qamats27=1464,e.qamats29=1464,e.qamats33=1464,e.qamatsde=1464,e.qamatshebrew=1464,e.qamatsnarrowhebrew=1464,e.qamatsqatanhebrew=1464,e.qamatsqatannarrowhebrew=1464,e.qamatsqatanquarterhebrew=1464,e.qamatsqatanwidehebrew=1464,e.qamatsquarterhebrew=1464,e.qamatswidehebrew=1464,e.qarneyparahebrew=1439,e.qbopomofo=12561,e.qcircle=9440,e.qhook=672,e.qmonospace=65361,e.qof=1511,e.qofdagesh=64327,e.qofdageshhebrew=64327,e.qofhebrew=1511,e.qparen=9388,e.quarternote=9833,e.qubuts=1467,e.qubuts18=1467,e.qubuts25=1467,e.qubuts31=1467,e.qubutshebrew=1467,e.qubutsnarrowhebrew=1467,e.qubutsquarterhebrew=1467,e.qubutswidehebrew=1467,e.question=63,e.questionarabic=1567,e.questionarmenian=1374,e.questiondown=191,e.questiondownsmall=63423,e.questiongreek=894,e.questionmonospace=65311,e.questionsmall=63295,e.quotedbl=34,e.quotedblbase=8222,e.quotedblleft=8220,e.quotedblmonospace=65282,e.quotedblprime=12318,e.quotedblprimereversed=12317,e.quotedblright=8221,e.quoteleft=8216,e.quoteleftreversed=8219,e.quotereversed=8219,e.quoteright=8217,e.quoterightn=329,e.quotesinglbase=8218,e.quotesingle=39,e.quotesinglemonospace=65287,e.r=114,e.raarmenian=1404,e.rabengali=2480,e.racute=341,e.radeva=2352,e.radical=8730,e.radicalex=63717,e.radoverssquare=13230,e.radoverssquaredsquare=13231,e.radsquare=13229,e.rafe=1471,e.rafehebrew=1471,e.ragujarati=2736,e.ragurmukhi=2608,e.rahiragana=12425,e.rakatakana=12521,e.rakatakanahalfwidth=65431,e.ralowerdiagonalbengali=2545,e.ramiddlediagonalbengali=2544,e.ramshorn=612,e.ratio=8758,e.rbopomofo=12566,e.rcaron=345,e.rcedilla=343,e.rcircle=9441,e.rcommaaccent=343,e.rdblgrave=529,e.rdotaccent=7769,e.rdotbelow=7771,e.rdotbelowmacron=7773,e.referencemark=8251,e.reflexsubset=8838,e.reflexsuperset=8839,e.registered=174,e.registersans=63720,e.registerserif=63194,e.reharabic=1585,e.reharmenian=1408,e.rehfinalarabic=65198,e.rehiragana=12428,e.rekatakana=12524,e.rekatakanahalfwidth=65434,e.resh=1512,e.reshdageshhebrew=64328,e.reshhebrew=1512,e.reversedtilde=8765,e.reviahebrew=1431,e.reviamugrashhebrew=1431;e.revlogicalnot=8976,e.rfishhook=638,e.rfishhookreversed=639,e.rhabengali=2525,e.rhadeva=2397,e.rho=961,e.rhook=637,e.rhookturned=635,e.rhookturnedsuperior=693,e.rhosymbolgreek=1009,e.rhotichookmod=734,e.rieulacirclekorean=12913,e.rieulaparenkorean=12817,e.rieulcirclekorean=12899,e.rieulhieuhkorean=12608,e.rieulkiyeokkorean=12602,e.rieulkiyeoksioskorean=12649,e.rieulkorean=12601,e.rieulmieumkorean=12603,e.rieulpansioskorean=12652,e.rieulparenkorean=12803,e.rieulphieuphkorean=12607,e.rieulpieupkorean=12604,e.rieulpieupsioskorean=12651,e.rieulsioskorean=12605,e.rieulthieuthkorean=12606,e.rieultikeutkorean=12650,e.rieulyeorinhieuhkorean=12653,e.rightangle=8735,e.righttackbelowcmb=793,e.righttriangle=8895,e.rihiragana=12426,e.rikatakana=12522,e.rikatakanahalfwidth=65432,e.ring=730,e.ringbelowcmb=805,e.ringcmb=778,e.ringhalfleft=703,e.ringhalfleftarmenian=1369,e.ringhalfleftbelowcmb=796,e.ringhalfleftcentered=723,e.ringhalfright=702,e.ringhalfrightbelowcmb=825,e.ringhalfrightcentered=722,e.rinvertedbreve=531,e.rittorusquare=13137,e.rlinebelow=7775,e.rlongleg=636,e.rlonglegturned=634,e.rmonospace=65362,e.rohiragana=12429,e.rokatakana=12525,e.rokatakanahalfwidth=65435,e.roruathai=3619,e.rparen=9389,e.rrabengali=2524,e.rradeva=2353,e.rragurmukhi=2652,e.rreharabic=1681,e.rrehfinalarabic=64397,e.rrvocalicbengali=2528,e.rrvocalicdeva=2400,e.rrvocalicgujarati=2784,e.rrvocalicvowelsignbengali=2500,e.rrvocalicvowelsigndeva=2372,e.rrvocalicvowelsigngujarati=2756,e.rsuperior=63217,e.rtblock=9616,e.rturned=633,e.rturnedsuperior=692,e.ruhiragana=12427,e.rukatakana=12523,e.rukatakanahalfwidth=65433,e.rupeemarkbengali=2546,e.rupeesignbengali=2547,e.rupiah=63197,e.ruthai=3620,e.rvocalicbengali=2443,e.rvocalicdeva=2315,e.rvocalicgujarati=2699,e.rvocalicvowelsignbengali=2499,e.rvocalicvowelsigndeva=2371,e.rvocalicvowelsigngujarati=2755,e.s=115,e.sabengali=2488,e.sacute=347,e.sacutedotaccent=7781,e.sadarabic=1589,e.sadeva=2360,e.sadfinalarabic=65210,e.sadinitialarabic=65211,e.sadmedialarabic=65212,e.sagujarati=2744,e.sagurmukhi=2616,e.sahiragana=12373,e.sakatakana=12469,e.sakatakanahalfwidth=65403,e.sallallahoualayhewasallamarabic=65018,e.samekh=1505,e.samekhdagesh=64321,e.samekhdageshhebrew=64321,e.samekhhebrew=1505,e.saraaathai=3634,e.saraaethai=3649,e.saraaimaimalaithai=3652,e.saraaimaimuanthai=3651,e.saraamthai=3635,e.saraathai=3632,e.saraethai=3648,e.saraiileftthai=63622,e.saraiithai=3637,e.saraileftthai=63621,e.saraithai=3636,e.saraothai=3650,e.saraueeleftthai=63624,e.saraueethai=3639,e.saraueleftthai=63623,e.sarauethai=3638,e.sarauthai=3640,e.sarauuthai=3641,e.sbopomofo=12569,e.scaron=353,e.scarondotaccent=7783,e.scedilla=351,e.schwa=601,e.schwacyrillic=1241,e.schwadieresiscyrillic=1243,e.schwahook=602,e.scircle=9442,e.scircumflex=349,e.scommaaccent=537,e.sdotaccent=7777,e.sdotbelow=7779,e.sdotbelowdotaccent=7785,e.seagullbelowcmb=828,e.second=8243,e.secondtonechinese=714,e.section=167,e.seenarabic=1587,e.seenfinalarabic=65202,e.seeninitialarabic=65203,e.seenmedialarabic=65204,e.segol=1462,e.segol13=1462,e.segol1f=1462,e.segol2c=1462,e.segolhebrew=1462,e.segolnarrowhebrew=1462,e.segolquarterhebrew=1462,e.segoltahebrew=1426,e.segolwidehebrew=1462,e.seharmenian=1405,e.sehiragana=12379,e.sekatakana=12475,e.sekatakanahalfwidth=65406,e.semicolon=59,e.semicolonarabic=1563,e.semicolonmonospace=65307,e.semicolonsmall=65108,e.semivoicedmarkkana=12444,e.semivoicedmarkkanahalfwidth=65439,e.sentisquare=13090,e.sentosquare=13091,e.seven=55,e.sevenarabic=1639,e.sevenbengali=2541,e.sevencircle=9318,e.sevencircleinversesansserif=10128,e.sevendeva=2413,e.seveneighths=8542,e.sevengujarati=2797,e.sevengurmukhi=2669,e.sevenhackarabic=1639,e.sevenhangzhou=12327,e.sevenideographicparen=12838,e.seveninferior=8327,e.sevenmonospace=65303,e.sevenoldstyle=63287,e.sevenparen=9338,e.sevenperiod=9358,e.sevenpersian=1783,e.sevenroman=8566,e.sevensuperior=8311,e.seventeencircle=9328,e.seventeenparen=9348,e.seventeenperiod=9368,e.seventhai=3671,e.sfthyphen=173,e.shaarmenian=1399,e.shabengali=2486,e.shacyrillic=1096,e.shaddaarabic=1617,e.shaddadammaarabic=64609,e.shaddadammatanarabic=64606,e.shaddafathaarabic=64608,e.shaddakasraarabic=64610,e.shaddakasratanarabic=64607,e.shade=9618,e.shadedark=9619,e.shadelight=9617,e.shademedium=9618,e.shadeva=2358,e.shagujarati=2742,e.shagurmukhi=2614,e.shalshelethebrew=1427,e.shbopomofo=12565,e.shchacyrillic=1097,e.sheenarabic=1588,e.sheenfinalarabic=65206,e.sheeninitialarabic=65207,e.sheenmedialarabic=65208,e.sheicoptic=995,e.sheqel=8362,e.sheqelhebrew=8362,e.sheva=1456,e.sheva115=1456,e.sheva15=1456,e.sheva22=1456,e.sheva2e=1456,e.shevahebrew=1456,e.shevanarrowhebrew=1456,e.shevaquarterhebrew=1456,e.shevawidehebrew=1456,e.shhacyrillic=1211,e.shimacoptic=1005,e.shin=1513,e.shindagesh=64329,e.shindageshhebrew=64329,e.shindageshshindot=64300,e.shindageshshindothebrew=64300,e.shindageshsindot=64301,e.shindageshsindothebrew=64301,e.shindothebrew=1473,e.shinhebrew=1513,e.shinshindot=64298,e.shinshindothebrew=64298,e.shinsindot=64299,e.shinsindothebrew=64299,e.shook=642,e.sigma=963,e.sigma1=962,e.sigmafinal=962,e.sigmalunatesymbolgreek=1010,e.sihiragana=12375,e.sikatakana=12471,e.sikatakanahalfwidth=65404,e.siluqhebrew=1469,e.siluqlefthebrew=1469,e.similar=8764,e.sindothebrew=1474,e.siosacirclekorean=12916,e.siosaparenkorean=12820,e.sioscieuckorean=12670,e.sioscirclekorean=12902,e.sioskiyeokkorean=12666,e.sioskorean=12613,e.siosnieunkorean=12667,e.siosparenkorean=12806,e.siospieupkorean=12669,e.siostikeutkorean=12668,e.six=54,e.sixarabic=1638,e.sixbengali=2540,e.sixcircle=9317,e.sixcircleinversesansserif=10127,e.sixdeva=2412,e.sixgujarati=2796,e.sixgurmukhi=2668,e.sixhackarabic=1638,e.sixhangzhou=12326,e.sixideographicparen=12837,e.sixinferior=8326,e.sixmonospace=65302,e.sixoldstyle=63286,e.sixparen=9337,e.sixperiod=9357,e.sixpersian=1782,e.sixroman=8565,e.sixsuperior=8310,e.sixteencircle=9327,e.sixteencurrencydenominatorbengali=2553,e.sixteenparen=9347,e.sixteenperiod=9367,e.sixthai=3670,e.slash=47,e.slashmonospace=65295,e.slong=383,e.slongdotaccent=7835,e.smileface=9786,e.smonospace=65363,e.sofpasuqhebrew=1475,e.softhyphen=173,e.softsigncyrillic=1100,e.sohiragana=12381,e.sokatakana=12477,e.sokatakanahalfwidth=65407,e.soliduslongoverlaycmb=824,e.solidusshortoverlaycmb=823,e.sorusithai=3625,e.sosalathai=3624,e.sosothai=3595,e.sosuathai=3626,e.space=32,e.spacehackarabic=32,e.spade=9824,e.spadesuitblack=9824,e.spadesuitwhite=9828,e.sparen=9390,e.squarebelowcmb=827,e.squarecc=13252,e.squarecm=13213,e.squarediagonalcrosshatchfill=9641,e.squarehorizontalfill=9636,e.squarekg=13199,e.squarekm=13214,e.squarekmcapital=13262,e.squareln=13265,e.squarelog=13266,e.squaremg=13198,e.squaremil=13269,e.squaremm=13212,e.squaremsquared=13217,e.squareorthogonalcrosshatchfill=9638,e.squareupperlefttolowerrightfill=9639,e.squareupperrighttolowerleftfill=9640,e.squareverticalfill=9637,e.squarewhitewithsmallblack=9635,e.srsquare=13275,e.ssabengali=2487,e.ssadeva=2359,e.ssagujarati=2743,e.ssangcieuckorean=12617,e.ssanghieuhkorean=12677,e.ssangieungkorean=12672,e.ssangkiyeokkorean=12594,e.ssangnieunkorean=12645,e.ssangpieupkorean=12611,e.ssangsioskorean=12614,e.ssangtikeutkorean=12600,e.ssuperior=63218,e.sterling=163,e.sterlingmonospace=65505,e.strokelongoverlaycmb=822,e.strokeshortoverlaycmb=821,e.subset=8834,e.subsetnotequal=8842,e.subsetorequal=8838,e.succeeds=8827,e.suchthat=8715,e.suhiragana=12377,e.sukatakana=12473,e.sukatakanahalfwidth=65405,e.sukunarabic=1618,e.summation=8721,e.sun=9788,e.superset=8835,e.supersetnotequal=8843,e.supersetorequal=8839,e.svsquare=13276,e.syouwaerasquare=13180,e.t=116,e.tabengali=2468,e.tackdown=8868,e.tackleft=8867,e.tadeva=2340,e.tagujarati=2724,e.tagurmukhi=2596,e.taharabic=1591,e.tahfinalarabic=65218,e.tahinitialarabic=65219,e.tahiragana=12383,e.tahmedialarabic=65220,e.taisyouerasquare=13181,e.takatakana=12479,e.takatakanahalfwidth=65408,e.tatweelarabic=1600,e.tau=964,e.tav=1514,e.tavdages=64330,e.tavdagesh=64330,e.tavdageshhebrew=64330,e.tavhebrew=1514,e.tbar=359,e.tbopomofo=12554,e.tcaron=357,e.tccurl=680,e.tcedilla=355,e.tcheharabic=1670,e.tchehfinalarabic=64379,e.tchehinitialarabic=64380,e.tchehmedialarabic=64381,e.tcircle=9443,e.tcircumflexbelow=7793,e.tcommaaccent=355,e.tdieresis=7831,e.tdotaccent=7787,e.tdotbelow=7789,e.tecyrillic=1090,e.tedescendercyrillic=1197,e.teharabic=1578,e.tehfinalarabic=65174,e.tehhahinitialarabic=64674,e.tehhahisolatedarabic=64524,e.tehinitialarabic=65175,e.tehiragana=12390,e.tehjeeminitialarabic=64673,e.tehjeemisolatedarabic=64523,e.tehmarbutaarabic=1577,e.tehmarbutafinalarabic=65172,e.tehmedialarabic=65176,e.tehmeeminitialarabic=64676,e.tehmeemisolatedarabic=64526,e.tehnoonfinalarabic=64627,e.tekatakana=12486,e.tekatakanahalfwidth=65411,e.telephone=8481,e.telephoneblack=9742,e.telishagedolahebrew=1440,e.telishaqetanahebrew=1449,e.tencircle=9321,e.tenideographicparen=12841,e.tenparen=9341,e.tenperiod=9361,e.tenroman=8569,e.tesh=679,e.tet=1496,e.tetdagesh=64312,e.tetdageshhebrew=64312,e.tethebrew=1496,e.tetsecyrillic=1205,e.tevirhebrew=1435,e.tevirlefthebrew=1435,e.thabengali=2469,e.thadeva=2341,e.thagujarati=2725,e.thagurmukhi=2597,e.thalarabic=1584,e.thalfinalarabic=65196,e.thanthakhatlowleftthai=63640,e.thanthakhatlowrightthai=63639,e.thanthakhatthai=3660,e.thanthakhatupperleftthai=63638,e.theharabic=1579,e.thehfinalarabic=65178,e.thehinitialarabic=65179,e.thehmedialarabic=65180,e.thereexists=8707,e.therefore=8756,e.theta=952,e.theta1=977,e.thetasymbolgreek=977,e.thieuthacirclekorean=12921,e.thieuthaparenkorean=12825,e.thieuthcirclekorean=12907,e.thieuthkorean=12620,e.thieuthparenkorean=12811,e.thirteencircle=9324,e.thirteenparen=9344,e.thirteenperiod=9364,e.thonangmonthothai=3601,e.thook=429,e.thophuthaothai=3602,e.thorn=254,e.thothahanthai=3607,e.thothanthai=3600,e.thothongthai=3608,e.thothungthai=3606,e.thousandcyrillic=1154,e.thousandsseparatorarabic=1644,e.thousandsseparatorpersian=1644,e.three=51,e.threearabic=1635,e.threebengali=2537,e.threecircle=9314,e.threecircleinversesansserif=10124,e.threedeva=2409,e.threeeighths=8540,e.threegujarati=2793,e.threegurmukhi=2665,e.threehackarabic=1635,e.threehangzhou=12323,e.threeideographicparen=12834,e.threeinferior=8323,e.threemonospace=65299,e.threenumeratorbengali=2550,e.threeoldstyle=63283,e.threeparen=9334,e.threeperiod=9354,e.threepersian=1779,e.threequarters=190,e.threequartersemdash=63198,e.threeroman=8562,e.threesuperior=179,e.threethai=3667,e.thzsquare=13204,e.tihiragana=12385,e.tikatakana=12481,e.tikatakanahalfwidth=65409,e.tikeutacirclekorean=12912,e.tikeutaparenkorean=12816,e.tikeutcirclekorean=12898,e.tikeutkorean=12599,e.tikeutparenkorean=12802,e.tilde=732,e.tildebelowcmb=816,e.tildecmb=771,e.tildecomb=771,e.tildedoublecmb=864,e.tildeoperator=8764,e.tildeoverlaycmb=820,e.tildeverticalcmb=830,e.timescircle=8855,e.tipehahebrew=1430,e.tipehalefthebrew=1430,e.tippigurmukhi=2672,e.titlocyrilliccmb=1155,e.tiwnarmenian=1407,e.tlinebelow=7791,e.tmonospace=65364,e.toarmenian=1385,e.tohiragana=12392,e.tokatakana=12488,e.tokatakanahalfwidth=65412,e.tonebarextrahighmod=741,e.tonebarextralowmod=745,e.tonebarhighmod=742,e.tonebarlowmod=744,e.tonebarmidmod=743,e.tonefive=445,e.tonesix=389,e.tonetwo=424,e.tonos=900,e.tonsquare=13095,e.topatakthai=3599,e.tortoiseshellbracketleft=12308,e.tortoiseshellbracketleftsmall=65117,e.tortoiseshellbracketleftvertical=65081,e.tortoiseshellbracketright=12309,e.tortoiseshellbracketrightsmall=65118,e.tortoiseshellbracketrightvertical=65082,e.totaothai=3605,e.tpalatalhook=427,e.tparen=9391,e.trademark=8482,e.trademarksans=63722,e.trademarkserif=63195,e.tretroflexhook=648,e.triagdn=9660,e.triaglf=9668,e.triagrt=9658,e.triagup=9650,e.ts=678,e.tsadi=1510,e.tsadidagesh=64326,e.tsadidageshhebrew=64326,e.tsadihebrew=1510,e.tsecyrillic=1094,e.tsere=1461,e.tsere12=1461,e.tsere1e=1461,e.tsere2b=1461,e.tserehebrew=1461,e.tserenarrowhebrew=1461,e.tserequarterhebrew=1461,e.tserewidehebrew=1461,e.tshecyrillic=1115,e.tsuperior=63219,e.ttabengali=2463,e.ttadeva=2335,e.ttagujarati=2719,e.ttagurmukhi=2591,e.tteharabic=1657,e.ttehfinalarabic=64359,e.ttehinitialarabic=64360,e.ttehmedialarabic=64361,e.tthabengali=2464,e.tthadeva=2336,e.tthagujarati=2720,e.tthagurmukhi=2592,e.tturned=647,e.tuhiragana=12388,e.tukatakana=12484,e.tukatakanahalfwidth=65410,e.tusmallhiragana=12387,e.tusmallkatakana=12483,e.tusmallkatakanahalfwidth=65391,e.twelvecircle=9323,e.twelveparen=9343,e.twelveperiod=9363,e.twelveroman=8571,e.twentycircle=9331,e.twentyhangzhou=21316,e.twentyparen=9351,e.twentyperiod=9371,e.two=50,e.twoarabic=1634,e.twobengali=2536,e.twocircle=9313,e.twocircleinversesansserif=10123,e.twodeva=2408,e.twodotenleader=8229,e.twodotleader=8229,e.twodotleadervertical=65072,e.twogujarati=2792,e.twogurmukhi=2664,e.twohackarabic=1634,e.twohangzhou=12322,e.twoideographicparen=12833,e.twoinferior=8322,e.twomonospace=65298,e.twonumeratorbengali=2549,e.twooldstyle=63282,e.twoparen=9333,e.twoperiod=9353,e.twopersian=1778,e.tworoman=8561,e.twostroke=443,e.twosuperior=178,e.twothai=3666,e.twothirds=8532,e.u=117,e.uacute=250,e.ubar=649,e.ubengali=2441,e.ubopomofo=12584,e.ubreve=365,e.ucaron=468,e.ucircle=9444,e.ucircumflex=251,e.ucircumflexbelow=7799,e.ucyrillic=1091,e.udattadeva=2385,e.udblacute=369,e.udblgrave=533,e.udeva=2313,e.udieresis=252,e.udieresisacute=472,e.udieresisbelow=7795,e.udieresiscaron=474,e.udieresiscyrillic=1265,e.udieresisgrave=476,e.udieresismacron=470,e.udotbelow=7909,e.ugrave=249,e.ugujarati=2697,e.ugurmukhi=2569,e.uhiragana=12358,e.uhookabove=7911,e.uhorn=432,e.uhornacute=7913,e.uhorndotbelow=7921,e.uhorngrave=7915,e.uhornhookabove=7917,e.uhorntilde=7919,e.uhungarumlaut=369,e.uhungarumlautcyrillic=1267,e.uinvertedbreve=535,e.ukatakana=12454,e.ukatakanahalfwidth=65395,e.ukcyrillic=1145,e.ukorean=12636,e.umacron=363,e.umacroncyrillic=1263,e.umacrondieresis=7803,e.umatragurmukhi=2625,e.umonospace=65365,e.underscore=95,e.underscoredbl=8215,e.underscoremonospace=65343,e.underscorevertical=65075,e.underscorewavy=65103,e.union=8746,e.universal=8704,e.uogonek=371,e.uparen=9392,e.upblock=9600,e.upperdothebrew=1476,e.upsilon=965,e.upsilondieresis=971,e.upsilondieresistonos=944,e.upsilonlatin=650,e.upsilontonos=973,e.uptackbelowcmb=797,e.uptackmod=724,e.uragurmukhi=2675,e.uring=367,e.ushortcyrillic=1118,e.usmallhiragana=12357,e.usmallkatakana=12453,e.usmallkatakanahalfwidth=65385,e.ustraightcyrillic=1199,e.ustraightstrokecyrillic=1201,e.utilde=361,e.utildeacute=7801,e.utildebelow=7797,e.uubengali=2442,e.uudeva=2314,e.uugujarati=2698,e.uugurmukhi=2570,e.uumatragurmukhi=2626,e.uuvowelsignbengali=2498,e.uuvowelsigndeva=2370,e.uuvowelsigngujarati=2754,e.uvowelsignbengali=2497,e.uvowelsigndeva=2369,e.uvowelsigngujarati=2753,e.v=118,e.vadeva=2357,e.vagujarati=2741,e.vagurmukhi=2613,e.vakatakana=12535,e.vav=1493,e.vavdagesh=64309,e.vavdagesh65=64309,e.vavdageshhebrew=64309,e.vavhebrew=1493,e.vavholam=64331,e.vavholamhebrew=64331,e.vavvavhebrew=1520,e.vavyodhebrew=1521,e.vcircle=9445,e.vdotbelow=7807,e.vecyrillic=1074,e.veharabic=1700,e.vehfinalarabic=64363,e.vehinitialarabic=64364,e.vehmedialarabic=64365,e.vekatakana=12537,e.venus=9792,e.verticalbar=124,e.verticallineabovecmb=781,e.verticallinebelowcmb=809,e.verticallinelowmod=716,e.verticallinemod=712,e.vewarmenian=1406,e.vhook=651,e.vikatakana=12536,e.viramabengali=2509,e.viramadeva=2381,e.viramagujarati=2765,e.visargabengali=2435,e.visargadeva=2307,e.visargagujarati=2691,e.vmonospace=65366,e.voarmenian=1400,e.voicediterationhiragana=12446,e.voicediterationkatakana=12542,e.voicedmarkkana=12443,e.voicedmarkkanahalfwidth=65438,e.vokatakana=12538,e.vparen=9393,e.vtilde=7805,e.vturned=652,e.vuhiragana=12436,e.vukatakana=12532,e.w=119,e.wacute=7811,e.waekorean=12633,e.wahiragana=12431,e.wakatakana=12527,e.wakatakanahalfwidth=65436,e.wakorean=12632,e.wasmallhiragana=12430,e.wasmallkatakana=12526,e.wattosquare=13143,e.wavedash=12316,e.wavyunderscorevertical=65076,e.wawarabic=1608,e.wawfinalarabic=65262,e.wawhamzaabovearabic=1572,e.wawhamzaabovefinalarabic=65158,e.wbsquare=13277,e.wcircle=9446,e.wcircumflex=373,e.wdieresis=7813,e.wdotaccent=7815,e.wdotbelow=7817,e.wehiragana=12433,e.weierstrass=8472,e.wekatakana=12529,e.wekorean=12638,e.weokorean=12637,e.wgrave=7809,e.whitebullet=9702,e.whitecircle=9675,e.whitecircleinverse=9689,e.whitecornerbracketleft=12302,e.whitecornerbracketleftvertical=65091,e.whitecornerbracketright=12303,e.whitecornerbracketrightvertical=65092,e.whitediamond=9671,e.whitediamondcontainingblacksmalldiamond=9672,e.whitedownpointingsmalltriangle=9663,e.whitedownpointingtriangle=9661,e.whiteleftpointingsmalltriangle=9667,e.whiteleftpointingtriangle=9665,e.whitelenticularbracketleft=12310,e.whitelenticularbracketright=12311,e.whiterightpointingsmalltriangle=9657,e.whiterightpointingtriangle=9655;e.whitesmallsquare=9643,e.whitesmilingface=9786,e.whitesquare=9633,e.whitestar=9734,e.whitetelephone=9743,e.whitetortoiseshellbracketleft=12312,e.whitetortoiseshellbracketright=12313,e.whiteuppointingsmalltriangle=9653,e.whiteuppointingtriangle=9651,e.wihiragana=12432,e.wikatakana=12528,e.wikorean=12639,e.wmonospace=65367,e.wohiragana=12434,e.wokatakana=12530,e.wokatakanahalfwidth=65382,e.won=8361,e.wonmonospace=65510,e.wowaenthai=3623,e.wparen=9394,e.wring=7832,e.wsuperior=695,e.wturned=653,e.wynn=447,e.x=120,e.xabovecmb=829,e.xbopomofo=12562,e.xcircle=9447,e.xdieresis=7821,e.xdotaccent=7819,e.xeharmenian=1389,e.xi=958,e.xmonospace=65368,e.xparen=9395,e.xsuperior=739,e.y=121,e.yaadosquare=13134,e.yabengali=2479,e.yacute=253,e.yadeva=2351,e.yaekorean=12626,e.yagujarati=2735,e.yagurmukhi=2607,e.yahiragana=12420,e.yakatakana=12516,e.yakatakanahalfwidth=65428,e.yakorean=12625,e.yamakkanthai=3662,e.yasmallhiragana=12419,e.yasmallkatakana=12515,e.yasmallkatakanahalfwidth=65388,e.yatcyrillic=1123,e.ycircle=9448,e.ycircumflex=375,e.ydieresis=255,e.ydotaccent=7823,e.ydotbelow=7925,e.yeharabic=1610,e.yehbarreearabic=1746,e.yehbarreefinalarabic=64431,e.yehfinalarabic=65266,e.yehhamzaabovearabic=1574,e.yehhamzaabovefinalarabic=65162,e.yehhamzaaboveinitialarabic=65163,e.yehhamzaabovemedialarabic=65164,e.yehinitialarabic=65267,e.yehmedialarabic=65268,e.yehmeeminitialarabic=64733,e.yehmeemisolatedarabic=64600,e.yehnoonfinalarabic=64660,e.yehthreedotsbelowarabic=1745,e.yekorean=12630,e.yen=165,e.yenmonospace=65509,e.yeokorean=12629,e.yeorinhieuhkorean=12678,e.yerahbenyomohebrew=1450,e.yerahbenyomolefthebrew=1450,e.yericyrillic=1099,e.yerudieresiscyrillic=1273,e.yesieungkorean=12673,e.yesieungpansioskorean=12675,e.yesieungsioskorean=12674,e.yetivhebrew=1434,e.ygrave=7923,e.yhook=436,e.yhookabove=7927,e.yiarmenian=1397,e.yicyrillic=1111,e.yikorean=12642,e.yinyang=9775,e.yiwnarmenian=1410,e.ymonospace=65369,e.yod=1497,e.yoddagesh=64313,e.yoddageshhebrew=64313,e.yodhebrew=1497,e.yodyodhebrew=1522,e.yodyodpatahhebrew=64287,e.yohiragana=12424,e.yoikorean=12681,e.yokatakana=12520,e.yokatakanahalfwidth=65430,e.yokorean=12635,e.yosmallhiragana=12423,e.yosmallkatakana=12519,e.yosmallkatakanahalfwidth=65390,e.yotgreek=1011,e.yoyaekorean=12680,e.yoyakorean=12679,e.yoyakthai=3618,e.yoyingthai=3597,e.yparen=9396,e.ypogegrammeni=890,e.ypogegrammenigreekcmb=837,e.yr=422,e.yring=7833,e.ysuperior=696,e.ytilde=7929,e.yturned=654,e.yuhiragana=12422,e.yuikorean=12684,e.yukatakana=12518,e.yukatakanahalfwidth=65429,e.yukorean=12640,e.yusbigcyrillic=1131,e.yusbigiotifiedcyrillic=1133,e.yuslittlecyrillic=1127,e.yuslittleiotifiedcyrillic=1129,e.yusmallhiragana=12421,e.yusmallkatakana=12517,e.yusmallkatakanahalfwidth=65389,e.yuyekorean=12683,e.yuyeokorean=12682,e.yyabengali=2527,e.yyadeva=2399,e.z=122,e.zaarmenian=1382,e.zacute=378,e.zadeva=2395,e.zagurmukhi=2651,e.zaharabic=1592,e.zahfinalarabic=65222,e.zahinitialarabic=65223,e.zahiragana=12374,e.zahmedialarabic=65224,e.zainarabic=1586,e.zainfinalarabic=65200,e.zakatakana=12470,e.zaqefgadolhebrew=1429,e.zaqefqatanhebrew=1428,e.zarqahebrew=1432,e.zayin=1494,e.zayindagesh=64310,e.zayindageshhebrew=64310,e.zayinhebrew=1494,e.zbopomofo=12567,e.zcaron=382,e.zcircle=9449,e.zcircumflex=7825,e.zcurl=657,e.zdot=380,e.zdotaccent=380,e.zdotbelow=7827,e.zecyrillic=1079,e.zedescendercyrillic=1177,e.zedieresiscyrillic=1247,e.zehiragana=12380,e.zekatakana=12476,e.zero=48,e.zeroarabic=1632,e.zerobengali=2534,e.zerodeva=2406,e.zerogujarati=2790,e.zerogurmukhi=2662,e.zerohackarabic=1632,e.zeroinferior=8320,e.zeromonospace=65296,e.zerooldstyle=63280,e.zeropersian=1776,e.zerosuperior=8304,e.zerothai=3664,e.zerowidthjoiner=65279,e.zerowidthnonjoiner=8204,e.zerowidthspace=8203,e.zeta=950,e.zhbopomofo=12563,e.zhearmenian=1386,e.zhebrevecyrillic=1218,e.zhecyrillic=1078,e.zhedescendercyrillic=1175,e.zhedieresiscyrillic=1245,e.zihiragana=12376,e.zikatakana=12472,e.zinorhebrew=1454,e.zlinebelow=7829,e.zmonospace=65370,e.zohiragana=12382,e.zokatakana=12478,e.zparen=9397,e.zretroflexhook=656,e.zstroke=438,e.zuhiragana=12378,e.zukatakana=12474,e[".notdef"]=0,e.angbracketleftbig=9001,e.angbracketleftBig=9001,e.angbracketleftbigg=9001,e.angbracketleftBigg=9001,e.angbracketrightBig=9002,e.angbracketrightbig=9002,e.angbracketrightBigg=9002,e.angbracketrightbigg=9002,e.arrowhookleft=8618,e.arrowhookright=8617,e.arrowlefttophalf=8636,e.arrowleftbothalf=8637,e.arrownortheast=8599,e.arrownorthwest=8598,e.arrowrighttophalf=8640,e.arrowrightbothalf=8641,e.arrowsoutheast=8600,e.arrowsouthwest=8601,e.backslashbig=8726,e.backslashBig=8726,e.backslashBigg=8726,e.backslashbigg=8726,e.bardbl=8214,e.bracehtipdownleft=65079,e.bracehtipdownright=65079,e.bracehtipupleft=65080,e.bracehtipupright=65080,e.braceleftBig=123,e.braceleftbig=123,e.braceleftbigg=123,e.braceleftBigg=123,e.bracerightBig=125,e.bracerightbig=125,e.bracerightbigg=125,e.bracerightBigg=125,e.bracketleftbig=91,e.bracketleftBig=91,e.bracketleftbigg=91,e.bracketleftBigg=91,e.bracketrightBig=93,e.bracketrightbig=93,e.bracketrightbigg=93,e.bracketrightBigg=93,e.ceilingleftbig=8968,e.ceilingleftBig=8968,e.ceilingleftBigg=8968,e.ceilingleftbigg=8968,e.ceilingrightbig=8969,e.ceilingrightBig=8969,e.ceilingrightbigg=8969,e.ceilingrightBigg=8969,e.circledotdisplay=8857,e.circledottext=8857,e.circlemultiplydisplay=8855,e.circlemultiplytext=8855,e.circleplusdisplay=8853,e.circleplustext=8853,e.contintegraldisplay=8750,e.contintegraltext=8750,e.coproductdisplay=8720,e.coproducttext=8720,e.floorleftBig=8970,e.floorleftbig=8970,e.floorleftbigg=8970,e.floorleftBigg=8970,e.floorrightbig=8971,e.floorrightBig=8971,e.floorrightBigg=8971,e.floorrightbigg=8971,e.hatwide=770,e.hatwider=770,e.hatwidest=770,e.intercal=7488,e.integraldisplay=8747,e.integraltext=8747,e.intersectiondisplay=8898,e.intersectiontext=8898,e.logicalanddisplay=8743,e.logicalandtext=8743,e.logicalordisplay=8744,e.logicalortext=8744,e.parenleftBig=40,e.parenleftbig=40,e.parenleftBigg=40,e.parenleftbigg=40,e.parenrightBig=41,e.parenrightbig=41,e.parenrightBigg=41,e.parenrightbigg=41,e.prime=8242,e.productdisplay=8719,e.producttext=8719,e.radicalbig=8730,e.radicalBig=8730,e.radicalBigg=8730,e.radicalbigg=8730,e.radicalbt=8730,e.radicaltp=8730,e.radicalvertex=8730,e.slashbig=47,e.slashBig=47,e.slashBigg=47,e.slashbigg=47,e.summationdisplay=8721,e.summationtext=8721,e.tildewide=732,e.tildewider=732,e.tildewidest=732,e.uniondisplay=8899,e.unionmultidisplay=8846,e.unionmultitext=8846,e.unionsqdisplay=8852,e.unionsqtext=8852,e.uniontext=8899,e.vextenddouble=8741,e.vextendsingle=8739}),n=a(function(e){e.space=32,e.a1=9985,e.a2=9986,e.a202=9987,e.a3=9988,e.a4=9742,e.a5=9990,e.a119=9991,e.a118=9992,e.a117=9993,e.a11=9755,e.a12=9758,e.a13=9996,e.a14=9997,e.a15=9998,e.a16=9999,e.a105=1e4,e.a17=10001,e.a18=10002,e.a19=10003,e.a20=10004,e.a21=10005,e.a22=10006,e.a23=10007,e.a24=10008,e.a25=10009,e.a26=10010,e.a27=10011,e.a28=10012,e.a6=10013,e.a7=10014,e.a8=10015,e.a9=10016,e.a10=10017,e.a29=10018,e.a30=10019,e.a31=10020,e.a32=10021,e.a33=10022,e.a34=10023,e.a35=9733,e.a36=10025,e.a37=10026,e.a38=10027,e.a39=10028,e.a40=10029,e.a41=10030,e.a42=10031,e.a43=10032,e.a44=10033,e.a45=10034,e.a46=10035,e.a47=10036,e.a48=10037,e.a49=10038,e.a50=10039,e.a51=10040,e.a52=10041,e.a53=10042,e.a54=10043,e.a55=10044,e.a56=10045,e.a57=10046,e.a58=10047,e.a59=10048,e.a60=10049,e.a61=10050,e.a62=10051,e.a63=10052,e.a64=10053,e.a65=10054,e.a66=10055,e.a67=10056,e.a68=10057,e.a69=10058,e.a70=10059,e.a71=9679,e.a72=10061,e.a73=9632,e.a74=10063,e.a203=10064,e.a75=10065,e.a204=10066,e.a76=9650,e.a77=9660,e.a78=9670,e.a79=10070,e.a81=9687,e.a82=10072,e.a83=10073,e.a84=10074,e.a97=10075,e.a98=10076,e.a99=10077,e.a100=10078,e.a101=10081,e.a102=10082,e.a103=10083,e.a104=10084,e.a106=10085,e.a107=10086,e.a108=10087,e.a112=9827,e.a111=9830,e.a110=9829,e.a109=9824,e.a120=9312,e.a121=9313,e.a122=9314,e.a123=9315,e.a124=9316,e.a125=9317,e.a126=9318,e.a127=9319,e.a128=9320,e.a129=9321,e.a130=10102,e.a131=10103,e.a132=10104,e.a133=10105,e.a134=10106,e.a135=10107,e.a136=10108,e.a137=10109,e.a138=10110,e.a139=10111,e.a140=10112,e.a141=10113,e.a142=10114,e.a143=10115,e.a144=10116,e.a145=10117,e.a146=10118,e.a147=10119,e.a148=10120,e.a149=10121,e.a150=10122,e.a151=10123,e.a152=10124,e.a153=10125,e.a154=10126,e.a155=10127,e.a156=10128,e.a157=10129,e.a158=10130,e.a159=10131,e.a160=10132,e.a161=8594,e.a163=8596,e.a164=8597,e.a196=10136,e.a165=10137,e.a192=10138,e.a166=10139,e.a167=10140,e.a168=10141,e.a169=10142,e.a170=10143,e.a171=10144,e.a172=10145,e.a173=10146,e.a162=10147,e.a174=10148,e.a175=10149,e.a176=10150,e.a177=10151,e.a178=10152,e.a179=10153,e.a193=10154,e.a180=10155,e.a199=10156,e.a181=10157,e.a200=10158,e.a182=10159,e.a201=10161,e.a183=10162,e.a184=10163,e.a197=10164,e.a185=10165,e.a194=10166,e.a198=10167,e.a186=10168,e.a195=10169,e.a187=10170,e.a188=10171,e.a189=10172,e.a190=10173,e.a191=10174,e.a89=10088,e.a90=10089,e.a93=10090,e.a94=10091,e.a91=10092,e.a92=10093,e.a205=10094,e.a85=10095,e.a206=10096,e.a86=10097,e.a87=10098,e.a88=10099,e.a95=10100,e.a96=10101,e[".notdef"]=0});t.getGlyphsUnicode=i,t.getDingbatsGlyphsUnicode=n},function(e,t,r){"use strict";function a(){}Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var i=r(3),n=r(0);a.prototype={create:function(e){switch(e.data.annotationType){case n.AnnotationType.LINK:return new s(e);case n.AnnotationType.TEXT:return new c(e);case n.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new h(e);case"Btn":if(e.data.radioButton)return new d(e);if(e.data.checkBox)return new u(e);(0,n.warn)("Unimplemented button widget annotation: pushbutton");break;case"Ch":return new f(e)}return new l(e);case n.AnnotationType.POPUP:return new g(e);case n.AnnotationType.LINE:return new m(e);case n.AnnotationType.HIGHLIGHT:return new b(e);case n.AnnotationType.UNDERLINE:return new v(e);case n.AnnotationType.SQUIGGLY:return new y(e);case n.AnnotationType.STRIKEOUT:return new k(e);case n.AnnotationType.FILEATTACHMENT:return new w(e);default:return new o(e)}}};var o=function(){function e(e,t,r){this.isRenderable=t||!1,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderInteractiveForms=e.renderInteractiveForms,t&&(this.container=this._createContainer(r))}return e.prototype={_createContainer:function(e){var t=this.data,r=this.page,a=this.viewport,o=document.createElement("section"),s=t.rect[2]-t.rect[0],c=t.rect[3]-t.rect[1];o.setAttribute("data-annotation-id",t.id);var l=n.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]);if(i.CustomStyle.setProp("transform",o,"matrix("+a.transform.join(",")+")"),i.CustomStyle.setProp("transformOrigin",o,-l[0]+"px "+-l[1]+"px"),!e&&t.borderStyle.width>0){o.style.borderWidth=t.borderStyle.width+"px",t.borderStyle.style!==n.AnnotationBorderStyleType.UNDERLINE&&(s-=2*t.borderStyle.width,c-=2*t.borderStyle.width);var h=t.borderStyle.horizontalCornerRadius,u=t.borderStyle.verticalCornerRadius;if(h>0||u>0){var d=h+"px / "+u+"px";i.CustomStyle.setProp("borderRadius",o,d)}switch(t.borderStyle.style){case n.AnnotationBorderStyleType.SOLID:o.style.borderStyle="solid";break;case n.AnnotationBorderStyleType.DASHED:o.style.borderStyle="dashed";break;case n.AnnotationBorderStyleType.BEVELED:(0,n.warn)("Unimplemented border style: beveled");break;case n.AnnotationBorderStyleType.INSET:(0,n.warn)("Unimplemented border style: inset");break;case n.AnnotationBorderStyleType.UNDERLINE:o.style.borderBottomStyle="solid"}t.color?o.style.borderColor=n.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):o.style.borderWidth=0}return o.style.left=l[0]+"px",o.style.top=l[1]+"px",o.style.width=s+"px",o.style.height=c+"px",o},_createPopup:function(e,t,r){t||((t=document.createElement("div")).style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var a=new p({container:e,trigger:t,color:r.color,title:r.title,contents:r.contents,hideWrapper:!0}).render();a.style.left=e.style.width,e.appendChild(a)},render:function(){throw new Error("Abstract method AnnotationElement.render called")}},e}(),s=function(){function e(e){o.call(this,e,!0)}return n.Util.inherit(e,o,{render:function(){this.container.className="linkAnnotation";var e=document.createElement("a");return(0,i.addLinkAttributes)(e,{url:this.data.url,target:this.data.newWindow?i.LinkTarget.BLANK:void 0}),this.data.url||(this.data.action?this._bindNamedAction(e,this.data.action):this._bindLink(e,this.data.dest)),this.container.appendChild(e),this.container},_bindLink:function(e,t){var r=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&r.linkService.navigateTo(t),!1},t&&(e.className="internalLink")},_bindNamedAction:function(e,t){var r=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return r.linkService.executeNamedAction(t),!1},e.className="internalLink"}}),e}(),c=function(){function e(e){var t=!!(e.data.hasPopup||e.data.title||e.data.contents);o.call(this,e,t)}return n.Util.inherit(e,o,{render:function(){this.container.className="textAnnotation";var e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}),e}(),l=function(){function e(e,t){o.call(this,e,t)}return n.Util.inherit(e,o,{render:function(){return this.container}}),e}(),h=function(){function e(e){var t=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;l.call(this,e,t)}var t=["left","center","right"];return n.Util.inherit(e,l,{render:function(){this.container.className="textWidgetAnnotation";var e=null;if(this.renderInteractiveForms){if(this.data.multiLine?(e=document.createElement("textarea")).textContent=this.data.fieldValue:((e=document.createElement("input")).type="text",e.setAttribute("value",this.data.fieldValue)),e.disabled=this.data.readOnly,null!==this.data.maxLen&&(e.maxLength=this.data.maxLen),this.data.comb){var r=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;e.classList.add("comb"),e.style.letterSpacing="calc("+r+"px - 1ch)"}}else{(e=document.createElement("div")).textContent=this.data.fieldValue,e.style.verticalAlign="middle",e.style.display="table-cell";var a=null;this.data.fontRefName&&(a=this.page.commonObjs.getData(this.data.fontRefName)),this._setTextStyle(e,a)}return null!==this.data.textAlignment&&(e.style.textAlign=t[this.data.textAlignment]),this.container.appendChild(e),this.container},_setTextStyle:function(e,t){var r=e.style;if(r.fontSize=this.data.fontSize+"px",r.direction=this.data.fontDirection<0?"rtl":"ltr",t){r.fontWeight=t.black?t.bold?"900":"bold":t.bold?"bold":"normal",r.fontStyle=t.italic?"italic":"normal";var a=t.loadedName?'"'+t.loadedName+'", ':"",i=t.fallbackName||"Helvetica, sans-serif";r.fontFamily=a+i}}}),e}(),u=function(){function e(e){l.call(this,e,e.renderInteractiveForms)}return n.Util.inherit(e,l,{render:function(){this.container.className="buttonWidgetAnnotation checkBox";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="checkbox",this.data.fieldValue&&"Off"!==this.data.fieldValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}),e}(),d=function(){function e(e){l.call(this,e,e.renderInteractiveForms)}return n.Util.inherit(e,l,{render:function(){this.container.className="buttonWidgetAnnotation radioButton";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="radio",e.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}),e}(),f=function(){function e(e){l.call(this,e,e.renderInteractiveForms)}return n.Util.inherit(e,l,{render:function(){this.container.className="choiceWidgetAnnotation";var e=document.createElement("select");e.disabled=this.data.readOnly,this.data.combo||(e.size=this.data.options.length,this.data.multiSelect&&(e.multiple=!0));for(var t=0,r=this.data.options.length;t<r;t++){var a=this.data.options[t],i=document.createElement("option");i.textContent=a.displayValue,i.value=a.exportValue,this.data.fieldValue.indexOf(a.displayValue)>=0&&i.setAttribute("selected",!0),e.appendChild(i)}return this.container.appendChild(e),this.container}}),e}(),g=function(){function e(e){var t=!(!e.data.title&&!e.data.contents);o.call(this,e,t)}var t=["Line"];return n.Util.inherit(e,o,{render:function(){if(this.container.className="popupAnnotation",t.indexOf(this.data.parentType)>=0)return this.container;var e='[data-annotation-id="'+this.data.parentId+'"]',r=this.layer.querySelector(e);if(!r)return this.container;var a=new p({container:this.container,trigger:r,color:this.data.color,title:this.data.title,contents:this.data.contents}),n=parseFloat(r.style.left),o=parseFloat(r.style.width);return i.CustomStyle.setProp("transformOrigin",this.container,-(n+o)+"px -"+r.style.top),this.container.style.left=n+o+"px",this.container.appendChild(a.render()),this.container}}),e}(),p=function(){function e(e){this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.title=e.title,this.contents=e.contents,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}return e.prototype={render:function(){var e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.setAttribute("hidden",!0);var t=document.createElement("div");t.className="popup";var r=this.color;if(r){var a=.7*(255-r[0])+r[0],i=.7*(255-r[1])+r[1],o=.7*(255-r[2])+r[2];t.style.backgroundColor=n.Util.makeCssRgb(0|a,0|i,0|o)}var s=this._formatContents(this.contents),c=document.createElement("h1");return c.textContent=this.title,this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),t.addEventListener("click",this._hide.bind(this,!0)),t.appendChild(c),t.appendChild(s),e.appendChild(t),e},_formatContents:function(e){for(var t=document.createElement("p"),r=e.split(/(?:\r\n?|\n)/),a=0,i=r.length;a<i;++a){var n=r[a];t.appendChild(document.createTextNode(n)),a<i-1&&t.appendChild(document.createElement("br"))}return t},_toggle:function(){this.pinned?this._hide(!0):this._show(!0)},_show:function(e){e&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)},_hide:function(e){e&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}},e}(),m=function(){function e(e){var t=!!(e.data.hasPopup||e.data.title||e.data.contents);o.call(this,e,t,!0)}var t="http://www.w3.org/2000/svg";return n.Util.inherit(e,o,{render:function(){this.container.className="lineAnnotation";var e=this.data,r=e.rect[2]-e.rect[0],a=e.rect[3]-e.rect[1],i=document.createElementNS(t,"svg:svg");i.setAttributeNS(null,"version","1.1"),i.setAttributeNS(null,"width",r+"px"),i.setAttributeNS(null,"height",a+"px"),i.setAttributeNS(null,"preserveAspectRatio","none"),i.setAttributeNS(null,"viewBox","0 0 "+r+" "+a);var n=document.createElementNS(t,"svg:line");return n.setAttributeNS(null,"x1",e.rect[2]-e.lineCoordinates[0]),n.setAttributeNS(null,"y1",e.rect[3]-e.lineCoordinates[1]),n.setAttributeNS(null,"x2",e.rect[2]-e.lineCoordinates[2]),n.setAttributeNS(null,"y2",e.rect[3]-e.lineCoordinates[3]),n.setAttributeNS(null,"stroke-width",e.borderStyle.width),n.setAttributeNS(null,"stroke","transparent"),i.appendChild(n),this.container.append(i),this._createPopup(this.container,n,this.data),this.container}}),e}(),b=function(){function e(e){var t=!!(e.data.hasPopup||e.data.title||e.data.contents);o.call(this,e,t,!0)}return n.Util.inherit(e,o,{render:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),e}(),v=function(){function e(e){var t=!!(e.data.hasPopup||e.data.title||e.data.contents);o.call(this,e,t,!0)}return n.Util.inherit(e,o,{render:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),e}(),y=function(){function e(e){var t=!!(e.data.hasPopup||e.data.title||e.data.contents);o.call(this,e,t,!0)}return n.Util.inherit(e,o,{render:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),e}(),k=function(){function e(e){var t=!!(e.data.hasPopup||e.data.title||e.data.contents);o.call(this,e,t,!0)}return n.Util.inherit(e,o,{render:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),e}(),w=function(){function e(e){o.call(this,e,!0);var t=this.data.file;this.filename=(0,i.getFilenameFromUrl)(t.filename),this.content=t.content,this.linkService.onFileAttachmentAnnotation({id:(0,n.stringToPDFString)(t.filename),filename:t.filename,content:t.content})}return n.Util.inherit(e,o,{render:function(){this.container.className="fileAttachmentAnnotation";var e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container},_download:function(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,n.warn)("Download cannot be started due to unavailable download manager")}}),e}(),S={render:function(e){for(var t=new a,r=0,n=e.annotations.length;r<n;r++){var o=e.annotations[r];if(o){var s=t.create({data:o,layer:e.div,page:e.page,viewport:e.viewport,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||(0,i.getDefaultSetting)("imageResourcesPath"),renderInteractiveForms:e.renderInteractiveForms||!1});s.isRenderable&&e.div.appendChild(s.render())}}},update:function(e){for(var t=0,r=e.annotations.length;t<r;t++){var a=e.annotations[t],n=e.div.querySelector('[data-annotation-id="'+a.id+'"]');n&&i.CustomStyle.setProp("transform",n,"matrix("+e.viewport.transform.join(",")+")")}e.div.removeAttribute("hidden")}};t.AnnotationLayer=S},function(e,t,r){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,r,a){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(t.disableAutoFetch=(0,c.getDefaultSetting)("disableAutoFetch"),t.disableStream=(0,c.getDefaultSetting)("disableStream"),t.chunkedViewerLoading=!!r,r&&(t.length=r.length,t.initialData=r.initialData),e.messageHandler.sendWithPromise("GetDocRequest",{docId:a,source:t,disableRange:(0,c.getDefaultSetting)("disableRange"),maxImageSize:(0,c.getDefaultSetting)("maxImageSize"),disableFontFace:(0,c.getDefaultSetting)("disableFontFace"),disableCreateObjectURL:(0,c.getDefaultSetting)("disableCreateObjectURL"),postMessageTransfers:(0,c.getDefaultSetting)("postMessageTransfers")&&!g,docBaseUrl:t.docBaseUrl,nativeImageDecoderSupport:t.nativeImageDecoderSupport,ignoreErrors:t.ignoreErrors}).then(function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t}))}Object.defineProperty(t,"__esModule",{value:!0}),t.build=t.version=t._UnsupportedManager=t.PDFPageProxy=t.PDFDocumentProxy=t.PDFWorker=t.PDFDataRangeTransport=t.LoopbackPort=t.getDocument=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,r,a){return r&&e(t.prototype,r),a&&e(t,a),t}}(),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=r(0),c=r(3),l=r(46),h=r(45),u=r(24),d=65536,f=!1,g=!1,p=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(){function e(){this._capability=(0,s.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+t++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}var t=0;return e.prototype={get promise(){return this._capability.promise},destroy:function(){var e=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(function(){e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)})},then:function(e,t){return this.promise.then.apply(this.promise,arguments)}},e}()),m=function(){function e(e,t){this.length=e,this.initialData=t,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._readyCapability=(0,s.createPromiseCapability)()}return e.prototype={addRangeListener:function(e){this._rangeListeners.push(e)},addProgressListener:function(e){this._progressListeners.push(e)},addProgressiveReadListener:function(e){this._progressiveReadListeners.push(e)},onDataRange:function(e,t){for(var r=this._rangeListeners,a=0,i=r.length;a<i;++a)r[a](e,t)},onDataProgress:function(e){var t=this;this._readyCapability.promise.then(function(){for(var r=t._progressListeners,a=0,i=r.length;a<i;++a)r[a](e)})},onDataProgressiveRead:function(e){var t=this;this._readyCapability.promise.then(function(){for(var r=t._progressiveReadListeners,a=0,i=r.length;a<i;++a)r[a](e)})},transportReady:function(){this._readyCapability.resolve()},requestDataRange:function(e,t){throw new Error("Abstract method PDFDataRangeTransport.requestDataRange")},abort:function(){}},e}(),b=function(){function e(e,t,r){this.pdfInfo=e,this.transport=t,this.loadingTask=r}return e.prototype={get numPages(){return this.pdfInfo.numPages},get fingerprint(){return this.pdfInfo.fingerprint},getPage:function(e){return this.transport.getPage(e)},getPageIndex:function(e){return this.transport.getPageIndex(e)},getDestinations:function(){return this.transport.getDestinations()},getDestination:function(e){return this.transport.getDestination(e)},getPageLabels:function(){return this.transport.getPageLabels()},getAttachments:function(){return this.transport.getAttachments()},getJavaScript:function(){return this.transport.getJavaScript()},getOutline:function(){return this.transport.getOutline()},getMetadata:function(){return this.transport.getMetadata()},getData:function(){return this.transport.getData()},getDownloadInfo:function(){return this.transport.downloadInfoCapability.promise},getStats:function(){return this.transport.getStats()},cleanup:function(){this.transport.startCleanup()},destroy:function(){return this.loadingTask.destroy()}},e}(),v=function(){function e(e,t,r){this.pageIndex=e,this.pageInfo=t,this.transport=r,this.stats=new s.StatTimer,this.stats.enabled=(0,c.getDefaultSetting)("enableStats"),this.commonObjs=r.commonObjs,this.objs=new S,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return e.prototype={get pageNumber(){return this.pageIndex+1},get rotate(){return this.pageInfo.rotate},get ref(){return this.pageInfo.ref},get userUnit(){return this.pageInfo.userUnit},get view(){return this.pageInfo.view},getViewport:function(e,t){return arguments.length<2&&(t=this.rotate),new s.PageViewport(this.view,e,t,0,0)},getAnnotations:function(e){var t=e&&e.intent||null;return this.annotationsPromise&&this.annotationsIntent===t||(this.annotationsPromise=this.transport.getAnnotations(this.pageIndex,t),this.annotationsIntent=t),this.annotationsPromise},render:function(e){var t=this,r=this.stats;r.time("Overall"),this.pendingCleanup=!1;var a="print"===e.intent?"print":"display",i=e.canvasFactory||new c.DOMCanvasFactory;this.intentStates[a]||(this.intentStates[a]=Object.create(null));var n=this.intentStates[a];n.displayReadyCapability||(n.receivingOperatorList=!0,n.displayReadyCapability=(0,s.createPromiseCapability)(),n.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this.stats.time("Page Request"),this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageNumber-1,intent:a,renderInteractiveForms:!0===e.renderInteractiveForms}));var o=function(e){var a=n.renderTasks.indexOf(l);a>=0&&n.renderTasks.splice(a,1),t.cleanupAfterRender&&(t.pendingCleanup=!0),t._tryCleanup(),e?l.capability.reject(e):l.capability.resolve(),r.timeEnd("Rendering"),r.timeEnd("Overall")},l=new C(o,e,this.objs,this.commonObjs,n.operatorList,this.pageNumber,i);l.useRequestAnimationFrame="print"!==a,n.renderTasks||(n.renderTasks=[]),n.renderTasks.push(l);var h=l.task;return e.continueCallback&&((0,s.deprecated)("render is used with continueCallback parameter"),h.onContinue=e.continueCallback),n.displayReadyCapability.promise.then(function(e){t.pendingCleanup?o():(r.time("Rendering"),l.initializeGraphics(e),l.operatorListChanged())}).catch(o),h},getOperatorList:function(){this.intentStates.oplist||(this.intentStates.oplist=Object.create(null));var e,t=this.intentStates.oplist;return t.opListReadCapability||((e={}).operatorListChanged=function(){if(t.operatorList.lastChunk){t.opListReadCapability.resolve(t.operatorList);var r=t.renderTasks.indexOf(e);r>=0&&t.renderTasks.splice(r,1)}},t.receivingOperatorList=!0,t.opListReadCapability=(0,s.createPromiseCapability)(),t.renderTasks=[],t.renderTasks.push(e),t.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageIndex,intent:"oplist"})),t.opListReadCapability.promise},getTextContent:function(e){return e=e||{},this.transport.messageHandler.sendWithPromise("GetTextContent",{pageIndex:this.pageNumber-1,normalizeWhitespace:!0===e.normalizeWhitespace,combineTextItems:!0!==e.disableCombineTextItems})},_destroy:function(){this.destroyed=!0,this.transport.pageCache[this.pageIndex]=null;var e=[];return Object.keys(this.intentStates).forEach(function(t){"oplist"!==t&&this.intentStates[t].renderTasks.forEach(function(t){var r=t.capability.promise.catch(function(){});e.push(r),t.cancel()})},this),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(e)},destroy:function(){(0,s.deprecated)("page destroy method, use cleanup() instead"),this.cleanup()},cleanup:function(){this.pendingCleanup=!0,this._tryCleanup()},_tryCleanup:function(){this.pendingCleanup&&!Object.keys(this.intentStates).some(function(e){var t=this.intentStates[e];return 0!==t.renderTasks.length||t.receivingOperatorList},this)&&(Object.keys(this.intentStates).forEach(function(e){delete this.intentStates[e]},this),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1)},_startRenderPage:function(e,t){var r=this.intentStates[t];r.displayReadyCapability&&r.displayReadyCapability.resolve(e)},_renderPageChunk:function(e,t){var r,a,i=this.intentStates[t];for(r=0,a=e.length;r<a;r++)i.operatorList.fnArray.push(e.fnArray[r]),i.operatorList.argsArray.push(e.argsArray[r]);for(i.operatorList.lastChunk=e.lastChunk,r=0;r<i.renderTasks.length;r++)i.renderTasks[r].operatorListChanged();e.lastChunk&&(i.receivingOperatorList=!1,this._tryCleanup())}},e}(),y=function(){function e(t){a(this,e),this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}return n(e,[{key:"postMessage",value:function(e,t){function r(e){if("object"!==(void 0===e?"undefined":o(e))||null===e)return e;if(i.has(e))return i.get(e);var a,n;if((n=e.buffer)&&(0,s.isArrayBuffer)(n)){var c=t&&t.indexOf(n)>=0;return a=e===n?e:c?new e.constructor(n,e.byteOffset,e.byteLength):new e.constructor(e),i.set(e,a),a}a=(0,s.isArray)(e)?[]:{},i.set(e,a);for(var l in e){for(var h,u=e;!(h=Object.getOwnPropertyDescriptor(u,l));)u=Object.getPrototypeOf(u);void 0!==h.value&&"function"!=typeof h.value&&(a[l]=r(h.value))}return a}var a=this;if(this._defer){var i=new WeakMap,n={data:r(e)};this._deferred.then(function(){a._listeners.forEach(function(e){e.call(this,n)},a)})}else this._listeners.forEach(function(t){t.call(this,{data:e})},this)}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var r=this._listeners.indexOf(t);this._listeners.splice(r,1)}},{key:"terminate",value:function(){this._listeners=[]}}]),e}(),k=function(){function e(){var e;if(i)return i.promise;i=(0,s.createPromiseCapability)();var t=r(23);return r(40),e=t.WorkerMessageHandler,i.resolve(e),i.promise}function t(e,t){if(t&&n.has(t))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=e,this.destroyed=!1,this._readyCapability=(0,s.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t)return n.set(t,this),void this._initializeFromPort(t);this._initialize()}var a=0,i=void 0,n=new WeakMap;return t.prototype={get promise(){return this._readyCapability.promise},get port(){return this._port},get messageHandler(){return this._messageHandler},_initializeFromPort:function(e){this._port=e,this._messageHandler=new s.MessageHandler("main","worker",e),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()},_initialize:function(){this._setupFakeWorker()},_setupFakeWorker:function(){var t=this;f||(0,c.getDefaultSetting)("disableWorker")||((0,s.warn)("Setting up fake worker."),f=!0),e().then(function(e){if(t.destroyed)t._readyCapability.reject(new Error("Worker was destroyed"));else{var r=Uint8Array!==Float32Array,i=new y(r);t._port=i;var n="fake"+a++,o=new s.MessageHandler(n+"_worker",n,i);e.setup(o,i);var c=new s.MessageHandler(n,n+"_worker",i);t._messageHandler=c,t._readyCapability.resolve()}})},destroy:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},t.fromPort=function(e){return n.has(e)?n.get(e):new t(null,e)},t}(),w=function(){function e(e,t,r,a){this.messageHandler=e,this.loadingTask=t,this.pdfDataRangeTransport=r,this.commonObjs=new S,this.fontLoader=new l.FontLoader(t.docId),this.CMapReaderFactory=new a({baseUrl:(0,c.getDefaultSetting)("cMapUrl"),isCompressed:(0,c.getDefaultSetting)("cMapPacked")}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,s.createPromiseCapability)(),this.setupMessageHandler()}return e.prototype={destroy:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,s.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];this.pageCache.forEach(function(e){e&&t.push(e._destroy())}),this.pageCache=[],this.pagePromises=[];var r=this.messageHandler.sendWithPromise("Terminate",null);return t.push(r),Promise.all(t).then(function(){e.fontLoader.clear(),e.pdfDataRangeTransport&&(e.pdfDataRangeTransport.abort(),e.pdfDataRangeTransport=null),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise},setupMessageHandler:function(){var e=this.messageHandler,t=this.loadingTask,r=this.pdfDataRangeTransport;r&&(r.addRangeListener(function(t,r){e.send("OnDataRange",{begin:t,chunk:r})}),r.addProgressListener(function(t){e.send("OnDataProgress",{loaded:t})}),r.addProgressiveReadListener(function(t){e.send("OnDataRange",{chunk:t})}),e.on("RequestDataRange",function(e){r.requestDataRange(e.begin,e.end)},this)),e.on("GetDoc",function(e){var t=e.pdfInfo;this.numPages=e.pdfInfo.numPages;var r=this.loadingTask,a=new b(t,this,r);this.pdfDocument=a,r._capability.resolve(a)},this),e.on("PasswordRequest",function(e){var r=this;if(this._passwordCapability=(0,s.createPromiseCapability)(),t.onPassword){t.onPassword(function(e){r._passwordCapability.resolve({password:e})},e.code)}else this._passwordCapability.reject(new s.PasswordException(e.message,e.code));return this._passwordCapability.promise},this),e.on("PasswordException",function(e){t._capability.reject(new s.PasswordException(e.message,e.code))},this),e.on("InvalidPDF",function(e){this.loadingTask._capability.reject(new s.InvalidPDFException(e.message))},this),e.on("MissingPDF",function(e){this.loadingTask._capability.reject(new s.MissingPDFException(e.message))},this),e.on("UnexpectedResponse",function(e){this.loadingTask._capability.reject(new s.UnexpectedResponseException(e.message,e.status))},this),e.on("UnknownError",function(e){this.loadingTask._capability.reject(new s.UnknownErrorException(e.message,e.details))},this),e.on("DataLoaded",function(e){this.downloadInfoCapability.resolve(e)},this),e.on("PDFManagerReady",function(e){this.pdfDataRangeTransport&&this.pdfDataRangeTransport.transportReady()},this),e.on("StartRenderPage",function(e){if(!this.destroyed){var t=this.pageCache[e.pageIndex];t.stats.timeEnd("Page Request"),t._startRenderPage(e.transparency,e.intent)}},this),e.on("RenderPageChunk",function(e){this.destroyed||this.pageCache[e.pageIndex]._renderPageChunk(e.operatorList,e.intent)},this),e.on("commonobj",function(e){var t=this;if(!this.destroyed){var r=e[0],a=e[1];if(!this.commonObjs.hasData(r))switch(a){case"Font":var i=e[2];if("error"in i){var n=i.error;(0,s.warn)("Error during font loading: "+n),this.commonObjs.resolve(r,n);break}var o=null;(0,c.getDefaultSetting)("pdfBug")&&s.globalScope.FontInspector&&s.globalScope.FontInspector.enabled&&(o={registerFont:function(e,t){s.globalScope.FontInspector.fontAdded(e,t)}});var h=new l.FontFaceObject(i,{isEvalSuported:(0,c.getDefaultSetting)("isEvalSupported"),disableFontFace:(0,c.getDefaultSetting)("disableFontFace"),fontRegistry:o});this.fontLoader.bind([h],function(e){t.commonObjs.resolve(r,h)});break;case"FontPath":this.commonObjs.resolve(r,e[2]);break;default:(0,s.error)("Got unknown common object type "+a)}}},this),e.on("obj",function(e){if(!this.destroyed){var t,r=e[0],a=e[1],i=e[2],n=this.pageCache[a];if(!n.objs.hasData(r))switch(i){case"JpegStream":t=e[3],(0,s.loadJpegStream)(r,t,n.objs);break;case"Image":t=e[3],n.objs.resolve(r,t);t&&"data"in t&&t.data.length>8e6&&(n.cleanupAfterRender=!0);break;default:(0,s.error)("Got unknown object type "+i)}}},this),e.on("DocProgress",function(e){if(!this.destroyed){var t=this.loadingTask;t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}},this),e.on("PageError",function(e){if(!this.destroyed){var t=this.pageCache[e.pageNum-1].intentStates[e.intent];if(t.displayReadyCapability?t.displayReadyCapability.reject(e.error):(0,s.error)(e.error),t.operatorList){t.operatorList.lastChunk=!0;for(var r=0;r<t.renderTasks.length;r++)t.renderTasks[r].operatorListChanged()}}},this),e.on("UnsupportedFeature",function(e){if(!this.destroyed){var t=e.featureId,r=this.loadingTask;r.onUnsupportedFeature&&r.onUnsupportedFeature(t),x.notify(t)}},this),e.on("JpegDecode",function(e){if(this.destroyed)return Promise.reject(new Error("Worker was destroyed"));if("undefined"==typeof document)return Promise.reject(new Error('"document" is not defined.'));var t=e[0],r=e[1];return 3!==r&&1!==r?Promise.reject(new Error("Only 3 components or 1 component can be returned")):new Promise(function(e,a){var i=new Image;i.onload=function(){var t=i.width,a=i.height,n=t*a,o=4*n,s=new Uint8Array(n*r),c=document.createElement("canvas");c.width=t,c.height=a;var l=c.getContext("2d");l.drawImage(i,0,0);var h,u,d=l.getImageData(0,0,t,a).data;if(3===r)for(h=0,u=0;h<o;h+=4,u+=3)s[u]=d[h],s[u+1]=d[h+1],s[u+2]=d[h+2];else if(1===r)for(h=0,u=0;h<o;h+=4,u++)s[u]=d[h];e({data:s,width:t,height:a})},i.onerror=function(){a(new Error("JpegDecode failed to load image"))},i.src=t})},this),e.on("FetchBuiltInCMap",function(e){return this.destroyed?Promise.reject(new Error("Worker was destroyed")):this.CMapReaderFactory.fetch({name:e.name})},this)},getData:function(){return this.messageHandler.sendWithPromise("GetData",null)},getPage:function(e,t){var r=this;if(!(0,s.isInt)(e)||e<=0||e>this.numPages)return Promise.reject(new Error("Invalid page request"));var a=e-1;if(a in this.pagePromises)return this.pagePromises[a];var i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:a}).then(function(e){if(r.destroyed)throw new Error("Transport destroyed");var t=new v(a,e,r);return r.pageCache[a]=t,t});return this.pagePromises[a]=i,i},getPageIndex:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch(function(e){return Promise.reject(new Error(e))})},getAnnotations:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})},getDestinations:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)},getDestination:function(e){return this.messageHandler.sendWithPromise("GetDestination",{id:e})},getPageLabels:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)},getAttachments:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)},getJavaScript:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)},getOutline:function(){return this.messageHandler.sendWithPromise("GetOutline",null)},getMetadata:function(){return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(e){return{info:e[0],metadata:e[1]?new u.Metadata(e[1]):null}})},getStats:function(){return this.messageHandler.sendWithPromise("GetStats",null)},startCleanup:function(){var e=this;this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(var t=0,r=e.pageCache.length;t<r;t++){var a=e.pageCache[t];a&&a.cleanup()}e.commonObjs.clear(),e.fontLoader.clear()})}},e}(),S=function(){function e(){this.objs=Object.create(null)}return e.prototype={ensureObj:function(e){if(this.objs[e])return this.objs[e];var t={capability:(0,s.createPromiseCapability)(),data:null,resolved:!1};return this.objs[e]=t,t},get:function(e,t){if(t)return this.ensureObj(e).capability.promise.then(t),null;var r=this.objs[e];return r&&r.resolved||(0,s.error)("Requesting object that isn't resolved yet "+e),r.data},resolve:function(e,t){var r=this.ensureObj(e);r.resolved=!0,r.data=t,r.capability.resolve(t)},isResolved:function(e){var t=this.objs;return!!t[e]&&t[e].resolved},hasData:function(e){return this.isResolved(e)},getData:function(e){var t=this.objs;return t[e]&&t[e].resolved?t[e].data:null},clear:function(){this.objs=Object.create(null)}},e}(),A=function(){function e(e){this._internalRenderTask=e,this.onContinue=null}return e.prototype={get promise(){return this._internalRenderTask.capability.promise},cancel:function(){this._internalRenderTask.cancel()},then:function(e,t){return this.promise.then.apply(this.promise,arguments)}},e}(),C=function(){function e(e,t,r,a,i,n,o){this.callback=e,this.params=t,this.objs=r,this.commonObjs=a,this.operatorListIdx=null,this.operatorList=i,this.pageNumber=n,this.canvasFactory=o,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this.useRequestAnimationFrame=!1,this.cancelled=!1,this.capability=(0,s.createPromiseCapability)(),this.task=new A(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=t.canvasContext.canvas}var t=new WeakMap;return e.prototype={initializeGraphics:function(e){if(this._canvas){if(t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");t.set(this._canvas,this)}if(!this.cancelled){(0,c.getDefaultSetting)("pdfBug")&&s.globalScope.StepperManager&&s.globalScope.StepperManager.enabled&&(this.stepper=s.globalScope.StepperManager.create(this.pageNumber-1),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var r=this.params;this.gfx=new h.CanvasGraphics(r.canvasContext,this.commonObjs,this.objs,this.canvasFactory,r.imageLayer),this.gfx.beginDrawing({transform:r.transform,viewport:r.viewport,transparency:e,background:r.background}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}},cancel:function(){this.running=!1,this.cancelled=!0,this._canvas&&t.delete(this._canvas),(0,c.getDefaultSetting)("pdfjsNext")?this.callback(new c.RenderingCancelledException("Rendering cancelled, page "+this.pageNumber,"canvas")):this.callback("cancelled")},operatorListChanged:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)},_continue:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())},_scheduleNext:function(){this.useRequestAnimationFrame&&"undefined"!=typeof window?window.requestAnimationFrame(this._nextBound):Promise.resolve(void 0).then(this._nextBound)},_next:function(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&t.delete(this._canvas),this.callback())))}},e}(),x=function(){var e=[];return{listen:function(t){(0,s.deprecated)("Global UnsupportedManager.listen is used: use PDFDocumentLoadingTask.onUnsupportedFeature instead"),e.push(t)},notify:function(t){for(var r=0,a=e.length;r<a;r++)e[r](t)}}}();t.version="1.8.456",t.build="8e9b4b5f",t.getDocument=function(e,t,r,a){var n=new p;arguments.length>1&&(0,s.deprecated)("getDocument is called with pdfDataRangeTransport, passwordCallback or progressCallback argument"),t&&(t instanceof m||((t=Object.create(t)).length=e.length,t.initialData=e.initialData,t.abort||(t.abort=function(){})),(e=Object.create(e)).range=t),n.onPassword=r||null,n.onProgress=a||null;var l;"string"==typeof e?l={url:e}:(0,s.isArrayBuffer)(e)?l={data:e}:e instanceof m?l={range:e}:("object"!==(void 0===e?"undefined":o(e))&&(0,s.error)("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object"),e.url||e.data||e.range||(0,s.error)("Invalid parameter object: need either .data, .range or .url"),l=e);var h={},u=null,f=null;for(var g in l)if("url"!==g||"undefined"==typeof window)if("range"!==g)if("worker"!==g)if("data"!==g||l[g]instanceof Uint8Array)h[g]=l[g];else{var b=l[g];"string"==typeof b?h[g]=(0,s.stringToBytes)(b):"object"!==(void 0===b?"undefined":o(b))||null===b||isNaN(b.length)?(0,s.isArrayBuffer)(b)?h[g]=new Uint8Array(b):(0,s.error)("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property."):h[g]=new Uint8Array(b)}else f=l[g];else u=l[g];else h[g]=new URL(l[g],window.location).href;h.rangeChunkSize=h.rangeChunkSize||d,h.ignoreErrors=!0!==h.stopAtErrors;var v=h.CMapReaderFactory||c.DOMCMapReaderFactory;if(void 0!==h.disableNativeImageDecoder&&(0,s.deprecated)("parameter disableNativeImageDecoder, use nativeImageDecoderSupport instead"),h.nativeImageDecoderSupport=h.nativeImageDecoderSupport||(!0===h.disableNativeImageDecoder?s.NativeImageDecoding.NONE:s.NativeImageDecoding.DECODE),h.nativeImageDecoderSupport!==s.NativeImageDecoding.DECODE&&h.nativeImageDecoderSupport!==s.NativeImageDecoding.NONE&&h.nativeImageDecoderSupport!==s.NativeImageDecoding.DISPLAY&&((0,s.warn)("Invalid parameter nativeImageDecoderSupport: need a state of enum {NativeImageDecoding}"),h.nativeImageDecoderSupport=s.NativeImageDecoding.DECODE),!f){var y=(0,c.getDefaultSetting)("workerPort");f=y?k.fromPort(y):new k,n._worker=f}var S=n.docId;return f.promise.then(function(){if(n.destroyed)throw new Error("Loading aborted");return i(f,h,u,S).then(function(e){if(n.destroyed)throw new Error("Loading aborted");var t=new s.MessageHandler(S,e,f.port),r=new w(t,n,u,v);n._transport=r,t.send("Ready",null)})}).catch(n._capability.reject),n},t.LoopbackPort=y,t.PDFDataRangeTransport=m,t.PDFWorker=k,t.PDFDocumentProxy=b,t.PDFPageProxy=v,t._UnsupportedManager=x,t.version="1.8.456",t.build="8e9b4b5f"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var a=r(0),i=function(){throw new Error("Not implemented: SVGGraphics")},n={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},o=function(){function e(e,t,r){for(var a=-1,i=t;i<r;i++){var n=255&(a^e[i]);a=a>>>8^s[n]}return-1^a}function t(t,r,a,i){var n=i,o=r.length;a[n]=o>>24&255,a[n+1]=o>>16&255,a[n+2]=o>>8&255,a[n+3]=255&o,a[n+=4]=255&t.charCodeAt(0),a[n+1]=255&t.charCodeAt(1),a[n+2]=255&t.charCodeAt(2),a[n+3]=255&t.charCodeAt(3),n+=4,a.set(r,n);var s=e(a,i+4,n+=r.length);a[n]=s>>24&255,a[n+1]=s>>16&255,a[n+2]=s>>8&255,a[n+3]=255&s}function r(e,t,r){for(var a=1,i=0,n=t;n<r;++n)i=(i+(a=(a+(255&e[n]))%65521))%65521;return i<<16|a}function i(e,i,s){var c,l,h,u=e.width,d=e.height,f=e.data;switch(i){case a.ImageKind.GRAYSCALE_1BPP:l=0,c=1,h=u+7>>3;break;case a.ImageKind.RGB_24BPP:l=2,c=8,h=3*u;break;case a.ImageKind.RGBA_32BPP:l=6,c=8,h=4*u;break;default:throw new Error("invalid format")}var g,p,m=new Uint8Array((1+h)*d),b=0,v=0;for(g=0;g<d;++g)m[b++]=0,m.set(f.subarray(v,v+h),b),v+=h,b+=h;if(i===a.ImageKind.GRAYSCALE_1BPP)for(b=0,g=0;g<d;g++)for(b++,p=0;p<h;p++)m[b++]^=255;var y=new Uint8Array([u>>24&255,u>>16&255,u>>8&255,255&u,d>>24&255,d>>16&255,d>>8&255,255&d,c,l,0,0,0]),k=m.length,w=Math.ceil(k/65535),S=new Uint8Array(2+k+5*w+4),A=0;S[A++]=120,S[A++]=156;for(var C=0;k>65535;)S[A++]=0,S[A++]=255,S[A++]=255,S[A++]=0,S[A++]=0,S.set(m.subarray(C,C+65535),A),A+=65535,C+=65535,k-=65535;S[A++]=1,S[A++]=255&k,S[A++]=k>>8&255,S[A++]=255&~k,S[A++]=(65535&~k)>>8&255,S.set(m.subarray(C),A),A+=m.length-C;var x=r(m,0,m.length);S[A++]=x>>24&255,S[A++]=x>>16&255,S[A++]=x>>8&255,S[A++]=255&x;var P=n.length+3*o+y.length+S.length,_=new Uint8Array(P),T=0;return _.set(n,T),T+=n.length,t("IHDR",y,_,T),T+=o+y.length,t("IDATA",S,_,T),T+=o+S.length,t("IEND",new Uint8Array(0),_,T),(0,a.createObjectURL)(_,"image/png",s)}for(var n=new Uint8Array([137,80,78,71,13,10,26,10]),o=12,s=new Int32Array(256),c=0;c<256;c++){for(var l=c,h=0;h<8;h++)l=1&l?3988292384^l>>1&2147483647:l>>1&2147483647;s[c]=l}return function(e,t){return i(e,void 0===e.kind?a.ImageKind.GRAYSCALE_1BPP:e.kind,t)}}(),s=function(){function e(){this.fontSizeScale=1,this.fontWeight=n.fontWeight,this.fontSize=0,this.textMatrix=a.IDENTITY_MATRIX,this.fontMatrix=a.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=n.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}();t.SVGGraphics=i=function(){function e(e){for(var t=[],r=[],a=e.length,i=0;i<a;i++)"save"!==e[i].fn?"restore"===e[i].fn?t=r.pop():t.push(e[i]):(t.push({fnId:92,fn:"group",items:[]}),r.push(t),t=t[t.length-1].items);return t}function t(e){if(e===(0|e))return e.toString();var t=e.toFixed(10),r=t.length-1;if("0"!==t[r])return t;do{r--}while("0"===t[r]);return t.substr(0,"."===t[r]?r:r+1)}function r(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale("+t(e[0])+" "+t(e[3])+")";if(e[0]===e[3]&&e[1]===-e[2])return"rotate("+t(180*Math.acos(e[0])/Math.PI)+")"}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate("+t(e[4])+" "+t(e[5])+")";return"matrix("+t(e[0])+" "+t(e[1])+" "+t(e[2])+" "+t(e[3])+" "+t(e[4])+" "+t(e[5])+")"}function i(e,t,r){this.current=new s,this.transformMatrix=a.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!r}var c="http://www.w3.org/2000/svg",l="http://www.w3.org/1999/xlink",h=["butt","round","square"],u=["miter","round","bevel"],d=0,f=0;return i.prototype={save:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()},restore:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.tgrp=null},group:function(e){this.save(),this.executeOpTree(e),this.restore()},loadDependencies:function(e){for(var t=this,r=e.fnArray,i=r.length,n=e.argsArray,o=0;o<i;o++)if(a.OPS.dependency===r[o])for(var s=n[o],c=0,l=s.length;c<l;c++){var h,u=s[c];h="g_"===u.substring(0,2)?new Promise(function(e){t.commonObjs.get(u,e)}):new Promise(function(e){t.objs.get(u,e)}),this.current.dependencies.push(h)}return Promise.all(this.current.dependencies)},transform:function(e,t,r,i,n,o){var s=[e,t,r,i,n,o];this.transformMatrix=a.Util.transform(this.transformMatrix,s),this.tgrp=null},getSVG:function(e,t){var r=this;this.viewport=t;var i=this._initialize(t);return this.loadDependencies(e).then(function(){r.transformMatrix=a.IDENTITY_MATRIX;var t=r.convertOpList(e);return r.executeOpTree(t),i})},convertOpList:function(t){var r=t.argsArray,i=t.fnArray,n=i.length,o=[],s=[];for(var c in a.OPS)o[a.OPS[c]]=c;for(var l=0;l<n;l++){var h=i[l];s.push({fnId:h,fn:o[h],args:r[l]})}return e(s)},executeOpTree:function(e){for(var t=e.length,r=0;r<t;r++){var i=e[r].fn,n=e[r].fnId,o=e[r].args;switch(0|n){case a.OPS.beginText:this.beginText();break;case a.OPS.setLeading:this.setLeading(o);break;case a.OPS.setLeadingMoveText:this.setLeadingMoveText(o[0],o[1]);break;case a.OPS.setFont:this.setFont(o);break;case a.OPS.showText:case a.OPS.showSpacedText:this.showText(o[0]);break;case a.OPS.endText:this.endText();break;case a.OPS.moveText:this.moveText(o[0],o[1]);break;case a.OPS.setCharSpacing:this.setCharSpacing(o[0]);break;case a.OPS.setWordSpacing:this.setWordSpacing(o[0]);break;case a.OPS.setHScale:this.setHScale(o[0]);break;case a.OPS.setTextMatrix:this.setTextMatrix(o[0],o[1],o[2],o[3],o[4],o[5]);break;case a.OPS.setLineWidth:this.setLineWidth(o[0]);break;case a.OPS.setLineJoin:this.setLineJoin(o[0]);break;case a.OPS.setLineCap:this.setLineCap(o[0]);break;case a.OPS.setMiterLimit:this.setMiterLimit(o[0]);break;case a.OPS.setFillRGBColor:this.setFillRGBColor(o[0],o[1],o[2]);break;case a.OPS.setStrokeRGBColor:this.setStrokeRGBColor(o[0],o[1],o[2]);break;case a.OPS.setDash:this.setDash(o[0],o[1]);break;case a.OPS.setGState:this.setGState(o[0]);break;case a.OPS.fill:this.fill();break;case a.OPS.eoFill:this.eoFill();break;case a.OPS.stroke:this.stroke();break;case a.OPS.fillStroke:this.fillStroke();break;case a.OPS.eoFillStroke:this.eoFillStroke();break;case a.OPS.clip:this.clip("nonzero");break;case a.OPS.eoClip:this.clip("evenodd");break;case a.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case a.OPS.paintJpegXObject:this.paintJpegXObject(o[0],o[1],o[2]);break;case a.OPS.paintImageXObject:this.paintImageXObject(o[0]);break;case a.OPS.paintInlineImageXObject:this.paintInlineImageXObject(o[0]);break;case a.OPS.paintImageMaskXObject:this.paintImageMaskXObject(o[0]);break;case a.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(o[0],o[1]);break;case a.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case a.OPS.closePath:this.closePath();break;case a.OPS.closeStroke:this.closeStroke();break;case a.OPS.closeFillStroke:this.closeFillStroke();break;case a.OPS.nextLine:this.nextLine();break;case a.OPS.transform:this.transform(o[0],o[1],o[2],o[3],o[4],o[5]);break;case a.OPS.constructPath:this.constructPath(o[0],o[1]);break;case a.OPS.endPath:this.endPath();break;case 92:this.group(e[r].items);break;default:(0,a.warn)("Unimplemented operator "+i)}}},setWordSpacing:function(e){this.current.wordSpacing=e},setCharSpacing:function(e){this.current.charSpacing=e},nextLine:function(){this.moveText(0,this.current.leading)},setTextMatrix:function(e,r,a,i,n,o){var s=this.current;this.current.textMatrix=this.current.lineMatrix=[e,r,a,i,n,o],this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,s.xcoords=[],s.tspan=document.createElementNS(c,"svg:tspan"),s.tspan.setAttributeNS(null,"font-family",s.fontFamily),s.tspan.setAttributeNS(null,"font-size",t(s.fontSize)+"px"),s.tspan.setAttributeNS(null,"y",t(-s.y)),s.txtElement=document.createElementNS(c,"svg:text"),s.txtElement.appendChild(s.tspan)},beginText:function(){this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,this.current.textMatrix=a.IDENTITY_MATRIX,this.current.lineMatrix=a.IDENTITY_MATRIX,this.current.tspan=document.createElementNS(c,"svg:tspan"),this.current.txtElement=document.createElementNS(c,"svg:text"),this.current.txtgrp=document.createElementNS(c,"svg:g"),this.current.xcoords=[]},moveText:function(e,r){var a=this.current;this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=r,a.xcoords=[],a.tspan=document.createElementNS(c,"svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size",t(a.fontSize)+"px"),a.tspan.setAttributeNS(null,"y",t(-a.y))},showText:function(e){var i=this.current,o=i.font,s=i.fontSize;if(0!==s){var c,l=i.charSpacing,h=i.wordSpacing,u=i.fontDirection,d=i.textHScale*u,f=e.length,g=o.vertical,p=s*i.fontMatrix[0],m=0;for(c=0;c<f;++c){var b=e[c];if(null!==b)if((0,a.isNum)(b))m+=-b*s*.001;else{i.xcoords.push(i.x+m*d);var v=b.width,y=b.fontChar;m+=v*p+((b.isSpace?h:0)+l)*u,i.tspan.textContent+=y}else m+=u*h}g?i.y-=m*d:i.x+=m*d,i.tspan.setAttributeNS(null,"x",i.xcoords.map(t).join(" ")),i.tspan.setAttributeNS(null,"y",t(-i.y)),i.tspan.setAttributeNS(null,"font-family",i.fontFamily),i.tspan.setAttributeNS(null,"font-size",t(i.fontSize)+"px"),i.fontStyle!==n.fontStyle&&i.tspan.setAttributeNS(null,"font-style",i.fontStyle),i.fontWeight!==n.fontWeight&&i.tspan.setAttributeNS(null,"font-weight",i.fontWeight),i.fillColor!==n.fillColor&&i.tspan.setAttributeNS(null,"fill",i.fillColor),i.txtElement.setAttributeNS(null,"transform",r(i.textMatrix)+" scale(1, -1)"),i.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.txtElement.appendChild(i.tspan),i.txtgrp.appendChild(i.txtElement),this._ensureTransformGroup().appendChild(i.txtElement)}},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},addFontStyle:function(e){this.cssStyle||(this.cssStyle=document.createElementNS(c,"svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var t=(0,a.createObjectURL)(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'+e.loadedName+'"; src: url('+t+"); }\n"},setFont:function(e){var r=this.current,i=this.commonObjs.get(e[0]),n=e[1];this.current.font=i,this.embedFonts&&i.data&&!this.embeddedFonts[i.loadedName]&&(this.addFontStyle(i),this.embeddedFonts[i.loadedName]=i),r.fontMatrix=i.fontMatrix?i.fontMatrix:a.FONT_IDENTITY_MATRIX;var o=i.black?i.bold?"bolder":"bold":i.bold?"bold":"normal",s=i.italic?"italic":"normal";n<0?(n=-n,r.fontDirection=-1):r.fontDirection=1,r.fontSize=n,r.fontFamily=i.loadedName,r.fontWeight=o,r.fontStyle=s,r.tspan=document.createElementNS(c,"svg:tspan"),r.tspan.setAttributeNS(null,"y",t(-r.y)),r.xcoords=[]},endText:function(){},setLineWidth:function(e){this.current.lineWidth=e},setLineCap:function(e){this.current.lineCap=h[e]},setLineJoin:function(e){this.current.lineJoin=u[e]},setMiterLimit:function(e){this.current.miterLimit=e},setStrokeRGBColor:function(e,t,r){var i=a.Util.makeCssRgb(e,t,r);this.current.strokeColor=i},setFillRGBColor:function(e,t,r){var i=a.Util.makeCssRgb(e,t,r);this.current.fillColor=i,this.current.tspan=document.createElementNS(c,"svg:tspan"),this.current.xcoords=[]},setDash:function(e,t){this.current.dashArray=e,this.current.dashPhase=t},constructPath:function(e,r){var i=this.current,n=i.x,o=i.y;i.path=document.createElementNS(c,"svg:path");for(var s=[],l=e.length,h=0,u=0;h<l;h++)switch(0|e[h]){case a.OPS.rectangle:n=r[u++],o=r[u++];var d=n+r[u++],f=o+r[u++];s.push("M",t(n),t(o),"L",t(d),t(o),"L",t(d),t(f),"L",t(n),t(f),"Z");break;case a.OPS.moveTo:n=r[u++],o=r[u++],s.push("M",t(n),t(o));break;case a.OPS.lineTo:n=r[u++],o=r[u++],s.push("L",t(n),t(o));break;case a.OPS.curveTo:n=r[u+4],o=r[u+5],s.push("C",t(r[u]),t(r[u+1]),t(r[u+2]),t(r[u+3]),t(n),t(o)),u+=6;break;case a.OPS.curveTo2:n=r[u+2],o=r[u+3],s.push("C",t(n),t(o),t(r[u]),t(r[u+1]),t(r[u+2]),t(r[u+3])),u+=4;break;case a.OPS.curveTo3:n=r[u+2],o=r[u+3],s.push("C",t(r[u]),t(r[u+1]),t(n),t(o),t(n),t(o)),u+=4;break;case a.OPS.closePath:s.push("Z")}i.path.setAttributeNS(null,"d",s.join(" ")),i.path.setAttributeNS(null,"stroke-miterlimit",t(i.miterLimit)),i.path.setAttributeNS(null,"stroke-linecap",i.lineCap),i.path.setAttributeNS(null,"stroke-linejoin",i.lineJoin),i.path.setAttributeNS(null,"stroke-width",t(i.lineWidth)+"px"),i.path.setAttributeNS(null,"stroke-dasharray",i.dashArray.map(t).join(" ")),i.path.setAttributeNS(null,"stroke-dashoffset",t(i.dashPhase)+"px"),i.path.setAttributeNS(null,"fill","none"),this._ensureTransformGroup().appendChild(i.path),i.element=i.path,i.setCurrentPoint(n,o)},endPath:function(){},clip:function(e){var t=this.current,a="clippath"+d;d++;var i=document.createElementNS(c,"svg:clipPath");i.setAttributeNS(null,"id",a),i.setAttributeNS(null,"transform",r(this.transformMatrix));var n=t.element.cloneNode();"evenodd"===e?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),i.appendChild(n),this.defs.appendChild(i),t.activeClipUrl&&(t.clipGroup=null,this.extraStack.forEach(function(e){e.clipGroup=null})),t.activeClipUrl="url(#"+a+")",this.tgrp=null},closePath:function(){var e=this.current,t=e.path.getAttributeNS(null,"d");t+="Z",e.path.setAttributeNS(null,"d",t)},setLeading:function(e){this.current.leading=-e},setTextRise:function(e){this.current.textRise=e},setHScale:function(e){this.current.textHScale=e/100},setGState:function(e){for(var t=0,r=e.length;t<r;t++){var i=e[t],n=i[0],o=i[1];switch(n){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"Font":this.setFont(o);break;default:(0,a.warn)("Unimplemented graphic state "+n)}}},fill:function(){var e=this.current;e.element.setAttributeNS(null,"fill",e.fillColor)},stroke:function(){var e=this.current;e.element.setAttributeNS(null,"stroke",e.strokeColor),e.element.setAttributeNS(null,"fill","none")},eoFill:function(){var e=this.current;e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-rule","evenodd")},fillStroke:function(){this.stroke(),this.fill()},eoFillStroke:function(){this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()},closeStroke:function(){this.closePath(),this.stroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},paintSolidColorImageMask:function(){var e=this.current,t=document.createElementNS(c,"svg:rect");t.setAttributeNS(null,"x","0"),t.setAttributeNS(null,"y","0"),t.setAttributeNS(null,"width","1px"),t.setAttributeNS(null,"height","1px"),t.setAttributeNS(null,"fill",e.fillColor),this._ensureTransformGroup().appendChild(t)},paintJpegXObject:function(e,r,a){var i=this.objs.get(e),n=document.createElementNS(c,"svg:image");n.setAttributeNS(l,"xlink:href",i.src),n.setAttributeNS(null,"width",t(r)),n.setAttributeNS(null,"height",t(a)),n.setAttributeNS(null,"x","0"),n.setAttributeNS(null,"y",t(-a)),n.setAttributeNS(null,"transform","scale("+t(1/r)+" "+t(-1/a)+")"),this._ensureTransformGroup().appendChild(n)},paintImageXObject:function(e){var t=this.objs.get(e);t?this.paintInlineImageXObject(t):(0,a.warn)("Dependent image isn't ready yet")},paintInlineImageXObject:function(e,r){var a=e.width,i=e.height,n=o(e,this.forceDataSchema),s=document.createElementNS(c,"svg:rect");s.setAttributeNS(null,"x","0"),s.setAttributeNS(null,"y","0"),s.setAttributeNS(null,"width",t(a)),s.setAttributeNS(null,"height",t(i)),this.current.element=s,this.clip("nonzero");var h=document.createElementNS(c,"svg:image");h.setAttributeNS(l,"xlink:href",n),h.setAttributeNS(null,"x","0"),h.setAttributeNS(null,"y",t(-i)),h.setAttributeNS(null,"width",t(a)+"px"),h.setAttributeNS(null,"height",t(i)+"px"),h.setAttributeNS(null,"transform","scale("+t(1/a)+" "+t(-1/i)+")"),r?r.appendChild(h):this._ensureTransformGroup().appendChild(h)},paintImageMaskXObject:function(e){var r=this.current,a=e.width,i=e.height,n=r.fillColor;r.maskId="mask"+f++;var o=document.createElementNS(c,"svg:mask");o.setAttributeNS(null,"id",r.maskId);var s=document.createElementNS(c,"svg:rect");s.setAttributeNS(null,"x","0"),s.setAttributeNS(null,"y","0"),s.setAttributeNS(null,"width",t(a)),s.setAttributeNS(null,"height",t(i)),s.setAttributeNS(null,"fill",n),s.setAttributeNS(null,"mask","url(#"+r.maskId+")"),this.defs.appendChild(o),this._ensureTransformGroup().appendChild(s),this.paintInlineImageXObject(e,o)},paintFormXObjectBegin:function(e,r){if((0,a.isArray)(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),(0,a.isArray)(r)&&4===r.length){var i=r[2]-r[0],n=r[3]-r[1],o=document.createElementNS(c,"svg:rect");o.setAttributeNS(null,"x",r[0]),o.setAttributeNS(null,"y",r[1]),o.setAttributeNS(null,"width",t(i)),o.setAttributeNS(null,"height",t(n)),this.current.element=o,this.clip("nonzero"),this.endPath()}},paintFormXObjectEnd:function(){},_initialize:function(e){var t=document.createElementNS(c,"svg:svg");t.setAttributeNS(null,"version","1.1"),t.setAttributeNS(null,"width",e.width+"px"),t.setAttributeNS(null,"height",e.height+"px"),t.setAttributeNS(null,"preserveAspectRatio","none"),t.setAttributeNS(null,"viewBox","0 0 "+e.width+" "+e.height);var a=document.createElementNS(c,"svg:defs");t.appendChild(a),this.defs=a;var i=document.createElementNS(c,"svg:g");return i.setAttributeNS(null,"transform",r(e.transform)),t.appendChild(i),this.svg=i,t},_ensureClipGroup:function(){if(!this.current.clipGroup){var e=document.createElementNS(c,"svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup},_ensureTransformGroup:function(){return this.tgrp||(this.tgrp=document.createElementNS(c,"svg:g"),this.tgrp.setAttributeNS(null,"transform",r(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}},i}(),t.SVGGraphics=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=void 0;var a=r(0),i=r(3),n=function(){function e(e){return!h.test(e)}function t(t,r,n){var o=document.createElement("div"),s={style:null,angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(t._textDivs.push(o),e(r.str))return s.isWhitespace=!0,void t._textDivProperties.set(o,s);var c=a.Util.transform(t._viewport.transform,r.transform),l=Math.atan2(c[1],c[0]),h=n[r.fontName];h.vertical&&(l+=Math.PI/2);var d=Math.sqrt(c[2]*c[2]+c[3]*c[3]),f=d;h.ascent?f=h.ascent*f:h.descent&&(f=(1+h.descent)*f);var g,p;if(0===l?(g=c[4],p=c[5]-f):(g=c[4]+f*Math.sin(l),p=c[5]-f*Math.cos(l)),u[1]=g,u[3]=p,u[5]=d,u[7]=h.fontFamily,s.style=u.join(""),o.setAttribute("style",s.style),o.textContent=r.str,(0,i.getDefaultSetting)("pdfBug")&&(o.dataset.fontName=r.fontName),0!==l&&(s.angle=l*(180/Math.PI)),r.str.length>1&&(h.vertical?s.canvasWidth=r.height*t._viewport.scale:s.canvasWidth=r.width*t._viewport.scale),t._textDivProperties.set(o,s),t._enhanceTextSelection){var m=1,b=0;0!==l&&(m=Math.cos(l),b=Math.sin(l));var v,y,k=(h.vertical?r.height:r.width)*t._viewport.scale,w=d;0!==l?(v=[m,b,-b,m,g,p],y=a.Util.getAxialAlignedBoundingBox([0,0,k,w],v)):y=[g,p,g+k,p+w],t._bounds.push({left:y[0],top:y[1],right:y[2],bottom:y[3],div:o,size:[k,w],m:v})}}function r(e){if(!e._canceled){var t=e._container,r=e._textDivs,a=e._capability,n=r.length;if(n>l)return e._renderingDone=!0,void a.resolve();for(var o,s,c=document.createElement("canvas").getContext("2d",{alpha:!1}),h=0;h<n;h++){var u=r[h],d=e._textDivProperties.get(u);if(!d.isWhitespace){var f=u.style.fontSize,g=u.style.fontFamily;f===o&&g===s||(c.font=f+" "+g,o=f,s=g);var p=c.measureText(u.textContent).width;t.appendChild(u);var m="";0!==d.canvasWidth&&p>0&&(d.scale=d.canvasWidth/p,m="scaleX("+d.scale+")"),0!==d.angle&&(m="rotate("+d.angle+"deg) "+m),""!==m&&(d.originalTransform=m,i.CustomStyle.setProp("transform",u,m)),e._textDivProperties.set(u,d)}}e._renderingDone=!0,a.resolve()}}function n(e){for(var t=e._bounds,r=e._viewport,i=o(r.width,r.height,t),n=0;n<i.length;n++){var s=t[n].div,c=e._textDivProperties.get(s);if(0!==c.angle){var l=i[n],h=t[n],u=h.m,d=u[0],f=u[1],g=[[0,0],[0,h.size[1]],[h.size[0],0],h.size],p=new Float64Array(64);g.forEach(function(e,t){var r=a.Util.applyTransform(e,u);p[t+0]=d&&(l.left-r[0])/d,p[t+4]=f&&(l.top-r[1])/f,p[t+8]=d&&(l.right-r[0])/d,p[t+12]=f&&(l.bottom-r[1])/f,p[t+16]=f&&(l.left-r[0])/-f,p[t+20]=d&&(l.top-r[1])/d,p[t+24]=f&&(l.right-r[0])/-f,p[t+28]=d&&(l.bottom-r[1])/d,p[t+32]=d&&(l.left-r[0])/-d,p[t+36]=f&&(l.top-r[1])/-f,p[t+40]=d&&(l.right-r[0])/-d,p[t+44]=f&&(l.bottom-r[1])/-f,p[t+48]=f&&(l.left-r[0])/f,p[t+52]=d&&(l.top-r[1])/-d,p[t+56]=f&&(l.right-r[0])/f,p[t+60]=d&&(l.bottom-r[1])/-d});var m=function(e,t,r){for(var a=0,i=0;i<r;i++){var n=e[t++];n>0&&(a=a?Math.min(n,a):n)}return a},b=1+Math.min(Math.abs(d),Math.abs(f));c.paddingLeft=m(p,32,16)/b,c.paddingTop=m(p,48,16)/b,c.paddingRight=m(p,0,16)/b,c.paddingBottom=m(p,16,16)/b,e._textDivProperties.set(s,c)}else c.paddingLeft=t[n].left-i[n].left,c.paddingTop=t[n].top-i[n].top,c.paddingRight=i[n].right-t[n].right,c.paddingBottom=i[n].bottom-t[n].bottom,e._textDivProperties.set(s,c)}}function o(e,t,r){var a=r.map(function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}});s(e,a);var i=new Array(r.length);return a.forEach(function(e){var t=e.index;i[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}}),r.map(function(t,r){var n=i[r],o=a[r];o.x1=t.top,o.y1=e-n.right,o.x2=t.bottom,o.y2=e-n.left,o.index=r,o.x1New=void 0,o.x2New=void 0}),s(t,a),a.forEach(function(e){var t=e.index;i[t].top=e.x1New,i[t].bottom=e.x2New}),i}function s(e,t){t.sort(function(e,t){return e.x1-t.x1||e.index-t.index});var r=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];t.forEach(function(e){for(var t=0;t<r.length&&r[t].end<=e.y1;)t++;for(var a=r.length-1;a>=0&&r[a].start>=e.y2;)a--;var i,n,o,s,c=-1/0;for(o=t;o<=a;o++){var l;(l=(n=(i=r[o]).boundary).x2>e.x1?n.index>e.index?n.x1New:e.x1:void 0===n.x2New?(n.x2+e.x1)/2:n.x2New)>c&&(c=l)}for(e.x1New=c,o=t;o<=a;o++)void 0===(n=(i=r[o]).boundary).x2New?n.x2>e.x1?n.index>e.index&&(n.x2New=n.x2):n.x2New=c:n.x2New>c&&(n.x2New=Math.max(c,n.x2));var h=[],u=null;for(o=t;o<=a;o++){var d=(n=(i=r[o]).boundary).x2>e.x2?n:e;u===d?h[h.length-1].end=i.end:(h.push({start:i.start,end:i.end,boundary:d}),u=d)}for(r[t].start<e.y1&&(h[0].start=e.y1,h.unshift({start:r[t].start,end:e.y1,boundary:r[t].boundary})),e.y2<r[a].end&&(h[h.length-1].end=e.y2,h.push({start:e.y2,end:r[a].end,boundary:r[a].boundary})),o=t;o<=a;o++)if(i=r[o],void 0===(n=i.boundary).x2New){var f=!1;for(s=t-1;!f&&s>=0&&r[s].start>=n.y1;s--)f=r[s].boundary===n;for(s=a+1;!f&&s<r.length&&r[s].end<=n.y2;s++)f=r[s].boundary===n;for(s=0;!f&&s<h.length;s++)f=h[s].boundary===n;f||(n.x2New=c)}Array.prototype.splice.apply(r,[t,a-t+1].concat(h))}),r.forEach(function(t){var r=t.boundary;void 0===r.x2New&&(r.x2New=Math.max(e,r.x2))})}function c(e,t,r,i,n){this._textContent=e,this._container=t,this._viewport=r,this._textDivs=i||[],this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,a.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._enhanceTextSelection=!!n}var l=1e5,h=/\S/,u=["left: ",0,"px; top: ",0,"px; font-size: ",0,"px; font-family: ","",";"];return c.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject("canceled")},_render:function(e){for(var a=this,i=this._textContent.items,n=this._textContent.styles,o=0,s=i.length;o<s;o++)t(this,i[o],n);e?this._renderTimer=setTimeout(function(){r(a),a._renderTimer=null},e):r(this)},expandTextDivs:function(e){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(n(this),this._bounds=null);for(var t=0,r=this._textDivs.length;t<r;t++){var a=this._textDivs[t],o=this._textDivProperties.get(a);if(!o.isWhitespace)if(e){var s="",c="";1!==o.scale&&(s="scaleX("+o.scale+")"),0!==o.angle&&(s="rotate("+o.angle+"deg) "+s),0!==o.paddingLeft&&(c+=" padding-left: "+o.paddingLeft/o.scale+"px;",s+=" translateX("+-o.paddingLeft/o.scale+"px)"),0!==o.paddingTop&&(c+=" padding-top: "+o.paddingTop+"px;",s+=" translateY("+-o.paddingTop+"px)"),0!==o.paddingRight&&(c+=" padding-right: "+o.paddingRight/o.scale+"px;"),0!==o.paddingBottom&&(c+=" padding-bottom: "+o.paddingBottom+"px;"),""!==c&&a.setAttribute("style",o.style+c),""!==s&&i.CustomStyle.setProp("transform",a,s)}else a.style.padding=0,i.CustomStyle.setProp("transform",a,o.originalTransform||"")}}}},function(e){var t=new c(e.textContent,e.container,e.viewport,e.textDivs,e.enhanceTextSelection);return t._render(e.timeout),t}}();t.renderTextLayer=n},function(e,t,r){"use strict";var a,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};a=this;try{a=a||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":i(window))&&(a=window)}e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t,r){this.data=e,this.bp=t,this.dataEnd=r,this.chigh=e[t],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}var t=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];return e.prototype={byteIn:function(){var e=this.data,t=this.bp;255===e[t]?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t<this.dataEnd?e[t]<<8:65280,this.ct=8,this.bp=t),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)},readBit:function(e,r){var a,i=e[r]>>1,n=1&e[r],o=t[i],s=o.qe,c=this.a-s;if(this.chigh<s)c<s?(c=s,a=n,i=o.nmps):(c=s,a=1^n,1===o.switchFlag&&(n=a),i=o.nlps);else{if(this.chigh-=s,0!=(32768&c))return this.a=c,n;c<s?(a=1^n,1===o.switchFlag&&(n=a),i=o.nlps):(a=n,i=o.nmps)}do{0===this.ct&&this.byteIn(),c<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--}while(0==(32768&c));return this.a=c,e[r]=i<<1|n,a}},e}();t.ArithmeticDecoder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CFFCompiler=t.CFFPrivateDict=t.CFFTopDict=t.CFFCharset=t.CFFIndex=t.CFFStrings=t.CFFHeader=t.CFF=t.CFFParser=t.CFFStandardStrings=void 0;var a=r(0),i=r(30),n=r(5),o=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],s=function(){function e(e,t,r){this.bytes=e.getBytes(),this.properties=t,this.seacAnalysisEnabled=!!r}var t=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],r=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];return e.prototype={parse:function(){var e=this.properties,t=new c;this.cff=t;var r=this.parseHeader(),a=this.parseIndex(r.endPos),i=this.parseIndex(a.endPos),n=this.parseIndex(i.endPos),o=this.parseIndex(n.endPos),s=this.parseDict(i.obj.get(0)),l=this.createDict(f,s,t.strings);t.header=r.obj,t.names=this.parseNameIndex(a.obj),t.strings=this.parseStringIndex(n.obj),t.topDict=l,t.globalSubrIndex=o.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=l.hasName("ROS");var h=l.getByName("CharStrings"),u=this.parseIndex(h).obj,d=l.getByName("FontMatrix");d&&(e.fontMatrix=d);var g=l.getByName("FontBBox");g&&(e.ascent=Math.max(g[3],g[1]),e.descent=Math.min(g[1],g[3]),e.ascentScaled=!0);var p,m;if(t.isCIDFont){for(var b=this.parseIndex(l.getByName("FDArray")).obj,v=0,y=b.count;v<y;++v){var k=b.get(v),w=this.createDict(f,this.parseDict(k),t.strings);this.parsePrivateDict(w),t.fdArray.push(w)}m=null,p=this.parseCharsets(l.getByName("charset"),u.count,t.strings,!0),t.fdSelect=this.parseFDSelect(l.getByName("FDSelect"),u.count)}else p=this.parseCharsets(l.getByName("charset"),u.count,t.strings,!1),m=this.parseEncoding(l.getByName("Encoding"),e,t.strings,p.charset);t.charset=p,t.encoding=m;var S=this.parseCharStrings(u,l.privateDict.subrsIndex,o.obj,t.fdSelect,t.fdArray);return t.charStrings=S.charStrings,t.seacs=S.seacs,t.widths=S.widths,t},parseHeader:function(){for(var e=this.bytes,t=e.length,r=0;r<t&&1!==e[r];)++r;r>=t?(0,a.error)("Invalid CFF header"):0!==r&&((0,a.info)("cff data is shifted"),e=e.subarray(r),this.bytes=e);var i=e[0],n=e[1],o=e[2],s=e[3];return{obj:new l(i,n,o,s),endPos:o}},parseDict:function(e){function t(){for(var t="",a=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],i=e.length;r<i;){var n=e[r++],o=n>>4,s=15&n;if(15===o)break;if(t+=a[o],15===s)break;t+=a[s]}return parseFloat(t)}var r=0,i=[],n=[];r=0;for(var o=e.length;r<o;){var s=e[r];s<=21?(12===s&&(s=s<<8|e[++r]),n.push([s,i]),i=[],++r):i.push(function(){var i=e[r++];return 30===i?t():28===i?(i=e[r++],i=(i<<24|e[r++]<<16)>>16):29===i?(i=e[r++],i=i<<8|e[r++],i=i<<8|e[r++],i=i<<8|e[r++]):i>=32&&i<=246?i-139:i>=247&&i<=250?256*(i-247)+e[r++]+108:i>=251&&i<=254?-256*(i-251)-e[r++]-108:((0,a.warn)('CFFParser_parseDict: "'+i+'" is a reserved command.'),NaN)}())}return n},parseIndex:function(e){var t,r,a=new u,i=this.bytes,n=i[e++]<<8|i[e++],o=[],s=e;if(0!==n){var c=i[e++],l=e+(n+1)*c-1;for(t=0,r=n+1;t<r;++t){for(var h=0,d=0;d<c;++d)h<<=8,h+=i[e++];o.push(l+h)}s=o[n]}for(t=0,r=o.length-1;t<r;++t){var f=o[t],g=o[t+1];a.add(i.subarray(f,g))}return{obj:a,endPos:s}},parseNameIndex:function(e){for(var t=[],r=0,i=e.count;r<i;++r){for(var n=e.get(r),o=Math.min(n.length,127),s=[],c=0;c<o;++c){var l=n[c];0!==c||0!==l?s[c]=l<33||l>126||91===l||93===l||40===l||41===l||123===l||125===l||60===l||62===l||47===l||37===l||35===l?95:l:s[c]=l}t.push((0,a.bytesToString)(s))}return t},parseStringIndex:function(e){for(var t=new h,r=0,i=e.count;r<i;++r){var n=e.get(r);t.add((0,a.bytesToString)(n))}return t},createDict:function(e,t,r){for(var a=new e(r),i=0,n=t.length;i<n;++i){var o=t[i],s=o[0],c=o[1];a.setByKey(s,c)}return a},parseCharString:function(e,i,n,o){if(!i||e.callDepth>10)return!1;for(var s=e.stackSize,c=e.stack,l=i.length,h=0;h<l;){var u=i[h++],d=null;if(12===u){var f=i[h++];0===f?(i[h-2]=139,i[h-1]=22,s=0):d=r[f]}else if(28===u)c[s]=(i[h]<<24|i[h+1]<<16)>>16,h+=2,s++;else if(14===u){if(s>=4&&(s-=4,this.seacAnalysisEnabled))return e.seac=c.slice(s,s+4),!1;d=t[u]}else if(u>=32&&u<=246)c[s]=u-139,s++;else if(u>=247&&u<=254)c[s]=u<251?(u-247<<8)+i[h]+108:-(u-251<<8)-i[h]-108,h++,s++;else if(255===u)c[s]=(i[h]<<24|i[h+1]<<16|i[h+2]<<8|i[h+3])/65536,h+=4,s++;else if(19===u||20===u)e.hints+=s>>1,h+=e.hints+7>>3,s%=2,d=t[u];else{if(10===u||29===u){var g;if(!(g=10===u?n:o))return d=t[u],(0,a.warn)("Missing subrsIndex for "+d.id),!1;var p=32768;g.count<1240?p=107:g.count<33900&&(p=1131);var m=c[--s]+p;if(m<0||m>=g.count||isNaN(m))return d=t[u],(0,a.warn)("Out of bounds subrIndex for "+d.id),!1;if(e.stackSize=s,e.callDepth++,!this.parseCharString(e,g.get(m),n,o))return!1;e.callDepth--,s=e.stackSize;continue}if(11===u)return e.stackSize=s,!0;d=t[u]}if(d){if(d.stem&&(e.hints+=s>>1),"min"in d&&!e.undefStack&&s<d.min)return(0,a.warn)("Not enough parameters for "+d.id+"; actual: "+s+", expected: "+d.min),!1;e.firstStackClearing&&d.stackClearing&&(e.firstStackClearing=!1,(s-=d.min)>=2&&d.stem?s%=2:s>1&&(0,a.warn)("Found too many parameters for stack-clearing command"),s>0&&c[s-1]>=0&&(e.width=c[s-1])),"stackDelta"in d?("stackFn"in d&&d.stackFn(c,s),s+=d.stackDelta):d.stackClearing?s=0:d.resetStack?(s=0,e.undefStack=!1):d.undefStack&&(s=0,e.undefStack=!0,e.firstStackClearing=!1)}}return e.stackSize=s,!0},parseCharStrings:function(e,t,r,i,n){for(var o=[],s=[],c=e.count,l=0;l<c;l++){var h=e.get(l),u={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null},d=!0,f=null;if(i&&n.length){var g=i.getFDIndex(l);-1===g&&((0,a.warn)("Glyph index is not in fd select."),d=!1),g>=n.length&&((0,a.warn)("Invalid fd index for glyph index."),d=!1),d&&(f=n[g].privateDict.subrsIndex)}else t&&(f=t);d&&(d=this.parseCharString(u,h,f,r)),null!==u.width&&(s[l]=u.width),null!==u.seac&&(o[l]=u.seac),d||e.set(l,new Uint8Array([14]))}return{charStrings:e,seacs:o,widths:s}},emptyPrivateDictionary:function(e){var t=this.createDict(g,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t},parsePrivateDict:function(e){if(e.hasName("Private")){var t=e.getByName("Private");if((0,a.isArray)(t)&&2===t.length){var r=t[0],i=t[1];if(0===r||i>=this.bytes.length)this.emptyPrivateDictionary(e);else{var n=i+r,o=this.bytes.subarray(i,n),s=this.parseDict(o),c=this.createDict(g,s,e.strings);if(e.privateDict=c,c.getByName("Subrs")){var l=c.getByName("Subrs"),h=i+l;if(0===l||h>=this.bytes.length)this.emptyPrivateDictionary(e);else{var u=this.parseIndex(h);c.subrsIndex=u.obj}}}}else e.removeByName("Private")}else this.emptyPrivateDictionary(e)},parseCharsets:function(e,t,r,n){if(0===e)return new m(!0,p.ISO_ADOBE,i.ISOAdobeCharset);if(1===e)return new m(!0,p.EXPERT,i.ExpertCharset);if(2===e)return new m(!0,p.EXPERT_SUBSET,i.ExpertSubsetCharset);var o,s,c,l=this.bytes,h=e,u=l[e++],d=[".notdef"];switch(t-=1,u){case 0:for(c=0;c<t;c++)o=l[e++]<<8|l[e++],d.push(n?o:r.get(o));break;case 1:for(;d.length<=t;)for(o=l[e++]<<8|l[e++],s=l[e++],c=0;c<=s;c++)d.push(n?o++:r.get(o++));break;case 2:for(;d.length<=t;)for(o=l[e++]<<8|l[e++],s=l[e++]<<8|l[e++],c=0;c<=s;c++)d.push(n?o++:r.get(o++));break;default:(0,a.error)("Unknown charset format")}var f=e,g=l.subarray(h,f);return new m(!1,u,d,g)},parseEncoding:function(e,t,r,i){var o,s,c,l=Object.create(null),h=this.bytes,u=!1,d=null;if(0===e||1===e){u=!0,o=e;var f=e?n.ExpertEncoding:n.StandardEncoding;for(s=0,c=i.length;s<c;s++){var g=f.indexOf(i[s]);-1!==g&&(l[g]=s)}}else{var p=e;switch(127&(o=h[e++])){case 0:var m=h[e++];for(s=1;s<=m;s++)l[h[e++]]=s;break;case 1:var v=h[e++],y=1;for(s=0;s<v;s++)for(var k=h[e++],w=h[e++],S=k;S<=k+w;S++)l[S]=y++;break;default:(0,a.error)("Unknown encoding format: "+o+" in CFF")}var A=e;128&o&&(h[p]&=127,function(){var t=h[e++];for(s=0;s<t;s++){var a=h[e++],n=(h[e++]<<8)+(255&h[e++]);l[a]=i.indexOf(r.get(n))}}()),d=h.subarray(p,A)}return o&=127,new b(u,o,l,d)},parseFDSelect:function(e,t){var r,i,n=e,o=this.bytes,s=o[e++],c=[],l=!1;switch(s){case 0:for(i=0;i<t;++i){var h=o[e++];c.push(h)}r=o.subarray(n,e);break;case 3:var u=o[e++]<<8|o[e++];for(i=0;i<u;++i){var d=o[e++]<<8|o[e++];0===i&&0!==d&&((0,a.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),l=!0,d=0);for(var f=o[e++],g=o[e]<<8|o[e+1],p=d;p<g;++p)c.push(f)}e+=2,r=o.subarray(n,e),l&&(r[3]=r[4]=0);break;default:(0,a.error)('parseFDSelect: Unknown format "'+s+'".')}return(0,a.assert)(c.length===t,"parseFDSelect: Invalid font data."),new v(c,r)}},e}(),c=function(){return function(){this.header=null,this.names=[],this.topDict=null,this.strings=new h,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}}(),l=function(){return function(e,t,r,a){this.major=e,this.minor=t,this.hdrSize=r,this.offSize=a}}(),h=function(){function e(){this.strings=[]}return e.prototype={get:function(e){return e>=0&&e<=390?o[e]:e-391<=this.strings.length?this.strings[e-391]:o[0]},add:function(e){this.strings.push(e)},get count(){return this.strings.length}},e}(),u=function(){function e(){this.objects=[],this.length=0}return e.prototype={add:function(e){this.length+=e.length,this.objects.push(e)},set:function(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t},get:function(e){return this.objects[e]},get count(){return this.objects.length}},e}(),d=function(){function e(e,t){this.keyToNameMap=e.keyToNameMap,this.nameToKeyMap=e.nameToKeyMap,this.defaults=e.defaults,this.types=e.types,this.opcodes=e.opcodes,this.order=e.order,this.strings=t,this.values=Object.create(null)}return e.prototype={setByKey:function(e,t){if(!(e in this.keyToNameMap))return!1;var r=t.length;if(0===r)return!0;for(var i=0;i<r;i++)if(isNaN(t[i]))return(0,a.warn)('Invalid CFFDict value: "'+t+'" for key "'+e+'".'),!0;var n=this.types[e];return"num"!==n&&"sid"!==n&&"offset"!==n||(t=t[0]),this.values[e]=t,!0},setByName:function(e,t){e in this.nameToKeyMap||(0,a.error)('Invalid dictionary name "'+e+'"'),this.values[this.nameToKeyMap[e]]=t},hasName:function(e){return this.nameToKeyMap[e]in this.values},getByName:function(e){e in this.nameToKeyMap||(0,a.error)('Invalid dictionary name "'+e+'"');var t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]},removeByName:function(e){delete this.values[this.nameToKeyMap[e]]}},e.createTables=function(e){for(var t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},r=0,i=e.length;r<i;++r){var n=e[r],o=(0,a.isArray)(n[0])?(n[0][0]<<8)+n[0][1]:n[0];t.keyToNameMap[o]=n[1],t.nameToKeyMap[n[1]]=o,t.types[o]=n[2],t.defaults[o]=n[3],t.opcodes[o]=(0,a.isArray)(n[0])?n[0]:[n[0]],t.order.push(o)}return t},e}(),f=function(){function e(e){null===r&&(r=d.createTables(t)),d.call(this,r,e),this.privateDict=null}var t=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]],r=null;return e.prototype=Object.create(d.prototype),e}(),g=function(){function e(e){null===r&&(r=d.createTables(t)),d.call(this,r,e),this.subrsIndex=null}var t=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]],r=null;return e.prototype=Object.create(d.prototype),e}(),p={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},m=function(){return function(e,t,r,a){this.predefined=e,this.format=t,this.charset=r,this.raw=a}}(),b=function(){return function(e,t,r,a){this.predefined=e,this.format=t,this.encoding=r,this.raw=a}}(),v=function(){function e(e,t){this.fdSelect=e,this.raw=t}return e.prototype={getFDIndex:function(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}},e}(),y=function(){function e(){this.offsets=Object.create(null)}return e.prototype={isTracking:function(e){return e in this.offsets},track:function(e,t){e in this.offsets&&(0,a.error)("Already tracking location of "+e),this.offsets[e]=t},offset:function(e){for(var t in this.offsets)this.offsets[t]+=e},setEntryLocation:function(e,t,r){e in this.offsets||(0,a.error)("Not tracking location of "+e);for(var i=r.data,n=this.offsets[e],o=0,s=t.length;o<s;++o){var c=5*o+n,l=c+1,h=c+2,u=c+3,d=c+4;29===i[c]&&0===i[l]&&0===i[h]&&0===i[u]&&0===i[d]||(0,a.error)("writing to an offset that is not empty");var f=t[o];i[c]=29,i[l]=f>>24&255,i[h]=f>>16&255,i[u]=f>>8&255,i[d]=255&f}}},e}(),k=function(){function e(e){this.cff=e}return e.prototype={compile:function(){var e=this.cff,t={data:[],length:0,add:function(e){this.data=this.data.concat(e),this.length=this.data.length}},r=this.compileHeader(e.header);t.add(r);var i=this.compileNameIndex(e.names);if(t.add(i),e.isCIDFont&&e.topDict.hasName("FontMatrix")){var n=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(var o=0,s=e.fdArray.length;o<s;o++){var c=e.fdArray[o],l=n.slice(0);c.hasName("FontMatrix")&&(l=a.Util.transform(l,c.getByName("FontMatrix"))),c.setByName("FontMatrix",l)}}var h=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.add(h.output);var u=h.trackers[0],d=this.compileStringIndex(e.strings.strings);t.add(d);var f=this.compileIndex(e.globalSubrIndex);if(t.add(f),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)u.setEntryLocation("Encoding",[e.encoding.format],t);else{var g=this.compileEncoding(e.encoding);u.setEntryLocation("Encoding",[t.length],t),t.add(g)}if(e.charset&&e.topDict.hasName("charset"))if(e.charset.predefined)u.setEntryLocation("charset",[e.charset.format],t);else{var p=this.compileCharset(e.charset);u.setEntryLocation("charset",[t.length],t),t.add(p)}var m=this.compileCharStrings(e.charStrings);if(u.setEntryLocation("CharStrings",[t.length],t),t.add(m),e.isCIDFont){u.setEntryLocation("FDSelect",[t.length],t);var b=this.compileFDSelect(e.fdSelect.raw);t.add(b),h=this.compileTopDicts(e.fdArray,t.length,!0),u.setEntryLocation("FDArray",[t.length],t),t.add(h.output);var v=h.trackers;this.compilePrivateDicts(e.fdArray,v,t)}return this.compilePrivateDicts([e.topDict],[u],t),t.add([0]),t.data},encodeNumber:function(e){return parseFloat(e)!==parseInt(e,10)||isNaN(e)?this.encodeFloat(e):this.encodeInteger(e)},encodeFloat:function(e){var t=e.toString(),r=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var a=parseFloat("1e"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*a)/a).toString()}var i,n,o="";for(i=0,n=t.length;i<n;++i){var s=t[i];o+="e"===s?"-"===t[++i]?"c":"b":"."===s?"a":"-"===s?"e":s}var c=[30];for(i=0,n=(o+=1&o.length?"f":"ff").length;i<n;i+=2)c.push(parseInt(o.substr(i,2),16));return c},encodeInteger:function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e]},compileHeader:function(e){return[e.major,e.minor,e.hdrSize,e.offSize]},compileNameIndex:function(e){for(var t=new u,r=0,i=e.length;r<i;++r)t.add((0,a.stringToBytes)(e[r]));return this.compileIndex(t)},compileTopDicts:function(e,t,r){for(var a=[],i=new u,n=0,o=e.length;n<o;++n){var s=e[n];r&&(s.removeByName("CIDFontVersion"),s.removeByName("CIDFontRevision"),s.removeByName("CIDFontType"),s.removeByName("CIDCount"),s.removeByName("UIDBase"));var c=new y,l=this.compileDict(s,c);a.push(c),i.add(l),c.offset(t)}return i=this.compileIndex(i,a),{trackers:a,output:i}},compilePrivateDicts:function(e,t,r){for(var i=0,n=e.length;i<n;++i){var o=e[i];(0,a.assert)(o.privateDict&&o.hasName("Private"),"There must be an private dictionary.");var s=o.privateDict,c=new y,l=this.compileDict(s,c),h=r.length;if(c.offset(h),l.length||(h=0),t[i].setEntryLocation("Private",[l.length,h],r),r.add(l),s.subrsIndex&&s.hasName("Subrs")){var u=this.compileIndex(s.subrsIndex);c.setEntryLocation("Subrs",[l.length],r),r.add(u)}}},compileDict:function(e,t){for(var r=[],i=e.order,n=0;n<i.length;++n){var o=i[n];if(o in e.values){var s=e.values[o],c=e.types[o];if((0,a.isArray)(c)||(c=[c]),(0,a.isArray)(s)||(s=[s]),0!==s.length){for(var l=0,h=c.length;l<h;++l){var u=c[l],d=s[l];switch(u){case"num":case"sid":r=r.concat(this.encodeNumber(d));break;case"offset":var f=e.keyToNameMap[o];t.isTracking(f)||t.track(f,r.length),r=r.concat([29,0,0,0,0]);break;case"array":case"delta":r=r.concat(this.encodeNumber(d));for(var g=1,p=s.length;g<p;++g)r=r.concat(this.encodeNumber(s[g]));break;default:(0,a.error)("Unknown data type of "+u)}}r=r.concat(e.opcodes[o])}}}return r},compileStringIndex:function(e){for(var t=new u,r=0,i=e.length;r<i;++r)t.add((0,a.stringToBytes)(e[r]));return this.compileIndex(t)},compileGlobalSubrIndex:function(){var e=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(e))},compileCharStrings:function(e){return this.compileIndex(e)},compileCharset:function(e){return this.compileTypedArray(e.raw)},compileEncoding:function(e){return this.compileTypedArray(e.raw)},compileFDSelect:function(e){return this.compileTypedArray(e)},compileTypedArray:function(e){for(var t=[],r=0,a=e.length;r<a;++r)t[r]=e[r];return t},compileIndex:function(e,t){t=t||[];var r=e.objects,a=r.length;if(0===a)return[0,0,0];var i,n=[a>>8&255,255&a],o=1;for(i=0;i<a;++i)o+=r[i].length;var s;s=o<256?1:o<65536?2:o<16777216?3:4,n.push(s);var c=1;for(i=0;i<a+1;i++)1===s?n.push(255&c):2===s?n.push(c>>8&255,255&c):3===s?n.push(c>>16&255,c>>8&255,255&c):n.push(c>>>24&255,c>>16&255,c>>8&255,255&c),r[i]&&(c+=r[i].length);for(i=0;i<a;i++){t[i]&&t[i].offset(n.length);for(var l=0,h=r[i].length;l<h;l++)n.push(r[i][l])}return n}},e}();t.CFFStandardStrings=o,t.CFFParser=s,t.CFF=c,t.CFFHeader=l,t.CFFStrings=h,t.CFFIndex=u,t.CFFCharset=m,t.CFFTopDict=f,t.CFFPrivateDict=g,t.CFFCompiler=k},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0;var a=r(0),i=function(){function e(e,t,r){this.bytes=new Uint8Array(e),this.start=0,this.pos=0,this.end=e,this.chunkSize=t,this.loadedChunks=[],this.numChunksLoaded=0,this.numChunks=Math.ceil(e/t),this.manager=r,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}return e.prototype={getMissingChunks:function(){for(var e=[],t=0,r=this.numChunks;t<r;++t)this.loadedChunks[t]||e.push(t);return e},getBaseStreams:function(){return[this]},allChunksLoaded:function(){return this.numChunksLoaded===this.numChunks},onReceiveData:function(e,t){var r=e+t.byteLength;(0,a.assert)(e%this.chunkSize==0,"Bad begin offset: "+e);var i=this.bytes.length;(0,a.assert)(r%this.chunkSize==0||r===i,"Bad end offset: "+r),this.bytes.set(new Uint8Array(t),e);var n,o=this.chunkSize,s=Math.floor(e/o),c=Math.floor((r-1)/o)+1;for(n=s;n<c;++n)this.loadedChunks[n]||(this.loadedChunks[n]=!0,++this.numChunksLoaded)},onReceiveProgressiveData:function(e){var t=this.progressiveDataLength,r=Math.floor(t/this.chunkSize);this.bytes.set(new Uint8Array(e),t),t+=e.byteLength,this.progressiveDataLength=t;var a,i=t>=this.end?this.numChunks:Math.floor(t/this.chunkSize);for(a=r;a<i;++a)this.loadedChunks[a]||(this.loadedChunks[a]=!0,++this.numChunksLoaded)},ensureByte:function(e){var t=Math.floor(e/this.chunkSize);if(t!==this.lastSuccessfulEnsureByteChunk){if(!this.loadedChunks[t])throw new a.MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t}},ensureRange:function(e,t){if(!(e>=t||t<=this.progressiveDataLength))for(var r=this.chunkSize,i=Math.floor(e/r),n=Math.floor((t-1)/r)+1,o=i;o<n;++o)if(!this.loadedChunks[o])throw new a.MissingDataException(e,t)},nextEmptyChunk:function(e){for(var t,r=this.numChunks,a=0;a<r;++a)if(t=(e+a)%r,!this.loadedChunks[t])return t;return null},hasChunk:function(e){return!!this.loadedChunks[e]},get length(){return this.end-this.start},get isEmpty(){return 0===this.length},getByte:function(){var e=this.pos;return e>=this.end?-1:(this.ensureByte(e),this.bytes[this.pos++])},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes:function(e){var t=this.bytes,r=this.pos,a=this.end;if(!e)return this.ensureRange(r,a),t.subarray(r,a);var i=r+e;return i>a&&(i=a),this.ensureRange(r,i),this.pos=i,t.subarray(r,i)},peekByte:function(){var e=this.getByte();return this.pos--,e},peekBytes:function(e){var t=this.getBytes(e);return this.pos-=t.length,t},getByteRange:function(e,t){return this.ensureRange(e,t),this.bytes.subarray(e,t)},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=this.start},moveStart:function(){this.start=this.pos},makeSubStream:function(e,t,r){function a(){}this.ensureRange(e,e+t),(a.prototype=Object.create(this)).getMissingChunks=function(){for(var e=this.chunkSize,t=Math.floor(this.start/e),r=Math.floor((this.end-1)/e)+1,a=[],i=t;i<r;++i)this.loadedChunks[i]||a.push(i);return a};var i=new a;return i.pos=i.start=e,i.end=e+t||this.end,i.dict=r,i}},e}(),n=function(){function e(e,t){var r=t.rangeChunkSize,n=t.length;this.stream=new i(n,r,this),this.length=n,this.chunkSize=r,this.pdfNetworkStream=e,this.url=t.url,this.disableAutoFetch=t.disableAutoFetch,this.msgHandler=t.msgHandler,this.currRequestId=0,this.chunksNeededByRequest=Object.create(null),this.requestsByChunk=Object.create(null),this.promisesByRequest=Object.create(null),this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=(0,a.createPromiseCapability)()}return e.prototype={onLoadedStream:function(){return this._loadedStreamCapability.promise},sendRequest:function(e,t){var r=this,i=this.pdfNetworkStream.getRangeReader(e,t);i.isStreamingSupported||(i.onProgress=this.onProgress.bind(this));var n=[],o=0,s=this;new Promise(function(e,t){i.read().then(function r(c){try{if(!c.done){var l=c.value;return n.push(l),o+=(0,a.arrayByteLength)(l),i.isStreamingSupported&&s.onProgress({loaded:o}),void i.read().then(r,t)}var h=(0,a.arraysToBytes)(n);n=null,e(h)}catch(e){t(e)}},t)}).then(function(t){r.aborted||r.onReceiveData({chunk:t,begin:e})})},requestAllChunks:function(){var e=this.stream.getMissingChunks();return this._requestChunks(e),this._loadedStreamCapability.promise},_requestChunks:function(e){var t,r,i=this.currRequestId++,n=Object.create(null);for(this.chunksNeededByRequest[i]=n,t=0,r=e.length;t<r;t++)this.stream.hasChunk(e[t])||(n[e[t]]=!0);if((0,a.isEmptyObj)(n))return Promise.resolve();var o=(0,a.createPromiseCapability)();this.promisesByRequest[i]=o;var s=[];for(var c in n)(c|=0)in this.requestsByChunk||(this.requestsByChunk[c]=[],s.push(c)),this.requestsByChunk[c].push(i);if(!s.length)return o.promise;var l=this.groupChunks(s);for(t=0;t<l.length;++t){var h=l[t],u=h.beginChunk*this.chunkSize,d=Math.min(h.endChunk*this.chunkSize,this.length);this.sendRequest(u,d)}return o.promise},getStream:function(){return this.stream},requestRange:function(e,t){t=Math.min(t,this.length);for(var r=this.getBeginChunk(e),a=this.getEndChunk(t),i=[],n=r;n<a;++n)i.push(n);return this._requestChunks(i)},requestRanges:function(e){e=e||[];for(var t=[],r=0;r<e.length;r++)for(var a=this.getBeginChunk(e[r].begin),i=this.getEndChunk(e[r].end),n=a;n<i;++n)t.indexOf(n)<0&&t.push(n);return t.sort(function(e,t){return e-t}),this._requestChunks(t)},groupChunks:function(e){for(var t=[],r=-1,a=-1,i=0;i<e.length;++i){var n=e[i];r<0&&(r=n),a>=0&&a+1!==n&&(t.push({beginChunk:r,endChunk:a+1}),r=n),i+1===e.length&&t.push({beginChunk:r,endChunk:n+1}),a=n}return t},onProgress:function(e){var t=this.stream.numChunksLoaded*this.chunkSize+e.loaded;this.msgHandler.send("DocProgress",{loaded:t,total:this.length})},onReceiveData:function(e){var t=e.chunk,r=void 0===e.begin,i=r?this.progressiveDataLength:e.begin,n=i+t.byteLength,o=Math.floor(i/this.chunkSize),s=n<this.length?Math.floor(n/this.chunkSize):Math.ceil(n/this.chunkSize);r?(this.stream.onReceiveProgressiveData(t),this.progressiveDataLength=n):this.stream.onReceiveData(i,t),this.stream.allChunksLoaded()&&this._loadedStreamCapability.resolve(this.stream);var c,l,h=[];for(t=o;t<s;++t){var u=this.requestsByChunk[t]||[];for(delete this.requestsByChunk[t],c=0;c<u.length;++c){l=u[c];var d=this.chunksNeededByRequest[l];t in d&&delete d[t],(0,a.isEmptyObj)(d)&&h.push(l)}}if(!this.disableAutoFetch&&(0,a.isEmptyObj)(this.requestsByChunk)){var f;if(1===this.stream.numChunksLoaded){var g=this.stream.numChunks-1;this.stream.hasChunk(g)||(f=g)}else f=this.stream.nextEmptyChunk(s);(0,a.isInt)(f)&&this._requestChunks([f])}for(c=0;c<h.length;++c){l=h[c];var p=this.promisesByRequest[l];delete this.promisesByRequest[l],p.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})},onError:function(e){this._loadedStreamCapability.reject(e)},getBeginChunk:function(e){return Math.floor(e/this.chunkSize)},getEndChunk:function(e){return Math.floor((e-1)/this.chunkSize)+1},abort:function(){this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests("abort");for(var e in this.promisesByRequest)this.promisesByRequest[e].reject(new Error("Request was aborted"))}},e}();t.ChunkedStream=i,t.ChunkedStreamManager=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA512=t.calculateSHA384=t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0;var a=r(0),i=r(1),n=r(2),o=function(){function e(e){this.a=0,this.b=0;var t,r,a=new Uint8Array(256),i=0,n=e.length;for(t=0;t<256;++t)a[t]=t;for(t=0;t<256;++t)i=i+(r=a[t])+e[t%n]&255,a[t]=a[i],a[i]=r;this.s=a}return e.prototype={encryptBlock:function(e){var t,r,a,i=e.length,n=this.a,o=this.b,s=this.s,c=new Uint8Array(i);for(t=0;t<i;++t)a=s[o=o+(r=s[n=n+1&255])&255],s[n]=a,s[o]=r,c[t]=e[t]^s[r+a&255];return this.a=n,this.b=o,c}},e.prototype.decryptBlock=e.prototype.encryptBlock,e}(),s=function(){var e=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),t=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);return function(r,a,i){var n,o,s,c=1732584193,l=-271733879,h=-1732584194,u=271733878,d=i+72&-64,f=new Uint8Array(d);for(n=0;n<i;++n)f[n]=r[a++];for(f[n++]=128,s=d-8;n<s;)f[n++]=0;f[n++]=i<<3&255,f[n++]=i>>5&255,f[n++]=i>>13&255,f[n++]=i>>21&255,f[n++]=i>>>29&255,f[n++]=0,f[n++]=0,f[n++]=0;var g=new Int32Array(16);for(n=0;n<d;){for(o=0;o<16;++o,n+=4)g[o]=f[n]|f[n+1]<<8|f[n+2]<<16|f[n+3]<<24;var p,m,b=c,v=l,y=h,k=u;for(o=0;o<64;++o){o<16?(p=v&y|~v&k,m=o):o<32?(p=k&v|~k&y,m=5*o+1&15):o<48?(p=v^y^k,m=3*o+5&15):(p=y^(v|~k),m=7*o&15);var w=k,S=b+p+t[o]+g[m]|0,A=e[o];k=y,y=v,v=v+(S<<A|S>>>32-A)|0,b=w}c=c+b|0,l=l+v|0,h=h+y|0,u=u+k|0}return new Uint8Array([255&c,c>>8&255,c>>16&255,c>>>24&255,255&l,l>>8&255,l>>16&255,l>>>24&255,255&h,h>>8&255,h>>16&255,h>>>24&255,255&u,u>>8&255,u>>16&255,u>>>24&255])}}(),c=function(){function e(e,t){this.high=0|e,this.low=0|t}return e.prototype={and:function(e){this.high&=e.high,this.low&=e.low},xor:function(e){this.high^=e.high,this.low^=e.low},or:function(e){this.high|=e.high,this.low|=e.low},shiftRight:function(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)},shiftLeft:function(e){e>=32?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low=this.low<<e)},rotateRight:function(e){var t,r;32&e?(r=this.low,t=this.high):(t=this.low,r=this.high),e&=31,this.low=t>>>e|r<<32-e,this.high=r>>>e|t<<32-e},not:function(){this.high=~this.high,this.low=~this.low},add:function(e){var t=(this.low>>>0)+(e.low>>>0),r=(this.high>>>0)+(e.high>>>0);t>4294967295&&(r+=1),this.low=0|t,this.high=0|r},copyTo:function(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low},assign:function(e){this.high=e.high,this.low=e.low}},e}(),l=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,r){return e&t^~e&r}function r(e,t,r){return e&t^e&r^t&r}function a(t){return e(t,2)^e(t,13)^e(t,22)}function i(t){return e(t,6)^e(t,11)^e(t,25)}function n(t){return e(t,7)^e(t,18)^t>>>3}function o(t){return e(t,17)^e(t,19)^t>>>10}var s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function(e,c,l){var h,u,d,f=1779033703,g=3144134277,p=1013904242,m=2773480762,b=1359893119,v=2600822924,y=528734635,k=1541459225,w=64*Math.ceil((l+9)/64),S=new Uint8Array(w);for(h=0;h<l;++h)S[h]=e[c++];for(S[h++]=128,d=w-8;h<d;)S[h++]=0;S[h++]=0,S[h++]=0,S[h++]=0,S[h++]=l>>>29&255,S[h++]=l>>21&255,S[h++]=l>>13&255,S[h++]=l>>5&255,S[h++]=l<<3&255;var A=new Uint32Array(64);for(h=0;h<w;){for(u=0;u<16;++u)A[u]=S[h]<<24|S[h+1]<<16|S[h+2]<<8|S[h+3],h+=4;for(u=16;u<64;++u)A[u]=o(A[u-2])+A[u-7]+n(A[u-15])+A[u-16]|0;var C,x,P=f,_=g,T=p,I=m,R=b,O=v,E=y,F=k;for(u=0;u<64;++u)C=F+i(R)+t(R,O,E)+s[u]+A[u],x=a(P)+r(P,_,T),F=E,E=O,O=R,R=I+C|0,I=T,T=_,_=P,P=C+x|0;f=f+P|0,g=g+_|0,p=p+T|0,m=m+I|0,b=b+R|0,v=v+O|0,y=y+E|0,k=k+F|0}return new Uint8Array([f>>24&255,f>>16&255,f>>8&255,255&f,g>>24&255,g>>16&255,g>>8&255,255&g,p>>24&255,p>>16&255,p>>8&255,255&p,m>>24&255,m>>16&255,m>>8&255,255&m,b>>24&255,b>>16&255,b>>8&255,255&b,v>>24&255,v>>16&255,v>>8&255,255&v,y>>24&255,y>>16&255,y>>8&255,255&y,k>>24&255,k>>16&255,k>>8&255,255&k])}}(),h=function(){function e(e,t,r,a,i){e.assign(t),e.and(r),i.assign(t),i.not(),i.and(a),e.xor(i)}function t(e,t,r,a,i){e.assign(t),e.and(r),i.assign(t),i.and(a),e.xor(i),i.assign(r),i.and(a),e.xor(i)}function r(e,t,r){e.assign(t),e.rotateRight(28),r.assign(t),r.rotateRight(34),e.xor(r),r.assign(t),r.rotateRight(39),e.xor(r)}function a(e,t,r){e.assign(t),e.rotateRight(14),r.assign(t),r.rotateRight(18),e.xor(r),r.assign(t),r.rotateRight(41),e.xor(r)}function i(e,t,r){e.assign(t),e.rotateRight(1),r.assign(t),r.rotateRight(8),e.xor(r),r.assign(t),r.shiftRight(7),e.xor(r)}function n(e,t,r){e.assign(t),e.rotateRight(19),r.assign(t),r.rotateRight(61),e.xor(r),r.assign(t),r.shiftRight(6),e.xor(r)}var o=[new c(1116352408,3609767458),new c(1899447441,602891725),new c(3049323471,3964484399),new c(3921009573,2173295548),new c(961987163,4081628472),new c(1508970993,3053834265),new c(2453635748,2937671579),new c(2870763221,3664609560),new c(3624381080,2734883394),new c(310598401,1164996542),new c(607225278,1323610764),new c(1426881987,3590304994),new c(1925078388,4068182383),new c(2162078206,991336113),new c(2614888103,633803317),new c(3248222580,3479774868),new c(3835390401,2666613458),new c(4022224774,944711139),new c(264347078,2341262773),new c(604807628,2007800933),new c(770255983,1495990901),new c(1249150122,1856431235),new c(1555081692,3175218132),new c(1996064986,2198950837),new c(2554220882,3999719339),new c(2821834349,766784016),new c(2952996808,2566594879),new c(3210313671,3203337956),new c(3336571891,1034457026),new c(3584528711,2466948901),new c(113926993,3758326383),new c(338241895,168717936),new c(666307205,1188179964),new c(773529912,1546045734),new c(1294757372,1522805485),new c(1396182291,2643833823),new c(1695183700,2343527390),new c(1986661051,1014477480),new c(2177026350,1206759142),new c(2456956037,344077627),new c(2730485921,1290863460),new c(2820302411,3158454273),new c(3259730800,3505952657),new c(3345764771,106217008),new c(3516065817,3606008344),new c(3600352804,1432725776),new c(4094571909,1467031594),new c(275423344,851169720),new c(430227734,3100823752),new c(506948616,1363258195),new c(659060556,3750685593),new c(883997877,3785050280),new c(958139571,3318307427),new c(1322822218,3812723403),new c(1537002063,2003034995),new c(1747873779,3602036899),new c(1955562222,1575990012),new c(2024104815,1125592928),new c(2227730452,2716904306),new c(2361852424,442776044),new c(2428436474,593698344),new c(2756734187,3733110249),new c(3204031479,2999351573),new c(3329325298,3815920427),new c(3391569614,3928383900),new c(3515267271,566280711),new c(3940187606,3454069534),new c(4118630271,4000239992),new c(116418474,1914138554),new c(174292421,2731055270),new c(289380356,3203993006),new c(460393269,320620315),new c(685471733,587496836),new c(852142971,1086792851),new c(1017036298,365543100),new c(1126000580,2618297676),new c(1288033470,3409855158),new c(1501505948,4234509866),new c(1607167915,987167468),new c(1816402316,1246189591)];return function(s,l,h,u){var d,f,g,p,m,b,v,y;(u=!!u)?(d=new c(3418070365,3238371032),f=new c(1654270250,914150663),g=new c(2438529370,812702999),p=new c(355462360,4144912697),m=new c(1731405415,4290775857),b=new c(2394180231,1750603025),v=new c(3675008525,1694076839),y=new c(1203062813,3204075428)):(d=new c(1779033703,4089235720),f=new c(3144134277,2227873595),g=new c(1013904242,4271175723),p=new c(2773480762,1595750129),m=new c(1359893119,2917565137),b=new c(2600822924,725511199),v=new c(528734635,4215389547),y=new c(1541459225,327033209));var k,w,S,A=128*Math.ceil((h+17)/128),C=new Uint8Array(A);for(k=0;k<h;++k)C[k]=s[l++];for(C[k++]=128,S=A-16;k<S;)C[k++]=0;C[k++]=0,C[k++]=0,C[k++]=0,C[k++]=0,C[k++]=0,C[k++]=0,C[k++]=0,C[k++]=0,C[k++]=0,C[k++]=0,C[k++]=0,C[k++]=h>>>29&255,C[k++]=h>>21&255,C[k++]=h>>13&255,C[k++]=h>>5&255,C[k++]=h<<3&255;var x=new Array(80);for(k=0;k<80;k++)x[k]=new c(0,0);var P,_=new c(0,0),T=new c(0,0),I=new c(0,0),R=new c(0,0),O=new c(0,0),E=new c(0,0),F=new c(0,0),L=new c(0,0),D=new c(0,0),M=new c(0,0),B=new c(0,0),N=new c(0,0);for(k=0;k<A;){for(w=0;w<16;++w)x[w].high=C[k]<<24|C[k+1]<<16|C[k+2]<<8|C[k+3],x[w].low=C[k+4]<<24|C[k+5]<<16|C[k+6]<<8|C[k+7],k+=8;for(w=16;w<80;++w)n(P=x[w],x[w-2],N),P.add(x[w-7]),i(B,x[w-15],N),P.add(B),P.add(x[w-16]);for(_.assign(d),T.assign(f),I.assign(g),R.assign(p),O.assign(m),E.assign(b),F.assign(v),L.assign(y),w=0;w<80;++w)D.assign(L),a(B,O,N),D.add(B),e(B,O,E,F,N),D.add(B),D.add(o[w]),D.add(x[w]),r(M,_,N),t(B,_,T,I,N),M.add(B),P=L,L=F,F=E,E=O,R.add(D),O=R,R=I,I=T,T=_,P.assign(D),P.add(M),_=P;d.add(_),f.add(T),g.add(I),p.add(R),m.add(O),b.add(E),v.add(F),y.add(L)}var U;return u?(U=new Uint8Array(48),d.copyTo(U,0),f.copyTo(U,8),g.copyTo(U,16),p.copyTo(U,24),m.copyTo(U,32),b.copyTo(U,40)):(U=new Uint8Array(64),d.copyTo(U,0),f.copyTo(U,8),g.copyTo(U,16),p.copyTo(U,24),m.copyTo(U,32),b.copyTo(U,40),v.copyTo(U,48),y.copyTo(U,56)),U}}(),u=function(){return function(e,t,r){return h(e,t,r,!0)}}(),d=function(){function e(){}return e.prototype={decryptBlock:function(e){return e}},e}(),f=function(){function e(e){var t=new Uint8Array(176);t.set(e);for(var r=16,a=1;r<176;++a){var i=t[r-3],s=t[r-2],c=t[r-1],l=t[r-4];i=o[i],s=o[s],c=o[c],l=o[l],i^=n[a];for(var h=0;h<4;++h)t[r]=i^=t[r-16],t[++r]=s^=t[r-16],t[++r]=c^=t[r-16],t[++r]=l^=t[r-16],r++}return t}function t(e,t){var r=new Uint8Array(16);r.set(e);var a,i,n,o,c,l;for(i=0,n=160;i<16;++i,++n)r[i]^=t[n];for(a=9;a>=1;--a){for(o=r[13],r[13]=r[9],r[9]=r[5],r[5]=r[1],r[1]=o,o=r[14],c=r[10],r[14]=r[6],r[10]=r[2],r[6]=o,r[2]=c,o=r[15],c=r[11],l=r[7],r[15]=r[3],r[11]=o,r[7]=c,r[3]=l,i=0;i<16;++i)r[i]=s[r[i]];for(i=0,n=16*a;i<16;++i,++n)r[i]^=t[n];for(i=0;i<16;i+=4){var u=h[r[i]],d=h[r[i+1]],f=h[r[i+2]],g=h[r[i+3]];o=u^d>>>8^d<<24^f>>>16^f<<16^g>>>24^g<<8,r[i]=o>>>24&255,r[i+1]=o>>16&255,r[i+2]=o>>8&255,r[i+3]=255&o}}for(o=r[13],r[13]=r[9],r[9]=r[5],r[5]=r[1],r[1]=o,o=r[14],c=r[10],r[14]=r[6],r[10]=r[2],r[6]=o,r[2]=c,o=r[15],c=r[11],l=r[7],r[15]=r[3],r[11]=o,r[7]=c,r[3]=l,i=0;i<16;++i)r[i]=s[r[i]],r[i]^=t[i];return r}function r(e,t){var r,a,i,n,s=new Uint8Array(16);for(s.set(e),h=0;h<16;++h)s[h]^=t[h];for(l=1;l<10;l++){for(h=0;h<16;++h)s[h]=o[s[h]];i=s[1],s[1]=s[5],s[5]=s[9],s[9]=s[13],s[13]=i,i=s[2],a=s[6],s[2]=s[10],s[6]=s[14],s[10]=i,s[14]=a,i=s[3],a=s[7],r=s[11],s[3]=s[15],s[7]=i,s[11]=a,s[15]=r;for(var h=0;h<16;h+=4){var u=s[h+0],d=s[h+1],f=s[h+2],g=s[h+3];r=u^d^f^g,s[h+0]^=r^c[u^d],s[h+1]^=r^c[d^f],s[h+2]^=r^c[f^g],s[h+3]^=r^c[g^u]}for(h=0,n=16*l;h<16;++h,++n)s[h]^=t[n]}for(h=0;h<16;++h)s[h]=o[s[h]];for(i=s[1],s[1]=s[5],s[5]=s[9],s[9]=s[13],s[13]=i,i=s[2],a=s[6],s[2]=s[10],s[6]=s[14],s[10]=i,s[14]=a,i=s[3],a=s[7],r=s[11],s[3]=s[15],s[7]=i,s[11]=a,s[15]=r,h=0,n=160;h<16;++h,++n)s[h]^=t[n];return s}function a(t){this.key=e(t),this.buffer=new Uint8Array(16),this.bufferPosition=0}function i(e,r){var a,i,n,o=e.length,s=this.buffer,c=this.bufferPosition,l=[],h=this.iv;for(a=0;a<o;++a)if(s[c]=e[a],!(++c<16)){var u=t(s,this.key);for(i=0;i<16;++i)u[i]^=h[i];h=s,l.push(u),s=new Uint8Array(16),c=0}if(this.buffer=s,this.bufferLength=c,this.iv=h,0===l.length)return new Uint8Array([]);var d=16*l.length;if(r){var f=l[l.length-1],g=f[15];if(g<=16){for(a=15,n=16-g;a>=n;--a)if(f[a]!==g){g=0;break}d-=g,l[l.length-1]=f.subarray(0,16-g)}}var p=new Uint8Array(d);for(a=0,i=0,n=l.length;a<n;++a,i+=16)p.set(l[a],i);return p}for(var n=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),o=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),c=new Uint8Array(256),l=0;l<256;l++)c[l]=l<128?l<<1:l<<1^27;var h=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]);return a.prototype={decryptBlock:function(e,t){var r,a=e.length,n=this.buffer,o=this.bufferPosition;for(r=0;o<16&&r<a;++r,++o)n[o]=e[r];return o<16?(this.bufferLength=o,new Uint8Array([])):(this.iv=n,this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=i,this.decryptBlock(e.subarray(16),t))},encrypt:function(e,t){var a,i,n,o=e.length,s=this.buffer,c=this.bufferPosition,l=[];for(t||(t=new Uint8Array(16)),a=0;a<o;++a)if(s[c]=e[a],!(++c<16)){for(i=0;i<16;++i)s[i]^=t[i];var h=r(s,this.key);t=h,l.push(h),s=new Uint8Array(16),c=0}if(this.buffer=s,this.bufferLength=c,this.iv=t,0===l.length)return new Uint8Array([]);var u=16*l.length,d=new Uint8Array(u);for(a=0,i=0,n=l.length;a<n;++a,i+=16)d.set(l[a],i);return d}},a}(),g=function(){function e(e){var t=new Uint8Array(240),r=1;t.set(e);for(var a=32,i=1;a<240;++i){if(a%32==16)o=n[o],s=n[s],c=n[c],l=n[l];else if(a%32==0){var o=t[a-3],s=t[a-2],c=t[a-1],l=t[a-4];o=n[o],s=n[s],c=n[c],l=n[l],o^=r,(r<<=1)>=256&&(r=255&(27^r))}for(var h=0;h<4;++h)t[a]=o^=t[a-32],t[++a]=s^=t[a-32],t[++a]=c^=t[a-32],t[++a]=l^=t[a-32],a++}return t}function t(e,t){var r=new Uint8Array(16);r.set(e);var a,i,n,s,c,h;for(i=0,n=224;i<16;++i,++n)r[i]^=t[n];for(a=13;a>=1;--a){for(s=r[13],r[13]=r[9],r[9]=r[5],r[5]=r[1],r[1]=s,s=r[14],c=r[10],r[14]=r[6],r[10]=r[2],r[6]=s,r[2]=c,s=r[15],c=r[11],h=r[7],r[15]=r[3],r[11]=s,r[7]=c,r[3]=h,i=0;i<16;++i)r[i]=o[r[i]];for(i=0,n=16*a;i<16;++i,++n)r[i]^=t[n];for(i=0;i<16;i+=4){var u=l[r[i]],d=l[r[i+1]],f=l[r[i+2]],g=l[r[i+3]];s=u^d>>>8^d<<24^f>>>16^f<<16^g>>>24^g<<8,r[i]=s>>>24&255,r[i+1]=s>>16&255,r[i+2]=s>>8&255,r[i+3]=255&s}}for(s=r[13],r[13]=r[9],r[9]=r[5],r[5]=r[1],r[1]=s,s=r[14],c=r[10],r[14]=r[6],r[10]=r[2],r[6]=s,r[2]=c,s=r[15],c=r[11],h=r[7],r[15]=r[3],r[11]=s,r[7]=c,r[3]=h,i=0;i<16;++i)r[i]=o[r[i]],r[i]^=t[i];return r}function r(e,t){var r,a,i,o,l=new Uint8Array(16);for(l.set(e),h=0;h<16;++h)l[h]^=t[h];for(c=1;c<14;c++){for(h=0;h<16;++h)l[h]=n[l[h]];i=l[1],l[1]=l[5],l[5]=l[9],l[9]=l[13],l[13]=i,i=l[2],a=l[6],l[2]=l[10],l[6]=l[14],l[10]=i,l[14]=a,i=l[3],a=l[7],r=l[11],l[3]=l[15],l[7]=i,l[11]=a,l[15]=r;for(var h=0;h<16;h+=4){var u=l[h+0],d=l[h+1],f=l[h+2],g=l[h+3];r=u^d^f^g,l[h+0]^=r^s[u^d],l[h+1]^=r^s[d^f],l[h+2]^=r^s[f^g],l[h+3]^=r^s[g^u]}for(h=0,o=16*c;h<16;++h,++o)l[h]^=t[o]}for(h=0;h<16;++h)l[h]=n[l[h]];for(i=l[1],l[1]=l[5],l[5]=l[9],l[9]=l[13],l[13]=i,i=l[2],a=l[6],l[2]=l[10],l[6]=l[14],l[10]=i,l[14]=a,i=l[3],a=l[7],r=l[11],l[3]=l[15],l[7]=i,l[11]=a,l[15]=r,h=0,o=224;h<16;++h,++o)l[h]^=t[o];return l}function a(t){this.key=e(t),this.buffer=new Uint8Array(16),this.bufferPosition=0}function i(e,r){var a,i,n,o=e.length,s=this.buffer,c=this.bufferPosition,l=[],h=this.iv;for(a=0;a<o;++a)if(s[c]=e[a],!(++c<16)){var u=t(s,this.key);for(i=0;i<16;++i)u[i]^=h[i];h=s,l.push(u),s=new Uint8Array(16),c=0}if(this.buffer=s,this.bufferLength=c,this.iv=h,0===l.length)return new Uint8Array([]);var d=16*l.length;if(r){var f=l[l.length-1],g=f[15];if(g<=16){for(a=15,n=16-g;a>=n;--a)if(f[a]!==g){g=0;break}d-=g,l[l.length-1]=f.subarray(0,16-g)}}var p=new Uint8Array(d);for(a=0,i=0,n=l.length;a<n;++a,i+=16)p.set(l[a],i);return p}for(var n=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),o=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),s=new Uint8Array(256),c=0;c<256;c++)s[c]=c<128?c<<1:c<<1^27;var l=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]);return a.prototype={decryptBlock:function(e,t,r){var a,n=e.length,o=this.buffer,s=this.bufferPosition;if(r)this.iv=r;else{for(a=0;s<16&&a<n;++a,++s)o[s]=e[a];if(s<16)return this.bufferLength=s,new Uint8Array([]);this.iv=o,e=e.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=i,this.decryptBlock(e,t)},encrypt:function(e,t){var a,i,n,o=e.length,s=this.buffer,c=this.bufferPosition,l=[];for(t||(t=new Uint8Array(16)),a=0;a<o;++a)if(s[c]=e[a],!(++c<16)){for(i=0;i<16;++i)s[i]^=t[i];var h=r(s,this.key);this.iv=h,l.push(h),s=new Uint8Array(16),c=0}if(this.buffer=s,this.bufferLength=c,this.iv=t,0===l.length)return new Uint8Array([]);var u=16*l.length,d=new Uint8Array(u);for(a=0,i=0,n=l.length;a<n;++a,i+=16)d.set(l[a],i);return d}},a}(),p=function(){function e(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function t(){}return t.prototype={checkOwnerPassword:function(t,r,a,i){var n=new Uint8Array(t.length+56);return n.set(t,0),n.set(r,t.length),n.set(a,t.length+r.length),e(l(n,0,n.length),i)},checkUserPassword:function(t,r,a){var i=new Uint8Array(t.length+8);return i.set(t,0),i.set(r,t.length),e(l(i,0,i.length),a)},getOwnerKey:function(e,t,r,a){var i=new Uint8Array(e.length+56);i.set(e,0),i.set(t,e.length),i.set(r,e.length+t.length);var n=l(i,0,i.length);return new g(n).decryptBlock(a,!1,new Uint8Array(16))},getUserKey:function(e,t,r){var a=new Uint8Array(e.length+8);a.set(e,0),a.set(t,e.length);var i=l(a,0,a.length);return new g(i).decryptBlock(r,!1,new Uint8Array(16))}},t}(),m=function(){function e(e,t){var r=new Uint8Array(e.length+t.length);return r.set(e,0),r.set(t,e.length),r}function t(t,r,a){for(var i=l(r,0,r.length).subarray(0,32),n=[0],o=0;o<64||n[n.length-1]>o-32;){var s=t.length+i.length+a.length,c=new Uint8Array(64*s),d=e(t,i);d=e(d,a);for(var g=0,p=0;g<64;g++,p+=s)c.set(d,p);n=new f(i.subarray(0,16)).encrypt(c,i.subarray(16,32));for(var m=0,b=0;b<16;b++)m*=1,m%=3,m+=(n[b]>>>0)%3,m%=3;0===m?i=l(n,0,n.length):1===m?i=u(n,0,n.length):2===m&&(i=h(n,0,n.length)),o++}return i.subarray(0,32)}function r(){}function a(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return r.prototype={hash:function(e,r,a){return t(e,r,a)},checkOwnerPassword:function(e,r,i,n){var o=new Uint8Array(e.length+56);return o.set(e,0),o.set(r,e.length),o.set(i,e.length+r.length),a(t(e,o,i),n)},checkUserPassword:function(e,r,i){var n=new Uint8Array(e.length+8);return n.set(e,0),n.set(r,e.length),a(t(e,n,[]),i)},getOwnerKey:function(e,r,a,i){var n=new Uint8Array(e.length+56);n.set(e,0),n.set(r,e.length),n.set(a,e.length+r.length);var o=t(e,n,a);return new g(o).decryptBlock(i,!1,new Uint8Array(16))},getUserKey:function(e,r,a){var i=new Uint8Array(e.length+8);i.set(e,0),i.set(r,e.length);var n=t(e,i,[]);return new g(n).decryptBlock(a,!1,new Uint8Array(16))}},r}(),b=function(){function e(e,t){this.StringCipherConstructor=e,this.StreamCipherConstructor=t}return e.prototype={createStream:function(e,t){var r=new this.StreamCipherConstructor;return new n.DecryptStream(e,t,function(e,t){return r.decryptBlock(e,t)})},decryptString:function(e){var t=new this.StringCipherConstructor,r=(0,a.stringToBytes)(e);return r=t.decryptBlock(r,!0),(0,a.bytesToString)(r)}},e}(),v=function(){function e(e,t,r,a,i,n,o,s,c,l,h,u){if(t){var d=Math.min(127,t.length);t=t.subarray(0,d)}else t=[];var f;return f=6===e?new m:new p,f.checkUserPassword(t,s,o)?f.getUserKey(t,c,h):t.length&&f.checkOwnerPassword(t,a,n,r)?f.getOwnerKey(t,i,n,l):null}function t(e,t,r,a,i,n,c,l){var u,d,f=40+r.length+e.length,g=new Uint8Array(f),p=0;if(t)for(d=Math.min(32,t.length);p<d;++p)g[p]=t[p];for(u=0;p<32;)g[p++]=h[u++];for(u=0,d=r.length;u<d;++u)g[p++]=r[u];for(g[p++]=255&i,g[p++]=i>>8&255,g[p++]=i>>16&255,g[p++]=i>>>24&255,u=0,d=e.length;u<d;++u)g[p++]=e[u];n>=4&&!l&&(g[p++]=255,g[p++]=255,g[p++]=255,g[p++]=255);var m=s(g,0,p),b=c>>3;if(n>=3)for(u=0;u<50;++u)m=s(m,0,b);var v,y=m.subarray(0,b);if(n>=3){for(p=0;p<32;++p)g[p]=h[p];for(u=0,d=e.length;u<d;++u)g[p++]=e[u];v=new o(y).encryptBlock(s(g,0,p)),d=y.length;var k,w=new Uint8Array(d);for(u=1;u<=19;++u){for(k=0;k<d;++k)w[k]=y[k]^u;v=new o(w).encryptBlock(v)}for(u=0,d=v.length;u<d;++u)if(a[u]!==v[u])return null}else for(u=0,d=(v=new o(y).encryptBlock(h)).length;u<d;++u)if(a[u]!==v[u])return null;return y}function r(e,t,r,a){var i,n,c=new Uint8Array(32),l=0;for(n=Math.min(32,e.length);l<n;++l)c[l]=e[l];for(i=0;l<32;)c[l++]=h[i++];var u=s(c,0,l),d=a>>3;if(r>=3)for(i=0;i<50;++i)u=s(u,0,u.length);var f;if(r>=3){f=t;var g,p=new Uint8Array(d);for(i=19;i>=0;i--){for(g=0;g<d;++g)p[g]=u[g]^i;f=new o(p).encryptBlock(f)}}else f=new o(u.subarray(0,d)).encryptBlock(t);return f}function n(n,o,s){var c=n.get("Filter");(0,i.isName)(c,"Standard")||(0,a.error)("unknown encryption method"),this.dict=n;var l=n.get("V");(!(0,a.isInt)(l)||1!==l&&2!==l&&4!==l&&5!==l)&&(0,a.error)("unsupported encryption algorithm"),this.algorithm=l;var h=n.get("Length");if(!h)if(l<=3)h=40;else{var d=n.get("CF"),f=n.get("StmF");if((0,i.isDict)(d)&&(0,i.isName)(f)){d.suppressEncryption=!0;var g=d.get(f.name);(h=g&&g.get("Length")||128)<40&&(h<<=3)}}(!(0,a.isInt)(h)||h<40||h%8!=0)&&(0,a.error)("invalid key length");var p=(0,a.stringToBytes)(n.get("O")).subarray(0,32),m=(0,a.stringToBytes)(n.get("U")).subarray(0,32),b=n.get("P"),v=n.get("R"),y=(4===l||5===l)&&!1!==n.get("EncryptMetadata");this.encryptMetadata=y;var k,w=(0,a.stringToBytes)(o);if(s){if(6===v)try{s=(0,a.utf8StringToString)(s)}catch(e){(0,a.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}k=(0,a.stringToBytes)(s)}var S;if(!(S=5!==l?t(w,k,p,m,b,v,h,y):e(v,k,p,(0,a.stringToBytes)(n.get("O")).subarray(32,40),(0,a.stringToBytes)(n.get("O")).subarray(40,48),(0,a.stringToBytes)(n.get("U")).subarray(0,48),m,(0,a.stringToBytes)(n.get("U")).subarray(32,40),(0,a.stringToBytes)(n.get("U")).subarray(40,48),(0,a.stringToBytes)(n.get("OE")),(0,a.stringToBytes)(n.get("UE")),(0,a.stringToBytes)(n.get("Perms"))))&&!s)throw new a.PasswordException("No password given",a.PasswordResponses.NEED_PASSWORD);if(!S&&s&&(S=t(w,r(k,p,v,h),p,m,b,v,h,y)),!S)throw new a.PasswordException("Incorrect Password",a.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=S,l>=4){var A=n.get("CF");(0,i.isDict)(A)&&(A.suppressEncryption=!0),this.cf=A,this.stmf=n.get("StmF")||u,this.strf=n.get("StrF")||u,this.eff=n.get("EFF")||this.stmf}}function c(e,t,r,a){var i,n,o=new Uint8Array(r.length+9);for(i=0,n=r.length;i<n;++i)o[i]=r[i];return o[i++]=255&e,o[i++]=e>>8&255,o[i++]=e>>16&255,o[i++]=255&t,o[i++]=t>>8&255,a&&(o[i++]=115,o[i++]=65,o[i++]=108,o[i++]=84),s(o,0,i).subarray(0,Math.min(r.length+5,16))}function l(e,t,r,n,s){(0,a.assert)((0,i.isName)(t),"Invalid crypt filter name.");var l,h=e.get(t.name);return null!==h&&void 0!==h&&(l=h.get("CFM")),l&&"None"!==l.name?"V2"===l.name?function(){return new o(c(r,n,s,!1))}:"AESV2"===l.name?function(){return new f(c(r,n,s,!0))}:"AESV3"===l.name?function(){return new g(s)}:void(0,a.error)("Unknown crypto method"):function(){return new d}}var h=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]),u=i.Name.get("Identity");return n.prototype={createCipherTransform:function(e,t){if(4===this.algorithm||5===this.algorithm)return new b(l(this.cf,this.stmf,e,t,this.encryptionKey),l(this.cf,this.strf,e,t,this.encryptionKey));var r=c(e,t,this.encryptionKey,!1),a=function(){return new o(r)};return new b(a,a)}},n}();t.AES128Cipher=f,t.AES256Cipher=g,t.ARCFourCipher=o,t.CipherTransformFactory=v,t.PDF17=p,t.PDF20=m,t.calculateMD5=s,t.calculateSHA256=l,t.calculateSHA384=u,t.calculateSHA512=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=t.OperatorList=void 0;var a=r(0),i=r(31),n=r(2),o=r(1),s=r(34),c=r(5),l=r(22),h=r(21),u=r(41),d=r(7),f=r(6),g=r(29),p=r(4),m=r(8),b=r(38),v=r(39),y=r(35),k=function(){function e(e,t,r,a){this.xref=e,this.resources=t,this.handler=r,this.forceDataSchema=a}function t(e){var t=this,r=e.pdfManager,i=e.xref,n=e.handler,o=e.pageIndex,s=e.idFactory,c=e.fontCache,l=e.builtInCMapCache,h=e.options,u=void 0===h?null:h;this.pdfManager=r,this.xref=i,this.handler=n,this.pageIndex=o,this.idFactory=s,this.fontCache=c,this.builtInCMapCache=l,this.options=u||k,this.fetchBuiltInCMap=function(e){var r=t.builtInCMapCache[e];return r?Promise.resolve(r):t.handler.sendWithPromise("FetchBuiltInCMap",{name:e}).then(function(r){return r.compressionType!==a.CMapCompressionType.NONE&&(t.builtInCMapCache[e]=r),r})}}function r(){this.reset()}function f(e){if(!(0,o.isName)(e))return"source-over";switch(e.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}return(0,a.warn)("Unsupported blend mode: "+e.name),"source-over"}var k={forceDataSchema:!1,maxImageSize:-1,disableFontFace:!1,nativeImageDecoderSupport:a.NativeImageDecoding.DECODE,ignoreErrors:!1};e.prototype={canDecode:function(t){return t instanceof n.JpegStream&&e.isDecodable(t,this.xref,this.resources)},decode:function(e){var t=e.dict.get("ColorSpace","CS"),r=(t=p.ColorSpace.parse(t,this.xref,this.resources)).numComps;return this.handler.sendWithPromise("JpegDecode",[e.getIR(this.forceDataSchema),r]).then(function(t){var r=t.data;return new n.Stream(r,0,r.length,e.dict)})}},e.isSupported=function(e,t,r){var a=e.dict;if(a.has("DecodeParms")||a.has("DP"))return!1;var i=p.ColorSpace.parse(a.get("ColorSpace","CS"),t,r);return("DeviceGray"===i.name||"DeviceRGB"===i.name)&&i.isDefaultDecode(a.getArray("Decode","D"))},e.isDecodable=function(e,t,r){var a=e.dict;if(a.has("DecodeParms")||a.has("DP"))return!1;var i=p.ColorSpace.parse(a.get("ColorSpace","CS"),t,r);return(1===i.numComps||3===i.numComps)&&i.isDefaultDecode(a.getArray("Decode","D"))};r.prototype={check:function(){return!(++this.checked<100)&&(this.checked=0,this.endTime<=Date.now())},reset:function(){this.endTime=Date.now()+20,this.checked=0}};var _=Promise.resolve();return t.prototype={clone:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=Object.create(this);return t.options=e,t},hasBlendModes:function(e){if(!(0,o.isDict)(e))return!1;var t=Object.create(null);e.objId&&(t[e.objId]=!0);for(var r=[e],a=this.xref;r.length;){var i,n,s,c=r.shift(),l=c.get("ExtGState");if((0,o.isDict)(l)){var h=l.getKeys();for(n=0,s=h.length;n<s;n++){i=h[n];var u=l.get(i).get("BM");if((0,o.isName)(u)&&"Normal"!==u.name)return!0}}var d=c.get("XObject");if((0,o.isDict)(d)){var f=d.getKeys();for(n=0,s=f.length;n<s;n++){i=f[n];var g=d.getRaw(i);if((0,o.isRef)(g)){if(t[g.toString()])continue;g=a.fetch(g)}if((0,o.isStream)(g)){if(g.dict.objId){if(t[g.dict.objId])continue;t[g.dict.objId]=!0}var p=g.dict.get("Resources");!(0,o.isDict)(p)||p.objId&&t[p.objId]||(r.push(p),p.objId&&(t[p.objId]=!0))}}}}return!1},buildFormXObject:function(e,t,r,i,n,s){var c=t.dict,l=c.getArray("Matrix"),h=c.getArray("BBox"),u=c.get("Group");if(u){var d,f={matrix:l,bbox:h,smask:r,isolated:!1,knockout:!1},g=u.get("S");(0,o.isName)(g,"Transparency")&&(f.isolated=u.get("I")||!1,f.knockout=u.get("K")||!1,d=u.has("CS")?p.ColorSpace.parse(u.get("CS"),this.xref,e):null),r&&r.backdrop&&(d=d||p.ColorSpace.singletons.rgb,r.backdrop=d.getRgb(r.backdrop,0)),i.addOp(a.OPS.beginGroup,[f])}return i.addOp(a.OPS.paintFormXObjectBegin,[l,h]),this.getOperatorList({stream:t,task:n,resources:c.get("Resources")||e,operatorList:i,initialState:s}).then(function(){i.addOp(a.OPS.paintFormXObjectEnd,[]),u&&i.addOp(a.OPS.endGroup,[f])})},buildPaintImageXObject:function(t,r,i,o,s,c){var l=this,h=r.dict,u=h.get("Width","W"),d=h.get("Height","H");if(u&&(0,a.isNum)(u)&&d&&(0,a.isNum)(d)){var f=this.options.maxImageSize;if(-1!==f&&u*d>f)(0,a.warn)("Image exceeded maximum allowed size and was removed.");else{var g,p;if(h.get("ImageMask","IM")||!1){var m=h.get("Width","W"),b=h.get("Height","H"),v=m+7>>3,k=r.getBytes(v*b),w=h.getArray("Decode","D"),S=!!w&&w[0]>0;return g=y.PDFImage.createMask(k,m,b,r instanceof n.DecodeStream,S),g.cached=!0,p=[g],o.addOp(a.OPS.paintImageMaskXObject,p),void(s&&(c[s]={fn:a.OPS.paintImageMaskXObject,args:p}))}var A=h.get("SMask","SM")||!1,C=h.get("Mask")||!1;if(i&&!A&&!C&&!(r instanceof n.JpegStream)&&u+d<200)return g=new y.PDFImage(this.xref,t,r,i,null,null).createImageData(!0),void o.addOp(a.OPS.paintInlineImageXObject,[g]);var x=this.options.nativeImageDecoderSupport,P="img_"+this.idFactory.createObjId();if(o.addDependency(P),p=[P,u,d],x!==a.NativeImageDecoding.NONE&&!A&&!C&&r instanceof n.JpegStream&&e.isSupported(r,this.xref,t))return o.addOp(a.OPS.paintJpegXObject,p),this.handler.send("obj",[P,this.pageIndex,"JpegStream",r.getIR(this.options.forceDataSchema)]),void(s&&(c[s]={fn:a.OPS.paintJpegXObject,args:p}));var _=null;x===a.NativeImageDecoding.DECODE&&(r instanceof n.JpegStream||C instanceof n.JpegStream||A instanceof n.JpegStream)&&(_=new e(this.xref,t,this.handler,this.options.forceDataSchema)),y.PDFImage.buildImage(this.handler,this.xref,t,r,i,_).then(function(e){var t=e.createImageData(!1);l.handler.send("obj",[P,l.pageIndex,"Image",t],[t.data.buffer])}).catch(function(e){(0,a.warn)("Unable to decode image: "+e),l.handler.send("obj",[P,l.pageIndex,"Image",null])}),o.addOp(a.OPS.paintImageXObject,p),s&&(c[s]={fn:a.OPS.paintImageXObject,args:p})}}else(0,a.warn)("Image dimensions are missing, or not numbers.")},handleSMask:function(e,t,r,a,i){var n=e.get("G"),o={subtype:e.get("S").name,backdrop:e.get("BC")},s=e.get("TR");if((0,d.isPDFFunction)(s)){for(var c=d.PDFFunction.parse(this.xref,s),l=new Uint8Array(256),h=new Float32Array(1),u=0;u<256;u++)h[0]=u/255,c(h,0,h,0),l[u]=255*h[0]|0;o.transferMap=l}return this.buildFormXObject(t,n,o,r,a,i.state.clone())},handleTilingType:function(e,t,r,i,n,s,c){var l=this,h=new S,d=[n.get("Resources"),r],f=o.Dict.merge(this.xref,d);return this.getOperatorList({stream:i,task:c,resources:f,operatorList:h}).then(function(){return(0,u.getTilingPatternIR)({fnArray:h.fnArray,argsArray:h.argsArray},n,t)}).then(function(t){s.addDependencies(h.dependencies),s.addOp(e,t)},function(e){if(l.options.ignoreErrors)return l.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.unknown}),void(0,a.warn)('handleTilingType - ignoring pattern: "'+e+'".');throw e})},handleSetFont:function(e,t,r,i,n,o){var c,l=this;return t&&(c=(t=t.slice())[0].name),this.loadFont(c,r,e).then(function(t){return t.font.isType3Font?t.loadType3Data(l,e,i,n).then(function(){return t}).catch(function(e){return l.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.font}),new w("g_font_error",new s.ErrorFont("Type3 font load error: "+e),t.font)}):t}).then(function(e){return o.font=e.font,e.send(l.handler),e.loadedName})},handleText:function(e,t){var r=this,i=t.font,n=i.charsToGlyphs(e),o=!!(t.textRenderingMode&a.TextRenderingMode.ADD_TO_PATH_FLAG);if(i.data&&(o||this.options.disableFontFace))for(var s=function(e){if(!i.renderer.hasBuiltPath(e)){var t=i.renderer.getPathJs(e);r.handler.send("commonobj",[i.loadedName+"_path_"+e,"FontPath",t])}},c=0,l=n.length;c<l;c++){var h=n[c];s(h.fontChar);var u=h.accent;u&&u.fontChar&&s(u.fontChar)}return n},setGState:function(e,t,r,i,n){for(var s=this,c=[],l=t.getKeys(),h=Promise.resolve(),u=0,d=l.length;u<d;u++)!function(){var d=l[u],g=t.get(d);switch(d){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":c.push([d,g]);break;case"Font":h=h.then(function(){return s.handleSetFont(e,null,g[0],r,i,n.state).then(function(e){r.addDependency(e),c.push([d,[e,g[1]]])})});break;case"BM":c.push([d,f(g)]);break;case"SMask":if((0,o.isName)(g,"None")){c.push([d,!1]);break}(0,o.isDict)(g)?(h=h.then(function(){return s.handleSMask(g,e,r,i,n)}),c.push([d,!0])):(0,a.warn)("Unsupported SMask type");break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,a.info)("graphic state operator "+d);break;default:(0,a.info)("Unknown graphic state operator "+d)}}();return h.then(function(){c.length>0&&r.addOp(a.OPS.setGState,[c])})},loadFont:function(e,t,r){function i(){return Promise.resolve(new w("g_font_error",new s.ErrorFont("Font "+e+" is not available"),t))}var n,c=this,l=this.xref;if(t)(0,a.assert)((0,o.isRef)(t)),n=t;else{var h=r.get("Font");if(!h)return(0,a.warn)("fontRes not available"),i();n=h.getRaw(e)}if(!n)return(0,a.warn)("fontRef not available"),i();if(this.fontCache.has(n))return this.fontCache.get(n);if(t=l.fetchIfRef(n),!(0,o.isDict)(t))return i();if(t.translated)return t.translated;var u,d=(0,a.createPromiseCapability)(),f=this.preEvaluateFont(t),g=f.descriptor,p=(0,o.isRef)(n);if(p&&(u=n.toString()),(0,o.isDict)(g)){g.fontAliases||(g.fontAliases=Object.create(null));var m=g.fontAliases,b=f.hash;if(m[b]){var v=m[b].aliasRef;if(p&&v&&this.fontCache.has(v))return this.fontCache.putAlias(n,v),this.fontCache.get(n)}else m[b]={fontID:s.Font.getFontID()};p&&(m[b].aliasRef=n),u=m[b].fontID}p?this.fontCache.put(n,d.promise):(u||(u=this.idFactory.createObjId()),this.fontCache.put("id_"+u,d.promise)),(0,a.assert)(u,'The "fontID" must be defined.'),t.loadedName="g_"+this.pdfManager.docId+"_f"+u,t.translated=d.promise;var y;try{y=this.translateFont(f)}catch(e){y=Promise.reject(e)}return y.then(function(e){void 0!==e.fontType&&(l.stats.fontTypes[e.fontType]=!0),d.resolve(new w(t.loadedName,e,t))}).catch(function(e){c.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.font});try{var r=f.descriptor,i=r&&r.get("FontFile3"),n=i&&i.get("Subtype"),o=(0,s.getFontType)(f.type,n&&n.name);l.stats.fontTypes[o]=!0}catch(e){}d.resolve(new w(t.loadedName,new s.ErrorFont(e instanceof Error?e.message:e),t))}),d.promise},buildPath:function(e,t,r){var i=e.length-1;if(r||(r=[]),i<0||e.fnArray[i]!==a.OPS.constructPath)e.addOp(a.OPS.constructPath,[[t],r]);else{var n=e.argsArray[i];n[0].push(t),Array.prototype.push.apply(n[1],r)}},handleColorN:function(e,t,r,a,i,n,s){var c,l=r[r.length-1];if((0,o.isName)(l)&&(c=i.get(l.name))){var h=(0,o.isStream)(c)?c.dict:c,d=h.get("PatternType");if(1===d){var f=a.base?a.base.getRgb(r,0):null;return this.handleTilingType(t,f,n,c,h,e,s)}if(2===d){var g=h.get("Shading"),p=h.getArray("Matrix");return c=u.Pattern.parseShading(g,p,this.xref,n,this.handler),e.addOp(t,c.getIR()),Promise.resolve()}return Promise.reject(new Error("Unknown PatternType: "+d))}return e.addOp(t,r),Promise.resolve()},getOperatorList:function(e){function t(e){for(var t=0,r=k.savedStatesDepth;t<r;t++)l.addOp(a.OPS.restore,[])}var i=this,n=e.stream,s=e.task,c=e.resources,l=e.operatorList,h=e.initialState,d=void 0===h?null:h;c=c||o.Dict.empty,d=d||new x,(0,a.assert)(l,'getOperatorList: missing "operatorList" parameter');var f=this,g=this.xref,m=Object.create(null),b=c.get("XObject")||o.Dict.empty,v=c.get("Pattern")||o.Dict.empty,y=new A(d),k=new P(n,g,y),w=new r;return new Promise(function e(r,i){var n=function(t){t.then(function(){try{e(r,i)}catch(e){i(e)}},i)};s.ensureNotTerminated(),w.reset();for(var h,d,S,A,C={};!(h=w.check())&&(C.args=null,k.read(C));){var x=C.args,P=C.fn;switch(0|P){case a.OPS.paintXObject:if(x[0].code)break;var T=x[0].name;if(!T){(0,a.warn)("XObject must be referred to by name.");continue}if(void 0!==m[T]){l.addOp(m[T].fn,m[T].args),x=null;continue}var I=b.get(T);if(I){(0,a.assert)((0,o.isStream)(I),"XObject should be a stream");var R=I.dict.get("Subtype");if((0,a.assert)((0,o.isName)(R),"XObject should have a Name subtype"),"Form"===R.name)return y.save(),void n(f.buildFormXObject(c,I,null,l,s,y.state.clone()).then(function(){y.restore()}));if("Image"===R.name){f.buildPaintImageXObject(c,I,!1,l,T,m),x=null;continue}if("PS"===R.name){(0,a.info)("Ignored XObject subtype PS");continue}(0,a.error)("Unhandled XObject subtype "+R.name)}break;case a.OPS.setFont:var O=x[1];return void n(f.handleSetFont(c,x,null,l,s,y.state).then(function(e){l.addDependency(e),l.addOp(a.OPS.setFont,[e,O])}));case a.OPS.endInlineImage:var E=x[0].cacheKey;if(E){var F=m[E];if(void 0!==F){l.addOp(F.fn,F.args),x=null;continue}}f.buildPaintImageXObject(c,x[0],!0,l,E,m),x=null;continue;case a.OPS.showText:x[0]=f.handleText(x[0],y.state);break;case a.OPS.showSpacedText:var L=x[0],D=[],M=L.length,B=y.state;for(d=0;d<M;++d){var N=L[d];(0,a.isString)(N)?Array.prototype.push.apply(D,f.handleText(N,B)):(0,a.isNum)(N)&&D.push(N)}x[0]=D,P=a.OPS.showText;break;case a.OPS.nextLineShowText:l.addOp(a.OPS.nextLine),x[0]=f.handleText(x[0],y.state),P=a.OPS.showText;break;case a.OPS.nextLineSetSpacingShowText:l.addOp(a.OPS.nextLine),l.addOp(a.OPS.setWordSpacing,[x.shift()]),l.addOp(a.OPS.setCharSpacing,[x.shift()]),x[0]=f.handleText(x[0],y.state),P=a.OPS.showText;break;case a.OPS.setTextRenderingMode:y.state.textRenderingMode=x[0];break;case a.OPS.setFillColorSpace:y.state.fillColorSpace=p.ColorSpace.parse(x[0],g,c);continue;case a.OPS.setStrokeColorSpace:y.state.strokeColorSpace=p.ColorSpace.parse(x[0],g,c);continue;case a.OPS.setFillColor:x=(A=y.state.fillColorSpace).getRgb(x,0),P=a.OPS.setFillRGBColor;break;case a.OPS.setStrokeColor:x=(A=y.state.strokeColorSpace).getRgb(x,0),P=a.OPS.setStrokeRGBColor;break;case a.OPS.setFillGray:y.state.fillColorSpace=p.ColorSpace.singletons.gray,x=p.ColorSpace.singletons.gray.getRgb(x,0),P=a.OPS.setFillRGBColor;break;case a.OPS.setStrokeGray:y.state.strokeColorSpace=p.ColorSpace.singletons.gray,x=p.ColorSpace.singletons.gray.getRgb(x,0),P=a.OPS.setStrokeRGBColor;break;case a.OPS.setFillCMYKColor:y.state.fillColorSpace=p.ColorSpace.singletons.cmyk,x=p.ColorSpace.singletons.cmyk.getRgb(x,0),P=a.OPS.setFillRGBColor;break;case a.OPS.setStrokeCMYKColor:y.state.strokeColorSpace=p.ColorSpace.singletons.cmyk,x=p.ColorSpace.singletons.cmyk.getRgb(x,0),P=a.OPS.setStrokeRGBColor;break;case a.OPS.setFillRGBColor:y.state.fillColorSpace=p.ColorSpace.singletons.rgb,x=p.ColorSpace.singletons.rgb.getRgb(x,0);break;case a.OPS.setStrokeRGBColor:y.state.strokeColorSpace=p.ColorSpace.singletons.rgb,x=p.ColorSpace.singletons.rgb.getRgb(x,0);break;case a.OPS.setFillColorN:if("Pattern"===(A=y.state.fillColorSpace).name)return void n(f.handleColorN(l,a.OPS.setFillColorN,x,A,v,c,s));x=A.getRgb(x,0),P=a.OPS.setFillRGBColor;break;case a.OPS.setStrokeColorN:if("Pattern"===(A=y.state.strokeColorSpace).name)return void n(f.handleColorN(l,a.OPS.setStrokeColorN,x,A,v,c,s));x=A.getRgb(x,0),P=a.OPS.setStrokeRGBColor;break;case a.OPS.shadingFill:var U=c.get("Shading");(0,a.assert)(U,"No shading resource found");var j=U.get(x[0].name);(0,a.assert)(j,"No shading object found"),x=[u.Pattern.parseShading(j,null,g,c,f.handler).getIR()],P=a.OPS.shadingFill;break;case a.OPS.setGState:var q=x[0],z=c.get("ExtGState");if(!(0,o.isDict)(z)||!z.has(q.name))break;var G=z.get(q.name);return void n(f.setGState(c,G,l,s,y));case a.OPS.moveTo:case a.OPS.lineTo:case a.OPS.curveTo:case a.OPS.curveTo2:case a.OPS.curveTo3:case a.OPS.closePath:case a.OPS.rectangle:f.buildPath(l,P,x);continue;case a.OPS.markPoint:case a.OPS.markPointProps:case a.OPS.beginMarkedContent:case a.OPS.beginMarkedContentProps:case a.OPS.endMarkedContent:case a.OPS.beginCompat:case a.OPS.endCompat:continue;default:if(null!==x){for(d=0,S=x.length;d<S&&!(x[d]instanceof o.Dict);d++);if(d<S){(0,a.warn)("getOperatorList - ignoring operator: "+P);continue}}}l.addOp(P,x)}h?n(_):(t(),r())}).catch(function(e){if(i.options.ignoreErrors)return i.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.unknown}),(0,a.warn)("getOperatorList - ignoring errors during task: "+s.name),void t();throw e})},getTextContent:function(e){function t(){if(R.initialized)return R;var e=x.font;e.loadedName in I.styles||(I.styles[e.loadedName]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical}),R.fontName=e.loadedName;var t=[x.fontSize*x.textHScale,0,0,x.fontSize,0,x.textRise];if(e.isType3Font&&x.fontMatrix!==a.FONT_IDENTITY_MATRIX&&1===x.fontSize){var r=e.bbox[3]-e.bbox[1];r>0&&(r*=x.fontMatrix[3],t[3]*=r)}var i=a.Util.transform(x.ctm,a.Util.transform(x.textMatrix,t));R.transform=i,e.vertical?(R.width=Math.sqrt(i[0]*i[0]+i[1]*i[1]),R.height=0,R.vertical=!0):(R.width=0,R.height=Math.sqrt(i[2]*i[2]+i[3]*i[3]),R.vertical=!1);var n=x.textLineMatrix[0],o=x.textLineMatrix[1],s=Math.sqrt(n*n+o*o);n=x.ctm[0],o=x.ctm[1];var c=Math.sqrt(n*n+o*o);R.textAdvanceScale=c*s,R.lastAdvanceWidth=0,R.lastAdvanceHeight=0;var l=e.spaceWidth/1e3*x.fontSize;return l?(R.spaceWidth=l,R.fakeSpaceMin=l*O,R.fakeMultiSpaceMin=l*E,R.fakeMultiSpaceMax=l*F,R.textRunBreakAllowed=!e.isMonospace):(R.spaceWidth=0,R.fakeSpaceMin=1/0,R.fakeMultiSpaceMin=1/0,R.fakeMultiSpaceMax=0,R.textRunBreakAllowed=!1),R.initialized=!0,R}function i(e){for(var t,r=0,a=e.length;r<a&&(t=e.charCodeAt(r))>=32&&t<=127;)r++;return r<a?e.replace(T," "):e}function n(e){var t=e.str.join(""),r=(0,g.bidi)(t,-1,e.vertical);return{str:k?i(r.str):r.str,dir:r.dir,width:e.width,height:e.height,transform:e.transform,fontName:e.fontName}}function s(e,t){return L.loadFont(e,t,m).then(function(e){x.font=e.font,x.fontMatrix=e.font.fontMatrix||a.FONT_IDENTITY_MATRIX})}function c(e){for(var r=x.font,a=t(),i=0,n=0,o=r.charsToGlyphs(e),s=0;s<o.length;s++){var c=o[s],u=null;u=r.vertical&&c.vmetric?c.vmetric[0]:c.width;var d=c.unicode,f=(0,l.getNormalizedUnicodes)();void 0!==f[d]&&(d=f[d]),d=(0,l.reverseIfRtl)(d);var g=x.charSpacing;if(c.isSpace){var p=x.wordSpacing;g+=p,p>0&&h(p,a.str)}var m=0,b=0;r.vertical?n+=b=u*x.fontMatrix[0]*x.fontSize+g:i+=m=(u*x.fontMatrix[0]*x.fontSize+g)*x.textHScale,x.translateTextMatrix(m,b),a.str.push(d)}return r.vertical?(a.lastAdvanceHeight=n,a.height+=Math.abs(n)):(a.lastAdvanceWidth=i,a.width+=i),a}function h(e,t){if(!(e<R.fakeSpaceMin))if(e<R.fakeMultiSpaceMin)t.push(" ");else for(var r=Math.round(e/R.spaceWidth);r-- >0;)t.push(" ")}function u(){R.initialized&&(R.width*=R.textAdvanceScale,R.height*=R.textAdvanceScale,I.items.push(n(R)),R.initialized=!1,R.str.length=0)}var d=this,f=e.stream,p=e.task,m=e.resources,b=e.stateManager,v=void 0===b?null:b,y=e.normalizeWhitespace,k=void 0!==y&&y,w=e.combineTextItems,S=void 0!==w&&w;m=m||o.Dict.empty,v=v||new A(new C);var x,T=/\s/g,I={items:[],styles:Object.create(null)},R={initialized:!1,str:[],width:0,height:0,vertical:!1,lastAdvanceWidth:0,lastAdvanceHeight:0,textAdvanceScale:0,spaceWidth:0,fakeSpaceMin:1/0,fakeMultiSpaceMin:1/0,fakeMultiSpaceMax:-0,textRunBreakAllowed:!1,transform:null,fontName:null},O=.3,E=1.5,F=4,L=this,D=this.xref,M=null,B=Object.create(null),N=new P(f,D,v),U=new r;return new Promise(function e(r,i){var n=function(t){t.then(function(){try{e(r,i)}catch(e){i(e)}},i)};p.ensureNotTerminated(),U.reset();for(var l,d={},f=[];!(l=U.check())&&(f.length=0,d.args=f,N.read(d));){x=v.state;var g=d.fn;f=d.args;var b;switch(0|g){case a.OPS.setFont:var y=f[0].name,w=f[1];if(x.font&&y===x.fontName&&w===x.fontSize)break;return u(),x.fontName=y,x.fontSize=w,void n(s(y,null));case a.OPS.setTextRise:u(),x.textRise=f[0];break;case a.OPS.setHScale:u(),x.textHScale=f[0]/100;break;case a.OPS.setLeading:u(),x.leading=f[0];break;case a.OPS.moveText:var C=!!x.font&&0===(x.font.vertical?f[0]:f[1]);if(b=f[0]-f[1],S&&C&&R.initialized&&b>0&&b<=R.fakeMultiSpaceMax){x.translateTextLineMatrix(f[0],f[1]),R.width+=f[0]-R.lastAdvanceWidth,R.height+=f[1]-R.lastAdvanceHeight,h(f[0]-R.lastAdvanceWidth-(f[1]-R.lastAdvanceHeight),R.str);break}u(),x.translateTextLineMatrix(f[0],f[1]),x.textMatrix=x.textLineMatrix.slice();break;case a.OPS.setLeadingMoveText:u(),x.leading=-f[1],x.translateTextLineMatrix(f[0],f[1]),x.textMatrix=x.textLineMatrix.slice();break;case a.OPS.nextLine:u(),x.carriageReturn();break;case a.OPS.setTextMatrix:if(b=x.calcTextLineMatrixAdvance(f[0],f[1],f[2],f[3],f[4],f[5]),S&&null!==b&&R.initialized&&b.value>0&&b.value<=R.fakeMultiSpaceMax){x.translateTextLineMatrix(b.width,b.height),R.width+=b.width-R.lastAdvanceWidth,R.height+=b.height-R.lastAdvanceHeight,h(b.width-R.lastAdvanceWidth-(b.height-R.lastAdvanceHeight),R.str);break}u(),x.setTextMatrix(f[0],f[1],f[2],f[3],f[4],f[5]),x.setTextLineMatrix(f[0],f[1],f[2],f[3],f[4],f[5]);break;case a.OPS.setCharSpacing:x.charSpacing=f[0];break;case a.OPS.setWordSpacing:x.wordSpacing=f[0];break;case a.OPS.beginText:u(),x.textMatrix=a.IDENTITY_MATRIX.slice(),x.textLineMatrix=a.IDENTITY_MATRIX.slice();break;case a.OPS.showSpacedText:for(var P,T=f[0],O=0,E=T.length;O<E;O++)if("string"==typeof T[O])c(T[O]);else if((0,a.isNum)(T[O])){t(),b=T[O]*x.fontSize/1e3;var F=!1;x.font.vertical?(P=b,x.translateTextMatrix(0,P),(F=R.textRunBreakAllowed&&b>R.fakeMultiSpaceMax)||(R.height+=P)):(P=(b=-b)*x.textHScale,x.translateTextMatrix(P,0),(F=R.textRunBreakAllowed&&b>R.fakeMultiSpaceMax)||(R.width+=P)),F?u():b>0&&h(b,R.str)}break;case a.OPS.showText:c(f[0]);break;case a.OPS.nextLineShowText:u(),x.carriageReturn(),c(f[0]);break;case a.OPS.nextLineSetSpacingShowText:u(),x.wordSpacing=f[0],x.charSpacing=f[1],x.carriageReturn(),c(f[2]);break;case a.OPS.paintXObject:if(u(),f[0].code)break;M||(M=m.get("XObject")||o.Dict.empty);var D=f[0].name;if(B.key===D){B.texts&&(a.Util.appendToArray(I.items,B.texts.items),a.Util.extendObj(I.styles,B.texts.styles));break}var j=M.get(D);if(!j)break;(0,a.assert)((0,o.isStream)(j),"XObject should be a stream");var q=j.dict.get("Subtype");if((0,a.assert)((0,o.isName)(q),"XObject should have a Name subtype"),"Form"!==q.name){B.key=D,B.texts=null;break}var z=v.state.clone(),G=new A(z),H=j.dict.getArray("Matrix");return(0,a.isArray)(H)&&6===H.length&&G.transform(H),void n(L.getTextContent({stream:j,task:p,resources:j.dict.get("Resources")||m,stateManager:G,normalizeWhitespace:k,combineTextItems:S}).then(function(e){a.Util.appendToArray(I.items,e.items),a.Util.extendObj(I.styles,e.styles),B.key=D,B.texts=e}));case a.OPS.setGState:u();var W=f[0],X=m.get("ExtGState");if(!(0,o.isDict)(X)||!(0,o.isName)(W))break;var V=X.get(W.name);if(!(0,o.isDict)(V))break;var Y=V.get("Font");if(Y)return x.fontName=null,x.fontSize=Y[1],void n(s(null,Y[0]))}}l?n(_):(u(),r(I))}).catch(function(e){if(d.options.ignoreErrors)return(0,a.warn)("getTextContent - ignoring errors during task: "+p.name),u(),I;throw e})},extractDataStructures:function(e,t,r){var i=this,n=this.xref,l=e.get("ToUnicode")||t.get("ToUnicode"),h=l?this.readToUnicode(l):Promise.resolve(void 0);if(r.composite){var u=e.get("CIDSystemInfo");(0,o.isDict)(u)&&(r.cidSystemInfo={registry:u.get("Registry"),ordering:u.get("Ordering"),supplement:u.get("Supplement")});var d=e.get("CIDToGIDMap");(0,o.isStream)(d)&&(r.cidToGidMap=this.readCidToGidMap(d))}var f,g=[],p=null;if(e.has("Encoding")){if(f=e.get("Encoding"),(0,o.isDict)(f)){if(p=f.get("BaseEncoding"),p=(0,o.isName)(p)?p.name:null,f.has("Differences"))for(var m=f.get("Differences"),b=0,v=0,y=m.length;v<y;v++){var k=n.fetchIfRef(m[v]);(0,a.isNum)(k)?b=k:(0,o.isName)(k)?g[b++]=k.name:(0,a.error)("Invalid entry in 'Differences' array: "+k)}}else(0,o.isName)(f)?p=f.name:(0,a.error)("Encoding is not a Name nor a Dict");"MacRomanEncoding"!==p&&"MacExpertEncoding"!==p&&"WinAnsiEncoding"!==p&&(p=null)}if(p)r.defaultEncoding=(0,c.getEncoding)(p).slice();else{var w=!!(r.flags&s.FontFlags.Symbolic),S=!!(r.flags&s.FontFlags.Nonsymbolic);f=c.StandardEncoding,"TrueType"!==r.type||S||(f=c.WinAnsiEncoding),w&&(f=c.MacRomanEncoding,r.file||(/Symbol/i.test(r.name)?f=c.SymbolSetEncoding:/Dingbats/i.test(r.name)&&(f=c.ZapfDingbatsEncoding))),r.defaultEncoding=f}return r.differences=g,r.baseEncodingName=p,r.hasEncoding=!!p||g.length>0,r.dict=e,h.then(function(e){return r.toUnicode=e,i.buildToUnicode(r)}).then(function(e){return r.toUnicode=e,r})},buildToUnicode:function(e){if(e.hasIncludedToUnicodeMap=!!e.toUnicode&&e.toUnicode.length>0,e.hasIncludedToUnicodeMap)return Promise.resolve(e.toUnicode);var t,r,n;if(!e.composite){t=[];var h=e.defaultEncoding.slice(),u=e.baseEncodingName,d=e.differences;for(r in d)".notdef"!==(n=d[r])&&(h[r]=n);var f=(0,m.getGlyphsUnicode)();for(r in h)if(""!==(n=h[r]))if(void 0!==f[n])t[r]=String.fromCharCode(f[n]);else{var g=0;switch(n[0]){case"G":3===n.length&&(g=parseInt(n.substr(1),16));break;case"g":5===n.length&&(g=parseInt(n.substr(1),16));break;case"C":case"c":n.length>=3&&(g=+n.substr(1));break;default:var p=(0,l.getUnicodeForGlyph)(n,f);-1!==p&&(g=p)}if(g){if(u&&g===+r){var b=(0,c.getEncoding)(u);if(b&&(n=b[r])){t[r]=String.fromCharCode(f[n]);continue}}t[r]=String.fromCharCode(g)}}return Promise.resolve(new s.ToUnicodeMap(t))}if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof i.IdentityCMap)||"Adobe"===e.cidSystemInfo.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering))){var v=e.cidSystemInfo.registry,y=e.cidSystemInfo.ordering,k=o.Name.get(v+"-"+y+"-UCS2");return i.CMapFactory.create({encoding:k,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(r){var i=e.cMap;return t=[],i.forEach(function(e,i){(0,a.assert)(i<=65535,"Max size of CID is 65,535");var n=r.lookup(i);n&&(t[e]=String.fromCharCode((n.charCodeAt(0)<<8)+n.charCodeAt(1)))}),new s.ToUnicodeMap(t)})}return Promise.resolve(new s.IdentityToUnicodeMap(e.firstChar,e.lastChar))},readToUnicode:function(e){var t=e;return(0,o.isName)(t)?i.CMapFactory.create({encoding:t,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(e){return e instanceof i.IdentityCMap?new s.IdentityToUnicodeMap(0,65535):new s.ToUnicodeMap(e.getMap())}):(0,o.isStream)(t)?i.CMapFactory.create({encoding:t,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(e){if(e instanceof i.IdentityCMap)return new s.IdentityToUnicodeMap(0,65535);var t=new Array(e.length);return e.forEach(function(e,r){for(var a=[],i=0;i<r.length;i+=2){var n=r.charCodeAt(i)<<8|r.charCodeAt(i+1);if(55296==(63488&n)){i+=2;var o=r.charCodeAt(i)<<8|r.charCodeAt(i+1);a.push(((1023&n)<<10)+(1023&o)+65536)}else a.push(n)}t[e]=String.fromCharCode.apply(String,a)}),new s.ToUnicodeMap(t)}):Promise.resolve(null)},readCidToGidMap:function(e){for(var t=e.getBytes(),r=[],a=0,i=t.length;a<i;a++){var n=t[a++]<<8|t[a];0!==n&&(r[a>>1]=n)}return r},extractWidths:function(e,t,r){var i,n,c,l,h,u,d,f,g=this.xref,p=[],m=0,b=[];if(r.composite){if(m=e.get("DW")||1e3,f=e.get("W"))for(n=0,c=f.length;n<c;n++)if(u=g.fetchIfRef(f[n++]),d=g.fetchIfRef(f[n]),(0,a.isArray)(d))for(l=0,h=d.length;l<h;l++)p[u++]=g.fetchIfRef(d[l]);else{var v=g.fetchIfRef(f[++n]);for(l=u;l<=d;l++)p[l]=v}if(r.vertical){var y=e.getArray("DW2")||[880,-1e3];if(i=[y[1],.5*m,y[0]],y=e.get("W2"))for(n=0,c=y.length;n<c;n++)if(u=g.fetchIfRef(y[n++]),d=g.fetchIfRef(y[n]),(0,a.isArray)(d))for(l=0,h=d.length;l<h;l++)b[u++]=[g.fetchIfRef(d[l++]),g.fetchIfRef(d[l++]),g.fetchIfRef(d[l])];else{var k=[g.fetchIfRef(y[++n]),g.fetchIfRef(y[++n]),g.fetchIfRef(y[++n])];for(l=u;l<=d;l++)b[l]=k}}}else{var w=r.firstChar;if(f=e.get("Widths")){for(l=w,n=0,c=f.length;n<c;n++)p[l++]=g.fetchIfRef(f[n]);m=parseFloat(t.get("MissingWidth"))||0}else{var S=e.get("BaseFont");if((0,o.isName)(S)){var A=this.getBaseFontMetrics(S.name);p=this.buildCharCodeToWidth(A.widths,r),m=A.defaultWidth}}}var C=!0,x=m;for(var P in p){var _=p[P];if(_)if(x){if(x!==_){C=!1;break}}else x=_}C&&(r.flags|=s.FontFlags.FixedPitch),r.defaultWidth=m,r.widths=p,r.defaultVMetrics=i,r.vmetrics=b},isSerifFont:function(e){var t=e.split("-")[0];return t in(0,h.getSerifFonts)()||-1!==t.search(/serif/gi)},getBaseFontMetrics:function(e){var t=0,r=[],i=!1,n=(0,h.getStdFontMap)()[e]||e,o=(0,b.getMetrics)();n in o||(n=this.isSerifFont(e)?"Times-Roman":"Helvetica");var s=o[n];return(0,a.isNum)(s)?(t=s,i=!0):r=s(),{defaultWidth:t,monospace:i,widths:r}},buildCharCodeToWidth:function(e,t){for(var r=Object.create(null),a=t.differences,i=t.defaultEncoding,n=0;n<256;n++)n in a&&e[a[n]]?r[n]=e[a[n]]:n in i&&e[i[n]]&&(r[n]=e[i[n]]);return r},preEvaluateFont:function(e){var t=e,r=e.get("Subtype");(0,a.assert)((0,o.isName)(r),"invalid font Subtype");var i,n=!1;if("Type0"===r.name){var s=e.get("DescendantFonts");(0,a.assert)(s,"Descendant fonts are not specified"),r=(e=(0,a.isArray)(s)?this.xref.fetchIfRef(s[0]):s).get("Subtype"),(0,a.assert)((0,o.isName)(r),"invalid font Subtype"),n=!0}var c=e.get("FontDescriptor");if(c){var l=new v.MurmurHash3_64,h=t.getRaw("Encoding");if((0,o.isName)(h))l.update(h.name);else if((0,o.isRef)(h))l.update(h.toString());else if((0,o.isDict)(h))for(var u=h.getKeys(),d=0,f=u.length;d<f;d++){var g=h.getRaw(u[d]);if((0,o.isName)(g))l.update(g.name);else if((0,o.isRef)(g))l.update(g.toString());else if((0,a.isArray)(g)){for(var p=g.length,m=new Array(p),b=0;b<p;b++){var y=g[b];(0,o.isName)(y)?m[b]=y.name:((0,a.isNum)(y)||(0,o.isRef)(y))&&(m[b]=y.toString())}l.update(m.join())}}var k=e.get("ToUnicode")||t.get("ToUnicode");if((0,o.isStream)(k)){var w=k.str||k;i=w.buffer?new Uint8Array(w.buffer.buffer,0,w.bufferLength):new Uint8Array(w.bytes.buffer,w.start,w.end-w.start),l.update(i)}else(0,o.isName)(k)&&l.update(k.name);var S=e.get("Widths")||t.get("Widths");S&&(i=new Uint8Array(new Uint32Array(S).buffer),l.update(i))}return{descriptor:c,dict:e,baseDict:t,composite:n,type:r.name,hash:l?l.hexdigest():""}},translateFont:function(e){var t,r=this,n=e.baseDict,c=e.dict,l=e.composite,u=e.descriptor,d=e.type,f=l?65535:255;if(!u){if("Type3"!==d){var g=c.get("BaseFont");(0,a.assert)((0,o.isName)(g),"Base font is not specified"),g=g.name.replace(/[,_]/g,"-");var p=this.getBaseFontMetrics(g),m=g.split("-")[0],b=(this.isSerifFont(m)?s.FontFlags.Serif:0)|(p.monospace?s.FontFlags.FixedPitch:0)|((0,h.getSymbolsFonts)()[m]?s.FontFlags.Symbolic:s.FontFlags.Nonsymbolic);return t={type:d,name:g,widths:p.widths,defaultWidth:p.defaultWidth,flags:b,firstChar:0,lastChar:f},this.extractDataStructures(c,c,t).then(function(e){return e.widths=r.buildCharCodeToWidth(p.widths,e),new s.Font(g,null,e)})}(u=new o.Dict(null)).set("FontName",o.Name.get(d)),u.set("FontBBox",c.getArray("FontBBox"))}var v=c.get("FirstChar")||0,y=c.get("LastChar")||f,k=u.get("FontName"),w=c.get("BaseFont");if((0,a.isString)(k)&&(k=o.Name.get(k)),(0,a.isString)(w)&&(w=o.Name.get(w)),"Type3"!==d){var S=k&&k.name,A=w&&w.name;S!==A&&((0,a.info)("The FontDescriptor's FontName is \""+S+'" but should be the same as the Font\'s BaseFont "'+A+'"'),S&&A&&0===A.indexOf(S)&&(k=w))}k=k||w,(0,a.assert)((0,o.isName)(k),"invalid font name");var C=u.get("FontFile","FontFile2","FontFile3");if(C&&C.dict){var x=C.dict.get("Subtype");x&&(x=x.name);var P=C.dict.get("Length1"),_=C.dict.get("Length2"),T=C.dict.get("Length3")}t={type:d,name:k.name,subtype:x,file:C,length1:P,length2:_,length3:T,loadedName:n.loadedName,composite:l,wideChars:l,fixedPitch:!1,fontMatrix:c.getArray("FontMatrix")||a.FONT_IDENTITY_MATRIX,firstChar:v||0,lastChar:y||f,bbox:u.getArray("FontBBox"),ascent:u.get("Ascent"),descent:u.get("Descent"),xHeight:u.get("XHeight"),capHeight:u.get("CapHeight"),flags:u.get("Flags"),italicAngle:u.get("ItalicAngle"),coded:!1};var I;if(l){var R=n.get("Encoding");(0,o.isName)(R)&&(t.cidEncoding=R.name),I=i.CMapFactory.create({encoding:R,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(e){t.cMap=e,t.vertical=t.cMap.vertical})}else I=Promise.resolve(void 0);return I.then(function(){return r.extractDataStructures(c,n,t)}).then(function(e){return r.extractWidths(c,u,e),"Type3"===d&&(e.isType3Font=!0),new s.Font(k.name,C,e)})}},t}(),w=function(){function e(e,t,r){this.loadedName=e,this.font=t,this.dict=r,this.type3Loaded=null,this.sent=!1}return e.prototype={send:function(e){if(!this.sent){var t=this.font.exportData();e.send("commonobj",[this.loadedName,"Font",t]),this.sent=!0}},loadType3Data:function(e,t,r,i){if((0,a.assert)(this.font.isType3Font),this.type3Loaded)return this.type3Loaded;var n=Object.create(e.options);n.ignoreErrors=!1;for(var o=e.clone(n),s=this.font,c=Promise.resolve(),l=this.dict.get("CharProcs"),h=this.dict.get("Resources")||t,u=l.getKeys(),d=Object.create(null),f=0,g=u.length;f<g;++f)!function(){var e=u[f];c=c.then(function(){var t=l.get(e),n=new S;return o.getOperatorList({stream:t,task:i,resources:h,operatorList:n}).then(function(){d[e]=n.getIR(),r.addDependencies(n.dependencies)}).catch(function(t){(0,a.warn)('Type3 font resource "'+e+'" is not available.');var r=new S;d[e]=r.getIR()})})}();return this.type3Loaded=c.then(function(){s.charProcOperatorList=d}),this.type3Loaded}},e}(),S=function(){function e(e){for(var t=[],r=e.fnArray,i=e.argsArray,n=0,o=e.length;n<o;n++)switch(r[n]){case a.OPS.paintInlineImageXObject:case a.OPS.paintInlineImageXObjectGroup:case a.OPS.paintImageMaskXObject:var s=i[n][0];s.cached||t.push(s.data.buffer)}return t}function t(e,t,r){this.messageHandler=t,this.fnArray=[],this.argsArray=[],this.dependencies=Object.create(null),this._totalLength=0,this.pageIndex=r,this.intent=e}return t.prototype={get length(){return this.argsArray.length},get totalLength(){return this._totalLength+this.length},addOp:function(e,t){this.fnArray.push(e),this.argsArray.push(t),this.messageHandler&&(this.fnArray.length>=1e3?this.flush():this.fnArray.length>=995&&(e===a.OPS.restore||e===a.OPS.endText)&&this.flush())},addDependency:function(e){e in this.dependencies||(this.dependencies[e]=!0,this.addOp(a.OPS.dependency,[e]))},addDependencies:function(e){for(var t in e)this.addDependency(t)},addOpList:function(e){a.Util.extendObj(this.dependencies,e.dependencies);for(var t=0,r=e.length;t<r;t++)this.addOp(e.fnArray[t],e.argsArray[t])},getIR:function(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}},flush:function(t){"oplist"!==this.intent&&(new _).optimize(this);var r=e(this),a=this.length;this._totalLength+=a,this.messageHandler.send("RenderPageChunk",{operatorList:{fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:t,length:a},pageIndex:this.pageIndex,intent:this.intent},r),this.dependencies=Object.create(null),this.fnArray.length=0,this.argsArray.length=0}},t}(),A=function(){function e(e){this.state=e,this.stateStack=[]}return e.prototype={save:function(){var e=this.state;this.stateStack.push(this.state),this.state=e.clone()},restore:function(){var e=this.stateStack.pop();e&&(this.state=e)},transform:function(e){this.state.ctm=a.Util.transform(this.state.ctm,e)}},e}(),C=function(){function e(){this.ctm=new Float32Array(a.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.font=null,this.fontMatrix=a.FONT_IDENTITY_MATRIX,this.textMatrix=a.IDENTITY_MATRIX.slice(),this.textLineMatrix=a.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}return e.prototype={setTextMatrix:function(e,t,r,a,i,n){var o=this.textMatrix;o[0]=e,o[1]=t,o[2]=r,o[3]=a,o[4]=i,o[5]=n},setTextLineMatrix:function(e,t,r,a,i,n){var o=this.textLineMatrix;o[0]=e,o[1]=t,o[2]=r,o[3]=a,o[4]=i,o[5]=n},translateTextMatrix:function(e,t){var r=this.textMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]},translateTextLineMatrix:function(e,t){var r=this.textLineMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]},calcTextLineMatrixAdvance:function(e,t,r,a,i,n){var o=this.font;if(!o)return null;var s=this.textLineMatrix;if(e!==s[0]||t!==s[1]||r!==s[2]||a!==s[3])return null;var c=i-s[4],l=n-s[5];if(o.vertical&&0!==c||!o.vertical&&0!==l)return null;var h,u,d=e*a-t*r;return o.vertical?(h=-l*r/d,u=l*e/d):(h=c*a/d,u=-c*t/d),{width:h,height:u,value:o.vertical?u:h}},calcRenderMatrix:function(e){var t=[this.fontSize*this.textHScale,0,0,this.fontSize,0,this.textRise];return a.Util.transform(e,a.Util.transform(this.textMatrix,t))},carriageReturn:function(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()},clone:function(){var e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}},e}(),x=function(){function e(){this.ctm=new Float32Array(a.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=a.TextRenderingMode.FILL,this.fillColorSpace=p.ColorSpace.singletons.gray,this.strokeColorSpace=p.ColorSpace.singletons.gray}return e.prototype={clone:function(){return Object.create(this)}},e}(),P=function(){function e(e,r,a){this.opMap=t(),this.parser=new f.Parser(new f.Lexer(e,this.opMap),!1,r),this.stateManager=a,this.nonProcessedArgs=[]}var t=(0,a.getLookupTableFactory)(function(e){e.w={id:a.OPS.setLineWidth,numArgs:1,variableArgs:!1},e.J={id:a.OPS.setLineCap,numArgs:1,variableArgs:!1},e.j={id:a.OPS.setLineJoin,numArgs:1,variableArgs:!1},e.M={id:a.OPS.setMiterLimit,numArgs:1,variableArgs:!1},e.d={id:a.OPS.setDash,numArgs:2,variableArgs:!1},e.ri={id:a.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},e.i={id:a.OPS.setFlatness,numArgs:1,variableArgs:!1},e.gs={id:a.OPS.setGState,numArgs:1,variableArgs:!1},e.q={id:a.OPS.save,numArgs:0,variableArgs:!1},e.Q={id:a.OPS.restore,numArgs:0,variableArgs:!1},e.cm={id:a.OPS.transform,numArgs:6,variableArgs:!1},e.m={id:a.OPS.moveTo,numArgs:2,variableArgs:!1},e.l={id:a.OPS.lineTo,numArgs:2,variableArgs:!1},e.c={id:a.OPS.curveTo,numArgs:6,variableArgs:!1},e.v={id:a.OPS.curveTo2,numArgs:4,variableArgs:!1},e.y={id:a.OPS.curveTo3,numArgs:4,variableArgs:!1},e.h={id:a.OPS.closePath,numArgs:0,variableArgs:!1},e.re={id:a.OPS.rectangle,numArgs:4,variableArgs:!1},e.S={id:a.OPS.stroke,numArgs:0,variableArgs:!1},e.s={id:a.OPS.closeStroke,numArgs:0,variableArgs:!1},e.f={id:a.OPS.fill,numArgs:0,variableArgs:!1},e.F={id:a.OPS.fill,numArgs:0,variableArgs:!1},e["f*"]={id:a.OPS.eoFill,numArgs:0,variableArgs:!1},e.B={id:a.OPS.fillStroke,numArgs:0,variableArgs:!1},e["B*"]={id:a.OPS.eoFillStroke,numArgs:0,variableArgs:!1},e.b={id:a.OPS.closeFillStroke,numArgs:0,variableArgs:!1},e["b*"]={id:a.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},e.n={id:a.OPS.endPath,numArgs:0,variableArgs:!1},e.W={id:a.OPS.clip,numArgs:0,variableArgs:!1},e["W*"]={id:a.OPS.eoClip,numArgs:0,variableArgs:!1},e.BT={id:a.OPS.beginText,numArgs:0,variableArgs:!1},e.ET={id:a.OPS.endText,numArgs:0,variableArgs:!1},e.Tc={id:a.OPS.setCharSpacing,numArgs:1,variableArgs:!1},e.Tw={id:a.OPS.setWordSpacing,numArgs:1,variableArgs:!1},e.Tz={id:a.OPS.setHScale,numArgs:1,variableArgs:!1},e.TL={id:a.OPS.setLeading,numArgs:1,variableArgs:!1},e.Tf={id:a.OPS.setFont,numArgs:2,variableArgs:!1},e.Tr={id:a.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},e.Ts={id:a.OPS.setTextRise,numArgs:1,variableArgs:!1},e.Td={id:a.OPS.moveText,numArgs:2,variableArgs:!1},e.TD={id:a.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},e.Tm={id:a.OPS.setTextMatrix,numArgs:6,variableArgs:!1},e["T*"]={id:a.OPS.nextLine,numArgs:0,variableArgs:!1},e.Tj={id:a.OPS.showText,numArgs:1,variableArgs:!1},e.TJ={id:a.OPS.showSpacedText,numArgs:1,variableArgs:!1},e["'"]={id:a.OPS.nextLineShowText,numArgs:1,variableArgs:!1},e['"']={id:a.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},e.d0={id:a.OPS.setCharWidth,numArgs:2,variableArgs:!1},e.d1={id:a.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},e.CS={id:a.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},e.cs={id:a.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},e.SC={id:a.OPS.setStrokeColor,numArgs:4,variableArgs:!0},e.SCN={id:a.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},e.sc={id:a.OPS.setFillColor,numArgs:4,variableArgs:!0},e.scn={id:a.OPS.setFillColorN,numArgs:33,variableArgs:!0},e.G={id:a.OPS.setStrokeGray,numArgs:1,variableArgs:!1},e.g={id:a.OPS.setFillGray,numArgs:1,variableArgs:!1},e.RG={id:a.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},e.rg={id:a.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},e.K={id:a.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},e.k={id:a.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},e.sh={id:a.OPS.shadingFill,numArgs:1,variableArgs:!1},e.BI={id:a.OPS.beginInlineImage,numArgs:0,variableArgs:!1},e.ID={id:a.OPS.beginImageData,numArgs:0,variableArgs:!1},e.EI={id:a.OPS.endInlineImage,numArgs:1,variableArgs:!1},e.Do={id:a.OPS.paintXObject,numArgs:1,variableArgs:!1},e.MP={id:a.OPS.markPoint,numArgs:1,variableArgs:!1},e.DP={id:a.OPS.markPointProps,numArgs:2,variableArgs:!1},e.BMC={id:a.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},e.BDC={id:a.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},e.EMC={id:a.OPS.endMarkedContent,numArgs:0,variableArgs:!1},e.BX={id:a.OPS.beginCompat,numArgs:0,variableArgs:!1},e.EX={id:a.OPS.endCompat,numArgs:0,variableArgs:!1},e.BM=null,e.BD=null,e.true=null,e.fa=null,e.fal=null,e.fals=null,e.false=null,e.nu=null,e.nul=null,e.null=null});return e.prototype={get savedStatesDepth(){return this.stateManager.stateStack.length},read:function(e){for(var t=e.args;;){var r=this.parser.getObj();if((0,o.isCmd)(r)){var i=r.cmd,n=this.opMap[i];if(!n){(0,a.warn)('Unknown command "'+i+'"');continue}var s=n.id,c=n.numArgs,l=null!==t?t.length:0;if(n.variableArgs)l>c&&(0,a.info)("Command "+s+": expected [0,"+c+"] args, but received "+l+" args.");else{if(l!==c){for(var h=this.nonProcessedArgs;l>c;)h.push(t.shift()),l--;for(;l<c&&0!==h.length;)null===t&&(t=[]),t.unshift(h.pop()),l++}if(l<c){(0,a.warn)("Skipping command "+s+": expected "+c+" args, but received "+l+" args."),null!==t&&(t.length=0);continue}}return this.preprocessCommand(s,t),e.fn=s,e.args=t,!0}if((0,o.isEOF)(r))return!1;null!==r&&(null===t&&(t=[]),t.push(r),(0,a.assert)(t.length<=33,"Too many arguments"))}},preprocessCommand:function(e,t){switch(0|e){case a.OPS.save:this.stateManager.save();break;case a.OPS.restore:this.stateManager.restore();break;case a.OPS.transform:this.stateManager.transform(t)}}},e}(),_=function(){function e(e,t,r){for(var a=e,i=0,n=t.length-1;i<n;i++){var o=t[i];a=a[o]||(a[o]=[])}a[t[t.length-1]]=r}function t(e,t,r,i){for(var n=e+2,o=0;o<t;o++){var s=i[n+4*o],c=1===s.length&&s[0];if(!c||1!==c.width||1!==c.height||c.data.length&&(1!==c.data.length||0!==c.data[0]))break;r[n+4*o]=a.OPS.paintSolidColorImageMask}return t-o}function r(){}var i=[];return e(i,[a.OPS.save,a.OPS.transform,a.OPS.paintInlineImageXObject,a.OPS.restore],function(e){for(var t=e.fnArray,r=e.argsArray,i=e.iCurr,n=i-3,o=i-2,s=i-1,c=n+4,l=t.length;c+3<l&&t[c]===a.OPS.save&&t[c+1]===a.OPS.transform&&t[c+2]===a.OPS.paintInlineImageXObject&&t[c+3]===a.OPS.restore;)c+=4;var h=Math.min((c-n)/4,200);if(h<10)return c;var u,d=0,f=[],g=0,p=1,m=1;for(u=0;u<h;u++){var b=r[o+(u<<2)],v=r[s+(u<<2)][0];p+v.width>1e3&&(d=Math.max(d,p),m+=g+2,p=0,g=0),f.push({transform:b,x:p,y:m,w:v.width,h:v.height}),p+=v.width+2,g=Math.max(g,v.height)}var y=Math.max(d,p)+1,k=m+g+1,w=new Uint8Array(y*k*4),S=y<<2;for(u=0;u<h;u++){var A=r[s+(u<<2)][0].data,C=f[u].w<<2,x=0,P=f[u].x+f[u].y*y<<2;w.set(A.subarray(0,C),P-S);for(var _=0,T=f[u].h;_<T;_++)w.set(A.subarray(x,x+C),P),x+=C,P+=S;for(w.set(A.subarray(x-C,x),P);P>=0;)A[P-4]=A[P],A[P-3]=A[P+1],A[P-2]=A[P+2],A[P-1]=A[P+3],A[P+C]=A[P+C-4],A[P+C+1]=A[P+C-3],A[P+C+2]=A[P+C-2],A[P+C+3]=A[P+C-1],P-=S}return t.splice(n,4*h,a.OPS.paintInlineImageXObjectGroup),r.splice(n,4*h,[{width:y,height:k,kind:a.ImageKind.RGBA_32BPP,data:w},f]),n+1}),e(i,[a.OPS.save,a.OPS.transform,a.OPS.paintImageMaskXObject,a.OPS.restore],function(e){for(var r=e.fnArray,i=e.argsArray,n=e.iCurr,o=n-3,s=n-2,c=n-1,l=o+4,h=r.length;l+3<h&&r[l]===a.OPS.save&&r[l+1]===a.OPS.transform&&r[l+2]===a.OPS.paintImageMaskXObject&&r[l+3]===a.OPS.restore;)l+=4;var u=(l-o)/4;if((u=t(o,u,r,i))<10)return l;var d,f,g,p=!1,m=i[c][0];if(0===i[s][1]&&0===i[s][2]){p=!0;var b=i[s][0],v=i[s][3];f=s+4;var y=c+4;for(d=1;d<u;d++,f+=4,y+=4)if(g=i[f],i[y][0]!==m||g[0]!==b||0!==g[1]||0!==g[2]||g[3]!==v){d<10?p=!1:u=d;break}}if(p){u=Math.min(u,1e3);var k=new Float32Array(2*u);for(f=s,d=0;d<u;d++,f+=4)g=i[f],k[d<<1]=g[4],k[1+(d<<1)]=g[5];r.splice(o,4*u,a.OPS.paintImageMaskXObjectRepeat),i.splice(o,4*u,[m,b,v,k])}else{u=Math.min(u,100);var w=[];for(d=0;d<u;d++){g=i[s+(d<<2)];var S=i[c+(d<<2)][0];w.push({data:S.data,width:S.width,height:S.height,transform:g})}r.splice(o,4*u,a.OPS.paintImageMaskXObjectGroup),i.splice(o,4*u,[w])}return o+1}),e(i,[a.OPS.save,a.OPS.transform,a.OPS.paintImageXObject,a.OPS.restore],function(e){var t=e.fnArray,r=e.argsArray,i=e.iCurr,n=i-3,o=i-2,s=i-1,c=i;if(0!==r[o][1]||0!==r[o][2])return c+1;for(var l=r[s][0],h=r[o][0],u=r[o][3],d=n+4,f=t.length;d+3<f&&t[d]===a.OPS.save&&t[d+1]===a.OPS.transform&&t[d+2]===a.OPS.paintImageXObject&&t[d+3]===a.OPS.restore&&r[d+1][0]===h&&0===r[d+1][1]&&0===r[d+1][2]&&r[d+1][3]===u&&r[d+2][0]===l;)d+=4;var g=Math.min((d-n)/4,1e3);if(g<3)return d;for(var p=new Float32Array(2*g),m=o,b=0;b<g;b++,m+=4){var v=r[m];p[b<<1]=v[4],p[1+(b<<1)]=v[5]}var y=[l,h,u,p];return t.splice(n,4*g,a.OPS.paintImageXObjectRepeat),r.splice(n,4*g,y),n+1}),e(i,[a.OPS.beginText,a.OPS.setFont,a.OPS.setTextMatrix,a.OPS.showText,a.OPS.endText],function(e){for(var t=e.fnArray,r=e.argsArray,i=e.iCurr,n=i-4,o=i-3,s=i-2,c=i-1,l=i,h=r[o][0],u=r[o][1],d=n+5,f=t.length;d+4<f&&t[d]===a.OPS.beginText&&t[d+1]===a.OPS.setFont&&t[d+2]===a.OPS.setTextMatrix&&t[d+3]===a.OPS.showText&&t[d+4]===a.OPS.endText&&r[d+1][0]===h&&r[d+1][1]===u;)d+=5;var g=Math.min((d-n)/5,1e3);if(g<3)return d;var p=n;n>=4&&t[n-4]===t[o]&&t[n-3]===t[s]&&t[n-2]===t[c]&&t[n-1]===t[l]&&r[n-4][0]===h&&r[n-4][1]===u&&(g++,p-=5);for(var m=p+4,b=1;b<g;b++)t.splice(m,3),r.splice(m,3),m+=2;return m+1}),r.prototype={optimize:function(e){for(var t,r=e.fnArray,a={iCurr:0,fnArray:r,argsArray:e.argsArray},n=0,o=r.length;n<o;)"function"==typeof(t=(t||i)[r[n]])?(a.iCurr=n,n=t(a),t=void 0,o=a.fnArray.length):n++}},r}();t.OperatorList=S,t.PartialEvaluator=k},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpxImage=void 0;var a=r(0),i=r(14),n=function(){function e(){this.failOnCorruptedImage=!1}function t(e,t){e.x0=Math.ceil(t.XOsiz/e.XRsiz),e.x1=Math.ceil(t.Xsiz/e.XRsiz),e.y0=Math.ceil(t.YOsiz/e.YRsiz),e.y1=Math.ceil(t.Ysiz/e.YRsiz),e.width=e.x1-e.x0,e.height=e.y1-e.y0}function r(e,t){for(var r,a=e.SIZ,i=[],n=Math.ceil((a.Xsiz-a.XTOsiz)/a.XTsiz),o=Math.ceil((a.Ysiz-a.YTOsiz)/a.YTsiz),s=0;s<o;s++)for(var c=0;c<n;c++)(r={}).tx0=Math.max(a.XTOsiz+c*a.XTsiz,a.XOsiz),r.ty0=Math.max(a.YTOsiz+s*a.YTsiz,a.YOsiz),r.tx1=Math.min(a.XTOsiz+(c+1)*a.XTsiz,a.Xsiz),r.ty1=Math.min(a.YTOsiz+(s+1)*a.YTsiz,a.Ysiz),r.width=r.tx1-r.tx0,r.height=r.ty1-r.ty0,r.components=[],i.push(r);e.tiles=i;for(var l=0,h=a.Csiz;l<h;l++)for(var u=t[l],d=0,f=i.length;d<f;d++){var g={};r=i[d],g.tcx0=Math.ceil(r.tx0/u.XRsiz),g.tcy0=Math.ceil(r.ty0/u.YRsiz),g.tcx1=Math.ceil(r.tx1/u.XRsiz),g.tcy1=Math.ceil(r.ty1/u.YRsiz),g.width=g.tcx1-g.tcx0,g.height=g.tcy1-g.tcy0,r.components[l]=g}}function n(e,t,r){var a=t.codingStyleParameters,i={};return a.entropyCoderWithCustomPrecincts?(i.PPx=a.precinctsSizes[r].PPx,i.PPy=a.precinctsSizes[r].PPy):(i.PPx=15,i.PPy=15),i.xcb_=r>0?Math.min(a.xcb,i.PPx-1):Math.min(a.xcb,i.PPx),i.ycb_=r>0?Math.min(a.ycb,i.PPy-1):Math.min(a.ycb,i.PPy),i}function o(e,t,r){var a=1<<r.PPx,i=1<<r.PPy,n=0===t.resLevel,o=1<<r.PPx+(n?0:-1),s=1<<r.PPy+(n?0:-1),c=t.trx1>t.trx0?Math.ceil(t.trx1/a)-Math.floor(t.trx0/a):0,l=t.try1>t.try0?Math.ceil(t.try1/i)-Math.floor(t.try0/i):0,h=c*l;t.precinctParameters={precinctWidth:a,precinctHeight:i,numprecinctswide:c,numprecinctshigh:l,numprecincts:h,precinctWidthInSubband:o,precinctHeightInSubband:s}}function s(e,t,r){var a,i,n,o,s=r.xcb_,c=r.ycb_,l=1<<s,h=1<<c,u=t.tbx0>>s,d=t.tby0>>c,f=t.tbx1+l-1>>s,g=t.tby1+h-1>>c,p=t.resolution.precinctParameters,m=[],b=[];for(i=d;i<g;i++)for(a=u;a<f;a++)if((n={cbx:a,cby:i,tbx0:l*a,tby0:h*i,tbx1:l*(a+1),tby1:h*(i+1)}).tbx0_=Math.max(t.tbx0,n.tbx0),n.tby0_=Math.max(t.tby0,n.tby0),n.tbx1_=Math.min(t.tbx1,n.tbx1),n.tby1_=Math.min(t.tby1,n.tby1),o=Math.floor((n.tbx0_-t.tbx0)/p.precinctWidthInSubband)+Math.floor((n.tby0_-t.tby0)/p.precinctHeightInSubband)*p.numprecinctswide,n.precinctNumber=o,n.subbandType=t.type,n.Lblock=3,!(n.tbx1_<=n.tbx0_||n.tby1_<=n.tby0_)){m.push(n);var v=b[o];void 0!==v?(a<v.cbxMin?v.cbxMin=a:a>v.cbxMax&&(v.cbxMax=a),i<v.cbyMin?v.cbxMin=i:i>v.cbyMax&&(v.cbyMax=i)):b[o]=v={cbxMin:a,cbyMin:i,cbxMax:a,cbyMax:i},n.precinct=v}t.codeblockParameters={codeblockWidth:s,codeblockHeight:c,numcodeblockwide:f-u+1,numcodeblockhigh:g-d+1},t.codeblocks=m,t.precincts=b}function c(e,t,r){for(var a=[],i=e.subbands,n=0,o=i.length;n<o;n++)for(var s=i[n].codeblocks,c=0,l=s.length;c<l;c++){var h=s[c];h.precinctNumber===t&&a.push(h)}return{layerNumber:r,codeblocks:a}}function l(e){for(var t=e.SIZ,r=e.currentTile.index,i=e.tiles[r],n=i.codingStyleDefaultParameters.layersCount,o=t.Csiz,s=0,l=0;l<o;l++)s=Math.max(s,i.components[l].codingStyleParameters.decompositionLevelsCount);var h=0,u=0,d=0,f=0;this.nextPacket=function(){for(;h<n;h++){for(;u<=s;u++){for(;d<o;d++){var e=i.components[d];if(!(u>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[u],r=t.precinctParameters.numprecincts;f<r;){var l=c(t,f,h);return f++,l}f=0}}d=0}u=0}(0,a.error)("JPX Error: Out of packets")}}function h(e){for(var t=e.SIZ,r=e.currentTile.index,i=e.tiles[r],n=i.codingStyleDefaultParameters.layersCount,o=t.Csiz,s=0,l=0;l<o;l++)s=Math.max(s,i.components[l].codingStyleParameters.decompositionLevelsCount);var h=0,u=0,d=0,f=0;this.nextPacket=function(){for(;h<=s;h++){for(;u<n;u++){for(;d<o;d++){var e=i.components[d];if(!(h>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[h],r=t.precinctParameters.numprecincts;f<r;){var l=c(t,f,u);return f++,l}f=0}}d=0}u=0}(0,a.error)("JPX Error: Out of packets")}}function u(e){var t,r,i,n,o=e.SIZ,s=e.currentTile.index,l=e.tiles[s],h=l.codingStyleDefaultParameters.layersCount,u=o.Csiz,d=0;for(i=0;i<u;i++){var f=l.components[i];d=Math.max(d,f.codingStyleParameters.decompositionLevelsCount)}var g=new Int32Array(d+1);for(r=0;r<=d;++r){var p=0;for(i=0;i<u;++i){var m=l.components[i].resolutions;r<m.length&&(p=Math.max(p,m[r].precinctParameters.numprecincts))}g[r]=p}t=0,r=0,i=0,n=0,this.nextPacket=function(){for(;r<=d;r++){for(;n<g[r];n++){for(;i<u;i++){var e=l.components[i];if(!(r>e.codingStyleParameters.decompositionLevelsCount)){var o=e.resolutions[r],s=o.precinctParameters.numprecincts;if(!(n>=s)){for(;t<h;){var f=c(o,n,t);return t++,f}t=0}}}i=0}n=0}(0,a.error)("JPX Error: Out of packets")}}function d(e){var t=e.SIZ,r=e.currentTile.index,i=e.tiles[r],n=i.codingStyleDefaultParameters.layersCount,o=t.Csiz,s=p(i),l=s,h=0,u=0,d=0,f=0,m=0;this.nextPacket=function(){for(;m<l.maxNumHigh;m++){for(;f<l.maxNumWide;f++){for(;d<o;d++){for(var e=i.components[d],t=e.codingStyleParameters.decompositionLevelsCount;u<=t;u++){var r=e.resolutions[u],p=s.components[d].resolutions[u],b=g(f,m,p,l,r);if(null!==b){for(;h<n;){var v=c(r,b,h);return h++,v}h=0}}u=0}d=0}f=0}(0,a.error)("JPX Error: Out of packets")}}function f(e){var t=e.SIZ,r=e.currentTile.index,i=e.tiles[r],n=i.codingStyleDefaultParameters.layersCount,o=t.Csiz,s=p(i),l=0,h=0,u=0,d=0,f=0;this.nextPacket=function(){for(;u<o;++u){for(var e=i.components[u],t=s.components[u],r=e.codingStyleParameters.decompositionLevelsCount;f<t.maxNumHigh;f++){for(;d<t.maxNumWide;d++){for(;h<=r;h++){var p=e.resolutions[h],m=t.resolutions[h],b=g(d,f,m,t,p);if(null!==b){for(;l<n;){var v=c(p,b,l);return l++,v}l=0}}h=0}d=0}f=0}(0,a.error)("JPX Error: Out of packets")}}function g(e,t,r,a,i){var n=e*a.minWidth,o=t*a.minHeight;if(n%r.width!=0||o%r.height!=0)return null;var s=o/r.width*i.precinctParameters.numprecinctswide;return n/r.height+s}function p(e){for(var t=e.components.length,r=Number.MAX_VALUE,a=Number.MAX_VALUE,i=0,n=0,o=new Array(t),s=0;s<t;s++){for(var c=e.components[s],l=c.codingStyleParameters.decompositionLevelsCount,h=new Array(l+1),u=Number.MAX_VALUE,d=Number.MAX_VALUE,f=0,g=0,p=1,m=l;m>=0;--m){var b=c.resolutions[m],v=p*b.precinctParameters.precinctWidth,y=p*b.precinctParameters.precinctHeight;u=Math.min(u,v),d=Math.min(d,y),f=Math.max(f,b.precinctParameters.numprecinctswide),g=Math.max(g,b.precinctParameters.numprecinctshigh),h[m]={width:v,height:y},p<<=1}r=Math.min(r,u),a=Math.min(a,d),i=Math.max(i,f),n=Math.max(n,g),o[s]={resolutions:h,minWidth:u,minHeight:d,maxNumWide:f,maxNumHigh:g}}return{components:o,minWidth:r,minHeight:a,maxNumWide:i,maxNumHigh:n}}function m(e){for(var t=e.SIZ,r=e.currentTile.index,i=e.tiles[r],c=t.Csiz,g=0;g<c;g++){for(var p=i.components[g],m=p.codingStyleParameters.decompositionLevelsCount,b=[],v=[],y=0;y<=m;y++){var k=n(e,p,y),w={},S=1<<m-y;w.trx0=Math.ceil(p.tcx0/S),w.try0=Math.ceil(p.tcy0/S),w.trx1=Math.ceil(p.tcx1/S),w.try1=Math.ceil(p.tcy1/S),w.resLevel=y,o(e,w,k),b.push(w);var A;if(0===y)(A={}).type="LL",A.tbx0=Math.ceil(p.tcx0/S),A.tby0=Math.ceil(p.tcy0/S),A.tbx1=Math.ceil(p.tcx1/S),A.tby1=Math.ceil(p.tcy1/S),A.resolution=w,s(e,A,k),v.push(A),w.subbands=[A];else{var C=1<<m-y+1,x=[];(A={}).type="HL",A.tbx0=Math.ceil(p.tcx0/C-.5),A.tby0=Math.ceil(p.tcy0/C),A.tbx1=Math.ceil(p.tcx1/C-.5),A.tby1=Math.ceil(p.tcy1/C),A.resolution=w,s(e,A,k),v.push(A),x.push(A),(A={}).type="LH",A.tbx0=Math.ceil(p.tcx0/C),A.tby0=Math.ceil(p.tcy0/C-.5),A.tbx1=Math.ceil(p.tcx1/C),A.tby1=Math.ceil(p.tcy1/C-.5),A.resolution=w,s(e,A,k),v.push(A),x.push(A),(A={}).type="HH",A.tbx0=Math.ceil(p.tcx0/C-.5),A.tby0=Math.ceil(p.tcy0/C-.5),A.tbx1=Math.ceil(p.tcx1/C-.5),A.tby1=Math.ceil(p.tcy1/C-.5),A.resolution=w,s(e,A,k),v.push(A),x.push(A),w.subbands=x}}p.resolutions=b,p.subbands=v}var P=i.codingStyleDefaultParameters.progressionOrder;switch(P){case 0:i.packetsIterator=new l(e);break;case 1:i.packetsIterator=new h(e);break;case 2:i.packetsIterator=new u(e);break;case 3:i.packetsIterator=new d(e);break;case 4:i.packetsIterator=new f(e);break;default:(0,a.error)("JPX Error: Unsupported progression order "+P)}}function b(e,t,r,i){function n(e){for(;u<e;){var a=t[r+h];h++,d?(l=l<<7|a,u+=7,d=!1):(l=l<<8|a,u+=8),255===a&&(d=!0)}return u-=e,l>>>u&(1<<e)-1}function o(e){return 255===t[r+h-1]&&t[r+h]===e?(s(1),!0):255===t[r+h]&&t[r+h+1]===e&&(s(2),!0)}function s(e){h+=e}function c(){u=0,d&&(h++,d=!1)}for(var l,h=0,u=0,d=!1,f=e.currentTile.index,g=e.tiles[f],p=e.COD.sopMarkerUsed,m=e.COD.ephMarkerUsed,b=g.packetsIterator;h<i;){c(),p&&o(145)&&s(4);var v=b.nextPacket();if(n(1)){for(var y,k=v.layerNumber,w=[],S=0,x=v.codeblocks.length;S<x;S++){var P=(y=v.codeblocks[S]).precinct,_=y.cbx-P.cbxMin,T=y.cby-P.cbyMin,I=!1,R=!1;if(void 0!==y.included)I=!!n(1);else{var O,E;if(void 0!==(P=y.precinct).inclusionTree)O=P.inclusionTree;else{var F=P.cbxMax-P.cbxMin+1,L=P.cbyMax-P.cbyMin+1;O=new C(F,L,k),E=new A(F,L),P.inclusionTree=O,P.zeroBitPlanesTree=E}if(O.reset(_,T,k))for(;;){if(!n(1)){O.incrementValue(k);break}if(!O.nextLevel()){y.included=!0,I=R=!0;break}}}if(I){if(R){for((E=P.zeroBitPlanesTree).reset(_,T);;)if(n(1)){if(!E.nextLevel())break}else E.incrementValue();y.zeroBitPlanes=E.value}for(var D=function(){if(0===n(1))return 1;if(0===n(1))return 2;var e=n(2);return e<3?e+3:(e=n(5))<31?e+6:(e=n(7))+37}();n(1);)y.Lblock++;var M=(0,a.log2)(D),B=n((D<1<<M?M-1:M)+y.Lblock);w.push({codeblock:y,codingpasses:D,dataLength:B})}}for(c(),m&&o(146);w.length>0;){var N=w.shift();void 0===(y=N.codeblock).data&&(y.data=[]),y.data.push({data:t,start:r+h,end:r+h+N.dataLength,codingpasses:N.codingpasses}),h+=N.dataLength}}}return h}function v(e,t,r,a,n,o,s,c){for(var l=a.tbx0,h=a.tby0,u=a.tbx1-a.tbx0,d=a.codeblocks,f="H"===a.type.charAt(0)?1:0,g="H"===a.type.charAt(1)?t:0,p=0,m=d.length;p<m;++p){var b=d[p],v=b.tbx1_-b.tbx0_,y=b.tby1_-b.tby0_;if(0!==v&&0!==y&&void 0!==b.data){var k,w;k=new x(v,y,b.subbandType,b.zeroBitPlanes,o),w=2;var S,A,C,P=b.data,_=0,T=0;for(S=0,A=P.length;S<A;S++)_+=(C=P[S]).end-C.start,T+=C.codingpasses;var I=new Uint8Array(_),R=0;for(S=0,A=P.length;S<A;S++){var O=(C=P[S]).data.subarray(C.start,C.end);I.set(O,R),R+=O.length}var E=new i.ArithmeticDecoder(I,0,_);for(k.setDecoder(E),S=0;S<T;S++){switch(w){case 0:k.runSignificancePropagationPass();break;case 1:k.runMagnitudeRefinementPass();break;case 2:k.runCleanupPass(),c&&k.checkSegmentationSymbol()}w=(w+1)%3}var F,L,D,M=b.tbx0_-l+(b.tby0_-h)*u,B=k.coefficentsSign,N=k.coefficentsMagnitude,U=k.bitsDecoded,j=s?0:.5;R=0;var q="LL"!==a.type;for(S=0;S<y;S++){var z=2*(M/u|0)*(t-u)+f+g;for(F=0;F<v;F++){if(0!==(L=N[R])){L=(L+j)*n,0!==B[R]&&(L=-L),D=U[R];var G=q?z+(M<<1):M;e[G]=s&&D>=o?L:L*(1<<o-D)}M++,R++}M+=u-v}}}}function y(e,t,r){for(var a=t.components[r],i=a.codingStyleParameters,n=a.quantizationParameters,o=i.decompositionLevelsCount,s=n.SPqcds,c=n.scalarExpounded,l=n.guardBits,h=i.segmentationSymbolUsed,u=e.components[r].precision,d=i.reversibleTransformation,f=d?new T:new _,g=[],p=0,m=0;m<=o;m++){for(var b=a.resolutions[m],y=b.trx1-b.trx0,k=b.try1-b.try0,w=new Float32Array(y*k),A=0,C=b.subbands.length;A<C;A++){var x,P;c?(x=s[p].mu,P=s[p].epsilon,p++):(x=s[0].mu,P=s[0].epsilon+(m>0?1-m:0));var I=b.subbands[A],R=S[I.type];v(w,y,k,I,d?1:Math.pow(2,u+R-P)*(1+x/2048),l+P-1,d,h)}g.push({width:y,height:k,items:w})}var O=f.calculate(g,a.tcx0,a.tcy0);return{left:a.tcx0,top:a.tcy0,width:O.width,height:O.height,items:O.items}}function k(e){for(var t=e.SIZ,r=e.components,a=t.Csiz,i=[],n=0,o=e.tiles.length;n<o;n++){var s,c=e.tiles[n],l=[];for(s=0;s<a;s++)l[s]=y(e,c,s);var h,u,d,f,g,p,m,b,v,k,w,S,A,C,x,P=l[0],_=new Uint8Array(P.items.length*a),T={left:P.left,top:P.top,width:P.width,height:P.height,items:_},I=0;if(c.codingStyleDefaultParameters.multipleComponentTransform){var R=4===a,O=l[0].items,E=l[1].items,F=l[2].items,L=R?l[3].items:null;u=.5+(128<<(h=r[0].precision-8)),f=-(g=.5*(d=255*(1<<h)));var D=c.components[0],M=a-3;if(m=O.length,D.codingStyleParameters.reversibleTransformation)for(p=0;p<m;p++,I+=M)b=O[p]+u,v=E[p],w=(S=b-((k=F[p])+v>>2))+k,A=S+v,_[I++]=w<=0?0:w>=d?255:w>>h,_[I++]=S<=0?0:S>=d?255:S>>h,_[I++]=A<=0?0:A>=d?255:A>>h;else for(p=0;p<m;p++,I+=M)b=O[p]+u,v=E[p],w=b+1.402*(k=F[p]),S=b-.34413*v-.71414*k,A=b+1.772*v,_[I++]=w<=0?0:w>=d?255:w>>h,_[I++]=S<=0?0:S>=d?255:S>>h,_[I++]=A<=0?0:A>=d?255:A>>h;if(R)for(p=0,I=3;p<m;p++,I+=4)C=L[p],_[I]=C<=f?0:C>=g?255:C+u>>h}else for(s=0;s<a;s++){var B=l[s].items;for(u=.5+(128<<(h=r[s].precision-8)),f=-(d=127.5*(1<<h)),I=s,p=0,m=B.length;p<m;p++)x=B[p],_[I]=x<=f?0:x>=d?255:x+u>>h,I+=a}i.push(T)}return i}function w(e,t){for(var r=e.SIZ.Csiz,a=e.tiles[t],i=0;i<r;i++){var n=a.components[i],o=void 0!==e.currentTile.QCC[i]?e.currentTile.QCC[i]:e.currentTile.QCD;n.quantizationParameters=o;var s=void 0!==e.currentTile.COC[i]?e.currentTile.COC[i]:e.currentTile.COD;n.codingStyleParameters=s}a.codingStyleDefaultParameters=e.currentTile.COD}var S={LL:0,LH:1,HL:1,HH:2};e.prototype={parse:function(e){if(65359!==(0,a.readUint16)(e,0))for(var t=0,r=e.length;t<r;){var i=8,n=(0,a.readUint32)(e,t),o=(0,a.readUint32)(e,t+4);t+=i,1===n&&(n=4294967296*(0,a.readUint32)(e,t)+(0,a.readUint32)(e,t+4),t+=8,i+=8),0===n&&(n=r-t+i),n<i&&(0,a.error)("JPX Error: Invalid box field size");var s=n-i,c=!0;switch(o){case 1785737832:c=!1;break;case 1668246642:var l=e[t];if(1===l){var h=(0,a.readUint32)(e,t+3);switch(h){case 16:case 17:case 18:break;default:(0,a.warn)("Unknown colorspace "+h)}}else 2===l&&(0,a.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(e,t,t+s);break;case 1783636e3:218793738!==(0,a.readUint32)(e,t)&&(0,a.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var u=String.fromCharCode(o>>24&255,o>>16&255,o>>8&255,255&o);(0,a.warn)("Unsupported header type "+o+" ("+u+")")}c&&(t+=s)}else this.parseCodestream(e,0,e.length)},parseImageProperties:function(e){for(var t=e.getByte();t>=0;)if(65361===(t<<8|(t=e.getByte()))){e.skip(4);var r=e.getInt32()>>>0,i=e.getInt32()>>>0,n=e.getInt32()>>>0,o=e.getInt32()>>>0;e.skip(16);var s=e.getUint16();return this.width=r-n,this.height=i-o,this.componentsCount=s,void(this.bitsPerComponent=8)}(0,a.error)("JPX Error: No size marker found in JPX stream")},parseCodestream:function(e,i,n){var o={},s=!1;try{for(var c=i;c+1<n;){var l=(0,a.readUint16)(e,c);c+=2;var h,u,d,f,g,p,v=0;switch(l){case 65359:o.mainHeader=!0;break;case 65497:break;case 65361:v=(0,a.readUint16)(e,c);var y={};y.Xsiz=(0,a.readUint32)(e,c+4),y.Ysiz=(0,a.readUint32)(e,c+8),y.XOsiz=(0,a.readUint32)(e,c+12),y.YOsiz=(0,a.readUint32)(e,c+16),y.XTsiz=(0,a.readUint32)(e,c+20),y.YTsiz=(0,a.readUint32)(e,c+24),y.XTOsiz=(0,a.readUint32)(e,c+28),y.YTOsiz=(0,a.readUint32)(e,c+32);var S=(0,a.readUint16)(e,c+36);y.Csiz=S;var A=[];h=c+38;for(var C=0;C<S;C++){var x={precision:1+(127&e[h]),isSigned:!!(128&e[h]),XRsiz:e[h+1],YRsiz:e[h+1]};t(x,y),A.push(x)}o.SIZ=y,o.components=A,r(o,A),o.QCC=[],o.COC=[];break;case 65372:v=(0,a.readUint16)(e,c);var P={};switch(h=c+2,31&(u=e[h++])){case 0:f=8,g=!0;break;case 1:f=16,g=!1;break;case 2:f=16,g=!0;break;default:throw new Error("Invalid SQcd value "+u)}for(P.noQuantization=8===f,P.scalarExpounded=g,P.guardBits=u>>5,d=[];h<v+c;){var _={};8===f?(_.epsilon=e[h++]>>3,_.mu=0):(_.epsilon=e[h]>>3,_.mu=(7&e[h])<<8|e[h+1],h+=2),d.push(_)}P.SPqcds=d,o.mainHeader?o.QCD=P:(o.currentTile.QCD=P,o.currentTile.QCC=[]);break;case 65373:v=(0,a.readUint16)(e,c);var T={};h=c+2;var I;switch(o.SIZ.Csiz<257?I=e[h++]:(I=(0,a.readUint16)(e,h),h+=2),31&(u=e[h++])){case 0:f=8,g=!0;break;case 1:f=16,g=!1;break;case 2:f=16,g=!0;break;default:throw new Error("Invalid SQcd value "+u)}for(T.noQuantization=8===f,T.scalarExpounded=g,T.guardBits=u>>5,d=[];h<v+c;)_={},8===f?(_.epsilon=e[h++]>>3,_.mu=0):(_.epsilon=e[h]>>3,_.mu=(7&e[h])<<8|e[h+1],h+=2),d.push(_);T.SPqcds=d,o.mainHeader?o.QCC[I]=T:o.currentTile.QCC[I]=T;break;case 65362:v=(0,a.readUint16)(e,c);var R={};h=c+2;var O=e[h++];R.entropyCoderWithCustomPrecincts=!!(1&O),R.sopMarkerUsed=!!(2&O),R.ephMarkerUsed=!!(4&O),R.progressionOrder=e[h++],R.layersCount=(0,a.readUint16)(e,h),h+=2,R.multipleComponentTransform=e[h++],R.decompositionLevelsCount=e[h++],R.xcb=2+(15&e[h++]),R.ycb=2+(15&e[h++]);var E=e[h++];if(R.selectiveArithmeticCodingBypass=!!(1&E),R.resetContextProbabilities=!!(2&E),R.terminationOnEachCodingPass=!!(4&E),R.verticalyStripe=!!(8&E),R.predictableTermination=!!(16&E),R.segmentationSymbolUsed=!!(32&E),R.reversibleTransformation=e[h++],R.entropyCoderWithCustomPrecincts){for(var F=[];h<v+c;){var L=e[h++];F.push({PPx:15&L,PPy:L>>4})}R.precinctsSizes=F}var D=[];if(R.selectiveArithmeticCodingBypass&&D.push("selectiveArithmeticCodingBypass"),R.resetContextProbabilities&&D.push("resetContextProbabilities"),R.terminationOnEachCodingPass&&D.push("terminationOnEachCodingPass"),R.verticalyStripe&&D.push("verticalyStripe"),R.predictableTermination&&D.push("predictableTermination"),D.length>0)throw s=!0,new Error("Unsupported COD options ("+D.join(", ")+")");o.mainHeader?o.COD=R:(o.currentTile.COD=R,o.currentTile.COC=[]);break;case 65424:v=(0,a.readUint16)(e,c),(p={}).index=(0,a.readUint16)(e,c+2),p.length=(0,a.readUint32)(e,c+4),p.dataEnd=p.length+c-2,p.partIndex=e[c+8],p.partsCount=e[c+9],o.mainHeader=!1,0===p.partIndex&&(p.COD=o.COD,p.COC=o.COC.slice(0),p.QCD=o.QCD,p.QCC=o.QCC.slice(0)),o.currentTile=p;break;case 65427:0===(p=o.currentTile).partIndex&&(w(o,p.index),m(o)),b(o,e,c,v=p.dataEnd-c);break;case 65365:case 65367:case 65368:case 65380:v=(0,a.readUint16)(e,c);break;case 65363:throw new Error("Codestream code 0xFF53 (COC) is not implemented");default:throw new Error("Unknown codestream code: "+l.toString(16))}c+=v}}catch(e){s||this.failOnCorruptedImage?(0,a.error)("JPX Error: "+e.message):(0,a.warn)("JPX: Trying to recover from: "+e.message)}this.tiles=k(o),this.width=o.SIZ.Xsiz-o.SIZ.XOsiz,this.height=o.SIZ.Ysiz-o.SIZ.YOsiz,this.componentsCount=o.SIZ.Csiz}};var A=function(){function e(e,t){var r=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(var i=0;i<r;i++){var n={width:e,height:t,items:[]};this.levels.push(n),e=Math.ceil(e/2),t=Math.ceil(t/2)}}return e.prototype={reset:function(e,t){for(var r,a=0,i=0;a<this.levels.length;){var n=e+t*(r=this.levels[a]).width;if(void 0!==r.items[n]){i=r.items[n];break}r.index=n,e>>=1,t>>=1,a++}a--,(r=this.levels[a]).items[r.index]=i,this.currentLevel=a,delete this.value},incrementValue:function(){var e=this.levels[this.currentLevel];e.items[e.index]++},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return--e<0?(this.value=r,!1):(this.currentLevel=e,t=this.levels[e],t.items[t.index]=r,!0)}},e}(),C=function(){function e(e,t,r){var i=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(var n=0;n<i;n++){for(var o=new Uint8Array(e*t),s=0,c=o.length;s<c;s++)o[s]=r;var l={width:e,height:t,items:o};this.levels.push(l),e=Math.ceil(e/2),t=Math.ceil(t/2)}}return e.prototype={reset:function(e,t,r){for(var a=0;a<this.levels.length;){var i=this.levels[a],n=e+t*i.width;i.index=n;var o=i.items[n];if(255===o)break;if(o>r)return this.currentLevel=a,this.propagateValues(),!1;e>>=1,t>>=1,a++}return this.currentLevel=a-1,!0},incrementValue:function(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()},propagateValues:function(){for(var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];--e>=0;)(t=this.levels[e]).items[t.index]=r},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return t.items[t.index]=255,!(--e<0)&&(this.currentLevel=e,t=this.levels[e],t.items[t.index]=r,!0)}},e}(),x=function(){function e(e,a,n,o,s){this.width=e,this.height=a,this.contextLabelTable="HH"===n?i:"HL"===n?r:t;var c=e*a;this.neighborsSignificance=new Uint8Array(c),this.coefficentsSign=new Uint8Array(c),this.coefficentsMagnitude=s>14?new Uint32Array(c):s>6?new Uint16Array(c):new Uint8Array(c),this.processingFlags=new Uint8Array(c);var l=new Uint8Array(c);if(0!==o)for(var h=0;h<c;h++)l[h]=o;this.bitsDecoded=l,this.reset()}var t=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),r=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),i=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);return e.prototype={setDecoder:function(e){this.decoder=e},reset:function(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[17]=92,this.contexts[18]=6},setNeighborsSignificance:function(e,t,r){var a,i=this.neighborsSignificance,n=this.width,o=this.height,s=t>0,c=t+1<n;e>0&&(a=r-n,s&&(i[a-1]+=16),c&&(i[a+1]+=16),i[a]+=4),e+1<o&&(a=r+n,s&&(i[a-1]+=16),c&&(i[a+1]+=16),i[a]+=4),s&&(i[r-1]+=1),c&&(i[r+1]+=1),i[r]|=128},runSignificancePropagationPass:function(){for(var e=this.decoder,t=this.width,r=this.height,a=this.coefficentsMagnitude,i=this.coefficentsSign,n=this.neighborsSignificance,o=this.processingFlags,s=this.contexts,c=this.contextLabelTable,l=this.bitsDecoded,h=0;h<r;h+=4)for(var u=0;u<t;u++)for(var d=h*t+u,f=0;f<4;f++,d+=t){var g=h+f;if(g>=r)break;if(o[d]&=-2,!a[d]&&n[d]){var p=c[n[d]];if(e.readBit(s,p)){var m=this.decodeSignBit(g,u,d);i[d]=m,a[d]=1,this.setNeighborsSignificance(g,u,d),o[d]|=2}l[d]++,o[d]|=1}}},decodeSignBit:function(e,t,r){var a,i,n,o,s,c,l=this.width,h=this.height,u=this.coefficentsMagnitude,d=this.coefficentsSign;o=t>0&&0!==u[r-1],t+1<l&&0!==u[r+1]?(n=d[r+1],a=o?1-n-(i=d[r-1]):1-n-n):a=o?1-(i=d[r-1])-i:0;var f=3*a;return o=e>0&&0!==u[r-l],e+1<h&&0!==u[r+l]?(n=d[r+l],a=o?1-n-(i=d[r-l])+f:1-n-n+f):a=o?1-(i=d[r-l])-i+f:f,a>=0?(s=9+a,c=this.decoder.readBit(this.contexts,s)):(s=9-a,c=1^this.decoder.readBit(this.contexts,s)),c},runMagnitudeRefinementPass:function(){for(var e,t=this.decoder,r=this.width,a=this.height,i=this.coefficentsMagnitude,n=this.neighborsSignificance,o=this.contexts,s=this.bitsDecoded,c=this.processingFlags,l=r*a,h=4*r,u=0;u<l;u=e){e=Math.min(l,u+h);for(var d=0;d<r;d++)for(var f=u+d;f<e;f+=r)if(i[f]&&0==(1&c[f])){var g=16;0!=(2&c[f])&&(c[f]^=2,g=0===(127&n[f])?15:14);var p=t.readBit(o,g);i[f]=i[f]<<1|p,s[f]++,c[f]|=1}}},runCleanupPass:function(){for(var e,t=this.decoder,r=this.width,a=this.height,i=this.neighborsSignificance,n=this.coefficentsMagnitude,o=this.coefficentsSign,s=this.contexts,c=this.contextLabelTable,l=this.bitsDecoded,h=this.processingFlags,u=r,d=2*r,f=3*r,g=0;g<a;g=e){e=Math.min(g+4,a);for(var p=g*r,m=g+3<a,b=0;b<r;b++){var v,y=p+b,k=0,w=y,S=g;if(m&&0===h[y]&&0===h[y+u]&&0===h[y+d]&&0===h[y+f]&&0===i[y]&&0===i[y+u]&&0===i[y+d]&&0===i[y+f]){if(!t.readBit(s,18)){l[y]++,l[y+u]++,l[y+d]++,l[y+f]++;continue}0!==(k=t.readBit(s,17)<<1|t.readBit(s,17))&&(S=g+k,w+=k*r),v=this.decodeSignBit(S,b,w),o[w]=v,n[w]=1,this.setNeighborsSignificance(S,b,w),h[w]|=2,w=y;for(var A=g;A<=S;A++,w+=r)l[w]++;k++}for(S=g+k;S<e;S++,w+=r)if(!n[w]&&0==(1&h[w])){var C=c[i[w]];1===t.readBit(s,C)&&(v=this.decodeSignBit(S,b,w),o[w]=v,n[w]=1,this.setNeighborsSignificance(S,b,w),h[w]|=2),l[w]++}}}},checkSegmentationSymbol:function(){var e=this.decoder,t=this.contexts;10!==(e.readBit(t,17)<<3|e.readBit(t,17)<<2|e.readBit(t,17)<<1|e.readBit(t,17))&&(0,a.error)("JPX Error: Invalid segmentation symbol")}},e}(),P=function(){function e(){}return e.prototype.calculate=function(e,t,r){for(var a=e[0],i=1,n=e.length;i<n;i++)a=this.iterate(a,e[i],t,r);return a},e.prototype.extend=function(e,t,r){var a=t-1,i=t+1,n=t+r-2,o=t+r;e[a--]=e[i++],e[o++]=e[n--],e[a--]=e[i++],e[o++]=e[n--],e[a--]=e[i++],e[o++]=e[n--],e[a]=e[i],e[o]=e[n]},e.prototype.iterate=function(e,t,r,a){var i,n,o,s,c,l,h=e.width,u=e.height,d=e.items,f=t.width,g=t.height,p=t.items;for(o=0,i=0;i<u;i++)for(s=2*i*f,n=0;n<h;n++,o++,s+=2)p[s]=d[o];d=e.items=null;var m=new Float32Array(f+8);if(1===f){if(0!=(1&r))for(l=0,o=0;l<g;l++,o+=f)p[o]*=.5}else for(l=0,o=0;l<g;l++,o+=f)m.set(p.subarray(o,o+f),4),this.extend(m,4,f),this.filter(m,4,f),p.set(m.subarray(4,4+f),o);var b=16,v=[];for(i=0;i<b;i++)v.push(new Float32Array(g+8));var y,k=0;if(e=4+g,1===g){if(0!=(1&a))for(c=0;c<f;c++)p[c]*=.5}else for(c=0;c<f;c++){if(0===k){for(b=Math.min(f-c,b),o=c,s=4;s<e;o+=f,s++)for(y=0;y<b;y++)v[y][s]=p[o+y];k=b}var w=v[--k];if(this.extend(w,4,g),this.filter(w,4,g),0===k)for(o=c-b+1,s=4;s<e;o+=f,s++)for(y=0;y<b;y++)p[o+y]=v[y][s]}return{width:f,height:g,items:p}},e}(),_=function(){function e(){P.call(this)}return e.prototype=Object.create(P.prototype),e.prototype.filter=function(e,t,r){var a,i,n,o,s=r>>1,c=-1.586134342059924,l=-.052980118572961,h=.882911075530934,u=.443506852043971,d=1.230174104914001;for(a=(t|=0)-3,i=s+4;i--;a+=2)e[a]*=.8128930661159609;for(n=u*e[(a=t-2)-1],i=s+3;i--&&(o=u*e[a+1],e[a]=d*e[a]-n-o,i--);a+=2)n=u*e[(a+=2)+1],e[a]=d*e[a]-n-o;for(n=h*e[(a=t-1)-1],i=s+2;i--&&(o=h*e[a+1],e[a]-=n+o,i--);a+=2)n=h*e[(a+=2)+1],e[a]-=n+o;for(n=l*e[(a=t)-1],i=s+1;i--&&(o=l*e[a+1],e[a]-=n+o,i--);a+=2)n=l*e[(a+=2)+1],e[a]-=n+o;if(0!==s)for(n=c*e[(a=t+1)-1],i=s;i--&&(o=c*e[a+1],e[a]-=n+o,i--);a+=2)n=c*e[(a+=2)+1],e[a]-=n+o},e}(),T=function(){function e(){P.call(this)}return e.prototype=Object.create(P.prototype),e.prototype.filter=function(e,t,r){var a,i,n=r>>1;for(a=t|=0,i=n+1;i--;a+=2)e[a]-=e[a-1]+e[a+1]+2>>2;for(a=t+1,i=n;i--;a+=2)e[a]+=e[a-1]+e[a+1]>>1},e}();return e}();t.JpxImage=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=t.XRef=t.ObjectLoader=t.Catalog=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var r=[],a=!0,i=!1,n=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(e){i=!0,n=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw n}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=r(0),o=r(1),s=r(6),c=r(16),l=r(17),h=r(4),u=function(){function e(e,t,r){this.pdfManager=e,this.xref=t,this.catDict=t.getCatalogObj(),(0,n.assert)((0,o.isDict)(this.catDict),"catalog object is not a dictionary"),this.fontCache=new o.RefSetCache,this.builtInCMapCache=Object.create(null),this.pageKidsCountCache=new o.RefSetCache,this.pageFactory=r,this.pagePromises=[]}return e.prototype={get metadata(){var e=this.catDict.getRaw("Metadata");if(!(0,o.isRef)(e))return(0,n.shadow)(this,"metadata",null);var t,r=!!this.xref.encrypt&&this.xref.encrypt.encryptMetadata,a=this.xref.fetch(e,!r);if(a&&(0,o.isDict)(a.dict)){var i=a.dict.get("Type"),s=a.dict.get("Subtype");if((0,o.isName)(i,"Metadata")&&(0,o.isName)(s,"XML"))try{t=(0,n.stringToUTF8String)((0,n.bytesToString)(a.getBytes()))}catch(e){if(e instanceof n.MissingDataException)throw e;(0,n.info)("Skipping invalid metadata.")}}return(0,n.shadow)(this,"metadata",t)},get toplevelPagesDict(){var e=this.catDict.get("Pages");return(0,n.assert)((0,o.isDict)(e),"invalid top-level pages dictionary"),(0,n.shadow)(this,"toplevelPagesDict",e)},get documentOutline(){var e=null;try{e=this.readDocumentOutline()}catch(e){if(e instanceof n.MissingDataException)throw e;(0,n.warn)("Unable to read document outline")}return(0,n.shadow)(this,"documentOutline",e)},readDocumentOutline:function(){var t=this.catDict.get("Outlines");if(!(0,o.isDict)(t))return null;if(t=t.getRaw("First"),!(0,o.isRef)(t))return null;var r={items:[]},a=[{obj:t,parent:r}],i=new o.RefSet;i.put(t);for(var s=this.xref,c=new Uint8Array(3);a.length>0;){var l=a.shift(),u=s.fetchIfRef(l.obj);if(null!==u){(0,n.assert)(u.has("Title"),"Invalid outline item");var d={url:null,dest:null};e.parseDestDictionary({destDict:u,resultObj:d,docBaseUrl:this.pdfManager.docBaseUrl});var f=u.get("Title"),g=u.get("F")||0,p=u.getArray("C"),m=c;!(0,n.isArray)(p)||3!==p.length||0===p[0]&&0===p[1]&&0===p[2]||(m=h.ColorSpace.singletons.rgb.getRgb(p,0));var b={dest:d.dest,url:d.url,unsafeUrl:d.unsafeUrl,newWindow:d.newWindow,title:(0,n.stringToPDFString)(f),color:m,count:u.get("Count"),bold:!!(2&g),italic:!!(1&g),items:[]};l.parent.items.push(b),t=u.getRaw("First"),(0,o.isRef)(t)&&!i.has(t)&&(a.push({obj:t,parent:b}),i.put(t)),t=u.getRaw("Next"),(0,o.isRef)(t)&&!i.has(t)&&(a.push({obj:t,parent:l.parent}),i.put(t))}}return r.items.length>0?r.items:null},get numPages(){var e=this.toplevelPagesDict.get("Count");return(0,n.assert)((0,n.isInt)(e),"page count in top level pages object is not an integer"),(0,n.shadow)(this,"num",e)},get destinations(){function e(e){return(0,o.isDict)(e)?e.get("D"):e}var t,r,a=this.xref,i={},s=this.catDict.get("Names");if(s&&s.has("Dests")?t=s.getRaw("Dests"):this.catDict.has("Dests")&&(r=this.catDict.get("Dests")),r&&(s=r).forEach(function(t,r){r&&(i[t]=e(r))}),t){var c=new g(t,a).getAll();for(var l in c)i[l]=e(c[l])}return(0,n.shadow)(this,"destinations",i)},getDestination:function(e){function t(e){return(0,o.isDict)(e)?e.get("D"):e}var r,a,i=this.xref,n=null,s=this.catDict.get("Names");if(s&&s.has("Dests")?r=s.getRaw("Dests"):this.catDict.has("Dests")&&(a=this.catDict.get("Dests")),a){var c=a.get(e);c&&(n=t(c))}return r&&(n=t(new g(r,i).get(e))),n},get pageLabels(){var e=null;try{e=this.readPageLabels()}catch(e){if(e instanceof n.MissingDataException)throw e;(0,n.warn)("Unable to read page labels.")}return(0,n.shadow)(this,"pageLabels",e)},readPageLabels:function(){var e=this.catDict.getRaw("PageLabels");if(!e)return null;for(var t=new Array(this.numPages),r=null,a="",i=new p(e,this.xref).getAll(),s="",c=1,l=0,h=this.numPages;l<h;l++){if(l in i){var u=i[l];(0,n.assert)((0,o.isDict)(u),"The PageLabel is not a dictionary.");var d=u.get("Type");(0,n.assert)(!d||(0,o.isName)(d,"PageLabel"),"Invalid type in PageLabel dictionary.");var f=u.get("S");(0,n.assert)(!f||(0,o.isName)(f),"Invalid style in PageLabel dictionary."),r=f?f.name:null;var g=u.get("P");(0,n.assert)(!g||(0,n.isString)(g),"Invalid prefix in PageLabel dictionary."),a=g?(0,n.stringToPDFString)(g):"";var m=u.get("St");(0,n.assert)(!m||(0,n.isInt)(m)&&m>=1,"Invalid start in PageLabel dictionary."),c=m||1}switch(r){case"D":s=c;break;case"R":case"r":s=n.Util.toRoman(c,"r"===r);break;case"A":case"a":for(var b="a"===r?97:65,v=c-1,y=String.fromCharCode(b+v%26),k=[],w=0,S=v/26|0;w<=S;w++)k.push(y);s=k.join("");break;default:(0,n.assert)(!r,'Invalid style "'+r+'" in PageLabel dictionary.')}t[l]=a+s,s="",c++}return t},get attachments(){var e,t=this.xref,r=null,a=this.catDict.get("Names");if(a&&(e=a.getRaw("EmbeddedFiles")),e){var i=new g(e,t).getAll();for(var o in i){var s=new m(i[o],t);r||(r=Object.create(null)),r[(0,n.stringToPDFString)(o)]=s.serializable}}return(0,n.shadow)(this,"attachments",r)},get javaScript(){function e(e){var t=e.get("S");if((0,o.isName)(t,"JavaScript")){var r=e.get("JS");if((0,o.isStream)(r))r=(0,n.bytesToString)(r.getBytes());else if(!(0,n.isString)(r))return;a.push((0,n.stringToPDFString)(r))}}var t=this.xref,r=this.catDict.get("Names"),a=[];if(r&&r.has("JavaScript")){var i=new g(r.getRaw("JavaScript"),t).getAll();for(var s in i){var c=i[s];(0,o.isDict)(c)&&e(c)}}var l=this.catDict.get("OpenAction");if((0,o.isDict)(l,"Action")){var h=l.get("S");if((0,o.isName)(h,"Named")){var u=l.get("N");(0,o.isName)(u,"Print")&&a.push("print({});")}else e(l)}return(0,n.shadow)(this,"javaScript",a)},cleanup:function(){var e=this;this.pageKidsCountCache.clear();var t=[];return this.fontCache.forEach(function(e){t.push(e)}),Promise.all(t).then(function(t){for(var r=0,a=t.length;r<a;r++)delete t[r].dict.translated;e.fontCache.clear(),e.builtInCMapCache=Object.create(null)})},getPage:function(e){var t=this;return e in this.pagePromises||(this.pagePromises[e]=this.getPageDict(e).then(function(r){var a=i(r,2),n=a[0],o=a[1];return t.pageFactory.createPage(e,n,o,t.fontCache,t.builtInCMapCache)})),this.pagePromises[e]},getPageDict:function(e){function t(){for(;i.length;){var h=i.pop();if((0,o.isRef)(h)){if((r=l.get(h))>0&&s+r<e){s+=r;continue}return void c.fetchAsync(h).then(function(r){(0,o.isDict)(r,"Page")||(0,o.isDict)(r)&&!r.has("Kids")?e===s?(h&&!l.has(h)&&l.put(h,1),a.resolve([r,h])):(s++,t()):(i.push(r),t())},a.reject)}(0,n.assert)((0,o.isDict)(h),"page dictionary kid reference points to wrong type of object"),r=h.get("Count");var u=h.objId;if(u&&!l.has(u)&&l.put(u,r),s+r<=e)s+=r;else{var d=h.get("Kids");(0,n.assert)((0,n.isArray)(d),"page dictionary kids object is not an array");for(var f=d.length-1;f>=0;f--)i.push(d[f])}}a.reject("Page index "+e+" not found.")}var r,a=(0,n.createPromiseCapability)(),i=[this.catDict.getRaw("Pages")],s=0,c=this.xref,l=this.pageKidsCountCache;return t(),a.promise},getPageIndex:function(e){function t(t){var r,i=0;return a.fetchAsync(t).then(function(a){if((0,o.isRefsEqual)(t,e)&&!(0,o.isDict)(a,"Page")&&(!(0,o.isDict)(a)||a.has("Type")||!a.has("Contents")))throw new Error("The reference does not point to a /Page Dict.");return a?((0,n.assert)((0,o.isDict)(a),"node must be a Dict."),r=a.getRaw("Parent"),a.getAsync("Parent")):null}).then(function(e){return e?((0,n.assert)((0,o.isDict)(e),"parent must be a Dict."),e.getAsync("Kids")):null}).then(function(e){if(!e)return null;for(var s=[],c=!1,l=0;l<e.length;l++){var h=e[l];if((0,n.assert)((0,o.isRef)(h),"kid must be a Ref."),h.num===t.num){c=!0;break}s.push(a.fetchAsync(h).then(function(e){if(e.has("Count")){var t=e.get("Count");i+=t}else i++}))}return c||(0,n.error)("kid ref not found in parents kids"),Promise.all(s).then(function(){return[i,r]})})}function r(e){return t(e).then(function(e){if(!e)return i;var t=e[0],a=e[1];return i+=t,r(a)})}var a=this.xref,i=0;return r(e)}},e.parseDestDictionary=function(e){var t=e.destDict;if((0,o.isDict)(t)){var r=e.resultObj;if("object"===(void 0===r?"undefined":a(r))){var i,s,c=e.docBaseUrl||null,l=t.get("A");if((0,o.isDict)(l)){var h=l.get("S").name;switch(h){case"URI":i=l.get("URI"),(0,o.isName)(i)?i="/"+i.name:(0,n.isString)(i)&&(i=function(e){return 0===e.indexOf("www.")?"http://"+e:e}(i));break;case"GoTo":s=l.get("D");break;case"Launch":case"GoToR":var u=l.get("F");(0,o.isDict)(u)?i=u.get("F")||null:(0,n.isString)(u)&&(i=u);var d=l.get("D");if(d&&((0,o.isName)(d)&&(d=d.name),(0,n.isString)(i))){var f=i.split("#")[0];(0,n.isString)(d)?i=f+"#"+d:(0,n.isArray)(d)&&(i=f+"#"+JSON.stringify(d))}var g=l.get("NewWindow");(0,n.isBool)(g)&&(r.newWindow=g);break;case"Named":var p=l.get("N");(0,o.isName)(p)&&(r.action=p.name);break;case"JavaScript":var m,b=l.get("JS");if((0,o.isStream)(b)?m=(0,n.bytesToString)(b.getBytes()):(0,n.isString)(b)&&(m=b),m){var v=["app.launchURL","window.open"],y=new RegExp("^\\s*("+v.join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec((0,n.stringToPDFString)(m));if(y&&y[2]){i=y[2],"true"===y[3]&&"app.launchURL"===y[1]&&(r.newWindow=!0);break}}default:(0,n.warn)('Catalog_parseDestDictionary: Unrecognized link type "'+h+'".')}}else t.has("Dest")&&(s=t.get("Dest"));if((0,n.isString)(i)){i=function(e){try{return(0,n.stringToUTF8String)(e)}catch(t){return e}}(i);var k=(0,n.createValidAbsoluteUrl)(i,c);k&&(r.url=k.href),r.unsafeUrl=i}s&&((0,o.isName)(s)&&(s=s.name),((0,n.isString)(s)||(0,n.isArray)(s))&&(r.dest=s))}else(0,n.warn)('Catalog_parseDestDictionary: "resultObj" must be an object.')}else(0,n.warn)('Catalog_parseDestDictionary: "destDict" must be a dictionary.')},e}(),d=function(){function e(e,t){this.stream=e,this.pdfManager=t,this.entries=[],this.xrefstms=Object.create(null),this.cache=[],this.stats={streamTypes:[],fontTypes:[]}}return e.prototype={setStartXRef:function(e){this.startXRefQueue=[e]},parse:function(e){var t;e?((0,n.warn)("Indexing all PDF objects"),t=this.indexObjects()):t=this.readXRef(),t.assignXref(this),this.trailer=t;var r=t.get("Encrypt");if((0,o.isDict)(r)){var a=t.get("ID"),i=a&&a.length?a[0]:"";r.suppressEncryption=!0,this.encrypt=new l.CipherTransformFactory(r,i,this.pdfManager.password)}(this.root=t.get("Root"))||(0,n.error)("Invalid root reference")},processXRefTable:function(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});var t=this.readXRefTable(e);(0,o.isCmd)(t,"trailer")||(0,n.error)("Invalid XRef table: could not find trailer dictionary");var r=e.getObj();return!(0,o.isDict)(r)&&r.dict&&(r=r.dict),(0,o.isDict)(r)||(0,n.error)("Invalid XRef table: could not parse trailer dictionary"),delete this.tableState,r},readXRefTable:function(e){var t=e.lexer.stream,r=this.tableState;t.pos=r.streamPos,e.buf1=r.parserBuf1,e.buf2=r.parserBuf2;for(var a;;){if(!("firstEntryNum"in r&&"entryCount"in r)){if((0,o.isCmd)(a=e.getObj(),"trailer"))break;r.firstEntryNum=a,r.entryCount=e.getObj()}var i=r.firstEntryNum,s=r.entryCount;(0,n.isInt)(i)&&(0,n.isInt)(s)||(0,n.error)("Invalid XRef table: wrong types in subsection header");for(var c=r.entryNum;c<s;c++){r.streamPos=t.pos,r.entryNum=c,r.parserBuf1=e.buf1,r.parserBuf2=e.buf2;var l={};l.offset=e.getObj(),l.gen=e.getObj();var h=e.getObj();(0,o.isCmd)(h,"f")?l.free=!0:(0,o.isCmd)(h,"n")&&(l.uncompressed=!0),(0,n.isInt)(l.offset)&&(0,n.isInt)(l.gen)&&(l.free||l.uncompressed)||(0,n.error)("Invalid entry in XRef subsection: "+i+", "+s),0===c&&l.free&&1===i&&(i=0),this.entries[c+i]||(this.entries[c+i]=l)}r.entryNum=0,r.streamPos=t.pos,r.parserBuf1=e.buf1,r.parserBuf2=e.buf2,delete r.firstEntryNum,delete r.entryCount}return this.entries[0]&&!this.entries[0].free&&(0,n.error)("Invalid XRef table: unexpected first object"),a},processXRefStream:function(e){if(!("streamState"in this)){var t=e.dict,r=t.get("W"),a=t.get("Index");a||(a=[0,t.get("Size")]),this.streamState={entryRanges:a,byteWidths:r,entryNum:0,streamPos:e.pos}}return this.readXRefStream(e),delete this.streamState,e.dict},readXRefStream:function(e){var t,r,a=this.streamState;e.pos=a.streamPos;for(var i=a.byteWidths,o=i[0],s=i[1],c=i[2],l=a.entryRanges;l.length>0;){var h=l[0],u=l[1];for((0,n.isInt)(h)&&(0,n.isInt)(u)||(0,n.error)("Invalid XRef range fields: "+h+", "+u),(0,n.isInt)(o)&&(0,n.isInt)(s)&&(0,n.isInt)(c)||(0,n.error)("Invalid XRef entry fields length: "+h+", "+u),t=a.entryNum;t<u;++t){a.entryNum=t,a.streamPos=e.pos;var d=0,f=0,g=0;for(r=0;r<o;++r)d=d<<8|e.getByte();for(0===o&&(d=1),r=0;r<s;++r)f=f<<8|e.getByte();for(r=0;r<c;++r)g=g<<8|e.getByte();var p={};switch(p.offset=f,p.gen=g,d){case 0:p.free=!0;break;case 1:p.uncompressed=!0;break;case 2:break;default:(0,n.error)("Invalid XRef entry type: "+d)}this.entries[h+t]||(this.entries[h+t]=p)}a.entryNum=0,a.streamPos=e.pos,l.splice(0,2)}},indexObjects:function(){function e(e,t,r){for(var a=r.length,i=e.length,n=0;t<i;){for(var o=0;o<a&&e[t+o]===r[o];)++o;if(o>=a)break;t++,n++}return n}var t=10,r=13,a=60,i=/^(\d+)\s+(\d+)\s+obj\b/,c=new Uint8Array([116,114,97,105,108,101,114]),l=new Uint8Array([115,116,97,114,116,120,114,101,102]),h=new Uint8Array([101,110,100,111,98,106]),u=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var d=this.stream;d.pos=0;for(var f=d.getBytes(),g=d.start,p=f.length,m=[],b=[];g<p;){var v=f[g];if(9!==v&&v!==t&&v!==r&&32!==v)if(37!==v){var y,k=function(e,i){for(var n="",o=e[i];o!==t&&o!==r&&o!==a&&!(++i>=e.length);)n+=String.fromCharCode(o),o=e[i];return n}(f,g);if(0!==k.indexOf("xref")||4!==k.length&&!/\s/.test(k[4]))if(y=i.exec(k)){void 0===this.entries[y[1]]&&(this.entries[y[1]]={offset:g-d.start,gen:0|y[2],uncompressed:!0});var w=e(f,g,h)+7,S=f.subarray(g,g+w),A=e(S,0,u);A<w&&S[A+5]<64&&(b.push(g-d.start),this.xrefstms[g-d.start]=1),g+=w}else 0!==k.indexOf("trailer")||7!==k.length&&!/\s/.test(k[7])?g+=k.length+1:(m.push(g),g+=e(f,g,l));else g+=e(f,g,c),m.push(g),g+=e(f,g,l)}else do{if(++g>=p)break;v=f[g]}while(v!==t&&v!==r);else++g}var C,x;for(C=0,x=b.length;C<x;++C)this.startXRefQueue.push(b[C]),this.readXRef(!0);var P;for(C=0,x=m.length;C<x;++C){d.pos=m[C];var _=new s.Parser(new s.Lexer(d),!0,this,!0),T=_.getObj();if((0,o.isCmd)(T,"trailer")&&(P=_.getObj(),(0,o.isDict)(P)&&P.has("ID")))return P}if(P)return P;throw new n.InvalidPDFException("Invalid PDF structure")},readXRef:function(e){var t=this.stream;try{for(;this.startXRefQueue.length;){var r=this.startXRefQueue[0];t.pos=r+t.start;var a,i=new s.Parser(new s.Lexer(t),!0,this),c=i.getObj();if((0,o.isCmd)(c,"xref")){if(a=this.processXRefTable(i),this.topDict||(this.topDict=a),c=a.get("XRefStm"),(0,n.isInt)(c)){var l=c;l in this.xrefstms||(this.xrefstms[l]=1,this.startXRefQueue.push(l))}}else(0,n.isInt)(c)?((0,n.isInt)(i.getObj())&&(0,o.isCmd)(i.getObj(),"obj")&&(0,o.isStream)(c=i.getObj())||(0,n.error)("Invalid XRef stream"),a=this.processXRefStream(c),this.topDict||(this.topDict=a),a||(0,n.error)("Failed to read XRef stream")):(0,n.error)("Invalid XRef stream header");c=a.get("Prev"),(0,n.isInt)(c)?this.startXRefQueue.push(c):(0,o.isRef)(c)&&this.startXRefQueue.push(c.num),this.startXRefQueue.shift()}return this.topDict}catch(e){if(e instanceof n.MissingDataException)throw e;(0,n.info)("(while reading XRef): "+e)}if(!e)throw new n.XRefParseException},getEntry:function(e){var t=this.entries[e];return t&&!t.free&&t.offset?t:null},fetchIfRef:function(e,t){return(0,o.isRef)(e)?this.fetch(e,t):e},fetch:function(e,t){(0,n.assert)((0,o.isRef)(e),"ref object is not a reference");var r=e.num;if(r in this.cache){var a=this.cache[r];return a instanceof o.Dict&&!a.objId&&(a.objId=e.toString()),a}var i=this.getEntry(r);return null===i?this.cache[r]=null:(i=i.uncompressed?this.fetchUncompressed(e,i,t):this.fetchCompressed(i,t),(0,o.isDict)(i)?i.objId=e.toString():(0,o.isStream)(i)&&(i.dict.objId=e.toString()),i)},fetchUncompressed:function(e,t,r){var a=e.gen,i=e.num;t.gen!==a&&(0,n.error)("inconsistent generation in XRef");var c=this.stream.makeSubStream(t.offset+this.stream.start),l=new s.Parser(new s.Lexer(c),!0,this),h=l.getObj(),u=l.getObj(),d=l.getObj();if((0,n.isInt)(h)&&parseInt(h,10)===i&&(0,n.isInt)(u)&&parseInt(u,10)===a&&(0,o.isCmd)(d)||(0,n.error)("bad XRef entry"),!(0,o.isCmd)(d,"obj")){if(0===d.cmd.indexOf("obj")&&(i=parseInt(d.cmd.substring(3),10),!isNaN(i)))return i;(0,n.error)("bad XRef entry")}return t=this.encrypt&&!r?l.getObj(this.encrypt.createCipherTransform(i,a)):l.getObj(),(0,o.isStream)(t)||(this.cache[i]=t),t},fetchCompressed:function(e,t){var r=e.offset,a=this.fetch(new o.Ref(r,0));(0,o.isStream)(a)||(0,n.error)("bad ObjStm stream");var i=a.dict.get("First"),c=a.dict.get("N");(0,n.isInt)(i)&&(0,n.isInt)(c)||(0,n.error)("invalid first and n parameters for ObjStm stream");var l=new s.Parser(new s.Lexer(a),!1,this);l.allowStreams=!0;var h,u,d=[],f=[];for(h=0;h<c;++h){u=l.getObj(),(0,n.isInt)(u)||(0,n.error)("invalid object number in the ObjStm stream: "+u),f.push(u);var g=l.getObj();(0,n.isInt)(g)||(0,n.error)("invalid object offset in the ObjStm stream: "+g)}for(h=0;h<c;++h){d.push(l.getObj()),(0,o.isCmd)(l.buf1,"endobj")&&l.shift(),u=f[h];var p=this.entries[u];p&&p.offset===r&&p.gen===h&&(this.cache[u]=d[h])}return void 0===(e=d[e.gen])&&(0,n.error)("bad XRef entry for compressed object"),e},fetchIfRefAsync:function(e,t){return(0,o.isRef)(e)?this.fetchAsync(e,t):Promise.resolve(e)},fetchAsync:function(e,t){var r=this.stream.manager,a=this;return new Promise(function i(o,s){try{o(a.fetch(e,t))}catch(e){if(e instanceof n.MissingDataException)return void r.requestRange(e.begin,e.end).then(function(){i(o,s)},s);s(e)}})},getCatalogObj:function(){return this.root}},e}(),f=function(){function e(e,t){throw new Error("Cannot initialize NameOrNumberTree.")}return e.prototype={getAll:function(){var e=Object.create(null);if(!this.root)return e;var t=this.xref,r=new o.RefSet;r.put(this.root);for(var a=[this.root];a.length>0;){var i,s,c=t.fetchIfRef(a.shift());if((0,o.isDict)(c))if(c.has("Kids")){var l=c.get("Kids");for(i=0,s=l.length;i<s;i++){var h=l[i];(0,n.assert)(!r.has(h),'Duplicate entry in "'+this._type+'" tree.'),a.push(h),r.put(h)}}else{var u=c.get(this._type);if((0,n.isArray)(u))for(i=0,s=u.length;i<s;i+=2)e[t.fetchIfRef(u[i])]=t.fetchIfRef(u[i+1])}}return e},get:function(e){if(!this.root)return null;for(var t,r,a,i=this.xref,o=i.fetchIfRef(this.root),s=0;o.has("Kids");){if(++s>10)return(0,n.warn)('Search depth limit reached for "'+this._type+'" tree.'),null;var c=o.get("Kids");if(!(0,n.isArray)(c))return null;for(t=0,r=c.length-1;t<=r;){a=t+r>>1;var l=i.fetchIfRef(c[a]).get("Limits");if(e<i.fetchIfRef(l[0]))r=a-1;else{if(!(e>i.fetchIfRef(l[1]))){o=i.fetchIfRef(c[a]);break}t=a+1}}if(t>r)return null}var h=o.get(this._type);if((0,n.isArray)(h))for(t=0,r=h.length-2;t<=r;){a=t+r&-2;var u=i.fetchIfRef(h[a]);if(e<u)r=a-2;else{if(!(e>u))return i.fetchIfRef(h[a+1]);t=a+2}}return null}},e}(),g=function(){function e(e,t){this.root=e,this.xref=t,this._type="Names"}return n.Util.inherit(e,f,{}),e}(),p=function(){function e(e,t){this.root=e,this.xref=t,this._type="Nums"}return n.Util.inherit(e,f,{}),e}(),m=function(){function e(e,t){e&&(0,o.isDict)(e)&&(this.xref=t,this.root=e,e.has("FS")&&(this.fs=e.get("FS")),this.description=e.has("Desc")?(0,n.stringToPDFString)(e.get("Desc")):"",e.has("RF")&&(0,n.warn)("Related file specifications are not supported"),this.contentAvailable=!0,e.has("EF")||(this.contentAvailable=!1,(0,n.warn)("Non-embedded file specifications are not supported")))}function t(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}return e.prototype={get filename(){if(!this._filename&&this.root){var e=t(this.root)||"unnamed";this._filename=(0,n.stringToPDFString)(e).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename},get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=t(this.root.get("EF")));var e=null;if(this.contentRef){var r=this.xref.fetchIfRef(this.contentRef);r&&(0,o.isStream)(r)?e=r.getBytes():(0,n.warn)("Embedded file specification points to non-existing/invalid content")}else(0,n.warn)("Embedded file specification does not have a content");return e},get serializable(){return{filename:this.filename,content:this.content}}},e}(),b=function(){function e(e){return(0,o.isRef)(e)||(0,o.isDict)(e)||(0,n.isArray)(e)||(0,o.isStream)(e)}function t(t,r){var a;if((0,o.isDict)(t)||(0,o.isStream)(t)){var i;i=(0,o.isDict)(t)?t.map:t.dict.map;for(var s in i)e(a=i[s])&&r.push(a)}else if((0,n.isArray)(t))for(var c=0,l=t.length;c<l;c++)e(a=t[c])&&r.push(a)}function r(e,t,r){this.obj=e,this.keys=t,this.xref=r,this.refSet=null,this.capability=null}return r.prototype={load:function(){var e=this.keys;if(this.capability=(0,n.createPromiseCapability)(),!(this.xref.stream instanceof c.ChunkedStream)||0===this.xref.stream.getMissingChunks().length)return this.capability.resolve(),this.capability.promise;this.refSet=new o.RefSet;for(var t=[],r=0;r<e.length;r++)t.push(this.obj[e[r]]);return this._walk(t),this.capability.promise},_walk:function(e){for(var r=this,a=[],i=[];e.length;){var s=e.pop();if((0,o.isRef)(s)){if(this.refSet.has(s))continue;try{var c=s;this.refSet.put(c),s=this.xref.fetch(s)}catch(e){if(!(e instanceof n.MissingDataException))throw e;a.push(s),i.push({begin:e.begin,end:e.end})}}if(s&&s.getBaseStreams){for(var l=s.getBaseStreams(),h=!1,u=0;u<l.length;u++){var d=l[u];d.getMissingChunks&&d.getMissingChunks().length&&(h=!0,i.push({begin:d.start,end:d.end}))}h&&a.push(s)}t(s,e)}i.length?this.xref.stream.manager.requestRanges(i).then(function(){e=a;for(var t=0;t<a.length;t++){var i=a[t];(0,o.isRef)(i)&&r.refSet.remove(i)}r._walk(e)},this.capability.reject):(this.refSet=null,this.capability.resolve())}},r}();t.Catalog=u,t.ObjectLoader=b,t.XRef=d,t.FileSpec=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSupplementalGlyphMapForArialBlack=t.getGlyphMapForStandardFonts=t.getSymbolsFonts=t.getSerifFonts=t.getNonStdFontMap=t.getStdFontMap=void 0;var a=r(0),i=(0,a.getLookupTableFactory)(function(e){e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e.ArialMT="Helvetica",e["Courier-Bold"]="Courier-Bold",e["Courier-BoldItalic"]="Courier-BoldOblique",e["Courier-Italic"]="Courier-Oblique",e.CourierNew="Courier",e["CourierNew-Bold"]="Courier-Bold",e["CourierNew-BoldItalic"]="Courier-BoldOblique",e["CourierNew-Italic"]="Courier-Oblique",e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",e["CourierNewPS-BoldMT"]="Courier-Bold",e["CourierNewPS-ItalicMT"]="Courier-Oblique",e.CourierNewPSMT="Courier",e.Helvetica="Helvetica",e["Helvetica-Bold"]="Helvetica-Bold",e["Helvetica-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="Helvetica-Oblique",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic",e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"}),n=(0,a.getLookupTableFactory)(function(e){e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e.LucidaConsole="Courier",e["LucidaConsole-Bold"]="Courier-Bold",e["LucidaConsole-BoldItalic"]="Courier-BoldOblique",e["LucidaConsole-Italic"]="Courier-Oblique",e["MS-Gothic"]="MS Gothic",e["MS-Gothic-Bold"]="MS Gothic-Bold",e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",e["MS-Gothic-Italic"]="MS Gothic-Italic",e["MS-Mincho"]="MS Mincho",e["MS-Mincho-Bold"]="MS Mincho-Bold",e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",e["MS-Mincho-Italic"]="MS Mincho-Italic",e["MS-PGothic"]="MS PGothic",e["MS-PGothic-Bold"]="MS PGothic-Bold",e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",e["MS-PGothic-Italic"]="MS PGothic-Italic",e["MS-PMincho"]="MS PMincho",e["MS-PMincho-Bold"]="MS PMincho-Bold",e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",e["MS-PMincho-Italic"]="MS PMincho-Italic",e.NuptialScript="Times-Italic",e.Wingdings="ZapfDingbats"}),o=(0,a.getLookupTableFactory)(function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e["Trinité"]=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0}),s=(0,a.getLookupTableFactory)(function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0}),c=(0,a.getLookupTableFactory)(function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[227]=353,e[229]=382,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377}),l=(0,a.getLookupTableFactory)(function(e){e[227]=322,e[264]=261,e[291]=346});t.getStdFontMap=i,t.getNonStdFontMap=n,t.getSerifFonts=o,t.getSymbolsFonts=s,t.getGlyphMapForStandardFonts=c,t.getSupplementalGlyphMapForArialBlack=l},function(e,t,r){"use strict";function a(e){var t=o[13];return e>=t.begin&&e<t.end||(t=o[11],e>=t.begin&&e<t.end)}var i=r(0).getLookupTableFactory,n=i(function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120}),o=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}],s=i(function(e){e["¨"]=" ̈",e["¯"]=" ̄",e["´"]=" ́",e["µ"]="μ",e["¸"]=" ̧",e["IJ"]="IJ",e["ij"]="ij",e["Ŀ"]="L·",e["ŀ"]="l·",e["ʼn"]="ʼn",e["ſ"]="s",e["DŽ"]="DŽ",e["Dž"]="Dž",e["dž"]="dž",e["LJ"]="LJ",e["Lj"]="Lj",e["lj"]="lj",e["NJ"]="NJ",e["Nj"]="Nj",e["nj"]="nj",e["DZ"]="DZ",e["Dz"]="Dz",e["dz"]="dz",e["˘"]=" ̆",e["˙"]=" ̇",e["˚"]=" ̊",e["˛"]=" ̨",e["˜"]=" ̃",e["˝"]=" ̋",e["ͺ"]=" ͅ",e["΄"]=" ́",e["ϐ"]="β",e["ϑ"]="θ",e["ϒ"]="Υ",e["ϕ"]="φ",e["ϖ"]="π",e["ϰ"]="κ",e["ϱ"]="ρ",e["ϲ"]="ς",e["ϴ"]="Θ",e["ϵ"]="ε",e["Ϲ"]="Σ",e["և"]="եւ",e["ٵ"]="اٴ",e["ٶ"]="وٴ",e["ٷ"]="ۇٴ",e["ٸ"]="يٴ",e["ำ"]="ํา",e["ຳ"]="ໍາ",e["ໜ"]="ຫນ",e["ໝ"]="ຫມ",e["ཷ"]="ྲཱྀ",e["ཹ"]="ླཱྀ",e["ẚ"]="aʾ",e["᾽"]=" ̓",e["᾿"]=" ̓",e["῀"]=" ͂",e["῾"]=" ̔",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e["‗"]=" ̳",e["․"]=".",e["‥"]="..",e["…"]="...",e["″"]="′′",e["‴"]="′′′",e["‶"]="‵‵",e["‷"]="‵‵‵",e["‼"]="!!",e["‾"]=" ̅",e["⁇"]="??",e["⁈"]="?!",e["⁉"]="!?",e["⁗"]="′′′′",e[" "]=" ",e["₨"]="Rs",e["℀"]="a/c",e["℁"]="a/s",e["℃"]="°C",e["℅"]="c/o",e["℆"]="c/u",e["ℇ"]="Ɛ",e["℉"]="°F",e["№"]="No",e["℡"]="TEL",e["ℵ"]="א",e["ℶ"]="ב",e["ℷ"]="ג",e["ℸ"]="ד",e["℻"]="FAX",e["Ⅰ"]="I",e["Ⅱ"]="II",e["Ⅲ"]="III",e["Ⅳ"]="IV",e["Ⅴ"]="V",e["Ⅵ"]="VI",e["Ⅶ"]="VII",e["Ⅷ"]="VIII",e["Ⅸ"]="IX",e["Ⅹ"]="X",e["Ⅺ"]="XI",e["Ⅻ"]="XII",e["Ⅼ"]="L",e["Ⅽ"]="C",e["Ⅾ"]="D",e["Ⅿ"]="M",e["ⅰ"]="i",e["ⅱ"]="ii",e["ⅲ"]="iii",e["ⅳ"]="iv",e["ⅴ"]="v",e["ⅵ"]="vi",e["ⅶ"]="vii",e["ⅷ"]="viii",e["ⅸ"]="ix",e["ⅹ"]="x",e["ⅺ"]="xi",e["ⅻ"]="xii",e["ⅼ"]="l",e["ⅽ"]="c",e["ⅾ"]="d",e["ⅿ"]="m",e["∬"]="∫∫",e["∭"]="∫∫∫",e["∯"]="∮∮",e["∰"]="∮∮∮",e["⑴"]="(1)",e["⑵"]="(2)",e["⑶"]="(3)",e["⑷"]="(4)",e["⑸"]="(5)",e["⑹"]="(6)",e["⑺"]="(7)",e["⑻"]="(8)",e["⑼"]="(9)",e["⑽"]="(10)",e["⑾"]="(11)",e["⑿"]="(12)",e["⒀"]="(13)",e["⒁"]="(14)",e["⒂"]="(15)",e["⒃"]="(16)",e["⒄"]="(17)",e["⒅"]="(18)",e["⒆"]="(19)",e["⒇"]="(20)",e["⒈"]="1.",e["⒉"]="2.",e["⒊"]="3.",e["⒋"]="4.",e["⒌"]="5.",e["⒍"]="6.",e["⒎"]="7.",e["⒏"]="8.",e["⒐"]="9.",e["⒑"]="10.",e["⒒"]="11.",e["⒓"]="12.",e["⒔"]="13.",e["⒕"]="14.",e["⒖"]="15.",e["⒗"]="16.",e["⒘"]="17.",e["⒙"]="18.",e["⒚"]="19.",e["⒛"]="20.",e["⒜"]="(a)",e["⒝"]="(b)",e["⒞"]="(c)",e["⒟"]="(d)",e["⒠"]="(e)",e["⒡"]="(f)",e["⒢"]="(g)",e["⒣"]="(h)",e["⒤"]="(i)",e["⒥"]="(j)",e["⒦"]="(k)",e["⒧"]="(l)",e["⒨"]="(m)",e["⒩"]="(n)",e["⒪"]="(o)",e["⒫"]="(p)",e["⒬"]="(q)",e["⒭"]="(r)",e["⒮"]="(s)",e["⒯"]="(t)",e["⒰"]="(u)",e["⒱"]="(v)",e["⒲"]="(w)",e["⒳"]="(x)",e["⒴"]="(y)",e["⒵"]="(z)",e["⨌"]="∫∫∫∫",e["⩴"]="::=",e["⩵"]="==",e["⩶"]="===",e["⺟"]="母",e["⻳"]="龟",e["⼀"]="一",e["⼁"]="丨",e["⼂"]="丶",e["⼃"]="丿",e["⼄"]="乙",e["⼅"]="亅",e["⼆"]="二",e["⼇"]="亠",e["⼈"]="人",e["⼉"]="儿",e["⼊"]="入",e["⼋"]="八",e["⼌"]="冂",e["⼍"]="冖",e["⼎"]="冫",e["⼏"]="几",e["⼐"]="凵",e["⼑"]="刀",e["⼒"]="力",e["⼓"]="勹",e["⼔"]="匕",e["⼕"]="匚",e["⼖"]="匸",e["⼗"]="十",e["⼘"]="卜",e["⼙"]="卩",e["⼚"]="厂",e["⼛"]="厶",e["⼜"]="又",e["⼝"]="口",e["⼞"]="囗",e["⼟"]="土",e["⼠"]="士",e["⼡"]="夂",e["⼢"]="夊",e["⼣"]="夕",e["⼤"]="大",e["⼥"]="女",e["⼦"]="子",e["⼧"]="宀",e["⼨"]="寸",e["⼩"]="小",e["⼪"]="尢",e["⼫"]="尸",e["⼬"]="屮",e["⼭"]="山",e["⼮"]="巛",e["⼯"]="工",e["⼰"]="己",e["⼱"]="巾",e["⼲"]="干",e["⼳"]="幺",e["⼴"]="广",e["⼵"]="廴",e["⼶"]="廾",e["⼷"]="弋",e["⼸"]="弓",e["⼹"]="彐",e["⼺"]="彡",e["⼻"]="彳",e["⼼"]="心",e["⼽"]="戈",e["⼾"]="戶",e["⼿"]="手",e["⽀"]="支",e["⽁"]="攴",e["⽂"]="文",e["⽃"]="斗",e["⽄"]="斤",e["⽅"]="方",e["⽆"]="无",e["⽇"]="日",e["⽈"]="曰",e["⽉"]="月",e["⽊"]="木",e["⽋"]="欠",e["⽌"]="止",e["⽍"]="歹",e["⽎"]="殳",e["⽏"]="毋",e["⽐"]="比",e["⽑"]="毛",e["⽒"]="氏",e["⽓"]="气",e["⽔"]="水",e["⽕"]="火",e["⽖"]="爪",e["⽗"]="父",e["⽘"]="爻",e["⽙"]="爿",e["⽚"]="片",e["⽛"]="牙",e["⽜"]="牛",e["⽝"]="犬",e["⽞"]="玄",e["⽟"]="玉",e["⽠"]="瓜",e["⽡"]="瓦",e["⽢"]="甘",e["⽣"]="生",e["⽤"]="用",e["⽥"]="田",e["⽦"]="疋",e["⽧"]="疒",e["⽨"]="癶",e["⽩"]="白",e["⽪"]="皮",e["⽫"]="皿",e["⽬"]="目",e["⽭"]="矛",e["⽮"]="矢",e["⽯"]="石",e["⽰"]="示",e["⽱"]="禸",e["⽲"]="禾",e["⽳"]="穴",e["⽴"]="立",e["⽵"]="竹",e["⽶"]="米",e["⽷"]="糸",e["⽸"]="缶",e["⽹"]="网",e["⽺"]="羊",e["⽻"]="羽",e["⽼"]="老",e["⽽"]="而",e["⽾"]="耒",e["⽿"]="耳",e["⾀"]="聿",e["⾁"]="肉",e["⾂"]="臣",e["⾃"]="自",e["⾄"]="至",e["⾅"]="臼",e["⾆"]="舌",e["⾇"]="舛",e["⾈"]="舟",e["⾉"]="艮",e["⾊"]="色",e["⾋"]="艸",e["⾌"]="虍",e["⾍"]="虫",e["⾎"]="血",e["⾏"]="行",e["⾐"]="衣",e["⾑"]="襾",e["⾒"]="見",e["⾓"]="角",e["⾔"]="言",e["⾕"]="谷",e["⾖"]="豆",e["⾗"]="豕",e["⾘"]="豸",e["⾙"]="貝",e["⾚"]="赤",e["⾛"]="走",e["⾜"]="足",e["⾝"]="身",e["⾞"]="車",e["⾟"]="辛",e["⾠"]="辰",e["⾡"]="辵",e["⾢"]="邑",e["⾣"]="酉",e["⾤"]="釆",e["⾥"]="里",e["⾦"]="金",e["⾧"]="長",e["⾨"]="門",e["⾩"]="阜",e["⾪"]="隶",e["⾫"]="隹",e["⾬"]="雨",e["⾭"]="靑",e["⾮"]="非",e["⾯"]="面",e["⾰"]="革",e["⾱"]="韋",e["⾲"]="韭",e["⾳"]="音",e["⾴"]="頁",e["⾵"]="風",e["⾶"]="飛",e["⾷"]="食",e["⾸"]="首",e["⾹"]="香",e["⾺"]="馬",e["⾻"]="骨",e["⾼"]="高",e["⾽"]="髟",e["⾾"]="鬥",e["⾿"]="鬯",e["⿀"]="鬲",e["⿁"]="鬼",e["⿂"]="魚",e["⿃"]="鳥",e["⿄"]="鹵",e["⿅"]="鹿",e["⿆"]="麥",e["⿇"]="麻",e["⿈"]="黃",e["⿉"]="黍",e["⿊"]="黑",e["⿋"]="黹",e["⿌"]="黽",e["⿍"]="鼎",e["⿎"]="鼓",e["⿏"]="鼠",e["⿐"]="鼻",e["⿑"]="齊",e["⿒"]="齒",e["⿓"]="龍",e["⿔"]="龜",e["⿕"]="龠",e["〶"]="〒",e["〸"]="十",e["〹"]="卄",e["〺"]="卅",e["゛"]=" ゙",e["゜"]=" ゚",e["ㄱ"]="ᄀ",e["ㄲ"]="ᄁ",e["ㄳ"]="ᆪ",e["ㄴ"]="ᄂ",e["ㄵ"]="ᆬ",e["ㄶ"]="ᆭ",e["ㄷ"]="ᄃ",e["ㄸ"]="ᄄ",e["ㄹ"]="ᄅ",e["ㄺ"]="ᆰ",e["ㄻ"]="ᆱ",e["ㄼ"]="ᆲ",e["ㄽ"]="ᆳ",e["ㄾ"]="ᆴ",e["ㄿ"]="ᆵ",e["ㅀ"]="ᄚ",e["ㅁ"]="ᄆ",e["ㅂ"]="ᄇ",e["ㅃ"]="ᄈ",e["ㅄ"]="ᄡ",e["ㅅ"]="ᄉ",e["ㅆ"]="ᄊ",e["ㅇ"]="ᄋ",e["ㅈ"]="ᄌ",e["ㅉ"]="ᄍ",e["ㅊ"]="ᄎ",e["ㅋ"]="ᄏ",e["ㅌ"]="ᄐ",e["ㅍ"]="ᄑ",e["ㅎ"]="ᄒ",e["ㅏ"]="ᅡ",e["ㅐ"]="ᅢ",e["ㅑ"]="ᅣ",e["ㅒ"]="ᅤ",e["ㅓ"]="ᅥ",e["ㅔ"]="ᅦ",e["ㅕ"]="ᅧ",e["ㅖ"]="ᅨ",e["ㅗ"]="ᅩ",e["ㅘ"]="ᅪ",e["ㅙ"]="ᅫ",e["ㅚ"]="ᅬ",e["ㅛ"]="ᅭ",e["ㅜ"]="ᅮ",e["ㅝ"]="ᅯ",e["ㅞ"]="ᅰ",e["ㅟ"]="ᅱ",e["ㅠ"]="ᅲ",e["ㅡ"]="ᅳ",e["ㅢ"]="ᅴ",e["ㅣ"]="ᅵ",e["ㅤ"]="ᅠ",e["ㅥ"]="ᄔ",e["ㅦ"]="ᄕ",e["ㅧ"]="ᇇ",e["ㅨ"]="ᇈ",e["ㅩ"]="ᇌ",e["ㅪ"]="ᇎ",e["ㅫ"]="ᇓ",e["ㅬ"]="ᇗ",e["ㅭ"]="ᇙ",e["ㅮ"]="ᄜ",e["ㅯ"]="ᇝ",e["ㅰ"]="ᇟ",e["ㅱ"]="ᄝ",e["ㅲ"]="ᄞ",e["ㅳ"]="ᄠ",e["ㅴ"]="ᄢ",e["ㅵ"]="ᄣ",e["ㅶ"]="ᄧ",e["ㅷ"]="ᄩ",e["ㅸ"]="ᄫ",e["ㅹ"]="ᄬ",e["ㅺ"]="ᄭ",e["ㅻ"]="ᄮ",e["ㅼ"]="ᄯ",e["ㅽ"]="ᄲ",e["ㅾ"]="ᄶ",e["ㅿ"]="ᅀ",e["ㆀ"]="ᅇ",e["ㆁ"]="ᅌ",e["ㆂ"]="ᇱ",e["ㆃ"]="ᇲ",e["ㆄ"]="ᅗ",e["ㆅ"]="ᅘ",e["ㆆ"]="ᅙ",e["ㆇ"]="ᆄ",e["ㆈ"]="ᆅ",e["ㆉ"]="ᆈ",e["ㆊ"]="ᆑ",e["ㆋ"]="ᆒ",e["ㆌ"]="ᆔ",e["ㆍ"]="ᆞ",e["ㆎ"]="ᆡ",e["㈀"]="(ᄀ)",e["㈁"]="(ᄂ)",e["㈂"]="(ᄃ)",e["㈃"]="(ᄅ)",e["㈄"]="(ᄆ)",e["㈅"]="(ᄇ)",e["㈆"]="(ᄉ)",e["㈇"]="(ᄋ)",e["㈈"]="(ᄌ)",e["㈉"]="(ᄎ)",e["㈊"]="(ᄏ)",e["㈋"]="(ᄐ)",e["㈌"]="(ᄑ)",e["㈍"]="(ᄒ)",e["㈎"]="(가)",e["㈏"]="(나)",e["㈐"]="(다)",e["㈑"]="(라)",e["㈒"]="(마)",e["㈓"]="(바)",e["㈔"]="(사)",e["㈕"]="(아)",e["㈖"]="(자)",e["㈗"]="(차)",e["㈘"]="(카)",e["㈙"]="(타)",e["㈚"]="(파)",e["㈛"]="(하)",e["㈜"]="(주)",e["㈝"]="(오전)",e["㈞"]="(오후)",e["㈠"]="(一)",e["㈡"]="(二)",e["㈢"]="(三)",e["㈣"]="(四)",e["㈤"]="(五)",e["㈥"]="(六)",e["㈦"]="(七)",e["㈧"]="(八)",e["㈨"]="(九)",e["㈩"]="(十)",e["㈪"]="(月)",e["㈫"]="(火)",e["㈬"]="(水)",e["㈭"]="(木)",e["㈮"]="(金)",e["㈯"]="(土)",e["㈰"]="(日)",e["㈱"]="(株)",e["㈲"]="(有)",e["㈳"]="(社)",e["㈴"]="(名)",e["㈵"]="(特)",e["㈶"]="(財)",e["㈷"]="(祝)",e["㈸"]="(労)",e["㈹"]="(代)",e["㈺"]="(呼)",e["㈻"]="(学)",e["㈼"]="(監)",e["㈽"]="(企)",e["㈾"]="(資)",e["㈿"]="(協)",e["㉀"]="(祭)",e["㉁"]="(休)",e["㉂"]="(自)",e["㉃"]="(至)",e["㋀"]="1月",e["㋁"]="2月",e["㋂"]="3月",e["㋃"]="4月",e["㋄"]="5月",e["㋅"]="6月",e["㋆"]="7月",e["㋇"]="8月",e["㋈"]="9月",e["㋉"]="10月",e["㋊"]="11月",e["㋋"]="12月",e["㍘"]="0点",e["㍙"]="1点",e["㍚"]="2点",e["㍛"]="3点",e["㍜"]="4点",e["㍝"]="5点",e["㍞"]="6点",e["㍟"]="7点",e["㍠"]="8点",e["㍡"]="9点",e["㍢"]="10点",e["㍣"]="11点",e["㍤"]="12点",e["㍥"]="13点",e["㍦"]="14点",e["㍧"]="15点",e["㍨"]="16点",e["㍩"]="17点",e["㍪"]="18点",e["㍫"]="19点",e["㍬"]="20点",e["㍭"]="21点",e["㍮"]="22点",e["㍯"]="23点",e["㍰"]="24点",e["㏠"]="1日",e["㏡"]="2日",e["㏢"]="3日",e["㏣"]="4日",e["㏤"]="5日",e["㏥"]="6日",e["㏦"]="7日",e["㏧"]="8日",e["㏨"]="9日",e["㏩"]="10日",e["㏪"]="11日",e["㏫"]="12日",e["㏬"]="13日",e["㏭"]="14日",e["㏮"]="15日",e["㏯"]="16日",e["㏰"]="17日",e["㏱"]="18日",e["㏲"]="19日",e["㏳"]="20日",e["㏴"]="21日",e["㏵"]="22日",e["㏶"]="23日",e["㏷"]="24日",e["㏸"]="25日",e["㏹"]="26日",e["㏺"]="27日",e["㏻"]="28日",e["㏼"]="29日",e["㏽"]="30日",e["㏾"]="31日",e["ff"]="ff",e["fi"]="fi",e["fl"]="fl",e["ffi"]="ffi",e["ffl"]="ffl",e["ſt"]="ſt",e["st"]="st",e["ﬓ"]="մն",e["ﬔ"]="մե",e["ﬕ"]="մի",e["ﬖ"]="վն",e["ﬗ"]="մխ",e["ﭏ"]="אל",e["ﭐ"]="ٱ",e["ﭑ"]="ٱ",e["ﭒ"]="ٻ",e["ﭓ"]="ٻ",e["ﭔ"]="ٻ",e["ﭕ"]="ٻ",e["ﭖ"]="پ",e["ﭗ"]="پ",e["ﭘ"]="پ",e["ﭙ"]="پ",e["ﭚ"]="ڀ",e["ﭛ"]="ڀ",e["ﭜ"]="ڀ",e["ﭝ"]="ڀ",e["ﭞ"]="ٺ",e["ﭟ"]="ٺ",e["ﭠ"]="ٺ",e["ﭡ"]="ٺ",e["ﭢ"]="ٿ",e["ﭣ"]="ٿ",e["ﭤ"]="ٿ",e["ﭥ"]="ٿ",e["ﭦ"]="ٹ",e["ﭧ"]="ٹ",e["ﭨ"]="ٹ",e["ﭩ"]="ٹ",e["ﭪ"]="ڤ",e["ﭫ"]="ڤ",e["ﭬ"]="ڤ",e["ﭭ"]="ڤ",e["ﭮ"]="ڦ",e["ﭯ"]="ڦ",e["ﭰ"]="ڦ",e["ﭱ"]="ڦ",e["ﭲ"]="ڄ",e["ﭳ"]="ڄ",e["ﭴ"]="ڄ",e["ﭵ"]="ڄ",e["ﭶ"]="ڃ",e["ﭷ"]="ڃ",e["ﭸ"]="ڃ",e["ﭹ"]="ڃ",e["ﭺ"]="چ",e["ﭻ"]="چ",e["ﭼ"]="چ",e["ﭽ"]="چ",e["ﭾ"]="ڇ",e["ﭿ"]="ڇ",e["ﮀ"]="ڇ",e["ﮁ"]="ڇ",e["ﮂ"]="ڍ",e["ﮃ"]="ڍ",e["ﮄ"]="ڌ",e["ﮅ"]="ڌ",e["ﮆ"]="ڎ",e["ﮇ"]="ڎ",e["ﮈ"]="ڈ",e["ﮉ"]="ڈ",e["ﮊ"]="ژ",e["ﮋ"]="ژ",e["ﮌ"]="ڑ",e["ﮍ"]="ڑ",e["ﮎ"]="ک",e["ﮏ"]="ک",e["ﮐ"]="ک",e["ﮑ"]="ک",e["ﮒ"]="گ",e["ﮓ"]="گ",e["ﮔ"]="گ",e["ﮕ"]="گ",e["ﮖ"]="ڳ",e["ﮗ"]="ڳ",e["ﮘ"]="ڳ",e["ﮙ"]="ڳ",e["ﮚ"]="ڱ",e["ﮛ"]="ڱ",e["ﮜ"]="ڱ",e["ﮝ"]="ڱ",e["ﮞ"]="ں",e["ﮟ"]="ں",e["ﮠ"]="ڻ",e["ﮡ"]="ڻ",e["ﮢ"]="ڻ",e["ﮣ"]="ڻ",e["ﮤ"]="ۀ",e["ﮥ"]="ۀ",e["ﮦ"]="ہ",e["ﮧ"]="ہ",e["ﮨ"]="ہ",e["ﮩ"]="ہ",e["ﮪ"]="ھ",e["ﮫ"]="ھ",e["ﮬ"]="ھ",e["ﮭ"]="ھ",e["ﮮ"]="ے",e["ﮯ"]="ے",e["ﮰ"]="ۓ",e["ﮱ"]="ۓ",e["ﯓ"]="ڭ",e["ﯔ"]="ڭ",e["ﯕ"]="ڭ",e["ﯖ"]="ڭ",e["ﯗ"]="ۇ",e["ﯘ"]="ۇ",e["ﯙ"]="ۆ",e["ﯚ"]="ۆ",e["ﯛ"]="ۈ",e["ﯜ"]="ۈ",e["ﯝ"]="ٷ",e["ﯞ"]="ۋ",e["ﯟ"]="ۋ",e["ﯠ"]="ۅ",e["ﯡ"]="ۅ",e["ﯢ"]="ۉ",e["ﯣ"]="ۉ",e["ﯤ"]="ې",e["ﯥ"]="ې",e["ﯦ"]="ې",e["ﯧ"]="ې",e["ﯨ"]="ى",e["ﯩ"]="ى",e["ﯪ"]="ئا",e["ﯫ"]="ئا",e["ﯬ"]="ئە",e["ﯭ"]="ئە",e["ﯮ"]="ئو",e["ﯯ"]="ئو",e["ﯰ"]="ئۇ",e["ﯱ"]="ئۇ",e["ﯲ"]="ئۆ",e["ﯳ"]="ئۆ",e["ﯴ"]="ئۈ",e["ﯵ"]="ئۈ",e["ﯶ"]="ئې";e["ﯷ"]="ئې",e["ﯸ"]="ئې",e["ﯹ"]="ئى",e["ﯺ"]="ئى",e["ﯻ"]="ئى",e["ﯼ"]="ی",e["ﯽ"]="ی",e["ﯾ"]="ی",e["ﯿ"]="ی",e["ﰀ"]="ئج",e["ﰁ"]="ئح",e["ﰂ"]="ئم",e["ﰃ"]="ئى",e["ﰄ"]="ئي",e["ﰅ"]="بج",e["ﰆ"]="بح",e["ﰇ"]="بخ",e["ﰈ"]="بم",e["ﰉ"]="بى",e["ﰊ"]="بي",e["ﰋ"]="تج",e["ﰌ"]="تح",e["ﰍ"]="تخ",e["ﰎ"]="تم",e["ﰏ"]="تى",e["ﰐ"]="تي",e["ﰑ"]="ثج",e["ﰒ"]="ثم",e["ﰓ"]="ثى",e["ﰔ"]="ثي",e["ﰕ"]="جح",e["ﰖ"]="جم",e["ﰗ"]="حج",e["ﰘ"]="حم",e["ﰙ"]="خج",e["ﰚ"]="خح",e["ﰛ"]="خم",e["ﰜ"]="سج",e["ﰝ"]="سح",e["ﰞ"]="سخ",e["ﰟ"]="سم",e["ﰠ"]="صح",e["ﰡ"]="صم",e["ﰢ"]="ضج",e["ﰣ"]="ضح",e["ﰤ"]="ضخ",e["ﰥ"]="ضم",e["ﰦ"]="طح",e["ﰧ"]="طم",e["ﰨ"]="ظم",e["ﰩ"]="عج",e["ﰪ"]="عم",e["ﰫ"]="غج",e["ﰬ"]="غم",e["ﰭ"]="فج",e["ﰮ"]="فح",e["ﰯ"]="فخ",e["ﰰ"]="فم",e["ﰱ"]="فى",e["ﰲ"]="في",e["ﰳ"]="قح",e["ﰴ"]="قم",e["ﰵ"]="قى",e["ﰶ"]="قي",e["ﰷ"]="كا",e["ﰸ"]="كج",e["ﰹ"]="كح",e["ﰺ"]="كخ",e["ﰻ"]="كل",e["ﰼ"]="كم",e["ﰽ"]="كى",e["ﰾ"]="كي",e["ﰿ"]="لج",e["ﱀ"]="لح",e["ﱁ"]="لخ",e["ﱂ"]="لم",e["ﱃ"]="لى",e["ﱄ"]="لي",e["ﱅ"]="مج",e["ﱆ"]="مح",e["ﱇ"]="مخ",e["ﱈ"]="مم",e["ﱉ"]="مى",e["ﱊ"]="مي",e["ﱋ"]="نج",e["ﱌ"]="نح",e["ﱍ"]="نخ",e["ﱎ"]="نم",e["ﱏ"]="نى",e["ﱐ"]="ني",e["ﱑ"]="هج",e["ﱒ"]="هم",e["ﱓ"]="هى",e["ﱔ"]="هي",e["ﱕ"]="يج",e["ﱖ"]="يح",e["ﱗ"]="يخ",e["ﱘ"]="يم",e["ﱙ"]="يى",e["ﱚ"]="يي",e["ﱛ"]="ذٰ",e["ﱜ"]="رٰ",e["ﱝ"]="ىٰ",e["ﱞ"]=" ٌّ",e["ﱟ"]=" ٍّ",e["ﱠ"]=" َّ",e["ﱡ"]=" ُّ",e["ﱢ"]=" ِّ",e["ﱣ"]=" ّٰ",e["ﱤ"]="ئر",e["ﱥ"]="ئز",e["ﱦ"]="ئم",e["ﱧ"]="ئن",e["ﱨ"]="ئى",e["ﱩ"]="ئي",e["ﱪ"]="بر",e["ﱫ"]="بز",e["ﱬ"]="بم",e["ﱭ"]="بن",e["ﱮ"]="بى",e["ﱯ"]="بي",e["ﱰ"]="تر",e["ﱱ"]="تز",e["ﱲ"]="تم",e["ﱳ"]="تن",e["ﱴ"]="تى",e["ﱵ"]="تي",e["ﱶ"]="ثر",e["ﱷ"]="ثز",e["ﱸ"]="ثم",e["ﱹ"]="ثن",e["ﱺ"]="ثى",e["ﱻ"]="ثي",e["ﱼ"]="فى",e["ﱽ"]="في",e["ﱾ"]="قى",e["ﱿ"]="قي",e["ﲀ"]="كا",e["ﲁ"]="كل",e["ﲂ"]="كم",e["ﲃ"]="كى",e["ﲄ"]="كي",e["ﲅ"]="لم",e["ﲆ"]="لى",e["ﲇ"]="لي",e["ﲈ"]="ما",e["ﲉ"]="مم",e["ﲊ"]="نر",e["ﲋ"]="نز",e["ﲌ"]="نم",e["ﲍ"]="نن",e["ﲎ"]="نى",e["ﲏ"]="ني",e["ﲐ"]="ىٰ",e["ﲑ"]="ير",e["ﲒ"]="يز",e["ﲓ"]="يم",e["ﲔ"]="ين",e["ﲕ"]="يى",e["ﲖ"]="يي",e["ﲗ"]="ئج",e["ﲘ"]="ئح",e["ﲙ"]="ئخ",e["ﲚ"]="ئم",e["ﲛ"]="ئه",e["ﲜ"]="بج",e["ﲝ"]="بح",e["ﲞ"]="بخ",e["ﲟ"]="بم",e["ﲠ"]="به",e["ﲡ"]="تج",e["ﲢ"]="تح",e["ﲣ"]="تخ",e["ﲤ"]="تم",e["ﲥ"]="ته",e["ﲦ"]="ثم",e["ﲧ"]="جح",e["ﲨ"]="جم",e["ﲩ"]="حج",e["ﲪ"]="حم",e["ﲫ"]="خج",e["ﲬ"]="خم",e["ﲭ"]="سج",e["ﲮ"]="سح",e["ﲯ"]="سخ",e["ﲰ"]="سم",e["ﲱ"]="صح",e["ﲲ"]="صخ",e["ﲳ"]="صم",e["ﲴ"]="ضج",e["ﲵ"]="ضح",e["ﲶ"]="ضخ",e["ﲷ"]="ضم",e["ﲸ"]="طح",e["ﲹ"]="ظم",e["ﲺ"]="عج",e["ﲻ"]="عم",e["ﲼ"]="غج",e["ﲽ"]="غم",e["ﲾ"]="فج",e["ﲿ"]="فح",e["ﳀ"]="فخ",e["ﳁ"]="فم",e["ﳂ"]="قح",e["ﳃ"]="قم",e["ﳄ"]="كج",e["ﳅ"]="كح",e["ﳆ"]="كخ",e["ﳇ"]="كل",e["ﳈ"]="كم",e["ﳉ"]="لج",e["ﳊ"]="لح",e["ﳋ"]="لخ",e["ﳌ"]="لم",e["ﳍ"]="له",e["ﳎ"]="مج",e["ﳏ"]="مح",e["ﳐ"]="مخ",e["ﳑ"]="مم",e["ﳒ"]="نج",e["ﳓ"]="نح",e["ﳔ"]="نخ",e["ﳕ"]="نم",e["ﳖ"]="نه",e["ﳗ"]="هج",e["ﳘ"]="هم",e["ﳙ"]="هٰ",e["ﳚ"]="يج",e["ﳛ"]="يح",e["ﳜ"]="يخ",e["ﳝ"]="يم",e["ﳞ"]="يه",e["ﳟ"]="ئم",e["ﳠ"]="ئه",e["ﳡ"]="بم",e["ﳢ"]="به",e["ﳣ"]="تم",e["ﳤ"]="ته",e["ﳥ"]="ثم",e["ﳦ"]="ثه",e["ﳧ"]="سم",e["ﳨ"]="سه",e["ﳩ"]="شم",e["ﳪ"]="شه",e["ﳫ"]="كل",e["ﳬ"]="كم",e["ﳭ"]="لم",e["ﳮ"]="نم",e["ﳯ"]="نه",e["ﳰ"]="يم",e["ﳱ"]="يه",e["ﳲ"]="ـَّ",e["ﳳ"]="ـُّ",e["ﳴ"]="ـِّ",e["ﳵ"]="طى",e["ﳶ"]="طي",e["ﳷ"]="عى",e["ﳸ"]="عي",e["ﳹ"]="غى",e["ﳺ"]="غي",e["ﳻ"]="سى",e["ﳼ"]="سي",e["ﳽ"]="شى",e["ﳾ"]="شي",e["ﳿ"]="حى",e["ﴀ"]="حي",e["ﴁ"]="جى",e["ﴂ"]="جي",e["ﴃ"]="خى",e["ﴄ"]="خي",e["ﴅ"]="صى",e["ﴆ"]="صي",e["ﴇ"]="ضى",e["ﴈ"]="ضي",e["ﴉ"]="شج",e["ﴊ"]="شح",e["ﴋ"]="شخ",e["ﴌ"]="شم",e["ﴍ"]="شر",e["ﴎ"]="سر",e["ﴏ"]="صر",e["ﴐ"]="ضر",e["ﴑ"]="طى",e["ﴒ"]="طي",e["ﴓ"]="عى",e["ﴔ"]="عي",e["ﴕ"]="غى",e["ﴖ"]="غي",e["ﴗ"]="سى",e["ﴘ"]="سي",e["ﴙ"]="شى",e["ﴚ"]="شي",e["ﴛ"]="حى",e["ﴜ"]="حي",e["ﴝ"]="جى",e["ﴞ"]="جي",e["ﴟ"]="خى",e["ﴠ"]="خي",e["ﴡ"]="صى",e["ﴢ"]="صي",e["ﴣ"]="ضى",e["ﴤ"]="ضي",e["ﴥ"]="شج",e["ﴦ"]="شح",e["ﴧ"]="شخ",e["ﴨ"]="شم",e["ﴩ"]="شر",e["ﴪ"]="سر",e["ﴫ"]="صر",e["ﴬ"]="ضر",e["ﴭ"]="شج",e["ﴮ"]="شح",e["ﴯ"]="شخ",e["ﴰ"]="شم",e["ﴱ"]="سه",e["ﴲ"]="شه",e["ﴳ"]="طم",e["ﴴ"]="سج",e["ﴵ"]="سح",e["ﴶ"]="سخ",e["ﴷ"]="شج",e["ﴸ"]="شح",e["ﴹ"]="شخ",e["ﴺ"]="طم",e["ﴻ"]="ظم",e["ﴼ"]="اً",e["ﴽ"]="اً",e["ﵐ"]="تجم",e["ﵑ"]="تحج",e["ﵒ"]="تحج",e["ﵓ"]="تحم",e["ﵔ"]="تخم",e["ﵕ"]="تمج",e["ﵖ"]="تمح",e["ﵗ"]="تمخ",e["ﵘ"]="جمح",e["ﵙ"]="جمح",e["ﵚ"]="حمي",e["ﵛ"]="حمى",e["ﵜ"]="سحج",e["ﵝ"]="سجح",e["ﵞ"]="سجى",e["ﵟ"]="سمح",e["ﵠ"]="سمح",e["ﵡ"]="سمج",e["ﵢ"]="سمم",e["ﵣ"]="سمم",e["ﵤ"]="صحح",e["ﵥ"]="صحح",e["ﵦ"]="صمم",e["ﵧ"]="شحم",e["ﵨ"]="شحم",e["ﵩ"]="شجي",e["ﵪ"]="شمخ",e["ﵫ"]="شمخ",e["ﵬ"]="شمم",e["ﵭ"]="شمم",e["ﵮ"]="ضحى",e["ﵯ"]="ضخم",e["ﵰ"]="ضخم",e["ﵱ"]="طمح",e["ﵲ"]="طمح",e["ﵳ"]="طمم",e["ﵴ"]="طمي",e["ﵵ"]="عجم",e["ﵶ"]="عمم",e["ﵷ"]="عمم",e["ﵸ"]="عمى",e["ﵹ"]="غمم",e["ﵺ"]="غمي",e["ﵻ"]="غمى",e["ﵼ"]="فخم",e["ﵽ"]="فخم",e["ﵾ"]="قمح",e["ﵿ"]="قمم",e["ﶀ"]="لحم",e["ﶁ"]="لحي",e["ﶂ"]="لحى",e["ﶃ"]="لجج",e["ﶄ"]="لجج",e["ﶅ"]="لخم",e["ﶆ"]="لخم",e["ﶇ"]="لمح",e["ﶈ"]="لمح",e["ﶉ"]="محج",e["ﶊ"]="محم",e["ﶋ"]="محي",e["ﶌ"]="مجح",e["ﶍ"]="مجم",e["ﶎ"]="مخج",e["ﶏ"]="مخم",e["ﶒ"]="مجخ",e["ﶓ"]="همج",e["ﶔ"]="همم",e["ﶕ"]="نحم",e["ﶖ"]="نحى",e["ﶗ"]="نجم",e["ﶘ"]="نجم",e["ﶙ"]="نجى",e["ﶚ"]="نمي",e["ﶛ"]="نمى",e["ﶜ"]="يمم",e["ﶝ"]="يمم",e["ﶞ"]="بخي",e["ﶟ"]="تجي",e["ﶠ"]="تجى",e["ﶡ"]="تخي",e["ﶢ"]="تخى",e["ﶣ"]="تمي",e["ﶤ"]="تمى",e["ﶥ"]="جمي",e["ﶦ"]="جحى",e["ﶧ"]="جمى",e["ﶨ"]="سخى",e["ﶩ"]="صحي",e["ﶪ"]="شحي",e["ﶫ"]="ضحي",e["ﶬ"]="لجي",e["ﶭ"]="لمي",e["ﶮ"]="يحي",e["ﶯ"]="يجي",e["ﶰ"]="يمي",e["ﶱ"]="ممي",e["ﶲ"]="قمي",e["ﶳ"]="نحي",e["ﶴ"]="قمح",e["ﶵ"]="لحم",e["ﶶ"]="عمي",e["ﶷ"]="كمي",e["ﶸ"]="نجح",e["ﶹ"]="مخي",e["ﶺ"]="لجم",e["ﶻ"]="كمم",e["ﶼ"]="لجم",e["ﶽ"]="نجح",e["ﶾ"]="جحي",e["ﶿ"]="حجي",e["ﷀ"]="مجي",e["ﷁ"]="فمي",e["ﷂ"]="بحي",e["ﷃ"]="كمم",e["ﷄ"]="عجم",e["ﷅ"]="صمم",e["ﷆ"]="سخي",e["ﷇ"]="نجي",e["﹉"]="‾",e["﹊"]="‾",e["﹋"]="‾",e["﹌"]="‾",e["﹍"]="_",e["﹎"]="_",e["﹏"]="_",e["ﺀ"]="ء",e["ﺁ"]="آ",e["ﺂ"]="آ",e["ﺃ"]="أ",e["ﺄ"]="أ",e["ﺅ"]="ؤ",e["ﺆ"]="ؤ",e["ﺇ"]="إ",e["ﺈ"]="إ",e["ﺉ"]="ئ",e["ﺊ"]="ئ",e["ﺋ"]="ئ",e["ﺌ"]="ئ",e["ﺍ"]="ا",e["ﺎ"]="ا",e["ﺏ"]="ب",e["ﺐ"]="ب",e["ﺑ"]="ب",e["ﺒ"]="ب",e["ﺓ"]="ة",e["ﺔ"]="ة",e["ﺕ"]="ت",e["ﺖ"]="ت",e["ﺗ"]="ت",e["ﺘ"]="ت",e["ﺙ"]="ث",e["ﺚ"]="ث",e["ﺛ"]="ث",e["ﺜ"]="ث",e["ﺝ"]="ج",e["ﺞ"]="ج",e["ﺟ"]="ج",e["ﺠ"]="ج",e["ﺡ"]="ح",e["ﺢ"]="ح",e["ﺣ"]="ح",e["ﺤ"]="ح",e["ﺥ"]="خ",e["ﺦ"]="خ",e["ﺧ"]="خ",e["ﺨ"]="خ",e["ﺩ"]="د",e["ﺪ"]="د",e["ﺫ"]="ذ",e["ﺬ"]="ذ",e["ﺭ"]="ر",e["ﺮ"]="ر",e["ﺯ"]="ز",e["ﺰ"]="ز",e["ﺱ"]="س",e["ﺲ"]="س",e["ﺳ"]="س",e["ﺴ"]="س",e["ﺵ"]="ش",e["ﺶ"]="ش",e["ﺷ"]="ش",e["ﺸ"]="ش",e["ﺹ"]="ص",e["ﺺ"]="ص",e["ﺻ"]="ص",e["ﺼ"]="ص",e["ﺽ"]="ض",e["ﺾ"]="ض",e["ﺿ"]="ض",e["ﻀ"]="ض",e["ﻁ"]="ط",e["ﻂ"]="ط",e["ﻃ"]="ط",e["ﻄ"]="ط",e["ﻅ"]="ظ",e["ﻆ"]="ظ",e["ﻇ"]="ظ",e["ﻈ"]="ظ",e["ﻉ"]="ع",e["ﻊ"]="ع",e["ﻋ"]="ع",e["ﻌ"]="ع",e["ﻍ"]="غ",e["ﻎ"]="غ",e["ﻏ"]="غ",e["ﻐ"]="غ",e["ﻑ"]="ف",e["ﻒ"]="ف",e["ﻓ"]="ف",e["ﻔ"]="ف",e["ﻕ"]="ق",e["ﻖ"]="ق",e["ﻗ"]="ق",e["ﻘ"]="ق",e["ﻙ"]="ك",e["ﻚ"]="ك",e["ﻛ"]="ك",e["ﻜ"]="ك",e["ﻝ"]="ل",e["ﻞ"]="ل",e["ﻟ"]="ل",e["ﻠ"]="ل",e["ﻡ"]="م",e["ﻢ"]="م",e["ﻣ"]="م",e["ﻤ"]="م",e["ﻥ"]="ن",e["ﻦ"]="ن",e["ﻧ"]="ن",e["ﻨ"]="ن",e["ﻩ"]="ه",e["ﻪ"]="ه",e["ﻫ"]="ه",e["ﻬ"]="ه",e["ﻭ"]="و",e["ﻮ"]="و",e["ﻯ"]="ى",e["ﻰ"]="ى",e["ﻱ"]="ي",e["ﻲ"]="ي",e["ﻳ"]="ي",e["ﻴ"]="ي",e["ﻵ"]="لآ",e["ﻶ"]="لآ",e["ﻷ"]="لأ",e["ﻸ"]="لأ",e["ﻹ"]="لإ",e["ﻺ"]="لإ",e["ﻻ"]="لا",e["ﻼ"]="لا"});t.mapSpecialUnicodeValues=function(e){return e>=65520&&e<=65535?0:e>=62976&&e<=63743?n()[e]||e:e},t.reverseIfRtl=function(e){var t=e.length;if(t<=1||!a(e.charCodeAt(0)))return e;for(var r="",i=t-1;i>=0;i--)r+=e[i];return r},t.getUnicodeRangeFor=function(e){for(var t=0,r=o.length;t<r;t++){var a=o[t];if(e>=a.begin&&e<a.end)return t}return-1},t.getNormalizedUnicodes=s,t.getUnicodeForGlyph=function(e,t){var r=t[e];if(void 0!==r)return r;if(!e)return-1;if("u"===e[0]){var a,i=e.length;if(7===i&&"n"===e[1]&&"i"===e[2])a=e.substr(3);else{if(!(i>=5&&i<=7))return-1;a=e.substr(1)}if(a===a.toUpperCase()&&(r=parseInt(a,16))>=0)return r}return-1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerMessageHandler=t.WorkerTask=t.setPDFNetworkStreamClass=void 0;var a,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=r(0),o=r(42),s=r(1),c=function(){function e(e){this.name=e,this.terminated=!1,this._capability=(0,n.createPromiseCapability)()}return e.prototype={get finished(){return this._capability.promise},finish:function(){this._capability.resolve()},terminate:function(){this.terminated=!0},ensureNotTerminated:function(){if(this.terminated)throw new Error("Worker task was terminated")}},e}(),l=function(){function e(e,t){this._queuedChunks=[];var r=e.initialData;r&&r.length>0&&this._queuedChunks.push(r),this._msgHandler=t,this._isRangeSupported=!e.disableRange,this._isStreamingSupported=!e.disableStream,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],t.on("OnDataRange",this._onReceiveData.bind(this)),t.on("OnDataProgress",this._onProgress.bind(this))}function t(e,t){this._stream=e,this._done=!1,this._queuedChunks=t||[],this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}function r(e,t,r){this._stream=e,this._begin=t,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return e.prototype={_onReceiveData:function(e){if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(e.chunk):this._queuedChunks.push(e.chunk);else{var t=this._rangeReaders.some(function(t){return t._begin===e.begin&&(t._enqueue(e.chunk),!0)});(0,n.assert)(t)}},_onProgress:function(e){if(this._rangeReaders.length>0){var t=this._rangeReaders[0];t.onProgress&&t.onProgress({loaded:e.loaded})}},_removeRangeReader:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)},getFullReader:function(){(0,n.assert)(!this._fullRequestReader);var e=this._queuedChunks;return this._queuedChunks=null,new t(this,e)},getRangeReader:function(e,t){var a=new r(this,e,t);return this._msgHandler.send("RequestDataRange",{begin:e,end:t}),this._rangeReaders.push(a),a},cancelAllRequests:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeReaders.slice(0).forEach(function(t){t.cancel(e)})}},t.prototype={_enqueue:function(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e))},get headersReady(){return this._headersReady},get isRangeSupported(){return this._stream._isRangeSupported},get isStreamingSupported(){return this._stream._isStreamingSupported},get contentLength(){return this._stream._contentLength},read:function(){if(this._queuedChunks.length>0){var e=this._queuedChunks.shift();return Promise.resolve({value:e,done:!1})}if(this._done)return Promise.resolve({value:void 0,done:!0});var t=(0,n.createPromiseCapability)();return this._requests.push(t),t.promise},cancel:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[]}},r.prototype={_enqueue:function(e){this._done||(0===this._requests.length?this._queuedChunk=e:(this._requests.shift().resolve({value:e,done:!1}),this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))},get isStreamingSupported(){return!1},read:function(){if(this._queuedChunk)return Promise.resolve({value:this._queuedChunk,done:!1});if(this._done)return Promise.resolve({value:void 0,done:!0});var e=(0,n.createPromiseCapability)();return this._requests.push(e),e.promise},cancel:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}},e}(),h={setup:function(e,t){var r=!1;e.on("test",function(t){if(!r)if(r=!0,t instanceof Uint8Array){var a=255===t[0];e.postMessageTransfers=a;var i=new XMLHttpRequest,n="response"in i;try{i.responseType}catch(e){n=!1}n?e.send("test",{supportTypedArray:!0,supportTransfers:a}):e.send("test",!1)}else e.send("test","main",!1)}),e.on("configure",function(e){(0,n.setVerbosityLevel)(e.verbosity)}),e.on("GetDocRequest",function(e){return h.createDocumentHandler(e,t)})},createDocumentHandler:function(e,t){function r(){if(m)throw new Error("Worker was terminated")}function h(e){v.push(e)}function u(e){e.finish();var t=v.indexOf(e);v.splice(t,1)}function d(e){var t=(0,n.createPromiseCapability)(),r=function(){var e=p.ensureDoc("numPages"),r=p.ensureDoc("fingerprint"),i=p.ensureXRef("encrypt");Promise.all([e,r,i]).then(function(e){var r={numPages:e[0],fingerprint:e[1],encrypted:!!e[2]};t.resolve(r)},a)},a=function(e){t.reject(e)};return p.ensureDoc("checkHeader",[]).then(function(){p.ensureDoc("parseStartXRef",[]).then(function(){p.ensureDoc("parse",[e]).then(r,a)},a)},a),t.promise}function f(e,t){var i,s=(0,n.createPromiseCapability)(),c=e.source;if(c.data){try{i=new o.LocalPdfManager(y,c.data,c.password,t,k),s.resolve(i)}catch(e){s.reject(e)}return s.promise}var h;try{c.chunkedViewerLoading?h=new l(c,S):((0,n.assert)(a,"./network module is not loaded"),h=new a(e))}catch(e){return s.reject(e),s.promise}var u=h.getFullReader();u.headersReady.then(function(){if(u.isStreamingSupported&&u.isRangeSupported||(u.onProgress=function(e){S.send("DocProgress",{loaded:e.loaded,total:e.total})}),u.isRangeSupported){var e=c.disableAutoFetch||u.isStreamingSupported;i=new o.NetworkPdfManager(y,h,{msgHandler:S,url:c.url,password:c.password,length:u.contentLength,disableAutoFetch:e,rangeChunkSize:c.rangeChunkSize},t,k),s.resolve(i),b=null}}).catch(function(e){s.reject(e),b=null});var d=[],f=0,g=function(){var e=(0,n.arraysToBytes)(d);c.length&&e.length!==c.length&&(0,n.warn)("reported HTTP length is different from actual");try{i=new o.LocalPdfManager(y,e,c.password,t,k),s.resolve(i)}catch(e){s.reject(e)}d=[]};return new Promise(function(e,t){u.read().then(function e(a){try{if(r(),a.done)return i||g(),void(b=null);var o=a.value;f+=(0,n.arrayByteLength)(o),u.isStreamingSupported||S.send("DocProgress",{loaded:f,total:Math.max(f,u.contentLength||0)}),i?i.sendProgressiveData(o):d.push(o),u.read().then(e,t)}catch(e){t(e)}},t)}).catch(function(e){s.reject(e),b=null}),b=function(){h.cancelAllRequests("abort")},s.promise}function g(e){function t(e){r(),S.send("GetDoc",{pdfInfo:e})}function a(e){if(e instanceof n.PasswordException){var t=new c("PasswordException: response "+e.code);h(t),S.sendWithPromise("PasswordRequest",e).then(function(e){u(t),p.updatePassword(e.password),i()}).catch(function(e){u(t),S.send("PasswordException",e)}.bind(null,e))}else e instanceof n.InvalidPDFException?S.send("InvalidPDF",e):e instanceof n.MissingPDFException?S.send("MissingPDF",e):e instanceof n.UnexpectedResponseException?S.send("UnexpectedResponse",e):S.send("UnknownError",new n.UnknownErrorException(e.message,e.toString()))}function i(){r(),d(!1).then(t,function(e){r(),e instanceof n.XRefParseException?(p.requestLoadedStream(),p.onLoadedStream().then(function(){r(),d(!0).then(t,a)})):a(e)},a)}r(),f(e,{forceDataSchema:e.disableCreateObjectURL,maxImageSize:void 0===e.maxImageSize?-1:e.maxImageSize,disableFontFace:e.disableFontFace,nativeImageDecoderSupport:e.nativeImageDecoderSupport,ignoreErrors:e.ignoreErrors}).then(function(e){if(m)throw e.terminate(),new Error("Worker was terminated");p=e,S.send("PDFManagerReady",null),p.onLoadedStream().then(function(e){S.send("DataLoaded",{length:e.bytes.byteLength})})}).then(i,a)}var p,m=!1,b=null,v=[],y=e.docId,k=e.docBaseUrl,w=e.docId+"_worker",S=new n.MessageHandler(w,y,t);return S.postMessageTransfers=e.postMessageTransfers,S.on("GetPage",function(e){return p.getPage(e.pageIndex).then(function(e){var t=p.ensure(e,"rotate"),r=p.ensure(e,"ref"),a=p.ensure(e,"userUnit"),i=p.ensure(e,"view");return Promise.all([t,r,a,i]).then(function(e){return{rotate:e[0],ref:e[1],userUnit:e[2],view:e[3]}})})}),S.on("GetPageIndex",function(e){var t=new s.Ref(e.ref.num,e.ref.gen);return p.pdfDocument.catalog.getPageIndex(t)}),S.on("GetDestinations",function(e){return p.ensureCatalog("destinations")}),S.on("GetDestination",function(e){return p.ensureCatalog("getDestination",[e.id])}),S.on("GetPageLabels",function(e){return p.ensureCatalog("pageLabels")}),S.on("GetAttachments",function(e){return p.ensureCatalog("attachments")}),S.on("GetJavaScript",function(e){return p.ensureCatalog("javaScript")}),S.on("GetOutline",function(e){return p.ensureCatalog("documentOutline")}),S.on("GetMetadata",function(e){return Promise.all([p.ensureDoc("documentInfo"),p.ensureCatalog("metadata")])}),S.on("GetData",function(e){return p.requestLoadedStream(),p.onLoadedStream().then(function(e){return e.bytes})}),S.on("GetStats",function(e){return p.pdfDocument.xref.stats}),S.on("GetAnnotations",function(e){return p.getPage(e.pageIndex).then(function(t){return p.ensure(t,"getAnnotationsData",[e.intent])})}),S.on("RenderPageRequest",function(e){var t=e.pageIndex;p.getPage(t).then(function(r){var a=new c("RenderPageRequest: page "+t);h(a);var o=t+1,s=Date.now();r.getOperatorList({handler:S,task:a,intent:e.intent,renderInteractiveForms:e.renderInteractiveForms}).then(function(e){u(a),(0,n.info)("page="+o+" - getOperatorList: time="+(Date.now()-s)+"ms, len="+e.totalLength)},function(t){if(u(a),!a.terminated){S.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.unknown});var r,s="worker.js: while trying to getPage() and getOperatorList()";r="string"==typeof t?{message:t,stack:s}:"object"===(void 0===t?"undefined":i(t))?{message:t.message||t.toString(),stack:t.stack||s}:{message:"Unknown exception type: "+(void 0===t?"undefined":i(t)),stack:s},S.send("PageError",{pageNum:o,error:r,intent:e.intent})}})})},this),S.on("GetTextContent",function(e){var t=e.pageIndex;return p.getPage(t).then(function(r){var a=new c("GetTextContent: page "+t);h(a);var i=t+1,o=Date.now();return r.extractTextContent({handler:S,task:a,normalizeWhitespace:e.normalizeWhitespace,combineTextItems:e.combineTextItems}).then(function(e){return u(a),(0,n.info)("text indexing: page="+i+" - time="+(Date.now()-o)+"ms"),e},function(e){if(u(a),!a.terminated)throw e})})}),S.on("Cleanup",function(e){return p.cleanup()}),S.on("Terminate",function(e){m=!0,p&&(p.terminate(),p=null),b&&b();var t=[];return v.forEach(function(e){t.push(e.finished),e.terminate()}),Promise.all(t).then(function(){S.destroy(),S=null})}),S.on("Ready",function(t){g(e),e=null}),w},initializeFromPort:function(e){var t=new n.MessageHandler("worker","main",e);h.setup(t,e),t.send("ready",null)}};"undefined"==typeof window&&!(0,n.isNodeJS)()&&"undefined"!=typeof self&&function(e){return"function"==typeof e.postMessage&&"onmessage"in e}(self)&&h.initializeFromPort(self),t.setPDFNetworkStreamClass=function(e){a=e},t.WorkerTask=c,t.WorkerMessageHandler=h},function(e,t,r){"use strict";function a(e){return e.replace(/>\\376\\377([^<]+)/g,function(e,t){for(var r=t.replace(/\\([0-3])([0-7])([0-7])/g,function(e,t,r,a){return String.fromCharCode(64*t+8*r+1*a)}),a="",i=0;i<r.length;i+=2){var n=256*r.charCodeAt(i)+r.charCodeAt(i+1);a+=n>=32&&n<127&&60!==n&&62!==n&&38!==n?String.fromCharCode(n):"&#x"+(65536+n).toString(16).substring(1)+";"}return">"+a})}function i(e){"string"==typeof e?(e=a(e),e=(new DOMParser).parseFromString(e,"application/xml")):e instanceof Document||(0,n.error)("Metadata: Invalid metadata object"),this.metaDocument=e,this.metadata=Object.create(null),this.parse()}Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var n=r(0);i.prototype={parse:function(){var e=this.metaDocument.documentElement;if("rdf:rdf"!==e.nodeName.toLowerCase())for(e=e.firstChild;e&&"rdf:rdf"!==e.nodeName.toLowerCase();)e=e.nextSibling;var t=e?e.nodeName.toLowerCase():null;if(e&&"rdf:rdf"===t&&e.hasChildNodes()){var r,a,i,n,o,s,c,l=e.childNodes;for(n=0,s=l.length;n<s;n++)if("rdf:description"===(r=l[n]).nodeName.toLowerCase())for(o=0,c=r.childNodes.length;o<c;o++)"#text"!==r.childNodes[o].nodeName.toLowerCase()&&(i=(a=r.childNodes[o]).nodeName.toLowerCase(),this.metadata[i]=a.textContent.trim())}},get:function(e){return this.metadata[e]||null},has:function(e){return void 0!==this.metadata[e]}},t.Metadata=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLUtils=void 0;var a=r(3),i=r(0),n=function(){function e(e,t,r){var a=e.createShader(r);if(e.shaderSource(a,t),e.compileShader(a),!e.getShaderParameter(a,e.COMPILE_STATUS)){var i=e.getShaderInfoLog(a);throw new Error("Error during shader compilation: "+i)}return a}function t(t,r){return e(t,r,t.VERTEX_SHADER)}function r(t,r){return e(t,r,t.FRAGMENT_SHADER)}function n(e,t){for(var r=e.createProgram(),a=0,i=t.length;a<i;++a)e.attachShader(r,t[a]);if(e.linkProgram(r),!e.getProgramParameter(r,e.LINK_STATUS)){var n=e.getProgramInfoLog(r);throw new Error("Error during program linking: "+n)}return r}function o(e,t,r){e.activeTexture(r);var a=e.createTexture();return e.bindTexture(e.TEXTURE_2D,a),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),a}function s(){h||(u=document.createElement("canvas"),h=u.getContext("webgl",{premultipliedalpha:!1}))}function c(){var e,a;s(),e=u,u=null,a=h,h=null;var i=n(a,[t(a,d),r(a,f)]);a.useProgram(i);var o={};o.gl=a,o.canvas=e,o.resolutionLocation=a.getUniformLocation(i,"u_resolution"),o.positionLocation=a.getAttribLocation(i,"a_position"),o.backdropLocation=a.getUniformLocation(i,"u_backdrop"),o.subtypeLocation=a.getUniformLocation(i,"u_subtype");var c=a.getAttribLocation(i,"a_texCoord"),l=a.getUniformLocation(i,"u_image"),p=a.getUniformLocation(i,"u_mask"),m=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,m),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),a.STATIC_DRAW),a.enableVertexAttribArray(c),a.vertexAttribPointer(c,2,a.FLOAT,!1,0,0),a.uniform1i(l,0),a.uniform1i(p,1),g=o}function l(){var e,a;s(),e=u,u=null,a=h,h=null;var i=n(a,[t(a,p),r(a,m)]);a.useProgram(i);var o={};o.gl=a,o.canvas=e,o.resolutionLocation=a.getUniformLocation(i,"u_resolution"),o.scaleLocation=a.getUniformLocation(i,"u_scale"),o.offsetLocation=a.getUniformLocation(i,"u_offset"),o.positionLocation=a.getAttribLocation(i,"a_position"),o.colorLocation=a.getAttribLocation(i,"a_color"),b=o}var h,u,d=" attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",f=" precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",g=null,p=" attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",m=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",b=null;return{get isEnabled(){if((0,a.getDefaultSetting)("disableWebGL"))return!1;var e=!1;try{s(),e=!!h}catch(e){}return(0,i.shadow)(this,"isEnabled",e)},composeSMask:function(e,t,r){var a=e.width,i=e.height;g||c();var n=g,s=n.canvas,l=n.gl;s.width=a,s.height=i,l.viewport(0,0,l.drawingBufferWidth,l.drawingBufferHeight),l.uniform2f(n.resolutionLocation,a,i),r.backdrop?l.uniform4f(n.resolutionLocation,r.backdrop[0],r.backdrop[1],r.backdrop[2],1):l.uniform4f(n.resolutionLocation,0,0,0,0),l.uniform1i(n.subtypeLocation,"Luminosity"===r.subtype?1:0);var h=o(l,e,l.TEXTURE0),u=o(l,t,l.TEXTURE1),d=l.createBuffer();return l.bindBuffer(l.ARRAY_BUFFER,d),l.bufferData(l.ARRAY_BUFFER,new Float32Array([0,0,a,0,0,i,0,i,a,0,a,i]),l.STATIC_DRAW),l.enableVertexAttribArray(n.positionLocation),l.vertexAttribPointer(n.positionLocation,2,l.FLOAT,!1,0,0),l.clearColor(0,0,0,0),l.enable(l.BLEND),l.blendFunc(l.ONE,l.ONE_MINUS_SRC_ALPHA),l.clear(l.COLOR_BUFFER_BIT),l.drawArrays(l.TRIANGLES,0,6),l.flush(),l.deleteTexture(h),l.deleteTexture(u),l.deleteBuffer(d),s},drawFigures:function(e,t,r,a,i){b||l();var n=b,o=n.canvas,s=n.gl;o.width=e,o.height=t,s.viewport(0,0,s.drawingBufferWidth,s.drawingBufferHeight),s.uniform2f(n.resolutionLocation,e,t);var c,h,u,d=0;for(c=0,h=a.length;c<h;c++)switch(a[c].type){case"lattice":d+=((u=a[c].coords.length/a[c].verticesPerRow|0)-1)*(a[c].verticesPerRow-1)*6;break;case"triangles":d+=a[c].coords.length}var f=new Float32Array(2*d),g=new Uint8Array(3*d),p=i.coords,m=i.colors,v=0,y=0;for(c=0,h=a.length;c<h;c++){var k=a[c],w=k.coords,S=k.colors;switch(k.type){case"lattice":var A=k.verticesPerRow;u=w.length/A|0;for(var C=1;C<u;C++)for(var x=C*A+1,P=1;P<A;P++,x++)f[v]=p[w[x-A-1]],f[v+1]=p[w[x-A-1]+1],f[v+2]=p[w[x-A]],f[v+3]=p[w[x-A]+1],f[v+4]=p[w[x-1]],f[v+5]=p[w[x-1]+1],g[y]=m[S[x-A-1]],g[y+1]=m[S[x-A-1]+1],g[y+2]=m[S[x-A-1]+2],g[y+3]=m[S[x-A]],g[y+4]=m[S[x-A]+1],g[y+5]=m[S[x-A]+2],g[y+6]=m[S[x-1]],g[y+7]=m[S[x-1]+1],g[y+8]=m[S[x-1]+2],f[v+6]=f[v+2],f[v+7]=f[v+3],f[v+8]=f[v+4],f[v+9]=f[v+5],f[v+10]=p[w[x]],f[v+11]=p[w[x]+1],g[y+9]=g[y+3],g[y+10]=g[y+4],g[y+11]=g[y+5],g[y+12]=g[y+6],g[y+13]=g[y+7],g[y+14]=g[y+8],g[y+15]=m[S[x]],g[y+16]=m[S[x]+1],g[y+17]=m[S[x]+2],v+=12,y+=18;break;case"triangles":for(var _=0,T=w.length;_<T;_++)f[v]=p[w[_]],f[v+1]=p[w[_]+1],g[y]=m[S[_]],g[y+1]=m[S[_]+1],g[y+2]=m[S[_]+2],v+=2,y+=3}}r?s.clearColor(r[0]/255,r[1]/255,r[2]/255,1):s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT);var I=s.createBuffer();s.bindBuffer(s.ARRAY_BUFFER,I),s.bufferData(s.ARRAY_BUFFER,f,s.STATIC_DRAW),s.enableVertexAttribArray(n.positionLocation),s.vertexAttribPointer(n.positionLocation,2,s.FLOAT,!1,0,0);var R=s.createBuffer();return s.bindBuffer(s.ARRAY_BUFFER,R),s.bufferData(s.ARRAY_BUFFER,g,s.STATIC_DRAW),s.enableVertexAttribArray(n.colorLocation),s.vertexAttribPointer(n.colorLocation,3,s.UNSIGNED_BYTE,!1,0,0),s.uniform2f(n.scaleLocation,i.scaleX,i.scaleY),s.uniform2f(n.offsetLocation,i.offsetX,i.offsetY),s.drawArrays(s.TRIANGLES,0,d),s.flush(),s.deleteBuffer(I),s.deleteBuffer(R),o},clear:function(){g&&g.canvas&&(g.canvas.width=0,g.canvas.height=0),b&&b.canvas&&(b.canvas.width=0,b.canvas.height=0),g=null,b=null}}}();t.WebGLUtils=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFJS=t.isWorker=t.globalScope=void 0;var a=r(10),i=r(3),n=r(0),o=r(9),s=r(24),c=r(12),l=r(11),h="undefined"==typeof window;n.globalScope.PDFJS||(n.globalScope.PDFJS={});var u=n.globalScope.PDFJS;u.version="1.8.456",u.build="8e9b4b5f",u.pdfBug=!1,void 0!==u.verbosity&&(0,n.setVerbosityLevel)(u.verbosity),delete u.verbosity,Object.defineProperty(u,"verbosity",{get:function(){return(0,n.getVerbosityLevel)()},set:function(e){(0,n.setVerbosityLevel)(e)},enumerable:!0,configurable:!0}),u.VERBOSITY_LEVELS=n.VERBOSITY_LEVELS,u.OPS=n.OPS,u.UNSUPPORTED_FEATURES=n.UNSUPPORTED_FEATURES,u.isValidUrl=i.isValidUrl,u.shadow=n.shadow,u.createBlob=n.createBlob,u.createObjectURL=function(e,t){return(0,n.createObjectURL)(e,t,u.disableCreateObjectURL)},Object.defineProperty(u,"isLittleEndian",{configurable:!0,get:function(){return(0,n.shadow)(u,"isLittleEndian",(0,n.isLittleEndian)())}}),u.removeNullCharacters=n.removeNullCharacters,u.PasswordResponses=n.PasswordResponses,u.PasswordException=n.PasswordException,u.UnknownErrorException=n.UnknownErrorException,u.InvalidPDFException=n.InvalidPDFException,u.MissingPDFException=n.MissingPDFException,u.UnexpectedResponseException=n.UnexpectedResponseException,u.Util=n.Util,u.PageViewport=n.PageViewport,u.createPromiseCapability=n.createPromiseCapability,u.maxImageSize=void 0===u.maxImageSize?-1:u.maxImageSize,u.cMapUrl=void 0===u.cMapUrl?null:u.cMapUrl,u.cMapPacked=void 0!==u.cMapPacked&&u.cMapPacked,u.disableFontFace=void 0!==u.disableFontFace&&u.disableFontFace,u.imageResourcesPath=void 0===u.imageResourcesPath?"":u.imageResourcesPath,u.disableWorker=void 0!==u.disableWorker&&u.disableWorker,u.workerSrc=void 0===u.workerSrc?null:u.workerSrc,u.workerPort=void 0===u.workerPort?null:u.workerPort,u.disableRange=void 0!==u.disableRange&&u.disableRange,u.disableStream=void 0!==u.disableStream&&u.disableStream,u.disableAutoFetch=void 0!==u.disableAutoFetch&&u.disableAutoFetch,u.pdfBug=void 0!==u.pdfBug&&u.pdfBug,u.postMessageTransfers=void 0===u.postMessageTransfers||u.postMessageTransfers,u.disableCreateObjectURL=void 0!==u.disableCreateObjectURL&&u.disableCreateObjectURL,u.disableWebGL=void 0===u.disableWebGL||u.disableWebGL,u.externalLinkTarget=void 0===u.externalLinkTarget?i.LinkTarget.NONE:u.externalLinkTarget,u.externalLinkRel=void 0===u.externalLinkRel?i.DEFAULT_LINK_REL:u.externalLinkRel,u.isEvalSupported=void 0===u.isEvalSupported||u.isEvalSupported,u.pdfjsNext=void 0!==u.pdfjsNext&&u.pdfjsNext;var d=u.openExternalLinksInNewWindow;delete u.openExternalLinksInNewWindow,Object.defineProperty(u,"openExternalLinksInNewWindow",{get:function(){return u.externalLinkTarget===i.LinkTarget.BLANK},set:function(e){e&&(0,n.deprecated)('PDFJS.openExternalLinksInNewWindow, please use "PDFJS.externalLinkTarget = PDFJS.LinkTarget.BLANK" instead.'),u.externalLinkTarget===i.LinkTarget.NONE?u.externalLinkTarget=e?i.LinkTarget.BLANK:i.LinkTarget.NONE:(0,n.warn)("PDFJS.externalLinkTarget is already initialized")},enumerable:!0,configurable:!0}),d&&(u.openExternalLinksInNewWindow=d),u.getDocument=a.getDocument,u.LoopbackPort=a.LoopbackPort,u.PDFDataRangeTransport=a.PDFDataRangeTransport,u.PDFWorker=a.PDFWorker,u.hasCanvasTypedArrays=!0,u.CustomStyle=i.CustomStyle,u.LinkTarget=i.LinkTarget,u.addLinkAttributes=i.addLinkAttributes,u.getFilenameFromUrl=i.getFilenameFromUrl,u.isExternalLinkTargetSet=i.isExternalLinkTargetSet,u.AnnotationLayer=o.AnnotationLayer,u.renderTextLayer=c.renderTextLayer,u.Metadata=s.Metadata,u.SVGGraphics=l.SVGGraphics,u.UnsupportedManager=a._UnsupportedManager,t.globalScope=n.globalScope,t.isWorker=h,t.PDFJS=u},function(e,t,r){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e,t){for(var r in t)e[r]=t[r]}(t,function(e){function t(a){if(r[a])return r[a].exports;var i=r[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,r,a){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=7)}([function(e,t,r){function i(e){return"string"==typeof e||"symbol"===(void 0===e?"undefined":o(e))}function n(e,t,r){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}var o="function"==typeof Symbol&&"symbol"===a(Symbol.iterator)?function(e){return void 0===e?"undefined":a(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":a(e)},s=r(1).assert;t.typeIsObject=function(e){return"object"===(void 0===e?"undefined":o(e))&&null!==e||"function"==typeof e},t.createDataProperty=function(e,r,a){s(t.typeIsObject(e)),Object.defineProperty(e,r,{value:a,writable:!0,enumerable:!0,configurable:!0})},t.createArrayFromList=function(e){return e.slice()},t.ArrayBufferCopy=function(e,t,r,a,i){new Uint8Array(e).set(new Uint8Array(r,a,i),t)},t.CreateIterResultObject=function(e,t){s("boolean"==typeof t);var r={};return Object.defineProperty(r,"value",{value:e,enumerable:!0,writable:!0,configurable:!0}),Object.defineProperty(r,"done",{value:t,enumerable:!0,writable:!0,configurable:!0}),r},t.IsFiniteNonNegativeNumber=function(e){return!Number.isNaN(e)&&(e!==1/0&&!(e<0))},t.InvokeOrNoop=function(e,t,r){s(void 0!==e),s(i(t)),s(Array.isArray(r));var a=e[t];if(void 0!==a)return n(a,e,r)},t.PromiseInvokeOrNoop=function(e,r,a){s(void 0!==e),s(i(r)),s(Array.isArray(a));try{return Promise.resolve(t.InvokeOrNoop(e,r,a))}catch(e){return Promise.reject(e)}},t.PromiseInvokeOrPerformFallback=function(e,t,r,a,o){s(void 0!==e),s(i(t)),s(Array.isArray(r)),s(Array.isArray(o));var c=void 0;try{c=e[t]}catch(e){return Promise.reject(e)}if(void 0===c)return a.apply(null,o);try{return Promise.resolve(n(c,e,r))}catch(e){return Promise.reject(e)}},t.TransferArrayBuffer=function(e){return e.slice()},t.ValidateAndNormalizeHighWaterMark=function(e){if(e=Number(e),Number.isNaN(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e},t.ValidateAndNormalizeQueuingStrategy=function(e,r){if(void 0!==e&&"function"!=typeof e)throw new TypeError("size property of a queuing strategy must be a function");return r=t.ValidateAndNormalizeHighWaterMark(r),{size:e,highWaterMark:r}}},function(e,t,r){function a(e){this.name="AssertionError",this.message=e||"",this.stack=(new Error).stack}a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,e.exports={rethrowAssertionErrorRejection:function(e){e&&e.constructor===a&&setTimeout(function(){throw e},0)},AssertionError:a,assert:function(e,t){if(!e)throw new a(t)}}},function(e,t,r){function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return new ve(e)}function n(e){return!!ce(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function o(e){return he(!0===n(e),"IsWritableStreamLocked should only be used on known writable streams"),void 0!==e._writer}function s(e,t){var r=e._state;if("closed"===r)return Promise.resolve(void 0);if("errored"===r)return Promise.reject(e._storedError);var a=new TypeError("Requested to abort");if(void 0!==e._pendingAbortRequest)return Promise.reject(a);he("writable"===r||"erroring"===r,"state must be writable or erroring");var i=!1;"erroring"===r&&(i=!0,t=void 0);var n=new Promise(function(r,a){e._pendingAbortRequest={_resolve:r,_reject:a,_reason:t,_wasAlreadyErroring:i}});return!1===i&&h(e,a),n}function c(e){return he(!0===o(e)),he("writable"===e._state),new Promise(function(t,r){var a={_resolve:t,_reject:r};e._writeRequests.push(a)})}function l(e,t){var r=e._state;"writable"!==r?(he("erroring"===r),u(e)):h(e,t)}function h(e,t){he(void 0===e._storedError,"stream._storedError === undefined"),he("writable"===e._state,"state must be writable");var r=e._writableStreamController;he(void 0!==r,"controller must not be undefined"),e._state="erroring",e._storedError=t;var a=e._writer;void 0!==a&&P(a,t),!1===b(e)&&!0===r._started&&u(e)}function u(e){he("erroring"===e._state,"stream._state === erroring"),he(!1===b(e),"WritableStreamHasOperationMarkedInFlight(stream) === false"),e._state="errored",e._writableStreamController.__errorSteps();for(var t=e._storedError,r=0;r<e._writeRequests.length;r++)e._writeRequests[r]._reject(t);if(e._writeRequests=[],void 0!==e._pendingAbortRequest){var a=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,!0===a._wasAlreadyErroring)return a._reject(t),void k(e);e._writableStreamController.__abortSteps(a._reason).then(function(){a._resolve(),k(e)},function(t){a._reject(t),k(e)})}else k(e)}function d(e){he(void 0!==e._inFlightWriteRequest),e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}function f(e,t){he(void 0!==e._inFlightWriteRequest),e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,he("writable"===e._state||"erroring"===e._state),l(e,t)}function g(e){he(void 0!==e._inFlightCloseRequest),e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0;var t=e._state;he("writable"===t||"erroring"===t),"erroring"===t&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var r=e._writer;void 0!==r&&J(r),he(void 0===e._pendingAbortRequest,"stream._pendingAbortRequest === undefined"),he(void 0===e._storedError,"stream._storedError === undefined")}function p(e,t){he(void 0!==e._inFlightCloseRequest),e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,he("writable"===e._state||"erroring"===e._state),void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),l(e,t)}function m(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function b(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}function v(e){he(void 0===e._inFlightCloseRequest),he(void 0!==e._closeRequest),e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0}function y(e){he(void 0===e._inFlightWriteRequest,"there must be no pending write request"),he(0!==e._writeRequests.length,"writeRequests must not be empty"),e._inFlightWriteRequest=e._writeRequests.shift()}function k(e){he("errored"===e._state,'_stream_.[[state]] is `"errored"`'),void 0!==e._closeRequest&&(he(void 0===e._inFlightCloseRequest),e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&(V(t,e._storedError),t._closedPromise.catch(function(){}))}function w(e,t){he("writable"===e._state),he(!1===m(e));var r=e._writer;void 0!==r&&t!==e._backpressure&&(!0===t?ee(r):(he(!1===t),re(r))),e._backpressure=t}function S(e){return!!ce(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function A(e,t){var r=e._ownerWritableStream;return he(void 0!==r),s(r,t)}function C(e){var t=e._ownerWritableStream;he(void 0!==t);var r=t._state;if("closed"===r||"errored"===r)return Promise.reject(new TypeError("The stream (in "+r+" state) is not in the writable state and cannot be closed"));he("writable"===r||"erroring"===r),he(!1===m(t));var a=new Promise(function(e,r){var a={_resolve:e,_reject:r};t._closeRequest=a});return!0===t._backpressure&&"writable"===r&&re(e),R(t._writableStreamController),a}function x(e,t){"pending"===e._closedPromiseState?V(e,t):Y(e,t),e._closedPromise.catch(function(){})}function P(e,t){"pending"===e._readyPromiseState?$(e,t):te(e,t),e._readyPromise.catch(function(){})}function _(e){var t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:E(t._writableStreamController)}function T(e){var t=e._ownerWritableStream;he(void 0!==t),he(t._writer===e);var r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");P(e,r),x(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function I(e,t){var r=e._ownerWritableStream;he(void 0!==r);var a=r._writableStreamController,i=O(a,t);if(r!==e._ownerWritableStream)return Promise.reject(G("write to"));var n=r._state;if("errored"===n)return Promise.reject(r._storedError);if(!0===m(r)||"closed"===n)return Promise.reject(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===n)return Promise.reject(r._storedError);he("writable"===n);var o=c(r);return F(a,t,i),o}function R(e){ge(e,"close",0),D(e)}function O(e,t){var r=e._strategySize;if(void 0===r)return 1;try{return r(t)}catch(t){return M(e,t),1}}function E(e){return e._strategyHWM-e._queueTotalSize}function F(e,t,r){var a={chunk:t};try{ge(e,a,r)}catch(t){return void M(e,t)}var i=e._controlledWritableStream;!1===m(i)&&"writable"===i._state&&w(i,U(e)),D(e)}function L(e){return!!ce(e)&&!!Object.prototype.hasOwnProperty.call(e,"_underlyingSink")}function D(e){var t=e._controlledWritableStream;if(!1!==e._started&&void 0===t._inFlightWriteRequest){var r=t._state;if("closed"!==r&&"errored"!==r)if("erroring"!==r){if(0!==e._queue.length){var a=pe(e);"close"===a?B(e):N(e,a.chunk)}}else u(t)}}function M(e,t){"writable"===e._controlledWritableStream._state&&j(e,t)}function B(e){var t=e._controlledWritableStream;v(t),fe(e),he(0===e._queue.length,"queue must be empty once the final write record is dequeued"),oe(e._underlyingSink,"close",[]).then(function(){g(t)},function(e){p(t,e)}).catch(ue)}function N(e,t){var r=e._controlledWritableStream;y(r),oe(e._underlyingSink,"write",[t,e]).then(function(){d(r);var t=r._state;if(he("writable"===t||"erroring"===t),fe(e),!1===m(r)&&"writable"===t){var a=U(e);w(r,a)}D(e)},function(e){f(r,e)}).catch(ue)}function U(e){return E(e)<=0}function j(e,t){var r=e._controlledWritableStream;he("writable"===r._state),h(r,t)}function q(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function z(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function G(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function H(e){e._closedPromise=new Promise(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"})}function W(e,t){e._closedPromise=Promise.reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function X(e){e._closedPromise=Promise.resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function V(e,t){he(void 0!==e._closedPromise_resolve,"writer._closedPromise_resolve !== undefined"),he(void 0!==e._closedPromise_reject,"writer._closedPromise_reject !== undefined"),he("pending"===e._closedPromiseState,"writer._closedPromiseState is pending"),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function Y(e,t){he(void 0===e._closedPromise_resolve,"writer._closedPromise_resolve === undefined"),he(void 0===e._closedPromise_reject,"writer._closedPromise_reject === undefined"),he("pending"!==e._closedPromiseState,"writer._closedPromiseState is not pending"),e._closedPromise=Promise.reject(t),e._closedPromiseState="rejected"}function J(e){he(void 0!==e._closedPromise_resolve,"writer._closedPromise_resolve !== undefined"),he(void 0!==e._closedPromise_reject,"writer._closedPromise_reject !== undefined"),he("pending"===e._closedPromiseState,"writer._closedPromiseState is pending"),e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function K(e){e._readyPromise=new Promise(function(t,r){e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function Z(e,t){e._readyPromise=Promise.reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function Q(e){e._readyPromise=Promise.resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function $(e,t){he(void 0!==e._readyPromise_resolve,"writer._readyPromise_resolve !== undefined"),he(void 0!==e._readyPromise_reject,"writer._readyPromise_reject !== undefined"),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function ee(e){he(void 0===e._readyPromise_resolve,"writer._readyPromise_resolve === undefined"),he(void 0===e._readyPromise_reject,"writer._readyPromise_reject === undefined"),e._readyPromise=new Promise(function(t,r){e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function te(e,t){he(void 0===e._readyPromise_resolve,"writer._readyPromise_resolve === undefined"),he(void 0===e._readyPromise_reject,"writer._readyPromise_reject === undefined"),e._readyPromise=Promise.reject(t),e._readyPromiseState="rejected"}function re(e){he(void 0!==e._readyPromise_resolve,"writer._readyPromise_resolve !== undefined"),he(void 0!==e._readyPromise_reject,"writer._readyPromise_reject !== undefined"),e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}var ae=function(){function e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,r,a){return r&&e(t.prototype,r),a&&e(t,a),t}}(),ie=r(0),ne=ie.InvokeOrNoop,oe=ie.PromiseInvokeOrNoop,se=ie.ValidateAndNormalizeQueuingStrategy,ce=ie.typeIsObject,le=r(1),he=le.assert,ue=le.rethrowAssertionErrorRejection,de=r(3),fe=de.DequeueValue,ge=de.EnqueueValueWithSize,pe=de.PeekQueueValue,me=de.ResetQueue,be=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.size,n=r.highWaterMark,o=void 0===n?1:n;if(a(this,e),this._state="writable",this._storedError=void 0,this._writer=void 0,this._writableStreamController=void 0,this._writeRequests=[],this._inFlightWriteRequest=void 0,this._closeRequest=void 0,this._inFlightCloseRequest=void 0,this._pendingAbortRequest=void 0,this._backpressure=!1,void 0!==t.type)throw new RangeError("Invalid type is specified");this._writableStreamController=new ye(this,t,i,o),this._writableStreamController.__startSteps()}return ae(e,[{key:"abort",value:function(e){return!1===n(this)?Promise.reject(q("abort")):!0===o(this)?Promise.reject(new TypeError("Cannot abort a stream that already has a writer")):s(this,e)}},{key:"getWriter",value:function(){if(!1===n(this))throw q("getWriter");return i(this)}},{key:"locked",get:function(){if(!1===n(this))throw q("locked");return o(this)}}]),e}();e.exports={AcquireWritableStreamDefaultWriter:i,IsWritableStream:n,IsWritableStreamLocked:o,WritableStream:be,WritableStreamAbort:s,WritableStreamDefaultControllerError:j,WritableStreamDefaultWriterCloseWithErrorPropagation:function(e){var t=e._ownerWritableStream;he(void 0!==t);var r=t._state;return!0===m(t)||"closed"===r?Promise.resolve():"errored"===r?Promise.reject(t._storedError):(he("writable"===r||"erroring"===r),C(e))},WritableStreamDefaultWriterRelease:T,WritableStreamDefaultWriterWrite:I,WritableStreamCloseQueuedOrInFlight:m};var ve=function(){function e(t){if(a(this,e),!1===n(t))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===o(t))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=t,t._writer=this;var r=t._state;if("writable"===r)!1===m(t)&&!0===t._backpressure?K(this):Q(this),H(this);else if("erroring"===r)Z(this,t._storedError),this._readyPromise.catch(function(){}),H(this);else if("closed"===r)Q(this),X(this);else{he("errored"===r,"state must be errored");var i=t._storedError;Z(this,i),this._readyPromise.catch(function(){}),W(this,i),this._closedPromise.catch(function(){})}}return ae(e,[{key:"abort",value:function(e){return!1===S(this)?Promise.reject(z("abort")):void 0===this._ownerWritableStream?Promise.reject(G("abort")):A(this,e)}},{key:"close",value:function(){if(!1===S(this))return Promise.reject(z("close"));var e=this._ownerWritableStream;return void 0===e?Promise.reject(G("close")):!0===m(e)?Promise.reject(new TypeError("cannot close an already-closing stream")):C(this)}},{key:"releaseLock",value:function(){if(!1===S(this))throw z("releaseLock");var e=this._ownerWritableStream;void 0!==e&&(he(void 0!==e._writer),T(this))}},{key:"write",value:function(e){return!1===S(this)?Promise.reject(z("write")):void 0===this._ownerWritableStream?Promise.reject(G("write to")):I(this,e)}},{key:"closed",get:function(){return!1===S(this)?Promise.reject(z("closed")):this._closedPromise}},{key:"desiredSize",get:function(){if(!1===S(this))throw z("desiredSize");if(void 0===this._ownerWritableStream)throw G("desiredSize");return _(this)}},{key:"ready",get:function(){return!1===S(this)?Promise.reject(z("ready")):this._readyPromise}}]),e}(),ye=function(){function e(t,r,i,o){if(a(this,e),!1===n(t))throw new TypeError("WritableStreamDefaultController can only be constructed with a WritableStream instance");if(void 0!==t._writableStreamController)throw new TypeError("WritableStreamDefaultController instances can only be created by the WritableStream constructor");this._controlledWritableStream=t,this._underlyingSink=r,this._queue=void 0,this._queueTotalSize=void 0,me(this),this._started=!1;var s=se(i,o);this._strategySize=s.size,this._strategyHWM=s.highWaterMark,w(t,U(this))}return ae(e,[{key:"error",value:function(e){if(!1===L(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&j(this,e)}},{key:"__abortSteps",value:function(e){return oe(this._underlyingSink,"abort",[e])}},{key:"__errorSteps",value:function(){me(this)}},{key:"__startSteps",value:function(){var e=this,t=ne(this._underlyingSink,"start",[this]),r=this._controlledWritableStream;Promise.resolve(t).then(function(){he("writable"===r._state||"erroring"===r._state),e._started=!0,D(e)},function(t){he("writable"===r._state||"erroring"===r._state),e._started=!0,l(r,t)}).catch(ue)}}]),e}()},function(e,t,r){var a=r(0).IsFiniteNonNegativeNumber,i=r(1).assert;t.DequeueValue=function(e){i("_queue"in e&&"_queueTotalSize"in e,"Spec-level failure: DequeueValue should only be used on containers with [[queue]] and [[queueTotalSize]]."),i(e._queue.length>0,"Spec-level failure: should never dequeue from an empty queue.");var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value},t.EnqueueValueWithSize=function(e,t,r){if(i("_queue"in e&&"_queueTotalSize"in e,"Spec-level failure: EnqueueValueWithSize should only be used on containers with [[queue]] and [[queueTotalSize]]."),r=Number(r),!a(r))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:r}),e._queueTotalSize+=r},t.PeekQueueValue=function(e){return i("_queue"in e&&"_queueTotalSize"in e,"Spec-level failure: PeekQueueValue should only be used on containers with [[queue]] and [[queueTotalSize]]."),i(e._queue.length>0,"Spec-level failure: should never peek at an empty queue."),e._queue[0].value},t.ResetQueue=function(e){i("_queue"in e&&"_queueTotalSize"in e,"Spec-level failure: ResetQueue should only be used on containers with [[queue]] and [[queueTotalSize]]."),e._queue=[],e._queueTotalSize=0}},function(e,t,r){function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return new et(e)}function n(e){return new $e(e)}function o(e){return!!De(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function s(e){return Be(!0===o(e),"IsReadableStreamLocked should only be used on known readable streams"),void 0!==e._reader}function c(e,t){Be(!0===o(e)),Be("boolean"==typeof t);var r=n(e),a={closedOrErrored:!1,canceled1:!1,canceled2:!1,reason1:void 0,reason2:void 0};a.promise=new Promise(function(e){a._resolve=e});var i=l();i._reader=r,i._teeState=a,i._cloneForBranch2=t;var s=h();s._stream=e,s._teeState=a;var c=u();c._stream=e,c._teeState=a;var d=Object.create(Object.prototype);Le(d,"pull",i),Le(d,"cancel",s);var f=new Qe(d),g=Object.create(Object.prototype);Le(g,"pull",i),Le(g,"cancel",c);var p=new Qe(g);return i._branch1=f._readableStreamController,i._branch2=p._readableStreamController,r._closedPromise.catch(function(e){!0!==a.closedOrErrored&&(D(i._branch1,e),D(i._branch2,e),a.closedOrErrored=!0)}),[f,p]}function l(){function e(){var t=e._reader,r=e._branch1,a=e._branch2,i=e._teeState;return I(t).then(function(e){Be(De(e));var t=e.value,n=e.done;if(Be("boolean"==typeof n),!0===n&&!1===i.closedOrErrored&&(!1===i.canceled1&&F(r),!1===i.canceled2&&F(a),i.closedOrErrored=!0),!0!==i.closedOrErrored){var o=t,s=t;!1===i.canceled1&&L(r,o),!1===i.canceled2&&L(a,s)}})}return e}function h(){function e(t){var r=e._stream,a=e._teeState;if(a.canceled1=!0,a.reason1=t,!0===a.canceled2){var i=g(r,Fe([a.reason1,a.reason2]));a._resolve(i)}return a.promise}return e}function u(){function e(t){var r=e._stream,a=e._teeState;if(a.canceled2=!0,a.reason2=t,!0===a.canceled1){var i=g(r,Fe([a.reason1,a.reason2]));a._resolve(i)}return a.promise}return e}function d(e){return Be(!0===A(e._reader)),Be("readable"===e._state||"closed"===e._state),new Promise(function(t,r){var a={_resolve:t,_reject:r};e._reader._readIntoRequests.push(a)})}function f(e){return Be(!0===C(e._reader)),Be("readable"===e._state),new Promise(function(t,r){var a={_resolve:t,_reject:r};e._reader._readRequests.push(a)})}function g(e,t){return e._disturbed=!0,"closed"===e._state?Promise.resolve(void 0):"errored"===e._state?Promise.reject(e._storedError):(p(e),e._readableStreamController.__cancelSteps(t).then(function(){}))}function p(e){Be("readable"===e._state),e._state="closed";var t=e._reader;if(void 0!==t){if(!0===C(t)){for(var r=0;r<t._readRequests.length;r++)(0,t._readRequests[r]._resolve)(xe(void 0,!0));t._readRequests=[]}me(t)}}function m(e,t){Be(!0===o(e),"stream must be ReadableStream"),Be("readable"===e._state,"state must be readable"),e._state="errored",e._storedError=t;var r=e._reader;if(void 0!==r){if(!0===C(r)){for(var a=0;a<r._readRequests.length;a++)r._readRequests[a]._reject(t);r._readRequests=[]}else{Be(A(r),"reader must be ReadableStreamBYOBReader");for(var i=0;i<r._readIntoRequests.length;i++)r._readIntoRequests[i]._reject(t);r._readIntoRequests=[]}ge(r,t),r._closedPromise.catch(function(){})}}function b(e,t,r){var a=e._reader;Be(a._readIntoRequests.length>0),a._readIntoRequests.shift()._resolve(xe(t,r))}function v(e,t,r){var a=e._reader;Be(a._readRequests.length>0),a._readRequests.shift()._resolve(xe(t,r))}function y(e){return e._reader._readIntoRequests.length}function k(e){return e._reader._readRequests.length}function w(e){var t=e._reader;return void 0!==t&&!1!==A(t)}function S(e){var t=e._reader;return void 0!==t&&!1!==C(t)}function A(e){return!!De(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function C(e){return!!De(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function x(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?ue(e):"closed"===t._state?fe(e):(Be("errored"===t._state,"state must be errored"),de(e,t._storedError),e._closedPromise.catch(function(){}))}function P(e,t){var r=e._ownerReadableStream;return Be(void 0!==r),g(r,t)}function _(e){Be(void 0!==e._ownerReadableStream),Be(e._ownerReadableStream._reader===e),"readable"===e._ownerReadableStream._state?ge(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):pe(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._closedPromise.catch(function(){}),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function T(e,t){var r=e._ownerReadableStream;return Be(void 0!==r),r._disturbed=!0,"errored"===r._state?Promise.reject(r._storedError):K(r._readableStreamController,t)}function I(e){var t=e._ownerReadableStream;return Be(void 0!==t),t._disturbed=!0,"closed"===t._state?Promise.resolve(xe(void 0,!0)):"errored"===t._state?Promise.reject(t._storedError):(Be("readable"===t._state),t._readableStreamController.__pullSteps())}function R(e){return!!De(e)&&!!Object.prototype.hasOwnProperty.call(e,"_underlyingSource")}function O(e){!1!==E(e)&&(!0!==e._pulling?(Be(!1===e._pullAgain),e._pulling=!0,Te(e._underlyingSource,"pull",[e]).then(function(){if(e._pulling=!1,!0===e._pullAgain)return e._pullAgain=!1,O(e)},function(t){M(e,t)}).catch(Ne)):e._pullAgain=!0)}function E(e){var t=e._controlledReadableStream;return"closed"!==t._state&&"errored"!==t._state&&(!0!==e._closeRequested&&(!1!==e._started&&(!0===s(t)&&k(t)>0||B(e)>0)))}function F(e){var t=e._controlledReadableStream;Be(!1===e._closeRequested),Be("readable"===t._state),e._closeRequested=!0,0===e._queue.length&&p(t)}function L(e,t){var r=e._controlledReadableStream;if(Be(!1===e._closeRequested),Be("readable"===r._state),!0===s(r)&&k(r)>0)v(r,t,!1);else{var a=1;if(void 0!==e._strategySize){var i=e._strategySize;try{a=i(t)}catch(t){throw M(e,t),t}}try{qe(e,t,a)}catch(t){throw M(e,t),t}}O(e)}function D(e,t){var r=e._controlledReadableStream;Be("readable"===r._state),ze(e),m(r,t)}function M(e,t){"readable"===e._controlledReadableStream._state&&D(e,t)}function B(e){var t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function N(e){return!!De(e)&&!!Object.prototype.hasOwnProperty.call(e,"_underlyingByteSource")}function U(e){return!!De(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function j(e){!1!==te(e)&&(!0!==e._pulling?(Be(!1===e._pullAgain),e._pulling=!0,Te(e._underlyingByteSource,"pull",[e]).then(function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,j(e))},function(t){"readable"===e._controlledReadableStream._state&&ie(e,t)}).catch(Ne)):e._pullAgain=!0)}function q(e){Y(e),e._pendingPullIntos=[]}function z(e,t){Be("errored"!==e._state,"state must not be errored");var r=!1;"closed"===e._state&&(Be(0===t.bytesFilled),r=!0);var a=G(t);"default"===t.readerType?v(e,a,r):(Be("byob"===t.readerType),b(e,a,r))}function G(e){var t=e.bytesFilled,r=e.elementSize;return Be(t<=e.byteLength),Be(t%r==0),new e.ctor(e.buffer,e.byteOffset,t/r)}function H(e,t,r,a){e._queue.push({buffer:t,byteOffset:r,byteLength:a}),e._queueTotalSize+=a}function W(e,t){var r=t.elementSize,a=t.bytesFilled-t.bytesFilled%r,i=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),n=t.bytesFilled+i,o=n-n%r,s=i,c=!1;o>a&&(s=o-t.bytesFilled,c=!0);for(var l=e._queue;s>0;){var h=l[0],u=Math.min(s,h.byteLength),d=t.byteOffset+t.bytesFilled;Ce(t.buffer,d,h.buffer,h.byteOffset,u),h.byteLength===u?l.shift():(h.byteOffset+=u,h.byteLength-=u),e._queueTotalSize-=u,X(e,u,t),s-=u}return!1===c&&(Be(0===e._queueTotalSize,"queue must be empty"),Be(t.bytesFilled>0),Be(t.bytesFilled<t.elementSize)),c}function X(e,t,r){Be(0===e._pendingPullIntos.length||e._pendingPullIntos[0]===r),Y(e),r.bytesFilled+=t}function V(e){Be("readable"===e._controlledReadableStream._state),0===e._queueTotalSize&&!0===e._closeRequested?p(e._controlledReadableStream):j(e)}function Y(e){void 0!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function J(e){for(Be(!1===e._closeRequested);e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos[0];!0===W(e,t)&&(ee(e),z(e._controlledReadableStream,t))}}function K(e,t){var r=e._controlledReadableStream,a=1;t.constructor!==DataView&&(a=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,n={buffer:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:a,ctor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return n.buffer=Ie(n.buffer),e._pendingPullIntos.push(n),d(r);if("closed"===r._state){var o=new t.constructor(n.buffer,n.byteOffset,0);return Promise.resolve(xe(o,!0))}if(e._queueTotalSize>0){if(!0===W(e,n)){var s=G(n);return V(e),Promise.resolve(xe(s,!1))}if(!0===e._closeRequested){var c=new TypeError("Insufficient bytes to fill elements in the given buffer");return ie(e,c),Promise.reject(c)}}n.buffer=Ie(n.buffer),e._pendingPullIntos.push(n);var l=d(r);return j(e),l}function Z(e,t){t.buffer=Ie(t.buffer),Be(0===t.bytesFilled,"bytesFilled must be 0");var r=e._controlledReadableStream;if(!0===w(r))for(;y(r)>0;)z(r,ee(e))}function Q(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(X(e,t,r),!(r.bytesFilled<r.elementSize)){ee(e);var a=r.bytesFilled%r.elementSize;if(a>0){var i=r.byteOffset+r.bytesFilled,n=r.buffer.slice(i-a,i);H(e,n,0,n.byteLength)}r.buffer=Ie(r.buffer),r.bytesFilled-=a,z(e._controlledReadableStream,r),J(e)}}function $(e,t){var r=e._pendingPullIntos[0],a=e._controlledReadableStream;if("closed"===a._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");Z(e,r)}else Be("readable"===a._state),Q(e,t,r)}function ee(e){var t=e._pendingPullIntos.shift();return Y(e),t}function te(e){var t=e._controlledReadableStream;return"readable"===t._state&&(!0!==e._closeRequested&&(!1!==e._started&&(!0===S(t)&&k(t)>0||(!0===w(t)&&y(t)>0||ne(e)>0))))}function re(e){var t=e._controlledReadableStream;if(Be(!1===e._closeRequested),Be("readable"===t._state),e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0&&e._pendingPullIntos[0].bytesFilled>0){var r=new TypeError("Insufficient bytes to fill elements in the given buffer");throw ie(e,r),r}p(t)}}function ae(e,t){var r=e._controlledReadableStream;Be(!1===e._closeRequested),Be("readable"===r._state);var a=t.buffer,i=t.byteOffset,n=t.byteLength,o=Ie(a);!0===S(r)?0===k(r)?H(e,o,i,n):(Be(0===e._queue.length),v(r,new Uint8Array(o,i,n),!1)):!0===w(r)?(H(e,o,i,n),J(e)):(Be(!1===s(r),"stream must not be locked"),H(e,o,i,n))}function ie(e,t){var r=e._controlledReadableStream;Be("readable"===r._state),q(e),ze(e),m(r,t)}function ne(e){var t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function oe(e,t){if(t=Number(t),!1===Pe(t))throw new RangeError("bytesWritten must be a finite");Be(e._pendingPullIntos.length>0),$(e,t)}function se(e,t){Be(e._pendingPullIntos.length>0);var r=e._pendingPullIntos[0];if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");r.buffer=t.buffer,$(e,t.byteLength)}function ce(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function le(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function he(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}function ue(e){e._closedPromise=new Promise(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function de(e,t){e._closedPromise=Promise.reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function fe(e){e._closedPromise=Promise.resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function ge(e,t){Be(void 0!==e._closedPromise_resolve),Be(void 0!==e._closedPromise_reject),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function pe(e,t){Be(void 0===e._closedPromise_resolve),Be(void 0===e._closedPromise_reject),e._closedPromise=Promise.reject(t)}function me(e){Be(void 0!==e._closedPromise_resolve),Be(void 0!==e._closedPromise_reject),e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function be(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function ve(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function ye(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function ke(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function we(e){try{Promise.prototype.then.call(e,void 0,function(){})}catch(e){}}var Se=function(){function e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,r,a){return r&&e(t.prototype,r),a&&e(t,a),t}}(),Ae=r(0),Ce=Ae.ArrayBufferCopy,xe=Ae.CreateIterResultObject,Pe=Ae.IsFiniteNonNegativeNumber,_e=Ae.InvokeOrNoop,Te=Ae.PromiseInvokeOrNoop,Ie=Ae.TransferArrayBuffer,Re=Ae.ValidateAndNormalizeQueuingStrategy,Oe=Ae.ValidateAndNormalizeHighWaterMark,Ee=r(0),Fe=Ee.createArrayFromList,Le=Ee.createDataProperty,De=Ee.typeIsObject,Me=r(1),Be=Me.assert,Ne=Me.rethrowAssertionErrorRejection,Ue=r(3),je=Ue.DequeueValue,qe=Ue.EnqueueValueWithSize,ze=Ue.ResetQueue,Ge=r(2),He=Ge.AcquireWritableStreamDefaultWriter,We=Ge.IsWritableStream,Xe=Ge.IsWritableStreamLocked,Ve=Ge.WritableStreamAbort,Ye=Ge.WritableStreamDefaultWriterCloseWithErrorPropagation,Je=Ge.WritableStreamDefaultWriterRelease,Ke=Ge.WritableStreamDefaultWriterWrite,Ze=Ge.WritableStreamCloseQueuedOrInFlight,Qe=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.size,n=r.highWaterMark;a(this,e),this._state="readable",this._reader=void 0,this._storedError=void 0,this._disturbed=!1,this._readableStreamController=void 0;var o=t.type;if("bytes"===String(o))void 0===n&&(n=0),this._readableStreamController=new at(this,t,n);else{if(void 0!==o)throw new RangeError("Invalid type is specified");void 0===n&&(n=1),this._readableStreamController=new tt(this,t,i,n)}}return Se(e,[{key:"cancel",value:function(e){return!1===o(this)?Promise.reject(ce("cancel")):!0===s(this)?Promise.reject(new TypeError("Cannot cancel a stream that already has a reader")):g(this,e)}},{key:"getReader",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mode;if(!1===o(this))throw ce("getReader");if(void 0===e)return n(this);if("byob"===(e=String(e)))return i(this);throw new RangeError("Invalid mode is specified")}},{key:"pipeThrough",value:function(e,t){var r=e.writable,a=e.readable;return we(this.pipeTo(r,t)),a}},{key:"pipeTo",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.preventClose,i=r.preventAbort,c=r.preventCancel;if(!1===o(this))return Promise.reject(ce("pipeTo"));if(!1===We(e))return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));if(a=Boolean(a),i=Boolean(i),c=Boolean(c),!0===s(this))return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream"));if(!0===Xe(e))return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream"));var l=n(this),h=He(e),u=!1,d=Promise.resolve();return new Promise(function(r,n){function o(){return d=Promise.resolve(),!0===u?Promise.resolve():h._readyPromise.then(function(){return I(l).then(function(e){var t=e.value;!0!==e.done&&(d=Ke(h,t).catch(function(){}))})}).then(o)}function s(){var e=d;return d.then(function(){return e!==d?s():void 0})}function f(e,t,r){"errored"===e._state?r(e._storedError):t.catch(r).catch(Ne)}function p(t,r,a){function i(){t().then(function(){return b(r,a)},function(e){return b(!0,e)}).catch(Ne)}!0!==u&&(u=!0,"writable"===e._state&&!1===Ze(e)?s().then(i):i())}function m(t,r){!0!==u&&(u=!0,"writable"===e._state&&!1===Ze(e)?s().then(function(){return b(t,r)}).catch(Ne):b(t,r))}function b(e,t){Je(h),_(l),e?n(t):r(void 0)}if(f(t,l._closedPromise,function(t){!1===i?p(function(){return Ve(e,t)},!0,t):m(!0,t)}),f(e,h._closedPromise,function(e){!1===c?p(function(){return g(t,e)},!0,e):m(!0,e)}),function(e,t,r){"closed"===e._state?r():t.then(r).catch(Ne)}(t,l._closedPromise,function(){!1===a?p(function(){return Ye(h)}):m()}),!0===Ze(e)||"closed"===e._state){var v=new TypeError("the destination writable stream closed before all data could be piped to it");!1===c?p(function(){return g(t,v)},!0,v):m(!0,v)}o().catch(function(e){d=Promise.resolve(),Ne(e)})})}},{key:"tee",value:function(){if(!1===o(this))throw ce("tee");var e=c(this,!1);return Fe(e)}},{key:"locked",get:function(){if(!1===o(this))throw ce("locked");return s(this)}}]),e}();e.exports={ReadableStream:Qe,IsReadableStreamDisturbed:function(e){return Be(!0===o(e),"IsReadableStreamDisturbed should only be used on known readable streams"),e._disturbed},ReadableStreamDefaultControllerClose:F,ReadableStreamDefaultControllerEnqueue:L,ReadableStreamDefaultControllerError:D,ReadableStreamDefaultControllerGetDesiredSize:B};var $e=function(){function e(t){if(a(this,e),!1===o(t))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===s(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");x(this,t),this._readRequests=[]}return Se(e,[{key:"cancel",value:function(e){return!1===C(this)?Promise.reject(he("cancel")):void 0===this._ownerReadableStream?Promise.reject(le("cancel")):P(this,e)}},{key:"read",value:function(){return!1===C(this)?Promise.reject(he("read")):void 0===this._ownerReadableStream?Promise.reject(le("read from")):I(this)}},{key:"releaseLock",value:function(){if(!1===C(this))throw he("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");_(this)}}},{key:"closed",get:function(){return!1===C(this)?Promise.reject(he("closed")):this._closedPromise}}]),e}(),et=function(){function e(t){if(a(this,e),!o(t))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===N(t._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(s(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");x(this,t),this._readIntoRequests=[]}return Se(e,[{key:"cancel",value:function(e){return A(this)?void 0===this._ownerReadableStream?Promise.reject(le("cancel")):P(this,e):Promise.reject(be("cancel"))}},{key:"read",value:function(e){return A(this)?void 0===this._ownerReadableStream?Promise.reject(le("read from")):ArrayBuffer.isView(e)?0===e.byteLength?Promise.reject(new TypeError("view must have non-zero byteLength")):T(this,e):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(be("read"))}},{key:"releaseLock",value:function(){if(!A(this))throw be("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");_(this)}}},{key:"closed",get:function(){return A(this)?this._closedPromise:Promise.reject(be("closed"))}}]),e}(),tt=function(){function e(t,r,i,n){if(a(this,e),!1===o(t))throw new TypeError("ReadableStreamDefaultController can only be constructed with a ReadableStream instance");if(void 0!==t._readableStreamController)throw new TypeError("ReadableStreamDefaultController instances can only be created by the ReadableStream constructor");this._controlledReadableStream=t,this._underlyingSource=r,this._queue=void 0,this._queueTotalSize=void 0,ze(this),this._started=!1,this._closeRequested=!1,this._pullAgain=!1,this._pulling=!1;var s=Re(i,n);this._strategySize=s.size,this._strategyHWM=s.highWaterMark;var c=this,l=_e(r,"start",[this]);Promise.resolve(l).then(function(){c._started=!0,Be(!1===c._pulling),Be(!1===c._pullAgain),O(c)},function(e){M(c,e)}).catch(Ne)}return Se(e,[{key:"close",value:function(){if(!1===R(this))throw ve("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var e=this._controlledReadableStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be closed");F(this)}},{key:"enqueue",value:function(e){if(!1===R(this))throw ve("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var t=this._controlledReadableStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be enqueued to");return L(this,e)}},{key:"error",value:function(e){if(!1===R(this))throw ve("error");var t=this._controlledReadableStream;if("readable"!==t._state)throw new TypeError("The stream is "+t._state+" and so cannot be errored");D(this,e)}},{key:"__cancelSteps",value:function(e){return ze(this),Te(this._underlyingSource,"cancel",[e])}},{key:"__pullSteps",value:function(){var e=this._controlledReadableStream;if(this._queue.length>0){var t=je(this);return!0===this._closeRequested&&0===this._queue.length?p(e):O(this),Promise.resolve(xe(t,!1))}var r=f(e);return O(this),r}},{key:"desiredSize",get:function(){if(!1===R(this))throw ve("desiredSize");return B(this)}}]),e}(),rt=function(){function e(t,r){a(this,e),this._associatedReadableByteStreamController=t,this._view=r}return Se(e,[{key:"respond",value:function(e){if(!1===U(this))throw ye("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");oe(this._associatedReadableByteStreamController,e)}},{key:"respondWithNewView",value:function(e){if(!1===U(this))throw ye("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");se(this._associatedReadableByteStreamController,e)}},{key:"view",get:function(){return this._view}}]),e}(),at=function(){function e(t,r,i){if(a(this,e),!1===o(t))throw new TypeError("ReadableByteStreamController can only be constructed with a ReadableStream instance given a byte source");if(void 0!==t._readableStreamController)throw new TypeError("ReadableByteStreamController instances can only be created by the ReadableStream constructor given a byte source");this._controlledReadableStream=t,this._underlyingByteSource=r,this._pullAgain=!1,this._pulling=!1,q(this),this._queue=this._queueTotalSize=void 0,ze(this),this._closeRequested=!1,this._started=!1,this._strategyHWM=Oe(i);var n=r.autoAllocateChunkSize;if(void 0!==n&&(!1===Number.isInteger(n)||n<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");this._autoAllocateChunkSize=n,this._pendingPullIntos=[];var s=this,c=_e(r,"start",[this]);Promise.resolve(c).then(function(){s._started=!0,Be(!1===s._pulling),Be(!1===s._pullAgain),j(s)},function(e){"readable"===t._state&&ie(s,e)}).catch(Ne)}return Se(e,[{key:"close",value:function(){if(!1===N(this))throw ke("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var e=this._controlledReadableStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be closed");re(this)}},{key:"enqueue",value:function(e){if(!1===N(this))throw ke("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var t=this._controlledReadableStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(e))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");ae(this,e)}},{key:"error",value:function(e){if(!1===N(this))throw ke("error");var t=this._controlledReadableStream;if("readable"!==t._state)throw new TypeError("The stream is "+t._state+" and so cannot be errored");ie(this,e)}},{key:"__cancelSteps",value:function(e){return this._pendingPullIntos.length>0&&(this._pendingPullIntos[0].bytesFilled=0),ze(this),Te(this._underlyingByteSource,"cancel",[e])}},{key:"__pullSteps",value:function(){var e=this._controlledReadableStream;if(Be(!0===S(e)),this._queueTotalSize>0){Be(0===k(e));var t=this._queue.shift();this._queueTotalSize-=t.byteLength,V(this);var r=void 0;try{r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}catch(e){return Promise.reject(e)}return Promise.resolve(xe(r,!1))}var a=this._autoAllocateChunkSize;if(void 0!==a){var i=void 0;try{i=new ArrayBuffer(a)}catch(e){return Promise.reject(e)}var n={buffer:i,byteOffset:0,byteLength:a,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(n)}var o=f(e);return j(this),o}},{key:"byobRequest",get:function(){if(!1===N(this))throw ke("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var e=this._pendingPullIntos[0],t=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled);this._byobRequest=new rt(this,t)}return this._byobRequest}},{key:"desiredSize",get:function(){if(!1===N(this))throw ke("desiredSize");return ne(this)}}]),e}()},function(e,t,r){var a=r(6),i=r(4),n=r(2);t.TransformStream=a.TransformStream,t.ReadableStream=i.ReadableStream,t.IsReadableStreamDisturbed=i.IsReadableStreamDisturbed,t.ReadableStreamDefaultControllerClose=i.ReadableStreamDefaultControllerClose,t.ReadableStreamDefaultControllerEnqueue=i.ReadableStreamDefaultControllerEnqueue,t.ReadableStreamDefaultControllerError=i.ReadableStreamDefaultControllerError,t.ReadableStreamDefaultControllerGetDesiredSize=i.ReadableStreamDefaultControllerGetDesiredSize,t.AcquireWritableStreamDefaultWriter=n.AcquireWritableStreamDefaultWriter,t.IsWritableStream=n.IsWritableStream,t.IsWritableStreamLocked=n.IsWritableStreamLocked,t.WritableStream=n.WritableStream,t.WritableStreamAbort=n.WritableStreamAbort,t.WritableStreamDefaultControllerError=n.WritableStreamDefaultControllerError,t.WritableStreamDefaultWriterCloseWithErrorPropagation=n.WritableStreamDefaultWriterCloseWithErrorPropagation,t.WritableStreamDefaultWriterRelease=n.WritableStreamDefaultWriterRelease,t.WritableStreamDefaultWriterWrite=n.WritableStreamDefaultWriterWrite},function(e,t,r){function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){if(!0===e._errored)throw new TypeError("TransformStream is already errored");if(!0===e._readableClosed)throw new TypeError("Readable side is already closed");s(e)}function n(e,t){if(!0===e._errored)throw new TypeError("TransformStream is already errored");if(!0===e._readableClosed)throw new TypeError("Readable side is already closed");var r=e._readableController;try{T(r,t)}catch(t){throw e._readableClosed=!0,c(e,t),e._storedError}!0===R(r)<=0&&!1===e._backpressure&&u(e,!0)}function o(e,t){if(!0===e._errored)throw new TypeError("TransformStream is already errored");l(e,t)}function s(e){y(!1===e._errored),y(!1===e._readableClosed);try{_(e._readableController)}catch(e){y(!1)}e._readableClosed=!0}function c(e,t){!1===e._errored&&l(e,t)}function l(e,t){y(!1===e._errored),e._errored=!0,e._storedError=t,!1===e._writableDone&&F(e._writableController,t),!1===e._readableClosed&&I(e._readableController,t)}function h(e){return y(void 0!==e._backpressureChangePromise,"_backpressureChangePromise should have been initialized"),!1===e._backpressure?Promise.resolve():(y(!0===e._backpressure,"_backpressure should have been initialized"),e._backpressureChangePromise)}function u(e,t){y(e._backpressure!==t,"TransformStreamSetBackpressure() should be called only when backpressure is changed"),void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(t),e._backpressureChangePromise=new Promise(function(t){e._backpressureChangePromise_resolve=t}),e._backpressureChangePromise.then(function(e){y(e!==t,"_backpressureChangePromise should be fulfilled only when backpressure is changed")}),e._backpressure=t}function d(e,t){return n(t._controlledTransformStream,e),Promise.resolve()}function f(e,t){y(!1===e._errored),y(!1===e._transforming),y(!1===e._backpressure),e._transforming=!0;var r=e._transformer,a=e._transformStreamController;return S(r,"transform",[t,a],d,[t,a]).then(function(){return e._transforming=!1,h(e)},function(t){return c(e,t),Promise.reject(t)})}function g(e){return!!C(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function p(e){return!!C(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function m(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function b(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}var v=function(){function e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,r,a){return r&&e(t.prototype,r),a&&e(t,a),t}}(),y=r(1).assert,k=r(0),w=k.InvokeOrNoop,S=k.PromiseInvokeOrPerformFallback,A=k.PromiseInvokeOrNoop,C=k.typeIsObject,x=r(4),P=x.ReadableStream,_=x.ReadableStreamDefaultControllerClose,T=x.ReadableStreamDefaultControllerEnqueue,I=x.ReadableStreamDefaultControllerError,R=x.ReadableStreamDefaultControllerGetDesiredSize,O=r(2),E=O.WritableStream,F=O.WritableStreamDefaultControllerError,L=function(){function e(t,r){a(this,e),this._transformStream=t,this._startPromise=r}return v(e,[{key:"start",value:function(e){var t=this._transformStream;return t._writableController=e,this._startPromise.then(function(){return h(t)})}},{key:"write",value:function(e){return f(this._transformStream,e)}},{key:"abort",value:function(){var e=this._transformStream;e._writableDone=!0,l(e,new TypeError("Writable side aborted"))}},{key:"close",value:function(){var e=this._transformStream;return y(!1===e._transforming),e._writableDone=!0,A(e._transformer,"flush",[e._transformStreamController]).then(function(){return!0===e._errored?Promise.reject(e._storedError):(!1===e._readableClosed&&s(e),Promise.resolve())}).catch(function(t){return c(e,t),Promise.reject(e._storedError)})}}]),e}(),D=function(){function e(t,r){a(this,e),this._transformStream=t,this._startPromise=r}return v(e,[{key:"start",value:function(e){var t=this._transformStream;return t._readableController=e,this._startPromise.then(function(){return y(void 0!==t._backpressureChangePromise,"_backpressureChangePromise should have been initialized"),!0===t._backpressure?Promise.resolve():(y(!1===t._backpressure,"_backpressure should have been initialized"),t._backpressureChangePromise)})}},{key:"pull",value:function(){var e=this._transformStream;return y(!0===e._backpressure,"pull() should be never called while _backpressure is false"),y(void 0!==e._backpressureChangePromise,"_backpressureChangePromise should have been initialized"),u(e,!1),e._backpressureChangePromise}},{key:"cancel",value:function(){var e=this._transformStream;e._readableClosed=!0,l(e,new TypeError("Readable side canceled"))}}]),e}(),M=function(){function e(t){if(a(this,e),!1===p(t))throw new TypeError("TransformStreamDefaultController can only be constructed with a TransformStream instance");if(void 0!==t._transformStreamController)throw new TypeError("TransformStreamDefaultController instances can only be created by the TransformStream constructor");this._controlledTransformStream=t}return v(e,[{key:"enqueue",value:function(e){if(!1===g(this))throw m("enqueue");n(this._controlledTransformStream,e)}},{key:"close",value:function(){if(!1===g(this))throw m("close");i(this._controlledTransformStream)}},{key:"error",value:function(e){if(!1===g(this))throw m("error");o(this._controlledTransformStream,e)}},{key:"desiredSize",get:function(){if(!1===g(this))throw m("desiredSize");var e=this._controlledTransformStream._readableController;return R(e)}}]),e}(),B=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this,e),this._transformer=t;var r=t.readableStrategy,i=t.writableStrategy;this._transforming=!1,this._errored=!1,this._storedError=void 0,this._writableController=void 0,this._readableController=void 0,this._transformStreamController=void 0,this._writableDone=!1,this._readableClosed=!1,this._backpressure=void 0,this._backpressureChangePromise=void 0,this._backpressureChangePromise_resolve=void 0,this._transformStreamController=new M(this);var n=void 0,o=new Promise(function(e){n=e}),s=new D(this,o);this._readable=new P(s,r);var c=new L(this,o);this._writable=new E(c,i),y(void 0!==this._writableController),y(void 0!==this._readableController),u(this,R(this._readableController)<=0);var l=this,h=w(t,"start",[l._transformStreamController]);n(h),o.catch(function(e){!1===l._errored&&(l._errored=!0,l._storedError=e)})}return v(e,[{key:"readable",get:function(){if(!1===p(this))throw b("readable");return this._readable}},{key:"writable",get:function(){if(!1===p(this))throw b("writable");return this._writable}}]),e}();e.exports={TransformStream:B}},function(e,t,r){e.exports=r(5)}]))},function(e,t,r){"use strict";function a(){}Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0;var i=r(0),n=r(20),o=r(1),s=r(4),c=r(18),l=r(2);a.prototype={create:function(e,t,r,a){var n=e.fetchIfRef(t);if((0,o.isDict)(n)){var s=(0,o.isRef)(t)?t.toString():"annot_"+a.createObjId(),c=n.get("Subtype");c=(0,o.isName)(c)?c.name:null;var l={xref:e,dict:n,ref:(0,o.isRef)(t)?t:null,subtype:c,id:s,pdfManager:r};switch(c){case"Link":return new b(l);case"Text":return new m(l);case"Widget":var u=i.Util.getInheritableProperty(n,"FT");switch(u=(0,o.isName)(u)?u.name:null){case"Tx":return new f(l);case"Btn":return new g(l);case"Ch":return new p(l)}return(0,i.warn)('Unimplemented widget field type "'+u+'", falling back to base field type.'),new d(l);case"Popup":return new v(l);case"Line":return new y(l);case"Highlight":return new k(l);case"Underline":return new w(l);case"Squiggly":return new S(l);case"StrikeOut":return new A(l);case"FileAttachment":return new C(l);default:return c?(0,i.warn)('Unimplemented annotation type "'+c+'", falling back to base annotation.'):(0,i.warn)("Annotation is missing the required /Subtype."),new h(l)}}}};var h=function(){function e(e,t,r){var a=i.Util.getAxialAlignedBoundingBox(t,r),n=a[0],o=a[1],s=a[2],c=a[3];if(n===s||o===c)return[1,0,0,1,e[0],e[1]];var l=(e[2]-e[0])/(s-n),h=(e[3]-e[1])/(c-o);return[l,0,0,h,e[0]-n*l,e[1]-o*h]}function t(e){var t=e.dict;this.setFlags(t.get("F")),this.setRectangle(t.getArray("Rect")),this.setColor(t.getArray("C")),this.setBorderStyle(t),this.setAppearance(t),this.data={},this.data.id=e.id,this.data.subtype=e.subtype,this.data.annotationFlags=this.flags,this.data.rect=this.rectangle,this.data.color=this.color,this.data.borderStyle=this.borderStyle,this.data.hasAppearance=!!this.appearance}return t.prototype={_hasFlag:function(e,t){return!!(e&t)},_isViewable:function(e){return!this._hasFlag(e,i.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,i.AnnotationFlag.HIDDEN)&&!this._hasFlag(e,i.AnnotationFlag.NOVIEW)},_isPrintable:function(e){return this._hasFlag(e,i.AnnotationFlag.PRINT)&&!this._hasFlag(e,i.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,i.AnnotationFlag.HIDDEN)},get viewable(){return 0===this.flags||this._isViewable(this.flags)},get printable(){return 0!==this.flags&&this._isPrintable(this.flags)},setFlags:function(e){this.flags=(0,i.isInt)(e)&&e>0?e:0},hasFlag:function(e){return this._hasFlag(this.flags,e)},setRectangle:function(e){(0,i.isArray)(e)&&4===e.length?this.rectangle=i.Util.normalizeRect(e):this.rectangle=[0,0,0,0]},setColor:function(e){var t=new Uint8Array(3);if((0,i.isArray)(e))switch(e.length){case 0:this.color=null;break;case 1:s.ColorSpace.singletons.gray.getRgbItem(e,0,t,0),this.color=t;break;case 3:s.ColorSpace.singletons.rgb.getRgbItem(e,0,t,0),this.color=t;break;case 4:s.ColorSpace.singletons.cmyk.getRgbItem(e,0,t,0),this.color=t;break;default:this.color=t}else this.color=t},setBorderStyle:function(e){if(this.borderStyle=new u,(0,o.isDict)(e))if(e.has("BS")){var t=e.get("BS"),r=t.get("Type");r&&!(0,o.isName)(r,"Border")||(this.borderStyle.setWidth(t.get("W")),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D")))}else if(e.has("Border")){var a=e.getArray("Border");(0,i.isArray)(a)&&a.length>=3&&(this.borderStyle.setHorizontalCornerRadius(a[0]),this.borderStyle.setVerticalCornerRadius(a[1]),this.borderStyle.setWidth(a[2]),4===a.length&&this.borderStyle.setDashArray(a[3]))}else this.borderStyle.setWidth(0)},setAppearance:function(e){this.appearance=null;var t=e.get("AP");if((0,o.isDict)(t)){var r=t.get("N");if((0,o.isStream)(r))this.appearance=r;else if((0,o.isDict)(r)){var a=e.get("AS");(0,o.isName)(a)&&r.has(a.name)&&(this.appearance=r.get(a.name))}}},_preparePopup:function(e){e.has("C")||(this.data.color=null),this.data.hasPopup=e.has("Popup"),this.data.title=(0,i.stringToPDFString)(e.get("T")||""),this.data.contents=(0,i.stringToPDFString)(e.get("Contents")||"")},loadResources:function(e){return this.appearance.dict.getAsync("Resources").then(function(t){if(t)return new n.ObjectLoader(t.map,e,t.xref).load().then(function(){return t})})},getOperatorList:function(t,r,a){var n=this;if(!this.appearance)return Promise.resolve(new c.OperatorList);var o=this.data,s=this.appearance.dict,l=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),h=s.getArray("BBox")||[0,0,1,1],u=s.getArray("Matrix")||[1,0,0,1,0,0],d=e(o.rect,h,u);return l.then(function(e){var a=new c.OperatorList;return a.addOp(i.OPS.beginAnnotation,[o.rect,d,u]),t.getOperatorList({stream:n.appearance,task:r,resources:e,operatorList:a}).then(function(){return a.addOp(i.OPS.endAnnotation,[]),n.appearance.reset(),a})})}},t}(),u=function(){function e(){this.width=1,this.style=i.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}return e.prototype={setWidth:function(e){e===(0|e)&&(this.width=e)},setStyle:function(e){if(e)switch(e.name){case"S":this.style=i.AnnotationBorderStyleType.SOLID;break;case"D":this.style=i.AnnotationBorderStyleType.DASHED;break;case"B":this.style=i.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=i.AnnotationBorderStyleType.INSET;break;case"U":this.style=i.AnnotationBorderStyleType.UNDERLINE}},setDashArray:function(e){if((0,i.isArray)(e)&&e.length>0){for(var t=!0,r=!0,a=0,n=e.length;a<n;a++){var o=e[a];if(!(+o>=0)){t=!1;break}o>0&&(r=!1)}t&&!r?this.dashArray=e:this.width=0}else e&&(this.width=0)},setHorizontalCornerRadius:function(e){e===(0|e)&&(this.horizontalCornerRadius=e)},setVerticalCornerRadius:function(e){e===(0|e)&&(this.verticalCornerRadius=e)}},e}(),d=function(){function e(e){h.call(this,e);var t=e.dict,r=this.data;r.annotationType=i.AnnotationType.WIDGET,r.fieldName=this._constructFieldName(t),r.fieldValue=i.Util.getInheritableProperty(t,"V",!0),r.alternativeText=(0,i.stringToPDFString)(t.get("TU")||""),r.defaultAppearance=i.Util.getInheritableProperty(t,"DA")||"";var a=i.Util.getInheritableProperty(t,"FT");r.fieldType=(0,o.isName)(a)?a.name:null,this.fieldResources=i.Util.getInheritableProperty(t,"DR")||o.Dict.empty,r.fieldFlags=i.Util.getInheritableProperty(t,"Ff"),(!(0,i.isInt)(r.fieldFlags)||r.fieldFlags<0)&&(r.fieldFlags=0),r.readOnly=this.hasFieldFlag(i.AnnotationFieldFlag.READONLY),"Sig"===r.fieldType&&this.setFlags(i.AnnotationFlag.HIDDEN)}return i.Util.inherit(e,h,{_constructFieldName:function(e){if(!e.has("T")&&!e.has("Parent"))return(0,i.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,i.stringToPDFString)(e.get("T"));var t=[];e.has("T")&&t.unshift((0,i.stringToPDFString)(e.get("T")));for(var r=e;r.has("Parent")&&(r=r.get("Parent"),(0,o.isDict)(r));)r.has("T")&&t.unshift((0,i.stringToPDFString)(r.get("T")));return t.join(".")},hasFieldFlag:function(e){return!!(this.data.fieldFlags&e)}}),e}(),f=function(){function e(e){d.call(this,e),this.data.fieldValue=(0,i.stringToPDFString)(this.data.fieldValue||"");var t=i.Util.getInheritableProperty(e.dict,"Q");(!(0,i.isInt)(t)||t<0||t>2)&&(t=null),this.data.textAlignment=t;var r=i.Util.getInheritableProperty(e.dict,"MaxLen");(!(0,i.isInt)(r)||r<0)&&(r=null),this.data.maxLen=r,this.data.multiLine=this.hasFieldFlag(i.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(i.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(i.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(i.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(i.AnnotationFieldFlag.FILESELECT)&&null!==this.data.maxLen}return i.Util.inherit(e,d,{getOperatorList:function(e,t,r){var a=new c.OperatorList;if(r)return Promise.resolve(a);if(this.appearance)return h.prototype.getOperatorList.call(this,e,t,r);if(!this.data.defaultAppearance)return Promise.resolve(a);var n=new l.Stream((0,i.stringToBytes)(this.data.defaultAppearance));return e.getOperatorList({stream:n,task:t,resources:this.fieldResources,operatorList:a}).then(function(){return a})}}),e}(),g=function(){function e(e){if(d.call(this,e),this.data.checkBox=!this.hasFieldFlag(i.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(i.AnnotationFieldFlag.PUSHBUTTON),this.data.checkBox){if(!(0,o.isName)(this.data.fieldValue))return;this.data.fieldValue=this.data.fieldValue.name}if(this.data.radioButton=this.hasFieldFlag(i.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(i.AnnotationFieldFlag.PUSHBUTTON),this.data.radioButton){this.data.fieldValue=this.data.buttonValue=null;var t=e.dict.get("Parent");if((0,o.isDict)(t)&&t.has("V")){var r=t.get("V");(0,o.isName)(r)&&(this.data.fieldValue=r.name)}var a=e.dict.get("AP");if(!(0,o.isDict)(a))return;var n=a.get("N");if(!(0,o.isDict)(n))return;for(var s=n.getKeys(),c=0,l=s.length;c<l;c++)if("Off"!==s[c]){this.data.buttonValue=s[c];break}}}return i.Util.inherit(e,d,{getOperatorList:function(e,t,r){var a=new c.OperatorList;return r?Promise.resolve(a):this.appearance?h.prototype.getOperatorList.call(this,e,t,r):Promise.resolve(a)}}),e}(),p=function(){function e(e){d.call(this,e),this.data.options=[];var t=i.Util.getInheritableProperty(e.dict,"Opt");if((0,i.isArray)(t))for(var r=e.xref,a=0,n=t.length;a<n;a++){var o=r.fetchIfRef(t[a]),s=(0,i.isArray)(o);this.data.options[a]={exportValue:s?r.fetchIfRef(o[0]):o,displayValue:s?r.fetchIfRef(o[1]):o}}(0,i.isArray)(this.data.fieldValue)||(this.data.fieldValue=[this.data.fieldValue]),this.data.combo=this.hasFieldFlag(i.AnnotationFieldFlag.COMBO),this.data.multiSelect=this.hasFieldFlag(i.AnnotationFieldFlag.MULTISELECT)}return i.Util.inherit(e,d,{getOperatorList:function(e,t,r){var a=new c.OperatorList;return r?Promise.resolve(a):h.prototype.getOperatorList.call(this,e,t,r)}}),e}(),m=function(){function e(e){h.call(this,e),this.data.annotationType=i.AnnotationType.TEXT,this.data.hasAppearance?this.data.name="NoIcon":(this.data.rect[1]=this.data.rect[3]-t,this.data.rect[2]=this.data.rect[0]+t,this.data.name=e.dict.has("Name")?e.dict.get("Name").name:"Note"),this._preparePopup(e.dict)}var t=22;return i.Util.inherit(e,h,{}),e}(),b=function(){function e(e){h.call(this,e);var t=this.data;t.annotationType=i.AnnotationType.LINK,n.Catalog.parseDestDictionary({destDict:e.dict,resultObj:t,docBaseUrl:e.pdfManager.docBaseUrl})}return i.Util.inherit(e,h,{}),e}(),v=function(){function e(e){h.call(this,e),this.data.annotationType=i.AnnotationType.POPUP;var t=e.dict,r=t.get("Parent");if(r){var a=r.get("Subtype");if(this.data.parentType=(0,o.isName)(a)?a.name:null,this.data.parentId=t.getRaw("Parent").toString(),this.data.title=(0,i.stringToPDFString)(r.get("T")||""),this.data.contents=(0,i.stringToPDFString)(r.get("Contents")||""),r.has("C")?(this.setColor(r.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){var n=r.get("F");this._isViewable(n)&&this.setFlags(n)}}else(0,i.warn)("Popup annotation has a missing or invalid parent annotation.")}return i.Util.inherit(e,h,{}),e}(),y=function(){function e(e){h.call(this,e),this.data.annotationType=i.AnnotationType.LINE;var t=e.dict;this.data.lineCoordinates=i.Util.normalizeRect(t.getArray("L")),this._preparePopup(t)}return i.Util.inherit(e,h,{}),e}(),k=function(){function e(e){h.call(this,e),this.data.annotationType=i.AnnotationType.HIGHLIGHT,this._preparePopup(e.dict)}return i.Util.inherit(e,h,{}),e}(),w=function(){function e(e){h.call(this,e),this.data.annotationType=i.AnnotationType.UNDERLINE,this._preparePopup(e.dict)}return i.Util.inherit(e,h,{}),e}(),S=function(){function e(e){h.call(this,e),this.data.annotationType=i.AnnotationType.SQUIGGLY,this._preparePopup(e.dict)}return i.Util.inherit(e,h,{}),e}(),A=function(){function e(e){h.call(this,e),this.data.annotationType=i.AnnotationType.STRIKEOUT,this._preparePopup(e.dict)}return i.Util.inherit(e,h,{}),e}(),C=function(){function e(e){h.call(this,e);var t=new n.FileSpec(e.dict.get("FS"),e.xref);this.data.annotationType=i.AnnotationType.FILEATTACHMENT,this.data.file=t.serializable,this._preparePopup(e.dict)}return i.Util.inherit(e,h,{}),e}();t.Annotation=h,t.AnnotationBorderStyle=u,t.AnnotationFactory=a},function(e,t,r){"use strict";function a(e){return 0!=(1&e)}function i(e){return 0==(1&e)}function n(e,t,r){for(var a=t,i=e.length;a<i;++a)if(e[a]!==r)return a;return a}function o(e,t,r,a){for(var i=t;i<r;++i)e[i]=a}function s(e,t,r){for(var a=t,i=r-1;a<i;++a,--i){var n=e[a];e[a]=e[i],e[i]=n}}function c(e,t,r){return{str:e,dir:r?"ttb":t?"ltr":"rtl"}}Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=void 0;var l=r(0),h=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],u=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"],d=[],f=[];t.bidi=function(e,t,r){var g=!0,p=e.length;if(0===p||r)return c(e,g,r);d.length=p,f.length=p;var m,b,v=0;for(m=0;m<p;++m){d[m]=e.charAt(m);var y=e.charCodeAt(m),k="L";y<=255?k=h[y]:1424<=y&&y<=1524?k="R":1536<=y&&y<=1791?(k=u[255&y])||(0,l.warn)("Bidi: invalid Unicode character "+y.toString(16)):1792<=y&&y<=2220&&(k="AL"),"R"!==k&&"AL"!==k&&"AN"!==k||v++,f[m]=k}if(0===v)return g=!0,c(e,g);-1===t&&(v/p<.3?(g=!0,t=0):(g=!1,t=1));var w=[];for(m=0;m<p;++m)w[m]=t;var S=a(t)?"R":"L",A=S,C=A,x=A;for(m=0;m<p;++m)"NSM"===f[m]?f[m]=x:x=f[m];x=A;var P;for(m=0;m<p;++m)"EN"===(P=f[m])?f[m]="AL"===x?"AN":"EN":"R"!==P&&"L"!==P&&"AL"!==P||(x=P);for(m=0;m<p;++m)"AL"===(P=f[m])&&(f[m]="R");for(m=1;m<p-1;++m)"ES"===f[m]&&"EN"===f[m-1]&&"EN"===f[m+1]&&(f[m]="EN"),"CS"!==f[m]||"EN"!==f[m-1]&&"AN"!==f[m-1]||f[m+1]!==f[m-1]||(f[m]=f[m-1]);for(m=0;m<p;++m)if("EN"===f[m]){var _;for(_=m-1;_>=0&&"ET"===f[_];--_)f[_]="EN";for(_=m+1;_<p&&"ET"===f[_];++_)f[_]="EN"}for(m=0;m<p;++m)"WS"!==(P=f[m])&&"ES"!==P&&"ET"!==P&&"CS"!==P||(f[m]="ON");for(x=A,m=0;m<p;++m)"EN"===(P=f[m])?f[m]="L"===x?"L":"EN":"R"!==P&&"L"!==P||(x=P);for(m=0;m<p;++m)if("ON"===f[m]){var T=n(f,m+1,"ON"),I=A;m>0&&(I=f[m-1]);var R=C;T+1<p&&(R=f[T+1]),"L"!==I&&(I="R"),"L"!==R&&(R="R"),I===R&&o(f,m,T,I),m=T-1}for(m=0;m<p;++m)"ON"===f[m]&&(f[m]=S);for(m=0;m<p;++m)P=f[m],i(w[m])?"R"===P?w[m]+=1:"AN"!==P&&"EN"!==P||(w[m]+=2):"L"!==P&&"AN"!==P&&"EN"!==P||(w[m]+=1);var O,E=-1,F=99;for(m=0,b=w.length;m<b;++m)E<(O=w[m])&&(E=O),F>O&&a(O)&&(F=O);for(O=E;O>=F;--O){var L=-1;for(m=0,b=w.length;m<b;++m)w[m]<O?L>=0&&(s(d,L,m),L=-1):L<0&&(L=m);L>=0&&s(d,L,w.length)}for(m=0,b=d.length;m<b;++m){var D=d[m];"<"!==D&&">"!==D||(d[m]="")}return c(d.join(""),g)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],i=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],n=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"];t.ISOAdobeCharset=a,t.ExpertCharset=i,t.ExpertSubsetCharset=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CMapFactory=t.IdentityCMap=t.CMap=void 0;var a=r(0),i=r(1),n=r(6),o=r(2),s=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"],c=function(){function e(e){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=e}return e.prototype={addCodespaceRange:function(e,t,r){this.codespaceRanges[e-1].push(t,r),this.numCodespaceRanges++},mapCidRange:function(e,t,r){for(;e<=t;)this._map[e++]=r++},mapBfRange:function(e,t,r){for(var a=r.length-1;e<=t;)this._map[e++]=r,r=r.substr(0,a)+String.fromCharCode(r.charCodeAt(a)+1)},mapBfRangeToArray:function(e,t,r){for(var a=0,i=r.length;e<=t&&a<i;)this._map[e]=r[a++],++e},mapOne:function(e,t){this._map[e]=t},lookup:function(e){return this._map[e]},contains:function(e){return void 0!==this._map[e]},forEach:function(e){var t=this._map,r=t.length;if(r<=65536)for(var a=0;a<r;a++)void 0!==t[a]&&e(a,t[a]);else for(var i in t)e(i,t[i])},charCodeOf:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1},getMap:function(){return this._map},readCharCode:function(e,t,r){for(var a=0,i=this.codespaceRanges,n=this.codespaceRanges.length,o=0;o<n;o++){a=(a<<8|e.charCodeAt(t+o))>>>0;for(var s=i[o],c=0,l=s.length;c<l;){var h=s[c++],u=s[c++];if(a>=h&&a<=u)return r.charcode=a,void(r.length=o+1)}}r.charcode=0,r.length=1},get length(){return this._map.length},get isIdentityCMap(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}},e}(),l=function(){function e(e,t){c.call(this),this.vertical=e,this.addCodespaceRange(t,0,65535)}return a.Util.inherit(e,c,{}),e.prototype={addCodespaceRange:c.prototype.addCodespaceRange,mapCidRange:function(e,t,r){(0,a.error)("should not call mapCidRange")},mapBfRange:function(e,t,r){(0,a.error)("should not call mapBfRange")},mapBfRangeToArray:function(e,t,r){(0,a.error)("should not call mapBfRangeToArray")},mapOne:function(e,t){(0,a.error)("should not call mapCidOne")},lookup:function(e){return(0,a.isInt)(e)&&e<=65535?e:void 0},contains:function(e){return(0,a.isInt)(e)&&e<=65535},forEach:function(e){for(var t=0;t<=65535;t++)e(t,t)},charCodeOf:function(e){return(0,a.isInt)(e)&&e<=65535?e:-1},getMap:function(){for(var e=new Array(65536),t=0;t<=65535;t++)e[t]=t;return e},readCharCode:c.prototype.readCharCode,get length(){return 65536},get isIdentityCMap(){(0,a.error)("should not access .isIdentityCMap")}},e}(),h=function(){function e(e,t){for(var r=0,a=0;a<=t;a++)r=r<<8|e[a];return r>>>0}function t(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1))}function r(e,t,r){for(var a=0,i=r;i>=0;i--)a+=e[i]+t[i],e[i]=255&a,a>>=8}function i(e,t){for(var r=1,a=t;a>=0&&r>0;a--)r+=e[a],e[a]=255&r,r>>=8}function n(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(c)}function o(){}var s=16,c=19;return n.prototype={readByte:function(){return this.pos>=this.end?-1:this.buffer[this.pos++]},readNumber:function(){var e,t=0;do{var r=this.readByte();r<0&&(0,a.error)("unexpected EOF in bcmap"),e=!(128&r),t=t<<7|127&r}while(!e);return t},readSigned:function(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1},readHex:function(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1},readHexNumber:function(e,t){var r,i=this.tmpBuf,n=0;do{var o=this.readByte();o<0&&(0,a.error)("unexpected EOF in bcmap"),r=!(128&o),i[n++]=127&o}while(!r);for(var s=t,c=0,l=0;s>=0;){for(;l<8&&i.length>0;)c=i[--n]<<l|c,l+=7;e[s]=255&c,s--,c>>=8,l-=8}},readHexSigned:function(e,t){this.readHexNumber(e,t);for(var r=1&e[t]?255:0,a=0,i=0;i<=t;i++)a=(1&a)<<8|e[i],e[i]=a>>1^r},readString:function(){for(var e=this.readNumber(),t="",r=0;r<e;r++)t+=String.fromCharCode(this.readNumber());return t}},o.prototype={process:function(o,c,l){return new Promise(function(h,u){var d=new n(o),f=d.readByte();c.vertical=!!(1&f);for(var g,p,m=null,b=new Uint8Array(s),v=new Uint8Array(s),y=new Uint8Array(s),k=new Uint8Array(s),w=new Uint8Array(s);(p=d.readByte())>=0;){var S=p>>5;if(7!==S){var A=!!(16&p),C=15&p;(0,a.assert)(C+1<=s);var x,P=d.readNumber();switch(S){case 0:for(d.readHex(b,C),d.readHexNumber(v,C),r(v,b,C),c.addCodespaceRange(C+1,e(b,C),e(v,C)),x=1;x<P;x++)i(v,C),d.readHexNumber(b,C),r(b,v,C),d.readHexNumber(v,C),r(v,b,C),c.addCodespaceRange(C+1,e(b,C),e(v,C));break;case 1:for(d.readHex(b,C),d.readHexNumber(v,C),r(v,b,C),g=d.readNumber(),x=1;x<P;x++)i(v,C),d.readHexNumber(b,C),r(b,v,C),d.readHexNumber(v,C),r(v,b,C),g=d.readNumber();break;case 2:for(d.readHex(y,C),g=d.readNumber(),c.mapOne(e(y,C),g),x=1;x<P;x++)i(y,C),A||(d.readHexNumber(w,C),r(y,w,C)),g=d.readSigned()+(g+1),c.mapOne(e(y,C),g);break;case 3:for(d.readHex(b,C),d.readHexNumber(v,C),r(v,b,C),g=d.readNumber(),c.mapCidRange(e(b,C),e(v,C),g),x=1;x<P;x++)i(v,C),A?b.set(v):(d.readHexNumber(b,C),r(b,v,C)),d.readHexNumber(v,C),r(v,b,C),g=d.readNumber(),c.mapCidRange(e(b,C),e(v,C),g);break;case 4:for(d.readHex(y,1),d.readHex(k,C),c.mapOne(e(y,1),t(k,C)),x=1;x<P;x++)i(y,1),A||(d.readHexNumber(w,1),r(y,w,1)),i(k,C),d.readHexSigned(w,C),r(k,w,C),c.mapOne(e(y,1),t(k,C));break;case 5:for(d.readHex(b,1),d.readHexNumber(v,1),r(v,b,1),d.readHex(k,C),c.mapBfRange(e(b,1),e(v,1),t(k,C)),x=1;x<P;x++)i(v,1),A?b.set(v):(d.readHexNumber(b,1),r(b,v,1)),d.readHexNumber(v,1),r(v,b,1),d.readHex(k,C),c.mapBfRange(e(b,1),e(v,1),t(k,C));break;default:return void u(new Error("processBinaryCMap: Unknown type: "+S))}}else switch(31&p){case 0:d.readString();break;case 1:m=d.readString()}}h(m?l(m):c)})}},o}(),u=function(){function e(e){for(var t=0,r=0;r<e.length;r++)t=t<<8|e.charCodeAt(r);return t>>>0}function t(e){(0,a.isString)(e)||(0,a.error)("Malformed CMap: expected string.")}function r(e){(0,a.isInt)(e)||(0,a.error)("Malformed CMap: expected int.")}function u(r,a){for(;;){var n=a.getObj();if((0,i.isEOF)(n))break;if((0,i.isCmd)(n,"endbfchar"))return;t(n);var o=e(n);t(n=a.getObj());var s=n;r.mapOne(o,s)}}function d(r,n){for(;;){var o=n.getObj();if((0,i.isEOF)(o))break;if((0,i.isCmd)(o,"endbfrange"))return;t(o);var s=e(o);t(o=n.getObj());var c=e(o);if(o=n.getObj(),(0,a.isInt)(o)||(0,a.isString)(o)){var l=(0,a.isInt)(o)?String.fromCharCode(o):o;r.mapBfRange(s,c,l)}else{if(!(0,i.isCmd)(o,"["))break;o=n.getObj();for(var h=[];!(0,i.isCmd)(o,"]")&&!(0,i.isEOF)(o);)h.push(o),o=n.getObj();r.mapBfRangeToArray(s,c,h)}}(0,a.error)("Invalid bf range.")}function f(a,n){for(;;){var o=n.getObj();if((0,i.isEOF)(o))break;if((0,i.isCmd)(o,"endcidchar"))return;t(o);var s=e(o);r(o=n.getObj());var c=o;a.mapOne(s,c)}}function g(a,n){for(;;){var o=n.getObj();if((0,i.isEOF)(o))break;if((0,i.isCmd)(o,"endcidrange"))return;t(o);var s=e(o);t(o=n.getObj());var c=e(o);r(o=n.getObj());var l=o;a.mapCidRange(s,c,l)}}function p(t,r){for(;;){var n=r.getObj();if((0,i.isEOF)(n))break;if((0,i.isCmd)(n,"endcodespacerange"))return;if(!(0,a.isString)(n))break;var o=e(n);if(n=r.getObj(),!(0,a.isString)(n))break;var s=e(n);t.addCodespaceRange(n.length,o,s)}(0,a.error)("Invalid codespace range.")}function m(e,t){var r=t.getObj();(0,a.isInt)(r)&&(e.vertical=!!r)}function b(e,t){var r=t.getObj();(0,i.isName)(r)&&(0,a.isString)(r.name)&&(e.name=r.name)}function v(e,t,r,n){var o,s;e:for(;;)try{var c=t.getObj();if((0,i.isEOF)(c))break;if((0,i.isName)(c))"WMode"===c.name?m(e,t):"CMapName"===c.name&&b(e,t),o=c;else if((0,i.isCmd)(c))switch(c.cmd){case"endcmap":break e;case"usecmap":(0,i.isName)(o)&&(s=o.name);break;case"begincodespacerange":p(e,t);break;case"beginbfchar":u(e,t);break;case"begincidchar":f(e,t);break;case"beginbfrange":d(e,t);break;case"begincidrange":g(e,t)}}catch(e){if(e instanceof a.MissingDataException)throw e;(0,a.warn)("Invalid cMap data: "+e);continue}return!n&&s&&(n=s),n?y(e,r,n):Promise.resolve(e)}function y(e,t,r){return k(r,t).then(function(t){if(e.useCMap=t,0===e.numCodespaceRanges){for(var r=e.useCMap.codespaceRanges,a=0;a<r.length;a++)e.codespaceRanges[a]=r[a].slice();e.numCodespaceRanges=e.useCMap.numCodespaceRanges}return e.useCMap.forEach(function(t,r){e.contains(t)||e.mapOne(t,e.useCMap.lookup(t))}),e})}function k(e,t){return"Identity-H"===e?Promise.resolve(new l(!1,2)):"Identity-V"===e?Promise.resolve(new l(!0,2)):-1===s.indexOf(e)?Promise.reject(new Error("Unknown CMap name: "+e)):((0,a.assert)(t,"Built-in CMap parameters are not provided."),t(e).then(function(e){var r=e.cMapData,i=e.compressionType,s=new c(!0);if(i===a.CMapCompressionType.BINARY)return(new h).process(r,s,function(e){return y(s,t,e)});(0,a.assert)(i===a.CMapCompressionType.NONE,"TODO: Only BINARY/NONE CMap compression is currently supported.");var l=new n.Lexer(new o.Stream(r));return v(s,l,t,null)}))}return{create:function(e){var t=e.encoding,r=e.fetchBuiltInCMap,a=e.useCMap;return(0,i.isName)(t)?k(t.name,r):(0,i.isStream)(t)?v(new c,new n.Lexer(t),r,a).then(function(e){return e.isIdentityCMap?k(e.name,r):e}):Promise.reject(new Error("Encoding required."))}}}();t.CMap=c,t.IdentityCMap=l,t.CMapFactory=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDocument=t.Page=void 0;var a=function(){function e(e,t){var r=[],a=!0,i=!1,n=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(e){i=!0,n=e}finally{try{!a&&s.return&&s.return()}finally{if(i)throw n}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=r(0),n=r(20),o=r(1),s=r(2),c=r(18),l=r(28),h=r(17),u=r(6),d=function(){function e(e,t){return"display"===t&&e.viewable||"print"===t&&e.printable}function t(e,t,r,a,i,n,o){this.pdfManager=e,this.pageIndex=r,this.pageDict=a,this.xref=t,this.ref=i,this.fontCache=n,this.builtInCMapCache=o,this.evaluatorOptions=e.evaluatorOptions,this.resourcesPromise=null;var s="p"+this.pageIndex+"_",c={obj:0};this.idFactory={createObjId:function(){return s+ ++c.obj}}}var r=1,h=[0,0,612,792];return t.prototype={getPageProp:function(e){return this.pageDict.get(e)},getInheritedPageProp:function(e,t){var r=this.pageDict,a=null,n=0;for(t=t||!1;r;){var s=t?r.getArray(e):r.get(e);if(void 0!==s&&(a||(a=[]),a.push(s)),++n>100)return(0,i.warn)("getInheritedPageProp: maximum loop count exceeded for "+e),a?a[0]:void 0;r=r.get("Parent")}if(a)return 1!==a.length&&(0,o.isDict)(a[0])?o.Dict.merge(this.xref,a):a[0]},get content(){return this.getPageProp("Contents")},get resources(){return(0,i.shadow)(this,"resources",this.getInheritedPageProp("Resources")||o.Dict.empty)},get mediaBox(){var e=this.getInheritedPageProp("MediaBox",!0);return(0,i.isArray)(e)&&4===e.length?(0,i.shadow)(this,"mediaBox",e):(0,i.shadow)(this,"mediaBox",h)},get cropBox(){var e=this.getInheritedPageProp("CropBox",!0);return(0,i.isArray)(e)&&4===e.length?(0,i.shadow)(this,"cropBox",e):(0,i.shadow)(this,"cropBox",this.mediaBox)},get userUnit(){var e=this.getPageProp("UserUnit");return(!(0,i.isNum)(e)||e<=0)&&(e=r),(0,i.shadow)(this,"userUnit",e)},get view(){var e=this.mediaBox,t=this.cropBox;if(e===t)return(0,i.shadow)(this,"view",e);var r=i.Util.intersect(t,e);return(0,i.shadow)(this,"view",r||e)},get rotate(){var e=this.getInheritedPageProp("Rotate")||0;return e%90!=0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360),(0,i.shadow)(this,"rotate",e)},getContentStream:function(){var e,t=this.content;if((0,i.isArray)(t)){var r,a=this.xref,n=t.length,c=[];for(r=0;r<n;++r)c.push(a.fetchIfRef(t[r]));e=new s.StreamsSequenceStream(c)}else e=(0,o.isStream)(t)?t:new s.NullStream;return e},loadResources:function(e){var t=this;return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then(function(){return new n.ObjectLoader(t.resources.map,e,t.xref).load()})},getOperatorList:function(t){var r=this,n=t.handler,o=t.task,s=t.intent,l=t.renderInteractiveForms,h=this.pdfManager.ensure(this,"getContentStream"),u=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),d=new c.PartialEvaluator({pdfManager:this.pdfManager,xref:this.xref,handler:n,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,options:this.evaluatorOptions}),f=Promise.all([h,u]).then(function(e){var t=a(e,1)[0],i=new c.OperatorList(s,n,r.pageIndex);return n.send("StartRenderPage",{transparency:d.hasBlendModes(r.resources),pageIndex:r.pageIndex,intent:s}),d.getOperatorList({stream:t,task:o,resources:r.resources,operatorList:i}).then(function(){return i})}),g=this.pdfManager.ensure(this,"annotations");return Promise.all([f,g]).then(function(t){var r=a(t,2),n=r[0],c=r[1];if(0===c.length)return n.flush(!0),n;var h,u,f=[];for(h=0,u=c.length;h<u;h++)e(c[h],s)&&f.push(c[h].getOperatorList(d,o,l));return Promise.all(f).then(function(e){for(n.addOp(i.OPS.beginAnnotations,[]),h=0,u=e.length;h<u;h++)n.addOpList(e[h]);return n.addOp(i.OPS.endAnnotations,[]),n.flush(!0),n})})},extractTextContent:function(e){var t=this,r=e.handler,i=e.task,n=e.normalizeWhitespace,o=e.combineTextItems,s=this.pdfManager.ensure(this,"getContentStream"),l=this.loadResources(["ExtGState","XObject","Font"]);return Promise.all([s,l]).then(function(e){var s=a(e,1)[0];return new c.PartialEvaluator({pdfManager:t.pdfManager,xref:t.xref,handler:r,pageIndex:t.pageIndex,idFactory:t.idFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,options:t.evaluatorOptions}).getTextContent({stream:s,task:i,resources:t.resources,normalizeWhitespace:n,combineTextItems:o})})},getAnnotationsData:function(t){for(var r=this.annotations,a=[],i=0,n=r.length;i<n;++i)t&&!e(r[i],t)||a.push(r[i].data);return a},get annotations(){for(var e=[],t=this.getInheritedPageProp("Annots")||[],r=new l.AnnotationFactory,a=0,n=t.length;a<n;++a){var o=t[a],s=r.create(this.xref,o,this.pdfManager,this.idFactory);s&&e.push(s)}return(0,i.shadow)(this,"annotations",e)}},t}(),f=function(){function e(e,t){var r;(0,o.isStream)(t)?r=t:(0,i.isArrayBuffer)(t)?r=new s.Stream(t):(0,i.error)("PDFDocument: Unknown argument type"),(0,i.assert)(r.length>0,"stream must have data"),this.pdfManager=e,this.stream=r,this.xref=new n.XRef(r,e)}function t(e,t,r,a){var i=e.pos,n=e.end,o=[];i+r>n&&(r=n-i);for(var s=0;s<r;++s)o.push(String.fromCharCode(e.getByte()));var c=o.join("");e.pos=i;var l=a?c.lastIndexOf(t):c.indexOf(t);return-1!==l&&(e.pos+=l,!0)}var r=1024,a="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",c={get entries(){return(0,i.shadow)(this,"entries",{Title:i.isString,Author:i.isString,Subject:i.isString,Keywords:i.isString,Creator:i.isString,Producer:i.isString,CreationDate:i.isString,ModDate:i.isString,Trapped:o.isName})}};return e.prototype={parse:function(e){this.setup(e);var t=this.catalog.catDict.get("Version");(0,o.isName)(t)&&(this.pdfFormatVersion=t.name);try{if(this.acroForm=this.catalog.catDict.get("AcroForm"),this.acroForm){this.xfa=this.acroForm.get("XFA");var r=this.acroForm.get("Fields");r&&(0,i.isArray)(r)&&0!==r.length||this.xfa||(this.acroForm=null)}}catch(e){if(e instanceof i.MissingDataException)throw e;(0,i.info)("Something wrong with AcroForm entry"),this.acroForm=null}},get linearization(){var e=null;if(this.stream.length)try{e=u.Linearization.create(this.stream)}catch(e){if(e instanceof i.MissingDataException)throw e;(0,i.info)(e)}return(0,i.shadow)(this,"linearization",e)},get startXRef(){var e=this.stream,r=0;if(this.linearization)e.reset(),t(e,"endobj",1024)&&(r=e.pos+6);else{for(var a=!1,n=e.end;!a&&n>0;)(n-=1024-"startxref".length)<0&&(n=0),e.pos=n,a=t(e,"startxref",1024,!0);if(a){e.skip(9);var o;do{o=e.getByte()}while((0,i.isSpace)(o));for(var s="";o>=32&&o<=57;)s+=String.fromCharCode(o),o=e.getByte();r=parseInt(s,10),isNaN(r)&&(r=0)}}return(0,i.shadow)(this,"startXRef",r)},get mainXRefEntriesOffset(){var e=0,t=this.linearization;return t&&(e=t.mainXRefEntriesOffset),(0,i.shadow)(this,"mainXRefEntriesOffset",e)},checkHeader:function(){var e=this.stream;if(e.reset(),t(e,"%PDF-",1024)){e.moveStart();for(var r,a="";(r=e.getByte())>32&&!(a.length>=12);)a+=String.fromCharCode(r);this.pdfFormatVersion||(this.pdfFormatVersion=a.substring(5))}else;},parseStartXRef:function(){var e=this.startXRef;this.xref.setStartXRef(e)},setup:function(e){var t=this;this.xref.parse(e);var r={createPage:function(e,r,a,i,n){return new d(t.pdfManager,t.xref,e,r,a,i,n)}};this.catalog=new n.Catalog(this.pdfManager,this.xref,r)},get numPages(){var e=this.linearization,t=e?e.numPages:this.catalog.numPages;return(0,i.shadow)(this,"numPages",t)},get documentInfo(){var e,t={PDFFormatVersion:this.pdfFormatVersion,IsAcroFormPresent:!!this.acroForm,IsXFAPresent:!!this.xfa};try{e=this.xref.trailer.get("Info")}catch(e){if(e instanceof i.MissingDataException)throw e;(0,i.info)("The document information dictionary is invalid.")}if(e){var r=c.entries;for(var a in r)if(e.has(a)){var n=e.get(a);r[a](n)?t[a]="string"!=typeof n?n:(0,i.stringToPDFString)(n):(0,i.info)('Bad value in document info for "'+a+'"')}}return(0,i.shadow)(this,"documentInfo",t)},get fingerprint(){var e,t="",n=this.xref.trailer.get("ID");n&&(0,i.isArray)(n)&&n[0]&&(0,i.isString)(n[0])&&n[0]!==a?e=(0,i.stringToBytes)(n[0]):(this.stream.ensureRange&&this.stream.ensureRange(0,Math.min(r,this.stream.end)),e=(0,h.calculateMD5)(this.stream.bytes.subarray(0,r),0,r));for(var o=0,s=e.length;o<s;o++){var c=e[o].toString(16);t+=1===c.length?"0"+c:c}return(0,i.shadow)(this,"fingerprint",t)},getPage:function(e){return this.catalog.getPage(e)},cleanup:function(){return this.catalog.cleanup()}},e}();t.Page=d,t.PDFDocument=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var a=r(0),i=r(15),n=r(8),o=r(5),s=r(2),c=function(){function e(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function t(e,t){return e[t]<<8|e[t+1]}function r(r,i,n){var o,s,c,l=1===t(r,i+2)?e(r,i+8):e(r,i+16),h=t(r,i+l);if(4===h){t(r,i+l+2);var u=t(r,i+l+6)>>1;for(s=i+l+14,o=[],c=0;c<u;c++,s+=2)o[c]={end:t(r,s)};for(s+=2,c=0;c<u;c++,s+=2)o[c].start=t(r,s);for(c=0;c<u;c++,s+=2)o[c].idDelta=t(r,s);for(c=0;c<u;c++,s+=2){var d=t(r,s);if(0!==d){o[c].ids=[];for(var f=0,g=o[c].end-o[c].start+1;f<g;f++)o[c].ids[f]=t(r,s+d),d+=2}}return o}if(12===h){e(r,i+l+4);var p=e(r,i+l+12);for(s=i+l+16,o=[],c=0;c<p;c++)o.push({start:e(r,s),end:e(r,s+4),idDelta:e(r,s+8)-e(r,s)}),s+=12;return o}(0,a.error)("not supported cmap: "+h)}function c(e,t,r,a){var n={},o=new i.CFFParser(new s.Stream(e,t,r-t),n,a).parse();return{glyphs:o.charStrings.objects,subrs:o.topDict.privateDict&&o.topDict.privateDict.subrsIndex&&o.topDict.privateDict.subrsIndex.objects,gsubrs:o.globalSubrIndex&&o.globalSubrIndex.objects}}function l(e,t,r){var a,i;r?(a=4,i=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}):(a=2,i=function(e,t){return e[t]<<9|e[t+1]<<1});for(var n=[],o=i(t,0),s=a;s<t.length;s+=a){var c=i(t,s);n.push(e.subarray(o,c)),o=c}return n}function h(e,t){for(var r=t.charCodeAt(0),a=0,i=0,n=e.length-1;i<n;){var o=i+n+1>>1;r<e[o].start?n=o-1:i=o}return e[i].start<=r&&r<=e[i].end&&(a=e[i].idDelta+(e[i].ids?e[i].ids[r-e[i].start]:r)&65535),{charCode:r,glyphId:a}}function u(e,t,r){function a(e,r,a,i){t.push({cmd:"quadraticCurveTo",args:[e,r,a,i]})}var i,n=0,o=(e[n]<<24|e[n+1]<<16)>>16,s=0,c=0;if(n+=10,o<0)do{i=e[n]<<8|e[n+1];var l=e[n+2]<<8|e[n+3];n+=4;var h,d;1&i?(h=(e[n]<<24|e[n+1]<<16)>>16,d=(e[n+2]<<24|e[n+3]<<16)>>16,n+=4):(h=e[n++],d=e[n++]),2&i?(s=h,c=d):(s=0,c=0);var f=1,g=1,p=0,m=0;8&i?(f=g=(e[n]<<24|e[n+1]<<16)/1073741824,n+=2):64&i?(f=(e[n]<<24|e[n+1]<<16)/1073741824,g=(e[n+2]<<24|e[n+3]<<16)/1073741824,n+=4):128&i&&(f=(e[n]<<24|e[n+1]<<16)/1073741824,p=(e[n+2]<<24|e[n+3]<<16)/1073741824,m=(e[n+4]<<24|e[n+5]<<16)/1073741824,g=(e[n+6]<<24|e[n+7]<<16)/1073741824,n+=8);var b=r.glyphs[l];b&&(t.push({cmd:"save"}),t.push({cmd:"transform",args:[f,p,m,g,s,c]}),u(b,t,r),t.push({cmd:"restore"}))}while(32&i);else{var v,y,k=[];for(v=0;v<o;v++)k.push(e[n]<<8|e[n+1]),n+=2;n+=2+(e[n]<<8|e[n+1]);for(var w=k[k.length-1]+1,S=[];S.length<w;){var A=1;for(8&(i=e[n++])&&(A+=e[n++]);A-- >0;)S.push({flags:i})}for(v=0;v<w;v++){switch(18&S[v].flags){case 0:s+=(e[n]<<24|e[n+1]<<16)>>16,n+=2;break;case 2:s-=e[n++];break;case 18:s+=e[n++]}S[v].x=s}for(v=0;v<w;v++){switch(36&S[v].flags){case 0:c+=(e[n]<<24|e[n+1]<<16)>>16,n+=2;break;case 4:c-=e[n++];break;case 36:c+=e[n++]}S[v].y=c}var C=0;for(n=0;n<o;n++){var x=k[n],P=S.slice(C,x+1);if(1&P[0].flags)P.push(P[0]);else if(1&P[P.length-1].flags)P.unshift(P[P.length-1]);else{var _={flags:1,x:(P[0].x+P[P.length-1].x)/2,y:(P[0].y+P[P.length-1].y)/2};P.unshift(_),P.push(_)}for(function(e,r){t.push({cmd:"moveTo",args:[e,r]})}(P[0].x,P[0].y),v=1,y=P.length;v<y;v++)1&P[v].flags?function(e,r){t.push({cmd:"lineTo",args:[e,r]})}(P[v].x,P[v].y):1&P[v+1].flags?(a(P[v].x,P[v].y,P[v+1].x,P[v+1].y),v++):a(P[v].x,P[v].y,(P[v].x+P[v+1].x)/2,(P[v].y+P[v+1].y)/2);C=x+1}}}function d(e,t,r){function i(e,r){t.push({cmd:"moveTo",args:[e,r]})}function n(e,r){t.push({cmd:"lineTo",args:[e,r]})}function s(e,r,a,i,n,o){t.push({cmd:"bezierCurveTo",args:[e,r,a,i,n,o]})}function c(e){for(var p=0;p<e.length;){var m,b,v,y,k,w,S,A,C=!1,x=e[p++];switch(x){case 1:case 3:g+=l.length>>1,C=!0;break;case 4:f+=l.pop(),i(u,f),C=!0;break;case 5:for(;l.length>0;)u+=l.shift(),f+=l.shift(),n(u,f);break;case 6:for(;l.length>0&&(u+=l.shift(),n(u,f),0!==l.length);)f+=l.shift(),n(u,f);break;case 7:for(;l.length>0&&(f+=l.shift(),n(u,f),0!==l.length);)n(u+=l.shift(),f);break;case 8:for(;l.length>0;)m=u+l.shift(),v=f+l.shift(),b=m+l.shift(),y=v+l.shift(),u=b+l.shift(),f=y+l.shift(),s(m,v,b,y,u,f);break;case 10:S=l.pop()+r.subrsBias,(A=r.subrs[S])&&c(A);break;case 11:return;case 12:switch(x=e[p++]){case 34:b=(m=u+l.shift())+l.shift(),k=f+l.shift(),u=b+l.shift(),s(m,f,b,k,u,k),b=(m=u+l.shift())+l.shift(),u=b+l.shift(),s(m,k,b,f,u,f);break;case 35:m=u+l.shift(),v=f+l.shift(),b=m+l.shift(),y=v+l.shift(),u=b+l.shift(),f=y+l.shift(),s(m,v,b,y,u,f),m=u+l.shift(),v=f+l.shift(),b=m+l.shift(),y=v+l.shift(),u=b+l.shift(),f=y+l.shift(),s(m,v,b,y,u,f),l.pop();break;case 36:s(m=u+l.shift(),k=f+l.shift(),b=m+l.shift(),w=k+l.shift(),u=b+l.shift(),w),s(m=u+l.shift(),w,b=m+l.shift(),w+l.shift(),u=b+l.shift(),f);break;case 37:var P=u,_=f;m=u+l.shift(),v=f+l.shift(),b=m+l.shift(),y=v+l.shift(),u=b+l.shift(),f=y+l.shift(),s(m,v,b,y,u,f),m=u+l.shift(),v=f+l.shift(),b=m+l.shift(),y=v+l.shift(),u=b,f=y,Math.abs(u-P)>Math.abs(f-_)?u+=l.shift():f+=l.shift(),s(m,v,b,y,u,f);break;default:(0,a.error)("unknown operator: 12 "+x)}break;case 14:if(l.length>=4){var T=l.pop(),I=l.pop();f=l.pop(),u=l.pop(),t.push({cmd:"save"}),t.push({cmd:"translate",args:[u,f]});var R=h(r.cmap,String.fromCharCode(r.glyphNameMap[o.StandardEncoding[T]]));d(r.glyphs[R.glyphId],t,r),t.push({cmd:"restore"}),R=h(r.cmap,String.fromCharCode(r.glyphNameMap[o.StandardEncoding[I]])),d(r.glyphs[R.glyphId],t,r)}return;case 18:g+=l.length>>1,C=!0;break;case 19:case 20:p+=(g+=l.length>>1)+7>>3,C=!0;break;case 21:f+=l.pop(),i(u+=l.pop(),f),C=!0;break;case 22:i(u+=l.pop(),f),C=!0;break;case 23:g+=l.length>>1,C=!0;break;case 24:for(;l.length>2;)m=u+l.shift(),v=f+l.shift(),b=m+l.shift(),y=v+l.shift(),u=b+l.shift(),f=y+l.shift(),s(m,v,b,y,u,f);u+=l.shift(),f+=l.shift(),n(u,f);break;case 25:for(;l.length>6;)u+=l.shift(),f+=l.shift(),n(u,f);m=u+l.shift(),v=f+l.shift(),b=m+l.shift(),y=v+l.shift(),u=b+l.shift(),f=y+l.shift(),s(m,v,b,y,u,f);break;case 26:for(l.length%2&&(u+=l.shift());l.length>0;)m=u,v=f+l.shift(),b=m+l.shift(),y=v+l.shift(),u=b,f=y+l.shift(),s(m,v,b,y,u,f);break;case 27:for(l.length%2&&(f+=l.shift());l.length>0;)s(m=u+l.shift(),v=f,b=m+l.shift(),y=v+l.shift(),u=b+l.shift(),f=y);break;case 28:l.push((e[p]<<24|e[p+1]<<16)>>16),p+=2;break;case 29:S=l.pop()+r.gsubrsBias,(A=r.gsubrs[S])&&c(A);break;case 30:for(;l.length>0&&(m=u,v=f+l.shift(),b=m+l.shift(),y=v+l.shift(),u=b+l.shift(),f=y+(1===l.length?l.shift():0),s(m,v,b,y,u,f),0!==l.length);)m=u+l.shift(),v=f,b=m+l.shift(),y=v+l.shift(),f=y+l.shift(),s(m,v,b,y,u=b+(1===l.length?l.shift():0),f);break;case 31:for(;l.length>0&&(m=u+l.shift(),v=f,b=m+l.shift(),y=v+l.shift(),f=y+l.shift(),u=b+(1===l.length?l.shift():0),s(m,v,b,y,u,f),0!==l.length);)m=u,v=f+l.shift(),b=m+l.shift(),y=v+l.shift(),u=b+l.shift(),f=y+(1===l.length?l.shift():0),s(m,v,b,y,u,f);break;default:x<32&&(0,a.error)("unknown operator: "+x),x<247?l.push(x-139):x<251?l.push(256*(x-247)+e[p++]+108):x<255?l.push(256*-(x-251)-e[p++]-108):(l.push((e[p]<<24|e[p+1]<<16|e[p+2]<<8|e[p+3])/65536),p+=4)}C&&(l.length=0)}}var l=[],u=0,f=0,g=0;c(e)}function f(e){this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null),this.fontMatrix=e}function g(e,t,r){r=r||[488e-6,0,0,488e-6,0,0],f.call(this,r),this.glyphs=e,this.cmap=t}function p(e,t,r,a){r=r||[.001,0,0,.001,0,0],f.call(this,r),this.glyphs=e.glyphs,this.gsubrs=e.gsubrs||[],this.subrs=e.subrs||[],this.cmap=t,this.glyphNameMap=a||(0,n.getGlyphsUnicode)(),this.gsubrsBias=this.gsubrs.length<1240?107:this.gsubrs.length<33900?1131:32768,this.subrsBias=this.subrs.length<1240?107:this.subrs.length<33900?1131:32768}return f.prototype={getPathJs:function(e){var t=h(this.cmap,e),r=this.compiledGlyphs[t.glyphId];return r||(r=this.compileGlyph(this.glyphs[t.glyphId]),this.compiledGlyphs[t.glyphId]=r),void 0===this.compiledCharCodeToGlyphId[t.charCode]&&(this.compiledCharCodeToGlyphId[t.charCode]=t.glyphId),r},compileGlyph:function(e){if(!e||0===e.length||14===e[0])return"";var t=[];return t.push({cmd:"save"}),t.push({cmd:"transform",args:this.fontMatrix.slice()}),t.push({cmd:"scale",args:["size","-size"]}),this.compileGlyphImpl(e,t),t.push({cmd:"restore"}),t},compileGlyphImpl:function(){(0,a.error)("Children classes should implement this.")},hasBuiltPath:function(e){var t=h(this.cmap,e);return void 0!==this.compiledGlyphs[t.glyphId]&&void 0!==this.compiledCharCodeToGlyphId[t.charCode]}},a.Util.inherit(g,f,{compileGlyphImpl:function(e,t){u(e,t,this)}}),a.Util.inherit(p,f,{compileGlyphImpl:function(e,t){d(e,t,this)}}),{create:function(i,n){for(var o,s,h,u,d,f,m=new Uint8Array(i.data),b=t(m,4),v=0,y=12;v<b;v++,y+=16){var k=(0,a.bytesToString)(m.subarray(y,y+4)),w=e(m,y+8),S=e(m,y+12);switch(k){case"cmap":o=r(m,w,w+S);break;case"glyf":s=m.subarray(w,w+S);break;case"loca":h=m.subarray(w,w+S);break;case"head":f=t(m,w+18),d=t(m,w+50);break;case"CFF ":u=c(m,w,w+S,n)}}if(s){var A=f?[1/f,0,0,1/f,0,0]:i.fontMatrix;return new g(l(s,h,d),o,A)}return new p(u,o,i.fontMatrix,i.glyphNameMap)}}}();t.FontRendererFactory=c},function(e,t,r){"use strict";function a(e){if(e.fontMatrix&&e.fontMatrix[0]!==c.FONT_IDENTITY_MATRIX[0]){var t=.001/e.fontMatrix[0],r=e.widths;for(var a in r)r[a]*=t;e.defaultWidth*=t}}function i(e,t){if(!e.hasIncludedToUnicodeMap&&!(e.hasEncoding||t===e.defaultEncoding||e.toUnicode instanceof P)){var r=[],a=(0,h.getGlyphsUnicode)();for(var i in t){var n=t[i],o=(0,f.getUnicodeForGlyph)(n,a);-1!==o&&(r[i]=String.fromCharCode(o))}e.toUnicode.amend(r)}}function n(e,t){switch(e){case"Type1":return"Type1C"===t?c.FontType.TYPE1C:c.FontType.TYPE1;case"CIDFontType0":return"CIDFontType0C"===t?c.FontType.CIDFONTTYPE0C:c.FontType.CIDFONTTYPE0;case"OpenType":return c.FontType.OPENTYPE;case"TrueType":return c.FontType.TRUETYPE;case"CIDFontType2":return c.FontType.CIDFONTTYPE2;case"MMType1":return c.FontType.MMTYPE1;case"Type0":return c.FontType.TYPE0;default:return c.FontType.UNKNOWN}}function o(e,t){if(void 0!==t[e])return e;var r=(0,f.getUnicodeForGlyph)(e,t);if(-1!==r)for(var a in t)if(t[a]===r)return a;return(0,c.info)("Unable to recover a standard glyph name for: "+e),e}function s(e,t,r){var a,i,n,s=Object.create(null),c=!!(e.flags&S.Symbolic);if(e.baseEncodingName)for(n=(0,u.getEncoding)(e.baseEncodingName),i=0;i<n.length;i++)a=r.indexOf(n[i]),s[i]=a>=0?a:0;else if(c)for(i in t)s[i]=t[i];else for(n=u.StandardEncoding,i=0;i<n.length;i++)a=r.indexOf(n[i]),s[i]=a>=0?a:0;var l,d=e.differences;if(d)for(i in d){var f=d[i];if(-1===(a=r.indexOf(f))){l||(l=(0,h.getGlyphsUnicode)());var g=o(f,l);g!==f&&(a=r.indexOf(g))}s[i]=a>=0?a:0}return s}Object.defineProperty(t,"__esModule",{value:!0}),t.getFontType=t.ProblematicCharRanges=t.IdentityToUnicodeMap=t.ToUnicodeMap=t.FontFlags=t.Font=t.ErrorFont=t.PRIVATE_USE_OFFSET_END=t.PRIVATE_USE_OFFSET_START=t.SEAC_ANALYSIS_ENABLED=void 0;var c=r(0),l=r(15),h=r(8),u=r(5),d=r(21),f=r(22),g=r(33),p=r(2),m=r(44),b=57344,v=63743,y=!1,k=1e3,w=!1,S={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144},A=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"],C=function(){function e(e,t,r,a,i,n,o,s){this.fontChar=e,this.unicode=t,this.accent=r,this.width=a,this.vmetric=i,this.operatorListId=n,this.isSpace=o,this.isInFont=s}return e.prototype.matchesForCache=function(e,t,r,a,i,n,o,s){return this.fontChar===e&&this.unicode===t&&this.accent===r&&this.width===a&&this.vmetric===i&&this.operatorListId===n&&this.isSpace===o&&this.isInFont===s},e}(),x=function(){function e(e){this._map=e}return e.prototype={get length(){return this._map.length},forEach:function(e){for(var t in this._map)e(t,this._map[t].charCodeAt(0))},has:function(e){return void 0!==this._map[e]},get:function(e){return this._map[e]},charCodeOf:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1},amend:function(e){for(var t in e)this._map[t]=e[t]}},e}(),P=function(){function e(e,t){this.firstChar=e,this.lastChar=t}return e.prototype={get length(){return this.lastChar+1-this.firstChar},forEach:function(e){for(var t=this.firstChar,r=this.lastChar;t<=r;t++)e(t,t)},has:function(e){return this.firstChar<=e&&e<=this.lastChar},get:function(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)},charCodeOf:function(e){return(0,c.isInt)(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1},amend:function(e){(0,c.error)("Should not call amend()")}},e}(),_=function(){function e(e,t,r){e[t]=r>>8&255,e[t+1]=255&r}function t(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function r(e,t,r){var a,i;if(r instanceof Uint8Array)e.set(r,t);else if("string"==typeof r)for(a=0,i=r.length;a<i;a++)e[t++]=255&r.charCodeAt(a);else for(a=0,i=r.length;a<i;a++)e[t++]=255&r[a]}function a(e){this.sfnt=e,this.tables=Object.create(null)}a.getSearchParams=function(e,t){for(var r=1,a=0;(r^e)>r;)r<<=1,a++;var i=r*t;return{range:i,entry:a,rangeShift:t*e-i}};return a.prototype={toArray:function(){var i=this.sfnt,n=this.tables,o=Object.keys(n);o.sort();var s,l,h,u,d,f=o.length,g=12+16*f,p=[g];for(s=0;s<f;s++)g+=((u=n[o[s]]).length+3&-4)>>>0,p.push(g);var m=new Uint8Array(g);for(s=0;s<f;s++)u=n[o[s]],r(m,p[s],u);"true"===i&&(i=(0,c.string32)(65536)),m[0]=255&i.charCodeAt(0),m[1]=255&i.charCodeAt(1),m[2]=255&i.charCodeAt(2),m[3]=255&i.charCodeAt(3),e(m,4,f);var b=a.getSearchParams(f,16);for(e(m,6,b.range),e(m,8,b.entry),e(m,10,b.rangeShift),g=12,s=0;s<f;s++){d=o[s],m[g]=255&d.charCodeAt(0),m[g+1]=255&d.charCodeAt(1),m[g+2]=255&d.charCodeAt(2),m[g+3]=255&d.charCodeAt(3);var v=0;for(l=p[s],h=p[s+1];l<h;l+=4)v=v+(0,c.readUint32)(m,l)>>>0;t(m,g+4,v),t(m,g+8,p[s]),t(m,g+12,n[d].length),g+=16}return m},addTable:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}},a}(),T=new Int32Array([0,32,127,161,173,174,1536,1920,2208,4256,6016,6144,7168,7248,8192,8208,8209,8210,8232,8240,8287,8304,9676,9677,12288,12289,12644,12645,43616,43648,65520,65536]),I=function(){function e(e,t,r){var i,o,s,l=this;this.name=e,this.loadedName=r.loadedName,this.isType3Font=r.isType3Font,this.sizes=[],this.missingFile=!1,this.glyphCache=Object.create(null),this.isSerifFont=!!(r.flags&S.Serif),this.isSymbolicFont=!!(r.flags&S.Symbolic),this.isMonospace=!!(r.flags&S.FixedPitch);var g=r.type,p=r.subtype;if(this.type=g,this.fallbackName=this.isMonospace?"monospace":this.isSerifFont?"serif":"sans-serif",this.differences=r.differences,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.composite=r.composite,this.wideChars=r.wideChars,this.cMap=r.cMap,this.ascent=r.ascent/k,this.descent=r.descent/k,this.fontMatrix=r.fontMatrix,this.bbox=r.bbox,this.toUnicode=r.toUnicode,this.toFontChar=[],"Type3"!==r.type){this.cidEncoding=r.cidEncoding,this.vertical=r.vertical,this.vertical&&(this.vmetrics=r.vmetrics,this.defaultVMetrics=r.defaultVMetrics);var m;if(!t||t.isEmpty){t&&(0,c.warn)('Font file is empty in "'+e+'" ('+this.loadedName+")"),this.missingFile=!0;var b=e.replace(/[,_]/g,"-"),v=(0,d.getStdFontMap)(),y=(0,d.getNonStdFontMap)(),w=!!v[b]||!(!y[b]||!v[y[b]]);if(b=v[b]||y[b]||b,this.bold=-1!==b.search(/bold/gi),this.italic=-1!==b.search(/oblique/gi)||-1!==b.search(/italic/gi),this.black=-1!==e.search(/Black/g),this.remeasure=Object.keys(this.widths).length>0,w&&"CIDFontType2"===g&&0===r.cidEncoding.indexOf("Identity-")){var A=(0,d.getGlyphMapForStandardFonts)(),C=[];for(i in A)C[+i]=A[i];if(/Arial-?Black/i.test(e)){var _=(0,d.getSupplementalGlyphMapForArialBlack)();for(i in _)C[+i]=_[i]}this.toUnicode instanceof P||this.toUnicode.forEach(function(e,t){C[+e]=t}),this.toFontChar=C,this.toUnicode=new x(C)}else/Symbol/i.test(b)?this.toFontChar=D(u.SymbolSetEncoding,(0,h.getGlyphsUnicode)(),r.differences):/Dingbats/i.test(b)?(/Wingdings/i.test(e)&&(0,c.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=D(u.ZapfDingbatsEncoding,(0,h.getDingbatsGlyphsUnicode)(),r.differences)):w?this.toFontChar=D(r.defaultEncoding,(0,h.getGlyphsUnicode)(),r.differences):(m=(0,h.getGlyphsUnicode)(),this.toUnicode.forEach(function(e,t){l.composite||(o=r.differences[e]||r.defaultEncoding[e],-1!==(s=(0,f.getUnicodeForGlyph)(o,m))&&(t=s)),l.toFontChar[e]=t}));return this.loadedName=b.split("-")[0],this.loading=!1,void(this.fontType=n(g,p))}"Type1C"===p&&("Type1"!==g&&"MMType1"!==g?R(t)?p="TrueType":g="Type1":F(t)&&(g=p="OpenType")),"CIDFontType0C"===p&&"CIDFontType0"!==g&&(g="CIDFontType0"),"OpenType"===p&&(g="OpenType"),"CIDFontType0"===g&&(L(t)?p="CIDFontType0":F(t)?g=p="OpenType":p="CIDFontType0C");var T;switch(g){case"MMType1":(0,c.info)("MMType1 font ("+e+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var I="Type1C"===p||"CIDFontType0C"===p?new E(t,r):new O(e,t,r);a(r),T=this.convert(e,I,r);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",T=this.checkAndRepair(e,t,r),this.isOpenType&&(a(r),g="OpenType");break;default:(0,c.error)("Font "+g+" is not supported")}this.data=T,this.fontType=n(g,p),this.fontMatrix=r.fontMatrix,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.toUnicode=r.toUnicode,this.encoding=r.baseEncoding,this.seacMap=r.seacMap,this.loading=!0}else{for(i=0;i<256;i++)this.toFontChar[i]=this.differences[i]||r.defaultEncoding[i];this.fontType=c.FontType.TYPE3}}function t(e,t){return(e<<8)+t}function r(e,t){var r=(e<<8)+t;return 32768&r?r-65536:r}function s(e,t,r,a){return(e<<24)+(t<<16)+(r<<8)+a}function m(e){return String.fromCharCode(e>>8&255,255&e)}function I(e){return e=e>32767?32767:e<-32768?-32768:e,String.fromCharCode(e>>8&255,255&e)}function R(e){var t=e.peekBytes(4);return 65536===(0,c.readUint32)(t,0)}function F(e){var t=e.peekBytes(4);return"OTTO"===(0,c.bytesToString)(t)}function L(e){var t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}function D(e,t,r){for(var a,i=[],n=0,o=e.length;n<o;n++)-1!==(a=(0,f.getUnicodeForGlyph)(e[n],t))&&(i[n]=a);for(var s in r)-1!==(a=(0,f.getUnicodeForGlyph)(r[s],t))&&(i[+s]=a);return i}function M(e){for(var t=0,r=T.length-1;t<r;){var a=t+r+1>>1;e<T[a]?r=a-1:t=a}return!(1&t)}function B(e,t){var r=t.toUnicode,a=!!(t.flags&S.Symbolic),i=t.toUnicode instanceof P,n=Object.create(null),o=[],s=[],c=b;for(var l in e){var h=e[l|=0],u=l,d=!1;if(!i&&r.has(l)){d=!0;var f=r.get(u);1===f.length&&(u=f.charCodeAt(0))}if((void 0!==s[u]||M(u)||a&&!d)&&c<=v)do{u=c++,y&&61440===u&&(c=(u=61472)+1)}while(void 0!==s[u]&&c<=v);n[u]=h,o[l]=u,s[u]=!0}return{toFontChar:o,charCodeToGlyphId:n,nextAvailableFontCharCode:c}}function N(e,t){var r=[];for(var a in e)e[a]>=t||r.push({fontCharCode:0|a,glyphId:e[a]});r.sort(function(e,t){return e.fontCharCode-t.fontCharCode});for(var i=[],n=r.length,o=0;o<n;){var s=r[o].fontCharCode,c=[r[o].glyphId];++o;for(var l=s;o<n&&l+1===r[o].fontCharCode&&(c.push(r[o].glyphId),++l,++o,65535!==l););i.push([s,l,c])}return i}function U(e,t){var r,a,i,n,o=N(e,t),s=o[o.length-1][1]>65535?2:1,l="\0\0"+m(s)+"\0\0"+(0,c.string32)(4+8*s);for(r=o.length-1;r>=0&&!(o[r][0]<=65535);--r);var h=r+1;o[r][0]<65535&&65535===o[r][1]&&(o[r][1]=65534);var u,d,f,g,p=o[r][1]<65535?1:0,b=h+p,v=_.getSearchParams(b,2),y="",k="",w="",S="",A="",C=0;for(r=0,a=h;r<a;r++){d=(u=o[r])[0],f=u[1],y+=m(d),k+=m(f);var x=!0;for(i=1,n=(g=u[2]).length;i<n;++i)if(g[i]!==g[i-1]+1){x=!1;break}if(x)w+=m(g[0]-d&65535),S+=m(0);else{var P=2*(b-r)+2*C;for(C+=f-d+1,w+=m(0),S+=m(P),i=0,n=g.length;i<n;++i)A+=m(g[i])}}p>0&&(k+="ÿÿ",y+="ÿÿ",w+="\0",S+="\0\0");var T="\0\0"+m(2*b)+m(v.range)+m(v.entry)+m(v.rangeShift)+k+"\0\0"+y+w+S+A,I="",R="";if(s>1){for(l+="\0\0\n"+(0,c.string32)(4+8*s+4+T.length),I="",r=0,a=o.length;r<a;r++){d=(u=o[r])[0];var O=(g=u[2])[0];for(i=1,n=g.length;i<n;++i)g[i]!==g[i-1]+1&&(f=u[0]+i-1,I+=(0,c.string32)(d)+(0,c.string32)(f)+(0,c.string32)(O),d=f+1,O=g[i]);I+=(0,c.string32)(d)+(0,c.string32)(u[1])+(0,c.string32)(O)}R="\0\f\0\0"+(0,c.string32)(I.length+16)+"\0\0\0\0"+(0,c.string32)(I.length/12)}return l+"\0"+m(T.length+4)+T+R+I}function j(e){var t=new p.Stream(e.data),r=t.getUint16();t.getBytes(60);var a=t.getUint16();return!(r<4&&768&a)&&(!(t.getUint16()>t.getUint16())&&(t.getBytes(6),0!==t.getUint16()&&(e.data[8]=e.data[9]=0,!0)))}function q(e,t,r){r=r||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var a=0,i=0,n=0,o=0,s=null,l=0;if(t)for(var h in t){(s>(h|=0)||!s)&&(s=h),l<h&&(l=h);var u=(0,f.getUnicodeRangeFor)(h);u<32?a|=1<<u:u<64?i|=1<<u-32:u<96?n|=1<<u-64:u<123?o|=1<<u-96:(0,c.error)("Unicode ranges Bits > 123 are reserved for internal usage")}else s=0,l=255;var d=e.bbox||[0,0,0,0],g=r.unitsPerEm||1/(e.fontMatrix||c.FONT_IDENTITY_MATRIX)[0],p=e.ascentScaled?1:g/k,b=r.ascent||Math.round(p*(e.ascent||d[3])),v=r.descent||Math.round(p*(e.descent||d[1]));v>0&&e.descent>0&&d[1]<0&&(v=-v);var y=r.yMax||b,w=-r.yMin||-v;return"\0$ô\0\0\0Š»\0\0\0ŒŠ»\0\0ß\x001\0\0\0\0"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,c.string32)(a)+(0,c.string32)(i)+(0,c.string32)(n)+(0,c.string32)(o)+"*21*"+m(e.italicAngle?1:0)+m(s||e.firstChar)+m(l||e.lastChar)+m(b)+m(v)+"\0d"+m(y)+m(w)+"\0\0\0\0\0\0\0\0"+m(e.xHeight)+m(e.capHeight)+m(0)+m(s||e.firstChar)+"\0"}function z(e){var t=Math.floor(e.italicAngle*Math.pow(2,16));return"\0\0\0"+(0,c.string32)(t)+"\0\0\0\0"+(0,c.string32)(e.fixedPitch)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function G(e,t){t||(t=[[],[]]);var r,a,i,n,o,s=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||"",t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],c=[];for(r=0,a=s.length;r<a;r++){var l=[];for(i=0,n=(o=t[1][r]||s[r]).length;i<n;i++)l.push(m(o.charCodeAt(i)));c.push(l.join(""))}var h=[s,c],u=["\0","\0"],d=["\0\0","\0"],f=["\0\0","\t"],g=s.length*u.length,p="\0\0"+m(g)+m(12*g+6),b=0;for(r=0,a=u.length;r<a;r++){var v=h[r];for(i=0,n=v.length;i<n;i++)o=v[i],p+=u[r]+d[r]+f[r]+m(i)+m(o.length)+m(b),b+=o.length}return p+=s.join("")+c.join("")}return e.getFontID=function(){var e=1;return function(){return String(e++)}}(),e.prototype={name:null,font:null,mimetype:null,encoding:null,get renderer(){var e=g.FontRendererFactory.create(this,w);return(0,c.shadow)(this,"renderer",e)},exportData:function(){var e={};for(var t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e},checkAndRepair:function(e,i,n){function d(e,t,r,a,i,n){if(r-t<=12)return 0;var o=e.subarray(t,r),s=o[0]<<8|o[1];if(32768&s)return a.set(o,i),o.length;var c,l=10,h=0;for(c=0;c<s;c++)h=(o[l]<<8|o[l+1])+1,l+=2;var u=l,d=o[l]<<8|o[l+1],f=l+=2+d,g=0;for(c=0;c<h;c++){var p=o[l++];192&p&&(o[l-1]=63&p);var m=(2&p?1:16&p?0:2)+(4&p?1:32&p?0:2);if(g+=m,8&p){var b=o[l++];c+=b,g+=b*m}}if(0===g)return 0;var v=l+g;return v>o.length?0:!n&&d>0?(a.set(o.subarray(0,u),i),a.set([0,0],i+u),a.set(o.subarray(f,v),i+u+2),v-=d,o.length-v>3&&(v=v+3&-4),v):o.length-v>3?(v=v+3&-4,a.set(o.subarray(0,v),i),v):(a.set(o,i),o.length)}function f(e,t){for(var r,a,i,n,o,s=e.data,l=0,h=0,u=0,d=[],f=[],g=[],p=t.tooComplexToFollowFunctions,b=!1,v=0,y=0,w=s.length;l<w;){var S=s[l++];if(64===S)if(a=s[l++],b||y)l+=a;else for(r=0;r<a;r++)d.push(s[l++]);else if(65===S)if(a=s[l++],b||y)l+=2*a;else for(r=0;r<a;r++)i=s[l++],d.push(i<<8|s[l++]);else if(176==(248&S))if(a=S-176+1,b||y)l+=a;else for(r=0;r<a;r++)d.push(s[l++]);else if(184==(248&S))if(a=S-184+1,b||y)l+=2*a;else for(r=0;r<a;r++)i=s[l++],d.push(i<<8|s[l++]);else if(43!==S||p)if(44!==S||p){if(45===S)if(b)b=!1,h=l;else{if(!(o=f.pop()))return(0,c.warn)("TT: ENDF bad stack"),void(t.hintsValid=!1);n=g.pop(),s=o.data,l=o.i,t.functionsStackDeltas[n]=d.length-o.stackTop}else if(137===S)(b||y)&&((0,c.warn)("TT: nested IDEFs not allowed"),p=!0),b=!0,u=l;else if(88===S)++v;else if(27===S)y=v;else if(89===S)y===v&&(y=0),--v;else if(28===S&&!b&&!y){var A=d[d.length-1];A>0&&(l+=A-1)}}else(b||y)&&((0,c.warn)("TT: nested FDEFs not allowed"),p=!0),b=!0,u=l,n=d.pop(),t.functionsDefined[n]={data:s,i:l};else if(!b&&!y)if(n=d[d.length-1],t.functionsUsed[n]=!0,n in t.functionsStackDeltas)d.length+=t.functionsStackDeltas[n];else if(n in t.functionsDefined&&g.indexOf(n)<0){if(f.push({data:s,i:l,stackTop:d.length-1}),g.push(n),!(o=t.functionsDefined[n]))return(0,c.warn)("TT: CALL non-existent function"),void(t.hintsValid=!1);s=o.data,l=o.i}if(!b&&!y){var C=S<=142?k[S]:S>=192&&S<=223?-1:S>=224?-2:0;for(S>=113&&S<=117&&(a=d.pop(),isNaN(a)||(C=2*-a));C<0&&d.length>0;)d.pop(),C++;for(;C>0;)d.push(NaN),C--}}t.tooComplexToFollowFunctions=p;var x=[s];l>s.length&&x.push(new Uint8Array(l-s.length)),u>h&&((0,c.warn)("TT: complementing a missing function tail"),x.push(new Uint8Array([34,45]))),m(e,x)}function g(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,c.warn)("TT: more functions defined than expected"),void(e.hintsValid=!1);for(var r=0,a=e.functionsUsed.length;r<a;r++){if(r>t)return(0,c.warn)("TT: invalid function id: "+r),void(e.hintsValid=!1);if(e.functionsUsed[r]&&!e.functionsDefined[r])return(0,c.warn)("TT: undefined function: "+r),void(e.hintsValid=!1)}}}function m(e,t){if(t.length>1){var r,a,i=0;for(r=0,a=t.length;r<a;r++)i+=t[r].length;i=i+3&-4;var n=new Uint8Array(i),o=0;for(r=0,a=t.length;r<a;r++)n.set(t[r],o),o+=t[r].length;e.data=n,e.length=i}}function b(e,t,r){return!H[e]||(!!(!Z&&t>=0&&J.has(t))||!!(K&&r>=0&&(0,c.isNum)(K[r])))}var v,y,k=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2],S=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "],C=function(e){return{version:(0,c.bytesToString)(e.getBytes(4)),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}(i=new p.Stream(new Uint8Array(i.getBytes()))),x=C.numTables,T=Object.create(null);T["OS/2"]=null,T.cmap=null,T.head=null,T.hhea=null,T.hmtx=null,T.maxp=null,T.name=null,T.post=null;for(var I,R=0;R<x;R++)I=function(e){var t=(0,c.bytesToString)(e.getBytes(4)),r=e.getInt32()>>>0,a=e.getInt32()>>>0,i=e.getInt32()>>>0,n=e.pos;e.pos=e.start?e.start:0,e.skip(a);var o=e.getBytes(i);return e.pos=n,"head"===t&&(o[8]=o[9]=o[10]=o[11]=0,o[17]|=32),{tag:t,checksum:r,length:i,offset:a,data:o}}(i),S.indexOf(I.tag)<0||0!==I.length&&(T[I.tag]=I);var O=!T["CFF "];if(O)T.loca||(0,c.error)('Required "loca" table is not found'),T.glyf||((0,c.warn)('Required "glyf" table is not found -- trying to recover.'),T.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1;else{if("OTTO"===C.version&&!n.composite||!T.head||!T.hhea||!T.maxp||!T.post)return y=new p.Stream(T["CFF "].data),v=new E(y,n),a(n),this.convert(e,v,n);delete T.glyf,delete T.loca,delete T.fpgm,delete T.prep,delete T["cvt "],this.isOpenType=!0}T.maxp||(0,c.error)('Required "maxp" table is not found'),i.pos=(i.start||0)+T.maxp.offset;var F=i.getInt32(),L=i.getUint16(),D=0;F>=65536&&T.maxp.length>=22&&(i.pos+=8,i.getUint16()>2&&(T.maxp.data[14]=0,T.maxp.data[15]=2),i.pos+=4,D=i.getUint16());var M=!1;"CIDFontType2"===n.type&&n.toUnicode&&n.toUnicode.get(0)>"\0"&&(M=!0,L++,T.maxp.data[4]=L>>8,T.maxp.data[5]=255&L);var N=function(e,t,r,a){var i={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&f(e,i),t&&f(t,i),e&&g(i,a),r&&1&r.length){var n=new Uint8Array(r.length+1);n.set(r.data),r.data=n}return i.hintsValid}(T.fpgm,T.prep,T["cvt "],D);N||(delete T.fpgm,delete T.prep,delete T["cvt "]),function(e,t,r,a){if(t){e.pos=(e.start?e.start:0)+t.offset,e.pos+=t.length-2;var i=e.getUint16();i>a&&((0,c.info)("The numOfMetrics ("+i+") should not be greater than the numGlyphs ("+a+")"),i=a,t.data[34]=(65280&i)>>8,t.data[35]=255&i);var n=a-i-(r.length-4*i>>1);if(n>0){var o=new Uint8Array(r.length+2*n);o.set(r.data),r.data=o}}else r&&(r.data=null)}(i,T.hhea,T.hmtx,L),T.head||(0,c.error)('Required "head" table is not found'),function(e,r,a){var i=e.data,n=s(i[0],i[1],i[2],i[3]);n>>16!=1&&((0,c.info)("Attempting to fix invalid version in head table: "+n),i[0]=0,i[1]=1,i[2]=0,i[3]=0);var o=t(i[50],i[51]);if(o<0||o>1){(0,c.info)("Attempting to fix invalid indexToLocFormat in head table: "+o);var l=r+1;a===l<<1?(i[50]=0,i[51]=0):a===l<<2?(i[50]=0,i[51]=1):(0,c.warn)("Could not fix indexToLocFormat: "+o)}}(T.head,L,O?T.loca.length:0);var H=Object.create(null);if(O){var W=t(T.head.data[50],T.head.data[51]);H=function(e,t,r,a,i,n){var o,s,c;a?(o=4,s=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},c=function(e,t,r){e[t]=r>>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}):(o=2,s=function(e,t){return e[t]<<9|e[t+1]<<1},c=function(e,t,r){e[t]=r>>9&255,e[t+1]=r>>1&255});var l=e.data,h=o*(1+r);l.length!==h&&((l=new Uint8Array(h)).set(e.data.subarray(0,h)),e.data=l);var u=t.data,f=u.length,g=new Uint8Array(f),p=s(l,0),m=0,b=Object.create(null);c(l,0,m);var v,y;for(v=0,y=o;v<r;v++,y+=o){var k=s(l,y);k>f&&(f+3&-4)===k&&(k=f),k>f?(c(l,y,m),p=k):(p===k&&(b[v]=!0),c(l,y,m+=d(u,p,k,g,m,i)),p=k)}if(0===m){var w=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(v=0,y=o;v<r;v++,y+=o)c(l,y,w.length);return t.data=w,b}if(n){var S=s(l,o);g.length>S+m?t.data=g.subarray(0,S+m):(t.data=new Uint8Array(S+m),t.data.set(g.subarray(0,m))),t.data.set(g.subarray(0,S),m),c(e.data,l.length-o,m+S)}else t.data=g.subarray(0,m);return b}(T.loca,T.glyf,L,W,N,M)}T.hhea||(0,c.error)('Required "hhea" table is not found'),0===T.hhea.data[10]&&0===T.hhea.data[11]&&(T.hhea.data[10]=255,T.hhea.data[11]=255);var X={unitsPerEm:t(T.head.data[18],T.head.data[19]),yMax:t(T.head.data[42],T.head.data[43]),yMin:r(T.head.data[38],T.head.data[39]),ascent:t(T.hhea.data[4],T.hhea.data[5]),descent:r(T.hhea.data[6],T.hhea.data[7])};this.ascent=X.ascent/X.unitsPerEm,this.descent=X.descent/X.unitsPerEm,T.post&&(function(e,t,r){var a=(i.start?i.start:0)+e.offset;i.pos=a;var n=a+e.length,o=i.getInt32();i.getBytes(28);var s,l,h=!0;switch(o){case 65536:s=A;break;case 131072:var u=i.getUint16();if(u!==r){h=!1;break}var d=[];for(l=0;l<u;++l){var f=i.getUint16();if(f>=32768){h=!1;break}d.push(f)}if(!h)break;for(var g=[],p=[];i.pos<n;){var m=i.getByte();for(p.length=m,l=0;l<m;++l)p[l]=String.fromCharCode(i.getByte());g.push(p.join(""))}for(s=[],l=0;l<u;++l){var b=d[l];b<258?s.push(A[b]):s.push(g[b-258])}break;case 196608:break;default:(0,c.warn)("Unknown/unsupported post table version "+o),h=!1,t.defaultEncoding&&(s=t.defaultEncoding)}return t.glyphNames=s,h}(T.post,n,L)||(T.post=null));var V,Y=[],J=n.toUnicode,K=n.widths,Z=J instanceof P||65536===J.length;if(n.composite){var Q=n.cidToGidMap||[],$=0===Q.length;n.cMap.forEach(function(e,t){(0,c.assert)(t<=65535,"Max size of CID is 65,535");var r=-1;$?r=t:void 0!==Q[t]&&(r=Q[t]),r>=0&&r<L&&b(r,e,t)&&(Y[e]=r)}),!M||!$&&Y[0]||(Y[0]=L-1)}else{var ee=function(e,t,r,a){if(!e)return(0,c.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var i,n=(t.start?t.start:0)+e.offset;t.pos=n,t.getUint16();for(var o,s=t.getUint16(),l=!1,h=0;h<s;h++){var u=t.getUint16(),d=t.getUint16(),f=t.getInt32()>>>0,g=!1;if(0===u&&0===d?g=!0:1===u&&0===d?g=!0:3!==u||1!==d||!a&&o?r&&3===u&&0===d&&(g=!0,l=!0):(g=!0,r||(l=!0)),g&&(o={platformId:u,encodingId:d,offset:f}),l)break}if(o&&(t.pos=n+o.offset),!o||-1===t.peekByte())return(0,c.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var p=t.getUint16();t.getUint16(),t.getUint16();var m,b,v=!1,y=[];if(0===p){for(m=0;m<256;m++){var k=t.getByte();k&&y.push({charCode:m,glyphId:k})}v=!0}else if(4===p){var w=t.getUint16()>>1;t.getBytes(6);var S,A=[];for(S=0;S<w;S++)A.push({end:t.getUint16()});for(t.getUint16(),S=0;S<w;S++)A[S].start=t.getUint16();for(S=0;S<w;S++)A[S].delta=t.getUint16();var C=0;for(S=0;S<w;S++){i=A[S];var x=t.getUint16();if(x){var P=(x>>1)-(w-S);i.offsetIndex=P,C=Math.max(C,P+i.end-i.start+1)}else i.offsetIndex=-1}var _=[];for(m=0;m<C;m++)_.push(t.getUint16());for(S=0;S<w;S++){n=(i=A[S]).start;var T=i.end,I=i.delta;for(P=i.offsetIndex,m=n;m<=T;m++)65535!==m&&(b=(b=P<0?m:_[P+m-n])+I&65535,y.push({charCode:m,glyphId:b}))}}else{if(6!==p)return(0,c.warn)("cmap table has unsupported format: "+p),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var R=t.getUint16(),O=t.getUint16();for(m=0;m<O;m++){b=t.getUint16();var E=R+m;y.push({charCode:E,glyphId:b})}}for(y.sort(function(e,t){return e.charCode-t.charCode}),h=1;h<y.length;h++)y[h-1].charCode===y[h].charCode&&(y.splice(h,1),h--);return{platformId:o.platformId,encodingId:o.encodingId,mappings:y,hasShortCmap:v}}(T.cmap,i,this.isSymbolicFont,n.hasEncoding),te=ee.platformId,re=ee.encodingId,ae=ee.mappings,ie=ae.length;if(n.hasEncoding&&(3===te&&1===re||1===te&&0===re)||-1===te&&-1===re&&(0,u.getEncoding)(n.baseEncodingName)){var ne=[];"MacRomanEncoding"!==n.baseEncodingName&&"WinAnsiEncoding"!==n.baseEncodingName||(ne=(0,u.getEncoding)(n.baseEncodingName));var oe=(0,h.getGlyphsUnicode)();for(V=0;V<256;V++){var se,ce;if(se=this.differences&&V in this.differences?this.differences[V]:V in ne&&""!==ne[V]?ne[V]:u.StandardEncoding[V]){ce=o(se,oe);var le,he=!1;3===te&&1===re?(le=oe[ce],he=!0):1===te&&0===re&&(le=u.MacRomanEncoding.indexOf(ce));var ue=!1;for(R=0;R<ie;++R)if(ae[R].charCode===le){var de=he?V:le;if(b(ae[R].glyphId,de,-1)){Y[V]=ae[R].glyphId,ue=!0;break}}if(!ue&&n.glyphNames){var fe=n.glyphNames.indexOf(se);-1===fe&&ce!==se&&(fe=n.glyphNames.indexOf(ce)),fe>0&&b(fe,-1,-1)&&(Y[V]=fe,ue=!0)}ue||(Y[V]=0)}}}else if(0===te&&0===re)for(R=0;R<ie;++R)Y[ae[R].charCode]=ae[R].glyphId;else for(R=0;R<ie;++R)V=255&ae[R].charCode,Y[V]=ae[R].glyphId}0===Y.length&&(Y[0]=0);var ge=B(Y,n);if(this.toFontChar=ge.toFontChar,T.cmap={tag:"cmap",data:U(ge.charCodeToGlyphId,L)},T["OS/2"]&&j(T["OS/2"])||(T["OS/2"]={tag:"OS/2",data:q(n,ge.charCodeToGlyphId,X)}),T.post||(T.post={tag:"post",data:z(n)}),!O)try{y=new p.Stream(T["CFF "].data),v=new l.CFFParser(y,n,w).parse();var pe=new l.CFFCompiler(v);T["CFF "].data=pe.compile()}catch(e){(0,c.warn)("Failed to compile font "+n.loadedName)}if(T.name){var me=function(e){var t=(i.start?i.start:0)+e.offset;i.pos=t;var r=[[],[]],a=e.length,n=t+a;if(0!==i.getUint16()||a<6)return r;var o,s,l=i.getUint16(),h=i.getUint16(),u=[];for(o=0;o<l&&i.pos+12<=n;o++){var d={platform:i.getUint16(),encoding:i.getUint16(),language:i.getUint16(),name:i.getUint16(),length:i.getUint16(),offset:i.getUint16()};(1===d.platform&&0===d.encoding&&0===d.language||3===d.platform&&1===d.encoding&&1033===d.language)&&u.push(d)}for(o=0,s=u.length;o<s;o++){var f=u[o];if(!(f.length<=0)){var g=t+h+f.offset;if(!(g+f.length>n)){i.pos=g;var p=f.name;if(f.encoding){for(var m="",b=0,v=f.length;b<v;b+=2)m+=String.fromCharCode(i.getUint16());r[1][p]=m}else r[0][p]=(0,c.bytesToString)(i.getBytes(f.length))}}}return r}(T.name);T.name.data=G(e,me)}else T.name={tag:"name",data:G(this.name)};var be=new _(C.version);for(var ve in T)be.addTable(ve,T[ve].data);return be.toArray()},convert:function(e,t,r){function a(e,t){for(var r in e)if(t===e[r])return 0|r;return o.charCodeToGlyphId[o.nextAvailableFontCharCode]=t,o.nextAvailableFontCharCode++}r.fixedPitch=!1,r.builtInEncoding&&i(r,r.builtInEncoding);var n=t.getGlyphMapping(r),o=B(n,r);this.toFontChar=o.toFontChar;var s=t.numGlyphs,l=t.seacs;if(w&&l&&l.length){var h=r.fontMatrix||c.FONT_IDENTITY_MATRIX,d=t.getCharset(),f=Object.create(null);for(var g in l){var p=l[g|=0],b=u.StandardEncoding[p[2]],v=u.StandardEncoding[p[3]],y=d.indexOf(b),k=d.indexOf(v);if(!(y<0||k<0)){var S={x:p[0]*h[0]+p[1]*h[2]+h[4],y:p[0]*h[1]+p[1]*h[3]+h[5]},A=function(e,t){var r=null;for(var a in e)t===e[a]&&(r||(r=[]),r.push(0|a));return r}(n,g);if(A)for(var C=0,x=A.length;C<x;C++){var P=A[C],T=o.charCodeToGlyphId,R=a(T,y),O=a(T,k);f[P]={baseFontCharCode:R,accentFontCharCode:O,accentOffset:S}}}}r.seacMap=f}var E=1/(r.fontMatrix||c.FONT_IDENTITY_MATRIX)[0],F=new _("OTTO");return F.addTable("CFF ",t.data),F.addTable("OS/2",q(r,o.charCodeToGlyphId)),F.addTable("cmap",U(o.charCodeToGlyphId,s)),F.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+I(E)+"\0\0\0\0ž\v~'\0\0\0\0ž\v~'\0\0"+I(r.descent)+"ÿ"+I(r.ascent)+m(r.italicAngle?2:0)+"\0\0\0\0\0\0\0"),F.addTable("hhea","\0\0\0"+I(r.ascent)+I(r.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+I(r.capHeight)+I(Math.tan(r.italicAngle)*r.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+m(s)),F.addTable("hmtx",function(){for(var e=t.charstrings,r=t.cff?t.cff.widths:null,a="\0\0\0\0",i=1,n=s;i<n;i++){var o=0;if(e){var c=e[i-1];o="width"in c?c.width:0}else r&&(o=Math.ceil(r[i]||0));a+=m(o)+m(0)}return a}()),F.addTable("maxp","\0\0P\0"+m(s)),F.addTable("name",G(e)),F.addTable("post",z(r)),F.toArray()},get spaceWidth(){if("_shadowWidth"in this)return this._shadowWidth;for(var e,t=["space","minus","one","i","I"],r=0,a=t.length;r<a;r++){var i=t[r];if(i in this.widths){e=this.widths[i];break}var n=(0,h.getGlyphsUnicode)()[i],o=0;if(this.composite&&this.cMap.contains(n)&&(o=this.cMap.lookup(n)),!o&&this.toUnicode&&(o=this.toUnicode.charCodeOf(n)),o<=0&&(o=n),e=this.widths[o])break}return e=e||this.defaultWidth,this._shadowWidth=e,e},charToGlyph:function(e,t){var r,a,i,n=e;this.cMap&&this.cMap.contains(e)&&(n=this.cMap.lookup(e)),a=this.widths[n],a=(0,c.isNum)(a)?a:this.defaultWidth;var o=this.vmetrics&&this.vmetrics[n],s=this.toUnicode.get(e)||e;"number"==typeof s&&(s=String.fromCharCode(s));var l=e in this.toFontChar;r=this.toFontChar[e]||e,this.missingFile&&(r=(0,f.mapSpecialUnicodeValues)(r)),this.isType3Font&&(i=r);var h=null;if(this.seacMap&&this.seacMap[e]){l=!0;var u=this.seacMap[e];r=u.baseFontCharCode,h={fontChar:String.fromCharCode(u.accentFontCharCode),offset:u.accentOffset}}var d=String.fromCharCode(r),g=this.glyphCache[e];return g&&g.matchesForCache(d,s,h,a,o,i,t,l)||(g=new C(d,s,h,a,o,i,t,l),this.glyphCache[e]=g),g},charsToGlyphs:function(e){var t,r,a,i=this.charsCache;if(i&&(t=i[e]))return t;i||(i=this.charsCache=Object.create(null)),t=[];var n,o=e,s=0;if(this.cMap)for(var c=Object.create(null);s<e.length;){this.cMap.readCharCode(e,s,c),a=c.charcode;var l=c.length;s+=l;var h=1===l&&32===e.charCodeAt(s-1);r=this.charToGlyph(a,h),t.push(r)}else for(s=0,n=e.length;s<n;++s)a=e.charCodeAt(s),r=this.charToGlyph(a,32===a),t.push(r);return i[o]=t}},e}(),R=function(){function e(e){this.error=e,this.loadedName="g_font_error",this.loading=!1}return e.prototype={charsToGlyphs:function(){return[]},exportData:function(){return{error:this.error}}},e}(),O=function(){function e(e,t,r){for(var a,i=e.length,n=t.length,o=i-n,s=r,l=!1;s<o;){for(a=0;a<n&&e[s+a]===t[a];)a++;if(a>=n){for(s+=a;s<i&&(0,c.isSpace)(e[s]);)s++;l=!0;break}s++}return{found:l,length:s}}function t(t,r){var a,i,n,o=[101,101,120,101,99],s=t.pos;try{i=(a=t.getBytes(r)).length}catch(e){if(e instanceof c.MissingDataException)throw e}if(i===r&&(n=e(a,o,r-2*o.length)).found&&n.length===r)return{stream:new p.Stream(a),length:r};(0,c.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),t.pos=s;for(var l;;){if(0===(n=e(t.peekBytes(2048),o,0)).length)break;if(t.pos+=n.length,n.found){l=t.pos-s;break}}return t.pos=s,l?{stream:new p.Stream(t.getBytes(l)),length:l}:((0,c.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new p.Stream(t.getBytes(r)),length:r})}function r(e,t){var r=e.getBytes();return{stream:new p.Stream(r),length:r.length}}function a(e,a,i){var n=i.length1,o=i.length2,s=a.peekBytes(6),c=128===s[0]&&1===s[1];c&&(a.skip(6),n=s[5]<<24|s[4]<<16|s[3]<<8|s[2]);var l=t(a,n);n=l.length,new m.Type1Parser(l.stream,!1,w).extractFontHeader(i),c&&(o=(s=a.getBytes(6))[5]<<24|s[4]<<16|s[3]<<8|s[2]);var h=r(a,o);o=h.length;var u=new m.Type1Parser(h.stream,!0,w).extractFontProgram();for(var d in u.properties)i[d]=u.properties[d];var f=u.charstrings,g=this.getType2Charstrings(f),p=this.getType2Subrs(u.subrs);this.charstrings=f,this.data=this.wrap(e,g,this.charstrings,p,i),this.seacs=this.getSeacs(u.charstrings)}return a.prototype={get numGlyphs(){return this.charstrings.length+1},getCharset:function(){for(var e=[".notdef"],t=this.charstrings,r=0;r<t.length;r++)e.push(t[r].glyphName);return e},getGlyphMapping:function(e){var t,r=this.charstrings,a=[".notdef"];for(t=0;t<r.length;t++)a.push(r[t].glyphName);var i=e.builtInEncoding;if(i){var n=Object.create(null);for(var o in i)(t=a.indexOf(i[o]))>=0&&(n[o]=t)}return s(e,n,a)},getSeacs:function(e){var t,r,a=[];for(t=0,r=e.length;t<r;t++){var i=e[t];i.seac&&(a[t+1]=i.seac)}return a},getType2Charstrings:function(e){for(var t=[],r=0,a=e.length;r<a;r++)t.push(e[r].charstring);return t},getType2Subrs:function(e){var t=0,r=e.length;t=r<1133?107:r<33769?1131:32768;var a,i=[];for(a=0;a<t;a++)i.push([11]);for(a=0;a<r;a++)i.push(e[a]);return i},wrap:function(e,t,r,a,i){var n=new l.CFF;n.header=new l.CFFHeader(1,0,4,4),n.names=[e];var o=new l.CFFTopDict;o.setByName("version",391),o.setByName("Notice",392),o.setByName("FullName",393),o.setByName("FamilyName",394),o.setByName("Weight",395),o.setByName("Encoding",null),o.setByName("FontMatrix",i.fontMatrix),o.setByName("FontBBox",i.bbox),o.setByName("charset",null),o.setByName("CharStrings",null),o.setByName("Private",null),n.topDict=o;var s=new l.CFFStrings;s.add("Version 0.11"),s.add("See original notice"),s.add(e),s.add(e),s.add("Medium"),n.strings=s,n.globalSubrIndex=new l.CFFIndex;var h,u,d=t.length,f=[0];for(h=0;h<d;h++){var g=l.CFFStandardStrings.indexOf(r[h].glyphName);-1===g&&(g=0),f.push(g>>8&255,255&g)}n.charset=new l.CFFCharset(!1,0,[],f);var p=new l.CFFIndex;for(p.add([139,14]),h=0;h<d;h++){var m=t[h];0!==m.length?p.add(m):p.add([139,14])}n.charStrings=p;var b=new l.CFFPrivateDict;b.setByName("Subrs",null);var v=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(h=0,u=v.length;h<u;h++){var y=v[h];if(y in i.privateData){var k=i.privateData[y];if((0,c.isArray)(k))for(var w=k.length-1;w>0;w--)k[w]-=k[w-1];b.setByName(y,k)}}n.topDict.privateDict=b;var S=new l.CFFIndex;for(h=0,u=a.length;h<u;h++)S.add(a[h]);return b.subrsIndex=S,new l.CFFCompiler(n).compile()}},a}(),E=function(){function e(e,t){this.properties=t;var r=new l.CFFParser(e,t,w);this.cff=r.parse();var a=new l.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=a.compile()}catch(r){(0,c.warn)("Failed to compile font "+t.loadedName),this.data=e}}return e.prototype={get numGlyphs(){return this.cff.charStrings.count},getCharset:function(){return this.cff.charset.charset},getGlyphMapping:function(){var e,t,r=this.cff,a=this.properties,i=r.charset.charset;if(a.composite){if(e=Object.create(null),r.isCIDFont)for(t=0;t<i.length;t++){var n=i[t];e[a.cMap.charCodeOf(n)]=t}else for(t=0;t<r.charStrings.count;t++)e[t]=t;return e}return e=s(a,r.encoding?r.encoding.encoding:null,i)}},e}();"undefined"!=typeof navigator&&/Windows/.test(navigator.userAgent)&&(t.SEAC_ANALYSIS_ENABLED=w=!0),"undefined"!=typeof navigator&&/Windows.*Chrome/.test(navigator.userAgent)&&(y=!0),t.SEAC_ANALYSIS_ENABLED=w,t.PRIVATE_USE_OFFSET_START=b,t.PRIVATE_USE_OFFSET_END=v,t.ErrorFont=R,t.Font=I,t.FontFlags=S,t.ToUnicodeMap=x,t.IdentityToUnicodeMap=P,t.ProblematicCharRanges=T,t.getFontType=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var a=r(0),i=r(2),n=r(1),o=r(4),s=r(19),c=function(){function e(e,t){return t&&t.canDecode(e)?t.decode(e):Promise.resolve(e)}function t(e,t,r,a){return e=t+e*r,e<0?0:e>a?a:e}function r(e,t,r,a,i,n){var o,s,c,l,h=i*n,u=t<=8?new Uint8Array(h):t<=16?new Uint16Array(h):new Uint32Array(h),d=r/i,f=a/n,g=0,p=new Uint16Array(i),m=r;for(o=0;o<i;o++)p[o]=Math.floor(o*d);for(o=0;o<n;o++)for(c=Math.floor(o*f)*m,s=0;s<i;s++)l=c+p[s],u[g++]=e[l];return u}function c(e,t,r,i,l,h,u){this.image=r;var d=r.dict;if(d.has("Filter")){var f=d.get("Filter").name;if("JPXDecode"===f){var g=new s.JpxImage;g.parseImageProperties(r.stream),r.stream.reset(),r.bitsPerComponent=g.bitsPerComponent,r.numComps=g.componentsCount}else"JBIG2Decode"===f&&(r.bitsPerComponent=1,r.numComps=1)}this.width=d.get("Width","W"),this.height=d.get("Height","H"),(this.width<1||this.height<1)&&(0,a.error)("Invalid image width: "+this.width+" or height: "+this.height),this.interpolate=d.get("Interpolate","I")||!1,this.imageMask=d.get("ImageMask","IM")||!1,this.matte=d.get("Matte")||!1;var p=r.bitsPerComponent;if(p||(p=d.get("BitsPerComponent","BPC"))||(this.imageMask?p=1:(0,a.error)("Bits per component missing in image: "+this.imageMask)),this.bpc=p,!this.imageMask){var m=d.get("ColorSpace","CS");if(!m)switch((0,a.info)("JPX images (which do not require color spaces)"),r.numComps){case 1:m=n.Name.get("DeviceGray");break;case 3:m=n.Name.get("DeviceRGB");break;case 4:m=n.Name.get("DeviceCMYK");break;default:(0,a.error)("JPX images with "+this.numComps+" color components not supported.")}this.colorSpace=o.ColorSpace.parse(m,e,t),this.numComps=this.colorSpace.numComps}if(this.decode=d.getArray("Decode","D"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode)||u&&!o.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var b=(1<<p)-1;this.decodeCoefficients=[],this.decodeAddends=[];for(var v=0,y=0;v<this.decode.length;v+=2,++y){var k=this.decode[v],w=this.decode[v+1];this.decodeCoefficients[y]=w-k,this.decodeAddends[y]=b*k}}l?this.smask=new c(e,t,l,!1):h&&((0,n.isStream)(h)?h.dict.get("ImageMask","IM")?this.mask=new c(e,t,h,!1,null,null,!0):(0,a.warn)("Ignoring /Mask in image without /ImageMask."):this.mask=h)}return c.buildImage=function(t,r,i,o,s,l){var h,u,d=e(o,l),f=o.dict.get("SMask"),g=o.dict.get("Mask");return f?(h=e(f,l),u=Promise.resolve(null)):(h=Promise.resolve(null),g?(0,n.isStream)(g)?u=e(g,l):(0,a.isArray)(g)?u=Promise.resolve(g):((0,a.warn)("Unsupported mask format."),u=Promise.resolve(null)):u=Promise.resolve(null)),Promise.all([d,h,u]).then(function(e){var t=e[0],a=e[1],n=e[2];return new c(r,i,t,s,a,n)})},c.createMask=function(e,t,r,a,i){var n,o,s=(t+7>>3)*r,c=e.byteLength,l=s===c;if(!a||i&&!l)if(i)for((n=new Uint8Array(s)).set(e),o=c;o<s;o++)n[o]=255;else(n=new Uint8Array(c)).set(e);else n=e;if(i)for(o=0;o<c;o++)n[o]=~n[o];return{data:n,width:t,height:r}},c.prototype={get drawWidth(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0)},get drawHeight(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0)},decodeBuffer:function(e){var r,a,i=this.bpc,n=this.numComps,o=this.decodeAddends,s=this.decodeCoefficients,c=(1<<i)-1;if(1!==i){var l=0;for(r=0,a=this.width*this.height;r<a;r++)for(var h=0;h<n;h++)e[l]=t(e[l],o[h],s[h],c),l++}else for(r=0,a=e.length;r<a;r++)e[r]=+!e[r]},getComponents:function(e){var t=this.bpc;if(8===t)return e;var r,a,i=this.width,n=this.height,o=this.numComps,s=i*n*o,c=0,l=t<=8?new Uint8Array(s):t<=16?new Uint16Array(s):new Uint32Array(s),h=i*o,u=(1<<t)-1,d=0;if(1===t)for(var f,g,p,m=0;m<n;m++){for(g=d+(-8&h),p=d+h;d<g;)a=e[c++],l[d]=a>>7&1,l[d+1]=a>>6&1,l[d+2]=a>>5&1,l[d+3]=a>>4&1,l[d+4]=a>>3&1,l[d+5]=a>>2&1,l[d+6]=a>>1&1,l[d+7]=1&a,d+=8;if(d<p)for(a=e[c++],f=128;d<p;)l[d++]=+!!(a&f),f>>=1}else{var b=0;for(a=0,d=0,r=s;d<r;++d){for(d%h==0&&(a=0,b=0);b<t;)a=a<<8|e[c++],b+=8;var v=b-t,y=a>>v;l[d]=y<0?0:y>u?u:y,a&=(1<<v)-1,b=v}}return l},fillOpacity:function(e,t,i,n,o){var s,l,h,u,d,f,g=this.smask,p=this.mask;if(g)l=g.width,h=g.height,s=new Uint8Array(l*h),g.fillGrayBuffer(s),l===t&&h===i||(s=r(s,g.bpc,l,h,t,i));else if(p)if(p instanceof c){for(l=p.width,h=p.height,s=new Uint8Array(l*h),p.numComps=1,p.fillGrayBuffer(s),u=0,d=l*h;u<d;++u)s[u]=255-s[u];l===t&&h===i||(s=r(s,p.bpc,l,h,t,i))}else if((0,a.isArray)(p)){s=new Uint8Array(t*i);var m=this.numComps;for(u=0,d=t*i;u<d;++u){var b=0,v=u*m;for(f=0;f<m;++f){var y=o[v+f],k=2*f;if(y<p[k]||y>p[k+1]){b=255;break}}s[u]=b}}else(0,a.error)("Unknown mask format.");if(s)for(u=0,f=3,d=t*n;u<d;++u,f+=4)e[f]=s[u];else for(u=0,f=3,d=t*n;u<d;++u,f+=4)e[f]=255},undoPreblend:function(e,t,r){var a=this.smask&&this.smask.matte;if(a)for(var i,n,o,s=this.colorSpace.getRgb(a,0),c=s[0],l=s[1],h=s[2],u=t*r*4,d=0;d<u;d+=4){var f=e[d+3];if(0!==f){var g=255/f;i=(e[d]-c)*g+c,n=(e[d+1]-l)*g+l,o=(e[d+2]-h)*g+h,e[d]=i<=0?0:i>=255?255:0|i,e[d+1]=n<=0?0:n>=255?255:0|n,e[d+2]=o<=0?0:o>=255?255:0|o}else e[d]=255,e[d+1]=255,e[d+2]=255}},createImageData:function(e){var t,r=this.drawWidth,n=this.drawHeight,o={width:r,height:n},s=this.numComps,c=this.width,l=this.height,h=this.bpc,u=c*s*h+7>>3;if(!e){var d;if("DeviceGray"===this.colorSpace.name&&1===h?d=a.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==h||this.needsDecode||(d=a.ImageKind.RGB_24BPP),d&&!this.smask&&!this.mask&&r===c&&n===l){if(o.kind=d,t=this.getImageBytes(l*u),this.image instanceof i.DecodeStream)o.data=t;else{var f=new Uint8Array(t.length);f.set(t),o.data=f}if(this.needsDecode){(0,a.assert)(d===a.ImageKind.GRAYSCALE_1BPP);for(var g=o.data,p=0,m=g.length;p<m;p++)g[p]^=255}return o}if(this.image instanceof i.JpegStream&&!this.smask&&!this.mask&&("DeviceGray"===this.colorSpace.name||"DeviceRGB"===this.colorSpace.name||"DeviceCMYK"===this.colorSpace.name))return o.kind=a.ImageKind.RGB_24BPP,o.data=this.getImageBytes(l*u,r,n,!0),o}var b,v,y=0|(t=this.getImageBytes(l*u)).length/u*n/l,k=this.getComponents(t);return e||this.smask||this.mask?(o.kind=a.ImageKind.RGBA_32BPP,o.data=new Uint8Array(r*n*4),b=1,v=!0,this.fillOpacity(o.data,r,n,y,k)):(o.kind=a.ImageKind.RGB_24BPP,o.data=new Uint8Array(r*n*3),b=0,v=!1),this.needsDecode&&this.decodeBuffer(k),this.colorSpace.fillRgb(o.data,c,l,r,n,y,h,k,b),v&&this.undoPreblend(o.data,r,y),o},fillGrayBuffer:function(e){var t=this.numComps;1!==t&&(0,a.error)("Reading gray scale from a color image: "+t);var r,i,n=this.width,o=this.height,s=this.bpc,c=n*t*s+7>>3,l=this.getImageBytes(o*c),h=this.getComponents(l);if(1!==s){this.needsDecode&&this.decodeBuffer(h),i=n*o;var u=255/((1<<s)-1);for(r=0;r<i;++r)e[r]=u*h[r]|0}else if(i=n*o,this.needsDecode)for(r=0;r<i;++r)e[r]=h[r]-1&255;else for(r=0;r<i;++r)e[r]=255&-h[r]},getImageBytes:function(e,t,r,a){return this.image.reset(),this.image.drawWidth=t||this.width,this.image.drawHeight=r||this.height,this.image.forceRGB=!!a,this.image.getBytes(e)}},c}();t.PDFImage=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Image=void 0;var a=r(0),i=r(14),n=function(){function e(){}function t(e,t,r){this.data=e,this.start=t,this.end=r}function r(e,t,r){function a(e){for(var t=0,a=0;a<e;a++){var o=r.readBit(i,n);n=n<256?n<<1|o:511&(n<<1|o)|256,t=t<<1|o}return t>>>0}var i=e.getContexts(t),n=1,o=a(1),s=a(1)?a(1)?a(1)?a(1)?a(1)?a(32)+4436:a(12)+340:a(8)+84:a(6)+20:a(4)+4:a(2);return 0===o?s:s>0?-s:null}function n(e,t,r){for(var a=e.getContexts("IAID"),i=1,n=0;n<r;n++)i=i<<1|t.readBit(a,i);return r<31?i&(1<<r)-1:2147483647&i}function o(e,t,r){var a,i,n,o,s,c,l,h=r.decoder,u=r.contextCache.getContexts("GB"),d=[];for(i=0;i<t;i++)for(s=d[i]=new Uint8Array(e),c=i<1?s:d[i-1],a=(l=i<2?s:d[i-2])[0]<<13|l[1]<<12|l[2]<<11|c[0]<<7|c[1]<<6|c[2]<<5|c[3]<<4,n=0;n<e;n++)s[n]=o=h.readBit(u,a),a=(31735&a)<<1|(n+3<e?l[n+3]<<11:0)|(n+4<e?c[n+4]<<4:0)|o;return d}function s(e,t,r,i,n,s,c,l){if(e&&(0,a.error)("JBIG2 error: MMR encoding is not supported"),0===i&&!s&&!n&&4===c.length&&3===c[0].x&&-1===c[0].y&&-3===c[1].x&&-1===c[1].y&&2===c[2].x&&-2===c[2].y&&-2===c[3].x&&-2===c[3].y)return o(t,r,l);var h=!!s,u=k[i].concat(c);u.sort(function(e,t){return e.y-t.y||e.x-t.x});var d,f,g=u.length,p=new Int8Array(g),m=new Int8Array(g),b=[],v=0,y=0,w=0,A=0;for(f=0;f<g;f++)p[f]=u[f].x,m[f]=u[f].y,y=Math.min(y,u[f].x),w=Math.max(w,u[f].x),A=Math.min(A,u[f].y),f<g-1&&u[f].y===u[f+1].y&&u[f].x===u[f+1].x-1?v|=1<<g-1-f:b.push(f);var C=b.length,x=new Int8Array(C),P=new Int8Array(C),_=new Uint16Array(C);for(d=0;d<C;d++)f=b[d],x[d]=u[f].x,P[d]=u[f].y,_[d]=1<<g-1-f;for(var T,I,R,O,E,F=-y,L=-A,D=t-w,M=S[i],B=new Uint8Array(t),N=[],U=l.decoder,j=l.contextCache.getContexts("GB"),q=0,z=0,G=0;G<r;G++)if(n&&(q^=U.readBit(j,M)))N.push(B);else for(B=new Uint8Array(B),N.push(B),T=0;T<t;T++)if(h&&s[G][T])B[T]=0;else{if(T>=F&&T<D&&G>=L)for(z=z<<1&v,f=0;f<C;f++)I=G+P[f],R=T+x[f],(O=N[I][R])&&(z|=O=_[f]);else for(z=0,E=g-1,f=0;f<g;f++,E--)(R=T+p[f])>=0&&R<t&&(I=G+m[f])>=0&&(O=N[I][R])&&(z|=O<<E);var H=U.readBit(j,z);B[T]=H}return N}function c(e,t,r,i,n,o,s,c,l){var h=w[r].coding;0===r&&(h=h.concat([c[0]]));var u,d=h.length,f=new Int32Array(d),g=new Int32Array(d);for(u=0;u<d;u++)f[u]=h[u].x,g[u]=h[u].y;var p=w[r].reference;0===r&&(p=p.concat([c[1]]));var m=p.length,b=new Int32Array(m),v=new Int32Array(m);for(u=0;u<m;u++)b[u]=p[u].x,v[u]=p[u].y;for(var y=i[0].length,k=i.length,S=A[r],C=[],x=l.decoder,P=l.contextCache.getContexts("GR"),_=0,T=0;T<t;T++){s&&(_^=x.readBit(P,S))&&(0,a.error)("JBIG2 error: prediction is not supported");var I=new Uint8Array(e);C.push(I);for(var R=0;R<e;R++){var O,E,F=0;for(u=0;u<d;u++)O=T+g[u],E=R+f[u],O<0||E<0||E>=e?F<<=1:F=F<<1|C[O][E];for(u=0;u<m;u++)O=T+v[u]-o,E=R+b[u]-n,O<0||O>=k||E<0||E>=y?F<<=1:F=F<<1|i[O][E];var L=x.readBit(P,F);I[R]=L}}return C}function l(e,t,i,o,l,u,d,f,g,p,m){e&&(0,a.error)("JBIG2 error: huffman is not supported");for(var b=[],v=0,y=(0,a.log2)(i.length+o),k=m.decoder,w=m.contextCache;b.length<o;){v+=r(w,"IADH",k);for(var S=0;;){var A=r(w,"IADW",k);if(null===A)break;S+=A;var C;if(t){var x=r(w,"IAAI",k);if(x>1)C=h(e,t,S,v,0,x,1,i.concat(b),y,0,0,1,0,u,g,p,m);else{var P=n(w,k,y),_=r(w,"IARDX",k),T=r(w,"IARDY",k);C=c(S,v,g,P<i.length?i[P]:b[P-i.length],_,T,!1,p,m)}}else C=s(!1,S,v,d,!1,null,f,m);b.push(C)}}for(var I=[],R=[],O=!1,E=i.length+o;R.length<E;){for(var F=r(w,"IAEX",k);F--;)R.push(O);O=!O}for(var L=0,D=i.length;L<D;L++)R[L]&&I.push(i[L]);for(var M=0;M<o;L++,M++)R[L]&&I.push(b[M]);return I}function h(e,t,i,o,s,l,h,u,d,f,g,p,m,b,v,y,k){e&&(0,a.error)("JBIG2 error: huffman is not supported");var w,S,A=[];for(w=0;w<o;w++){if(S=new Uint8Array(i),s)for(var C=0;C<i;C++)S[C]=s;A.push(S)}var x=k.decoder,P=k.contextCache,_=-r(P,"IADT",x),T=0;for(w=0;w<l;){_+=r(P,"IADT",x);for(var I=T+=r(P,"IAFS",x);;){var R=h*_+(1===h?0:r(P,"IAIT",x)),O=n(P,x,d),E=t&&r(P,"IARI",x),F=u[O],L=F[0].length,D=F.length;if(E){var M=r(P,"IARDW",x),B=r(P,"IARDH",x);F=c(L+=M,D+=B,v,F,(M>>1)+r(P,"IARDX",x),(B>>1)+r(P,"IARDY",x),!1,y,k)}var N,U,j,q=R-(1&p?0:D),z=I-(2&p?L:0);if(f){for(N=0;N<D;N++)if(S=A[z+N]){j=F[N];var G=Math.min(i-q,L);switch(m){case 0:for(U=0;U<G;U++)S[q+U]|=j[U];break;case 2:for(U=0;U<G;U++)S[q+U]^=j[U];break;default:(0,a.error)("JBIG2 error: operator "+m+" is not supported")}}I+=D-1}else{for(U=0;U<D;U++)if(S=A[q+U])switch(j=F[U],m){case 0:for(N=0;N<L;N++)S[z+N]|=j[N];break;case 2:for(N=0;N<L;N++)S[z+N]^=j[N];break;default:(0,a.error)("JBIG2 error: operator "+m+" is not supported")}I+=L-1}w++;var H=r(P,"IADS",x);if(null===H)break;I+=H+g}}return A}function u(e,t){var r={};r.number=(0,a.readUint32)(e,t);var i=e[t+4],n=63&i;y[n]||(0,a.error)("JBIG2 error: invalid segment type: "+n),r.type=n,r.typeName=y[n],r.deferredNonRetain=!!(128&i);var o=!!(64&i),s=e[t+5],c=s>>5&7,l=[31&s],h=t+6;if(7===s){c=536870911&(0,a.readUint32)(e,h-1),h+=3;var u=c+7>>3;for(l[0]=e[h++];--u>0;)l.push(e[h++])}else 5!==s&&6!==s||(0,a.error)("JBIG2 error: invalid referred-to flags");r.retainBits=l;var d,g,p=r.number<=256?1:r.number<=65536?2:4,m=[];for(d=0;d<c;d++){var b=1===p?e[h]:2===p?(0,a.readUint16)(e,h):(0,a.readUint32)(e,h);m.push(b),h+=p}if(r.referredTo=m,o?(r.pageAssociation=(0,a.readUint32)(e,h),h+=4):r.pageAssociation=e[h++],r.length=(0,a.readUint32)(e,h),h+=4,4294967295===r.length)if(38===n){var v=f(e,h),k=!!(1&e[h+C]),w=new Uint8Array(6);for(k||(w[0]=255,w[1]=172),w[2]=v.height>>>24&255,w[3]=v.height>>16&255,w[4]=v.height>>8&255,w[5]=255&v.height,d=h,g=e.length;d<g;d++){for(var S=0;S<6&&w[S]===e[d+S];)S++;if(6===S){r.length=d+6;break}}4294967295===r.length&&(0,a.error)("JBIG2 error: segment end was not found")}else(0,a.error)("JBIG2 error: invalid unknown segment length");return r.headerEnd=h,r}function d(e,t,r,a){for(var i=[],n=r;n<a;){var o=u(t,n);n=o.headerEnd;var s={header:o,data:t};if(e.randomAccess||(s.start=n,n+=o.length,s.end=n),i.push(s),51===o.type)break}if(e.randomAccess)for(var c=0,l=i.length;c<l;c++)i[c].start=n,n+=i[c].header.length,i[c].end=n;return i}function f(e,t){return{width:(0,a.readUint32)(e,t),height:(0,a.readUint32)(e,t+4),x:(0,a.readUint32)(e,t+8),y:(0,a.readUint32)(e,t+12),combinationOperator:7&e[t+16]}}function g(e,t){var r,i,n,o,s=e.header,c=e.data,l=e.start,h=e.end;switch(s.type){case 0:var u={},d=(0,a.readUint16)(c,l);if(u.huffman=!!(1&d),u.refinement=!!(2&d),u.huffmanDHSelector=d>>2&3,u.huffmanDWSelector=d>>4&3,u.bitmapSizeSelector=d>>6&1,u.aggregationInstancesSelector=d>>7&1,u.bitmapCodingContextUsed=!!(256&d),u.bitmapCodingContextRetained=!!(512&d),u.template=d>>10&3,u.refinementTemplate=d>>12&1,l+=2,!u.huffman){for(o=0===u.template?4:1,i=[],n=0;n<o;n++)i.push({x:(0,a.readInt8)(c,l),y:(0,a.readInt8)(c,l+1)}),l+=2;u.at=i}if(u.refinement&&!u.refinementTemplate){for(i=[],n=0;n<2;n++)i.push({x:(0,a.readInt8)(c,l),y:(0,a.readInt8)(c,l+1)}),l+=2;u.refinementAt=i}u.numberOfExportedSymbols=(0,a.readUint32)(c,l),l+=4,u.numberOfNewSymbols=(0,a.readUint32)(c,l),l+=4,r=[u,s.number,s.referredTo,c,l,h];break;case 6:case 7:var g={};g.info=f(c,l),l+=C;var p=(0,a.readUint16)(c,l);if(l+=2,g.huffman=!!(1&p),g.refinement=!!(2&p),g.stripSize=1<<(p>>2&3),g.referenceCorner=p>>4&3,g.transposed=!!(64&p),g.combinationOperator=p>>7&3,g.defaultPixelValue=p>>9&1,g.dsOffset=p<<17>>27,g.refinementTemplate=p>>15&1,g.huffman){var m=(0,a.readUint16)(c,l);l+=2,g.huffmanFS=3&m,g.huffmanDS=m>>2&3,g.huffmanDT=m>>4&3,g.huffmanRefinementDW=m>>6&3,g.huffmanRefinementDH=m>>8&3,g.huffmanRefinementDX=m>>10&3,g.huffmanRefinementDY=m>>12&3,g.huffmanRefinementSizeSelector=!!(14&m)}if(g.refinement&&!g.refinementTemplate){for(i=[],n=0;n<2;n++)i.push({x:(0,a.readInt8)(c,l),y:(0,a.readInt8)(c,l+1)}),l+=2;g.refinementAt=i}g.numberOfSymbolInstances=(0,a.readUint32)(c,l),l+=4,g.huffman&&(0,a.error)("JBIG2 error: huffman is not supported"),r=[g,s.referredTo,c,l,h];break;case 38:case 39:var b={};b.info=f(c,l),l+=C;var v=c[l++];if(b.mmr=!!(1&v),b.template=v>>1&3,b.prediction=!!(8&v),!b.mmr){for(o=0===b.template?4:1,i=[],n=0;n<o;n++)i.push({x:(0,a.readInt8)(c,l),y:(0,a.readInt8)(c,l+1)}),l+=2;b.at=i}r=[b,c,l,h];break;case 48:var y={width:(0,a.readUint32)(c,l),height:(0,a.readUint32)(c,l+4),resolutionX:(0,a.readUint32)(c,l+8),resolutionY:(0,a.readUint32)(c,l+12)};4294967295===y.height&&delete y.height;var k=c[l+16];(0,a.readUint16)(c,l+17),y.lossless=!!(1&k),y.refinement=!!(2&k),y.defaultPixelValue=k>>2&1,y.combinationOperator=k>>3&3,y.requiresBuffer=!!(32&k),y.combinationOperatorOverride=!!(64&k),r=[y];break;case 49:case 50:case 51:case 62:break;default:(0,a.error)("JBIG2 error: segment type "+s.typeName+"("+s.type+") is not implemented")}var w="on"+s.typeName;w in t&&t[w].apply(t,r)}function p(e,t){for(var r=0,a=e.length;r<a;r++)g(e[r],t)}function m(e){for(var t=new b,r=0,a=e.length;r<a;r++){var i=e[r];p(d({},i.data,i.start,i.end),t)}return t.buffer}function b(){}function v(){}e.prototype={getContexts:function(e){return e in this?this[e]:this[e]=new Int8Array(65536)}},t.prototype={get decoder(){var e=new i.ArithmeticDecoder(this.data,this.start,this.end);return(0,a.shadow)(this,"decoder",e)},get contextCache(){var t=new e;return(0,a.shadow)(this,"contextCache",t)}};var y=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"patternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],k=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],w=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],S=[39717,1941,229,405],A=[32,8],C=17;return b.prototype={onPageInformation:function(e){this.currentPageInfo=e;var t=e.width+7>>3,r=new Uint8Array(t*e.height);if(e.defaultPixelValue)for(var a=0,i=r.length;a<i;a++)r[a]=255;this.buffer=r},drawBitmap:function(e,t){var r,i,n,o,s=this.currentPageInfo,c=e.width,l=e.height,h=s.width+7>>3,u=s.combinationOperatorOverride?e.combinationOperator:s.combinationOperator,d=this.buffer,f=128>>(7&e.x),g=e.y*h+(e.x>>3);switch(u){case 0:for(r=0;r<l;r++){for(n=f,o=g,i=0;i<c;i++)t[r][i]&&(d[o]|=n),(n>>=1)||(n=128,o++);g+=h}break;case 2:for(r=0;r<l;r++){for(n=f,o=g,i=0;i<c;i++)t[r][i]&&(d[o]^=n),(n>>=1)||(n=128,o++);g+=h}break;default:(0,a.error)("JBIG2 error: operator "+u+" is not supported")}},onImmediateGenericRegion:function(e,r,a,i){var n=e.info,o=new t(r,a,i),c=s(e.mmr,n.width,n.height,e.template,e.prediction,null,e.at,o);this.drawBitmap(n,c)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(e,r,i,n,o,s){e.huffman&&(0,a.error)("JBIG2 error: huffman is not supported");var c=this.symbols;c||(this.symbols=c={});for(var h=[],u=0,d=i.length;u<d;u++)h=h.concat(c[i[u]]);var f=new t(n,o,s);c[r]=l(e.huffman,e.refinement,h,e.numberOfNewSymbols,e.numberOfExportedSymbols,void 0,e.template,e.at,e.refinementTemplate,e.refinementAt,f)},onImmediateTextRegion:function(e,r,i,n,o){for(var s=e.info,c=this.symbols,l=[],u=0,d=r.length;u<d;u++)l=l.concat(c[r[u]]);var f=(0,a.log2)(l.length),g=new t(i,n,o),p=h(e.huffman,e.refinement,s.width,s.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,l,f,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,void 0,e.refinementTemplate,e.refinementAt,g);this.drawBitmap(s,p)},onImmediateLosslessTextRegion:function(){this.onImmediateTextRegion.apply(this,arguments)}},v.prototype={parseChunks:function(e){return m(e)}},v}();t.Jbig2Image=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=r(0),n=function(){function e(){this.decodeTransform=null,this.colorTransform=-1}function t(e,t){for(var r,a,i=0,n=[],o=16;o>0&&!e[o-1];)o--;n.push({children:[],index:0});var s,c=n[0];for(r=0;r<o;r++){for(a=0;a<e[r];a++){for((c=n.pop()).children[c.index]=t[i];c.index>0;)c=n.pop();for(c.index++,n.push(c);n.length<=r;)n.push(s={children:[],index:0}),c.children[c.index]=s.children,c=s;i++}r+1<o&&(n.push(s={children:[],index:0}),c.children[c.index]=s.children,c=s)}return n[0].children}function r(e,t,r){return 64*((e.blocksPerLine+1)*t+r)}function n(e,t,n,o,s,c,u,d,f){function g(){if(I>0)return I--,T>>I&1;if(255===(T=e[t++])){var r=e[t++];r&&(0,i.error)("JPEG error: unexpected marker "+(T<<8|r).toString(16))}return I=7,T>>>7}function p(e){for(var t=e;;){if("number"==typeof(t=t[g()]))return t;"object"!==(void 0===t?"undefined":a(t))&&(0,i.error)("JPEG error: invalid huffman sequence")}}function m(e){for(var t=0;e>0;)t=t<<1|g(),e--;return t}function b(e){if(1===e)return 1===g()?1:-1;var t=m(e);return t>=1<<e-1?t:t+(-1<<e)+1}var v,y,k,w,S,A,C,x=n.mcusPerLine,P=n.progressive,_=t,T=0,I=0,R=0,O=0,E=o.length;C=P?0===c?0===d?function(e,t){var r=p(e.huffmanTableDC),a=0===r?0:b(r)<<f;e.blockData[t]=e.pred+=a}:function(e,t){e.blockData[t]|=g()<<f}:0===d?function(e,t){if(R>0)R--;else for(var r=c,a=u;r<=a;){var i=p(e.huffmanTableAC),n=15&i,o=i>>4;if(0!==n){var s=h[r+=o];e.blockData[t+s]=b(n)*(1<<f),r++}else{if(o<15){R=m(o)+(1<<o)-1;break}r+=16}}}:function(e,t){for(var r,a,n=c,o=u,s=0;n<=o;){var l=h[n];switch(O){case 0:s=(a=p(e.huffmanTableAC))>>4,0==(r=15&a)?s<15?(R=m(s)+(1<<s),O=4):(s=16,O=1):(1!==r&&(0,i.error)("JPEG error: invalid ACn encoding"),v=b(r),O=s?2:3);continue;case 1:case 2:e.blockData[t+l]?e.blockData[t+l]+=g()<<f:0==--s&&(O=2===O?3:0);break;case 3:e.blockData[t+l]?e.blockData[t+l]+=g()<<f:(e.blockData[t+l]=v<<f,O=0);break;case 4:e.blockData[t+l]&&(e.blockData[t+l]+=g()<<f)}n++}4===O&&0==--R&&(O=0)}:function(e,t){var r=p(e.huffmanTableDC),a=0===r?0:b(r);e.blockData[t]=e.pred+=a;for(var i=1;i<64;){var n=p(e.huffmanTableAC),o=15&n,s=n>>4;if(0!==o){var c=h[i+=s];e.blockData[t+c]=b(o),i++}else{if(s<15)break;i+=16}}};var F,L,D=0;L=1===E?o[0].blocksPerLine*o[0].blocksPerColumn:x*n.mcusPerColumn;for(var M,B;D<L;){var N=s?Math.min(L-D,s):L;for(k=0;k<E;k++)o[k].pred=0;if(R=0,1===E)for(y=o[0],A=0;A<N;A++)!function(e,t,a){t(e,r(e,a/e.blocksPerLine|0,a%e.blocksPerLine))}(y,C,D),D++;else for(A=0;A<N;A++){for(k=0;k<E;k++)for(M=(y=o[k]).h,B=y.v,w=0;w<B;w++)for(S=0;S<M;S++)!function(e,t,a,i,n){var o=a%x;t(e,r(e,(a/x|0)*e.v+i,o*e.h+n))}(y,C,D,w,S);D++}I=0,(F=l(e,t))&&F.invalid&&((0,i.warn)("decodeScan - unexpected MCU data, next marker is: "+F.invalid),t=F.offset);var U=F&&F.marker;if((!U||U<=65280)&&(0,i.error)("JPEG error: marker was not found"),!(U>=65488&&U<=65495))break;t+=2}return(F=l(e,t))&&F.invalid&&((0,i.warn)("decodeScan - unexpected Scan data, next marker is: "+F.invalid),t=F.offset),t-_}function o(e,t,r){var a,n,o,s,c,l,h,y,k,w,S,A,C,x,P,_,T,I=e.quantizationTable,R=e.blockData;I||(0,i.error)("JPEG error: missing required Quantization Table.");for(var O=0;O<64;O+=8)k=R[t+O],w=R[t+O+1],S=R[t+O+2],A=R[t+O+3],C=R[t+O+4],x=R[t+O+5],P=R[t+O+6],_=R[t+O+7],k*=I[O],0!=(w|S|A|C|x|P|_)?(w*=I[O+1],S*=I[O+2],A*=I[O+3],C*=I[O+4],x*=I[O+5],P*=I[O+6],_*=I[O+7],n=(a=(a=b*k+128>>8)+(n=b*C+128>>8)+1>>1)-n,T=(o=S)*m+(s=P)*p+128>>8,o=o*p-s*m+128>>8,h=(c=(c=v*(w-_)+128>>8)+(h=x<<4)+1>>1)-h,l=(y=(y=v*(w+_)+128>>8)+(l=A<<4)+1>>1)-l,s=(a=a+(s=T)+1>>1)-s,o=(n=n+o+1>>1)-o,T=c*g+y*f+2048>>12,c=c*f-y*g+2048>>12,y=T,T=l*d+h*u+2048>>12,l=l*u-h*d+2048>>12,h=T,r[O]=a+y,r[O+7]=a-y,r[O+1]=n+h,r[O+6]=n-h,r[O+2]=o+l,r[O+5]=o-l,r[O+3]=s+c,r[O+4]=s-c):(T=b*k+512>>10,r[O]=T,r[O+1]=T,r[O+2]=T,r[O+3]=T,r[O+4]=T,r[O+5]=T,r[O+6]=T,r[O+7]=T);for(var E=0;E<8;++E)k=r[E],0!=((w=r[E+8])|(S=r[E+16])|(A=r[E+24])|(C=r[E+32])|(x=r[E+40])|(P=r[E+48])|(_=r[E+56]))?(n=(a=4112+((a=b*k+2048>>12)+(n=b*C+2048>>12)+1>>1))-n,T=(o=S)*m+(s=P)*p+2048>>12,o=o*p-s*m+2048>>12,s=T,h=(c=(c=v*(w-_)+2048>>12)+(h=x)+1>>1)-h,l=(y=(y=v*(w+_)+2048>>12)+(l=A)+1>>1)-l,T=c*g+y*f+2048>>12,c=c*f-y*g+2048>>12,y=T,T=l*d+h*u+2048>>12,l=l*u-h*d+2048>>12,_=(a=a+s+1>>1)-y,w=(n=n+o+1>>1)+(h=T),P=n-h,S=(o=n-o)+l,x=o-l,A=(s=a-s)+c,C=s-c,k=(k=a+y)<16?0:k>=4080?255:k>>4,w=w<16?0:w>=4080?255:w>>4,S=S<16?0:S>=4080?255:S>>4,A=A<16?0:A>=4080?255:A>>4,C=C<16?0:C>=4080?255:C>>4,x=x<16?0:x>=4080?255:x>>4,P=P<16?0:P>=4080?255:P>>4,_=_<16?0:_>=4080?255:_>>4,R[t+E]=k,R[t+E+8]=w,R[t+E+16]=S,R[t+E+24]=A,R[t+E+32]=C,R[t+E+40]=x,R[t+E+48]=P,R[t+E+56]=_):(T=(T=b*k+8192>>14)<-2040?0:T>=2024?255:T+2056>>4,R[t+E]=T,R[t+E+8]=T,R[t+E+16]=T,R[t+E+24]=T,R[t+E+32]=T,R[t+E+40]=T,R[t+E+48]=T,R[t+E+56]=T)}function s(e,t){for(var a=t.blocksPerLine,i=t.blocksPerColumn,n=new Int16Array(64),s=0;s<i;s++)for(var c=0;c<a;c++)o(t,r(t,s,c),n);return t.blockData}function c(e){return e<=0?0:e>=255?255:e}function l(e,t,r){function a(t){return e[t]<<8|e[t+1]}var i=e.length-1,n=r<t?r:t;if(t>=i)return null;var o=a(t);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:t};for(var s=a(n);!(s>=65472&&s<=65534);){if(++n>=i)return null;s=a(n)}return{invalid:o.toString(16),marker:s,offset:n}}var h=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),u=4017,d=799,f=3406,g=2276,p=1567,m=3784,b=5793,v=2896;return e.prototype={parse:function(e){function r(){var t=e[c]<<8|e[c+1];return c+=2,t}var a,o,c=0,u=null,d=null,f=[],g=[],p=[],m=r();for(65496!==m&&(0,i.error)("JPEG error: SOI not found"),m=r();65497!==m;){var b,v,y;switch(m){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var k=function(){var t=r(),a=c+t-2,n=l(e,a,c);n&&n.invalid&&((0,i.warn)("readDataBlock - incorrect length, next marker is: "+n.invalid),a=n.offset);var o=e.subarray(c,a);return c+=o.length,o}();65504===m&&74===k[0]&&70===k[1]&&73===k[2]&&70===k[3]&&0===k[4]&&(u={version:{major:k[5],minor:k[6]},densityUnits:k[7],xDensity:k[8]<<8|k[9],yDensity:k[10]<<8|k[11],thumbWidth:k[12],thumbHeight:k[13],thumbData:k.subarray(14,14+3*k[12]*k[13])}),65518===m&&65===k[0]&&100===k[1]&&111===k[2]&&98===k[3]&&101===k[4]&&(d={version:k[5]<<8|k[6],flags0:k[7]<<8|k[8],flags1:k[9]<<8|k[10],transformCode:k[11]});break;case 65499:for(var w=r()+c-2;c<w;){var S=e[c++],A=new Uint16Array(64);if(S>>4==0)for(v=0;v<64;v++)A[h[v]]=e[c++];else if(S>>4==1)for(v=0;v<64;v++)A[h[v]]=r();else(0,i.error)("JPEG error: DQT - invalid table spec");f[15&S]=A}break;case 65472:case 65473:case 65474:a&&(0,i.error)("JPEG error: Only single frame JPEGs supported"),r(),(a={}).extended=65473===m,a.progressive=65474===m,a.precision=e[c++],a.scanLines=r(),a.samplesPerLine=r(),a.components=[],a.componentIds={};var C,x=e[c++],P=0,_=0;for(b=0;b<x;b++){C=e[c];var T=e[c+1]>>4,I=15&e[c+1];P<T&&(P=T),_<I&&(_=I);var R=e[c+2];y=a.components.push({h:T,v:I,quantizationId:R,quantizationTable:null}),a.componentIds[C]=y-1,c+=3}a.maxH=P,a.maxV=_,function(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV),a=0;a<e.components.length;a++){M=e.components[a];var i=Math.ceil(Math.ceil(e.samplesPerLine/8)*M.h/e.maxH),n=Math.ceil(Math.ceil(e.scanLines/8)*M.v/e.maxV),o=t*M.h,s=r*M.v*64*(o+1);M.blockData=new Int16Array(s),M.blocksPerLine=i,M.blocksPerColumn=n}e.mcusPerLine=t,e.mcusPerColumn=r}(a);break;case 65476:var O=r();for(b=2;b<O;){var E=e[c++],F=new Uint8Array(16),L=0;for(v=0;v<16;v++,c++)L+=F[v]=e[c];var D=new Uint8Array(L);for(v=0;v<L;v++,c++)D[v]=e[c];b+=17+L,(E>>4==0?p:g)[15&E]=t(F,D)}break;case 65501:r(),o=r();break;case 65498:r();var M,B=e[c++],N=[];for(b=0;b<B;b++){var U=a.componentIds[e[c++]];M=a.components[U];var j=e[c++];M.huffmanTableDC=p[j>>4],M.huffmanTableAC=g[15&j],N.push(M)}var q=e[c++],z=e[c++],G=e[c++],H=n(e,c,a,N,o,q,z,G>>4,15&G);c+=H;break;case 65535:255!==e[c]&&c--;break;default:if(255===e[c-3]&&e[c-2]>=192&&e[c-2]<=254){c-=3;break}(0,i.error)("JPEG error: unknown marker "+m.toString(16))}m=r()}for(this.width=a.samplesPerLine,this.height=a.scanLines,this.jfif=u,this.adobe=d,this.components=[],b=0;b<a.components.length;b++){var W=f[(M=a.components[b]).quantizationId];W&&(M.quantizationTable=W),this.components.push({output:s(a,M),scaleX:M.h/a.maxH,scaleY:M.v/a.maxV,blocksPerLine:M.blocksPerLine,blocksPerColumn:M.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(e,t){var r,a,i,n,o,s,c,l,h,u,d,f=this.width/e,g=this.height/t,p=0,m=this.components.length,b=e*t*m,v=new Uint8Array(b),y=new Uint32Array(e);for(c=0;c<m;c++){for(a=(r=this.components[c]).scaleX*f,i=r.scaleY*g,p=c,d=r.output,n=r.blocksPerLine+1<<3,o=0;o<e;o++)l=0|o*a,y[o]=(4294967288&l)<<3|7&l;for(s=0;s<t;s++)for(u=n*(4294967288&(l=0|s*i))|(7&l)<<3,o=0;o<e;o++)v[p]=d[u+y[o]],p+=m}var k=this.decodeTransform;if(k)for(c=0;c<b;)for(l=0,h=0;l<m;l++,c++,h+=2)v[c]=(v[c]*k[h]>>8)+k[h+1];return v},_isColorConversionNeeded:function(){return!(!this.adobe||!this.adobe.transformCode)||(3===this.numComponents?!(!this.adobe&&0===this.colorTransform):!this.adobe&&1===this.colorTransform)},_convertYccToRgb:function(e){for(var t,r,a,i=0,n=e.length;i<n;i+=3)t=e[i],r=e[i+1],a=e[i+2],e[i]=c(t-179.456+1.402*a),e[i+1]=c(t+135.459-.344*r-.714*a),e[i+2]=c(t-226.816+1.772*r);return e},_convertYcckToRgb:function(e){for(var t,r,a,i,n=0,o=0,s=e.length;o<s;o+=4){t=e[o];var l=(r=e[o+1])*(-660635669420364e-19*r+.000437130475926232*(a=e[o+2])-54080610064599e-18*t+.00048449797120281*(i=e[o+3])-.154362151871126)-122.67195406894+a*(-.000957964378445773*a+.000817076911346625*t-.00477271405408747*i+1.53380253221734)+t*(.000961250184130688*t-.00266257332283933*i+.48357088451265)+i*(-.000336197177618394*i+.484791561490776),h=107.268039397724+r*(219927104525741e-19*r-.000640992018297945*a+.000659397001245577*t+.000426105652938837*i-.176491792462875)+a*(-.000778269941513683*a+.00130872261408275*t+.000770482631801132*i-.151051492775562)+t*(.00126935368114843*t-.00265090189010898*i+.25802910206845)+i*(-.000318913117588328*i-.213742400323665),u=r*(-.000570115196973677*r-263409051004589e-19*a+.0020741088115012*t-.00288260236853442*i+.814272968359295)-20.810012546947+a*(-153496057440975e-19*a-.000132689043961446*t+.000560833691242812*i-.195152027534049)+t*(.00174418132927582*t-.00255243321439347*i+.116935020465145)+i*(-.000343531996510555*i+.24165260232407);e[n++]=c(l),e[n++]=c(h),e[n++]=c(u)}return e},_convertYcckToCmyk:function(e){for(var t,r,a,i=0,n=e.length;i<n;i+=4)t=e[i],r=e[i+1],a=e[i+2],e[i]=c(434.456-t-1.402*a),e[i+1]=c(119.541-t+.344*r+.714*a),e[i+2]=c(481.816-t-1.772*r);return e},_convertCmykToRgb:function(e){for(var t,r,a,i,n=0,o=-16581375,s=0,c=e.length;s<c;s+=4){var l=(t=e[s])*(-4.387332384609988*t+54.48615194189176*(r=e[s+1])+18.82290502165302*(a=e[s+2])+212.25662451639585*(i=e[s+3])-72734.4411664936)+r*(1.7149763477362134*r-5.6096736904047315*a-17.873870861415444*i-1401.7366389350734)+a*(-2.5217340131683033*a-21.248923337353073*i+4465.541406466231)-i*(21.86122147463605*i+48317.86113160301),h=t*(8.841041422036149*t+60.118027045597366*r+6.871425592049007*a+31.159100130055922*i-20220.756542821975)+r*(-15.310361306967817*r+17.575251261109482*a+131.35250912493976*i-48691.05921601825)+a*(4.444339102852739*a+9.8632861493405*i-6341.191035517494)-i*(20.737325471181034*i+47890.15695978492),u=t*(.8842522430003296*t+8.078677503112928*r+30.89978309703729*a-.23883238689178934*i-3616.812083916688)+r*(10.49593273432072*r+63.02378494754052*a+50.606957656360734*i-28620.90484698408)+a*(.03296041114873217*a+115.60384449646641*i-49363.43385999684)-i*(22.33816807309886*i+45932.16563550634);e[n++]=l>=0?255:l<=o?0:255+l*(1/255/255)|0,e[n++]=h>=0?255:h<=o?0:255+h*(1/255/255)|0,e[n++]=u>=0?255:u<=o?0:255+u*(1/255/255)|0}return e},getData:function(e,t,r){this.numComponents>4&&(0,i.error)("JPEG error: Unsupported color mode");var a=this._getLinearizedBlockData(e,t);if(1===this.numComponents&&r){for(var n=a.length,o=new Uint8Array(3*n),s=0,c=0;c<n;c++){var l=a[c];o[s++]=l,o[s++]=l,o[s++]=l}return o}if(3===this.numComponents&&this._isColorConversionNeeded())return this._convertYccToRgb(a);if(4===this.numComponents){if(this._isColorConversionNeeded())return r?this._convertYcckToRgb(a):this._convertYcckToCmyk(a);if(r)return this._convertCmykToRgb(a)}return a}},e}();t.JpegImage=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=void 0;var a=r(0),i=(0,a.getLookupTableFactory)(function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,a.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-Bold"]=(0,a.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-BoldOblique"]=(0,a.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-Oblique"]=(0,a.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),e.Symbol=(0,a.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790}),e["Times-Roman"]=(0,a.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-Bold"]=(0,a.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-BoldItalic"]=(0,a.getLookupTableFactory)(function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-Italic"]=(0,a.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),e.ZapfDingbats=(0,a.getLookupTableFactory)(function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918})});t.getMetrics=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e){function t(e){this.h1=e?4294967295&e:3285377520,this.h2=e?4294967295&e:3285377520}return t.prototype={update:function(e){var t;if("string"==typeof e){var r=new Uint8Array(2*e.length),i=0;for(t=0;t<e.length;t++){var n=e.charCodeAt(t);n<=255?r[i++]=n:(r[i++]=n>>>8,r[i++]=255&n)}}else{if(!("object"===(void 0===e?"undefined":a(e))&&"byteLength"in e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");i=(r=e).byteLength}var o=i>>2,s=i-4*o,c=new Uint32Array(r.buffer,0,o),l=0,h=0,u=this.h1,d=this.h2,f=3432918353,g=461845907;for(t=0;t<o;t++)1&t?u=5*(u=(u^=l=(l=(l=(l=c[t])*f&4294901760|11601*l&65535)<<15|l>>>17)*g&4294901760|13715*l&65535)<<13|u>>>19)+3864292196:d=5*(d=(d^=h=(h=(h=(h=c[t])*f&4294901760|11601*h&65535)<<15|h>>>17)*g&4294901760|13715*h&65535)<<13|d>>>19)+3864292196;switch(l=0,s){case 3:l^=r[4*o+2]<<16;case 2:l^=r[4*o+1]<<8;case 1:l=(l=(l=(l^=r[4*o])*f&4294901760|11601*l&65535)<<15|l>>>17)*g&4294901760|13715*l&65535,1&o?u^=l:d^=l}return this.h1=u,this.h2=d,this},hexdigest:function(){var e=this.h1,t=this.h2;e=3981806797*(e^=t>>>1)&4294901760|36045*e&65535,e=444984403*(e^=(t=4283543511*t&4294901760|(2950163797*(t<<16|e>>>16)&4294901760)>>>16)>>>1)&4294901760|60499*e&65535;for(var r=0,a=[e^=(t=3301882366*t&4294901760|(3120437893*(t<<16|e>>>16)&4294901760)>>>16)>>>1,t],i="";r<a.length;r++){for(var n=(a[r]>>>0).toString(16);n.length<8;)n="0"+n;i+=n}return i}},t}();t.MurmurHash3_64=i},function(e,t,r){"use strict";function a(e,t){this.url=e,t=t||{},this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this.withCredentials=t.withCredentials||!1,this.getXhr=t.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null),this.loadedRequests=Object.create(null)}function i(e){var t=e.response;if("string"!=typeof t)return t;for(var r=t.length,a=new Uint8Array(r),i=0;i<r;i++)a[i]=255&t.charCodeAt(i);return a.buffer}function n(e){this._options=e;var t=e.source;this._manager=new a(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}function o(e,t){this._manager=e;var r=t.source,a={onHeadersReceived:this._onHeadersReceived.bind(this),onProgressiveData:r.disableStream?null:this._onProgressiveData.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=e.requestFull(a),this._headersReceivedCapability=(0,c.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this.onProgress=null}function s(e,t,r){this._manager=e;var a={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=e.requestRange(t,r,a),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkManager=t.PDFNetworkStream=void 0;var c=r(0),l=r(23),h=function(){try{var e=new XMLHttpRequest;return e.open("GET",c.globalScope.location.href),e.responseType="moz-chunked-arraybuffer","moz-chunked-arraybuffer"===e.responseType}catch(e){return!1}}();a.prototype={requestRange:function(e,t,r){var a={begin:e,end:t};for(var i in r)a[i]=r[i];return this.request(a)},requestFull:function(e){return this.request(e)},request:function(e){var t=this.getXhr(),r=this.currXhrId++,a=this.pendingRequests[r]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(var i in this.httpHeaders){var n=this.httpHeaders[i];void 0!==n&&t.setRequestHeader(i,n)}if(this.isHttp&&"begin"in e&&"end"in e){var o=e.begin+"-"+(e.end-1);t.setRequestHeader("Range","bytes="+o),a.expectedStatus=206}else a.expectedStatus=200;return h&&!!e.onProgressiveData?(t.responseType="moz-chunked-arraybuffer",a.onProgressiveData=e.onProgressiveData,a.mozChunked=!0):t.responseType="arraybuffer",e.onError&&(t.onerror=function(r){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,r),t.onprogress=this.onProgress.bind(this,r),a.onHeadersReceived=e.onHeadersReceived,a.onDone=e.onDone,a.onError=e.onError,a.onProgress=e.onProgress,t.send(null),r},onProgress:function(e,t){var r=this.pendingRequests[e];if(r){if(r.mozChunked){var a=i(r.xhr);r.onProgressiveData(a)}var n=r.onProgress;n&&n(t)}},onStateChange:function(e,t){var r=this.pendingRequests[e];if(r){var a=r.xhr;if(a.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===a.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===a.status&&this.isHttp)r.onError&&r.onError(a.status);else{var n=a.status||200;if(200===n&&206===r.expectedStatus||n===r.expectedStatus){this.loadedRequests[e]=!0;var o=i(a);if(206===n){var s=a.getResponseHeader("Content-Range"),c=/bytes (\d+)-(\d+)\/(\d+)/.exec(s),l=parseInt(c[1],10);r.onDone({begin:l,chunk:o})}else r.onProgressiveData?r.onDone(null):o?r.onDone({begin:0,chunk:o}):r.onError&&r.onError(a.status)}else r.onError&&r.onError(a.status)}}},hasPendingRequests:function(){for(var e in this.pendingRequests)return!0;return!1},getRequestXhr:function(e){return this.pendingRequests[e].xhr},isStreamingRequest:function(e){return!!this.pendingRequests[e].onProgressiveData},isPendingRequest:function(e){return e in this.pendingRequests},isLoadedRequest:function(e){return e in this.loadedRequests},abortAllRequests:function(){for(var e in this.pendingRequests)this.abortRequest(0|e)},abortRequest:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}},n.prototype={_onRangeRequestReaderClosed:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)},getFullReader:function(){return(0,c.assert)(!this._fullRequestReader),this._fullRequestReader=new o(this._manager,this._options),this._fullRequestReader},getRangeReader:function(e,t){var r=new s(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r},cancelAllRequests:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}},o.prototype={_validateRangeRequestCapabilities:function(){if(this._disableRange)return!1;var e=this._manager;if(!e.isHttp)return!1;var t=this._fullRequestId,r=e.getRequestXhr(t);if("bytes"!==r.getResponseHeader("Accept-Ranges"))return!1;if("identity"!==(r.getResponseHeader("Content-Encoding")||"identity"))return!1;var a=r.getResponseHeader("Content-Length");return a=parseInt(a,10),!!(0,c.isInt)(a)&&(this._contentLength=a,!(a<=2*this._rangeChunkSize))},_onHeadersReceived:function(){this._validateRangeRequestCapabilities()&&(this._isRangeSupported=!0);var e=this._manager,t=this._fullRequestId;e.isStreamingRequest(t)?this._isStreamingSupported=!0:this._isRangeSupported&&e.abortRequest(t),this._headersReceivedCapability.resolve()},_onProgressiveData:function(e){this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._cachedChunks.push(e)},_onDone:function(e){e&&this._onProgressiveData(e.chunk),this._done=!0,this._cachedChunks.length>0||(this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[])},_onError:function(e){var t,r=this._url;t=404===e||0===e&&/^file:/.test(r)?new c.MissingPDFException('Missing PDF "'+r+'".'):new c.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+r+'".',e),this._storedError=t,this._headersReceivedCapability.reject(t),this._requests.forEach(function(e){e.reject(t)}),this._requests=[],this._cachedChunks=[]},_onProgress:function(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})},get isRangeSupported(){return this._isRangeSupported},get isStreamingSupported(){return this._isStreamingSupported},get contentLength(){return this._contentLength},get headersReady(){return this._headersReceivedCapability.promise},read:function(){if(this._storedError)return Promise.reject(this._storedError);if(this._cachedChunks.length>0){var e=this._cachedChunks.shift();return Promise.resolve(e)}if(this._done)return Promise.resolve({value:void 0,done:!0});var t=(0,c.createPromiseCapability)();return this._requests.push(t),t.promise},cancel:function(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},s.prototype={_close:function(){this.onClosed&&this.onClosed(this)},_onDone:function(e){var t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._close()},_onProgress:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})},get isStreamingSupported(){return!1},read:function(){if(null!==this._queuedChunk){var e=this._queuedChunk;return this._queuedChunk=null,Promise.resolve({value:e,done:!1})}if(this._done)return Promise.resolve({value:void 0,done:!0});var t=(0,c.createPromiseCapability)();return this._requests.push(t),t.promise},cancel:function(e){this._done=!0,this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},(0,l.setPDFNetworkStreamClass)(n),t.PDFNetworkStream=n,t.NetworkManager=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTilingPatternIR=t.Pattern=void 0;var a=r(0),i=r(4),n=r(1),o=r(7),s={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7},c=function(){function e(){(0,a.error)("should not call Pattern constructor")}return e.prototype={getPattern:function(e){(0,a.error)("Should not call Pattern.getStyle: "+e)}},e.parseShading=function(e,t,r,i,o){var c=(0,n.isStream)(e)?e.dict:e,h=c.get("ShadingType");try{switch(h){case s.AXIAL:case s.RADIAL:return new l.RadialAxial(c,t,r,i);case s.FREE_FORM_MESH:case s.LATTICE_FORM_MESH:case s.COONS_PATCH_MESH:case s.TENSOR_PATCH_MESH:return new l.Mesh(e,t,r,i);default:throw new Error("Unsupported ShadingType: "+h)}}catch(e){if(e instanceof a.MissingDataException)throw e;return o.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.shadingPattern}),(0,a.warn)(e),new l.Dummy}},e}(),l={};l.SMALL_NUMBER=1e-6,l.RadialAxial=function(){function e(e,t,r,n){this.matrix=t,this.coordsArr=e.getArray("Coords"),this.shadingType=e.get("ShadingType"),this.type="Pattern";var c=e.get("ColorSpace","CS");c=i.ColorSpace.parse(c,r,n),this.cs=c;var h=0,u=1;if(e.has("Domain")){var d=e.getArray("Domain");h=d[0],u=d[1]}var f=!1,g=!1;if(e.has("Extend")){var p=e.getArray("Extend");f=p[0],g=p[1]}if(!(this.shadingType!==s.RADIAL||f&&g)){var m=this.coordsArr[0],b=this.coordsArr[1],v=this.coordsArr[2],y=this.coordsArr[3],k=this.coordsArr[4],w=this.coordsArr[5],S=Math.sqrt((m-y)*(m-y)+(b-k)*(b-k));v<=w+S&&w<=v+S&&(0,a.warn)("Unsupported radial gradient.")}this.extendStart=f,this.extendEnd=g;var A=e.get("Function"),C=o.PDFFunction.parseArray(r,A),x=u-h,P=x/10,_=this.colorStops=[];if(h>=u||P<=0)(0,a.info)("Bad shading domain.");else{for(var T,I=new Float32Array(c.numComps),R=new Float32Array(1),O=h;O<=u;O+=P){R[0]=O,C(R,0,I,0),T=c.getRgb(I,0);var E=a.Util.makeCssRgb(T[0],T[1],T[2]);_.push([(O-h)/x,E])}var F="transparent";e.has("Background")&&(T=c.getRgb(e.get("Background"),0),F=a.Util.makeCssRgb(T[0],T[1],T[2])),f||(_.unshift([0,F]),_[1][0]+=l.SMALL_NUMBER),g||(_[_.length-1][0]-=l.SMALL_NUMBER,_.push([1,F])),this.colorStops=_}}return e.prototype={getIR:function(){var e,t,r,i,n,o=this.coordsArr,c=this.shadingType;c===s.AXIAL?(t=[o[0],o[1]],r=[o[2],o[3]],i=null,n=null,e="axial"):c===s.RADIAL?(t=[o[0],o[1]],r=[o[3],o[4]],i=o[2],n=o[5],e="radial"):(0,a.error)("getPattern type unknown: "+c);var l=this.matrix;if(l&&(t=a.Util.applyTransform(t,l),r=a.Util.applyTransform(r,l),c===s.RADIAL)){var h=a.Util.singularValueDecompose2dScale(l);i*=h[0],n*=h[1]}return["RadialAxial",e,this.colorStops,t,r,i,n]}},e}(),l.Mesh=function(){function e(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0;var r=t.numComps;this.tmpCompsBuf=new Float32Array(r);var a=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(a):this.tmpCompsBuf}function t(e,t){for(var r=e.coords,i=e.colors,n=[],o=[],s=0;t.hasData;){var c=t.readFlag(),l=t.readCoordinate(),h=t.readComponents();if(0===s){switch((0,a.assert)(0<=c&&c<=2,"Unknown type4 flag"),c){case 0:s=3;break;case 1:o.push(o[o.length-2],o[o.length-1]),s=1;break;case 2:o.push(o[o.length-3],o[o.length-1]),s=1}n.push(c)}o.push(r.length),r.push(l),i.push(h),s--,t.align()}e.figures.push({type:"triangles",coords:new Int32Array(o),colors:new Int32Array(o)})}function r(e,t,r){for(var a=e.coords,i=e.colors,n=[];t.hasData;){var o=t.readCoordinate(),s=t.readComponents();n.push(a.length),a.push(o),i.push(s)}e.figures.push({type:"lattice",coords:new Int32Array(n),colors:new Int32Array(n),verticesPerRow:r})}function c(e,t){var r=e.figures[t];(0,a.assert)("patch"===r.type,"Unexpected patch mesh figure");var i=e.coords,n=e.colors,o=r.coords,s=r.colors,c=Math.min(i[o[0]][0],i[o[3]][0],i[o[12]][0],i[o[15]][0]),l=Math.min(i[o[0]][1],i[o[3]][1],i[o[12]][1],i[o[15]][1]),h=Math.max(i[o[0]][0],i[o[3]][0],i[o[12]][0],i[o[15]][0]),u=Math.max(i[o[0]][1],i[o[3]][1],i[o[12]][1],i[o[15]][1]),d=Math.ceil((h-c)*m/(e.bounds[2]-e.bounds[0]));d=Math.max(g,Math.min(p,d));var f=Math.ceil((u-l)*m/(e.bounds[3]-e.bounds[1]));f=Math.max(g,Math.min(p,f));for(var v=d+1,y=new Int32Array((f+1)*v),k=new Int32Array((f+1)*v),w=0,S=new Uint8Array(3),A=new Uint8Array(3),C=n[s[0]],x=n[s[1]],P=n[s[2]],_=n[s[3]],T=b(f),I=b(d),R=0;R<=f;R++){S[0]=(C[0]*(f-R)+P[0]*R)/f|0,S[1]=(C[1]*(f-R)+P[1]*R)/f|0,S[2]=(C[2]*(f-R)+P[2]*R)/f|0,A[0]=(x[0]*(f-R)+_[0]*R)/f|0,A[1]=(x[1]*(f-R)+_[1]*R)/f|0,A[2]=(x[2]*(f-R)+_[2]*R)/f|0;for(var O=0;O<=d;O++,w++)if(0!==R&&R!==f||0!==O&&O!==d){for(var E=0,F=0,L=0,D=0;D<=3;D++)for(var M=0;M<=3;M++,L++){var B=T[R][D]*I[O][M];E+=i[o[L]][0]*B,F+=i[o[L]][1]*B}y[w]=i.length,i.push([E,F]),k[w]=n.length;var N=new Uint8Array(3);N[0]=(S[0]*(d-O)+A[0]*O)/d|0,N[1]=(S[1]*(d-O)+A[1]*O)/d|0,N[2]=(S[2]*(d-O)+A[2]*O)/d|0,n.push(N)}}y[0]=o[0],k[0]=s[0],y[d]=o[3],k[d]=s[1],y[v*f]=o[12],k[v*f]=s[2],y[v*f+d]=o[15],k[v*f+d]=s[3],e.figures[t]={type:"lattice",coords:y,colors:k,verticesPerRow:v}}function l(e,t){for(var r=e.coords,i=e.colors,n=new Int32Array(16),o=new Int32Array(4);t.hasData;){var s=t.readFlag();(0,a.assert)(0<=s&&s<=3,"Unknown type6 flag");var c,l,h=r.length;for(c=0,l=0!==s?8:12;c<l;c++)r.push(t.readCoordinate());var u=i.length;for(c=0,l=0!==s?2:4;c<l;c++)i.push(t.readComponents());var d,f,g,p;switch(s){case 0:n[12]=h+3,n[13]=h+4,n[14]=h+5,n[15]=h+6,n[8]=h+2,n[11]=h+7,n[4]=h+1,n[7]=h+8,n[0]=h,n[1]=h+11,n[2]=h+10,n[3]=h+9,o[2]=u+1,o[3]=u+2,o[0]=u,o[1]=u+3;break;case 1:d=n[12],f=n[13],g=n[14],p=n[15],n[12]=p,n[13]=h+0,n[14]=h+1,n[15]=h+2,n[8]=g,n[11]=h+3,n[4]=f,n[7]=h+4,n[0]=d,n[1]=h+7,n[2]=h+6,n[3]=h+5,d=o[2],f=o[3],o[2]=f,o[3]=u,o[0]=d,o[1]=u+1;break;case 2:d=n[15],f=n[11],n[12]=n[3],n[13]=h+0,n[14]=h+1,n[15]=h+2,n[8]=n[7],n[11]=h+3,n[4]=f,n[7]=h+4,n[0]=d,n[1]=h+7,n[2]=h+6,n[3]=h+5,d=o[3],o[2]=o[1],o[3]=u,o[0]=d,o[1]=u+1;break;case 3:n[12]=n[0],n[13]=h+0,n[14]=h+1,n[15]=h+2,n[8]=n[1],n[11]=h+3,n[4]=n[2],n[7]=h+4,n[0]=n[3],n[1]=h+7,n[2]=h+6,n[3]=h+5,o[2]=o[0],o[3]=u,o[0]=o[1],o[1]=u+1}n[5]=r.length,r.push([(-4*r[n[0]][0]-r[n[15]][0]+6*(r[n[4]][0]+r[n[1]][0])-2*(r[n[12]][0]+r[n[3]][0])+3*(r[n[13]][0]+r[n[7]][0]))/9,(-4*r[n[0]][1]-r[n[15]][1]+6*(r[n[4]][1]+r[n[1]][1])-2*(r[n[12]][1]+r[n[3]][1])+3*(r[n[13]][1]+r[n[7]][1]))/9]),n[6]=r.length,r.push([(-4*r[n[3]][0]-r[n[12]][0]+6*(r[n[2]][0]+r[n[7]][0])-2*(r[n[0]][0]+r[n[15]][0])+3*(r[n[4]][0]+r[n[14]][0]))/9,(-4*r[n[3]][1]-r[n[12]][1]+6*(r[n[2]][1]+r[n[7]][1])-2*(r[n[0]][1]+r[n[15]][1])+3*(r[n[4]][1]+r[n[14]][1]))/9]),n[9]=r.length,r.push([(-4*r[n[12]][0]-r[n[3]][0]+6*(r[n[8]][0]+r[n[13]][0])-2*(r[n[0]][0]+r[n[15]][0])+3*(r[n[11]][0]+r[n[1]][0]))/9,(-4*r[n[12]][1]-r[n[3]][1]+6*(r[n[8]][1]+r[n[13]][1])-2*(r[n[0]][1]+r[n[15]][1])+3*(r[n[11]][1]+r[n[1]][1]))/9]),n[10]=r.length,r.push([(-4*r[n[15]][0]-r[n[0]][0]+6*(r[n[11]][0]+r[n[14]][0])-2*(r[n[12]][0]+r[n[3]][0])+3*(r[n[2]][0]+r[n[8]][0]))/9,(-4*r[n[15]][1]-r[n[0]][1]+6*(r[n[11]][1]+r[n[14]][1])-2*(r[n[12]][1]+r[n[3]][1])+3*(r[n[2]][1]+r[n[8]][1]))/9]),e.figures.push({type:"patch",coords:new Int32Array(n),colors:new Int32Array(o)})}}function h(e,t){for(var r=e.coords,i=e.colors,n=new Int32Array(16),o=new Int32Array(4);t.hasData;){var s=t.readFlag();(0,a.assert)(0<=s&&s<=3,"Unknown type7 flag");var c,l,h=r.length;for(c=0,l=0!==s?12:16;c<l;c++)r.push(t.readCoordinate());var u=i.length;for(c=0,l=0!==s?2:4;c<l;c++)i.push(t.readComponents());var d,f,g,p;switch(s){case 0:n[12]=h+3,n[13]=h+4,n[14]=h+5,n[15]=h+6,n[8]=h+2,n[9]=h+13,n[10]=h+14,n[11]=h+7,n[4]=h+1,n[5]=h+12,n[6]=h+15,n[7]=h+8,n[0]=h,n[1]=h+11,n[2]=h+10,n[3]=h+9,o[2]=u+1,o[3]=u+2,o[0]=u,o[1]=u+3;break;case 1:d=n[12],f=n[13],g=n[14],p=n[15],n[12]=p,n[13]=h+0,n[14]=h+1,n[15]=h+2,n[8]=g,n[9]=h+9,n[10]=h+10,n[11]=h+3,n[4]=f,n[5]=h+8,n[6]=h+11,n[7]=h+4,n[0]=d,n[1]=h+7,n[2]=h+6,n[3]=h+5,d=o[2],f=o[3],o[2]=f,o[3]=u,o[0]=d,o[1]=u+1;break;case 2:d=n[15],f=n[11],n[12]=n[3],n[13]=h+0,n[14]=h+1,n[15]=h+2,n[8]=n[7],n[9]=h+9,n[10]=h+10,n[11]=h+3,n[4]=f,n[5]=h+8,n[6]=h+11,n[7]=h+4,n[0]=d,n[1]=h+7,n[2]=h+6,n[3]=h+5,d=o[3],o[2]=o[1],o[3]=u,o[0]=d,o[1]=u+1;break;case 3:n[12]=n[0],n[13]=h+0,n[14]=h+1,n[15]=h+2,n[8]=n[1],n[9]=h+9,n[10]=h+10,n[11]=h+3,n[4]=n[2],n[5]=h+8,n[6]=h+11,n[7]=h+4,n[0]=n[3],n[1]=h+7,n[2]=h+6,n[3]=h+5,o[2]=o[0],o[3]=u,o[0]=o[1],o[1]=u+1}e.figures.push({type:"patch",coords:new Int32Array(n),colors:new Int32Array(o)})}}function u(e){for(var t=e.coords[0][0],r=e.coords[0][1],a=t,i=r,n=1,o=e.coords.length;n<o;n++){var s=e.coords[n][0],c=e.coords[n][1];t=t>s?s:t,r=r>c?c:r,a=a<s?s:a,i=i<c?c:i}e.bounds=[t,r,a,i]}function d(e){var t,r,a,i,n=e.coords,o=new Float32Array(2*n.length);for(t=0,a=0,r=n.length;t<r;t++){var s=n[t];o[a++]=s[0],o[a++]=s[1]}e.coords=o;var c=e.colors,l=new Uint8Array(3*c.length);for(t=0,a=0,r=c.length;t<r;t++){var h=c[t];l[a++]=h[0],l[a++]=h[1],l[a++]=h[2]}e.colors=l;var u=e.figures;for(t=0,r=u.length;t<r;t++){var d=u[t],f=d.coords,g=d.colors;for(a=0,i=f.length;a<i;a++)f[a]*=2,g[a]*=3}}function f(f,g,p,m){(0,a.assert)((0,n.isStream)(f),"Mesh data is not a stream");var b=f.dict;this.matrix=g,this.shadingType=b.get("ShadingType"),this.type="Pattern",this.bbox=b.getArray("BBox");var v=b.get("ColorSpace","CS");v=i.ColorSpace.parse(v,p,m),this.cs=v,this.background=b.has("Background")?v.getRgb(b.get("Background"),0):null;var y=b.get("Function"),k=y?o.PDFFunction.parseArray(p,y):null;this.coords=[],this.colors=[],this.figures=[];var w=new e(f,{bitsPerCoordinate:b.get("BitsPerCoordinate"),bitsPerComponent:b.get("BitsPerComponent"),bitsPerFlag:b.get("BitsPerFlag"),decode:b.getArray("Decode"),colorFn:k,colorSpace:v,numComps:k?1:v.numComps}),S=!1;switch(this.shadingType){case s.FREE_FORM_MESH:t(this,w);break;case s.LATTICE_FORM_MESH:var A=0|b.get("VerticesPerRow");(0,a.assert)(A>=2,"Invalid VerticesPerRow"),r(this,w,A);break;case s.COONS_PATCH_MESH:l(this,w),S=!0;break;case s.TENSOR_PATCH_MESH:h(this,w),S=!0;break;default:(0,a.error)("Unsupported mesh type.")}if(S){u(this);for(var C=0,x=this.figures.length;C<x;C++)c(this,C)}u(this),d(this)}e.prototype={get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;var e=this.stream.getByte();return!(e<0)&&(this.buffer=e,this.bufferLength=8,!0)},readBits:function(e){var t=this.buffer,r=this.bufferLength;if(32===e){if(0===r)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var a=this.stream.getByte();return this.buffer=a&(1<<r)-1,(t<<8-r|(255&a)>>r)>>>0}if(8===e&&0===r)return this.stream.getByte();for(;r<e;)t=t<<8|this.stream.getByte(),r+=8;return r-=e,this.bufferLength=r,this.buffer=t&(1<<r)-1,t>>r},align:function(){this.buffer=0,this.bufferLength=0},readFlag:function(){return this.readBits(this.context.bitsPerFlag)},readCoordinate:function(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),r=this.readBits(e),a=this.context.decode,i=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[t*i*(a[1]-a[0])+a[0],r*i*(a[3]-a[2])+a[2]]},readComponents:function(){for(var e=this.context.numComps,t=this.context.bitsPerComponent,r=t<32?1/((1<<t)-1):2.3283064365386963e-10,a=this.context.decode,i=this.tmpCompsBuf,n=0,o=4;n<e;n++,o+=2){var s=this.readBits(t);i[n]=s*r*(a[o+1]-a[o])+a[o]}var c=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(i,0,c,0),this.context.colorSpace.getRgb(c,0)}};var g=3,p=20,m=20,b=function(){function e(e){for(var t=[],r=0;r<=e;r++){var a=r/e,i=1-a;t.push(new Float32Array([i*i*i,3*a*i*i,3*a*a*i,a*a*a]))}return t}var t=[];return function(r){return t[r]||(t[r]=e(r)),t[r]}}();return f.prototype={getIR:function(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.matrix,this.bbox,this.background]}},f}(),l.Dummy=function(){function e(){this.type="Pattern"}return e.prototype={getIR:function(){return["Dummy"]}},e}(),t.Pattern=c,t.getTilingPatternIR=function(e,t,r){var i=t.getArray("Matrix"),n=a.Util.normalizeRect(t.getArray("BBox")),o=t.get("XStep"),s=t.get("YStep"),c=t.get("PaintType"),l=t.get("TilingType");if(n[2]-n[0]==0||n[3]-n[1]==0)throw new Error("getTilingPatternIR - invalid /BBox array: ["+n+"].");return["TilingPattern",r,e,i,n,o,s,c,l]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0;var a=r(0),i=r(16),n=r(32),o=r(2),s=function(){function e(){throw new Error("Cannot initialize BaseManagerManager")}return e.prototype={get docId(){return this._docId},get password(){return this._password},get docBaseUrl(){var e=null;if(this._docBaseUrl){var t=(0,a.createValidAbsoluteUrl)(this._docBaseUrl);t?e=t.href:(0,a.warn)('Invalid absolute docBaseUrl: "'+this._docBaseUrl+'".')}return(0,a.shadow)(this,"docBaseUrl",e)},onLoadedStream:function(){throw new a.NotImplementedException},ensureDoc:function(e,t){return this.ensure(this.pdfDocument,e,t)},ensureXRef:function(e,t){return this.ensure(this.pdfDocument.xref,e,t)},ensureCatalog:function(e,t){return this.ensure(this.pdfDocument.catalog,e,t)},getPage:function(e){return this.pdfDocument.getPage(e)},cleanup:function(){return this.pdfDocument.cleanup()},ensure:function(e,t,r){return new a.NotImplementedException},requestRange:function(e,t){return new a.NotImplementedException},requestLoadedStream:function(){return new a.NotImplementedException},sendProgressiveData:function(e){return new a.NotImplementedException},updatePassword:function(e){this._password=e},terminate:function(){return new a.NotImplementedException}},e}(),c=function(){function e(e,t,r,i,s){this._docId=e,this._password=r,this._docBaseUrl=s,this.evaluatorOptions=i;var c=new o.Stream(t);this.pdfDocument=new n.PDFDocument(this,c),this._loadedStreamCapability=(0,a.createPromiseCapability)(),this._loadedStreamCapability.resolve(c)}return a.Util.inherit(e,s,{ensure:function(e,t,r){return new Promise(function(a,i){try{var n=e[t];a("function"==typeof n?n.apply(e,r):n)}catch(e){i(e)}})},requestRange:function(e,t){return Promise.resolve()},requestLoadedStream:function(){},onLoadedStream:function(){return this._loadedStreamCapability.promise},terminate:function(){}}),e}(),l=function(){function e(e,t,r,a,o){this._docId=e,this._password=r.password,this._docBaseUrl=o,this.msgHandler=r.msgHandler,this.evaluatorOptions=a;var s={msgHandler:r.msgHandler,url:r.url,length:r.length,disableAutoFetch:r.disableAutoFetch,rangeChunkSize:r.rangeChunkSize};this.streamManager=new i.ChunkedStreamManager(t,s),this.pdfDocument=new n.PDFDocument(this,this.streamManager.getStream())}return a.Util.inherit(e,s,{ensure:function(e,t,r){var i=this;return new Promise(function(n,o){function s(){try{var c,l=e[t];c="function"==typeof l?l.apply(e,r):l,n(c)}catch(e){if(!(e instanceof a.MissingDataException))return void o(e);i.streamManager.requestRange(e.begin,e.end).then(s,o)}}s()})},requestRange:function(e,t){return this.streamManager.requestRange(e,t)},requestLoadedStream:function(){this.streamManager.requestAllChunks()},sendProgressiveData:function(e){this.streamManager.onReceiveData({chunk:e})},onLoadedStream:function(){return this.streamManager.onLoadedStream()},terminate:function(){this.streamManager.abort()}}),e}();t.LocalPdfManager=c,t.NetworkPdfManager=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptParser=t.PostScriptLexer=void 0;var a=r(0),i=r(1),n=function(){function e(e){this.lexer=e,this.operators=[],this.token=null,this.prev=null}return e.prototype={nextToken:function(){this.prev=this.token,this.token=this.lexer.getToken()},accept:function(e){return this.token.type===e&&(this.nextToken(),!0)},expect:function(e){if(this.accept(e))return!0;(0,a.error)("Unexpected symbol: found "+this.token.type+" expected "+e+".")},parse:function(){return this.nextToken(),this.expect(o.LBRACE),this.parseBlock(),this.expect(o.RBRACE),this.operators},parseBlock:function(){for(;;)if(this.accept(o.NUMBER))this.operators.push(this.prev.value);else if(this.accept(o.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(o.LBRACE))return;this.parseCondition()}},parseCondition:function(){var e=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(o.RBRACE),this.accept(o.IF))this.operators[e]=this.operators.length,this.operators[e+1]="jz";else if(this.accept(o.LBRACE)){var t=this.operators.length;this.operators.push(null,null);var r=this.operators.length;this.parseBlock(),this.expect(o.RBRACE),this.expect(o.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]="j",this.operators[e]=r,this.operators[e+1]="jz"}else(0,a.error)("PS Function: error parsing conditional.")}},e}(),o={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},s=function(){function e(e,t){this.type=e,this.value=t}var t=Object.create(null);return e.getOperator=function(r){var a=t[r];return a||(t[r]=new e(o.OPERATOR,r))},e.LBRACE=new e(o.LBRACE,"{"),e.RBRACE=new e(o.RBRACE,"}"),e.IF=new e(o.IF,"IF"),e.IFELSE=new e(o.IFELSE,"IFELSE"),e}(),c=function(){function e(e){this.stream=e,this.nextChar(),this.strBuf=[]}return e.prototype={nextChar:function(){return this.currentChar=this.stream.getByte()},getToken:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return i.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,a.isSpace)(t))break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new s(o.NUMBER,this.getNumber());case 123:return this.nextChar(),s.LBRACE;case 125:return this.nextChar(),s.RBRACE}var r=this.strBuf;for(r.length=0,r[0]=String.fromCharCode(t);(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)r.push(String.fromCharCode(t));var n=r.join("");switch(n.toLowerCase()){case"if":return s.IF;case"ifelse":return s.IFELSE;default:return s.getOperator(n)}},getNumber:function(){var e=this.currentChar,t=this.strBuf;for(t.length=0,t[0]=String.fromCharCode(e);(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));var r=parseFloat(t.join(""));return isNaN(r)&&(0,a.error)("Invalid floating point number: "+r),r}},e}();t.PostScriptLexer=c,t.PostScriptParser=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Parser=void 0;var a=r(0),i=r(5),n=r(2),o=function(){function e(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}var t={hstem:[1],vstem:[3],vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};return e.prototype={convert:function(e,r,i){for(var n,o,s,c=e.length,l=!1,h=0;h<c;h++){var u=e[h];if(u<32){switch(12===u&&(u=(u<<8)+e[++h]),u){case 1:case 3:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){l=!0;break}var d=this.stack.pop();this.stack.push(0,d);break}l=this.executeCommand(1,t.vmoveto);break;case 5:l=this.executeCommand(2,t.rlineto);break;case 6:l=this.executeCommand(1,t.hlineto);break;case 7:l=this.executeCommand(1,t.vlineto);break;case 8:l=this.executeCommand(6,t.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){l=!0;break}s=this.stack.pop(),l=this.convert(r[s],r,i);break;case 11:return l;case 13:if(this.stack.length<2){l=!0;break}n=this.stack.pop(),o=this.stack.pop(),this.lsb=o,this.width=n,this.stack.push(n,o),l=this.executeCommand(2,t.hmoveto);break;case 14:this.output.push(t.endchar[0]);break;case 21:if(this.flexing)break;l=this.executeCommand(2,t.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}l=this.executeCommand(1,t.hmoveto);break;case 30:l=this.executeCommand(4,t.vhcurveto);break;case 31:l=this.executeCommand(4,t.hvcurveto);break;case 3072:case 3073:case 3074:this.stack=[];break;case 3078:i?(this.seac=this.stack.splice(-4,4),l=this.executeCommand(0,t.endchar)):l=this.executeCommand(4,t.endchar);break;case 3079:if(this.stack.length<4){l=!0;break}this.stack.pop(),n=this.stack.pop();var f=this.stack.pop();o=this.stack.pop(),this.lsb=o,this.width=n,this.stack.push(n,o,f),l=this.executeCommand(3,t.rmoveto);break;case 3084:if(this.stack.length<2){l=!0;break}var g=this.stack.pop(),p=this.stack.pop();this.stack.push(p/g);break;case 3088:if(this.stack.length<2){l=!0;break}s=this.stack.pop();var m=this.stack.pop();if(0===s&&3===m){var b=this.stack.splice(this.stack.length-17,17);this.stack.push(b[2]+b[0],b[3]+b[1],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14]),l=this.executeCommand(13,t.flex,!0),this.flexing=!1,this.stack.push(b[15],b[16])}else 1===s&&0===m&&(this.flexing=!0);break;case 3089:break;case 3105:this.stack=[];break;default:(0,a.warn)('Unknown type 1 charstring command of "'+u+'"')}if(l)break}else u<=246?u-=139:u=u<=250?256*(u-247)+e[++h]+108:u<=254?-256*(u-251)-e[++h]-108:(255&e[++h])<<24|(255&e[++h])<<16|(255&e[++h])<<8|(255&e[++h])<<0,this.stack.push(u)}return l},executeCommand:function(e,t,r){var a=this.stack.length;if(e>a)return!0;for(var i=a-e,n=i;n<a;n++){var o=this.stack[n];o===(0|o)?this.output.push(28,o>>8&255,255&o):(o=65536*o|0,this.output.push(255,o>>24&255,o>>16&255,o>>8&255,255&o))}return this.output.push.apply(this.output,t),r?this.stack.splice(i,e):this.stack.length=0,!1}},e}(),s=function(){function e(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function t(e,t,r){if(r>=e.length)return new Uint8Array(0);var a,i,n=0|t;for(a=0;a<r;a++)n=52845*(e[a]+n)+22719&65535;var o=e.length-r,s=new Uint8Array(o);for(a=r,i=0;i<o;a++,i++){var c=e[a];s[i]=c^n>>8,n=52845*(c+n)+22719&65535}return s}function r(t,r,a){var i,n,o=0|r,s=t.length,c=s>>>1,l=new Uint8Array(c);for(i=0,n=0;i<s;i++){var h=t[i];if(e(h)){i++;for(var u;i<s&&!e(u=t[i]);)i++;if(i<s){var d=parseInt(String.fromCharCode(h,u),16);l[n++]=d^o>>8,o=52845*(d+o)+22719&65535}}}return Array.prototype.slice.call(l,a,n)}function s(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}function c(a,i,o){if(i){var s=a.getBytes(),c=!(e(s[0])&&e(s[1])&&e(s[2])&&e(s[3]));a=new n.Stream(c?t(s,l,4):r(s,l,4))}this.seacAnalysisEnabled=!!o,this.stream=a,this.nextChar()}var l=55665;return c.prototype={readNumberArray:function(){this.getToken();for(var e=[];;){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e},readNumber:function(){var e=this.getToken();return parseFloat(e||0)},readInt:function(){var e=this.getToken();return 0|parseInt(e||0,10)},readBoolean:function(){return"true"===this.getToken()?1:0},nextChar:function(){return this.currentChar=this.stream.getByte()},getToken:function(){for(var e=!1,t=this.currentChar;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,a.isSpace)(t))break;t=this.nextChar()}if(s(t))return this.nextChar(),String.fromCharCode(t);var r="";do{r+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!(0,a.isSpace)(t)&&!s(t));return r},extractFontProgram:function(){var e=this.stream,r=[],a=[],i=Object.create(null);i.lenIV=4;for(var n,s,c,l,h,u={subrs:[],charstrings:[],properties:{privateData:i}};null!==(n=this.getToken());)if("/"===n)switch(n=this.getToken()){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();;){if(null===(n=this.getToken())||"end"===n)break;if("/"===n){var d=this.getToken();s=this.readInt(),this.getToken(),c=e.makeSubStream(e.pos,s),l=u.properties.privateData.lenIV,h=t(c.getBytes(),4330,l),e.skip(s),this.nextChar(),"noaccess"===(n=this.getToken())&&this.getToken(),a.push({glyph:d,encoded:h})}}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===(n=this.getToken());){var f=this.readInt();s=this.readInt(),this.getToken(),c=e.makeSubStream(e.pos,s),l=u.properties.privateData.lenIV,h=t(c.getBytes(),4330,l),e.skip(s),this.nextChar(),"noaccess"===(n=this.getToken())&&this.getToken(),r[f]=h}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var g=this.readNumberArray();g.length>0&&g.length,1;break;case"StemSnapH":case"StemSnapV":u.properties.privateData[n]=this.readNumberArray();break;case"StdHW":case"StdVW":u.properties.privateData[n]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":u.properties.privateData[n]=this.readNumber();break;case"ForceBold":u.properties.privateData[n]=this.readBoolean()}for(var p=0;p<a.length;p++){d=a[p].glyph,h=a[p].encoded;var m=new o,b=m.convert(h,r,this.seacAnalysisEnabled),v=m.output;b&&(v=[14]),u.charstrings.push({glyphName:d,charstring:v,width:m.width,lsb:m.lsb,seac:m.seac})}return u},extractFontHeader:function(e){for(var t;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken()){case"FontMatrix":var r=this.readNumberArray();e.fontMatrix=r;break;case"Encoding":var a,n=this.getToken();if(/^\d+$/.test(n)){a=[];var o=0|parseInt(n,10);this.getToken();for(var s=0;s<o;s++){for(t=this.getToken();"dup"!==t&&"def"!==t;)if(null===(t=this.getToken()))return;if("def"===t)break;var c=this.readInt();this.getToken();var l=this.getToken();a[c]=l,this.getToken()}}else a=(0,i.getEncoding)(n);e.builtInEncoding=a;break;case"FontBBox":var h=this.readNumberArray();e.ascent=Math.max(h[3],h[1]),e.descent=Math.min(h[1],h[3]),e.ascentScaled=!0}}},c}();t.Type1Parser=s},function(e,t,r){"use strict";function a(e){e.mozCurrentTransform||(e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[],Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){var e=this._transformMatrix,t=e[0],r=e[1],a=e[2],i=e[3],n=e[4],o=e[5],s=t*i-r*a,c=r*a-t*i;return[i/s,r/c,a/c,t/s,(i*n-a*o)/c,(r*n-t*o)/s]}}),e.save=function(){var e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){var e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){var r=this._transformMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5],this._originalTranslate(e,t)},e.scale=function(e,t){var r=this._transformMatrix;r[0]=r[0]*e,r[1]=r[1]*e,r[2]=r[2]*t,r[3]=r[3]*t,this._originalScale(e,t)},e.transform=function(t,r,a,i,n,o){var s=this._transformMatrix;this._transformMatrix=[s[0]*t+s[2]*r,s[1]*t+s[3]*r,s[0]*a+s[2]*i,s[1]*a+s[3]*i,s[0]*n+s[2]*o+s[4],s[1]*n+s[3]*o+s[5]],e._originalTransform(t,r,a,i,n,o)},e.setTransform=function(t,r,a,i,n,o){this._transformMatrix=[t,r,a,i,n,o],e._originalSetTransform(t,r,a,i,n,o)},e.rotate=function(e){var t=Math.cos(e),r=Math.sin(e),a=this._transformMatrix;this._transformMatrix=[a[0]*t+a[2]*r,a[1]*t+a[3]*r,a[0]*-r+a[2]*t,a[1]*-r+a[3]*t,a[4],a[5]],this._originalRotate(e)})}function i(e){var t,r,a,i,n=e.width,o=e.height,s=n+1,c=new Uint8Array(s*(o+1)),l=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),h=n+7&-8,u=e.data,d=new Uint8Array(h*o),f=0;for(t=0,i=u.length;t<i;t++)for(var g=128,p=u[t];g>0;)d[f++]=p&g?0:255,g>>=1;var m=0;for(0!==d[f=0]&&(c[0]=1,++m),r=1;r<n;r++)d[f]!==d[f+1]&&(c[r]=d[f]?2:1,++m),f++;for(0!==d[f]&&(c[r]=2,++m),t=1;t<o;t++){a=t*s,d[(f=t*h)-h]!==d[f]&&(c[a]=d[f]?1:8,++m);var b=(d[f]?4:0)+(d[f-h]?8:0);for(r=1;r<n;r++)l[b=(b>>2)+(d[f+1]?4:0)+(d[f-h+1]?8:0)]&&(c[a+r]=l[b],++m),f++;if(d[f-h]!==d[f]&&(c[a+r]=d[f]?2:4,++m),m>1e3)return null}for(a=t*s,0!==d[f=h*(o-1)]&&(c[a]=8,++m),r=1;r<n;r++)d[f]!==d[f+1]&&(c[a+r]=d[f]?4:8,++m),f++;if(0!==d[f]&&(c[a+r]=4,++m),m>1e3)return null;var v=new Int32Array([0,s,-1,0,-s,0,0,0,1]),y=[];for(t=0;m&&t<=o;t++){for(var k=t*s,w=k+n;k<w&&!c[k];)k++;if(k!==w){var S,A=[k%s,t],C=c[k],x=k;do{var P=v[C];do{k+=P}while(!c[k]);5!==(S=c[k])&&10!==S?(C=S,c[k]=0):(C=S&51*C>>4,c[k]&=C>>2|C<<2),A.push(k%s),A.push(k/s|0),--m}while(x!==k);y.push(A),--t}}return function(e){e.save(),e.scale(1/n,-1/o),e.translate(0,-o),e.beginPath();for(var t=0,r=y.length;t<r;t++){var a=y[t];e.moveTo(a[0],a[1]);for(var i=2,s=a.length;i<s;i+=2)e.lineTo(a[i],a[i+1])}e.fill(),e.beginPath(),e.restore()}}Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var n=r(0),o=r(47),s=r(25),c=16,l={get value(){return(0,n.shadow)(l,"value",(0,n.isLittleEndian)())}},h=function(){function e(e){this.canvasFactory=e,this.cache=Object.create(null)}return e.prototype={getCanvas:function(e,t,r,i){var n;return void 0!==this.cache[e]?(n=this.cache[e],this.canvasFactory.reset(n,t,r),n.context.setTransform(1,0,0,1,0,0)):(n=this.canvasFactory.create(t,r),this.cache[e]=n),i&&a(n.context),n},clear:function(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}},e}(),u=function(){function e(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=n.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=n.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}(),d=function(){function e(e,t,r,i,n){this.ctx=e,this.current=new u,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=r,this.canvasFactory=i,this.imageLayer=n,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new h(this.canvasFactory),e&&a(e),this.cachedGetSinglePixelWidth=null}function t(e,t){if("undefined"!=typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var r,a,i,o,s,h=t.height,u=t.width,d=h%c,f=(h-d)/c,g=0===d?f:f+1,p=e.createImageData(u,c),m=0,b=t.data,v=p.data;if(t.kind===n.ImageKind.GRAYSCALE_1BPP){var y=b.byteLength,k=new Uint32Array(v.buffer,0,v.byteLength>>2),w=k.length,S=u+7>>3,A=4294967295,C=l.value?4278190080:255;for(a=0;a<g;a++){for(o=a<f?c:d,r=0,i=0;i<o;i++){for(var x=y-m,P=0,_=x>S?u:8*x-7,T=-8&_,I=0,R=0;P<T;P+=8)R=b[m++],k[r++]=128&R?A:C,k[r++]=64&R?A:C,k[r++]=32&R?A:C,k[r++]=16&R?A:C,k[r++]=8&R?A:C,k[r++]=4&R?A:C,k[r++]=2&R?A:C,k[r++]=1&R?A:C;for(;P<_;P++)0===I&&(R=b[m++],I=128),k[r++]=R&I?A:C,I>>=1}for(;r<w;)k[r++]=0;e.putImageData(p,0,a*c)}}else if(t.kind===n.ImageKind.RGBA_32BPP){for(i=0,s=u*c*4,a=0;a<f;a++)v.set(b.subarray(m,m+s)),m+=s,e.putImageData(p,0,i),i+=c;a<g&&(s=u*d*4,v.set(b.subarray(m,m+s)),e.putImageData(p,0,i))}else if(t.kind===n.ImageKind.RGB_24BPP)for(s=u*(o=c),a=0;a<g;a++){for(a>=f&&(s=u*(o=d)),r=0,i=s;i--;)v[r++]=b[m++],v[r++]=b[m++],v[r++]=b[m++],v[r++]=255;e.putImageData(p,0,a*c)}else(0,n.error)("bad image kind: "+t.kind)}}function r(e,t){for(var r=t.height,a=t.width,i=r%c,n=(r-i)/c,o=0===i?n:n+1,s=e.createImageData(a,c),l=0,h=t.data,u=s.data,d=0;d<o;d++){for(var f=d<n?c:i,g=3,p=0;p<f;p++)for(var m=0,b=0;b<a;b++){if(!m){var v=h[l++];m=128}u[g]=v&m?0:255,g+=4,m>>=1}e.putImageData(s,0,d*c)}}function d(e,t){for(var r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],a=0,i=r.length;a<i;a++){var n=r[a];void 0!==e[n]&&(t[n]=e[n])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function f(e){e.strokeStyle="#000000",e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function g(e,t,r,a){for(var i=e.length,n=3;n<i;n+=4){var o=e[n];if(0===o)e[n-3]=t,e[n-2]=r,e[n-1]=a;else if(o<255){var s=255-o;e[n-3]=e[n-3]*o+t*s>>8,e[n-2]=e[n-2]*o+r*s>>8,e[n-1]=e[n-1]*o+a*s>>8}}}function p(e,t,r){for(var a=e.length,i=3;i<a;i+=4){var n=r?r[e[i]]:e[i];t[i]=t[i]*n*(1/255)|0}}function m(e,t,r){for(var a=e.length,i=3;i<a;i+=4){var n=77*e[i-3]+152*e[i-2]+28*e[i-1];t[i]=r?t[i]*r[n>>8]>>8:t[i]*n>>16}}function b(e,t,r,a,i,n,o){var s,c=!!n,l=c?n[0]:0,h=c?n[1]:0,u=c?n[2]:0;s="Luminosity"===i?m:p;for(var d=Math.min(a,Math.ceil(1048576/r)),f=0;f<a;f+=d){var b=Math.min(d,a-f),v=e.getImageData(0,f,r,b),y=t.getImageData(0,f,r,b);c&&g(v.data,l,h,u),s(v.data,y.data,o),e.putImageData(y,0,f)}}function v(e,t,r){var a=t.canvas,i=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var n=t.backdrop||null;if(!t.transferMap&&s.WebGLUtils.isEnabled){var o=s.WebGLUtils.composeSMask(r.canvas,a,{subtype:t.subtype,backdrop:n});return e.setTransform(1,0,0,1,0,0),void e.drawImage(o,t.offsetX,t.offsetY)}b(i,r,a.width,a.height,t.subtype,n,t.transferMap),e.drawImage(a,0,0)}var y=["butt","round","square"],k=["miter","round","bevel"],w={},S={};e.prototype={beginDrawing:function(e){var t=e.transform,r=e.viewport,a=e.transparency,i=e.background,n=void 0===i?null:i,o=this.ctx.canvas.width,s=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=n||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,o,s),this.ctx.restore(),a){var c=this.cachedCanvases.getCanvas("transparent",o,s,!0);this.compositeCtx=this.ctx,this.transparentCanvas=c.canvas,this.ctx=c.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),f(this.ctx),t&&this.ctx.transform.apply(this.ctx,t),this.ctx.transform.apply(this.ctx,r.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(e,t,r,a){var i=e.argsArray,o=e.fnArray,s=t||0,c=i.length;if(c===s)return s;for(var l,h=c-s>10&&"function"==typeof r,u=h?Date.now()+15:0,d=0,f=this.commonObjs,g=this.objs;;){if(void 0!==a&&s===a.nextBreakPoint)return a.breakIt(s,r),s;if((l=o[s])!==n.OPS.dependency)this[l].apply(this,i[s]);else for(var p=i[s],m=0,b=p.length;m<b;m++){var v=p[m],y="g"===v[0]&&"_"===v[1]?f:g;if(!y.isResolved(v))return y.get(v,r),s}if(++s===c)return s;if(h&&++d>10){if(Date.now()>u)return r(),s;d=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),s.WebGLUtils.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=y[e]},setLineJoin:function(e){this.ctx.lineJoin=k[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)},setRenderingIntent:function(e){},setFlatness:function(e){},setGState:function(e){for(var t=0,r=e.length;t<r;t++){var a=e[t],i=a[0],n=a[1];switch(i){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n[0],n[1]);break;case"CA":this.current.strokeAlpha=a[1];break;case"ca":this.current.fillAlpha=a[1],this.ctx.globalAlpha=a[1];break;case"BM":this.ctx.globalCompositeOperation=n;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=n?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,r=e.canvas.height,a="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(a,t,r,!0),n=this.ctx,o=n.mozCurrentTransform;this.ctx.save();var s=i.context;s.scale(1/e.scaleX,1/e.scaleY),s.translate(-e.offsetX,-e.offsetY),s.transform.apply(s,o),e.startTransformInverse=s.mozCurrentTransformInverse,d(n,s),this.ctx=s,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(n),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),v(this.ctx,this.current.activeSMask,e),this.ctx.restore(),this.ctx.save(),d(e,this.ctx),this.current.resumeSMaskCtx=e;var t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),v(this.ctx,this.current.activeSMask,e),this.ctx.restore(),d(e,this.ctx);var t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this.cachedGetSinglePixelWidth=null)},transform:function(e,t,r,a,i,n){this.ctx.transform(e,t,r,a,i,n),this.cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var r=this.ctx,a=this.current,i=a.x,o=a.y,s=0,c=0,l=e.length;s<l;s++)switch(0|e[s]){case n.OPS.rectangle:i=t[c++],o=t[c++];var h=t[c++],u=t[c++];0===h&&(h=this.getSinglePixelWidth()),0===u&&(u=this.getSinglePixelWidth());var d=i+h,f=o+u;this.ctx.moveTo(i,o),this.ctx.lineTo(d,o),this.ctx.lineTo(d,f),this.ctx.lineTo(i,f),this.ctx.lineTo(i,o),this.ctx.closePath();break;case n.OPS.moveTo:i=t[c++],o=t[c++],r.moveTo(i,o);break;case n.OPS.lineTo:i=t[c++],o=t[c++],r.lineTo(i,o);break;case n.OPS.curveTo:i=t[c+4],o=t[c+5],r.bezierCurveTo(t[c],t[c+1],t[c+2],t[c+3],i,o),c+=6;break;case n.OPS.curveTo2:r.bezierCurveTo(i,o,t[c],t[c+1],t[c+2],t[c+3]),i=t[c+2],o=t[c+3],c+=4;break;case n.OPS.curveTo3:i=t[c+2],o=t[c+3],r.bezierCurveTo(t[c],t[c+1],i,o,i,o),c+=4;break;case n.OPS.closePath:r.closePath()}a.setCurrentPoint(i,o)},closePath:function(){this.ctx.closePath()},stroke:function(e){e=void 0===e||e;var t=this.ctx,r=this.current.strokeColor;t.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth),t.globalAlpha=this.current.strokeAlpha,r&&r.hasOwnProperty("type")&&"Pattern"===r.type?(t.save(),t.strokeStyle=r.getPattern(t,this),t.stroke(),t.restore()):t.stroke(),e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(e){e=void 0===e||e;var t=this.ctx,r=this.current.fillColor,a=!1;this.current.patternFill&&(t.save(),this.baseTransform&&t.setTransform.apply(t,this.baseTransform),t.fillStyle=r.getPattern(t,this),a=!0),this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill(),a&&t.restore(),e&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=w},eoClip:function(){this.pendingClip=S},beginText:function(){this.current.textMatrix=n.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(var r=0;r<e.length;r++){var a=e[r];t.setTransform.apply(t,a.transform),t.translate(a.x,a.y),a.addToPath(t,a.fontSize)}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()},setCharSpacing:function(e){this.current.charSpacing=e},setWordSpacing:function(e){this.current.wordSpacing=e},setHScale:function(e){this.current.textHScale=e/100},setLeading:function(e){this.current.leading=-e},setFont:function(e,t){var r=this.commonObjs.get(e),a=this.current;if(r||(0,n.error)("Can't find font for "+e),a.fontMatrix=r.fontMatrix?r.fontMatrix:n.FONT_IDENTITY_MATRIX,0!==a.fontMatrix[0]&&0!==a.fontMatrix[3]||(0,n.warn)("Invalid font matrix for font "+e),t<0?(t=-t,a.fontDirection=-1):a.fontDirection=1,this.current.font=r,this.current.fontSize=t,!r.isType3Font){var i=r.loadedName||"sans-serif",o=r.black?"900":r.bold?"bold":"normal",s=r.italic?"italic":"normal",c='"'+i+'", '+r.fallbackName,l=t<16?16:t>100?100:t;this.current.fontSizeScale=t/l;var h=s+" "+o+" "+l+"px "+c;this.ctx.font=h}},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,r,a,i,n){this.current.textMatrix=[e,t,r,a,i,n],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(e,t,r){var a,i=this.ctx,o=this.current,s=o.font,c=o.textRenderingMode,l=o.fontSize/o.fontSizeScale,h=c&n.TextRenderingMode.FILL_STROKE_MASK,u=!!(c&n.TextRenderingMode.ADD_TO_PATH_FLAG);(s.disableFontFace||u)&&(a=s.getPathGenerator(this.commonObjs,e)),s.disableFontFace?(i.save(),i.translate(t,r),i.beginPath(),a(i,l),h!==n.TextRenderingMode.FILL&&h!==n.TextRenderingMode.FILL_STROKE||i.fill(),h!==n.TextRenderingMode.STROKE&&h!==n.TextRenderingMode.FILL_STROKE||i.stroke(),i.restore()):(h!==n.TextRenderingMode.FILL&&h!==n.TextRenderingMode.FILL_STROKE||i.fillText(e,t,r),h!==n.TextRenderingMode.STROKE&&h!==n.TextRenderingMode.FILL_STROKE||i.strokeText(e,t,r)),u&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:i.mozCurrentTransform,x:t,y:r,fontSize:l,addToPath:a})},get isFontSubpixelAAEnabled(){var e=this.canvasFactory.create(10,10).context;e.scale(1.5,1),e.fillText("I",0,10);for(var t=e.getImageData(0,0,10,10).data,r=!1,a=3;a<t.length;a+=4)if(t[a]>0&&t[a]<255){r=!0;break}return(0,n.shadow)(this,"isFontSubpixelAAEnabled",r)},showText:function(e){var t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);var a=t.fontSize;if(0!==a){var i=this.ctx,o=t.fontSizeScale,s=t.charSpacing,c=t.wordSpacing,l=t.fontDirection,h=t.textHScale*l,u=e.length,d=r.vertical,f=d?1:-1,g=r.defaultVMetrics,p=a*t.fontMatrix[0],m=t.textRenderingMode===n.TextRenderingMode.FILL&&!r.disableFontFace;i.save(),i.transform.apply(i,t.textMatrix),i.translate(t.x,t.y+t.textRise),t.patternFill&&(i.fillStyle=t.fillColor.getPattern(i,this)),l>0?i.scale(h,-1):i.scale(h,1);var b=t.lineWidth,v=t.textMatrixScale;if(0===v||0===b){var y=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;y!==n.TextRenderingMode.STROKE&&y!==n.TextRenderingMode.FILL_STROKE||(this.cachedGetSinglePixelWidth=null,b=.65*this.getSinglePixelWidth())}else b/=v;1!==o&&(i.scale(o,o),b/=o),i.lineWidth=b;var k,w=0;for(k=0;k<u;++k){var S=e[k];if((0,n.isNum)(S))w+=f*S*a/1e3;else{var A,C,x,P,_=!1,T=(S.isSpace?c:0)+s,I=S.fontChar,R=S.accent,O=S.width;if(d){var E,F,L;E=S.vmetric||g,F=-(F=S.vmetric?E[1]:.5*O)*p,L=E[2]*p,O=E?-E[0]:O,A=F/o,C=(w+L)/o}else A=w/o,C=0;if(r.remeasure&&O>0){var D=1e3*i.measureText(I).width/a*o;if(O<D&&this.isFontSubpixelAAEnabled){var M=O/D;_=!0,i.save(),i.scale(M,1),A/=M}else O!==D&&(A+=(O-D)/2e3*a/o)}(S.isInFont||r.missingFile)&&(m&&!R?i.fillText(I,A,C):(this.paintChar(I,A,C),R&&(x=A+R.offset.x/o,P=C-R.offset.y/o,this.paintChar(R.fontChar,x,P)))),w+=O*p+T*l,_&&i.restore()}}d?t.y-=w*h:t.x+=w*h,i.restore()}},showType3Text:function(e){var t,r,a,i,o=this.ctx,s=this.current,c=s.font,l=s.fontSize,h=s.fontDirection,u=c.vertical?1:-1,d=s.charSpacing,f=s.wordSpacing,g=s.textHScale*h,p=s.fontMatrix||n.FONT_IDENTITY_MATRIX,m=e.length;if(!(s.textRenderingMode===n.TextRenderingMode.INVISIBLE)&&0!==l){for(this.cachedGetSinglePixelWidth=null,o.save(),o.transform.apply(o,s.textMatrix),o.translate(s.x,s.y),o.scale(g,h),t=0;t<m;++t)if(r=e[t],(0,n.isNum)(r))i=u*r*l/1e3,this.ctx.translate(i,0),s.x+=i*g;else{var b=(r.isSpace?f:0)+d,v=c.charProcOperatorList[r.operatorListId];v?(this.processingType3=r,this.save(),o.scale(l,l),o.transform.apply(o,p),this.executeOperatorList(v),this.restore(),a=n.Util.applyTransform([r.width,0],p)[0]*l+b,o.translate(a,0),s.x+=a*g):(0,n.warn)('Type3 character "'+r.operatorListId+'" is not available.')}o.restore(),this.processingType3=null}},setCharWidth:function(e,t){},setCharWidthAndBounds:function(e,t,r,a,i,n){this.ctx.rect(r,a,i-r,n-a),this.clip(),this.endPath()},getColorN_Pattern:function(t){var r,a=this;if("TilingPattern"===t[0]){var i=t[1],n=this.baseTransform||this.ctx.mozCurrentTransform.slice(),s={createCanvasGraphics:function(t){return new e(t,a.commonObjs,a.objs,a.canvasFactory)}};r=new o.TilingPattern(t,i,this.ctx,s,n)}else r=(0,o.getShadingPatternFromIR)(t);return r},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(e,t,r){var a=n.Util.makeCssRgb(e,t,r);this.ctx.strokeStyle=a,this.current.strokeColor=a},setFillRGBColor:function(e,t,r){var a=n.Util.makeCssRgb(e,t,r);this.ctx.fillStyle=a,this.current.fillColor=a,this.current.patternFill=!1},shadingFill:function(e){var t=this.ctx;this.save();var r=(0,o.getShadingPatternFromIR)(e);t.fillStyle=r.getPattern(t,this,!0);var a=t.mozCurrentTransformInverse;if(a){var i=t.canvas,s=i.width,c=i.height,l=n.Util.applyTransform([0,0],a),h=n.Util.applyTransform([0,c],a),u=n.Util.applyTransform([s,0],a),d=n.Util.applyTransform([s,c],a),f=Math.min(l[0],h[0],u[0],d[0]),g=Math.min(l[1],h[1],u[1],d[1]),p=Math.max(l[0],h[0],u[0],d[0]),m=Math.max(l[1],h[1],u[1],d[1]);this.ctx.fillRect(f,g,p-f,m-g)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,n.error)("Should not call beginInlineImage")},beginImageData:function(){(0,n.error)("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){if(this.save(),this.baseTransformStack.push(this.baseTransform),(0,n.isArray)(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,(0,n.isArray)(t)&&4===t.length){var r=t[2]-t[0],a=t[3]-t[1];this.ctx.rect(t[0],t[1],r,a),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(e){this.save();var t=this.ctx;e.isolated||(0,n.info)("TODO: Support non-isolated groups."),e.knockout&&(0,n.warn)("Knockout groups not supported.");var r=t.mozCurrentTransform;e.matrix&&t.transform.apply(t,e.matrix),(0,n.assert)(e.bbox,"Bounding box is required.");var a=n.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform),i=[0,0,t.canvas.width,t.canvas.height];a=n.Util.intersect(a,i)||[0,0,0,0];var o=Math.floor(a[0]),s=Math.floor(a[1]),c=Math.max(Math.ceil(a[2])-o,1),l=Math.max(Math.ceil(a[3])-s,1),h=1,u=1;c>4096&&(h=c/4096,c=4096),l>4096&&(u=l/4096,l=4096);var f="groupAt"+this.groupLevel;e.smask&&(f+="_smask_"+this.smaskCounter++%2);var g=this.cachedCanvases.getCanvas(f,c,l,!0),p=g.context;p.scale(1/h,1/u),p.translate(-o,-s),p.transform.apply(p,r),e.smask?this.smaskStack.push({canvas:g.canvas,context:p,offsetX:o,offsetY:s,scaleX:h,scaleY:u,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(o,s),t.scale(h,u)),d(t,p),this.ctx=p,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,r){if(this.save(),f(this.ctx),this.current=new u,(0,n.isArray)(e)&&4===e.length){var a=e[2]-e[0],i=e[3]-e[1];this.ctx.rect(e[0],e[1],a,i),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,r)},endAnnotation:function(){this.restore()},paintJpegXObject:function(e,t,r){var a=this.objs.get(e);if(a){this.save();var i=this.ctx;if(i.scale(1/t,-1/r),i.drawImage(a,0,0,a.width,a.height,0,-r,t,r),this.imageLayer){var o=i.mozCurrentTransformInverse,s=this.getCanvasPosition(0,0);this.imageLayer.appendImage({objId:e,left:s[0],top:s[1],width:t/o[0],height:r/o[3]})}this.restore()}else(0,n.warn)("Dependent image isn't ready yet")},paintImageMaskXObject:function(e){var t=this.ctx,a=e.width,n=e.height,o=this.current.fillColor,s=this.current.patternFill,c=this.processingType3;if(c&&void 0===c.compiled&&(c.compiled=a<=1e3&&n<=1e3?i({data:e.data,width:a,height:n}):null),c&&c.compiled)c.compiled(t);else{var l=this.cachedCanvases.getCanvas("maskCanvas",a,n),h=l.context;h.save(),r(h,e),h.globalCompositeOperation="source-in",h.fillStyle=s?o.getPattern(h,this):o,h.fillRect(0,0,a,n),h.restore(),this.paintInlineImageXObject(l.canvas)}},paintImageMaskXObjectRepeat:function(e,t,a,i){var n=e.width,o=e.height,s=this.current.fillColor,c=this.current.patternFill,l=this.cachedCanvases.getCanvas("maskCanvas",n,o),h=l.context;h.save(),r(h,e),h.globalCompositeOperation="source-in",h.fillStyle=c?s.getPattern(h,this):s,h.fillRect(0,0,n,o),h.restore();for(var u=this.ctx,d=0,f=i.length;d<f;d+=2)u.save(),u.transform(t,0,0,a,i[d],i[d+1]),u.scale(1,-1),u.drawImage(l.canvas,0,0,n,o,0,-1,1,1),u.restore()},paintImageMaskXObjectGroup:function(e){for(var t=this.ctx,a=this.current.fillColor,i=this.current.patternFill,n=0,o=e.length;n<o;n++){var s=e[n],c=s.width,l=s.height,h=this.cachedCanvases.getCanvas("maskCanvas",c,l),u=h.context;u.save(),r(u,s),u.globalCompositeOperation="source-in",u.fillStyle=i?a.getPattern(u,this):a,u.fillRect(0,0,c,l),u.restore(),t.save(),t.transform.apply(t,s.transform),t.scale(1,-1),t.drawImage(h.canvas,0,0,c,l,0,-1,1,1),t.restore()}},paintImageXObject:function(e){var t=this.objs.get(e);t?this.paintInlineImageXObject(t):(0,n.warn)("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(e,t,r,a){var i=this.objs.get(e);if(i){for(var o=i.width,s=i.height,c=[],l=0,h=a.length;l<h;l+=2)c.push({transform:[t,0,0,r,a[l],a[l+1]],x:0,y:0,w:o,h:s});this.paintInlineImageXObjectGroup(i,c)}else(0,n.warn)("Dependent image isn't ready yet")},paintInlineImageXObject:function(e){var r=e.width,a=e.height,i=this.ctx;this.save(),i.scale(1/r,-1/a);var n,o,s=i.mozCurrentTransformInverse,c=s[0],l=s[1],h=Math.max(Math.sqrt(c*c+l*l),1),u=s[2],d=s[3],f=Math.max(Math.sqrt(u*u+d*d),1);if(e instanceof HTMLElement||!e.data)n=e;else{var g=(o=this.cachedCanvases.getCanvas("inlineImage",r,a)).context;t(g,e),n=o.canvas}for(var p=r,m=a,b="prescale1";h>2&&p>1||f>2&&m>1;){var v=p,y=m;h>2&&p>1&&(h/=p/(v=Math.ceil(p/2))),f>2&&m>1&&(f/=m/(y=Math.ceil(m/2))),(g=(o=this.cachedCanvases.getCanvas(b,v,y)).context).clearRect(0,0,v,y),g.drawImage(n,0,0,p,m,0,0,v,y),n=o.canvas,p=v,m=y,b="prescale1"===b?"prescale2":"prescale1"}if(i.drawImage(n,0,0,p,m,0,-a,r,a),this.imageLayer){var k=this.getCanvasPosition(0,-a);this.imageLayer.appendImage({imgData:e,left:k[0],top:k[1],width:r/s[0],height:a/s[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,r){var a=this.ctx,i=e.width,n=e.height,o=this.cachedCanvases.getCanvas("inlineImage",i,n);t(o.context,e);for(var s=0,c=r.length;s<c;s++){var l=r[s];if(a.save(),a.transform.apply(a,l.transform),a.scale(1,-1),a.drawImage(o.canvas,l.x,l.y,l.w,l.h,0,-1,1,1),this.imageLayer){var h=this.getCanvasPosition(l.x,l.y);this.imageLayer.appendImage({imgData:e,left:h[0],top:h[1],width:i,height:n})}a.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,n.warn)("Unsupported 'paintXObject' command.")},markPoint:function(e){},markPointProps:function(e,t){},beginMarkedContent:function(e){},beginMarkedContentProps:function(e,t){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var e=this.ctx;this.pendingClip&&(this.pendingClip===S?e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()},getSinglePixelWidth:function(e){if(null===this.cachedGetSinglePixelWidth){this.ctx.save();var t=this.ctx.mozCurrentTransformInverse;this.ctx.restore(),this.cachedGetSinglePixelWidth=Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1],t[2]*t[2]+t[3]*t[3]))}return this.cachedGetSinglePixelWidth},getCanvasPosition:function(e,t){var r=this.ctx.mozCurrentTransform;return[r[0]*e+r[2]*t+r[4],r[1]*e+r[3]*t+r[5]]}};for(var A in n.OPS)e.prototype[n.OPS[A]]=e.prototype[A];return e}();t.CanvasGraphics=d},function(e,t,r){"use strict";function a(e){this.docId=e,this.styleElement=null,this.nativeFontFaces=[],this.loadTestFontId=0,this.loadingContext={requests:[],nextRequestId:0}}Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var i=r(0);a.prototype={insertRule:function(e){var t=this.styleElement;t||((t=this.styleElement=document.createElement("style")).id="PDFJS_FONT_STYLE_TAG_"+this.docId,document.documentElement.getElementsByTagName("head")[0].appendChild(t));var r=t.sheet;r.insertRule(e,r.cssRules.length)},clear:function(){this.styleElement&&(this.styleElement.remove(),this.styleElement=null),this.nativeFontFaces.forEach(function(e){document.fonts.delete(e)}),this.nativeFontFaces.length=0}};var n=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};Object.defineProperty(a.prototype,"loadTestFont",{get:function(){return(0,i.shadow)(this,"loadTestFont",n())},configurable:!0}),a.prototype.addNativeFontFace=function(e){this.nativeFontFaces.push(e),document.fonts.add(e)},a.prototype.bind=function(e,t){for(var r=[],n=[],o=[],s=a.isFontLoadingAPISupported&&!a.isSyncFontLoadingSupported,c=0,l=e.length;c<l;c++){var h=e[c];if(!h.attached&&!1!==h.loading)if(h.attached=!0,s){var u=h.createNativeFontFace();u&&(this.addNativeFontFace(u),o.push(function(e){return e.loaded.catch(function(t){(0,i.warn)('Failed to load font "'+e.family+'": '+t)})}(u)))}else{var d=h.createFontFaceRule();d&&(this.insertRule(d),r.push(d),n.push(h))}}var f=this.queueLoadingCallback(t);s?Promise.all(o).then(function(){f.complete()}):r.length>0&&!a.isSyncFontLoadingSupported?this.prepareFontLoadEvent(r,n,f):f.complete()},a.prototype.queueLoadingCallback=function(e){var t=this.loadingContext,r={id:"pdfjs-font-loading-"+t.nextRequestId++,complete:function(){for((0,i.assert)(!r.end,"completeRequest() cannot be called twice"),r.end=Date.now();t.requests.length>0&&t.requests[0].end;){var e=t.requests.shift();setTimeout(e.callback,0)}},callback:e,started:Date.now()};return t.requests.push(r),r},a.prototype.prepareFontLoadEvent=function(e,t,r){function a(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function n(e,t,r,a){return e.substr(0,t)+a+e.substr(t+r)}function o(e,t){if(++u>30)return(0,i.warn)("Load test font never loaded."),void t();h.font="30px "+e,h.fillText(".",0,20),h.getImageData(0,0,1,1).data[3]>0?t():setTimeout(o.bind(null,e,t))}var s,c,l=document.createElement("canvas");l.width=1,l.height=1;var h=l.getContext("2d"),u=0,d="lt"+Date.now()+this.loadTestFontId++,f=this.loadTestFont,g=a(f=n(f,976,d.length,d),16);for(s=0,c=d.length-3;s<c;s+=4)g=g-1482184792+a(d,s)|0;s<d.length&&(g=g-1482184792+a(d+"XXX",s)|0),f=n(f,16,4,(0,i.string32)(g));var p='@font-face { font-family:"'+d+'";src:'+("url(data:font/opentype;base64,"+btoa(f)+");")+"}";this.insertRule(p);var m=[];for(s=0,c=t.length;s<c;s++)m.push(t[s].loadedName);m.push(d);var b=document.createElement("div");for(b.setAttribute("style","visibility: hidden;width: 10px; height: 10px;position: absolute; top: 0px; left: 0px;"),s=0,c=m.length;s<c;++s){var v=document.createElement("span");v.textContent="Hi",v.style.fontFamily=m[s],b.appendChild(v)}document.body.appendChild(b),o(d,function(){document.body.removeChild(b),r.complete()})},a.isFontLoadingAPISupported="undefined"!=typeof document&&!!document.fonts;var o=function(){if("undefined"==typeof navigator)return!0;var e=!1,t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);return t&&t[1]>=14&&(e=!0),e};Object.defineProperty(a,"isSyncFontLoadingSupported",{get:function(){return(0,i.shadow)(a,"isSyncFontLoadingSupported",o())},enumerable:!0,configurable:!0});var s={get value(){return(0,i.shadow)(this,"value",(0,i.isEvalSupported)())}},c=function(){function e(e,t){this.compiledGlyphs=Object.create(null);for(var r in e)this[r]=e[r];this.options=t}return e.prototype={createNativeFontFace:function(){if(!this.data)return null;if(this.options.disableFontFace)return this.disableFontFace=!0,null;var e=new FontFace(this.loadedName,this.data,{});return this.options.fontRegistry&&this.options.fontRegistry.registerFont(this),e},createFontFaceRule:function(){if(!this.data)return null;if(this.options.disableFontFace)return this.disableFontFace=!0,null;var e=(0,i.bytesToString)(new Uint8Array(this.data)),t=this.loadedName,r="url(data:"+this.mimetype+";base64,"+btoa(e)+");",a='@font-face { font-family:"'+t+'";src:'+r+"}";return this.options.fontRegistry&&this.options.fontRegistry.registerFont(this,r),a},getPathGenerator:function(e,t){if(!(t in this.compiledGlyphs)){var r,a,i,n=e.get(this.loadedName+"_path_"+t);if(this.options.isEvalSupported&&s.value){var o,c="";for(a=0,i=n.length;a<i;a++)o=void 0!==(r=n[a]).args?r.args.join(","):"",c+="c."+r.cmd+"("+o+");\n";this.compiledGlyphs[t]=new Function("c","size",c)}else this.compiledGlyphs[t]=function(e,t){for(a=0,i=n.length;a<i;a++)"scale"===(r=n[a]).cmd&&(r.args=[t,-t]),e[r.cmd].apply(e,r.args)}}return this.compiledGlyphs[t]}},e}();t.FontFaceObject=c,t.FontLoader=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.getShadingPatternFromIR=void 0;var a=r(0),i=r(25),n={};n.RadialAxial={fromIR:function(e){var t=e[1],r=e[2],a=e[3],i=e[4],n=e[5],o=e[6];return{type:"Pattern",getPattern:function(e){var s;"axial"===t?s=e.createLinearGradient(a[0],a[1],i[0],i[1]):"radial"===t&&(s=e.createRadialGradient(a[0],a[1],n,i[0],i[1],o));for(var c=0,l=r.length;c<l;++c){var h=r[c];s.addColorStop(h[0],h[1])}return s}}}};var o=function(){function e(e,t,r,a,i,n,o,s){var c,l=t.coords,h=t.colors,u=e.data,d=4*e.width;l[r+1]>l[a+1]&&(c=r,r=a,a=c,c=n,n=o,o=c),l[a+1]>l[i+1]&&(c=a,a=i,i=c,c=o,o=s,s=c),l[r+1]>l[a+1]&&(c=r,r=a,a=c,c=n,n=o,o=c);var f=(l[r]+t.offsetX)*t.scaleX,g=(l[r+1]+t.offsetY)*t.scaleY,p=(l[a]+t.offsetX)*t.scaleX,m=(l[a+1]+t.offsetY)*t.scaleY,b=(l[i]+t.offsetX)*t.scaleX,v=(l[i+1]+t.offsetY)*t.scaleY;if(!(g>=v))for(var y,k,w,S,A,C,x,P,_,T=h[n],I=h[n+1],R=h[n+2],O=h[o],E=h[o+1],F=h[o+2],L=h[s],D=h[s+1],M=h[s+2],B=Math.round(g),N=Math.round(v),U=B;U<=N;U++){U<m?(y=f-(f-p)*(_=U<g?0:g===m?1:(g-U)/(g-m)),k=T-(T-O)*_,w=I-(I-E)*_,S=R-(R-F)*_):(y=p-(p-b)*(_=U>v?1:m===v?0:(m-U)/(m-v)),k=O-(O-L)*_,w=E-(E-D)*_,S=F-(F-M)*_),A=f-(f-b)*(_=U<g?0:U>v?1:(g-U)/(g-v)),C=T-(T-L)*_,x=I-(I-D)*_,P=R-(R-M)*_;for(var j=Math.round(Math.min(y,A)),q=Math.round(Math.max(y,A)),z=d*U+4*j,G=j;G<=q;G++)_=(_=(y-G)/(y-A))<0?0:_>1?1:_,u[z++]=k-(k-C)*_|0,u[z++]=w-(w-x)*_|0,u[z++]=S-(S-P)*_|0,u[z++]=255}}function t(t,r,i){var n,o,s=r.coords,c=r.colors;switch(r.type){case"lattice":var l=r.verticesPerRow,h=Math.floor(s.length/l)-1,u=l-1;for(n=0;n<h;n++)for(var d=n*l,f=0;f<u;f++,d++)e(t,i,s[d],s[d+1],s[d+l],c[d],c[d+1],c[d+l]),e(t,i,s[d+l+1],s[d+1],s[d+l],c[d+l+1],c[d+1],c[d+l]);break;case"triangles":for(n=0,o=s.length;n<o;n+=3)e(t,i,s[n],s[n+1],s[n+2],c[n],c[n+1],c[n+2]);break;default:(0,a.error)("illigal figure")}}return function(e,r,a,n,o,s,c){var l,h,u,d,f=Math.floor(e[0]),g=Math.floor(e[1]),p=Math.ceil(e[2])-f,m=Math.ceil(e[3])-g,b=Math.min(Math.ceil(Math.abs(p*r[0]*1.1)),3e3),v=Math.min(Math.ceil(Math.abs(m*r[1]*1.1)),3e3),y=p/b,k=m/v,w={coords:a,colors:n,offsetX:-f,offsetY:-g,scaleX:1/y,scaleY:1/k},S=b+4,A=v+4;if(i.WebGLUtils.isEnabled)l=i.WebGLUtils.drawFigures(b,v,s,o,w),(h=c.getCanvas("mesh",S,A,!1)).context.drawImage(l,2,2),l=h.canvas;else{var C=(h=c.getCanvas("mesh",S,A,!1)).context,x=C.createImageData(b,v);if(s){var P=x.data;for(u=0,d=P.length;u<d;u+=4)P[u]=s[0],P[u+1]=s[1],P[u+2]=s[2],P[u+3]=255}for(u=0;u<o.length;u++)t(x,o[u],w);C.putImageData(x,2,2),l=h.canvas}return{canvas:l,offsetX:f-2*y,offsetY:g-2*k,scaleX:y,scaleY:k}}}();n.Mesh={fromIR:function(e){var t=e[2],r=e[3],i=e[4],n=e[5],s=e[6],c=e[8];return{type:"Pattern",getPattern:function(e,l,h){var u;if(h)u=a.Util.singularValueDecompose2dScale(e.mozCurrentTransform);else if(u=a.Util.singularValueDecompose2dScale(l.baseTransform),s){var d=a.Util.singularValueDecompose2dScale(s);u=[u[0]*d[0],u[1]*d[1]]}var f=o(n,u,t,r,i,h?null:c,l.cachedCanvases);return h||(e.setTransform.apply(e,l.baseTransform),s&&e.transform.apply(e,s)),e.translate(f.offsetX,f.offsetY),e.scale(f.scaleX,f.scaleY),e.createPattern(f.canvas,"no-repeat")}}}},n.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var s=function(){function e(e,t,r,a,i){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.canvasGraphicsFactory=a,this.baseTransform=i,this.type="Pattern",this.ctx=r}var t={COLORED:1,UNCOLORED:2};return e.prototype={createPatternCanvas:function(e){var t=this.operatorList,r=this.bbox,i=this.xstep,n=this.ystep,o=this.paintType,s=this.tilingType,c=this.color,l=this.canvasGraphicsFactory;(0,a.info)("TilingType: "+s);var h=r[0],u=r[1],d=r[2],f=r[3],g=[h,u],p=[h+i,u+n],m=p[0]-g[0],b=p[1]-g[1],v=a.Util.singularValueDecompose2dScale(this.matrix),y=a.Util.singularValueDecompose2dScale(this.baseTransform),k=[v[0]*y[0],v[1]*y[1]];m=Math.min(Math.ceil(Math.abs(m*k[0])),3e3),b=Math.min(Math.ceil(Math.abs(b*k[1])),3e3);var w=e.cachedCanvases.getCanvas("pattern",m,b,!0),S=w.context,A=l.createCanvasGraphics(S);A.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(S,o,c),this.setScale(m,b,i,n),this.transformToScale(A);var C=[1,0,0,1,-g[0],-g[1]];return A.transform.apply(A,C),this.clipBbox(A,r,h,u,d,f),A.executeOperatorList(t),w.canvas},setScale:function(e,t,r,a){this.scale=[e/r,t/a]},transformToScale:function(e){var t=this.scale,r=[t[0],0,0,t[1],0,0];e.transform.apply(e,r)},scaleToContext:function(){var e=this.scale;this.ctx.scale(1/e[0],1/e[1])},clipBbox:function(e,t,r,i,n,o){if((0,a.isArray)(t)&&4===t.length){var s=n-r,c=o-i;e.ctx.rect(r,i,s,c),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(e,r,i){switch(r){case t.COLORED:var n=this.ctx;e.fillStyle=n.fillStyle,e.strokeStyle=n.strokeStyle;break;case t.UNCOLORED:var o=a.Util.makeCssRgb(i[0],i[1],i[2]);e.fillStyle=o,e.strokeStyle=o;break;default:(0,a.error)("Unsupported paint type: "+r)}},getPattern:function(e,t){var r=this.createPatternCanvas(t);return(e=this.ctx).setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix),this.scaleToContext(),e.createPattern(r,"repeat")}},e}();t.getShadingPatternFromIR=function(e){var t=n[e[0]];return t||(0,a.error)("Unknown IR type: "+e[0]),t.fromIR(e)},t.TilingPattern=s},function(e,t,r){"use strict";var a=r(0),i=r(26),n=r(10),o=r(12),s=r(9),c=r(3),l=r(11);t.PDFJS=i.PDFJS,t.build=n.build,t.version=n.version,t.getDocument=n.getDocument,t.LoopbackPort=n.LoopbackPort,t.PDFDataRangeTransport=n.PDFDataRangeTransport,t.PDFWorker=n.PDFWorker,t.renderTextLayer=o.renderTextLayer,t.AnnotationLayer=s.AnnotationLayer,t.CustomStyle=c.CustomStyle,t.createPromiseCapability=a.createPromiseCapability,t.PasswordResponses=a.PasswordResponses,t.InvalidPDFException=a.InvalidPDFException,t.MissingPDFException=a.MissingPDFException,t.SVGGraphics=l.SVGGraphics,t.NativeImageDecoding=a.NativeImageDecoding,t.UnexpectedResponseException=a.UnexpectedResponseException,t.OPS=a.OPS,t.UNSUPPORTED_FEATURES=a.UNSUPPORTED_FEATURES,t.isValidUrl=c.isValidUrl,t.createValidAbsoluteUrl=a.createValidAbsoluteUrl,t.createObjectURL=a.createObjectURL,t.removeNullCharacters=a.removeNullCharacters,t.shadow=a.shadow,t.createBlob=a.createBlob,t.RenderingCancelledException=c.RenderingCancelledException,t.getFilenameFromUrl=c.getFilenameFromUrl,t.addLinkAttributes=c.addLinkAttributes,t.StatTimer=a.StatTimer},function(e,t,r){"use strict";(function(e){var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};if("undefined"==typeof PDFJS||!PDFJS.compatibilityChecked){var r="undefined"!=typeof window&&window.Math===Math?window:void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:void 0,a="undefined"!=typeof navigator&&navigator.userAgent||"",i=/Android/.test(a),n=/Android\s[0-2][^\d]/.test(a),o=/Android\s[0-4][^\d]/.test(a),s=a.indexOf("Chrom")>=0,c=/Chrome\/(39|40)\./.test(a),l=a.indexOf("CriOS")>=0,h=a.indexOf("Trident")>=0,u=/\b(iPad|iPhone|iPod)(?=;)/.test(a),d=a.indexOf("Opera")>=0,f=/Safari\//.test(a)&&!/(Chrome\/|Android\s)/.test(a),g="object"===("undefined"==typeof window?"undefined":t(window))&&"object"===("undefined"==typeof document?"undefined":t(document));"undefined"==typeof PDFJS&&(r.PDFJS={}),PDFJS.compatibilityChecked=!0,function(){function e(e,t){return new s(this.slice(e,t))}function a(e,t){arguments.length<2&&(t=0);for(var r=0,a=e.length;r<a;++r,++t)this[t]=255&e[r]}function i(e,t){this.buffer=e,this.byteLength=e.length,this.length=t,o(this.length)}function n(e){return{get:function(){var t=this.buffer,r=e<<2;return(t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24)>>>0},set:function(t){var r=this.buffer,a=e<<2;r[a]=255&t,r[a+1]=t>>8&255,r[a+2]=t>>16&255,r[a+3]=t>>>24&255}}}function o(e){for(;c<e;)Object.defineProperty(i.prototype,c,n(c)),c++}function s(r){var i,n,o;if("number"==typeof r)for(i=[],n=0;n<r;++n)i[n]=0;else if("slice"in r)i=r.slice(0);else for(i=[],n=0,o=r.length;n<o;++n)i[n]=r[n];return i.subarray=e,i.buffer=i,i.byteLength=i.length,i.set=a,"object"===(void 0===r?"undefined":t(r))&&r.buffer&&(i.buffer=r.buffer),i}if("undefined"!=typeof Uint8Array)return void 0===Uint8Array.prototype.subarray&&(Uint8Array.prototype.subarray=function(e,t){return new Uint8Array(this.slice(e,t))},Float32Array.prototype.subarray=function(e,t){return new Float32Array(this.slice(e,t))}),void("undefined"==typeof Float64Array&&(r.Float64Array=Float32Array));i.prototype=Object.create(null);var c=0;r.Uint8Array=s,r.Int8Array=s,r.Int32Array=s,r.Uint16Array=s,r.Float32Array=s,r.Float64Array=s,r.Uint32Array=function(){if(3===arguments.length){if(0!==arguments[1])throw new Error("offset !== 0 is not supported");return new i(arguments[0],arguments[2])}return s.apply(this,arguments)}}(),function(){if(g&&window.CanvasPixelArray){var e=window.CanvasPixelArray.prototype;"buffer"in e||(Object.defineProperty(e,"buffer",{get:function(){return this},enumerable:!1,configurable:!0}),Object.defineProperty(e,"byteLength",{get:function(){return this.length},enumerable:!1,configurable:!0}))}}(),r.URL||(r.URL=r.webkitURL),function(){if(void 0!==Object.defineProperty){var e=!0;try{g&&Object.defineProperty(new Image,"id",{value:"test"});var t=function(){};t.prototype={get id(){}},Object.defineProperty(new t,"id",{value:"",configurable:!0,enumerable:!0,writable:!1})}catch(t){e=!1}if(e)return}Object.defineProperty=function(e,t,r){delete e[t],"get"in r&&e.__defineGetter__(t,r.get),"set"in r&&e.__defineSetter__(t,r.set),"value"in r&&(e.__defineSetter__(t,function(e){return this.__defineGetter__(t,function(){return e}),e}),e[t]=r.value)}}(),function(){if("undefined"!=typeof XMLHttpRequest){var e=XMLHttpRequest.prototype,t=new XMLHttpRequest;"overrideMimeType"in t||Object.defineProperty(e,"overrideMimeType",{value:function(e){}}),"responseType"in t||(Object.defineProperty(e,"responseType",{get:function(){return this._responseType||"text"},set:function(e){"text"!==e&&"arraybuffer"!==e||(this._responseType=e,"arraybuffer"===e&&"function"==typeof this.overrideMimeType&&this.overrideMimeType("text/plain; charset=x-user-defined"))}}),"undefined"==typeof VBArray?Object.defineProperty(e,"response",{get:function(){if("arraybuffer"!==this.responseType)return this.responseText;var e,t=this.responseText,r=t.length,a=new Uint8Array(r);for(e=0;e<r;++e)a[e]=255&t.charCodeAt(e);return a.buffer}}):Object.defineProperty(e,"response",{get:function(){return"arraybuffer"===this.responseType?new Uint8Array(new VBArray(this.responseBody).toArray()):this.responseText}}))}}(),function(){if(!("btoa"in r)){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.btoa=function(t){var r,a,i="";for(r=0,a=t.length;r<a;r+=3){var n=255&t.charCodeAt(r),o=255&t.charCodeAt(r+1),s=255&t.charCodeAt(r+2),c=n>>2,l=(3&n)<<4|o>>4,h=r+1<a?(15&o)<<2|s>>6:64,u=r+2<a?63&s:64;i+=e.charAt(c)+e.charAt(l)+e.charAt(h)+e.charAt(u)}return i}}}(),function(){if(!("atob"in r)){r.atob=function(e){if((e=e.replace(/=+$/,"")).length%4==1)throw new Error("bad atob input");for(var t,r,a=0,i=0,n="";r=e.charAt(i++);~r&&(t=a%4?64*t+r:r,a++%4)?n+=String.fromCharCode(255&t>>(-2*a&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return n}}}(),function(){void 0===Function.prototype.bind&&(Function.prototype.bind=function(e){var t=this,r=Array.prototype.slice.call(arguments,1);return function(){var a=r.concat(Array.prototype.slice.call(arguments));return t.apply(e,a)}})}(),g&&("dataset"in document.createElement("div")||Object.defineProperty(HTMLElement.prototype,"dataset",{get:function(){if(this._dataset)return this._dataset;for(var e={},t=0,r=this.attributes.length;t<r;t++){var a=this.attributes[t];"data-"===a.name.substring(0,5)&&(e[a.name.substring(5).replace(/\-([a-z])/g,function(e,t){return t.toUpperCase()})]=a.value)}return Object.defineProperty(this,"_dataset",{value:e,writable:!1,enumerable:!1}),e},enumerable:!0})),function(){function e(e,t,r,a){var i=(e.className||"").split(/\s+/g);""===i[0]&&i.shift();var n=i.indexOf(t);return n<0&&r&&i.push(t),n>=0&&a&&i.splice(n,1),e.className=i.join(" "),n>=0}if(g&&!("classList"in document.createElement("div"))){var t={add:function(t){e(this.element,t,!0,!1)},contains:function(t){return e(this.element,t,!1,!1)},remove:function(t){e(this.element,t,!1,!0)},toggle:function(t){e(this.element,t,!0,!0)}};Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){if(this._classList)return this._classList;var e=Object.create(t,{element:{value:this,writable:!1,enumerable:!0}});return Object.defineProperty(this,"_classList",{value:e,writable:!1,enumerable:!1}),e},enumerable:!0})}}(),function(){if(!("undefined"==typeof importScripts||"console"in r)){var e={},t={log:function(){var e=Array.prototype.slice.call(arguments);r.postMessage({targetName:"main",action:"console_log",data:e})},error:function(){var e=Array.prototype.slice.call(arguments);r.postMessage({targetName:"main",action:"console_error",data:e})},time:function(t){e[t]=Date.now()},timeEnd:function(t){var r=e[t];if(!r)throw new Error("Unknown timer name "+t);this.log("Timer:",t,Date.now()-r)}};r.console=t}}(),function(){if(g){if("console"in window)return"bind"in console.log?void 0:(console.log=function(e){return function(t){return e(t)}}(console.log),console.error=function(e){return function(t){return e(t)}}(console.error),void(console.warn=function(e){return function(t){return e(t)}}(console.warn)));window.console={log:function(){},error:function(){},warn:function(){}}}}(),function(){function e(t){return t.disabled||t.parentNode&&e(t.parentNode)}d&&document.addEventListener("click",function(t){e(t.target)&&t.stopPropagation()},!0)}(),(h||l)&&(PDFJS.disableCreateObjectURL=!0),"undefined"!=typeof navigator&&("language"in navigator||(PDFJS.locale=navigator.userLanguage||"en-US")),(f||n||c||u)&&(PDFJS.disableRange=!0,PDFJS.disableStream=!0),g&&(history.pushState&&!n||(PDFJS.disableHistory=!0)),function(){if(g)if(window.CanvasPixelArray)"function"!=typeof window.CanvasPixelArray.prototype.set&&(window.CanvasPixelArray.prototype.set=function(e){for(var t=0,r=this.length;t<r;t++)this[t]=e[t]});else{var e,t=!1;if(s?t=(e=a.match(/Chrom(e|ium)\/([0-9]+)\./))&&parseInt(e[2])<21:i?t=o:f&&(t=(e=a.match(/Version\/([0-9]+)\.([0-9]+)\.([0-9]+) Safari\//))&&parseInt(e[1])<6),t){var r=window.CanvasRenderingContext2D.prototype,n=r.createImageData;r.createImageData=function(e,t){var r=n.call(this,e,t);return r.data.set=function(e){for(var t=0,r=this.length;t<r;t++)this[t]=e[t]},r},r=null}}}(),function(){function e(){window.requestAnimationFrame=function(e){return window.setTimeout(e,20)},window.cancelAnimationFrame=function(e){window.clearTimeout(e)}}g&&(u?e():"requestAnimationFrame"in window||(window.requestAnimationFrame=window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame,window.requestAnimationFrame||e()))}(),(u||i)&&(PDFJS.maxCanvasPixels=5242880),g&&h&&window.parent!==window&&(PDFJS.disableFullscreen=!0),g&&("currentScript"in document||Object.defineProperty(document,"currentScript",{get:function(){var e=document.getElementsByTagName("script");return e[e.length-1]},enumerable:!0,configurable:!0})),function(){if(g){var e=document.createElement("input");try{e.type="number"}catch(a){var t=e.constructor.prototype,r=Object.getOwnPropertyDescriptor(t,"type");Object.defineProperty(t,"type",{get:function(){return r.get.call(this)},set:function(e){r.set.call(this,"number"===e?"text":e)},enumerable:!0,configurable:!0})}}}(),function(){if(g&&document.attachEvent){var e=document.constructor.prototype,t=Object.getOwnPropertyDescriptor(e,"readyState");Object.defineProperty(e,"readyState",{get:function(){var e=t.get.call(this);return"interactive"===e?"loading":e},set:function(e){t.set.call(this,e)},enumerable:!0,configurable:!0})}}(),g&&void 0===Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),function(){if(r.Promise)return"function"!=typeof r.Promise.all&&(r.Promise.all=function(e){var t,a,i=0,n=[],o=new r.Promise(function(e,r){t=e,a=r});return e.forEach(function(e,r){i++,e.then(function(e){n[r]=e,0===--i&&t(n)},a)}),0===i&&t(n),o}),"function"!=typeof r.Promise.resolve&&(r.Promise.resolve=function(e){return new r.Promise(function(t){t(e)})}),"function"!=typeof r.Promise.reject&&(r.Promise.reject=function(e){return new r.Promise(function(t,r){r(e)})}),void("function"!=typeof r.Promise.prototype.catch&&(r.Promise.prototype.catch=function(e){return r.Promise.prototype.then(void 0,e)}));var e=2,t={handlers:[],running:!1,unhandledRejections:[],pendingRejectionCheck:!1,scheduleHandlers:function(e){0!==e._status&&(this.handlers=this.handlers.concat(e._handlers),e._handlers=[],this.running||(this.running=!0,setTimeout(this.runHandlers.bind(this),0)))},runHandlers:function(){for(var t=Date.now()+1;this.handlers.length>0;){var r=this.handlers.shift(),a=r.thisPromise._status,i=r.thisPromise._value;try{1===a?"function"==typeof r.onResolve&&(i=r.onResolve(i)):"function"==typeof r.onReject&&(i=r.onReject(i),a=1,r.thisPromise._unhandledRejection&&this.removeUnhandeledRejection(r.thisPromise))}catch(t){a=e,i=t}if(r.nextPromise._updateStatus(a,i),Date.now()>=t)break}this.handlers.length>0?setTimeout(this.runHandlers.bind(this),0):this.running=!1},addUnhandledRejection:function(e){this.unhandledRejections.push({promise:e,time:Date.now()}),this.scheduleRejectionCheck()},removeUnhandeledRejection:function(e){e._unhandledRejection=!1;for(var t=0;t<this.unhandledRejections.length;t++)this.unhandledRejections[t].promise===e&&(this.unhandledRejections.splice(t),t--)},scheduleRejectionCheck:function(){var e=this;this.pendingRejectionCheck||(this.pendingRejectionCheck=!0,setTimeout(function(){e.pendingRejectionCheck=!1;for(var t=Date.now(),r=0;r<e.unhandledRejections.length;r++)if(t-e.unhandledRejections[r].time>500){var a=e.unhandledRejections[r].promise._value,i="Unhandled rejection: "+a;a.stack&&(i+="\n"+a.stack);try{throw new Error(i)}catch(e){console.warn(i)}e.unhandledRejections.splice(r),r--}e.unhandledRejections.length&&e.scheduleRejectionCheck()},500))}},a=function(e){this._status=0,this._handlers=[];try{e.call(this,this._resolve.bind(this),this._reject.bind(this))}catch(e){this._reject(e)}};a.all=function(t){var r,i,n=new a(function(e,t){r=e,i=t}),o=t.length,s=[];if(0===o)return r(s),n;for(var c=0,l=t.length;c<l;++c){var h=t[c],u=function(t){return function(a){n._status!==e&&(s[t]=a,0===--o&&r(s))}}(c);a.isPromise(h)?h.then(u,function(t){n._status!==e&&(s=[],i(t))}):u(h)}return n},a.isPromise=function(e){return e&&"function"==typeof e.then},a.resolve=function(e){return new a(function(t){t(e)})},a.reject=function(e){return new a(function(t,r){r(e)})},a.prototype={_status:null,_value:null,_handlers:null,_unhandledRejection:null,_updateStatus:function(r,i){1!==this._status&&this._status!==e&&(1===r&&a.isPromise(i)?i.then(this._updateStatus.bind(this,1),this._updateStatus.bind(this,e)):(this._status=r,this._value=i,r===e&&0===this._handlers.length&&(this._unhandledRejection=!0,t.addUnhandledRejection(this)),t.scheduleHandlers(this)))},_resolve:function(e){this._updateStatus(1,e)},_reject:function(t){this._updateStatus(e,t)},then:function(e,r){var i=new a(function(e,t){this.resolve=e,this.reject=t});return this._handlers.push({thisPromise:this,onResolve:e,onReject:r,nextPromise:i}),t.scheduleHandlers(this),i},catch:function(e){return this.then(void 0,e)}},r.Promise=a}(),function(){function e(){this.id="$weakmap"+a++}if(!r.WeakMap){var a=0;e.prototype={has:function(e){return("object"===(void 0===e?"undefined":t(e))||"function"==typeof e)&&null!==e&&!!Object.getOwnPropertyDescriptor(e,this.id)},get:function(e){return this.has(e)?e[this.id]:void 0},set:function(e,t){Object.defineProperty(e,this.id,{value:t,enumerable:!1,configurable:!0})},delete:function(e){delete e[this.id]}},r.WeakMap=e}}(),function(){function e(e){return void 0!==d[e]}function a(){c.call(this),this._isInvalid=!0}function i(e){return""===e&&a.call(this),e.toLowerCase()}function n(e){var t=e.charCodeAt(0);return t>32&&t<127&&-1===[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function o(e){var t=e.charCodeAt(0);return t>32&&t<127&&-1===[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}function s(t,r,s){function c(e){y.push(e)}var l=r||"scheme start",h=0,u="",b=!1,v=!1,y=[];e:for(;(t[h-1]!==g||0===h)&&!this._isInvalid;){var k=t[h];switch(l){case"scheme start":if(!k||!p.test(k)){if(r){c("Invalid scheme.");break e}u="",l="no scheme";continue}u+=k.toLowerCase(),l="scheme";break;case"scheme":if(k&&m.test(k))u+=k.toLowerCase();else{if(":"!==k){if(r){if(k===g)break e;c("Code point not allowed in scheme: "+k);break e}u="",h=0,l="no scheme";continue}if(this._scheme=u,u="",r)break e;e(this._scheme)&&(this._isRelative=!0),l="file"===this._scheme?"relative":this._isRelative&&s&&s._scheme===this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"===k?(this._query="?",l="query"):"#"===k?(this._fragment="#",l="fragment"):k!==g&&"\t"!==k&&"\n"!==k&&"\r"!==k&&(this._schemeData+=n(k));break;case"no scheme":if(s&&e(s._scheme)){l="relative";continue}c("Missing scheme."),a.call(this);break;case"relative or authority":if("/"!==k||"/"!==t[h+1]){c("Expected /, got: "+k),l="relative";continue}l="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!==this._scheme&&(this._scheme=s._scheme),k===g){this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query,this._username=s._username,this._password=s._password;break e}if("/"===k||"\\"===k)"\\"===k&&c("\\ is an invalid code point."),l="relative slash";else if("?"===k)this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query="?",this._username=s._username,this._password=s._password,l="query";else{if("#"!==k){var w=t[h+1],S=t[h+2];("file"!==this._scheme||!p.test(k)||":"!==w&&"|"!==w||S!==g&&"/"!==S&&"\\"!==S&&"?"!==S&&"#"!==S)&&(this._host=s._host,this._port=s._port,this._username=s._username,this._password=s._password,this._path=s._path.slice(),this._path.pop()),l="relative path";continue}this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query,this._fragment="#",this._username=s._username,this._password=s._password,l="fragment"}break;case"relative slash":if("/"!==k&&"\\"!==k){"file"!==this._scheme&&(this._host=s._host,this._port=s._port,this._username=s._username,this._password=s._password),l="relative path";continue}"\\"===k&&c("\\ is an invalid code point."),l="file"===this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!==k){c("Expected '/', got: "+k),l="authority ignore slashes";continue}l="authority second slash";break;case"authority second slash":if(l="authority ignore slashes","/"!==k){c("Expected '/', got: "+k);continue}break;case"authority ignore slashes":if("/"!==k&&"\\"!==k){l="authority";continue}c("Expected authority, got: "+k);break;case"authority":if("@"===k){b&&(c("@ already seen."),u+="%40"),b=!0;for(var A=0;A<u.length;A++){var C=u[A];if("\t"!==C&&"\n"!==C&&"\r"!==C)if(":"!==C||null!==this._password){var x=n(C);null!==this._password?this._password+=x:this._username+=x}else this._password="";else c("Invalid whitespace in authority.")}u=""}else{if(k===g||"/"===k||"\\"===k||"?"===k||"#"===k){h-=u.length,u="",l="host";continue}u+=k}break;case"file host":if(k===g||"/"===k||"\\"===k||"?"===k||"#"===k){2!==u.length||!p.test(u[0])||":"!==u[1]&&"|"!==u[1]?0===u.length?l="relative path start":(this._host=i.call(this,u),u="",l="relative path start"):l="relative path";continue}"\t"===k||"\n"===k||"\r"===k?c("Invalid whitespace in file host."):u+=k;break;case"host":case"hostname":if(":"!==k||v){if(k===g||"/"===k||"\\"===k||"?"===k||"#"===k){if(this._host=i.call(this,u),u="",l="relative path start",r)break e;continue}"\t"!==k&&"\n"!==k&&"\r"!==k?("["===k?v=!0:"]"===k&&(v=!1),u+=k):c("Invalid code point in host/hostname: "+k)}else if(this._host=i.call(this,u),u="",l="port","hostname"===r)break e;break;case"port":if(/[0-9]/.test(k))u+=k;else{if(k===g||"/"===k||"\\"===k||"?"===k||"#"===k||r){if(""!==u){var P=parseInt(u,10);P!==d[this._scheme]&&(this._port=P+""),u=""}if(r)break e;l="relative path start";continue}"\t"===k||"\n"===k||"\r"===k?c("Invalid code point in port: "+k):a.call(this)}break;case"relative path start":if("\\"===k&&c("'\\' not allowed in path."),l="relative path","/"!==k&&"\\"!==k)continue;break;case"relative path":if(k!==g&&"/"!==k&&"\\"!==k&&(r||"?"!==k&&"#"!==k))"\t"!==k&&"\n"!==k&&"\r"!==k&&(u+=n(k));else{"\\"===k&&c("\\ not allowed in relative path.");var _;(_=f[u.toLowerCase()])&&(u=_),".."===u?(this._path.pop(),"/"!==k&&"\\"!==k&&this._path.push("")):"."===u&&"/"!==k&&"\\"!==k?this._path.push(""):"."!==u&&("file"===this._scheme&&0===this._path.length&&2===u.length&&p.test(u[0])&&"|"===u[1]&&(u=u[0]+":"),this._path.push(u)),u="","?"===k?(this._query="?",l="query"):"#"===k&&(this._fragment="#",l="fragment")}break;case"query":r||"#"!==k?k!==g&&"\t"!==k&&"\n"!==k&&"\r"!==k&&(this._query+=o(k)):(this._fragment="#",l="fragment");break;case"fragment":k!==g&&"\t"!==k&&"\n"!==k&&"\r"!==k&&(this._fragment+=k)}h++}}function c(){this._scheme="",this._schemeData="",this._username="",this._password=null,this._host="",this._port="",this._path=[],this._query="",this._fragment="",this._isInvalid=!1,this._isRelative=!1}function l(e,t){void 0===t||t instanceof l||(t=new l(String(t))),this._url=e,c.call(this);var r=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");s.call(this,r,null,t)}var h=!1;try{if("function"==typeof URL&&"object"===t(URL.prototype)&&"origin"in URL.prototype){var u=new URL("b","http://a");u.pathname="c%20d",h="http://a/c%20d"===u.href}}catch(e){}if(!h){var d=Object.create(null);d.ftp=21,d.file=0,d.gopher=70,d.http=80,d.https=443,d.ws=80,d.wss=443;var f=Object.create(null);f["%2e"]=".",f[".%2e"]="..",f["%2e."]="..",f["%2e%2e"]="..";var g,p=/[a-zA-Z]/,m=/[a-zA-Z0-9\+\-\.]/;l.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var e="";return""===this._username&&null===this._password||(e=this._username+(null!==this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"//"+e+this.host:"")+this.pathname+this._query+this._fragment},set href(e){c.call(this),s.call(this,e)},get protocol(){return this._scheme+":"},set protocol(e){this._isInvalid||s.call(this,e+":","scheme start")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:this._host},set host(e){!this._isInvalid&&this._isRelative&&s.call(this,e,"host")},get hostname(){return this._host},set hostname(e){!this._isInvalid&&this._isRelative&&s.call(this,e,"hostname")},get port(){return this._port},set port(e){!this._isInvalid&&this._isRelative&&s.call(this,e,"port")},get pathname(){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(e){!this._isInvalid&&this._isRelative&&(this._path=[],s.call(this,e,"relative path start"))},get search(){return this._isInvalid||!this._query||"?"===this._query?"":this._query},set search(e){!this._isInvalid&&this._isRelative&&(this._query="?","?"===e[0]&&(e=e.slice(1)),s.call(this,e,"query"))},get hash(){return this._isInvalid||!this._fragment||"#"===this._fragment?"":this._fragment},set hash(e){this._isInvalid||(this._fragment="#","#"===e[0]&&(e=e.slice(1)),s.call(this,e,"fragment"))},get origin(){var e;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null";case"blob":try{return new l(this._schemeData).origin||"null"}catch(e){}return"null"}return e=this.host,e?this._scheme+"://"+e:""}};var b=r.URL;b&&(l.createObjectURL=function(e){return b.createObjectURL.apply(b,arguments)},l.revokeObjectURL=function(e){b.revokeObjectURL(e)}),r.URL=l}}()}}).call(t,r(13))}])});
tholu/cdnjs
ajax/libs/pdf.js/1.8.456/pdf.combined.min.js
JavaScript
mit
813,098
/*! * @overview RSVP - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2016 Yehuda Katz, Tom Dale, Stefan Penner and contributors * @license Licensed under MIT license * See https://raw.githubusercontent.com/tildeio/rsvp.js/master/LICENSE * @version 3.6.0 */ function indexOf(callbacks, callback) { for (var i = 0, l = callbacks.length; i < l; i++) { if (callbacks[i] === callback) { return i; } } return -1; } function callbacksFor(object) { var callbacks = object._promiseCallbacks; if (!callbacks) { callbacks = object._promiseCallbacks = {}; } return callbacks; } /** @class RSVP.EventTarget */ var EventTarget = { /** `RSVP.EventTarget.mixin` extends an object with EventTarget methods. For Example: ```javascript let object = {}; RSVP.EventTarget.mixin(object); object.on('finished', function(event) { // handle event }); object.trigger('finished', { detail: value }); ``` `EventTarget.mixin` also works with prototypes: ```javascript let Person = function() {}; RSVP.EventTarget.mixin(Person.prototype); let yehuda = new Person(); let tom = new Person(); yehuda.on('poke', function(event) { console.log('Yehuda says OW'); }); tom.on('poke', function(event) { console.log('Tom says OW'); }); yehuda.trigger('poke'); tom.trigger('poke'); ``` @method mixin @for RSVP.EventTarget @private @param {Object} object object to extend with EventTarget methods */ mixin: function (object) { object['on'] = this['on']; object['off'] = this['off']; object['trigger'] = this['trigger']; object._promiseCallbacks = undefined; return object; }, /** Registers a callback to be executed when `eventName` is triggered ```javascript object.on('event', function(eventInfo){ // handle the event }); object.trigger('event'); ``` @method on @for RSVP.EventTarget @private @param {String} eventName name of the event to listen for @param {Function} callback function to be called when the event is triggered. */ on: function (eventName, callback) { if (typeof callback !== 'function') { throw new TypeError('Callback must be a function'); } var allCallbacks = callbacksFor(this), callbacks = void 0; callbacks = allCallbacks[eventName]; if (!callbacks) { callbacks = allCallbacks[eventName] = []; } if (indexOf(callbacks, callback) === -1) { callbacks.push(callback); } }, /** You can use `off` to stop firing a particular callback for an event: ```javascript function doStuff() { // do stuff! } object.on('stuff', doStuff); object.trigger('stuff'); // doStuff will be called // Unregister ONLY the doStuff callback object.off('stuff', doStuff); object.trigger('stuff'); // doStuff will NOT be called ``` If you don't pass a `callback` argument to `off`, ALL callbacks for the event will not be executed when the event fires. For example: ```javascript let callback1 = function(){}; let callback2 = function(){}; object.on('stuff', callback1); object.on('stuff', callback2); object.trigger('stuff'); // callback1 and callback2 will be executed. object.off('stuff'); object.trigger('stuff'); // callback1 and callback2 will not be executed! ``` @method off @for RSVP.EventTarget @private @param {String} eventName event to stop listening to @param {Function} callback optional argument. If given, only the function given will be removed from the event's callback queue. If no `callback` argument is given, all callbacks will be removed from the event's callback queue. */ off: function (eventName, callback) { var allCallbacks = callbacksFor(this), callbacks = void 0, index = void 0; if (!callback) { allCallbacks[eventName] = []; return; } callbacks = allCallbacks[eventName]; index = indexOf(callbacks, callback); if (index !== -1) { callbacks.splice(index, 1); } }, /** Use `trigger` to fire custom events. For example: ```javascript object.on('foo', function(){ console.log('foo event happened!'); }); object.trigger('foo'); // 'foo event happened!' logged to the console ``` You can also pass a value as a second argument to `trigger` that will be passed as an argument to all event listeners for the event: ```javascript object.on('foo', function(value){ console.log(value.name); }); object.trigger('foo', { name: 'bar' }); // 'bar' logged to the console ``` @method trigger @for RSVP.EventTarget @private @param {String} eventName name of the event to be triggered @param {*} options optional value to be passed to any event handlers for the given `eventName` */ trigger: function (eventName, options, label) { var allCallbacks = callbacksFor(this), callbacks = void 0, callback = void 0; if (callbacks = allCallbacks[eventName]) { // Don't cache the callbacks.length since it may grow for (var i = 0; i < callbacks.length; i++) { callback = callbacks[i]; callback(options, label); } } } }; var config = { instrument: false }; EventTarget['mixin'](config); function configure(name, value) { if (arguments.length === 2) { config[name] = value; } else { return config[name]; } } function objectOrFunction(x) { var type = typeof x; return x !== null && (type === 'object' || type === 'function'); } function isFunction(x) { return typeof x === 'function'; } function isObject(x) { return x !== null && typeof x === 'object'; } function isMaybeThenable(x) { return x !== null && typeof x === 'object'; } var _isArray = void 0; if (Array.isArray) { _isArray = Array.isArray; } else { _isArray = function (x) { return Object.prototype.toString.call(x) === '[object Array]'; }; } var isArray = _isArray; // Date.now is not available in browsers < IE9 // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now#Compatibility var now = Date.now || function () { return new Date().getTime(); }; var queue = []; function scheduleFlush() { setTimeout(function () { for (var i = 0; i < queue.length; i++) { var entry = queue[i]; var payload = entry.payload; payload.guid = payload.key + payload.id; payload.childGuid = payload.key + payload.childId; if (payload.error) { payload.stack = payload.error.stack; } config['trigger'](entry.name, entry.payload); } queue.length = 0; }, 50); } function instrument(eventName, promise, child) { if (1 === queue.push({ name: eventName, payload: { key: promise._guidKey, id: promise._id, eventName: eventName, detail: promise._result, childId: child && child._id, label: promise._label, timeStamp: now(), error: config["instrument-with-stack"] ? new Error(promise._label) : null } })) { scheduleFlush(); } } /** `RSVP.Promise.resolve` returns a promise that will become resolved with the passed `value`. It is shorthand for the following: ```javascript let promise = new RSVP.Promise(function(resolve, reject){ resolve(1); }); promise.then(function(value){ // value === 1 }); ``` Instead of writing the above, your code now simply becomes the following: ```javascript let promise = RSVP.Promise.resolve(1); promise.then(function(value){ // value === 1 }); ``` @method resolve @static @param {*} object value that the returned promise will be resolved with @param {String} label optional string for identifying the returned promise. Useful for tooling. @return {Promise} a promise that will become fulfilled with the given `value` */ function resolve$1(object, label) { /*jshint validthis:true */ var Constructor = this; if (object && typeof object === 'object' && object.constructor === Constructor) { return object; } var promise = new Constructor(noop, label); resolve(promise, object); return promise; } function withOwnPromise() { return new TypeError('A promises callback cannot return that same promise.'); } function noop() {} var PENDING = void 0; var FULFILLED = 1; var REJECTED = 2; var GET_THEN_ERROR = new ErrorObject(); function getThen(promise) { try { return promise.then; } catch (error) { GET_THEN_ERROR.error = error; return GET_THEN_ERROR; } } function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) { try { then$$1.call(value, fulfillmentHandler, rejectionHandler); } catch (e) { return e; } } function handleForeignThenable(promise, thenable, then$$1) { config.async(function (promise) { var sealed = false; var error = tryThen(then$$1, thenable, function (value) { if (sealed) { return; } sealed = true; if (thenable !== value) { resolve(promise, value, undefined); } else { fulfill(promise, value); } }, function (reason) { if (sealed) { return; } sealed = true; reject(promise, reason); }, 'Settle: ' + (promise._label || ' unknown promise')); if (!sealed && error) { sealed = true; reject(promise, error); } }, promise); } function handleOwnThenable(promise, thenable) { if (thenable._state === FULFILLED) { fulfill(promise, thenable._result); } else if (thenable._state === REJECTED) { thenable._onError = null; reject(promise, thenable._result); } else { subscribe(thenable, undefined, function (value) { if (thenable !== value) { resolve(promise, value, undefined); } else { fulfill(promise, value); } }, function (reason) { return reject(promise, reason); }); } } function handleMaybeThenable(promise, maybeThenable, then$$1) { var isOwnThenable = maybeThenable.constructor === promise.constructor && then$$1 === then && promise.constructor.resolve === resolve$1; if (isOwnThenable) { handleOwnThenable(promise, maybeThenable); } else if (then$$1 === GET_THEN_ERROR) { reject(promise, GET_THEN_ERROR.error); GET_THEN_ERROR.error = null; } else if (isFunction(then$$1)) { handleForeignThenable(promise, maybeThenable, then$$1); } else { fulfill(promise, maybeThenable); } } function resolve(promise, value) { if (promise === value) { fulfill(promise, value); } else if (objectOrFunction(value)) { handleMaybeThenable(promise, value, getThen(value)); } else { fulfill(promise, value); } } function publishRejection(promise) { if (promise._onError) { promise._onError(promise._result); } publish(promise); } function fulfill(promise, value) { if (promise._state !== PENDING) { return; } promise._result = value; promise._state = FULFILLED; if (promise._subscribers.length === 0) { if (config.instrument) { instrument('fulfilled', promise); } } else { config.async(publish, promise); } } function reject(promise, reason) { if (promise._state !== PENDING) { return; } promise._state = REJECTED; promise._result = reason; config.async(publishRejection, promise); } function subscribe(parent, child, onFulfillment, onRejection) { var subscribers = parent._subscribers; var length = subscribers.length; parent._onError = null; subscribers[length] = child; subscribers[length + FULFILLED] = onFulfillment; subscribers[length + REJECTED] = onRejection; if (length === 0 && parent._state) { config.async(publish, parent); } } function publish(promise) { var subscribers = promise._subscribers; var settled = promise._state; if (config.instrument) { instrument(settled === FULFILLED ? 'fulfilled' : 'rejected', promise); } if (subscribers.length === 0) { return; } var child = void 0, callback = void 0, result = promise._result; for (var i = 0; i < subscribers.length; i += 3) { child = subscribers[i]; callback = subscribers[i + settled]; if (child) { invokeCallback(settled, child, callback, result); } else { callback(result); } } promise._subscribers.length = 0; } function ErrorObject() { this.error = null; } var TRY_CATCH_ERROR = new ErrorObject(); function tryCatch(callback, result) { try { return callback(result); } catch (e) { TRY_CATCH_ERROR.error = e; return TRY_CATCH_ERROR; } } function invokeCallback(state, promise, callback, result) { var hasCallback = isFunction(callback); var value = void 0, error = void 0; if (hasCallback) { value = tryCatch(callback, result); if (value === TRY_CATCH_ERROR) { error = value.error; value.error = null; // release } else if (value === promise) { reject(promise, withOwnPromise()); return; } } else { value = result; } if (promise._state !== PENDING) { // noop } else if (hasCallback && error === undefined) { resolve(promise, value); } else if (error !== undefined) { reject(promise, error); } else if (state === FULFILLED) { fulfill(promise, value); } else if (state === REJECTED) { reject(promise, value); } } function initializePromise(promise, resolver) { var resolved = false; try { resolver(function (value) { if (resolved) { return; } resolved = true; resolve(promise, value); }, function (reason) { if (resolved) { return; } resolved = true; reject(promise, reason); }); } catch (e) { reject(promise, e); } } function then(onFulfillment, onRejection, label) { var parent = this; var state = parent._state; if (state === FULFILLED && !onFulfillment || state === REJECTED && !onRejection) { config.instrument && instrument('chained', parent, parent); return parent; } parent._onError = null; var child = new parent.constructor(noop, label); var result = parent._result; config.instrument && instrument('chained', parent, child); if (state === PENDING) { subscribe(parent, child, onFulfillment, onRejection); } else { var callback = state === FULFILLED ? onFulfillment : onRejection; config.async(function () { return invokeCallback(state, child, callback, result); }); } return child; } var Enumerator = function () { function Enumerator(Constructor, input, abortOnReject, label) { this._instanceConstructor = Constructor; this.promise = new Constructor(noop, label); this._abortOnReject = abortOnReject; this._init.apply(this, arguments); } Enumerator.prototype._init = function _init(Constructor, input) { var len = input.length || 0; this.length = len; this._remaining = len; this._result = new Array(len); this._enumerate(input); if (this._remaining === 0) { fulfill(this.promise, this._result); } }; Enumerator.prototype._enumerate = function _enumerate(input) { var length = this.length; var promise = this.promise; for (var i = 0; promise._state === PENDING && i < length; i++) { this._eachEntry(input[i], i); } }; Enumerator.prototype._settleMaybeThenable = function _settleMaybeThenable(entry, i) { var c = this._instanceConstructor; var resolve$$1 = c.resolve; if (resolve$$1 === resolve$1) { var then$$1 = getThen(entry); if (then$$1 === then && entry._state !== PENDING) { entry._onError = null; this._settledAt(entry._state, i, entry._result); } else if (typeof then$$1 !== 'function') { this._remaining--; this._result[i] = this._makeResult(FULFILLED, i, entry); } else if (c === Promise) { var promise = new c(noop); handleMaybeThenable(promise, entry, then$$1); this._willSettleAt(promise, i); } else { this._willSettleAt(new c(function (resolve$$1) { return resolve$$1(entry); }), i); } } else { this._willSettleAt(resolve$$1(entry), i); } }; Enumerator.prototype._eachEntry = function _eachEntry(entry, i) { if (isMaybeThenable(entry)) { this._settleMaybeThenable(entry, i); } else { this._remaining--; this._result[i] = this._makeResult(FULFILLED, i, entry); } }; Enumerator.prototype._settledAt = function _settledAt(state, i, value) { var promise = this.promise; if (promise._state === PENDING) { if (this._abortOnReject && state === REJECTED) { reject(promise, value); } else { this._remaining--; this._result[i] = this._makeResult(state, i, value); if (this._remaining === 0) { fulfill(promise, this._result); } } } }; Enumerator.prototype._makeResult = function _makeResult(state, i, value) { return value; }; Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) { var enumerator = this; subscribe(promise, undefined, function (value) { return enumerator._settledAt(FULFILLED, i, value); }, function (reason) { return enumerator._settledAt(REJECTED, i, reason); }); }; return Enumerator; }(); function makeSettledResult(state, position, value) { if (state === FULFILLED) { return { state: 'fulfilled', value: value }; } else { return { state: 'rejected', reason: value }; } } /** `RSVP.Promise.all` accepts an array of promises, and returns a new promise which is fulfilled with an array of fulfillment values for the passed promises, or rejected with the reason of the first passed promise to be rejected. It casts all elements of the passed iterable to promises as it runs this algorithm. Example: ```javascript let promise1 = RSVP.resolve(1); let promise2 = RSVP.resolve(2); let promise3 = RSVP.resolve(3); let promises = [ promise1, promise2, promise3 ]; RSVP.Promise.all(promises).then(function(array){ // The array here would be [ 1, 2, 3 ]; }); ``` If any of the `promises` given to `RSVP.all` are rejected, the first promise that is rejected will be given as an argument to the returned promises's rejection handler. For example: Example: ```javascript let promise1 = RSVP.resolve(1); let promise2 = RSVP.reject(new Error("2")); let promise3 = RSVP.reject(new Error("3")); let promises = [ promise1, promise2, promise3 ]; RSVP.Promise.all(promises).then(function(array){ // Code here never runs because there are rejected promises! }, function(error) { // error.message === "2" }); ``` @method all @static @param {Array} entries array of promises @param {String} label optional string for labeling the promise. Useful for tooling. @return {Promise} promise that is fulfilled when all `promises` have been fulfilled, or rejected if any of them become rejected. @static */ function all(entries, label) { if (!isArray(entries)) { return this.reject(new TypeError("Promise.all must be called with an array"), label); } return new Enumerator(this, entries, true /* abort on reject */, label).promise; } /** `RSVP.Promise.race` returns a new promise which is settled in the same way as the first passed promise to settle. Example: ```javascript let promise1 = new RSVP.Promise(function(resolve, reject){ setTimeout(function(){ resolve('promise 1'); }, 200); }); let promise2 = new RSVP.Promise(function(resolve, reject){ setTimeout(function(){ resolve('promise 2'); }, 100); }); RSVP.Promise.race([promise1, promise2]).then(function(result){ // result === 'promise 2' because it was resolved before promise1 // was resolved. }); ``` `RSVP.Promise.race` is deterministic in that only the state of the first settled promise matters. For example, even if other promises given to the `promises` array argument are resolved, but the first settled promise has become rejected before the other promises became fulfilled, the returned promise will become rejected: ```javascript let promise1 = new RSVP.Promise(function(resolve, reject){ setTimeout(function(){ resolve('promise 1'); }, 200); }); let promise2 = new RSVP.Promise(function(resolve, reject){ setTimeout(function(){ reject(new Error('promise 2')); }, 100); }); RSVP.Promise.race([promise1, promise2]).then(function(result){ // Code here never runs }, function(reason){ // reason.message === 'promise 2' because promise 2 became rejected before // promise 1 became fulfilled }); ``` An example real-world use case is implementing timeouts: ```javascript RSVP.Promise.race([ajax('foo.json'), timeout(5000)]) ``` @method race @static @param {Array} entries array of promises to observe @param {String} label optional string for describing the promise returned. Useful for tooling. @return {Promise} a promise which settles in the same way as the first passed promise to settle. */ function race(entries, label) { /*jshint validthis:true */ var Constructor = this; var promise = new Constructor(noop, label); if (!isArray(entries)) { reject(promise, new TypeError('Promise.race must be called with an array')); return promise; } for (var i = 0; promise._state === PENDING && i < entries.length; i++) { subscribe(Constructor.resolve(entries[i]), undefined, function (value) { return resolve(promise, value); }, function (reason) { return reject(promise, reason); }); } return promise; } /** `RSVP.Promise.reject` returns a promise rejected with the passed `reason`. It is shorthand for the following: ```javascript let promise = new RSVP.Promise(function(resolve, reject){ reject(new Error('WHOOPS')); }); promise.then(function(value){ // Code here doesn't run because the promise is rejected! }, function(reason){ // reason.message === 'WHOOPS' }); ``` Instead of writing the above, your code now simply becomes the following: ```javascript let promise = RSVP.Promise.reject(new Error('WHOOPS')); promise.then(function(value){ // Code here doesn't run because the promise is rejected! }, function(reason){ // reason.message === 'WHOOPS' }); ``` @method reject @static @param {*} reason value that the returned promise will be rejected with. @param {String} label optional string for identifying the returned promise. Useful for tooling. @return {Promise} a promise rejected with the given `reason`. */ function reject$1(reason, label) { /*jshint validthis:true */ var Constructor = this; var promise = new Constructor(noop, label); reject(promise, reason); return promise; } var guidKey = 'rsvp_' + now() + '-'; var counter = 0; function needsResolver() { throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); } function needsNew() { throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); } /** Promise objects represent the eventual result of an asynchronous operation. The primary way of interacting with a promise is through its `then` method, which registers callbacks to receive either a promise’s eventual value or the reason why the promise cannot be fulfilled. Terminology ----------- - `promise` is an object or function with a `then` method whose behavior conforms to this specification. - `thenable` is an object or function that defines a `then` method. - `value` is any legal JavaScript value (including undefined, a thenable, or a promise). - `exception` is a value that is thrown using the throw statement. - `reason` is a value that indicates why a promise was rejected. - `settled` the final resting state of a promise, fulfilled or rejected. A promise can be in one of three states: pending, fulfilled, or rejected. Promises that are fulfilled have a fulfillment value and are in the fulfilled state. Promises that are rejected have a rejection reason and are in the rejected state. A fulfillment value is never a thenable. Promises can also be said to *resolve* a value. If this value is also a promise, then the original promise's settled state will match the value's settled state. So a promise that *resolves* a promise that rejects will itself reject, and a promise that *resolves* a promise that fulfills will itself fulfill. Basic Usage: ------------ ```js let promise = new Promise(function(resolve, reject) { // on success resolve(value); // on failure reject(reason); }); promise.then(function(value) { // on fulfillment }, function(reason) { // on rejection }); ``` Advanced Usage: --------------- Promises shine when abstracting away asynchronous interactions such as `XMLHttpRequest`s. ```js function getJSON(url) { return new Promise(function(resolve, reject){ let xhr = new XMLHttpRequest(); xhr.open('GET', url); xhr.onreadystatechange = handler; xhr.responseType = 'json'; xhr.setRequestHeader('Accept', 'application/json'); xhr.send(); function handler() { if (this.readyState === this.DONE) { if (this.status === 200) { resolve(this.response); } else { reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']')); } } }; }); } getJSON('/posts.json').then(function(json) { // on fulfillment }, function(reason) { // on rejection }); ``` Unlike callbacks, promises are great composable primitives. ```js Promise.all([ getJSON('/posts'), getJSON('/comments') ]).then(function(values){ values[0] // => postsJSON values[1] // => commentsJSON return values; }); ``` @class RSVP.Promise @param {function} resolver @param {String} label optional string for labeling the promise. Useful for tooling. @constructor */ var Promise = function () { function Promise(resolver, label) { this._id = counter++; this._label = label; this._state = undefined; this._result = undefined; this._subscribers = []; config.instrument && instrument('created', this); if (noop !== resolver) { typeof resolver !== 'function' && needsResolver(); this instanceof Promise ? initializePromise(this, resolver) : needsNew(); } } Promise.prototype._onError = function _onError(reason) { var _this = this; config.after(function () { if (_this._onError) { config.trigger('error', reason, _this._label); } }); }; /** `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same as the catch block of a try/catch statement. ```js function findAuthor(){ throw new Error('couldn\'t find that author'); } // synchronous try { findAuthor(); } catch(reason) { // something went wrong } // async with promises findAuthor().catch(function(reason){ // something went wrong }); ``` @method catch @param {Function} onRejection @param {String} label optional string for labeling the promise. Useful for tooling. @return {Promise} */ Promise.prototype.catch = function _catch(onRejection, label) { return this.then(undefined, onRejection, label); }; /** `finally` will be invoked regardless of the promise's fate just as native try/catch/finally behaves Synchronous example: ```js findAuthor() { if (Math.random() > 0.5) { throw new Error(); } return new Author(); } try { return findAuthor(); // succeed or fail } catch(error) { return findOtherAuthor(); } finally { // always runs // doesn't affect the return value } ``` Asynchronous example: ```js findAuthor().catch(function(reason){ return findOtherAuthor(); }).finally(function(){ // author was either found, or not }); ``` @method finally @param {Function} callback @param {String} label optional string for labeling the promise. Useful for tooling. @return {Promise} */ Promise.prototype.finally = function _finally(callback, label) { var promise = this; var constructor = promise.constructor; return promise.then(function (value) { return constructor.resolve(callback()).then(function () { return value; }); }, function (reason) { return constructor.resolve(callback()).then(function () { throw reason; }); }, label); }; return Promise; }(); Promise.cast = resolve$1; // deprecated Promise.all = all; Promise.race = race; Promise.resolve = resolve$1; Promise.reject = reject$1; Promise.prototype._guidKey = guidKey; /** The primary way of interacting with a promise is through its `then` method, which registers callbacks to receive either a promise's eventual value or the reason why the promise cannot be fulfilled. ```js findUser().then(function(user){ // user is available }, function(reason){ // user is unavailable, and you are given the reason why }); ``` Chaining -------- The return value of `then` is itself a promise. This second, 'downstream' promise is resolved with the return value of the first promise's fulfillment or rejection handler, or rejected if the handler throws an exception. ```js findUser().then(function (user) { return user.name; }, function (reason) { return 'default name'; }).then(function (userName) { // If `findUser` fulfilled, `userName` will be the user's name, otherwise it // will be `'default name'` }); findUser().then(function (user) { throw new Error('Found user, but still unhappy'); }, function (reason) { throw new Error('`findUser` rejected and we\'re unhappy'); }).then(function (value) { // never reached }, function (reason) { // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'. // If `findUser` rejected, `reason` will be '`findUser` rejected and we\'re unhappy'. }); ``` If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream. ```js findUser().then(function (user) { throw new PedagogicalException('Upstream error'); }).then(function (value) { // never reached }).then(function (value) { // never reached }, function (reason) { // The `PedgagocialException` is propagated all the way down to here }); ``` Assimilation ------------ Sometimes the value you want to propagate to a downstream promise can only be retrieved asynchronously. This can be achieved by returning a promise in the fulfillment or rejection handler. The downstream promise will then be pending until the returned promise is settled. This is called *assimilation*. ```js findUser().then(function (user) { return findCommentsByAuthor(user); }).then(function (comments) { // The user's comments are now available }); ``` If the assimliated promise rejects, then the downstream promise will also reject. ```js findUser().then(function (user) { return findCommentsByAuthor(user); }).then(function (comments) { // If `findCommentsByAuthor` fulfills, we'll have the value here }, function (reason) { // If `findCommentsByAuthor` rejects, we'll have the reason here }); ``` Simple Example -------------- Synchronous Example ```javascript let result; try { result = findResult(); // success } catch(reason) { // failure } ``` Errback Example ```js findResult(function(result, err){ if (err) { // failure } else { // success } }); ``` Promise Example; ```javascript findResult().then(function(result){ // success }, function(reason){ // failure }); ``` Advanced Example -------------- Synchronous Example ```javascript let author, books; try { author = findAuthor(); books = findBooksByAuthor(author); // success } catch(reason) { // failure } ``` Errback Example ```js function foundBooks(books) { } function failure(reason) { } findAuthor(function(author, err){ if (err) { failure(err); // failure } else { try { findBoooksByAuthor(author, function(books, err) { if (err) { failure(err); } else { try { foundBooks(books); } catch(reason) { failure(reason); } } }); } catch(error) { failure(err); } // success } }); ``` Promise Example; ```javascript findAuthor(). then(findBooksByAuthor). then(function(books){ // found books }).catch(function(reason){ // something went wrong }); ``` @method then @param {Function} onFulfillment @param {Function} onRejection @param {String} label optional string for labeling the promise. Useful for tooling. @return {Promise} */ Promise.prototype.then = then; function Result() { this.value = undefined; } var ERROR = new Result(); var GET_THEN_ERROR$1 = new Result(); function getThen$1(obj) { try { return obj.then; } catch (error) { ERROR.value = error; return ERROR; } } function tryApply(f, s, a) { try { f.apply(s, a); } catch (error) { ERROR.value = error; return ERROR; } } function makeObject(_, argumentNames) { var obj = {}; var length = _.length; var args = new Array(length); for (var x = 0; x < length; x++) { args[x] = _[x]; } for (var i = 0; i < argumentNames.length; i++) { var name = argumentNames[i]; obj[name] = args[i + 1]; } return obj; } function arrayResult(_) { var length = _.length; var args = new Array(length - 1); for (var i = 1; i < length; i++) { args[i - 1] = _[i]; } return args; } function wrapThenable(then, promise) { return { then: function (onFulFillment, onRejection) { return then.call(promise, onFulFillment, onRejection); } }; } /** `RSVP.denodeify` takes a 'node-style' function and returns a function that will return an `RSVP.Promise`. You can use `denodeify` in Node.js or the browser when you'd prefer to use promises over using callbacks. For example, `denodeify` transforms the following: ```javascript let fs = require('fs'); fs.readFile('myfile.txt', function(err, data){ if (err) return handleError(err); handleData(data); }); ``` into: ```javascript let fs = require('fs'); let readFile = RSVP.denodeify(fs.readFile); readFile('myfile.txt').then(handleData, handleError); ``` If the node function has multiple success parameters, then `denodeify` just returns the first one: ```javascript let request = RSVP.denodeify(require('request')); request('http://example.com').then(function(res) { // ... }); ``` However, if you need all success parameters, setting `denodeify`'s second parameter to `true` causes it to return all success parameters as an array: ```javascript let request = RSVP.denodeify(require('request'), true); request('http://example.com').then(function(result) { // result[0] -> res // result[1] -> body }); ``` Or if you pass it an array with names it returns the parameters as a hash: ```javascript let request = RSVP.denodeify(require('request'), ['res', 'body']); request('http://example.com').then(function(result) { // result.res // result.body }); ``` Sometimes you need to retain the `this`: ```javascript let app = require('express')(); let render = RSVP.denodeify(app.render.bind(app)); ``` The denodified function inherits from the original function. It works in all environments, except IE 10 and below. Consequently all properties of the original function are available to you. However, any properties you change on the denodeified function won't be changed on the original function. Example: ```javascript let request = RSVP.denodeify(require('request')), cookieJar = request.jar(); // <- Inheritance is used here request('http://example.com', {jar: cookieJar}).then(function(res) { // cookieJar.cookies holds now the cookies returned by example.com }); ``` Using `denodeify` makes it easier to compose asynchronous operations instead of using callbacks. For example, instead of: ```javascript let fs = require('fs'); fs.readFile('myfile.txt', function(err, data){ if (err) { ... } // Handle error fs.writeFile('myfile2.txt', data, function(err){ if (err) { ... } // Handle error console.log('done') }); }); ``` you can chain the operations together using `then` from the returned promise: ```javascript let fs = require('fs'); let readFile = RSVP.denodeify(fs.readFile); let writeFile = RSVP.denodeify(fs.writeFile); readFile('myfile.txt').then(function(data){ return writeFile('myfile2.txt', data); }).then(function(){ console.log('done') }).catch(function(error){ // Handle error }); ``` @method denodeify @static @for RSVP @param {Function} nodeFunc a 'node-style' function that takes a callback as its last argument. The callback expects an error to be passed as its first argument (if an error occurred, otherwise null), and the value from the operation as its second argument ('function(err, value){ }'). @param {Boolean|Array} [options] An optional paramter that if set to `true` causes the promise to fulfill with the callback's success arguments as an array. This is useful if the node function has multiple success paramters. If you set this paramter to an array with names, the promise will fulfill with a hash with these names as keys and the success parameters as values. @return {Function} a function that wraps `nodeFunc` to return an `RSVP.Promise` @static */ function denodeify(nodeFunc, options) { var fn = function () { var self = this; var l = arguments.length; var args = new Array(l + 1); var promiseInput = false; for (var i = 0; i < l; ++i) { var arg = arguments[i]; if (!promiseInput) { // TODO: clean this up promiseInput = needsPromiseInput(arg); if (promiseInput === GET_THEN_ERROR$1) { var p = new Promise(noop); reject(p, GET_THEN_ERROR$1.value); return p; } else if (promiseInput && promiseInput !== true) { arg = wrapThenable(promiseInput, arg); } } args[i] = arg; } var promise = new Promise(noop); args[l] = function (err, val) { if (err) reject(promise, err);else if (options === undefined) resolve(promise, val);else if (options === true) resolve(promise, arrayResult(arguments));else if (isArray(options)) resolve(promise, makeObject(arguments, options));else resolve(promise, val); }; if (promiseInput) { return handlePromiseInput(promise, args, nodeFunc, self); } else { return handleValueInput(promise, args, nodeFunc, self); } }; fn.__proto__ = nodeFunc; return fn; } function handleValueInput(promise, args, nodeFunc, self) { var result = tryApply(nodeFunc, self, args); if (result === ERROR) { reject(promise, result.value); } return promise; } function handlePromiseInput(promise, args, nodeFunc, self) { return Promise.all(args).then(function (args) { var result = tryApply(nodeFunc, self, args); if (result === ERROR) { reject(promise, result.value); } return promise; }); } function needsPromiseInput(arg) { if (arg && typeof arg === 'object') { if (arg.constructor === Promise) { return true; } else { return getThen$1(arg); } } else { return false; } } /** This is a convenient alias for `RSVP.Promise.all`. @method all @static @for RSVP @param {Array} array Array of promises. @param {String} label An optional label. This is useful for tooling. */ function all$1(array, label) { return Promise.all(array, label); } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var AllSettled = function (_Enumerator) { _inherits(AllSettled, _Enumerator); function AllSettled(Constructor, entries, label) { return _possibleConstructorReturn(this, _Enumerator.call(this, Constructor, entries, false /* don't abort on reject */, label)); } return AllSettled; }(Enumerator); AllSettled.prototype._makeResult = makeSettledResult; /** `RSVP.allSettled` is similar to `RSVP.all`, but instead of implementing a fail-fast method, it waits until all the promises have returned and shows you all the results. This is useful if you want to handle multiple promises' failure states together as a set. Returns a promise that is fulfilled when all the given promises have been settled. The return promise is fulfilled with an array of the states of the promises passed into the `promises` array argument. Each state object will either indicate fulfillment or rejection, and provide the corresponding value or reason. The states will take one of the following formats: ```javascript { state: 'fulfilled', value: value } or { state: 'rejected', reason: reason } ``` Example: ```javascript let promise1 = RSVP.Promise.resolve(1); let promise2 = RSVP.Promise.reject(new Error('2')); let promise3 = RSVP.Promise.reject(new Error('3')); let promises = [ promise1, promise2, promise3 ]; RSVP.allSettled(promises).then(function(array){ // array == [ // { state: 'fulfilled', value: 1 }, // { state: 'rejected', reason: Error }, // { state: 'rejected', reason: Error } // ] // Note that for the second item, reason.message will be '2', and for the // third item, reason.message will be '3'. }, function(error) { // Not run. (This block would only be called if allSettled had failed, // for instance if passed an incorrect argument type.) }); ``` @method allSettled @static @for RSVP @param {Array} entries @param {String} label - optional string that describes the promise. Useful for tooling. @return {Promise} promise that is fulfilled with an array of the settled states of the constituent promises. */ function allSettled(entries, label) { if (!isArray(entries)) { return Promise.reject(new TypeError("Promise.allSettled must be called with an array"), label); } return new AllSettled(Promise, entries, label).promise; } /** This is a convenient alias for `RSVP.Promise.race`. @method race @static @for RSVP @param {Array} array Array of promises. @param {String} label An optional label. This is useful for tooling. */ function race$1(array, label) { return Promise.race(array, label); } function _possibleConstructorReturn$1(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var hasOwnProperty = Object.prototype.hasOwnProperty; var PromiseHash = function (_Enumerator) { _inherits$1(PromiseHash, _Enumerator); function PromiseHash(Constructor, object) { var abortOnReject = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; var label = arguments[3]; return _possibleConstructorReturn$1(this, _Enumerator.call(this, Constructor, object, abortOnReject, label)); } PromiseHash.prototype._init = function _init(Constructor, object) { this._result = {}; this._enumerate(object); if (this._remaining === 0) { fulfill(this.promise, this._result); } }; PromiseHash.prototype._enumerate = function _enumerate(input) { var promise = this.promise; var results = []; for (var key in input) { if (hasOwnProperty.call(input, key)) { results.push({ position: key, entry: input[key] }); } } var length = results.length; this._remaining = length; var result = void 0; for (var i = 0; promise._state === PENDING && i < length; i++) { result = results[i]; this._eachEntry(result.entry, result.position); } }; return PromiseHash; }(Enumerator); /** `RSVP.hash` is similar to `RSVP.all`, but takes an object instead of an array for its `promises` argument. Returns a promise that is fulfilled when all the given promises have been fulfilled, or rejected if any of them become rejected. The returned promise is fulfilled with a hash that has the same key names as the `promises` object argument. If any of the values in the object are not promises, they will simply be copied over to the fulfilled object. Example: ```javascript let promises = { myPromise: RSVP.resolve(1), yourPromise: RSVP.resolve(2), theirPromise: RSVP.resolve(3), notAPromise: 4 }; RSVP.hash(promises).then(function(hash){ // hash here is an object that looks like: // { // myPromise: 1, // yourPromise: 2, // theirPromise: 3, // notAPromise: 4 // } }); ```` If any of the `promises` given to `RSVP.hash` are rejected, the first promise that is rejected will be given as the reason to the rejection handler. Example: ```javascript let promises = { myPromise: RSVP.resolve(1), rejectedPromise: RSVP.reject(new Error('rejectedPromise')), anotherRejectedPromise: RSVP.reject(new Error('anotherRejectedPromise')), }; RSVP.hash(promises).then(function(hash){ // Code here never runs because there are rejected promises! }, function(reason) { // reason.message === 'rejectedPromise' }); ``` An important note: `RSVP.hash` is intended for plain JavaScript objects that are just a set of keys and values. `RSVP.hash` will NOT preserve prototype chains. Example: ```javascript function MyConstructor(){ this.example = RSVP.resolve('Example'); } MyConstructor.prototype = { protoProperty: RSVP.resolve('Proto Property') }; let myObject = new MyConstructor(); RSVP.hash(myObject).then(function(hash){ // protoProperty will not be present, instead you will just have an // object that looks like: // { // example: 'Example' // } // // hash.hasOwnProperty('protoProperty'); // false // 'undefined' === typeof hash.protoProperty }); ``` @method hash @static @for RSVP @param {Object} object @param {String} label optional string that describes the promise. Useful for tooling. @return {Promise} promise that is fulfilled when all properties of `promises` have been fulfilled, or rejected if any of them become rejected. */ function hash(object, label) { if (!isObject(object)) { return Promise.reject(new TypeError("Promise.hash must be called with an object"), label); } return new PromiseHash(Promise, object, label).promise; } function _possibleConstructorReturn$2(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits$2(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var HashSettled = function (_PromiseHash) { _inherits$2(HashSettled, _PromiseHash); function HashSettled(Constructor, object, label) { return _possibleConstructorReturn$2(this, _PromiseHash.call(this, Constructor, object, false, label)); } return HashSettled; }(PromiseHash); HashSettled.prototype._makeResult = makeSettledResult; /** `RSVP.hashSettled` is similar to `RSVP.allSettled`, but takes an object instead of an array for its `promises` argument. Unlike `RSVP.all` or `RSVP.hash`, which implement a fail-fast method, but like `RSVP.allSettled`, `hashSettled` waits until all the constituent promises have returned and then shows you all the results with their states and values/reasons. This is useful if you want to handle multiple promises' failure states together as a set. Returns a promise that is fulfilled when all the given promises have been settled, or rejected if the passed parameters are invalid. The returned promise is fulfilled with a hash that has the same key names as the `promises` object argument. If any of the values in the object are not promises, they will be copied over to the fulfilled object and marked with state 'fulfilled'. Example: ```javascript let promises = { myPromise: RSVP.Promise.resolve(1), yourPromise: RSVP.Promise.resolve(2), theirPromise: RSVP.Promise.resolve(3), notAPromise: 4 }; RSVP.hashSettled(promises).then(function(hash){ // hash here is an object that looks like: // { // myPromise: { state: 'fulfilled', value: 1 }, // yourPromise: { state: 'fulfilled', value: 2 }, // theirPromise: { state: 'fulfilled', value: 3 }, // notAPromise: { state: 'fulfilled', value: 4 } // } }); ``` If any of the `promises` given to `RSVP.hash` are rejected, the state will be set to 'rejected' and the reason for rejection provided. Example: ```javascript let promises = { myPromise: RSVP.Promise.resolve(1), rejectedPromise: RSVP.Promise.reject(new Error('rejection')), anotherRejectedPromise: RSVP.Promise.reject(new Error('more rejection')), }; RSVP.hashSettled(promises).then(function(hash){ // hash here is an object that looks like: // { // myPromise: { state: 'fulfilled', value: 1 }, // rejectedPromise: { state: 'rejected', reason: Error }, // anotherRejectedPromise: { state: 'rejected', reason: Error }, // } // Note that for rejectedPromise, reason.message == 'rejection', // and for anotherRejectedPromise, reason.message == 'more rejection'. }); ``` An important note: `RSVP.hashSettled` is intended for plain JavaScript objects that are just a set of keys and values. `RSVP.hashSettled` will NOT preserve prototype chains. Example: ```javascript function MyConstructor(){ this.example = RSVP.Promise.resolve('Example'); } MyConstructor.prototype = { protoProperty: RSVP.Promise.resolve('Proto Property') }; let myObject = new MyConstructor(); RSVP.hashSettled(myObject).then(function(hash){ // protoProperty will not be present, instead you will just have an // object that looks like: // { // example: { state: 'fulfilled', value: 'Example' } // } // // hash.hasOwnProperty('protoProperty'); // false // 'undefined' === typeof hash.protoProperty }); ``` @method hashSettled @for RSVP @param {Object} object @param {String} label optional string that describes the promise. Useful for tooling. @return {Promise} promise that is fulfilled when when all properties of `promises` have been settled. @static */ function hashSettled(object, label) { if (!isObject(object)) { return Promise.reject(new TypeError("RSVP.hashSettled must be called with an object"), label); } return new HashSettled(Promise, object, false, label).promise; } /** `RSVP.rethrow` will rethrow an error on the next turn of the JavaScript event loop in order to aid debugging. Promises A+ specifies that any exceptions that occur with a promise must be caught by the promises implementation and bubbled to the last handler. For this reason, it is recommended that you always specify a second rejection handler function to `then`. However, `RSVP.rethrow` will throw the exception outside of the promise, so it bubbles up to your console if in the browser, or domain/cause uncaught exception in Node. `rethrow` will also throw the error again so the error can be handled by the promise per the spec. ```javascript function throws(){ throw new Error('Whoops!'); } let promise = new RSVP.Promise(function(resolve, reject){ throws(); }); promise.catch(RSVP.rethrow).then(function(){ // Code here doesn't run because the promise became rejected due to an // error! }, function (err){ // handle the error here }); ``` The 'Whoops' error will be thrown on the next turn of the event loop and you can watch for it in your console. You can also handle it using a rejection handler given to `.then` or `.catch` on the returned promise. @method rethrow @static @for RSVP @param {Error} reason reason the promise became rejected. @throws Error @static */ function rethrow(reason) { setTimeout(function () { throw reason; }); throw reason; } /** `RSVP.defer` returns an object similar to jQuery's `$.Deferred`. `RSVP.defer` should be used when porting over code reliant on `$.Deferred`'s interface. New code should use the `RSVP.Promise` constructor instead. The object returned from `RSVP.defer` is a plain object with three properties: * promise - an `RSVP.Promise`. * reject - a function that causes the `promise` property on this object to become rejected * resolve - a function that causes the `promise` property on this object to become fulfilled. Example: ```javascript let deferred = RSVP.defer(); deferred.resolve("Success!"); deferred.promise.then(function(value){ // value here is "Success!" }); ``` @method defer @static @for RSVP @param {String} label optional string for labeling the promise. Useful for tooling. @return {Object} */ function defer(label) { var deferred = { resolve: undefined, reject: undefined }; deferred.promise = new Promise(function (resolve, reject) { deferred.resolve = resolve; deferred.reject = reject; }, label); return deferred; } /** `RSVP.map` is similar to JavaScript's native `map` method, except that it waits for all promises to become fulfilled before running the `mapFn` on each item in given to `promises`. `RSVP.map` returns a promise that will become fulfilled with the result of running `mapFn` on the values the promises become fulfilled with. For example: ```javascript let promise1 = RSVP.resolve(1); let promise2 = RSVP.resolve(2); let promise3 = RSVP.resolve(3); let promises = [ promise1, promise2, promise3 ]; let mapFn = function(item){ return item + 1; }; RSVP.map(promises, mapFn).then(function(result){ // result is [ 2, 3, 4 ] }); ``` If any of the `promises` given to `RSVP.map` are rejected, the first promise that is rejected will be given as an argument to the returned promise's rejection handler. For example: ```javascript let promise1 = RSVP.resolve(1); let promise2 = RSVP.reject(new Error('2')); let promise3 = RSVP.reject(new Error('3')); let promises = [ promise1, promise2, promise3 ]; let mapFn = function(item){ return item + 1; }; RSVP.map(promises, mapFn).then(function(array){ // Code here never runs because there are rejected promises! }, function(reason) { // reason.message === '2' }); ``` `RSVP.map` will also wait if a promise is returned from `mapFn`. For example, say you want to get all comments from a set of blog posts, but you need the blog posts first because they contain a url to those comments. ```javscript let mapFn = function(blogPost){ // getComments does some ajax and returns an RSVP.Promise that is fulfilled // with some comments data return getComments(blogPost.comments_url); }; // getBlogPosts does some ajax and returns an RSVP.Promise that is fulfilled // with some blog post data RSVP.map(getBlogPosts(), mapFn).then(function(comments){ // comments is the result of asking the server for the comments // of all blog posts returned from getBlogPosts() }); ``` @method map @static @for RSVP @param {Array} promises @param {Function} mapFn function to be called on each fulfilled promise. @param {String} label optional string for labeling the promise. Useful for tooling. @return {Promise} promise that is fulfilled with the result of calling `mapFn` on each fulfilled promise or value when they become fulfilled. The promise will be rejected if any of the given `promises` become rejected. @static */ function map(promises, mapFn, label) { if (!isArray(promises)) { return Promise.reject(new TypeError("RSVP.map must be called with an array"), label); } if (!isFunction(mapFn)) { return Promise.reject(new TypeError("RSVP.map expects a function as a second argument"), label); } return Promise.all(promises, label).then(function (values) { var length = values.length; var results = new Array(length); for (var i = 0; i < length; i++) { results[i] = mapFn(values[i]); } return Promise.all(results, label); }); } /** This is a convenient alias for `RSVP.Promise.resolve`. @method resolve @static @for RSVP @param {*} value value that the returned promise will be resolved with @param {String} label optional string for identifying the returned promise. Useful for tooling. @return {Promise} a promise that will become fulfilled with the given `value` */ function resolve$2(value, label) { return Promise.resolve(value, label); } /** This is a convenient alias for `RSVP.Promise.reject`. @method reject @static @for RSVP @param {*} reason value that the returned promise will be rejected with. @param {String} label optional string for identifying the returned promise. Useful for tooling. @return {Promise} a promise rejected with the given `reason`. */ function reject$2(reason, label) { return Promise.reject(reason, label); } /** `RSVP.filter` is similar to JavaScript's native `filter` method, except that it waits for all promises to become fulfilled before running the `filterFn` on each item in given to `promises`. `RSVP.filter` returns a promise that will become fulfilled with the result of running `filterFn` on the values the promises become fulfilled with. For example: ```javascript let promise1 = RSVP.resolve(1); let promise2 = RSVP.resolve(2); let promise3 = RSVP.resolve(3); let promises = [promise1, promise2, promise3]; let filterFn = function(item){ return item > 1; }; RSVP.filter(promises, filterFn).then(function(result){ // result is [ 2, 3 ] }); ``` If any of the `promises` given to `RSVP.filter` are rejected, the first promise that is rejected will be given as an argument to the returned promise's rejection handler. For example: ```javascript let promise1 = RSVP.resolve(1); let promise2 = RSVP.reject(new Error('2')); let promise3 = RSVP.reject(new Error('3')); let promises = [ promise1, promise2, promise3 ]; let filterFn = function(item){ return item > 1; }; RSVP.filter(promises, filterFn).then(function(array){ // Code here never runs because there are rejected promises! }, function(reason) { // reason.message === '2' }); ``` `RSVP.filter` will also wait for any promises returned from `filterFn`. For instance, you may want to fetch a list of users then return a subset of those users based on some asynchronous operation: ```javascript let alice = { name: 'alice' }; let bob = { name: 'bob' }; let users = [ alice, bob ]; let promises = users.map(function(user){ return RSVP.resolve(user); }); let filterFn = function(user){ // Here, Alice has permissions to create a blog post, but Bob does not. return getPrivilegesForUser(user).then(function(privs){ return privs.can_create_blog_post === true; }); }; RSVP.filter(promises, filterFn).then(function(users){ // true, because the server told us only Alice can create a blog post. users.length === 1; // false, because Alice is the only user present in `users` users[0] === bob; }); ``` @method filter @static @for RSVP @param {Array} promises @param {Function} filterFn - function to be called on each resolved value to filter the final results. @param {String} label optional string describing the promise. Useful for tooling. @return {Promise} */ function resolveAll(promises, label) { return Promise.all(promises, label); } function resolveSingle(promise, label) { return Promise.resolve(promise, label).then(function (promises) { return resolveAll(promises, label); }); } function filter(promises, filterFn, label) { if (!isArray(promises) && !(isObject(promises) && promises.then !== undefined)) { return Promise.reject(new TypeError("RSVP.filter must be called with an array or promise"), label); } if (!isFunction(filterFn)) { return Promise.reject(new TypeError("RSVP.filter expects function as a second argument"), label); } var promise = isArray(promises) ? resolveAll(promises, label) : resolveSingle(promises, label); return promise.then(function (values) { var length = values.length; var filtered = new Array(length); for (var i = 0; i < length; i++) { filtered[i] = filterFn(values[i]); } return resolveAll(filtered, label).then(function (filtered) { var results = new Array(length); var newLength = 0; for (var _i = 0; _i < length; _i++) { if (filtered[_i]) { results[newLength] = values[_i]; newLength++; } } results.length = newLength; return results; }); }); } var len = 0; var vertxNext = void 0; function asap(callback, arg) { queue$1[len] = callback; queue$1[len + 1] = arg; len += 2; if (len === 2) { // If len is 1, that means that we need to schedule an async flush. // If additional callbacks are queued before the queue is flushed, they // will be processed by this flush that we are scheduling. scheduleFlush$1(); } } var browserWindow = typeof window !== 'undefined' ? window : undefined; var browserGlobal = browserWindow || {}; var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver; var isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; // test for web worker but not in IE10 var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined'; // node function useNextTick() { var nextTick = process.nextTick; // node version 0.10.x displays a deprecation warning when nextTick is used recursively // setImmediate should be used instead instead var version = process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/); if (Array.isArray(version) && version[1] === '0' && version[2] === '10') { nextTick = setImmediate; } return function () { return nextTick(flush); }; } // vertx function useVertxTimer() { if (typeof vertxNext !== 'undefined') { return function () { vertxNext(flush); }; } return useSetTimeout(); } function useMutationObserver() { var iterations = 0; var observer = new BrowserMutationObserver(flush); var node = document.createTextNode(''); observer.observe(node, { characterData: true }); return function () { return node.data = iterations = ++iterations % 2; }; } // web worker function useMessageChannel() { var channel = new MessageChannel(); channel.port1.onmessage = flush; return function () { return channel.port2.postMessage(0); }; } function useSetTimeout() { return function () { return setTimeout(flush, 1); }; } var queue$1 = new Array(1000); function flush() { for (var i = 0; i < len; i += 2) { var callback = queue$1[i]; var arg = queue$1[i + 1]; callback(arg); queue$1[i] = undefined; queue$1[i + 1] = undefined; } len = 0; } function attemptVertex() { try { var r = require; var vertx = r('vertx'); vertxNext = vertx.runOnLoop || vertx.runOnContext; return useVertxTimer(); } catch (e) { return useSetTimeout(); } } var scheduleFlush$1 = void 0; // Decide what async method to use to triggering processing of queued callbacks: if (isNode) { scheduleFlush$1 = useNextTick(); } else if (BrowserMutationObserver) { scheduleFlush$1 = useMutationObserver(); } else if (isWorker) { scheduleFlush$1 = useMessageChannel(); } else if (browserWindow === undefined && typeof require === 'function') { scheduleFlush$1 = attemptVertex(); } else { scheduleFlush$1 = useSetTimeout(); } var platform = void 0; /* global self */ if (typeof self === 'object') { platform = self; /* global global */ } else if (typeof global === 'object') { platform = global; } else { throw new Error('no global: `self` or `global` found'); } var _asap$cast$Promise$Ev; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } // defaults config.async = asap; config.after = function (cb) { return setTimeout(cb, 0); }; var cast = resolve$2; var async = function (callback, arg) { return config.async(callback, arg); }; function on() { config['on'].apply(config, arguments); } function off() { config['off'].apply(config, arguments); } // Set up instrumentation through `window.__PROMISE_INTRUMENTATION__` if (typeof window !== 'undefined' && typeof window['__PROMISE_INSTRUMENTATION__'] === 'object') { var callbacks = window['__PROMISE_INSTRUMENTATION__']; configure('instrument', true); for (var eventName in callbacks) { if (callbacks.hasOwnProperty(eventName)) { on(eventName, callbacks[eventName]); } } } // the default export here is for backwards compat: // https://github.com/tildeio/rsvp.js/issues/434 var rsvp = (_asap$cast$Promise$Ev = { asap: asap, cast: cast, Promise: Promise, EventTarget: EventTarget, all: all$1, allSettled: allSettled, race: race$1, hash: hash, hashSettled: hashSettled, rethrow: rethrow, defer: defer, denodeify: denodeify, configure: configure, on: on, off: off, resolve: resolve$2, reject: reject$2, map: map }, _defineProperty(_asap$cast$Promise$Ev, 'async', async), _defineProperty(_asap$cast$Promise$Ev, 'filter', filter), _asap$cast$Promise$Ev); export { asap, cast, Promise, EventTarget, all$1 as all, allSettled, race$1 as race, hash, hashSettled, rethrow, defer, denodeify, configure, on, off, resolve$2 as resolve, reject$2 as reject, map, async, filter };export default rsvp; //# sourceMappingURL=rsvp.es.map
him2him2/cdnjs
ajax/libs/rsvp/3.6.0/rsvp.es.js
JavaScript
mit
68,751
"use strict";angular.module("ngLocale",[],["$provide",function(e){var a="zero",M="one",m="two",E="few",r="many",S="other";e.value("$locale",{DATETIME_FORMATS:{AMPMS:["ص","م"],DAY:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],ERANAMES:["قبل الميلاد","ميلادي"],ERAS:["ق.م","م"],FIRSTDAYOFWEEK:5,MONTH:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],SHORTDAY:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],SHORTMONTH:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],STANDALONEMONTH:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],WEEKENDRANGE:[4,5],fullDate:"EEEE، d MMMM، y",longDate:"d MMMM، y",medium:"dd‏/MM‏/y h:mm:ss a",mediumDate:"dd‏/MM‏/y",mediumTime:"h:mm:ss a",short:"d‏/M‏/y h:mm a",shortDate:"d‏/M‏/y",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"£",DECIMAL_SEP:"٫",GROUP_SEP:"٬",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-",negSuf:" ¤",posPre:"",posSuf:" ¤"}]},id:"ar-eg",localeID:"ar_EG",pluralCat:function(e,n){return 0==e?a:1==e?M:2==e?m:e%100>=3&&e%100<=10?E:e%100>=11&&e%100<=99?r:S}})}]);
cdnjs/cdnjs
ajax/libs/angular-i18n/1.6.9/angular-locale_ar-eg.min.js
JavaScript
mit
1,649
/*! * OOjs UI v0.22.0 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * * Date: 2017-05-30T22:04:14Z */ .oo-ui-icon-alert { background-image: url('themes/wikimediaui/images/icons/alert.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/alert.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/alert.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/alert.png'); } .oo-ui-image-warning.oo-ui-icon-alert { background-image: url('themes/wikimediaui/images/icons/alert-warning.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/alert-warning.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/alert-warning.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/alert-warning.png'); } .oo-ui-image-invert.oo-ui-icon-alert { background-image: url('themes/wikimediaui/images/icons/alert-invert.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/alert-invert.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/alert-invert.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/alert-invert.png'); } .oo-ui-image-progressive.oo-ui-icon-alert { background-image: url('themes/wikimediaui/images/icons/alert-progressive.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/alert-progressive.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/alert-progressive.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/alert-progressive.png'); } .oo-ui-icon-bell { background-image: url('themes/wikimediaui/images/icons/bell.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/bell.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/bell.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/bell.png'); } .oo-ui-image-invert.oo-ui-icon-bell { background-image: url('themes/wikimediaui/images/icons/bell-invert.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/bell-invert.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/bell-invert.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/bell-invert.png'); } .oo-ui-image-progressive.oo-ui-icon-bell { background-image: url('themes/wikimediaui/images/icons/bell-progressive.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/bell-progressive.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/bell-progressive.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/bell-progressive.png'); } .oo-ui-icon-bellOn { background-image: url('themes/wikimediaui/images/icons/bellOn-ltr.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/bellOn-ltr.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/bellOn-ltr.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/bellOn-ltr.png'); } .oo-ui-image-invert.oo-ui-icon-bellOn { background-image: url('themes/wikimediaui/images/icons/bellOn-ltr-invert.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/bellOn-ltr-invert.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/bellOn-ltr-invert.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/bellOn-ltr-invert.png'); } .oo-ui-image-progressive.oo-ui-icon-bellOn { background-image: url('themes/wikimediaui/images/icons/bellOn-ltr-progressive.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/bellOn-ltr-progressive.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/bellOn-ltr-progressive.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/bellOn-ltr-progressive.png'); } .oo-ui-icon-comment { background-image: url('themes/wikimediaui/images/icons/comment.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/comment.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/comment.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/comment.png'); } .oo-ui-image-invert.oo-ui-icon-comment { background-image: url('themes/wikimediaui/images/icons/comment-invert.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/comment-invert.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/comment-invert.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/comment-invert.png'); } .oo-ui-image-progressive.oo-ui-icon-comment { background-image: url('themes/wikimediaui/images/icons/comment-progressive.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/comment-progressive.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/comment-progressive.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/comment-progressive.png'); } .oo-ui-icon-eye { background-image: url('themes/wikimediaui/images/icons/eye.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/eye.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/eye.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/eye.png'); } .oo-ui-image-invert.oo-ui-icon-eye { background-image: url('themes/wikimediaui/images/icons/eye-invert.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/eye-invert.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/eye-invert.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/eye-invert.png'); } .oo-ui-image-progressive.oo-ui-icon-eye { background-image: url('themes/wikimediaui/images/icons/eye-progressive.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/eye-progressive.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/eye-progressive.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/eye-progressive.png'); } .oo-ui-icon-eyeClosed { background-image: url('themes/wikimediaui/images/icons/eyeClosed.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/eyeClosed.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/eyeClosed.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/eyeClosed.png'); } .oo-ui-image-invert.oo-ui-icon-eyeClosed { background-image: url('themes/wikimediaui/images/icons/eyeClosed-invert.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/eyeClosed-invert.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/eyeClosed-invert.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/eyeClosed-invert.png'); } .oo-ui-image-progressive.oo-ui-icon-eyeClosed { background-image: url('themes/wikimediaui/images/icons/eyeClosed-progressive.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/eyeClosed-progressive.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/eyeClosed-progressive.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/eyeClosed-progressive.png'); } .oo-ui-icon-message { background-image: url('themes/wikimediaui/images/icons/message-ltr.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/message-ltr.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/message-ltr.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/message-ltr.png'); } .oo-ui-image-invert.oo-ui-icon-message { background-image: url('themes/wikimediaui/images/icons/message-ltr-invert.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/message-ltr-invert.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/message-ltr-invert.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/message-ltr-invert.png'); } .oo-ui-image-progressive.oo-ui-icon-message { background-image: url('themes/wikimediaui/images/icons/message-ltr-progressive.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/message-ltr-progressive.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/message-ltr-progressive.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/message-ltr-progressive.png'); } .oo-ui-icon-notice { background-image: url('themes/wikimediaui/images/icons/notice.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/notice.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/notice.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/notice.png'); } .oo-ui-image-invert.oo-ui-icon-notice { background-image: url('themes/wikimediaui/images/icons/notice-invert.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/notice-invert.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/notice-invert.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/notice-invert.png'); } .oo-ui-image-progressive.oo-ui-icon-notice { background-image: url('themes/wikimediaui/images/icons/notice-progressive.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/notice-progressive.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/notice-progressive.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/notice-progressive.png'); } .oo-ui-icon-signature { background-image: url('themes/wikimediaui/images/icons/signature-ltr.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/signature-ltr.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/signature-ltr.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/signature-ltr.png'); } .oo-ui-image-invert.oo-ui-icon-signature { background-image: url('themes/wikimediaui/images/icons/signature-ltr-invert.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/signature-ltr-invert.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/signature-ltr-invert.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/signature-ltr-invert.png'); } .oo-ui-image-progressive.oo-ui-icon-signature { background-image: url('themes/wikimediaui/images/icons/signature-ltr-progressive.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/signature-ltr-progressive.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/signature-ltr-progressive.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/signature-ltr-progressive.png'); } .oo-ui-icon-speechBubble { background-image: url('themes/wikimediaui/images/icons/speechBubble-ltr.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubble-ltr.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubble-ltr.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/speechBubble-ltr.png'); } .oo-ui-image-invert.oo-ui-icon-speechBubble { background-image: url('themes/wikimediaui/images/icons/speechBubble-ltr-invert.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubble-ltr-invert.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubble-ltr-invert.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/speechBubble-ltr-invert.png'); } .oo-ui-image-progressive.oo-ui-icon-speechBubble { background-image: url('themes/wikimediaui/images/icons/speechBubble-ltr-progressive.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubble-ltr-progressive.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubble-ltr-progressive.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/speechBubble-ltr-progressive.png'); } .oo-ui-icon-speechBubbleAdd { background-image: url('themes/wikimediaui/images/icons/speechBubbleAdd-ltr.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubbleAdd-ltr.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubbleAdd-ltr.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/speechBubbleAdd-ltr.png'); } .oo-ui-image-invert.oo-ui-icon-speechBubbleAdd { background-image: url('themes/wikimediaui/images/icons/speechBubbleAdd-ltr-invert.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubbleAdd-ltr-invert.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubbleAdd-ltr-invert.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/speechBubbleAdd-ltr-invert.png'); } .oo-ui-image-progressive.oo-ui-icon-speechBubbleAdd { background-image: url('themes/wikimediaui/images/icons/speechBubbleAdd-ltr-progressive.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubbleAdd-ltr-progressive.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubbleAdd-ltr-progressive.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/speechBubbleAdd-ltr-progressive.png'); } .oo-ui-icon-speechBubbles { background-image: url('themes/wikimediaui/images/icons/speechBubbles-ltr.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubbles-ltr.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubbles-ltr.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/speechBubbles-ltr.png'); } .oo-ui-image-invert.oo-ui-icon-speechBubbles { background-image: url('themes/wikimediaui/images/icons/speechBubbles-ltr-invert.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubbles-ltr-invert.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubbles-ltr-invert.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/speechBubbles-ltr-invert.png'); } .oo-ui-image-progressive.oo-ui-icon-speechBubbles { background-image: url('themes/wikimediaui/images/icons/speechBubbles-ltr-progressive.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubbles-ltr-progressive.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/speechBubbles-ltr-progressive.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/speechBubbles-ltr-progressive.png'); } .oo-ui-icon-tray { background-image: url('themes/wikimediaui/images/icons/tray.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tray.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tray.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/tray.png'); } .oo-ui-image-invert.oo-ui-icon-tray { background-image: url('themes/wikimediaui/images/icons/tray-invert.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tray-invert.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tray-invert.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/tray-invert.png'); } .oo-ui-image-progressive.oo-ui-icon-tray { background-image: url('themes/wikimediaui/images/icons/tray-progressive.png'); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tray-progressive.svg'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/tray-progressive.svg'); background-image: -o-linear-gradient(transparent, transparent), url('themes/wikimediaui/images/icons/tray-progressive.png'); }
maruilian11/cdnjs
ajax/libs/oojs-ui/0.22.0/oojs-ui-wikimediaui-icons-alerts.css
CSS
mit
21,364
!function(t){function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=4)}([function(t,e,i){"use strict";i(2),i(1)},function(t,e,i){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}(),s=i(3),a=function(t){return t&&t.__esModule?t:{default:t}}(s),l=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,t),"addEventListener"in window&&!/MSIE 9/i.test(navigator.userAgent)&&!window.operamini){if(this.callbacks={},this.settings=this._applyGlobalSettings(i),this.classNames={popper:"tippy-popper",tooltip:"tippy-tooltip",content:"tippy-tooltip-content"},e instanceof Element?this.tooltippedEls=[e]:this.tooltippedEls=[].slice.call(document.querySelectorAll(e)),t.bus||(t.bus={refs:[],listeners:{}}),!t.bus.listeners.touchstart){t.bus.listeners.touchstart=!0;var n=function e(){t.touchUser=!0,document.body.classList.add("tippy-touch"),window.removeEventListener("touchstart",e)};window.addEventListener("touchstart",n)}this._createTooltips(),this._handleDocumentHidingEvents()}}return r(t,[{key:"_setMaps",value:function(){t.bus.popperMap=t.bus.refs.map(function(t){return t.popper}),t.bus.tooltippedElMap=t.bus.refs.map(function(t){return t.tooltippedEl})}},{key:"_closest",value:function(t,e){if(!Element.prototype.matches){"WebkitAppearance"in document.documentElement.style&&!/Edge\/\d./i.test(navigator.userAgent)?Element.prototype.matches=Element.prototype.webkitMatchesSelector:Element.prototype.matches=Element.prototype.msMatchesSelector}return Element.prototype.closest||(Element.prototype.closest=function(t){for(var e=this;e;){if(e.matches(t))return e;e=e.parentElement}}),t.closest(e)}},{key:"_applyGlobalSettings",value:function(t){this.callbacks.beforeShown=t.beforeShown||new Function,this.callbacks.shown=t.shown||new Function,this.callbacks.beforeHidden=t.beforeHidden||new Function,this.callbacks.hidden=t.hidden||new Function;var e={html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,delay:0,trigger:"mouseenter focus",duration:400,interactive:!1,theme:"dark",offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,popperOptions:{}};return{html:t.html||e.html,position:t.position||e.position,animation:t.animation||e.animation,animateFill:t.animateFill!==!1&&(t.animateFill||e.animateFill),arrow:t.arrow||e.arrow,delay:t.delay||e.delay,trigger:t.trigger||e.trigger,duration:0===t.duration?1:t.duration||e.duration,interactive:t.interactive||e.interactive,theme:t.theme||e.theme,offset:t.offset||e.offset,hideOnClick:t.hideOnClick!==!1&&(t.hideOnClick||e.hideOnClick),multiple:t.multiple||e.multiple,followCursor:t.followCursor||e.followCursor,popperOptions:t.popperOptions||e.popperOptions}}},{key:"_handleDocumentHidingEvents",value:function(){var e=this,i=function(t){var i=e._closest(t,"[data-tooltipped]"),o=e._closest(t,"."+e.classNames.popper),n={};return i?(n.type="tooltippedEl",n.target=i):o?(n.type="popper",n.target=o):n=null,n},o=function(e){var o=-1,n=-1,r=i(e);return r&&("tooltippedEl"===r.type?o=t.bus.tooltippedElMap.indexOf(r.target):"popper"===r.type&&(n=t.bus.popperMap.indexOf(r.target))),{tooltippedElIndex:o,popperIndex:n}},n=function(i){var n=o(i.target),r=n.tooltippedElIndex!==-1;if(n.popperIndex!==-1&&t.bus.refs[n.popperIndex].settings.interactive)return;if(r){var s=t.bus.refs[n.tooltippedElIndex];if(!s.settings.multiple&&(s.settings.trigger.indexOf("click")!==-1||t.touchUser))return void t.bus.refs.forEach(function(t){t.popper!==s.popper&&e.hide(t.popper)});if(!s.settings.hideOnClick||s.settings.trigger.indexOf("click")!==-1)return}t.bus.refs.forEach(function(t){return e.hide(t.popper)})},r=function(i){var n=o(i.target);n.tooltippedElIndex!==-1&&(9!==i.keyCode||t.bus.refs[n.tooltippedElIndex].popper.classList.contains("html-template")||t.bus.refs.forEach(function(t){return e.hide(t.popper)}))};t.bus.listeners.click||(t.bus.listeners={click:n,keydown:r},document.addEventListener("click",n),document.addEventListener("keydown",r))}},{key:"_createPopperInstance",value:function(t,e,i){var o=n({placement:i.position},i.popperOptions||{},{modifiers:n({},i.popperOptions?i.popperOptions.modifiers:{},{offset:n({offset:parseInt(i.offset)},i.popperOptions&&i.popperOptions.modifiers?i.popperOptions.modifiers.offset:{})})}),r=new a.default(t,e,o);return r.disableEventListeners(),r}},{key:"_createPopperElement",value:function(t,e){var i=document.createElement("div");i.setAttribute("class",this.classNames.popper);var o=document.createElement("div");if(o.setAttribute("class",this.classNames.tooltip+" "+e.theme+" leave"),o.setAttribute("data-position",e.position),o.setAttribute("data-animation",e.animation),e.arrow){var n=document.createElement("div");n.setAttribute("x-arrow",""),o.appendChild(n)}if(e.animateFill){o.setAttribute("data-animatefill","");var r=document.createElement("div");r.setAttribute("class","leave"),r.setAttribute("x-circle",""),o.appendChild(r)}var s=document.createElement("div");return s.setAttribute("class",this.classNames.content),e.html?(s.innerHTML=document.getElementById(e.html.replace("#","")).innerHTML,i.classList.add("html-template"),i.setAttribute("tabindex","0"),o.setAttribute("data-template-id",e.html)):s.innerHTML=t,o.appendChild(s),i.appendChild(o),i}},{key:"_applyIndividualSettings",value:function(t){var e=t.getAttribute("data-html")||this.settings.html;e&&"false"!==e||(e=!1);var i=t.getAttribute("data-position")||this.settings.position,o=t.getAttribute("data-animation")||this.settings.animation,n=t.getAttribute("data-animatefill")||this.settings.animateFill;"false"===n&&(n=!1);var r=t.getAttribute("data-arrow")||this.settings.arrow;r&&"false"!==r?n=!1:r=!1;var s=t.getAttribute("data-trigger")||this.settings.trigger;s&&(s=s.trim().split(" "));var a=t.getAttribute("data-theme")||this.settings.theme;a&&(a+="-theme");var l=parseInt(t.getAttribute("data-delay"));l||0===l||(l=this.settings.delay);var p=parseInt(t.getAttribute("data-duration"));p||0===p?0===p&&(p=1):p=this.settings.duration;var f=t.getAttribute("data-interactive")||this.settings.interactive;"false"===f&&(f=!1);var u=parseInt(t.getAttribute("data-offset"));u||0===u||(u=this.settings.offset);var d=t.getAttribute("data-hideonclick")||this.settings.hideOnClick;"false"===d&&(d=!1);var c=t.getAttribute("data-multiple")||this.settings.multiple;"false"===c&&(c=!1);var h=t.getAttribute("data-followcursor")||this.settings.followCursor;return"false"===h&&(h=!1),{html:e,position:i,animation:o,animateFill:n,arrow:r,delay:l,trigger:s,duration:p,interactive:f,theme:a,offset:u,hideOnClick:d,multiple:c,followCursor:h,popperOptions:this.settings.popperOptions}}},{key:"_createTooltips",value:function(){var e=this;this.tooltippedEls.forEach(function(i,o){var n=e._applyIndividualSettings(i),r=i.getAttribute("title");if(null!==r&&""!==r||n.html){i.setAttribute("data-original-title",r||"html"),i.removeAttribute("title"),i.setAttribute("data-tooltipped","");var s=e._createPopperElement(r,n);document.body.appendChild(s);var a=e._createPopperInstance(i,s,n);document.body.removeChild(s);var l=function(t){if("click"===t.type&&"visible"===s.style.visibility&&n.hideOnClick)return e.hide(s);if(n.delay){var i=setTimeout(function(){return e.show(s,n.duration)},n.delay);s.setAttribute("data-timeout",i)}else e.show(s,n.duration);n.interactive&&t.target.classList.add("active")},p=function(t){if(n.interactive){var o=function t(o){e._closest(o.target,"."+e.classNames.popper)===s||e._closest(o.target,"[data-tooltipped]")||n.trigger.indexOf("click")!==-1||(i.classList.remove("active"),e.hide(s),document.removeEventListener("mousemove",t))};return void document.addEventListener("mousemove",o)}e.hide(s)},f=function(i){n.interactive&&!t.touchUser||e.hide(s)},u=[];n.trigger.forEach(function(t){"manual"!==t&&(i.addEventListener(t,l),u.push({event:t,method:l}),"mouseenter"===t&&(i.addEventListener("mouseleave",p),u.push({event:"mouseleave",method:p})),"focus"===t&&(i.addEventListener("blur",f),u.push({event:"blur",method:f})))}),t.bus.refs.push({tooltippedEl:i,popper:s,settings:n,listeners:u,instance:a}),o===e.tooltippedEls.length-1&&e._setMaps()}})}},{key:"_followCursor",value:function(e){var i=t.bus.refs[t.bus.tooltippedElMap.indexOf(this)],o=i.settings.position,n=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,r=e.clientX-i.popper.offsetWidth/2,s=e.clientY+n-50;"left"===o?(r=e.clientX-i.popper.offsetWidth-10,s=e.clientY+n-i.popper.offsetHeight/2):"right"===o?(r=e.clientX+15,s=e.clientY+n-i.popper.offsetHeight/2):"bottom"===o&&(s=e.clientY+n+10),i.popper.style.WebkitTransform="translate3d("+r+"px, "+s+"px, 0)",i.popper.style.transform="translate3d("+r+"px, "+s+"px, 0)"}},{key:"getPopperElement",value:function(e){try{return t.bus.refs[t.bus.tooltippedElMap.indexOf(e)].popper}catch(t){throw new Error("[Tippy error]: Element does not exist in any Tippy instances")}}},{key:"show",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400;this.callbacks.beforeShown();var n=e.querySelector("."+this.classNames.tooltip),r=e.querySelector("[x-circle]"),s=e.querySelector("[x-arrow]");document.body.appendChild(e);var a=t.bus.refs[t.bus.popperMap.indexOf(e)];if(a.instance.update(),a.settings.followCursor&&!t.touchUser?a.hasFollowCursorListener||(a.hasFollowCursorListener=!0,a.tooltippedEl.addEventListener("mousemove",this._followCursor)):a.instance.enableEventListeners(),getComputedStyle(e).opacity,getComputedStyle(n).opacity,s&&getComputedStyle(s).opacity,n.style.WebkitTransitionDuration=o+"ms",n.style.transitionDuration=o+"ms",n.classList.add("enter"),n.classList.remove("leave"),r){var l=getComputedStyle(r);l.WebkitTransformOrigin,l.transformOrigin,r.style.WebkitTransitionDuration=o+"ms",r.style.transitionDuration=o+"ms",r.classList.add("enter"),r.classList.remove("leave")}e.style.visibility="visible";var p=function(){"hidden"!==e.style.visibility&&(a.settings.trigger.indexOf("click")!==-1&&e.focus(),i.callbacks.shown())};clearTimeout(a.showTimeout),a.showTimeout=setTimeout(p,o)}},{key:"hide",value:function(e){var i=this;if(clearTimeout(e.getAttribute("data-timeout")),document.body.contains(e)){this.callbacks.beforeHidden();var o=t.bus.refs[t.bus.popperMap.indexOf(e)];o.tooltippedEl.classList.remove("active");var n=e.querySelector("."+this.classNames.tooltip);n.classList.add("leave"),n.classList.remove("enter");var r=e.querySelector("[x-circle]");r&&(r.classList.add("leave"),r.classList.remove("enter")),e.style.visibility="hidden";var s=0;n.style.transitionDuration?s=parseInt(n.style.transitionDuration.replace("ms","")):n.style.WebkitTransitionDuration&&(s=parseInt(n.style.WebkitTransitionDuration.replace("ms","")));var a=function(){"visible"!==e.style.visibility&&(o.hasFollowCursorListener&&(o.tooltippedEl.removeEventListener("mousemove",i._followCursor),o.hasFollowCursorListener=!1),document.body.contains(e)&&document.body.removeChild(e),o.instance.disableEventListeners(),i.callbacks.hidden())};clearTimeout(o.hideTimeout),o.hideTimeout=setTimeout(a,s)}}},{key:"destroy",value:function(e){var i=t.bus.popperMap.indexOf(e),o=t.bus.tooltippedElMap[i];t.bus.refs[i].listeners.forEach(function(t){return o.removeEventListener(t.event,t.method)}),t.bus.popperMap.splice(i,1),t.bus.tooltippedElMap.splice(i,1),t.bus.refs.splice(i,1)}}]),t}();window.Tippy=l,t.exports=l},function(t,e){},function(t,e,i){/**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.0.8 * @license * Copyright (c) 2016 Federico Zivolo and contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ !function(e,i){t.exports=i()}(0,function(){"use strict";function t(t){var e=t.offsetParent,i=e&&e.nodeName;return i&&"BODY"!==i&&"HTML"!==i?e:window.document.documentElement}function e(t,e){if(1!==t.nodeType)return[];var i=window.getComputedStyle(t,null);return e?i[e]:i}function i(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function o(t){if(!t||["HTML","BODY","#document"].indexOf(t.nodeName)!==-1)return window.document.body;var n=e(t),r=n.overflow,s=n.overflowX,a=n.overflowY;return/(auto|scroll)/.test(r+a+s)?t:o(i(t))}function n(t){var o=t.nodeName;return"BODY"!==o&&"HTML"!==o&&("fixed"===e(t,"position")||n(i(t)))}function r(e){return n(t(e))?"fixed":"absolute"}function s(t,e){var i="x"===e?"Left":"Top",o="Left"===i?"Right":"Bottom";return Number(t["border"+i+"Width"].split("px")[0])+Number(t["border"+o+"Width"].split("px")[0])}function a(t){var i=navigator.appVersion.indexOf("MSIE 10")!==-1,o=void 0;if(i)try{o=t.getBoundingClientRect()}catch(t){o={}}else o=t.getBoundingClientRect();var n={left:o.left,top:o.top,right:o.right,bottom:o.bottom,width:o.right-o.left,height:o.bottom-o.top};if("HTML"===t.nodeName&&i){var r=window.document.documentElement,a=r.scrollTop,l=r.scrollLeft;n.top-=a,n.bottom-=a,n.left-=l,n.right-=l}var p=o.width-(t.clientWidth||o.right-o.left),f=o.height-(t.clientHeight||o.bottom-o.top);if(p||f){var u=e(t);p-=s(u,"x"),f-=s(u,"y")}return n.right-=p,n.width-=p,n.bottom-=f,n.height-=f,n}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",i="top"===e?"scrollTop":"scrollLeft",o=t.nodeName;if("BODY"===o||"HTML"===o){var n=window.document.documentElement;return(window.document.scrollingElement||n)[i]}return t[i]}function p(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=l(e,"top"),n=l(e,"left"),r=i?-1:1;return t.top+=o*r,t.bottom+=o*r,t.left+=n*r,t.right+=n*r,t}function f(i,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=o(n),f=a(i),u=a(n),d={top:f.top-u.top,left:f.left-u.left,bottom:f.top-u.top+f.height,right:f.left-u.left+f.width,width:f.width,height:f.height};r&&!s?d=p(d,l,!0):t(i).contains(l)&&"BODY"!==l.nodeName&&(d=p(d,n));var c=e(n),h=Number(c.borderTopWidth.split("px")[0]),m=Number(c.borderLeftWidth.split("px")[0]);return d.top-=h,d.bottom-=h,d.left-=m,d.right-=m,d}function u(){var t=window.document.body,e=window.document.documentElement;return{height:Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight),width:Math.max(t.scrollWidth,t.offsetWidth,e.clientWidth,e.scrollWidth,e.offsetWidth)}}function d(t){var e=void 0;if("HTML"===t.nodeName){var i=u();e={width:i.width,height:i.height,left:0,top:0}}else e={width:t.offsetWidth,height:t.offsetHeight,left:t.offsetLeft,top:t.offsetTop};return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function c(e){var i=d(e);if("HTML"!==e.nodeName){var o=t(e),n=c(o);return{width:i.offsetWidth,height:i.offsetHeight,left:i.left+n.left,top:i.top+n.top,right:i.right-n.right,bottom:i.bottom-n.bottom}}return i}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n=o(t),r=l(n,e);return["BODY","HTML"].indexOf(n.nodeName)===-1?r+h(i(n),e):r}function m(e,s,a){var l={top:0,left:0},p=t(e);if("viewport"===a){var d=c(p),m=d.left,v=d.top,b=window.document.documentElement,g=b.clientWidth,w=b.clientHeight;if("fixed"===r(e))l.right=g,l.bottom=w;else{l={top:0-v,right:g-m+h(e,"left"),bottom:w-v+h(e,"top"),left:0-m}}}else{var y=void 0;if(y="scrollParent"===a?o(i(e)):"window"===a?window.document.body:a,"BODY"===y.nodeName){var E=u(),O=E.height,x=E.width;l.right=x,l.bottom=O}else l=f(y,p,n(e))}return l.left+=s,l.top+=s,l.right-=s,l.bottom-=s,l}function v(t,e,i){if(t.indexOf("auto")===-1)return t;var o=m(i,0,"scrollParent"),n={top:e.top-o.top,right:o.right-e.right,bottom:o.bottom-e.bottom,left:e.left-o.left},r=Object.keys(n).sort(function(t,e){return n[e]-n[t]})[0],s=t.split("-")[1];return r+(s?"-"+s:"")}function b(t){var e=!1,i=0,o=document.createElement("span");return new MutationObserver(function(){t(),e=!1}).observe(o,{attributes:!0}),function(){e||(e=!0,o.setAttribute("x-index",i),i+=1)}}function g(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},Z))}}function w(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function y(t,e,i){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===i});var o=w(t,function(t){return t[e]===i});return t.indexOf(o)}function E(t){return st({},t,{right:t.left+t.width,bottom:t.top+t.height})}function O(t){var e=window.getComputedStyle(t),i=parseFloat(e.marginTop)+parseFloat(e.marginBottom),o=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+o,height:t.offsetHeight+i}}function x(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function k(t,e,i,o){o=o.split("-")[0];var n=O(e),r={position:t,width:n.width,height:n.height},s=["right","left"].indexOf(o)!==-1,a=s?"top":"left",l=s?"left":"top",p=s?"height":"width",f=s?"width":"height";return r[a]=i[a]+i[p]/2-n[p]/2,r[l]=o===l?i[l]-n[f]:i[x(l)],r}function L(e,i,o){var n="fixed"===e.position,r=e.isParentTransformed;return f(o,t(n&&r?o:i),n,r)}function C(t){for(var e=[!1,"ms","webkit","moz","o"],i=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length-1;o++){var n=e[o],r=n?""+n+i:t;if(void 0!==window.document.body.style[r])return r}return null}function T(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function A(t,e){return t.some(function(t){var i=t.name;return t.enabled&&i===e})}function M(t,e,i){var o=w(t,function(t){return t.name===e});return!!o&&t.some(function(t){return t.name===i&&t.enabled&&t.order<o.order})}function N(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function S(t){return"BODY"!==t.nodeName&&("none"!==e(t,"transform")||(i(t)?S(i(t)):t))}function P(t,e){return window.removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function H(t,e,i){return(void 0===i?t:t.slice(0,y(t,"name",i))).forEach(function(t){t.enabled&&T(t.function)&&(e=t.function(e,t))}),e}function W(t,e){Object.keys(e).forEach(function(i){e[i]!==!1?t.setAttribute(i,e[i]):t.removeAttribute(i)})}function D(t,e){Object.keys(e).forEach(function(i){var o="";["width","height","top","right","bottom","left"].indexOf(i)!==-1&&N(e[i])&&(o="px"),t.style[i]=e[i]+o})}function F(t,e,i,n){var r="BODY"===t.nodeName,s=r?window:t;s.addEventListener(e,i,{passive:!0}),r||F(o(s.parentNode),e,i,n),n.push(s)}function I(t,e,i,n){i.updateBound=n,window.addEventListener("resize",i.updateBound,{passive:!0});var r=o(t);return F(r,"scroll",i.updateBound,i.scrollParents),i.scrollElement=r,i.eventsEnabled=!0,i}function _(t,e){var i={position:t.offsets.popper.position},o={"x-placement":t.placement},n=Math.round(t.offsets.popper.left),r=Math.round(t.offsets.popper.top),s=C("transform");return e.gpuAcceleration&&s?(i[s]="translate3d("+n+"px, "+r+"px, 0)",i.top=0,i.left=0,i.willChange="transform"):(i.left=n,i.top=r,i.willChange="top, left"),D(t.instance.popper,st({},i,t.styles)),W(t.instance.popper,st({},o,t.attributes)),t.offsets.arrow&&D(t.arrowElement,t.offsets.arrow),t}function B(t,e,i,o,n){var r=L(n,e,t);return i.placement=v(i.placement,r,e),e.setAttribute("x-placement",i.placement),i}function j(t,e){if(!M(t.instance.modifiers,"arrow","keepTogether"))return console.warn("WARNING: `keepTogether` modifier is required by arrow modifier in order to work, be sure to include it before `arrow`!"),t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],n=E(t.offsets.popper),r=t.offsets.reference,s=["left","right"].indexOf(o)!==-1,a=s?"height":"width",l=s?"top":"left",p=s?"left":"top",f=s?"bottom":"right",u=O(i)[a];r[f]-u<n[l]&&(t.offsets.popper[l]-=n[l]-(r[f]-u)),r[l]+u>n[f]&&(t.offsets.popper[l]+=r[l]+u-n[f]);var d=r[l]+r[a]/2-u/2,c=d-E(t.offsets.popper)[l];return c=Math.max(Math.min(n[a]-u,c),0),t.arrowElement=i,t.offsets.arrow={},t.offsets.arrow[l]=c,t.offsets.arrow[p]="",t}function R(t){return"end"===t?"start":"start"===t?"end":t}function Y(t,e){if(A(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var i=m(t.instance.popper,e.padding,e.boundariesElement),o=t.placement.split("-")[0],n=x(o),r=t.placement.split("-")[1]||"",s=[];return s="flip"===e.behavior?[o,n]:e.behavior,s.forEach(function(a,l){if(o!==a||s.length===l+1)return t;o=t.placement.split("-")[0],n=x(o);var p=E(t.offsets.popper),f=t.offsets.reference,u=Math.floor,d="left"===o&&u(p.right)>u(f.left)||"right"===o&&u(p.left)<u(f.right)||"top"===o&&u(p.bottom)>u(f.top)||"bottom"===o&&u(p.top)<u(f.bottom),c=u(p.left)<u(i.left),h=u(p.right)>u(i.right),m=u(p.top)<u(i.top),v=u(p.bottom)>u(i.bottom),b="left"===o&&c||"right"===o&&h||"top"===o&&m||"bottom"===o&&v,g=["top","bottom"].indexOf(o)!==-1,w=!!e.flipVariations&&(g&&"start"===r&&c||g&&"end"===r&&h||!g&&"start"===r&&m||!g&&"end"===r&&v);(d||b||w)&&(t.flipped=!0,(d||b)&&(o=s[l+1]),w&&(r=R(r)),t.placement=o+(r?"-"+r:""),t.offsets.popper=k(t.instance.state.position,t.instance.popper,t.offsets.reference,t.placement),t=H(t.instance.modifiers,t,"flip"))}),t}function q(t){var e=E(t.offsets.popper),i=t.offsets.reference,o=t.placement.split("-")[0],n=Math.floor,r=["top","bottom"].indexOf(o)!==-1,s=r?"right":"bottom",a=r?"left":"top",l=r?"width":"height";return e[s]<n(i[a])&&(t.offsets.popper[a]=n(i[a])-e[l]),e[a]>n(i[s])&&(t.offsets.popper[a]=n(i[s])),t}function U(t,e){var i=t.placement,o=t.offsets.popper,n=void 0;return N(e.offset)?n=[e.offset,0]:(n=e.offset.split(" "),n=n.map(function(e,o){var n=e.match(/(\d*\.?\d*)(.*)/),r=+n[1],s=n[2],a=i.indexOf("right")!==-1||i.indexOf("left")!==-1;1===o&&(a=!a);var l=a?"height":"width";if(0===s.indexOf("%")){var p=void 0;switch(s){case"%p":p=t.offsets.popper;break;case"%":case"$r":default:p=t.offsets.reference}return E(p)[l]/100*r}if("vh"===s||"vw"===s){return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r}return"px"===s?+r:+e})),t.placement.indexOf("left")!==-1?(o.top+=n[0],o.left-=n[1]||0):t.placement.indexOf("right")!==-1?(o.top+=n[0],o.left+=n[1]||0):t.placement.indexOf("top")!==-1?(o.left+=n[0],o.top-=n[1]||0):t.placement.indexOf("bottom")!==-1&&(o.left+=n[0],o.top+=n[1]||0),t}function z(e,i){var o=i.boundariesElement||t(e.instance.popper),n=m(e.instance.popper,i.padding,o);i.boundaries=n;var r=i.priority,s=E(e.offsets.popper),a={primary:function(t){var e=s[t];return s[t]<n[t]&&!i.escapeWithReference&&(e=Math.max(s[t],n[t])),rt({},t,e)},secondary:function(t){var e="right"===t?"left":"top",o=s[e];return s[t]>n[t]&&!i.escapeWithReference&&(o=Math.min(s[e],n[t]-("right"===t?s.width:s.height))),rt({},e,o)}};return r.forEach(function(t){var e=["left","top"].indexOf(t)!==-1?"primary":"secondary";s=st({},s,a[e](t))}),e.offsets.popper=s,e}function G(t){var e=t.placement,i=e.split("-")[0],o=e.split("-")[1];if(o){var n=t.offsets.reference,r=E(t.offsets.popper),s=["bottom","top"].indexOf(i)!==-1,a=s?"left":"top",l=s?"width":"height",p={start:rt({},a,n[a]),end:rt({},a,n[a]+n[l]-r[l])};t.offsets.popper=st({},r,p[o])}return t}function X(t){if(!M(t.instance.modifiers,"hide","preventOverflow"))return console.warn("WARNING: preventOverflow modifier is required by hide modifier in order to work, be sure to include it before hide!"),t;var e=t.offsets.reference,i=w(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<i.top||e.left>i.right||e.top>i.bottom||e.right<i.left){if(t.hide===!0)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(t.hide===!1)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function V(t){var e=t.placement,i=e.split("-")[0],o=E(t.offsets.popper),n=E(t.offsets.reference),r=["left","right"].indexOf(i)!==-1,s=["top","left"].indexOf(i)===-1;return o[r?"left":"top"]=n[e]-(s?o[r?"width":"height"]:0),t.placement=x(e),t.offsets.popper=E(o),t}for(var $=["native code","[object MutationObserverConstructor]"],J=function(t){return $.some(function(e){return(t||"").toString().indexOf(e)>-1})},K="undefined"!=typeof window,Q=["Edge","Trident","Firefox"],Z=0,tt=0;tt<Q.length;tt+=1)if(K&&navigator.userAgent.indexOf(Q[tt])>=0){Z=1;break}var et=K&&J(window.MutationObserver),it=et?b:g,ot=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},nt=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}(),rt=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},st=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},at={computeAutoPlacement:v,debounce:it,findIndex:y,getBordersSize:s,getBoundaries:m,getBoundingClientRect:a,getClientRect:E,getOffsetParent:t,getOffsetRect:d,getOffsetRectRelativeToCustomParent:f,getOuterSizes:O,getParentNode:i,getPopperOffsets:k,getPosition:r,getReferenceOffsets:L,getScroll:l,getScrollParent:o,getStyleComputedProperty:e,getSupportedPropertyName:C,getTotalScroll:h,getWindowSizes:u,includeScroll:p,isFixed:n,isFunction:T,isModifierEnabled:A,isModifierRequired:M,isNative:J,isNumeric:N,isTransformed:S,removeEventListeners:P,runModifiers:H,setAttributes:W,setStyles:D,setupEventListeners:I},lt={shift:{order:100,enabled:!0,function:G},offset:{order:200,enabled:!0,function:U,offset:0},preventOverflow:{order:300,enabled:!0,function:z,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,function:q},arrow:{order:500,enabled:!0,function:j,element:"[x-arrow]"},flip:{order:600,enabled:!0,function:Y,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,function:V},hide:{order:800,enabled:!0,function:X},applyStyle:{order:900,enabled:!0,gpuAcceleration:!0,function:_,onLoad:B}},pt={placement:"bottom",eventsEnabled:!0,onCreate:function(){},onUpdate:function(){},modifiers:lt},ft=function(){function t(e,i){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ot(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=it(this.update.bind(this)),this.options=st({},t.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e.jquery?e[0]:e,this.popper=i.jquery?i[0]:i,this.modifiers=Object.keys(t.Defaults.modifiers).map(function(e){return st({name:e},t.Defaults.modifiers[e])}),this.modifiers=this.modifiers.map(function(t){var e=n.modifiers&&n.modifiers[t.name]||{};return st({},t,e)}),n.modifiers&&(this.options.modifiers=st({},t.Defaults.modifiers,n.modifiers),Object.keys(n.modifiers).forEach(function(e){if(void 0===t.Defaults.modifiers[e]){var i=n.modifiers[e];i.name=e,o.modifiers.push(i)}})),this.state.position=r(this.reference),this.modifiers=this.modifiers.sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&T(t.onLoad)&&t.onLoad(o.reference,o.popper,o.options,t,o.state)}),this.state.isParentTransformed=S(this.popper.parentNode),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return nt(t,[{key:"update",value:function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};this.state.position=r(this.reference),D(this.popper,{position:this.state.position}),t.offsets.reference=L(this.state,this.popper,this.reference),t.placement=v(this.options.placement,t.offsets.reference,this.popper),t.originalPlacement=this.options.placement,t.offsets.popper=k(this.state,this.popper,t.offsets.reference,t.placement),t=H(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}},{key:"destroy",value:function(){return this.state.isDestroyed=!0,A(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[C("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}},{key:"enableEventListeners",value:function(){this.state.eventsEnabled||(this.state=I(this.reference,this.options,this.state,this.scheduleUpdate))}},{key:"disableEventListeners",value:function(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=P(this.reference,this.state))}}]),t}();return ft.Utils=at,ft.placements=["auto","auto-start","auto-end","top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],ft.Defaults=pt,ft})},function(t,e,i){t.exports=i(0)}]);
holtkamp/cdnjs
ajax/libs/tippy.js/0.2.6/tippy.js
JavaScript
mit
30,849
/** * Module exports. */ /** * Check if `obj` is an array. */ function isArray(obj) { return '[object Array]' == {}.toString.call(obj); } /** * Event emitter constructor. * * @api public. */ function EventEmitter(){}; /** * Adds a listener. * * @api public */ EventEmitter.prototype.on = function (name, fn) { if (!this.$events) { this.$events = {}; } if (!this.$events[name]) { this.$events[name] = fn; } else if (isArray(this.$events[name])) { this.$events[name].push(fn); } else { this.$events[name] = [this.$events[name], fn]; } return this; }; EventEmitter.prototype.addListener = EventEmitter.prototype.on; /** * Adds a volatile listener. * * @api public */ EventEmitter.prototype.once = function (name, fn) { var self = this; function on () { self.removeListener(name, on); fn.apply(this, arguments); }; on.listener = fn; this.on(name, on); return this; }; /** * Removes a listener. * * @api public */ EventEmitter.prototype.removeListener = function (name, fn) { if (this.$events && this.$events[name]) { var list = this.$events[name]; if (isArray(list)) { var pos = -1; for (var i = 0, l = list.length; i < l; i++) { if (list[i] === fn || (list[i].listener && list[i].listener === fn)) { pos = i; break; } } if (pos < 0) { return this; } list.splice(pos, 1); if (!list.length) { delete this.$events[name]; } } else if (list === fn || (list.listener && list.listener === fn)) { delete this.$events[name]; } } return this; }; /** * Removes all listeners for an event. * * @api public */ EventEmitter.prototype.removeAllListeners = function (name) { if (name === undefined) { this.$events = {}; return this; } if (this.$events && this.$events[name]) { this.$events[name] = null; } return this; }; /** * Gets all listeners for a certain event. * * @api publci */ EventEmitter.prototype.listeners = function (name) { if (!this.$events) { this.$events = {}; } if (!this.$events[name]) { this.$events[name] = []; } if (!isArray(this.$events[name])) { this.$events[name] = [this.$events[name]]; } return this.$events[name]; }; /** * Emits an event. * * @api public */ EventEmitter.prototype.emit = function (name) { if (!this.$events) { return false; } var handler = this.$events[name]; if (!handler) { return false; } var args = [].slice.call(arguments, 1); if ('function' == typeof handler) { handler.apply(this, args); } else if (isArray(handler)) { var listeners = handler.slice(); for (var i = 0, l = listeners.length; i < l; i++) { listeners[i].apply(this, args); } } else { return false; } return true; }; /*! * superagent * Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ var superagent = function(exports){ /** * Expose the request function. */ exports = request; /** * Library version. */ exports.version = '0.3.0'; /** * Noop. */ var noop = function(){}; /** * Determine XHR. */ function getXHR() { if (window.XMLHttpRequest && ('file:' != window.location.protocol || !window.ActiveXObject)) { return new XMLHttpRequest; } else { try { return new ActiveXObject('Microsoft.XMLHTTP'); } catch(e) {} try { return new ActiveXObject('Msxml2.XMLHTTP.6.0'); } catch(e) {} try { return new ActiveXObject('Msxml2.XMLHTTP.3.0'); } catch(e) {} try { return new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) {} } return false; } /** * Removes leading and trailing whitespace, added to support IE. * * @param {String} s * @return {String} * @api private */ var trim = ''.trim ? function(s) { return s.trim(); } : function(s) { return s.replace(/(^\s*|\s*$)/g, ''); }; /** * Check if `obj` is a function. * * @param {Mixed} obj * @return {Boolean} * @api private */ function isFunction(obj) { return 'function' == typeof obj; } /** * Check if `obj` is an object. * * @param {Object} obj * @return {Boolean} * @api private */ function isObject(obj) { return null != obj && 'object' == typeof obj; } /** * Serialize the given `obj`. * * @param {Object} obj * @return {String} * @api private */ function serialize(obj) { if (!isObject(obj)) return obj; var pairs = []; for (var key in obj) { pairs.push(encodeURIComponent(key) + '=' + encodeURIComponent(obj[key])); } return pairs.join('&'); } /** * Expose serialization method. */ exports.serializeObject = serialize; /** * Parse the given x-www-form-urlencoded `str`. * * @param {String} str * @return {Object} * @api private */ function parseString(str) { var obj = {} , pairs = str.split('&') , parts , pair; for (var i = 0, len = pairs.length; i < len; ++i) { pair = pairs[i]; parts = pair.split('='); obj[decodeURIComponent(parts[0])] = decodeURIComponent(parts[1]); } return obj; } /** * Expose parser. */ exports.parseString = parseString; /** * Default MIME type map. * * superagent.types.xml = 'application/xml'; * */ exports.types = { html: 'text/html' , json: 'application/json' , urlencoded: 'application/x-www-form-urlencoded' , 'form-data': 'application/x-www-form-urlencoded' }; /** * Default serialization map. * * superagent.serialize['application/xml'] = function(obj){ * return 'generated xml here'; * }; * */ exports.serialize = { 'application/x-www-form-urlencoded': serialize , 'application/json': JSON.stringify }; /** * Default parsers. * * superagent.parse['application/xml'] = function(str){ * return { object parsed from str }; * }; * */ exports.parse = { 'application/x-www-form-urlencoded': parseString , 'application/json': JSON.parse }; /** * Parse the given header `str` into * an object containing the mapped fields. * * @param {String} str * @return {Object} * @api private */ function parseHeader(str) { var lines = str.split(/\r?\n/) , fields = {} , index , line , field , val; lines.pop(); // trailing CRLF for (var i = 0, len = lines.length; i < len; ++i) { line = lines[i]; index = line.indexOf(':'); field = line.slice(0, index).toLowerCase(); val = trim(line.slice(index + 1)); fields[field] = val; } return fields; } /** * Return the mime type for the given `str`. * * @param {String} str * @return {String} * @api private */ function type(str){ return str.split(/ *; */).shift(); }; /** * Return header field parameters. * * @param {String} str * @return {Object} * @api private */ function params(str){ return str.split(/ *; */).reduce(function(obj, str){ var parts = str.split(/ *= */) , key = parts.shift() , val = parts.shift(); if (key && val) obj[key] = val; return obj; }, {}); }; /** * Initialize a new `Response` with the given `xhr`. * * - set flags (.ok, .error, etc) * - parse header * * Examples: * * Aliasing `superagent` as `request` is nice: * * request = superagent; * * We can use the promise-like API, or pass callbacks: * * request.get('/').end(function(res){}); * request.get('/', function(res){}); * * Sending data can be chained: * * request * .post('/user') * .send({ name: 'tj' }) * .end(function(res){}); * * Or passed to `.send()`: * * request * .post('/user') * .send({ name: 'tj' }, function(res){}); * * Or passed to `.post()`: * * request * .post('/user', { name: 'tj' }) * .end(function(res){}); * * Or further reduced to a single call for simple cases: * * request * .post('/user', { name: 'tj' }, function(res){}); * * @param {XMLHTTPRequest} xhr * @param {Object} options * @api private */ function Response(xhr, options) { options = options || {}; this.xhr = xhr; this.text = xhr.responseText; this.setStatusProperties(xhr.status); this.header = parseHeader(xhr.getAllResponseHeaders()); this.setHeaderProperties(this.header); this.body = this.parseBody(this.text); } /** * Set header related properties: * * - `.type` the content type without params * * A response of "Content-Type: text/plain; charset=utf-8" * will provide you with a `.type` of "text/plain". * * @param {Object} header * @api private */ Response.prototype.setHeaderProperties = function(header){ // content-type var ct = this.header['content-type'] || ''; this.type = type(ct); // params var obj = params(ct); for (var key in obj) this[key] = obj[key]; }; /** * Parse the given body `str`. * * Used for auto-parsing of bodies. Parsers * are defined on the `superagent.parse` object. * * @param {String} str * @return {Mixed} * @api private */ Response.prototype.parseBody = function(str){ var parse = exports.parse[this.type]; return parse ? parse(str) : null; }; /** * Set flags such as `.ok` based on `status`. * * For example a 2xx response will give you a `.ok` of __true__ * whereas 5xx will be __false__ and `.error` will be __true__. The * `.clientError` and `.serverError` are also available to be more * specific, and `.statusType` is the class of error ranging from 1..5 * sometimes useful for mapping respond colors etc. * * "sugar" properties are also defined for common cases. Currently providing: * * - .noContent * - .badRequest * - .unauthorized * - .notAcceptable * - .notFound * * @param {Number} status * @api private */ Response.prototype.setStatusProperties = function(status){ var type = status / 100 | 0; // status / class this.status = status; this.statusType = type; // basics this.info = 1 == type; this.ok = 2 == type; this.clientError = 4 == type; this.serverError = 5 == type; this.error = 4 == type || 5 == type; // sugar this.accepted = 202 == status; this.noContent = 204 == status || 1223 == status; this.badRequest = 400 == status; this.unauthorized = 401 == status; this.notAcceptable = 406 == status; this.notFound = 404 == status; }; /** * Expose `Response`. */ exports.Response = Response; /** * Initialize a new `Request` with the given `method` and `url`. * * @param {String} method * @param {String} url * @api public */ function Request(method, url) { var self = this; EventEmitter.call(this); this.method = method; this.url = url; this.header = {}; this.set('X-Requested-With', 'XMLHttpRequest'); this.on('end', function(){ self.callback(new Response(self.xhr)); }); } /** * Inherit from `EventEmitter.prototype`. */ Request.prototype = new EventEmitter; Request.prototype.constructor = Request; /** * Set header `field` to `val`, or multiple fields with one object. * * Examples: * * req.get('/') * .set('Accept', 'application/json') * .set('X-API-Key', 'foobar') * .end(callback); * * req.get('/') * .set({ Accept: 'application/json', 'X-API-Key': 'foobar' }) * .end(callback); * * @param {String|Object} field * @param {String} val * @return {Request} for chaining * @api public */ Request.prototype.set = function(field, val){ if (isObject(field)) { for (var key in field) { this.set(key, field[key]); } return this; } this.header[field.toLowerCase()] = val; return this; }; /** * Set Content-Type to `type`, mapping values from `exports.types`. * * Examples: * * superagent.types.xml = 'application/xml'; * * request.post('/') * .type('xml') * .send(xmlstring) * .end(callback); * * request.post('/') * .type('application/xml') * .send(xmlstring) * .end(callback); * * @param {String} type * @return {Request} for chaining * @api public */ Request.prototype.type = function(type){ this.set('Content-Type', exports.types[type] || type); return this; }; /** * Add `obj` to the query-string, later formatted * in `.end()`. * * @param {Object} obj * @return {Request} for chaining * @api public */ Request.prototype.query = function(obj){ this._query = this._query || {}; for (var key in obj) { this._query[key] = obj[key]; } return this; }; /** * Send `data`, defaulting the `.type()` to "json" when * an object is given. * * Examples: * * // querystring * request.get('/search') * .send({ search: 'query' }) * .end(callback) * * // multiple data "writes" * request.get('/search') * .send({ search: 'query' }) * .send({ range: '1..5' }) * .send({ order: 'desc' }) * .end(callback) * * // manual json * request.post('/user') * .type('json') * .send('{"name":"tj"}) * .end(callback) * * // auto json * request.post('/user') * .send({ name: 'tj' }) * .end(callback) * * // manual x-www-form-urlencoded * request.post('/user') * .type('form') * .send('name=tj') * .end(callback) * * // auto x-www-form-urlencoded * request.post('/user') * .type('form') * .send({ name: 'tj' }) * .end(callback) * * @param {String|Object} data * @return {Request} for chaining * @api public */ Request.prototype.send = function(data){ if ('GET' == this.method) return this.query(data); var obj = isObject(data); // merge if (obj && isObject(this._data)) { for (var key in data) { this._data[key] = data[key]; } } else { this._data = data; } if (!obj) return this; if (this.header['content-type']) return this; this.type('json'); return this; }; /** * Initiate request, invoking callback `fn(res)` * with an instanceof `Response`. * * @param {Function} fn * @return {Request} for chaining * @api public */ Request.prototype.end = function(fn){ var self = this , xhr = this.xhr = getXHR() , query = this._query , data = this._data; // store callback this.callback = fn || noop; // state change xhr.onreadystatechange = function(){ if (4 == xhr.readyState) self.emit('end'); }; // querystring if (query) { query = exports.serializeObject(query); this.url += ~this.url.indexOf('?') ? '&' + query : '?' + query; } // initiate request xhr.open(this.method, this.url, true); // body if ('GET' != this.method && 'HEAD' != this.method) { // serialize stuff var serialize = exports.serialize[this.header['content-type']]; if (serialize) data = serialize(data); } // set header fields for (var field in this.header) { xhr.setRequestHeader(field, this.header[field]); } // send stuff xhr.send(data); return this; }; /** * Expose `Request`. */ exports.Request = Request; /** * Issue a request: * * Examples: * * request('GET', '/users').end(callback) * request('/users').end(callback) * request('/users', callback) * * @param {String} method * @param {String|Function} url or callback * @return {Request} * @api public */ function request(method, url) { // callback if ('function' == typeof url) { return new Request('GET', method).end(url); } // url first if (1 == arguments.length) { return new Request('GET', method); } return new Request(method, url); } /** * GET `url` with optional callback `fn(res)`. * * @param {String} url * @param {Mixed} data * @param {Function} fn * @return {Request} * @api public */ request.get = function(url, data, fn){ var req = request('GET', url); if (isFunction(data)) fn = data, data = null; if (data) req.send(data); if (fn) req.end(fn); return req; }; /** * GET `url` with optional callback `fn(res)`. * * @param {String} url * @param {Mixed} data * @param {Function} fn * @return {Request} * @api public */ request.head = function(url, data, fn){ var req = request('HEAD', url); if (isFunction(data)) fn = data, data = null; if (data) req.send(data); if (fn) req.end(fn); return req; }; /** * DELETE `url` with optional callback `fn(res)`. * * @param {String} url * @param {Function} fn * @return {Request} * @api public */ request.del = function(url, fn){ var req = request('DELETE', url); if (fn) req.end(fn); return req; }; /** * POST `url` with optional `data` and callback `fn(res)`. * * @param {String} url * @param {Mixed} data * @param {Function} fn * @return {Request} * @api public */ request.post = function(url, data, fn){ var req = request('POST', url); if (data) req.send(data); if (fn) req.end(fn); return req; }; /** * PUT `url` with optional `data` and callback `fn(res)`. * * @param {String} url * @param {Mixed} data * @param {Function} fn * @return {Request} * @api public */ request.put = function(url, data, fn){ var req = request('PUT', url); if (data) req.send(data); if (fn) req.end(fn); return req; }; return exports; }({});
BitsyCode/cdnjs
ajax/libs/superagent/0.4.0/superagent.js
JavaScript
mit
18,479
/** * angular-strap * @version v2.2.1 - 2015-03-10 * @link http://mgcrea.github.io/angular-strap * @author Olivier Louvignes (olivier@mg-crea.com) * @license MIT License, http://www.opensource.org/licenses/MIT */ 'use strict'; angular.module('mgcrea.ngStrap.dropdown', ['mgcrea.ngStrap.tooltip']) .provider('$dropdown', function() { var defaults = this.defaults = { animation: 'am-fade', prefixClass: 'dropdown', prefixEvent: 'dropdown', placement: 'bottom-left', template: 'dropdown/dropdown.tpl.html', trigger: 'click', container: false, keyboard: true, html: false, delay: 0 }; this.$get = ["$window", "$rootScope", "$tooltip", "$timeout", function($window, $rootScope, $tooltip, $timeout) { var bodyEl = angular.element($window.document.body); var matchesSelector = Element.prototype.matchesSelector || Element.prototype.webkitMatchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector; function DropdownFactory(element, config) { var $dropdown = {}; // Common vars var options = angular.extend({}, defaults, config); var scope = $dropdown.$scope = options.scope && options.scope.$new() || $rootScope.$new(); $dropdown = $tooltip(element, options); var parentEl = element.parent(); // Protected methods $dropdown.$onKeyDown = function(evt) { if (!/(38|40)/.test(evt.keyCode)) return; evt.preventDefault(); evt.stopPropagation(); // Retrieve focused index var items = angular.element($dropdown.$element[0].querySelectorAll('li:not(.divider) a')); if(!items.length) return; var index; angular.forEach(items, function(el, i) { if(matchesSelector && matchesSelector.call(el, ':focus')) index = i; }); // Navigate with keyboard if(evt.keyCode === 38 && index > 0) index--; else if(evt.keyCode === 40 && index < items.length - 1) index++; else if(angular.isUndefined(index)) index = 0; items.eq(index)[0].focus(); }; // Overrides var show = $dropdown.show; $dropdown.show = function() { show(); // use timeout to hookup the events to prevent // event bubbling from being processed imediately. $timeout(function() { options.keyboard && $dropdown.$element.on('keydown', $dropdown.$onKeyDown); bodyEl.on('click', onBodyClick); }, 0, false); parentEl.hasClass('dropdown') && parentEl.addClass('open'); }; var hide = $dropdown.hide; $dropdown.hide = function() { if(!$dropdown.$isShown) return; options.keyboard && $dropdown.$element.off('keydown', $dropdown.$onKeyDown); bodyEl.off('click', onBodyClick); parentEl.hasClass('dropdown') && parentEl.removeClass('open'); hide(); }; var destroy = $dropdown.destroy; $dropdown.destroy = function() { bodyEl.off('click', onBodyClick); destroy(); }; // Private functions function onBodyClick(evt) { if(evt.target === element[0]) return; return evt.target !== element[0] && $dropdown.hide(); } return $dropdown; } return DropdownFactory; }]; }) .directive('bsDropdown', ["$window", "$sce", "$dropdown", function($window, $sce, $dropdown) { return { restrict: 'EAC', scope: true, link: function postLink(scope, element, attr, transclusion) { // Directive options var options = {scope: scope}; angular.forEach(['placement', 'container', 'delay', 'trigger', 'keyboard', 'html', 'animation', 'template', 'id'], function(key) { if(angular.isDefined(attr[key])) options[key] = attr[key]; }); // Support scope as an object attr.bsDropdown && scope.$watch(attr.bsDropdown, function(newValue, oldValue) { scope.content = newValue; }, true); // Visibility binding support attr.bsShow && scope.$watch(attr.bsShow, function(newValue, oldValue) { if(!dropdown || !angular.isDefined(newValue)) return; if(angular.isString(newValue)) newValue = !!newValue.match(/true|,?(dropdown),?/i); newValue === true ? dropdown.show() : dropdown.hide(); }); // Initialize dropdown var dropdown = $dropdown(element, options); // Garbage collection scope.$on('$destroy', function() { if (dropdown) dropdown.destroy(); options = null; dropdown = null; }); } }; }]);
vdurmont/cdnjs
ajax/libs/angular-strap/2.2.1/modules/dropdown.js
JavaScript
mit
4,842
@import url("//fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic"); /*! normalize.css v2.1.3 | MIT License | git.io/normalize */ article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; } audio, canvas, video { display: inline-block; } audio:not([controls]) { display: none; height: 0; } [hidden], template { display: none; } html { font-family: sans-serif; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } body { margin: 0; } a { background: transparent; } a:focus { outline: thin dotted; } a:active, a:hover { outline: 0; } h1 { margin: 0.67em 0; font-size: 2em; } abbr[title] { border-bottom: 1px dotted; } b, strong { font-weight: bold; } dfn { font-style: italic; } hr { height: 0; -moz-box-sizing: content-box; box-sizing: content-box; } mark { color: #000; background: #ff0; } code, kbd, pre, samp { font-family: monospace, serif; font-size: 1em; } pre { white-space: pre-wrap; } q { quotes: "\201C" "\201D" "\2018" "\2019"; } small { font-size: 80%; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { border: 0; } svg:not(:root) { overflow: hidden; } figure { margin: 0; } fieldset { padding: 0.35em 0.625em 0.75em; margin: 0 2px; border: 1px solid #c0c0c0; } legend { padding: 0; border: 0; } button, input, select, textarea { margin: 0; font-family: inherit; font-size: 100%; } button, input { line-height: normal; } button, select { text-transform: none; } button, html input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; } button[disabled], html input[disabled] { cursor: default; } input[type="checkbox"], input[type="radio"] { padding: 0; box-sizing: border-box; } input[type="search"] { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; -webkit-appearance: textfield; } input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } button::-moz-focus-inner, input::-moz-focus-inner { padding: 0; border: 0; } textarea { overflow: auto; vertical-align: top; } table { border-collapse: collapse; border-spacing: 0; } @media print { * { color: #000 !important; text-shadow: none !important; background: transparent !important; box-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } @page { margin: 2cm .5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } select { background: #fff !important; } .navbar { display: none; } .table td, .table th { background-color: #fff !important; } .btn > .caret, .dropup > .btn > .caret { border-top-color: #000 !important; } .label { border: 1px solid #000; } .table { border-collapse: collapse !important; } .table-bordered th, .table-bordered td { border: 1px solid #ddd !important; } } *, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 62.5%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { font-family: "Lora", Georgia, "Times New Roman", Times, serif; font-size: 17px; line-height: 1.428571429; color: #333333; background-color: #f9f9f9; } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } a { color: #428bca; text-decoration: none; } a:hover, a:focus { color: #428bca; text-decoration: underline; } a:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } img { vertical-align: middle; } .img-responsive { display: block; height: auto; max-width: 100%; } .img-rounded { border-radius: 6px; } .img-thumbnail { display: inline-block; height: auto; max-width: 100%; padding: 4px; line-height: 1.428571429; background-color: #f9f9f9; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .img-circle { border-radius: 50%; } hr { margin-top: 24px; margin-bottom: 24px; border: 0; border-top: 1px solid #eeeeee; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } p { margin: 0 0 12px; } .lead { margin-bottom: 24px; font-size: 19px; font-weight: 200; line-height: 1.4; } @media (min-width: 768px) { .lead { font-size: 25.5px; } } small, .small { font-size: 85%; } cite { font-style: normal; } .text-muted { color: #999999; } .text-primary { color: #428bca; } .text-primary:hover { color: #3071a9; } .text-warning { color: #c09853; } .text-warning:hover { color: #a47e3c; } .text-danger { color: #b94a48; } .text-danger:hover { color: #953b39; } .text-success { color: #468847; } .text-success:hover { color: #356635; } .text-info { color: #3a87ad; } .text-info:hover { color: #2d6987; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: "Lora", Georgia, "Times New Roman", Times, serif; font-weight: bold; line-height: 1.1; color: inherit; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small { font-weight: normal; line-height: 1; color: #999999; } h1, h2, h3 { margin-top: 24px; margin-bottom: 12px; } h1 small, h2 small, h3 small, h1 .small, h2 .small, h3 .small { font-size: 65%; } h4, h5, h6 { margin-top: 12px; margin-bottom: 12px; } h4 small, h5 small, h6 small, h4 .small, h5 .small, h6 .small { font-size: 75%; } h1, .h1 { font-size: 44px; } h2, .h2 { font-size: 36px; } h3, .h3 { font-size: 29px; } h4, .h4 { font-size: 22px; } h5, .h5 { font-size: 17px; } h6, .h6 { font-size: 15px; } .page-header { padding-bottom: 11px; margin: 48px 0 24px; border-bottom: 1px solid #eeeeee; } ul, ol { margin-top: 0; margin-bottom: 12px; } ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; list-style: none; } .list-inline > li { display: inline-block; padding-right: 5px; padding-left: 5px; } .list-inline > li:first-child { padding-left: 0; } dl { margin-bottom: 24px; } dt, dd { line-height: 1.428571429; } dt { font-weight: bold; } dd { margin-left: 0; } @media (min-width: 768px) { .dl-horizontal dt { float: left; width: 160px; overflow: hidden; clear: left; text-align: right; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #999999; } abbr.initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 12px 24px; margin: 0 0 24px; border-left: 5px solid #eeeeee; } blockquote p { font-size: 21.25px; font-weight: 300; line-height: 1.25; } blockquote p:last-child { margin-bottom: 0; } blockquote small { display: block; line-height: 1.428571429; color: #999999; } blockquote small:before { content: '\2014 \00A0'; } blockquote.pull-right { padding-right: 15px; padding-left: 0; border-right: 5px solid #eeeeee; border-left: 0; } blockquote.pull-right p, blockquote.pull-right small, blockquote.pull-right .small { text-align: right; } blockquote.pull-right small:before, blockquote.pull-right .small:before { content: ''; } blockquote.pull-right small:after, blockquote.pull-right .small:after { content: '\00A0 \2014'; } blockquote:before, blockquote:after { content: ""; } address { margin-bottom: 24px; font-style: normal; line-height: 1.428571429; } code, kbd, pre, samp { font-family: Monaco, Menlo, Consolas, "Courier New", monospace; } code { padding: 2px 4px; font-size: 90%; color: #c7254e; white-space: nowrap; background-color: #f9f2f4; border-radius: 4px; } pre { display: block; padding: 11.5px; margin: 0 0 12px; font-size: 16px; line-height: 1.428571429; color: #333333; word-break: break-all; word-wrap: break-word; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; } pre code { padding: 0; font-size: inherit; color: inherit; white-space: pre-wrap; background-color: transparent; border-radius: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } .container { padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .row { margin-right: -15px; margin-left: -15px; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11 { float: left; } .col-xs-12 { width: 100%; } .col-xs-11 { width: 91.66666666666666%; } .col-xs-10 { width: 83.33333333333334%; } .col-xs-9 { width: 75%; } .col-xs-8 { width: 66.66666666666666%; } .col-xs-7 { width: 58.333333333333336%; } .col-xs-6 { width: 50%; } .col-xs-5 { width: 41.66666666666667%; } .col-xs-4 { width: 33.33333333333333%; } .col-xs-3 { width: 25%; } .col-xs-2 { width: 16.666666666666664%; } .col-xs-1 { width: 8.333333333333332%; } .col-xs-pull-12 { right: 100%; } .col-xs-pull-11 { right: 91.66666666666666%; } .col-xs-pull-10 { right: 83.33333333333334%; } .col-xs-pull-9 { right: 75%; } .col-xs-pull-8 { right: 66.66666666666666%; } .col-xs-pull-7 { right: 58.333333333333336%; } .col-xs-pull-6 { right: 50%; } .col-xs-pull-5 { right: 41.66666666666667%; } .col-xs-pull-4 { right: 33.33333333333333%; } .col-xs-pull-3 { right: 25%; } .col-xs-pull-2 { right: 16.666666666666664%; } .col-xs-pull-1 { right: 8.333333333333332%; } .col-xs-push-12 { left: 100%; } .col-xs-push-11 { left: 91.66666666666666%; } .col-xs-push-10 { left: 83.33333333333334%; } .col-xs-push-9 { left: 75%; } .col-xs-push-8 { left: 66.66666666666666%; } .col-xs-push-7 { left: 58.333333333333336%; } .col-xs-push-6 { left: 50%; } .col-xs-push-5 { left: 41.66666666666667%; } .col-xs-push-4 { left: 33.33333333333333%; } .col-xs-push-3 { left: 25%; } .col-xs-push-2 { left: 16.666666666666664%; } .col-xs-push-1 { left: 8.333333333333332%; } .col-xs-offset-12 { margin-left: 100%; } .col-xs-offset-11 { margin-left: 91.66666666666666%; } .col-xs-offset-10 { margin-left: 83.33333333333334%; } .col-xs-offset-9 { margin-left: 75%; } .col-xs-offset-8 { margin-left: 66.66666666666666%; } .col-xs-offset-7 { margin-left: 58.333333333333336%; } .col-xs-offset-6 { margin-left: 50%; } .col-xs-offset-5 { margin-left: 41.66666666666667%; } .col-xs-offset-4 { margin-left: 33.33333333333333%; } .col-xs-offset-3 { margin-left: 25%; } .col-xs-offset-2 { margin-left: 16.666666666666664%; } .col-xs-offset-1 { margin-left: 8.333333333333332%; } @media (min-width: 768px) { .container { width: 750px; } .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11 { float: left; } .col-sm-12 { width: 100%; } .col-sm-11 { width: 91.66666666666666%; } .col-sm-10 { width: 83.33333333333334%; } .col-sm-9 { width: 75%; } .col-sm-8 { width: 66.66666666666666%; } .col-sm-7 { width: 58.333333333333336%; } .col-sm-6 { width: 50%; } .col-sm-5 { width: 41.66666666666667%; } .col-sm-4 { width: 33.33333333333333%; } .col-sm-3 { width: 25%; } .col-sm-2 { width: 16.666666666666664%; } .col-sm-1 { width: 8.333333333333332%; } .col-sm-pull-12 { right: 100%; } .col-sm-pull-11 { right: 91.66666666666666%; } .col-sm-pull-10 { right: 83.33333333333334%; } .col-sm-pull-9 { right: 75%; } .col-sm-pull-8 { right: 66.66666666666666%; } .col-sm-pull-7 { right: 58.333333333333336%; } .col-sm-pull-6 { right: 50%; } .col-sm-pull-5 { right: 41.66666666666667%; } .col-sm-pull-4 { right: 33.33333333333333%; } .col-sm-pull-3 { right: 25%; } .col-sm-pull-2 { right: 16.666666666666664%; } .col-sm-pull-1 { right: 8.333333333333332%; } .col-sm-push-12 { left: 100%; } .col-sm-push-11 { left: 91.66666666666666%; } .col-sm-push-10 { left: 83.33333333333334%; } .col-sm-push-9 { left: 75%; } .col-sm-push-8 { left: 66.66666666666666%; } .col-sm-push-7 { left: 58.333333333333336%; } .col-sm-push-6 { left: 50%; } .col-sm-push-5 { left: 41.66666666666667%; } .col-sm-push-4 { left: 33.33333333333333%; } .col-sm-push-3 { left: 25%; } .col-sm-push-2 { left: 16.666666666666664%; } .col-sm-push-1 { left: 8.333333333333332%; } .col-sm-offset-12 { margin-left: 100%; } .col-sm-offset-11 { margin-left: 91.66666666666666%; } .col-sm-offset-10 { margin-left: 83.33333333333334%; } .col-sm-offset-9 { margin-left: 75%; } .col-sm-offset-8 { margin-left: 66.66666666666666%; } .col-sm-offset-7 { margin-left: 58.333333333333336%; } .col-sm-offset-6 { margin-left: 50%; } .col-sm-offset-5 { margin-left: 41.66666666666667%; } .col-sm-offset-4 { margin-left: 33.33333333333333%; } .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-2 { margin-left: 16.666666666666664%; } .col-sm-offset-1 { margin-left: 8.333333333333332%; } } @media (min-width: 992px) { .container { width: 970px; } .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11 { float: left; } .col-md-12 { width: 100%; } .col-md-11 { width: 91.66666666666666%; } .col-md-10 { width: 83.33333333333334%; } .col-md-9 { width: 75%; } .col-md-8 { width: 66.66666666666666%; } .col-md-7 { width: 58.333333333333336%; } .col-md-6 { width: 50%; } .col-md-5 { width: 41.66666666666667%; } .col-md-4 { width: 33.33333333333333%; } .col-md-3 { width: 25%; } .col-md-2 { width: 16.666666666666664%; } .col-md-1 { width: 8.333333333333332%; } .col-md-pull-12 { right: 100%; } .col-md-pull-11 { right: 91.66666666666666%; } .col-md-pull-10 { right: 83.33333333333334%; } .col-md-pull-9 { right: 75%; } .col-md-pull-8 { right: 66.66666666666666%; } .col-md-pull-7 { right: 58.333333333333336%; } .col-md-pull-6 { right: 50%; } .col-md-pull-5 { right: 41.66666666666667%; } .col-md-pull-4 { right: 33.33333333333333%; } .col-md-pull-3 { right: 25%; } .col-md-pull-2 { right: 16.666666666666664%; } .col-md-pull-1 { right: 8.333333333333332%; } .col-md-push-12 { left: 100%; } .col-md-push-11 { left: 91.66666666666666%; } .col-md-push-10 { left: 83.33333333333334%; } .col-md-push-9 { left: 75%; } .col-md-push-8 { left: 66.66666666666666%; } .col-md-push-7 { left: 58.333333333333336%; } .col-md-push-6 { left: 50%; } .col-md-push-5 { left: 41.66666666666667%; } .col-md-push-4 { left: 33.33333333333333%; } .col-md-push-3 { left: 25%; } .col-md-push-2 { left: 16.666666666666664%; } .col-md-push-1 { left: 8.333333333333332%; } .col-md-offset-12 { margin-left: 100%; } .col-md-offset-11 { margin-left: 91.66666666666666%; } .col-md-offset-10 { margin-left: 83.33333333333334%; } .col-md-offset-9 { margin-left: 75%; } .col-md-offset-8 { margin-left: 66.66666666666666%; } .col-md-offset-7 { margin-left: 58.333333333333336%; } .col-md-offset-6 { margin-left: 50%; } .col-md-offset-5 { margin-left: 41.66666666666667%; } .col-md-offset-4 { margin-left: 33.33333333333333%; } .col-md-offset-3 { margin-left: 25%; } .col-md-offset-2 { margin-left: 16.666666666666664%; } .col-md-offset-1 { margin-left: 8.333333333333332%; } } @media (min-width: 1200px) { .container { width: 1170px; } .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11 { float: left; } .col-lg-12 { width: 100%; } .col-lg-11 { width: 91.66666666666666%; } .col-lg-10 { width: 83.33333333333334%; } .col-lg-9 { width: 75%; } .col-lg-8 { width: 66.66666666666666%; } .col-lg-7 { width: 58.333333333333336%; } .col-lg-6 { width: 50%; } .col-lg-5 { width: 41.66666666666667%; } .col-lg-4 { width: 33.33333333333333%; } .col-lg-3 { width: 25%; } .col-lg-2 { width: 16.666666666666664%; } .col-lg-1 { width: 8.333333333333332%; } .col-lg-pull-12 { right: 100%; } .col-lg-pull-11 { right: 91.66666666666666%; } .col-lg-pull-10 { right: 83.33333333333334%; } .col-lg-pull-9 { right: 75%; } .col-lg-pull-8 { right: 66.66666666666666%; } .col-lg-pull-7 { right: 58.333333333333336%; } .col-lg-pull-6 { right: 50%; } .col-lg-pull-5 { right: 41.66666666666667%; } .col-lg-pull-4 { right: 33.33333333333333%; } .col-lg-pull-3 { right: 25%; } .col-lg-pull-2 { right: 16.666666666666664%; } .col-lg-pull-1 { right: 8.333333333333332%; } .col-lg-push-12 { left: 100%; } .col-lg-push-11 { left: 91.66666666666666%; } .col-lg-push-10 { left: 83.33333333333334%; } .col-lg-push-9 { left: 75%; } .col-lg-push-8 { left: 66.66666666666666%; } .col-lg-push-7 { left: 58.333333333333336%; } .col-lg-push-6 { left: 50%; } .col-lg-push-5 { left: 41.66666666666667%; } .col-lg-push-4 { left: 33.33333333333333%; } .col-lg-push-3 { left: 25%; } .col-lg-push-2 { left: 16.666666666666664%; } .col-lg-push-1 { left: 8.333333333333332%; } .col-lg-offset-12 { margin-left: 100%; } .col-lg-offset-11 { margin-left: 91.66666666666666%; } .col-lg-offset-10 { margin-left: 83.33333333333334%; } .col-lg-offset-9 { margin-left: 75%; } .col-lg-offset-8 { margin-left: 66.66666666666666%; } .col-lg-offset-7 { margin-left: 58.333333333333336%; } .col-lg-offset-6 { margin-left: 50%; } .col-lg-offset-5 { margin-left: 41.66666666666667%; } .col-lg-offset-4 { margin-left: 33.33333333333333%; } .col-lg-offset-3 { margin-left: 25%; } .col-lg-offset-2 { margin-left: 16.666666666666664%; } .col-lg-offset-1 { margin-left: 8.333333333333332%; } } table { max-width: 100%; background-color: transparent; } th { text-align: left; } .table { width: 100%; margin-bottom: 24px; } .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { padding: 8px; line-height: 1.428571429; vertical-align: top; border-top: 1px solid #dddddd; } .table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #dddddd; } .table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > th, .table > caption + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td { border-top: 0; } .table > tbody + tbody { border-top: 2px solid #dddddd; } .table .table { background-color: #f9f9f9; } .table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td { padding: 5px; } .table-bordered { border: 1px solid #dddddd; } .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border: 1px solid #dddddd; } .table-bordered > thead > tr > th, .table-bordered > thead > tr > td { border-bottom-width: 2px; } .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th { background-color: #f9f9f9; } .table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th { background-color: #f5f5f5; } table col[class*="col-"] { display: table-column; float: none; } table td[class*="col-"], table th[class*="col-"] { display: table-cell; float: none; } .table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th { background-color: #f5f5f5; } .table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > thead > tr > th.success, .table > tbody > tr > th.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > tbody > tr.success > td, .table > tfoot > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, .table > tfoot > tr.success > th { background-color: #dff0d8; } .table-hover > tbody > tr > td.success:hover, .table-hover > tbody > tr > th.success:hover, .table-hover > tbody > tr.success:hover > td, .table-hover > tbody > tr.success:hover > th { background-color: #d0e9c6; } .table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { background-color: #f2dede; } .table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr.danger:hover > th { background-color: #ebcccc; } .table > thead > tr > td.warning, .table > tbody > tr > td.warning, .table > tfoot > tr > td.warning, .table > thead > tr > th.warning, .table > tbody > tr > th.warning, .table > tfoot > tr > th.warning, .table > thead > tr.warning > td, .table > tbody > tr.warning > td, .table > tfoot > tr.warning > td, .table > thead > tr.warning > th, .table > tbody > tr.warning > th, .table > tfoot > tr.warning > th { background-color: #fcf8e3; } .table-hover > tbody > tr > td.warning:hover, .table-hover > tbody > tr > th.warning:hover, .table-hover > tbody > tr.warning:hover > td, .table-hover > tbody > tr.warning:hover > th { background-color: #faf2cc; } @media (max-width: 767px) { .table-responsive { width: 100%; margin-bottom: 18px; overflow-x: scroll; overflow-y: hidden; border: 1px solid #dddddd; -ms-overflow-style: -ms-autohiding-scrollbar; -webkit-overflow-scrolling: touch; } .table-responsive > .table { margin-bottom: 0; } .table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th, .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td { white-space: nowrap; } .table-responsive > .table-bordered { border: 0; } .table-responsive > .table-bordered > thead > tr > th:first-child, .table-responsive > .table-bordered > tbody > tr > th:first-child, .table-responsive > .table-bordered > tfoot > tr > th:first-child, .table-responsive > .table-bordered > thead > tr > td:first-child, .table-responsive > .table-bordered > tbody > tr > td:first-child, .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .table-responsive > .table-bordered > thead > tr > th:last-child, .table-responsive > .table-bordered > tbody > tr > th:last-child, .table-responsive > .table-bordered > tfoot > tr > th:last-child, .table-responsive > .table-bordered > thead > tr > td:last-child, .table-responsive > .table-bordered > tbody > tr > td:last-child, .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .table-responsive > .table-bordered > tbody > tr:last-child > th, .table-responsive > .table-bordered > tfoot > tr:last-child > th, .table-responsive > .table-bordered > tbody > tr:last-child > td, .table-responsive > .table-bordered > tfoot > tr:last-child > td { border-bottom: 0; } } fieldset { padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 24px; font-size: 25.5px; line-height: inherit; color: #333333; border: 0; border-bottom: 1px solid #e5e5e5; } label { display: inline-block; margin-bottom: 5px; font-weight: bold; } input[type="search"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; /* IE8-9 */ line-height: normal; } input[type="file"] { display: block; } select[multiple], select[size] { height: auto; } select optgroup { font-family: inherit; font-size: inherit; font-style: inherit; } input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { height: auto; } output { display: block; padding-top: 9px; font-size: 17px; line-height: 1.428571429; color: #333333; vertical-align: middle; } .form-control:-moz-placeholder { color: #999999; } .form-control::-moz-placeholder { color: #999999; } .form-control:-ms-input-placeholder { color: #999999; } .form-control::-webkit-input-placeholder { color: #999999; } .form-control { display: block; width: 100%; height: 42px; padding: 8px 12px; font-size: 17px; line-height: 1.428571429; color: #333333; vertical-align: middle; background-color: #ffffff; background-image: none; border: 1px solid #cccccc; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; } .form-control:focus { border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { cursor: not-allowed; background-color: #eeeeee; } textarea.form-control { height: auto; } .form-group { margin-bottom: 15px; } .radio, .checkbox { display: block; min-height: 24px; padding-left: 20px; margin-top: 10px; margin-bottom: 10px; vertical-align: middle; } .radio label, .checkbox label { display: inline; margin-bottom: 0; font-weight: normal; cursor: pointer; } .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { float: left; margin-left: -20px; } .radio + .radio, .checkbox + .checkbox { margin-top: -5px; } .radio-inline, .checkbox-inline { display: inline-block; padding-left: 20px; margin-bottom: 0; font-weight: normal; vertical-align: middle; cursor: pointer; } .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; } input[type="radio"][disabled], input[type="checkbox"][disabled], .radio[disabled], .radio-inline[disabled], .checkbox[disabled], .checkbox-inline[disabled], fieldset[disabled] input[type="radio"], fieldset[disabled] input[type="checkbox"], fieldset[disabled] .radio, fieldset[disabled] .radio-inline, fieldset[disabled] .checkbox, fieldset[disabled] .checkbox-inline { cursor: not-allowed; } .input-sm { height: 34px; padding: 5px 10px; font-size: 15px; line-height: 1.5; border-radius: 3px; } select.input-sm { height: 34px; line-height: 34px; } textarea.input-sm { height: auto; } .input-lg { height: 62px; padding: 14px 16px; font-size: 22px; line-height: 1.33; border-radius: 6px; } select.input-lg { height: 62px; line-height: 62px; } textarea.input-lg { height: auto; } .has-warning .help-block, .has-warning .control-label, .has-warning .radio, .has-warning .checkbox, .has-warning .radio-inline, .has-warning .checkbox-inline { color: #c09853; } .has-warning .form-control { border-color: #c09853; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-warning .form-control:focus { border-color: #a47e3c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; } .has-warning .input-group-addon { color: #c09853; background-color: #fcf8e3; border-color: #c09853; } .has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline { color: #b94a48; } .has-error .form-control { border-color: #b94a48; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-error .form-control:focus { border-color: #953b39; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; } .has-error .input-group-addon { color: #b94a48; background-color: #f2dede; border-color: #b94a48; } .has-success .help-block, .has-success .control-label, .has-success .radio, .has-success .checkbox, .has-success .radio-inline, .has-success .checkbox-inline { color: #468847; } .has-success .form-control { border-color: #468847; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-success .form-control:focus { border-color: #356635; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; } .has-success .input-group-addon { color: #468847; background-color: #dff0d8; border-color: #468847; } .form-control-static { margin-bottom: 0; } .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; } @media (min-width: 768px) { .form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .form-inline .form-control { display: inline-block; } .form-inline .radio, .form-inline .checkbox { display: inline-block; padding-left: 0; margin-top: 0; margin-bottom: 0; } .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { float: none; margin-left: 0; } } .form-horizontal .control-label, .form-horizontal .radio, .form-horizontal .checkbox, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline { padding-top: 9px; margin-top: 0; margin-bottom: 0; } .form-horizontal .form-group { margin-right: -15px; margin-left: -15px; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-control-static { padding-top: 9px; } @media (min-width: 768px) { .form-horizontal .control-label { text-align: right; } } .btn { display: inline-block; padding: 8px 12px; margin-bottom: 0; font-size: 17px; font-weight: normal; line-height: 1.428571429; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; background-image: none; border: 1px solid transparent; border-radius: 4px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } .btn:focus { outline: thin dotted #333; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn:hover, .btn:focus { color: #ffffff; text-decoration: none; } .btn:active, .btn.active { background-image: none; outline: 0; -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { pointer-events: none; cursor: not-allowed; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; } .btn-default { color: #ffffff; background-color: #333333; border-color: #333333; } .btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { color: #ffffff; background-color: #1f1f1f; border-color: #141414; } .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { background-image: none; } .btn-default.disabled, .btn-default[disabled], fieldset[disabled] .btn-default, .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled:active, .btn-default[disabled]:active, fieldset[disabled] .btn-default:active, .btn-default.disabled.active, .btn-default[disabled].active, fieldset[disabled] .btn-default.active { background-color: #333333; border-color: #333333; } .btn-primary { color: #ffffff; background-color: #428bca; border-color: #428bca; } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { color: #ffffff; background-color: #3276b1; border-color: #2d6ca2; } .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { background-image: none; } .btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active { background-color: #428bca; border-color: #428bca; } .btn-warning { color: #ffffff; background-color: #f0ad4e; border-color: #f0ad4e; } .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { color: #ffffff; background-color: #ed9c28; border-color: #eb9316; } .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { background-image: none; } .btn-warning.disabled, .btn-warning[disabled], fieldset[disabled] .btn-warning, .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled:active, .btn-warning[disabled]:active, fieldset[disabled] .btn-warning:active, .btn-warning.disabled.active, .btn-warning[disabled].active, fieldset[disabled] .btn-warning.active { background-color: #f0ad4e; border-color: #f0ad4e; } .btn-danger { color: #ffffff; background-color: #d9534f; border-color: #d9534f; } .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { color: #ffffff; background-color: #d2322d; border-color: #c12e2a; } .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { background-image: none; } .btn-danger.disabled, .btn-danger[disabled], fieldset[disabled] .btn-danger, .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled:active, .btn-danger[disabled]:active, fieldset[disabled] .btn-danger:active, .btn-danger.disabled.active, .btn-danger[disabled].active, fieldset[disabled] .btn-danger.active { background-color: #d9534f; border-color: #d9534f; } .btn-success { color: #ffffff; background-color: #5cb85c; border-color: #5cb85c; } .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { color: #ffffff; background-color: #47a447; border-color: #419641; } .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { background-image: none; } .btn-success.disabled, .btn-success[disabled], fieldset[disabled] .btn-success, .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled:active, .btn-success[disabled]:active, fieldset[disabled] .btn-success:active, .btn-success.disabled.active, .btn-success[disabled].active, fieldset[disabled] .btn-success.active { background-color: #5cb85c; border-color: #5cb85c; } .btn-info { color: #ffffff; background-color: #5bc0de; border-color: #5bc0de; } .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { color: #ffffff; background-color: #39b3d7; border-color: #2aabd2; } .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { background-image: none; } .btn-info.disabled, .btn-info[disabled], fieldset[disabled] .btn-info, .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled:active, .btn-info[disabled]:active, fieldset[disabled] .btn-info:active, .btn-info.disabled.active, .btn-info[disabled].active, fieldset[disabled] .btn-info.active { background-color: #5bc0de; border-color: #5bc0de; } .btn-link { font-weight: normal; color: #428bca; cursor: pointer; border-radius: 0; } .btn-link, .btn-link:active, .btn-link[disabled], fieldset[disabled] .btn-link { background-color: transparent; -webkit-box-shadow: none; box-shadow: none; } .btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { border-color: transparent; } .btn-link:hover, .btn-link:focus { color: #428bca; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { color: #999999; text-decoration: none; } .btn-lg { padding: 14px 16px; font-size: 22px; line-height: 1.33; border-radius: 6px; } .btn-sm, .btn-xs { padding: 5px 10px; font-size: 15px; line-height: 1.5; border-radius: 3px; } .btn-xs { padding: 1px 5px; } .btn-block { display: block; width: 100%; padding-right: 0; padding-left: 0; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { display: none; } .collapse.in { display: block; } .collapsing { position: relative; height: 0; overflow: hidden; -webkit-transition: height 0.35s ease; transition: height 0.35s ease; } @font-face { font-family: 'Glyphicons Halflings'; src: url('../fonts/glyphicons-halflings-regular.eot'); src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); } .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; -webkit-font-smoothing: antialiased; font-style: normal; font-weight: normal; line-height: 1; -moz-osx-font-smoothing: grayscale; } .glyphicon:empty { width: 1em; } .glyphicon-asterisk:before { content: "\2a"; } .glyphicon-plus:before { content: "\2b"; } .glyphicon-euro:before { content: "\20ac"; } .glyphicon-minus:before { content: "\2212"; } .glyphicon-cloud:before { content: "\2601"; } .glyphicon-envelope:before { content: "\2709"; } .glyphicon-pencil:before { content: "\270f"; } .glyphicon-glass:before { content: "\e001"; } .glyphicon-music:before { content: "\e002"; } .glyphicon-search:before { content: "\e003"; } .glyphicon-heart:before { content: "\e005"; } .glyphicon-star:before { content: "\e006"; } .glyphicon-star-empty:before { content: "\e007"; } .glyphicon-user:before { content: "\e008"; } .glyphicon-film:before { content: "\e009"; } .glyphicon-th-large:before { content: "\e010"; } .glyphicon-th:before { content: "\e011"; } .glyphicon-th-list:before { content: "\e012"; } .glyphicon-ok:before { content: "\e013"; } .glyphicon-remove:before { content: "\e014"; } .glyphicon-zoom-in:before { content: "\e015"; } .glyphicon-zoom-out:before { content: "\e016"; } .glyphicon-off:before { content: "\e017"; } .glyphicon-signal:before { content: "\e018"; } .glyphicon-cog:before { content: "\e019"; } .glyphicon-trash:before { content: "\e020"; } .glyphicon-home:before { content: "\e021"; } .glyphicon-file:before { content: "\e022"; } .glyphicon-time:before { content: "\e023"; } .glyphicon-road:before { content: "\e024"; } .glyphicon-download-alt:before { content: "\e025"; } .glyphicon-download:before { content: "\e026"; } .glyphicon-upload:before { content: "\e027"; } .glyphicon-inbox:before { content: "\e028"; } .glyphicon-play-circle:before { content: "\e029"; } .glyphicon-repeat:before { content: "\e030"; } .glyphicon-refresh:before { content: "\e031"; } .glyphicon-list-alt:before { content: "\e032"; } .glyphicon-lock:before { content: "\e033"; } .glyphicon-flag:before { content: "\e034"; } .glyphicon-headphones:before { content: "\e035"; } .glyphicon-volume-off:before { content: "\e036"; } .glyphicon-volume-down:before { content: "\e037"; } .glyphicon-volume-up:before { content: "\e038"; } .glyphicon-qrcode:before { content: "\e039"; } .glyphicon-barcode:before { content: "\e040"; } .glyphicon-tag:before { content: "\e041"; } .glyphicon-tags:before { content: "\e042"; } .glyphicon-book:before { content: "\e043"; } .glyphicon-bookmark:before { content: "\e044"; } .glyphicon-print:before { content: "\e045"; } .glyphicon-camera:before { content: "\e046"; } .glyphicon-font:before { content: "\e047"; } .glyphicon-bold:before { content: "\e048"; } .glyphicon-italic:before { content: "\e049"; } .glyphicon-text-height:before { content: "\e050"; } .glyphicon-text-width:before { content: "\e051"; } .glyphicon-align-left:before { content: "\e052"; } .glyphicon-align-center:before { content: "\e053"; } .glyphicon-align-right:before { content: "\e054"; } .glyphicon-align-justify:before { content: "\e055"; } .glyphicon-list:before { content: "\e056"; } .glyphicon-indent-left:before { content: "\e057"; } .glyphicon-indent-right:before { content: "\e058"; } .glyphicon-facetime-video:before { content: "\e059"; } .glyphicon-picture:before { content: "\e060"; } .glyphicon-map-marker:before { content: "\e062"; } .glyphicon-adjust:before { content: "\e063"; } .glyphicon-tint:before { content: "\e064"; } .glyphicon-edit:before { content: "\e065"; } .glyphicon-share:before { content: "\e066"; } .glyphicon-check:before { content: "\e067"; } .glyphicon-move:before { content: "\e068"; } .glyphicon-step-backward:before { content: "\e069"; } .glyphicon-fast-backward:before { content: "\e070"; } .glyphicon-backward:before { content: "\e071"; } .glyphicon-play:before { content: "\e072"; } .glyphicon-pause:before { content: "\e073"; } .glyphicon-stop:before { content: "\e074"; } .glyphicon-forward:before { content: "\e075"; } .glyphicon-fast-forward:before { content: "\e076"; } .glyphicon-step-forward:before { content: "\e077"; } .glyphicon-eject:before { content: "\e078"; } .glyphicon-chevron-left:before { content: "\e079"; } .glyphicon-chevron-right:before { content: "\e080"; } .glyphicon-plus-sign:before { content: "\e081"; } .glyphicon-minus-sign:before { content: "\e082"; } .glyphicon-remove-sign:before { content: "\e083"; } .glyphicon-ok-sign:before { content: "\e084"; } .glyphicon-question-sign:before { content: "\e085"; } .glyphicon-info-sign:before { content: "\e086"; } .glyphicon-screenshot:before { content: "\e087"; } .glyphicon-remove-circle:before { content: "\e088"; } .glyphicon-ok-circle:before { content: "\e089"; } .glyphicon-ban-circle:before { content: "\e090"; } .glyphicon-arrow-left:before { content: "\e091"; } .glyphicon-arrow-right:before { content: "\e092"; } .glyphicon-arrow-up:before { content: "\e093"; } .glyphicon-arrow-down:before { content: "\e094"; } .glyphicon-share-alt:before { content: "\e095"; } .glyphicon-resize-full:before { content: "\e096"; } .glyphicon-resize-small:before { content: "\e097"; } .glyphicon-exclamation-sign:before { content: "\e101"; } .glyphicon-gift:before { content: "\e102"; } .glyphicon-leaf:before { content: "\e103"; } .glyphicon-fire:before { content: "\e104"; } .glyphicon-eye-open:before { content: "\e105"; } .glyphicon-eye-close:before { content: "\e106"; } .glyphicon-warning-sign:before { content: "\e107"; } .glyphicon-plane:before { content: "\e108"; } .glyphicon-calendar:before { content: "\e109"; } .glyphicon-random:before { content: "\e110"; } .glyphicon-comment:before { content: "\e111"; } .glyphicon-magnet:before { content: "\e112"; } .glyphicon-chevron-up:before { content: "\e113"; } .glyphicon-chevron-down:before { content: "\e114"; } .glyphicon-retweet:before { content: "\e115"; } .glyphicon-shopping-cart:before { content: "\e116"; } .glyphicon-folder-close:before { content: "\e117"; } .glyphicon-folder-open:before { content: "\e118"; } .glyphicon-resize-vertical:before { content: "\e119"; } .glyphicon-resize-horizontal:before { content: "\e120"; } .glyphicon-hdd:before { content: "\e121"; } .glyphicon-bullhorn:before { content: "\e122"; } .glyphicon-bell:before { content: "\e123"; } .glyphicon-certificate:before { content: "\e124"; } .glyphicon-thumbs-up:before { content: "\e125"; } .glyphicon-thumbs-down:before { content: "\e126"; } .glyphicon-hand-right:before { content: "\e127"; } .glyphicon-hand-left:before { content: "\e128"; } .glyphicon-hand-up:before { content: "\e129"; } .glyphicon-hand-down:before { content: "\e130"; } .glyphicon-circle-arrow-right:before { content: "\e131"; } .glyphicon-circle-arrow-left:before { content: "\e132"; } .glyphicon-circle-arrow-up:before { content: "\e133"; } .glyphicon-circle-arrow-down:before { content: "\e134"; } .glyphicon-globe:before { content: "\e135"; } .glyphicon-wrench:before { content: "\e136"; } .glyphicon-tasks:before { content: "\e137"; } .glyphicon-filter:before { content: "\e138"; } .glyphicon-briefcase:before { content: "\e139"; } .glyphicon-fullscreen:before { content: "\e140"; } .glyphicon-dashboard:before { content: "\e141"; } .glyphicon-paperclip:before { content: "\e142"; } .glyphicon-heart-empty:before { content: "\e143"; } .glyphicon-link:before { content: "\e144"; } .glyphicon-phone:before { content: "\e145"; } .glyphicon-pushpin:before { content: "\e146"; } .glyphicon-usd:before { content: "\e148"; } .glyphicon-gbp:before { content: "\e149"; } .glyphicon-sort:before { content: "\e150"; } .glyphicon-sort-by-alphabet:before { content: "\e151"; } .glyphicon-sort-by-alphabet-alt:before { content: "\e152"; } .glyphicon-sort-by-order:before { content: "\e153"; } .glyphicon-sort-by-order-alt:before { content: "\e154"; } .glyphicon-sort-by-attributes:before { content: "\e155"; } .glyphicon-sort-by-attributes-alt:before { content: "\e156"; } .glyphicon-unchecked:before { content: "\e157"; } .glyphicon-expand:before { content: "\e158"; } .glyphicon-collapse-down:before { content: "\e159"; } .glyphicon-collapse-up:before { content: "\e160"; } .glyphicon-log-in:before { content: "\e161"; } .glyphicon-flash:before { content: "\e162"; } .glyphicon-log-out:before { content: "\e163"; } .glyphicon-new-window:before { content: "\e164"; } .glyphicon-record:before { content: "\e165"; } .glyphicon-save:before { content: "\e166"; } .glyphicon-open:before { content: "\e167"; } .glyphicon-saved:before { content: "\e168"; } .glyphicon-import:before { content: "\e169"; } .glyphicon-export:before { content: "\e170"; } .glyphicon-send:before { content: "\e171"; } .glyphicon-floppy-disk:before { content: "\e172"; } .glyphicon-floppy-saved:before { content: "\e173"; } .glyphicon-floppy-remove:before { content: "\e174"; } .glyphicon-floppy-save:before { content: "\e175"; } .glyphicon-floppy-open:before { content: "\e176"; } .glyphicon-credit-card:before { content: "\e177"; } .glyphicon-transfer:before { content: "\e178"; } .glyphicon-cutlery:before { content: "\e179"; } .glyphicon-header:before { content: "\e180"; } .glyphicon-compressed:before { content: "\e181"; } .glyphicon-earphone:before { content: "\e182"; } .glyphicon-phone-alt:before { content: "\e183"; } .glyphicon-tower:before { content: "\e184"; } .glyphicon-stats:before { content: "\e185"; } .glyphicon-sd-video:before { content: "\e186"; } .glyphicon-hd-video:before { content: "\e187"; } .glyphicon-subtitles:before { content: "\e188"; } .glyphicon-sound-stereo:before { content: "\e189"; } .glyphicon-sound-dolby:before { content: "\e190"; } .glyphicon-sound-5-1:before { content: "\e191"; } .glyphicon-sound-6-1:before { content: "\e192"; } .glyphicon-sound-7-1:before { content: "\e193"; } .glyphicon-copyright-mark:before { content: "\e194"; } .glyphicon-registration-mark:before { content: "\e195"; } .glyphicon-cloud-download:before { content: "\e197"; } .glyphicon-cloud-upload:before { content: "\e198"; } .glyphicon-tree-conifer:before { content: "\e199"; } .glyphicon-tree-deciduous:before { content: "\e200"; } .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px solid #000000; border-right: 4px solid transparent; border-bottom: 0 dotted; border-left: 4px solid transparent; } .dropdown { position: relative; } .dropdown-toggle:focus { outline: 0; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; font-size: 17px; list-style: none; background-color: #ffffff; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); background-clip: padding-box; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { height: 1px; margin: 11px 0; overflow: hidden; background-color: #e5e5e5; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.428571429; color: #333333; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { color: #ffffff; text-decoration: none; background-color: #428bca; } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #ffffff; text-decoration: none; background-color: #428bca; outline: 0; } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #999999; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { text-decoration: none; cursor: not-allowed; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .open > .dropdown-menu { display: block; } .open > a { outline: 0; } .dropdown-header { display: block; padding: 3px 20px; font-size: 15px; line-height: 1.428571429; color: #999999; } .dropdown-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 990; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { border-top: 0 dotted; border-bottom: 4px solid #000000; content: ""; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 1px; } @media (min-width: 768px) { .navbar-right .dropdown-menu { right: 0; left: auto; } } .btn-default .caret { border-top-color: #ffffff; } .btn-primary .caret, .btn-success .caret, .btn-warning .caret, .btn-danger .caret, .btn-info .caret { border-top-color: #fff; } .dropup .btn-default .caret { border-bottom-color: #ffffff; } .dropup .btn-primary .caret, .dropup .btn-success .caret, .dropup .btn-warning .caret, .dropup .btn-danger .caret, .dropup .btn-info .caret { border-bottom-color: #fff; } .btn-group, .btn-group-vertical { position: relative; display: inline-block; vertical-align: middle; } .btn-group > .btn, .btn-group-vertical > .btn { position: relative; float: left; } .btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:focus, .btn-group-vertical > .btn:focus, .btn-group > .btn:active, .btn-group-vertical > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn.active { z-index: 2; } .btn-group > .btn:focus, .btn-group-vertical > .btn:focus { outline: none; } .btn-group .btn + .btn, .btn-group .btn + .btn-group, .btn-group .btn-group + .btn, .btn-group .btn-group + .btn-group { margin-left: -1px; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar .btn-group { float: left; } .btn-toolbar > .btn + .btn, .btn-toolbar > .btn-group + .btn, .btn-toolbar > .btn + .btn-group, .btn-toolbar > .btn-group + .btn-group { margin-left: 5px; } .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; } .btn-group > .btn:first-child { margin-left: 0; } .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group > .btn-group { float: left; } .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group > .btn-group:first-child > .btn:last-child, .btn-group > .btn-group:first-child > .dropdown-toggle { border-top-right-radius: 0; border-bottom-right-radius: 0; } .btn-group > .btn-group:last-child > .btn:first-child { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group-xs > .btn { padding: 5px 10px; padding: 1px 5px; font-size: 15px; line-height: 1.5; border-radius: 3px; } .btn-group-sm > .btn { padding: 5px 10px; font-size: 15px; line-height: 1.5; border-radius: 3px; } .btn-group-lg > .btn { padding: 14px 16px; font-size: 22px; line-height: 1.33; border-radius: 6px; } .btn-group > .btn + .dropdown-toggle { padding-right: 8px; padding-left: 8px; } .btn-group > .btn-lg + .dropdown-toggle { padding-right: 12px; padding-left: 12px; } .btn-group.open .dropdown-toggle { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn-group.open .dropdown-toggle.btn-link { -webkit-box-shadow: none; box-shadow: none; } .btn .caret { margin-left: 0; } .btn-lg .caret { border-width: 5px 5px 0; border-bottom-width: 0; } .dropup .btn-lg .caret { border-width: 0 5px 5px; } .btn-group-vertical > .btn, .btn-group-vertical > .btn-group { display: block; float: none; width: 100%; max-width: 100%; } .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after { display: table; content: " "; } .btn-group-vertical > .btn-group:after { clear: both; } .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after { display: table; content: " "; } .btn-group-vertical > .btn-group:after { clear: both; } .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after { display: table; content: " "; } .btn-group-vertical > .btn-group:after { clear: both; } .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after { display: table; content: " "; } .btn-group-vertical > .btn-group:after { clear: both; } .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after { display: table; content: " "; } .btn-group-vertical > .btn-group:after { clear: both; } .btn-group-vertical > .btn-group > .btn { float: none; } .btn-group-vertical > .btn + .btn, .btn-group-vertical > .btn + .btn-group, .btn-group-vertical > .btn-group + .btn, .btn-group-vertical > .btn-group + .btn-group { margin-top: -1px; margin-left: 0; } .btn-group-vertical > .btn:not(:first-child):not(:last-child) { border-radius: 0; } .btn-group-vertical > .btn:first-child:not(:last-child) { border-top-right-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn:last-child:not(:first-child) { border-top-right-radius: 0; border-bottom-left-radius: 4px; border-top-left-radius: 0; } .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group-vertical > .btn-group:first-child > .btn:last-child, .btn-group-vertical > .btn-group:first-child > .dropdown-toggle { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn-group:last-child > .btn:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .btn-group-justified { display: table; width: 100%; border-collapse: separate; table-layout: fixed; } .btn-group-justified .btn { display: table-cell; float: none; width: 1%; } [data-toggle="buttons"] > .btn > input[type="radio"], [data-toggle="buttons"] > .btn > input[type="checkbox"] { display: none; } .input-group { position: relative; display: table; border-collapse: separate; } .input-group.col { float: none; padding-right: 0; padding-left: 0; } .input-group .form-control { width: 100%; margin-bottom: 0; } .input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn { height: 62px; padding: 14px 16px; font-size: 22px; line-height: 1.33; border-radius: 6px; } select.input-group-lg > .form-control, select.input-group-lg > .input-group-addon, select.input-group-lg > .input-group-btn > .btn { height: 62px; line-height: 62px; } textarea.input-group-lg > .form-control, textarea.input-group-lg > .input-group-addon, textarea.input-group-lg > .input-group-btn > .btn { height: auto; } .input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { height: 34px; padding: 5px 10px; font-size: 15px; line-height: 1.5; border-radius: 3px; } select.input-group-sm > .form-control, select.input-group-sm > .input-group-addon, select.input-group-sm > .input-group-btn > .btn { height: 34px; line-height: 34px; } textarea.input-group-sm > .form-control, textarea.input-group-sm > .input-group-addon, textarea.input-group-sm > .input-group-btn > .btn { height: auto; } .input-group-addon, .input-group-btn, .input-group .form-control { display: table-cell; } .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; } .input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; } .input-group-addon { padding: 8px 12px; font-size: 17px; font-weight: normal; line-height: 1; color: #333333; text-align: center; background-color: #eeeeee; border: 1px solid #cccccc; border-radius: 4px; } .input-group-addon.input-sm { padding: 5px 10px; font-size: 15px; border-radius: 3px; } .input-group-addon.input-lg { padding: 14px 16px; font-size: 22px; border-radius: 6px; } .input-group-addon input[type="radio"], .input-group-addon input[type="checkbox"] { margin-top: 0; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .input-group-addon:first-child { border-right: 0; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .input-group-addon:last-child { border-left: 0; } .input-group-btn { position: relative; white-space: nowrap; } .input-group-btn:first-child > .btn { margin-right: -1px; } .input-group-btn:last-child > .btn { margin-left: -1px; } .input-group-btn > .btn { position: relative; } .input-group-btn > .btn + .btn { margin-left: -4px; } .input-group-btn > .btn:hover, .input-group-btn > .btn:active { z-index: 2; } .nav { padding-left: 0; margin-bottom: 0; list-style: none; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav > li { position: relative; display: block; } .nav > li > a { position: relative; display: block; padding: 10px 15px; } .nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #eeeeee; } .nav > li.disabled > a { color: #999999; } .nav > li.disabled > a:hover, .nav > li.disabled > a:focus { color: #999999; text-decoration: none; cursor: not-allowed; background-color: transparent; } .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { background-color: #eeeeee; border-color: #428bca; } .nav .open > a .caret, .nav .open > a:hover .caret, .nav .open > a:focus .caret { border-top-color: #428bca; border-bottom-color: #428bca; } .nav .nav-divider { height: 1px; margin: 11px 0; overflow: hidden; background-color: #e5e5e5; } .nav > li > a > img { max-width: none; } .nav-tabs { border-bottom: 1px solid #dddddd; } .nav-tabs > li { float: left; margin-bottom: -1px; } .nav-tabs > li > a { margin-right: 2px; line-height: 1.428571429; border: 1px solid transparent; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover { border-color: #eeeeee #eeeeee #dddddd; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: #555555; cursor: default; background-color: #f9f9f9; border: 1px solid #dddddd; border-bottom-color: transparent; } .nav-tabs.nav-justified { width: 100%; border-bottom: 0; } .nav-tabs.nav-justified > li { float: none; } .nav-tabs.nav-justified > li > a { margin-bottom: 5px; text-align: center; } .nav-tabs.nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-tabs.nav-justified > li { display: table-cell; width: 1%; } .nav-tabs.nav-justified > li > a { margin-bottom: 0; } } .nav-tabs.nav-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border: 1px solid #dddddd; } @media (min-width: 768px) { .nav-tabs.nav-justified > li > a { border-bottom: 1px solid #dddddd; border-radius: 4px 4px 0 0; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border-bottom-color: #f9f9f9; } } .nav-pills > li { float: left; } .nav-pills > li > a { border-radius: 4px; } .nav-pills > li + li { margin-left: 2px; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: #ffffff; background-color: #428bca; } .nav-pills > li.active > a .caret, .nav-pills > li.active > a:hover .caret, .nav-pills > li.active > a:focus .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .nav-stacked > li { float: none; } .nav-stacked > li + li { margin-top: 2px; margin-left: 0; } .nav-justified { width: 100%; } .nav-justified > li { float: none; } .nav-justified > li > a { margin-bottom: 5px; text-align: center; } .nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-justified > li { display: table-cell; width: 1%; } .nav-justified > li > a { margin-bottom: 0; } } .nav-tabs-justified { border-bottom: 0; } .nav-tabs-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border: 1px solid #dddddd; } @media (min-width: 768px) { .nav-tabs-justified > li > a { border-bottom: 1px solid #dddddd; border-radius: 4px 4px 0 0; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border-bottom-color: #f9f9f9; } } .tab-content > .tab-pane { display: none; } .tab-content > .active { display: block; } .nav .caret { border-top-color: #428bca; border-bottom-color: #428bca; } .nav a:hover .caret { border-top-color: #428bca; border-bottom-color: #428bca; } .nav-tabs .dropdown-menu { margin-top: -1px; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar { position: relative; min-height: 50px; margin-bottom: 24px; border: 1px solid transparent; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } @media (min-width: 768px) { .navbar { border-radius: 4px; } } .navbar-header:before, .navbar-header:after { display: table; content: " "; } .navbar-header:after { clear: both; } .navbar-header:before, .navbar-header:after { display: table; content: " "; } .navbar-header:after { clear: both; } .navbar-header:before, .navbar-header:after { display: table; content: " "; } .navbar-header:after { clear: both; } .navbar-header:before, .navbar-header:after { display: table; content: " "; } .navbar-header:after { clear: both; } .navbar-header:before, .navbar-header:after { display: table; content: " "; } .navbar-header:after { clear: both; } @media (min-width: 768px) { .navbar-header { float: left; } } .navbar-collapse { max-height: 340px; padding-right: 15px; padding-left: 15px; overflow-x: visible; border-top: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); -webkit-overflow-scrolling: touch; } .navbar-collapse:before, .navbar-collapse:after { display: table; content: " "; } .navbar-collapse:after { clear: both; } .navbar-collapse:before, .navbar-collapse:after { display: table; content: " "; } .navbar-collapse:after { clear: both; } .navbar-collapse:before, .navbar-collapse:after { display: table; content: " "; } .navbar-collapse:after { clear: both; } .navbar-collapse:before, .navbar-collapse:after { display: table; content: " "; } .navbar-collapse:after { clear: both; } .navbar-collapse:before, .navbar-collapse:after { display: table; content: " "; } .navbar-collapse:after { clear: both; } .navbar-collapse.in { overflow-y: auto; } @media (min-width: 768px) { .navbar-collapse { width: auto; border-top: 0; box-shadow: none; } .navbar-collapse.collapse { display: block !important; height: auto !important; padding-bottom: 0; overflow: visible !important; } .navbar-collapse.in { overflow-y: auto; } .navbar-collapse .navbar-nav.navbar-left:first-child { margin-left: -15px; } .navbar-collapse .navbar-nav.navbar-right:last-child { margin-right: -15px; } .navbar-collapse .navbar-text:last-child { margin-right: 0; } } .container > .navbar-header, .container > .navbar-collapse { margin-right: -15px; margin-left: -15px; } @media (min-width: 768px) { .container > .navbar-header, .container > .navbar-collapse { margin-right: 0; margin-left: 0; } } .navbar-static-top { z-index: 1000; border-width: 0 0 1px; } @media (min-width: 768px) { .navbar-static-top { border-radius: 0; } } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; } @media (min-width: 768px) { .navbar-fixed-top, .navbar-fixed-bottom { border-radius: 0; } } .navbar-fixed-top { top: 0; border-width: 0 0 1px; } .navbar-fixed-bottom { bottom: 0; margin-bottom: 0; border-width: 1px 0 0; } .navbar-brand { float: left; padding: 13px 15px; font-size: 22px; line-height: 24px; } .navbar-brand:hover, .navbar-brand:focus { text-decoration: none; } @media (min-width: 768px) { .navbar > .container .navbar-brand { margin-left: -15px; } } .navbar-toggle { position: relative; float: right; padding: 9px 10px; margin-top: 8px; margin-right: 15px; margin-bottom: 8px; background-color: transparent; border: 1px solid transparent; border-radius: 4px; } .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; } .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; } @media (min-width: 768px) { .navbar-toggle { display: none; } } .navbar-nav { margin: 6.5px -15px; } .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 24px; } @media (max-width: 767px) { .navbar-nav .open .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; box-shadow: none; } .navbar-nav .open .dropdown-menu > li > a, .navbar-nav .open .dropdown-menu .dropdown-header { padding: 5px 15px 5px 25px; } .navbar-nav .open .dropdown-menu > li > a { line-height: 24px; } .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-nav .open .dropdown-menu > li > a:focus { background-image: none; } } @media (min-width: 768px) { .navbar-nav { float: left; margin: 0; } .navbar-nav > li { float: left; } .navbar-nav > li > a { padding-top: 13px; padding-bottom: 13px; } } @media (min-width: 768px) { .navbar-left { float: left !important; } .navbar-right { float: right !important; } } .navbar-form { padding: 10px 15px; margin-top: 4px; margin-right: -15px; margin-bottom: 4px; margin-left: -15px; border-top: 1px solid transparent; border-bottom: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); } @media (min-width: 768px) { .navbar-form .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .navbar-form .form-control { display: inline-block; } .navbar-form .radio, .navbar-form .checkbox { display: inline-block; padding-left: 0; margin-top: 0; margin-bottom: 0; } .navbar-form .radio input[type="radio"], .navbar-form .checkbox input[type="checkbox"] { float: none; margin-left: 0; } } @media (max-width: 767px) { .navbar-form .form-group { margin-bottom: 5px; } } @media (min-width: 768px) { .navbar-form { width: auto; padding-top: 0; padding-bottom: 0; margin-right: 0; margin-left: 0; border: 0; -webkit-box-shadow: none; box-shadow: none; } } .navbar-nav > li > .dropdown-menu { margin-top: 0; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .navbar-nav.pull-right > li > .dropdown-menu, .navbar-nav > li > .dropdown-menu.pull-right { right: 0; left: auto; } .navbar-btn { margin-top: 4px; margin-bottom: 4px; } .navbar-text { float: left; margin-top: 13px; margin-bottom: 13px; } @media (min-width: 768px) { .navbar-text { margin-right: 15px; margin-left: 15px; } } .navbar-default { background-color: #f9f9f9; border-color: #e8e8e8; } .navbar-default .navbar-brand { color: #555555; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-text { color: #555555; } .navbar-default .navbar-nav > li > a { color: #555555; } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { color: #333333; background-color: #e0e0e0; } .navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-toggle { border-color: #dddddd; } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: #dddddd; } .navbar-default .navbar-toggle .icon-bar { background-color: #cccccc; } .navbar-default .navbar-collapse, .navbar-default .navbar-form { border-color: #e8e8e8; } .navbar-default .navbar-nav > .dropdown > a:hover .caret, .navbar-default .navbar-nav > .dropdown > a:focus .caret { border-top-color: #333333; border-bottom-color: #333333; } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { color: #333333; background-color: #e0e0e0; } .navbar-default .navbar-nav > .open > a .caret, .navbar-default .navbar-nav > .open > a:hover .caret, .navbar-default .navbar-nav > .open > a:focus .caret { border-top-color: #333333; border-bottom-color: #333333; } .navbar-default .navbar-nav > .dropdown > a .caret { border-top-color: #555555; border-bottom-color: #555555; } @media (max-width: 767px) { .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #555555; } .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #333333; background-color: #e0e0e0; } .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #333333; background-color: transparent; } } .navbar-default .navbar-link { color: #555555; } .navbar-default .navbar-link:hover { color: #333333; } .navbar-inverse { background-color: #333333; border-color: #1a1a1a; } .navbar-inverse .navbar-brand { color: #999999; } .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-text { color: #999999; } .navbar-inverse .navbar-nav > li > a { color: #999999; } .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { color: #ffffff; background-color: #1a1a1a; } .navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { color: #cccccc; background-color: transparent; } .navbar-inverse .navbar-toggle { border-color: #333333; } .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { background-color: #333333; } .navbar-inverse .navbar-toggle .icon-bar { background-color: #ffffff; } .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { border-color: #212121; } .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { color: #ffffff; background-color: #1a1a1a; } .navbar-inverse .navbar-nav > .dropdown > a:hover .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } .navbar-inverse .navbar-nav > .dropdown > a .caret { border-top-color: #999999; border-bottom-color: #999999; } .navbar-inverse .navbar-nav > .open > a .caret, .navbar-inverse .navbar-nav > .open > a:hover .caret, .navbar-inverse .navbar-nav > .open > a:focus .caret { border-top-color: #ffffff; border-bottom-color: #ffffff; } @media (max-width: 767px) { .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { border-color: #1a1a1a; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #999999; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { color: #ffffff; background-color: #1a1a1a; } .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #cccccc; background-color: transparent; } } .navbar-inverse .navbar-link { color: #999999; } .navbar-inverse .navbar-link:hover { color: #ffffff; } .breadcrumb { padding: 8px 15px; margin-bottom: 24px; list-style: none; background-color: #f5f5f5; border-radius: 4px; } .breadcrumb > li { display: inline-block; } .breadcrumb > li + li:before { padding: 0 5px; color: #cccccc; content: "/\00a0"; } .breadcrumb > .active { color: #999999; } .pagination { display: inline-block; padding-left: 0; margin: 24px 0; border-radius: 4px; } .pagination > li { display: inline; } .pagination > li > a, .pagination > li > span { position: relative; float: left; padding: 8px 12px; margin-left: -1px; line-height: 1.428571429; text-decoration: none; background-color: #ffffff; border: 1px solid #dddddd; } .pagination > li:first-child > a, .pagination > li:first-child > span { margin-left: 0; border-bottom-left-radius: 4px; border-top-left-radius: 4px; } .pagination > li:last-child > a, .pagination > li:last-child > span { border-top-right-radius: 4px; border-bottom-right-radius: 4px; } .pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus, .pagination > li > span:focus { background-color: #eeeeee; } .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { z-index: 2; color: #999999; cursor: default; background-color: #f5f5f5; border-color: #f5f5f5; } .pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus { color: #999999; cursor: not-allowed; background-color: #ffffff; border-color: #dddddd; } .pagination-lg > li > a, .pagination-lg > li > span { padding: 14px 16px; font-size: 22px; } .pagination-lg > li:first-child > a, .pagination-lg > li:first-child > span { border-bottom-left-radius: 6px; border-top-left-radius: 6px; } .pagination-lg > li:last-child > a, .pagination-lg > li:last-child > span { border-top-right-radius: 6px; border-bottom-right-radius: 6px; } .pagination-sm > li > a, .pagination-sm > li > span { padding: 5px 10px; font-size: 15px; } .pagination-sm > li:first-child > a, .pagination-sm > li:first-child > span { border-bottom-left-radius: 3px; border-top-left-radius: 3px; } .pagination-sm > li:last-child > a, .pagination-sm > li:last-child > span { border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .pager { padding-left: 0; margin: 24px 0; text-align: center; list-style: none; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager li { display: inline; } .pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 15px; } .pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: #eeeeee; } .pager .next > a, .pager .next > span { float: right; } .pager .previous > a, .pager .previous > span { float: left; } .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span { color: #999999; cursor: not-allowed; background-color: #ffffff; } .label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: bold; line-height: 1; color: #ffffff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; } .label[href]:hover, .label[href]:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .label:empty { display: none; } .label-default { background-color: #333333; } .label-default[href]:hover, .label-default[href]:focus { background-color: #1a1a1a; } .label-primary { background-color: #428bca; } .label-primary[href]:hover, .label-primary[href]:focus { background-color: #3071a9; } .label-success { background-color: #5cb85c; } .label-success[href]:hover, .label-success[href]:focus { background-color: #449d44; } .label-info { background-color: #5bc0de; } .label-info[href]:hover, .label-info[href]:focus { background-color: #31b0d5; } .label-warning { background-color: #f0ad4e; } .label-warning[href]:hover, .label-warning[href]:focus { background-color: #ec971f; } .label-danger { background-color: #d9534f; } .label-danger[href]:hover, .label-danger[href]:focus { background-color: #c9302c; } .badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 15px; font-weight: bold; line-height: 1; color: #ffffff; text-align: center; white-space: nowrap; vertical-align: baseline; background-color: #999999; border-radius: 10px; } .badge:empty { display: none; } a.badge:hover, a.badge:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .btn .badge { position: relative; top: -1px; } a.list-group-item.active > .badge, .nav-pills > .active > a > .badge { color: #428bca; background-color: #ffffff; } .nav-pills > li > a > .badge { margin-left: 3px; } .jumbotron { padding: 30px; margin-bottom: 30px; font-size: 26px; font-weight: 200; line-height: 2.1428571435; color: inherit; background-color: #f1f1f1; } .jumbotron h1 { line-height: 1; color: inherit; } .jumbotron p { line-height: 1.4; } .container .jumbotron { border-radius: 6px; } @media screen and (min-width: 768px) { .jumbotron { padding-top: 48px; padding-bottom: 48px; } .container .jumbotron { padding-right: 60px; padding-left: 60px; } .jumbotron h1 { font-size: 76.5px; } } .thumbnail { display: inline-block; display: block; height: auto; max-width: 100%; padding: 4px; margin-bottom: 24px; line-height: 1.428571429; background-color: #f9f9f9; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .thumbnail > img { display: block; height: auto; max-width: 100%; margin-right: auto; margin-left: auto; } a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active { border-color: #428bca; } .thumbnail .caption { padding: 9px; color: #333333; } .alert { padding: 15px; margin-bottom: 24px; border: 1px solid transparent; border-radius: 4px; } .alert h4 { margin-top: 0; color: inherit; } .alert .alert-link { font-weight: bold; } .alert > p, .alert > ul { margin-bottom: 0; } .alert > p + p { margin-top: 5px; } .alert-dismissable { padding-right: 35px; } .alert-dismissable .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { color: #468847; background-color: #dff0d8; border-color: #d6e9c6; } .alert-success hr { border-top-color: #c9e2b3; } .alert-success .alert-link { color: #356635; } .alert-info { color: #3a87ad; background-color: #d9edf7; border-color: #bce8f1; } .alert-info hr { border-top-color: #a6e1ec; } .alert-info .alert-link { color: #2d6987; } .alert-warning { color: #c09853; background-color: #fcf8e3; border-color: #fbeed5; } .alert-warning hr { border-top-color: #f8e5be; } .alert-warning .alert-link { color: #a47e3c; } .alert-danger { color: #b94a48; background-color: #f2dede; border-color: #eed3d7; } .alert-danger hr { border-top-color: #e6c1c7; } .alert-danger .alert-link { color: #953b39; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-moz-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @-o-keyframes progress-bar-stripes { from { background-position: 0 0; } to { background-position: 40px 0; } } @keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } .progress { height: 24px; margin-bottom: 24px; overflow: hidden; background-color: #f5f5f5; border-radius: 4px; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } .progress-bar { float: left; width: 0; height: 100%; font-size: 15px; line-height: 24px; color: #ffffff; text-align: center; background-color: #428bca; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-transition: width 0.6s ease; transition: width 0.6s ease; } .progress-striped .progress-bar { background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 40px 40px; } .progress.active .progress-bar { -webkit-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-bar-success { background-color: #5cb85c; } .progress-striped .progress-bar-success { background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-info { background-color: #5bc0de; } .progress-striped .progress-bar-info { background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-warning { background-color: #f0ad4e; } .progress-striped .progress-bar-warning { background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-danger { background-color: #d9534f; } .progress-striped .progress-bar-danger { background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .media, .media-body { overflow: hidden; zoom: 1; } .media, .media .media { margin-top: 15px; } .media:first-child { margin-top: 0; } .media-object { display: block; } .media-heading { margin: 0 0 5px; } .media > .pull-left { margin-right: 10px; } .media > .pull-right { margin-left: 10px; } .media-list { padding-left: 0; list-style: none; } .list-group { padding-left: 0; margin-bottom: 20px; } .list-group-item { position: relative; display: block; padding: 10px 15px; margin-bottom: -1px; background-color: #ffffff; border: 1px solid #dddddd; } .list-group-item:first-child { border-top-right-radius: 4px; border-top-left-radius: 4px; } .list-group-item:last-child { margin-bottom: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } .list-group-item > .badge { float: right; } .list-group-item > .badge + .badge { margin-right: 5px; } a.list-group-item { color: #555555; } a.list-group-item .list-group-item-heading { color: #333333; } a.list-group-item:hover, a.list-group-item:focus { text-decoration: none; background-color: #f5f5f5; } a.list-group-item.active, a.list-group-item.active:hover, a.list-group-item.active:focus { z-index: 2; color: #ffffff; background-color: #428bca; border-color: #428bca; } a.list-group-item.active .list-group-item-heading, a.list-group-item.active:hover .list-group-item-heading, a.list-group-item.active:focus .list-group-item-heading { color: inherit; } a.list-group-item.active .list-group-item-text, a.list-group-item.active:hover .list-group-item-text, a.list-group-item.active:focus .list-group-item-text { color: #e1edf7; } .list-group-item-heading { margin-top: 0; margin-bottom: 5px; } .list-group-item-text { margin-bottom: 0; line-height: 1.3; } .panel { margin-bottom: 24px; background-color: #ffffff; border: 1px solid transparent; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); } .panel-body { padding: 15px; } .panel-body:before, .panel-body:after { display: table; content: " "; } .panel-body:after { clear: both; } .panel-body:before, .panel-body:after { display: table; content: " "; } .panel-body:after { clear: both; } .panel-body:before, .panel-body:after { display: table; content: " "; } .panel-body:after { clear: both; } .panel-body:before, .panel-body:after { display: table; content: " "; } .panel-body:after { clear: both; } .panel-body:before, .panel-body:after { display: table; content: " "; } .panel-body:after { clear: both; } .panel > .list-group { margin-bottom: 0; } .panel > .list-group .list-group-item { border-width: 1px 0; } .panel > .list-group .list-group-item:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .panel > .list-group .list-group-item:last-child { border-bottom: 0; } .panel-heading + .list-group .list-group-item:first-child { border-top-width: 0; } .panel > .table, .panel > .table-responsive { margin-bottom: 0; } .panel > .panel-body + .table, .panel > .panel-body + .table-responsive { border-top: 1px solid #dddddd; } .panel > .table-bordered, .panel > .table-responsive > .table-bordered { border: 0; } .panel > .table-bordered > thead > tr > th:first-child, .panel > .table-responsive > .table-bordered > thead > tr > th:first-child, .panel > .table-bordered > tbody > tr > th:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, .panel > .table-bordered > tfoot > tr > th:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, .panel > .table-bordered > thead > tr > td:first-child, .panel > .table-responsive > .table-bordered > thead > tr > td:first-child, .panel > .table-bordered > tbody > tr > td:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, .panel > .table-bordered > tfoot > tr > td:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .panel > .table-bordered > thead > tr > th:last-child, .panel > .table-responsive > .table-bordered > thead > tr > th:last-child, .panel > .table-bordered > tbody > tr > th:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, .panel > .table-bordered > tfoot > tr > th:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, .panel > .table-bordered > thead > tr > td:last-child, .panel > .table-responsive > .table-bordered > thead > tr > td:last-child, .panel > .table-bordered > tbody > tr > td:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, .panel > .table-bordered > tfoot > tr > td:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .panel > .table-bordered > thead > tr:last-child > th, .panel > .table-responsive > .table-bordered > thead > tr:last-child > th, .panel > .table-bordered > tbody > tr:last-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, .panel > .table-bordered > tfoot > tr:last-child > th, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th, .panel > .table-bordered > thead > tr:last-child > td, .panel > .table-responsive > .table-bordered > thead > tr:last-child > td, .panel > .table-bordered > tbody > tr:last-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, .panel > .table-bordered > tfoot > tr:last-child > td, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td { border-bottom: 0; } .panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel-heading > .dropdown .dropdown-toggle { color: inherit; } .panel-title { margin-top: 0; margin-bottom: 0; font-size: 20px; } .panel-title > a { color: inherit; } .panel-footer { padding: 10px 15px; background-color: #f5f5f5; border-top: 1px solid #dddddd; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel-group .panel { margin-bottom: 0; overflow: hidden; border-radius: 4px; } .panel-group .panel + .panel { margin-top: 5px; } .panel-group .panel-heading { border-bottom: 0; } .panel-group .panel-heading + .panel-collapse .panel-body { border-top: 1px solid #dddddd; } .panel-group .panel-footer { border-top: 0; } .panel-group .panel-footer + .panel-collapse .panel-body { border-bottom: 1px solid #dddddd; } .panel-default { border-color: #dddddd; } .panel-default > .panel-heading { color: #333333; background-color: #f5f5f5; border-color: #dddddd; } .panel-default > .panel-heading + .panel-collapse .panel-body { border-top-color: #dddddd; } .panel-default > .panel-heading > .dropdown .caret { border-color: #333333 transparent; } .panel-default > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #dddddd; } .panel-primary { border-color: #428bca; } .panel-primary > .panel-heading { color: #ffffff; background-color: #428bca; border-color: #428bca; } .panel-primary > .panel-heading + .panel-collapse .panel-body { border-top-color: #428bca; } .panel-primary > .panel-heading > .dropdown .caret { border-color: #ffffff transparent; } .panel-primary > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #428bca; } .panel-success { border-color: #d6e9c6; } .panel-success > .panel-heading { color: #468847; background-color: #dff0d8; border-color: #d6e9c6; } .panel-success > .panel-heading + .panel-collapse .panel-body { border-top-color: #d6e9c6; } .panel-success > .panel-heading > .dropdown .caret { border-color: #468847 transparent; } .panel-success > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #d6e9c6; } .panel-warning { border-color: #fbeed5; } .panel-warning > .panel-heading { color: #c09853; background-color: #fcf8e3; border-color: #fbeed5; } .panel-warning > .panel-heading + .panel-collapse .panel-body { border-top-color: #fbeed5; } .panel-warning > .panel-heading > .dropdown .caret { border-color: #c09853 transparent; } .panel-warning > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #fbeed5; } .panel-danger { border-color: #eed3d7; } .panel-danger > .panel-heading { color: #b94a48; background-color: #f2dede; border-color: #eed3d7; } .panel-danger > .panel-heading + .panel-collapse .panel-body { border-top-color: #eed3d7; } .panel-danger > .panel-heading > .dropdown .caret { border-color: #b94a48 transparent; } .panel-danger > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #eed3d7; } .panel-info { border-color: #bce8f1; } .panel-info > .panel-heading { color: #3a87ad; background-color: #d9edf7; border-color: #bce8f1; } .panel-info > .panel-heading + .panel-collapse .panel-body { border-top-color: #bce8f1; } .panel-info > .panel-heading > .dropdown .caret { border-color: #3a87ad transparent; } .panel-info > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #bce8f1; } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f1f1f1; border: 1px solid #e0e0e0; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .well-lg { padding: 24px; border-radius: 6px; } .well-sm { padding: 9px; border-radius: 3px; } .close { float: right; font-size: 25.5px; font-weight: bold; line-height: 1; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover, .close:focus { color: #000000; text-decoration: none; cursor: pointer; opacity: 0.5; filter: alpha(opacity=50); } button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .modal-open { overflow: hidden; } .modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; display: none; overflow: auto; overflow-y: scroll; } .modal.fade .modal-dialog { -webkit-transform: translate(0, -25%); -ms-transform: translate(0, -25%); transform: translate(0, -25%); -webkit-transition: -webkit-transform 0.3s ease-out; -moz-transition: -moz-transform 0.3s ease-out; -o-transition: -o-transform 0.3s ease-out; transition: transform 0.3s ease-out; } .modal.in .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); transform: translate(0, 0); } .modal-dialog { position: relative; z-index: 1050; width: auto; padding: 10px; margin-right: auto; margin-left: auto; } .modal-content { position: relative; background-color: #ffffff; border: 1px solid #999999; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; outline: none; -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); background-clip: padding-box; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1030; background-color: #000000; } .modal-backdrop.fade { opacity: 0; filter: alpha(opacity=0); } .modal-backdrop.in { opacity: 0.5; filter: alpha(opacity=50); } .modal-header { min-height: 16.428571429px; padding: 15px; border-bottom: 1px solid #e5e5e5; } .modal-header .close { margin-top: -2px; } .modal-title { margin: 0; line-height: 1.428571429; } .modal-body { position: relative; padding: 20px; } .modal-footer { padding: 19px 20px 20px; margin-top: 15px; text-align: right; border-top: 1px solid #e5e5e5; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer .btn + .btn { margin-bottom: 0; margin-left: 5px; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } @media screen and (min-width: 768px) { .modal-dialog { width: 600px; padding-top: 30px; padding-bottom: 30px; } .modal-content { -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); } } .tooltip { position: absolute; z-index: 1030; display: block; font-size: 15px; line-height: 1.4; opacity: 0; filter: alpha(opacity=0); visibility: visible; } .tooltip.in { opacity: 0.9; filter: alpha(opacity=90); } .tooltip.top { padding: 5px 0; margin-top: -3px; } .tooltip.right { padding: 0 5px; margin-left: 3px; } .tooltip.bottom { padding: 5px 0; margin-top: 3px; } .tooltip.left { padding: 0 5px; margin-left: -3px; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #ffffff; text-align: center; text-decoration: none; background-color: rgba(0, 0, 0, 0.9); border-radius: 4px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-top-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 0; } .tooltip.top-left .tooltip-arrow { bottom: 0; left: 5px; border-top-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 0; } .tooltip.top-right .tooltip-arrow { right: 5px; bottom: 0; border-top-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 0; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-right-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 5px 0; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-left-color: rgba(0, 0, 0, 0.9); border-width: 5px 0 5px 5px; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-bottom-color: rgba(0, 0, 0, 0.9); border-width: 0 5px 5px; } .tooltip.bottom-left .tooltip-arrow { top: 0; left: 5px; border-bottom-color: rgba(0, 0, 0, 0.9); border-width: 0 5px 5px; } .tooltip.bottom-right .tooltip-arrow { top: 0; right: 5px; border-bottom-color: rgba(0, 0, 0, 0.9); border-width: 0 5px 5px; } .popover { position: absolute; top: 0; left: 0; z-index: 1010; display: none; max-width: 276px; padding: 1px; text-align: left; white-space: normal; background-color: #ffffff; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); background-clip: padding-box; } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover-title { padding: 8px 14px; margin: 0; font-size: 17px; font-weight: normal; line-height: 18px; background-color: #f7f7f7; border-bottom: 1px solid #ebebeb; border-radius: 5px 5px 0 0; } .popover-content { padding: 9px 14px; } .popover .arrow, .popover .arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover .arrow { border-width: 11px; } .popover .arrow:after { border-width: 10px; content: ""; } .popover.top .arrow { bottom: -11px; left: 50%; margin-left: -11px; border-top-color: #999999; border-top-color: rgba(0, 0, 0, 0.25); border-bottom-width: 0; } .popover.top .arrow:after { bottom: 1px; margin-left: -10px; border-top-color: #ffffff; border-bottom-width: 0; content: " "; } .popover.right .arrow { top: 50%; left: -11px; margin-top: -11px; border-right-color: #999999; border-right-color: rgba(0, 0, 0, 0.25); border-left-width: 0; } .popover.right .arrow:after { bottom: -10px; left: 1px; border-right-color: #ffffff; border-left-width: 0; content: " "; } .popover.bottom .arrow { top: -11px; left: 50%; margin-left: -11px; border-bottom-color: #999999; border-bottom-color: rgba(0, 0, 0, 0.25); border-top-width: 0; } .popover.bottom .arrow:after { top: 1px; margin-left: -10px; border-bottom-color: #ffffff; border-top-width: 0; content: " "; } .popover.left .arrow { top: 50%; right: -11px; margin-top: -11px; border-left-color: #999999; border-left-color: rgba(0, 0, 0, 0.25); border-right-width: 0; } .popover.left .arrow:after { right: 1px; bottom: -10px; border-left-color: #ffffff; border-right-width: 0; content: " "; } .carousel { position: relative; } .carousel-inner { position: relative; width: 100%; overflow: hidden; } .carousel-inner > .item { position: relative; display: none; -webkit-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: block; height: auto; max-width: 100%; line-height: 1; } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next { left: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { position: absolute; top: 0; bottom: 0; left: 0; width: 15%; font-size: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); opacity: 0.5; filter: alpha(opacity=50); } .carousel-control.left { background-image: -webkit-gradient(linear, 0 top, 100% top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.0001))); background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.5) 0), color-stop(rgba(0, 0, 0, 0.0001) 100%)); background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.0001) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.0001) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); } .carousel-control.right { right: 0; left: auto; background-image: -webkit-gradient(linear, 0 top, 100% top, from(rgba(0, 0, 0, 0.0001)), to(rgba(0, 0, 0, 0.5))); background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.0001) 0), color-stop(rgba(0, 0, 0, 0.5) 100%)); background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0, rgba(0, 0, 0, 0.5) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0, rgba(0, 0, 0, 0.5) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); } .carousel-control:hover, .carousel-control:focus { color: #ffffff; text-decoration: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-control .icon-prev, .carousel-control .icon-next, .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right { position: absolute; top: 50%; z-index: 5; display: inline-block; } .carousel-control .icon-prev, .carousel-control .glyphicon-chevron-left { left: 50%; } .carousel-control .icon-next, .carousel-control .glyphicon-chevron-right { right: 50%; } .carousel-control .icon-prev, .carousel-control .icon-next { width: 20px; height: 20px; margin-top: -10px; margin-left: -10px; font-family: serif; } .carousel-control .icon-prev:before { content: '\2039'; } .carousel-control .icon-next:before { content: '\203a'; } .carousel-indicators { position: absolute; bottom: 10px; left: 50%; z-index: 15; width: 60%; padding-left: 0; margin-left: -30%; text-align: center; list-style: none; } .carousel-indicators li { display: inline-block; width: 10px; height: 10px; margin: 1px; text-indent: -999px; cursor: pointer; background-color: #000 \9; background-color: rgba(0, 0, 0, 0); border: 1px solid #ffffff; border-radius: 10px; } .carousel-indicators .active { width: 12px; height: 12px; margin: 0; background-color: #ffffff; } .carousel-caption { position: absolute; right: 15%; bottom: 20px; left: 15%; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } .carousel-caption .btn { text-shadow: none; } @media screen and (min-width: 768px) { .carousel-control .glyphicons-chevron-left, .carousel-control .glyphicons-chevron-right, .carousel-control .icon-prev, .carousel-control .icon-next { width: 30px; height: 30px; margin-top: -15px; margin-left: -15px; font-size: 30px; } .carousel-caption { right: 20%; left: 20%; padding-bottom: 30px; } .carousel-indicators { bottom: 20px; } } .clearfix:before, .clearfix:after { display: table; content: " "; } .clearfix:after { clear: both; } .clearfix:before, .clearfix:after { display: table; content: " "; } .clearfix:after { clear: both; } .center-block { display: block; margin-right: auto; margin-left: auto; } .pull-right { float: right !important; } .pull-left { float: left !important; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .hidden { display: none !important; visibility: hidden !important; } .affix { position: fixed; } @-ms-viewport { width: device-width; } .visible-xs, tr.visible-xs, th.visible-xs, td.visible-xs { display: none !important; } @media (max-width: 767px) { .visible-xs { display: block !important; } tr.visible-xs { display: table-row !important; } th.visible-xs, td.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-xs.visible-sm { display: block !important; } tr.visible-xs.visible-sm { display: table-row !important; } th.visible-xs.visible-sm, td.visible-xs.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-xs.visible-md { display: block !important; } tr.visible-xs.visible-md { display: table-row !important; } th.visible-xs.visible-md, td.visible-xs.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-xs.visible-lg { display: block !important; } tr.visible-xs.visible-lg { display: table-row !important; } th.visible-xs.visible-lg, td.visible-xs.visible-lg { display: table-cell !important; } } .visible-sm, tr.visible-sm, th.visible-sm, td.visible-sm { display: none !important; } @media (max-width: 767px) { .visible-sm.visible-xs { display: block !important; } tr.visible-sm.visible-xs { display: table-row !important; } th.visible-sm.visible-xs, td.visible-sm.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: block !important; } tr.visible-sm { display: table-row !important; } th.visible-sm, td.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-sm.visible-md { display: block !important; } tr.visible-sm.visible-md { display: table-row !important; } th.visible-sm.visible-md, td.visible-sm.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-sm.visible-lg { display: block !important; } tr.visible-sm.visible-lg { display: table-row !important; } th.visible-sm.visible-lg, td.visible-sm.visible-lg { display: table-cell !important; } } .visible-md, tr.visible-md, th.visible-md, td.visible-md { display: none !important; } @media (max-width: 767px) { .visible-md.visible-xs { display: block !important; } tr.visible-md.visible-xs { display: table-row !important; } th.visible-md.visible-xs, td.visible-md.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-md.visible-sm { display: block !important; } tr.visible-md.visible-sm { display: table-row !important; } th.visible-md.visible-sm, td.visible-md.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md { display: block !important; } tr.visible-md { display: table-row !important; } th.visible-md, td.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-md.visible-lg { display: block !important; } tr.visible-md.visible-lg { display: table-row !important; } th.visible-md.visible-lg, td.visible-md.visible-lg { display: table-cell !important; } } .visible-lg, tr.visible-lg, th.visible-lg, td.visible-lg { display: none !important; } @media (max-width: 767px) { .visible-lg.visible-xs { display: block !important; } tr.visible-lg.visible-xs { display: table-row !important; } th.visible-lg.visible-xs, td.visible-lg.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-lg.visible-sm { display: block !important; } tr.visible-lg.visible-sm { display: table-row !important; } th.visible-lg.visible-sm, td.visible-lg.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-lg.visible-md { display: block !important; } tr.visible-lg.visible-md { display: table-row !important; } th.visible-lg.visible-md, td.visible-lg.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-lg { display: block !important; } tr.visible-lg { display: table-row !important; } th.visible-lg, td.visible-lg { display: table-cell !important; } } .hidden-xs { display: block !important; } tr.hidden-xs { display: table-row !important; } th.hidden-xs, td.hidden-xs { display: table-cell !important; } @media (max-width: 767px) { .hidden-xs, tr.hidden-xs, th.hidden-xs, td.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-xs.hidden-sm, tr.hidden-xs.hidden-sm, th.hidden-xs.hidden-sm, td.hidden-xs.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-xs.hidden-md, tr.hidden-xs.hidden-md, th.hidden-xs.hidden-md, td.hidden-xs.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-xs.hidden-lg, tr.hidden-xs.hidden-lg, th.hidden-xs.hidden-lg, td.hidden-xs.hidden-lg { display: none !important; } } .hidden-sm { display: block !important; } tr.hidden-sm { display: table-row !important; } th.hidden-sm, td.hidden-sm { display: table-cell !important; } @media (max-width: 767px) { .hidden-sm.hidden-xs, tr.hidden-sm.hidden-xs, th.hidden-sm.hidden-xs, td.hidden-sm.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-sm, tr.hidden-sm, th.hidden-sm, td.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-sm.hidden-md, tr.hidden-sm.hidden-md, th.hidden-sm.hidden-md, td.hidden-sm.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-sm.hidden-lg, tr.hidden-sm.hidden-lg, th.hidden-sm.hidden-lg, td.hidden-sm.hidden-lg { display: none !important; } } .hidden-md { display: block !important; } tr.hidden-md { display: table-row !important; } th.hidden-md, td.hidden-md { display: table-cell !important; } @media (max-width: 767px) { .hidden-md.hidden-xs, tr.hidden-md.hidden-xs, th.hidden-md.hidden-xs, td.hidden-md.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-md.hidden-sm, tr.hidden-md.hidden-sm, th.hidden-md.hidden-sm, td.hidden-md.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-md, tr.hidden-md, th.hidden-md, td.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-md.hidden-lg, tr.hidden-md.hidden-lg, th.hidden-md.hidden-lg, td.hidden-md.hidden-lg { display: none !important; } } .hidden-lg { display: block !important; } tr.hidden-lg { display: table-row !important; } th.hidden-lg, td.hidden-lg { display: table-cell !important; } @media (max-width: 767px) { .hidden-lg.hidden-xs, tr.hidden-lg.hidden-xs, th.hidden-lg.hidden-xs, td.hidden-lg.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-lg.hidden-sm, tr.hidden-lg.hidden-sm, th.hidden-lg.hidden-sm, td.hidden-lg.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-lg.hidden-md, tr.hidden-lg.hidden-md, th.hidden-lg.hidden-md, td.hidden-lg.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-lg, tr.hidden-lg, th.hidden-lg, td.hidden-lg { display: none !important; } } .visible-print, tr.visible-print, th.visible-print, td.visible-print { display: none !important; } @media print { .visible-print { display: block !important; } tr.visible-print { display: table-row !important; } th.visible-print, td.visible-print { display: table-cell !important; } .hidden-print, tr.hidden-print, th.hidden-print, td.hidden-print { display: none !important; } } .navbar { -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); } .navbar-nav > li > a { padding-top: 19px; } .navbar-brand { padding-top: 18px; } .btn-default, .btn-default:hover { background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d4d4d), color-stop(6%, #333333), to(#292929)); background-image: -webkit-linear-gradient(#4d4d4d, #333333 6%, #292929); background-image: -moz-linear-gradient(top, #4d4d4d, #333333 6%, #292929); background-image: linear-gradient(#4d4d4d, #333333 6%, #292929); background-repeat: no-repeat; border: 1px solid #1a1a1a; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff4d4d4d', endColorstr='#ff292929', GradientType=0); } .btn-primary, .btn-primary:hover { background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#6aa3d5), color-stop(6%, #428bca), to(#3681c1)); background-image: -webkit-linear-gradient(#6aa3d5, #428bca 6%, #3681c1); background-image: -moz-linear-gradient(top, #6aa3d5, #428bca 6%, #3681c1); background-image: linear-gradient(#6aa3d5, #428bca 6%, #3681c1); background-repeat: no-repeat; border: 1px solid #3071a9; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff6aa3d5', endColorstr='#ff3681c1', GradientType=0); } .btn-success, .btn-success:hover { background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#80c780), color-stop(6%, #5cb85c), to(#4eb24e)); background-image: -webkit-linear-gradient(#80c780, #5cb85c 6%, #4eb24e); background-image: -moz-linear-gradient(top, #80c780, #5cb85c 6%, #4eb24e); background-image: linear-gradient(#80c780, #5cb85c 6%, #4eb24e); background-repeat: no-repeat; border: 1px solid #449d44; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff80c780', endColorstr='#ff4eb24e', GradientType=0); } .btn-info, .btn-info:hover { background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#85d0e7), color-stop(6%, #5bc0de), to(#4ab9db)); background-image: -webkit-linear-gradient(#85d0e7, #5bc0de 6%, #4ab9db); background-image: -moz-linear-gradient(top, #85d0e7, #5bc0de 6%, #4ab9db); background-image: linear-gradient(#85d0e7, #5bc0de 6%, #4ab9db); background-repeat: no-repeat; border: 1px solid #31b0d5; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff85d0e7', endColorstr='#ff4ab9db', GradientType=0); } .btn-warning, .btn-warning:hover { background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f4c37d), color-stop(6%, #f0ad4e), to(#eea43b)); background-image: -webkit-linear-gradient(#f4c37d, #f0ad4e 6%, #eea43b); background-image: -moz-linear-gradient(top, #f4c37d, #f0ad4e 6%, #eea43b); background-image: linear-gradient(#f4c37d, #f0ad4e 6%, #eea43b); background-repeat: no-repeat; border: 1px solid #ec971f; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff4c37d', endColorstr='#ffeea43b', GradientType=0); } .btn-danger, .btn-danger:hover { background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e27c79), color-stop(6%, #d9534f), to(#d5433e)); background-image: -webkit-linear-gradient(#e27c79, #d9534f 6%, #d5433e); background-image: -moz-linear-gradient(top, #e27c79, #d9534f 6%, #d5433e); background-image: linear-gradient(#e27c79, #d9534f 6%, #d5433e); background-repeat: no-repeat; border: 1px solid #c9302c; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe27c79', endColorstr='#ffd5433e', GradientType=0); } .pagination .active > a, .pagination .active > a:hover { border-color: #ddd; } .clearfix:before, .clearfix:after { display: table; content: " "; } .clearfix:after { clear: both; } .clearfix:before, .clearfix:after { display: table; content: " "; } .clearfix:after { clear: both; } .center-block { display: block; margin-right: auto; margin-left: auto; } .pull-right { float: right !important; } .pull-left { float: left !important; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .hidden { display: none !important; visibility: hidden !important; } .affix { position: fixed; }
narikei/cdnjs
ajax/libs/bootswatch/3.0.1/css/readable/bootstrap.css
CSS
mit
135,194
/** * Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ /* exported initSample */ if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) CKEDITOR.tools.enableHtml5Elements( document ); // The trick to keep the editor in the sample quite small // unless user specified own height. CKEDITOR.config.height = 150; CKEDITOR.config.width = 'auto'; var initSample = ( function() { var wysiwygareaAvailable = isWysiwygareaAvailable(), isBBCodeBuiltIn = !!CKEDITOR.plugins.get( 'bbcode' ); return function() { var editorElement = CKEDITOR.document.getById( 'editor' ); // :((( if ( isBBCodeBuiltIn ) { editorElement.setHtml( 'Hello world!\n\n' + 'I\'m an instance of [url=http://ckeditor.com]CKEditor[/url].' ); } // Depending on the wysiwygare plugin availability initialize classic or inline editor. if ( wysiwygareaAvailable ) { CKEDITOR.replace( 'editor' ); } else { editorElement.setAttribute( 'contenteditable', 'true' ); CKEDITOR.inline( 'editor' ); // TODO we can consider displaying some info box that // without wysiwygarea the classic editor may not work. } }; function isWysiwygareaAvailable() { // If in development mode, then the wysiwygarea must be available. // Split REV into two strings so builder does not replace it :D. if ( CKEDITOR.revision == ( '%RE' + 'V%' ) ) { return true; } return !!CKEDITOR.plugins.get( 'wysiwygarea' ); } } )();
rquispeq/sistemas_blandos
plugins/ckeditor/samples/js/sample.js
JavaScript
mit
1,521
/* * /MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscSymbols.js * * Copyright (c) 2009-2013 The MathJax Consortium * * 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. */ MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["MathJax_Main-bold"],{9824:[719,129,894,64,829],9825:[711,24,894,65,828],9826:[719,154,894,64,828],9827:[719,129,894,32,861],9837:[750,17,447,64,381],9838:[741,223,447,57,389],9839:[724,224,447,63,382]});MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].fontDir+"/Main/Bold/MiscSymbols.js");
Kaakati/cdnjs
ajax/libs/mathjax/2.3.0/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscSymbols.js
JavaScript
mit
1,059
/* * /MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/PrivateUse.js * * Copyright (c) 2009-2015 The MathJax Consortium * * 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. */ MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["STIXNonUnicode-bold-italic"],{57500:[775,235,776,40,765],57501:[775,235,759,44,779],57502:[775,235,658,44,771],57523:[703,205,556,-188,517],57846:[688,13,500,89,578],57847:[688,0,500,204,505],57848:[688,0,500,20,581],57849:[688,13,500,32,586],57850:[688,0,500,55,583],57851:[676,13,500,27,651],57852:[688,13,500,80,638],57853:[676,0,500,120,639],57854:[688,13,500,63,594],57855:[688,13,500,28,588],57856:[669,0,733,7,667],57857:[669,0,729,18,714],57859:[669,0,680,18,703],57860:[669,0,474,18,703],57861:[685,14,718,35,708],57862:[669,0,382,22,411],57863:[669,14,603,19,644],57864:[669,0,766,18,766],57865:[669,0,613,18,568],57866:[669,0,912,26,943],57867:[685,14,749,35,734],57868:[685,14,686,30,711],57869:[669,0,445,30,653],57870:[669,14,709,35,755],57871:[669,0,504,42,705],57872:[669,0,891,81,991],57873:[669,0,759,7,832],57874:[669,0,462,10,714],57875:[462,13,634,45,589],57876:[699,13,661,34,619],57877:[462,13,571,45,545],57879:[462,13,575,45,540],57880:[699,0,438,45,618],57881:[462,205,666,28,642],57882:[699,0,661,34,616],57885:[699,0,641,34,616],57886:[699,0,372,34,413],57887:[462,0,942,35,897],57888:[462,0,661,34,616],57889:[462,13,586,45,551],57890:[462,205,680,3,645],57891:[462,205,662,45,630],57892:[462,0,403,33,538],57893:[462,13,533,33,519],57894:[676,14,403,22,422],57895:[449,13,661,45,627],57896:[449,0,477,32,534],57897:[449,0,733,55,763],57898:[449,0,562,-12,589],57899:[449,205,584,-9,643],57900:[449,0,619,35,594],57927:[711,47,871,38,834],57928:[703,10,755,33,740],57929:[704,12,667,36,669],57930:[696,0,802,30,808],57931:[704,8,609,41,626],57932:[696,0,645,34,738],57933:[704,144,615,43,615],57934:[696,24,849,22,858],57935:[696,0,621,36,623],57936:[695,116,645,36,811],57937:[703,14,856,38,820],57938:[704,8,726,38,688],57939:[705,45,1186,38,1146],57940:[835,39,997,36,1098],57941:[707,10,772,43,782],57942:[696,0,645,36,731],57943:[704,145,778,43,737],57944:[697,13,869,36,831],57945:[705,7,667,36,699],57946:[783,0,547,33,747],57947:[700,14,787,33,936],57948:[711,31,652,36,706],57949:[711,34,956,36,1010],57950:[710,14,720,36,781],57951:[711,144,720,36,773],57952:[702,98,778,36,744],57956:[473,10,600,47,554],57960:[473,0,600,95,450],57964:[473,0,600,54,531],57968:[463,217,600,31,547],57972:[450,217,600,30,564],57976:[450,218,600,25,561],57980:[670,10,600,55,545],57984:[450,217,600,24,582],57988:[670,10,600,41,560],57992:[463,217,600,49,539],58005:[775,235,776,40,739],58007:[775,235,762,44,747],58009:[775,235,711,57,753],58011:[775,235,870,44,840],58013:[775,235,759,44,779],58015:[775,235,658,44,771],58017:[775,235,789,57,787],58019:[775,235,915,44,940],58021:[775,235,502,46,525],58023:[775,235,648,68,688],58025:[775,207,814,44,838],58027:[775,235,764,44,718],58029:[775,235,1044,44,1069],58031:[775,235,857,44,882],58033:[775,235,802,57,777],58035:[775,207,626,19,790],58037:[775,245,834,57,777],58039:[775,235,783,44,757],58041:[775,235,589,57,621],58043:[775,235,562,30,696],58045:[775,235,745,74,813],58047:[775,235,597,66,774],58049:[775,235,980,66,1131],58051:[775,235,803,34,819],58053:[775,235,569,25,706],58055:[775,235,720,42,701],58057:[775,235,630,46,595],58059:[775,235,585,57,564],58061:[775,235,511,33,506],58063:[775,235,646,31,638],58065:[775,235,512,44,516],58067:[775,235,654,-29,762],58069:[775,235,601,24,599],58071:[775,235,611,35,577],58073:[775,207,373,34,488],58075:[775,235,600,-29,763],58077:[775,235,622,35,660],58079:[775,207,381,30,484],58081:[775,235,873,35,838],58083:[775,235,611,35,581],58085:[775,235,571,46,548],58087:[775,235,636,-25,649],58089:[775,207,580,46,568],58091:[775,235,437,35,567],58093:[775,235,512,42,515],58095:[775,207,411,32,486],58097:[775,235,632,60,597],58099:[775,207,554,52,558],58101:[775,207,814,17,799],58103:[775,235,647,35,622],58105:[775,207,599,20,640],58107:[775,235,531,35,555],58157:[775,207,671,46,675],58159:[775,207,664,-65,706],58161:[775,207,588,-100,671],58163:[775,207,571,46,547],58165:[775,207,508,44,515],58167:[775,207,505,-54,629],58169:[775,207,579,20,583],58171:[775,207,615,46,602],58173:[775,207,355,29,483],58175:[775,207,594,35,656],58177:[775,207,598,18,642],58179:[775,207,697,-34,737],58181:[775,207,571,35,584],58183:[775,207,504,-54,629],58185:[775,235,500,32,506],58187:[775,207,652,1,772],58189:[775,207,636,27,652],58191:[775,207,504,23,514],58193:[775,207,595,46,641],58195:[775,207,474,20,521],58197:[775,207,582,20,584],58199:[775,207,726,1,772],58201:[775,207,622,-41,730],58203:[775,207,720,37,808],58205:[775,207,782,24,795],58207:[775,207,608,20,681],58209:[775,207,727,0,771],58211:[775,207,925,6,978],58215:[775,235,475,-35,509],58219:[775,235,525,-68,651],58223:[775,235,485,16,466],58227:[775,235,530,12,731],58229:[775,235,569,-50,592],58231:[775,207,571,46,547],58233:[775,207,601,46,579],58235:[775,207,525,46,543],58238:[775,235,792,-40,777],58240:[707,14,670,10,662],58242:[707,14,622,14,598],58244:[628,14,411,18,390],58246:[473,14,355,15,338],58248:[666,0,493,25,508],58249:[666,0,480,16,472],58309:[462,207,514,47,475],58310:[462,9,357,55,274]});MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].fontDir+"/NonUnicode/BoldItalic/PrivateUse.js");
maruilian11/cdnjs
ajax/libs/mathjax/2.6.1-rc.1/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/PrivateUse.js
JavaScript
mit
5,884
'use strict' var jsonSafeStringify = require('json-stringify-safe') , crypto = require('crypto') var defer = typeof setImmediate === 'undefined' ? process.nextTick : setImmediate function paramsHaveRequestBody(params) { return ( params.body || params.requestBodyStream || (params.json && typeof params.json !== 'boolean') || params.multipart ) } function safeStringify (obj, replacer) { var ret try { ret = JSON.stringify(obj, replacer) } catch (e) { ret = jsonSafeStringify(obj, replacer) } return ret } function md5 (str) { return crypto.createHash('md5').update(str).digest('hex') } function isReadStream (rs) { return rs.readable && rs.path && rs.mode } function toBase64 (str) { return (new Buffer(str || '', 'utf8')).toString('base64') } function copy (obj) { var o = {} Object.keys(obj).forEach(function (i) { o[i] = obj[i] }) return o } function version () { var numbers = process.version.replace('v', '').split('.') return { major: parseInt(numbers[0], 10), minor: parseInt(numbers[1], 10), patch: parseInt(numbers[2], 10) } } exports.paramsHaveRequestBody = paramsHaveRequestBody exports.safeStringify = safeStringify exports.md5 = md5 exports.isReadStream = isReadStream exports.toBase64 = toBase64 exports.copy = copy exports.version = version exports.defer = defer
jordanblakey/github-app
node_modules/protractor/node_modules/webdriver-manager/node_modules/request/lib/helpers.js
JavaScript
mit
1,463
/* * /MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SupplementalArrowsA.js * * Copyright (c) 2009-2015 The MathJax Consortium * * 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. */ MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.STIXGeneral,{10224:[662,156,1033,69,965],10225:[662,156,1033,69,965],10226:[626,116,974,54,882],10227:[626,116,974,92,920],10228:[569,61,1200,52,1147],10237:[551,45,1574,55,1519],10238:[551,45,1574,55,1519],10239:[449,-58,1574,55,1519]});MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].fontDir+"/General/Regular/SupplementalArrowsA.js");
LaurensRietveld/cdnjs
ajax/libs/mathjax/2.5.0/jax/output/HTML-CSS/fonts/STIX/General/Regular/SupplementalArrowsA.js
JavaScript
mit
1,122
/* * /MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Fraktur.js * * Copyright (c) 2009-2015 The MathJax Consortium * * 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. */ MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.STIXGeneral,{120068:[695,22,785,47,742],120069:[704,24,822,48,774],120071:[695,24,868,50,817],120072:[695,24,729,50,678],120073:[695,204,767,50,716],120074:[695,24,806,50,755],120077:[695,204,772,50,721],120078:[695,22,846,50,801],120079:[695,24,669,47,626],120080:[695,22,1083,50,1031],120081:[695,22,827,50,775],120082:[695,24,837,37,786],120083:[695,204,823,40,773],120084:[695,64,865,37,814],120086:[695,24,856,55,801],120087:[695,24,766,47,722],120088:[696,22,787,50,744],120089:[695,24,831,48,781],120090:[695,24,1075,48,1025],120091:[695,31,763,46,735],120092:[695,204,766,47,714],120094:[468,18,530,51,479],120095:[695,18,513,46,462],120096:[468,18,385,57,344],120097:[695,18,506,45,455],120098:[468,18,420,47,379],120099:[694,209,327,27,316],120100:[468,209,499,51,461],120101:[695,209,528,48,476],120102:[694,18,384,42,338],120103:[695,209,345,44,311],120104:[695,18,420,48,368],120105:[695,18,398,46,350],120106:[468,25,910,59,856],120107:[468,25,636,60,582],120108:[468,18,503,50,452],120109:[586,209,555,38,504],120110:[468,209,507,51,459],120111:[468,18,463,38,426],120112:[623,24,518,49,469],120113:[656,18,374,38,337],120114:[478,18,647,60,593],120115:[586,18,515,47,464],120116:[586,25,759,41,708],120117:[468,189,456,45,406],120118:[586,209,516,48,464],120119:[468,209,457,43,407]});MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].fontDir+"/General/Regular/Fraktur.js");
Piicksarn/cdnjs
ajax/libs/mathjax/2.6.1-rc.1/jax/output/HTML-CSS/fonts/STIX/General/Regular/Fraktur.js
JavaScript
mit
2,161
/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/cldr/nls/en-gb/buddhist",{"dateFormat-medium":"d MMM y G","dateFormatItem-MMMEd":"E d MMM","dateFormatItem-MMdd":"dd/MM","dateFormatItem-MEd":"E, d/M","dateFormatItem-yMEd":"EEE, d/M/y G","dateFormatItem-yyMMM":"MMM y G","dateFormatItem-y":"y","dateFormatItem-Md":"d/M","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"days-standAlone-narrow":["S","M","T","W","T","F","S"],"dateFormatItem-yyyyMMMM":"MMMM y G","dateFormatItem-MMMMd":"d MMMM","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yyyyMM":"MM/y G","dateFormat-long":"d MMMM y G","dateFormat-short":"dd/MM/y G","dateFormatItem-yMMMEd":"EEE, MMM d, y","months-format-wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"dateFormatItem-yM":"M/y","months-format-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dateFormatItem-yQ":"Q y","dateFormatItem-yMMM":"MMM y","quarters-format-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"dateFormat-full":"EEEE, d MMMM y G","dateFormatItem-yyyyMd":"d/M/y G","days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]});
dominicrico/cdnjs
ajax/libs/dojo/1.7.7/cldr/nls/en-gb/buddhist.js
JavaScript
mit
1,475
/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/cldr/nls/fi/islamic",{"dateFormatItem-yM":"L.yyyy","dateFormatItem-yyyyMMMEd":"EEE d. MMM y G","dateFormatItem-yQ":"Q/yyyy","dayPeriods-format-wide-pm":"ip.","dateFormatItem-MMMEd":"E d. MMM","dateFormatItem-hms":"h.mm.ss a","dateFormatItem-yQQQ":"QQQ y","days-standAlone-wide":["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],"dateFormatItem-MMM":"LLL","dateFormatItem-Gy":"y G","dayPeriods-format-wide-am":"ap.","dateFormatItem-y":"y G","timeFormat-full":"H.mm.ss zzzz","dateFormatItem-yyyy":"y G","months-standAlone-abbr":["muharram","safar","rabi’ al-awwal","rabi’ al-akhir","džumada-l-ula","džumada-l-akhira","radžab","ša’ban","ramadan","šawwal","dhu-l-qa’da","dhu-l-hiddža"],"dateFormatItem-Ed":"ccc d.","dateFormatItem-yMMM":"LLL y","days-standAlone-narrow":["S","M","T","K","T","P","L"],"dateFormatItem-yyyyMMMMccccd":"cccc, d. MMMM y G","dateFormatItem-yyyyMM":"M.y G","dateFormatItem-yyyyMMMM":"LLLL y G","dateFormat-long":"d. MMMM y G","timeFormat-medium":"H.mm.ss","dateFormatItem-Hm":"H.mm","dateFormat-medium":"d.M.y G","dateFormatItem-Hms":"H.mm.ss","dateFormatItem-ms":"mm.ss","dateFormatItem-yyyyQQQQ":"QQQQ y G","months-standAlone-wide":["muharram","safar","rabi’ al-awwal","rabi’ al-akhir","džumada-l-ula","džumada-l-akhira","radžab","ša’ban","ramadan","šawwal","dhu-l-qa’da","dhu-l-hiddža"],"dateFormatItem-yyyyMEd":"EEE d.M.y G","dateFormatItem-MMMd":"d. MMM","timeFormat-long":"H.mm.ss z","months-format-abbr":["muharram","safar","rabi’ al-awwal","rabi’ al-akhir","džumada-l-ula","džumada-l-akhira","radžab","ša’ban","ramadan","šawwal","dhu-l-qa’da","dhu-l-hiddža"],"timeFormat-short":"H.mm","dateFormatItem-H":"H","quarters-format-abbr":["1. nelj.","2. nelj.","3. nelj.","4. nelj."],"days-format-abbr":["su","ma","ti","ke","to","pe","la"],"dateFormatItem-M":"L","dateFormatItem-yyyyQQQ":"QQQ y G","dateFormatItem-MEd":"E d.M.","dateFormatItem-hm":"h.mm a","dayPeriods-format-abbr-pm":"ip.","dateFormat-short":"d.M.y G","dateFormatItem-yyyyM":"M.y G","dateFormatItem-yMMMEd":"EEE d. MMM y","dateFormat-full":"cccc d. MMMM y G","dateFormatItem-Md":"d.M.","dateFormatItem-yyyyQ":"Q/y G","dateFormatItem-yMEd":"EEE d.M.yyyy","months-format-wide":["muharram","safar","rabi’ al-awwal","rabi’ al-akhir","džumada-l-ula","džumada-l-akhira","radžab","ša’ban","ramadan","šawwal","dhu-l-qa’da","dhu-l-hiddža"],"dayPeriods-format-abbr-am":"ap.","dateFormatItem-yyyyMMM":"LLLL y G","dateFormatItem-d":"d","quarters-format-wide":["1. neljännes","2. neljännes","3. neljännes","4. neljännes"],"days-format-wide":["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]});
SirenHound/cdnjs
ajax/libs/dojo/1.7.3/cldr/nls/fi/islamic.js
JavaScript
mit
2,931
/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/cldr/nls/hebrew",{root:{"months-format-narrow":["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul"],"quarters-standAlone-narrow":["1","2","3","4"],"dateFormatItem-yQQQ":"y QQQ","months-standAlone-narrow-leap":"Adar II","dateFormatItem-yMEd":"EEE, y-M-d","dateFormatItem-MMMEd":"E MMM d","eraNarrow":["AM"],"dateTimeFormats-appendItem-Day-Of-Week":"{0} {1}","dateFormat-long":"y MMMM d","months-format-wide":["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul"],"dateTimeFormat-medium":"{1} {0}","dateFormatItem-EEEd":"d EEE","dayPeriods-format-wide-pm":"PM","dateFormat-full":"EEEE, y MMMM dd","dateFormatItem-Md":"M-d","dayPeriods-format-abbr-am":"AM","dateTimeFormats-appendItem-Second":"{0} ({2}: {1})","dateFormatItem-yM":"y-M","months-standAlone-wide":["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul"],"timeFormat-short":"HH:mm","quarters-format-wide":["Q1","Q2","Q3","Q4"],"timeFormat-long":"HH:mm:ss z","dateFormatItem-yMMM":"y MMM","dateFormatItem-yQ":"y Q","dateTimeFormats-appendItem-Era":"{0} {1}","months-format-abbr-leap":"Adar II","months-format-abbr":["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul"],"timeFormat-full":"HH:mm:ss zzzz","dateTimeFormats-appendItem-Week":"{0} ({2}: {1})","dateFormatItem-H":"HH","months-standAlone-abbr":["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul"],"quarters-format-abbr":["Q1","Q2","Q3","Q4"],"quarters-standAlone-wide":["Q1","Q2","Q3","Q4"],"dateFormatItem-M":"L","days-standAlone-wide":["1","2","3","4","5","6","7"],"months-standAlone-wide-leap":"Adar II","timeFormat-medium":"HH:mm:ss","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],"months-format-narrow-leap":"Adar II","eraAbbr":["AM"],"days-standAlone-abbr":["1","2","3","4","5","6","7"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","quarters-format-narrow":["1","2","3","4"],"dateFormatItem-h":"h a","dateTimeFormat-long":"{1} {0}","dayPeriods-format-narrow-am":"AM","dateFormatItem-MMMd":"MMM d","dateFormatItem-MEd":"E, M-d","dateTimeFormat-full":"{1} {0}","days-format-wide":["1","2","3","4","5","6","7"],"months-standAlone-abbr-leap":"Adar II","dateTimeFormats-appendItem-Day":"{0} ({2}: {1})","dateFormatItem-y":"y","months-standAlone-narrow":["Tishri","Heshvan","Kislev","Tevet","Shevat","Adar I","Adar","Nisan","Iyar","Sivan","Tamuz","Av","Elul"],"dateFormatItem-hm":"h:mm a","dateTimeFormats-appendItem-Year":"{0} {1}","dateTimeFormats-appendItem-Hour":"{0} ({2}: {1})","dayPeriods-format-abbr-pm":"PM","days-format-abbr":["1","2","3","4","5","6","7"],"eraNames":["AM"],"days-format-narrow":["1","2","3","4","5","6","7"],"days-standAlone-narrow":["1","2","3","4","5","6","7"],"dateFormatItem-MMM":"LLL","dateTimeFormats-appendItem-Quarter":"{0} ({2}: {1})","dayPeriods-format-wide-am":"AM","dateTimeFormats-appendItem-Month":"{0} ({2}: {1})","dateTimeFormats-appendItem-Minute":"{0} ({2}: {1})","dateFormat-short":"yyyy-MM-dd","dateFormatItem-yMMMEd":"EEE, y MMM d","dateTimeFormats-appendItem-Timezone":"{0} {1}","dateFormat-medium":"y MMM d","dayPeriods-format-narrow-pm":"PM","dateTimeFormat-short":"{1} {0}","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","months-format-wide-leap":"Adar II"},"ar":true,"el":true,"fi":true,"fr":true,"he":true,"hu":true,"nl":true,"ru":true,"sv":true,"th":true,"tr":true});
Dervisevic/cdnjs
ajax/libs/dojo/1.7.5/cldr/nls/hebrew.js
JavaScript
mit
3,772
/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/cldr/nls/number",{root:{"scientificFormat":"#E0","currencySpacing-afterCurrency-currencyMatch":"[:letter:]","infinity":"∞","list":";","percentSign":"%","minusSign":"-","currencySpacing-beforeCurrency-surroundingMatch":"[:digit:]","decimalFormat-short":"000T","currencySpacing-afterCurrency-insertBetween":" ","nan":"NaN","nativeZeroDigit":"0","plusSign":"+","currencySpacing-afterCurrency-surroundingMatch":"[:digit:]","currencySpacing-beforeCurrency-currencyMatch":"[:letter:]","currencyFormat":"¤ #,##0.00","perMille":"‰","group":",","percentFormat":"#,##0%","decimalFormat":"#,##0.###","decimal":".","patternDigit":"#","currencySpacing-beforeCurrency-insertBetween":" ","exponential":"E"},"ar":true,"ca":true,"cs":true,"da":true,"de":true,"el":true,"en":true,"en-au":true,"en-gb":true,"es":true,"fi":true,"fr":true,"fr-ch":true,"he":true,"hu":true,"it":true,"ja":true,"ko":true,"nb":true,"nl":true,"pl":true,"pt":true,"pt-pt":true,"ro":true,"ru":true,"sk":true,"sl":true,"sv":true,"th":true,"tr":true,"zh":true,"zh-hant":true,"zh-hk":true});
mscharl/cdnjs
ajax/libs/dojo/1.7.7/cldr/nls/number.js
JavaScript
mit
1,272
/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/cldr/nls/zh-tw/gregorian",{"quarters-standAlone-wide":["第1季","第2季","第3季","第4季"],"quarters-format-abbr":["第1季","第2季","第3季","第4季"],"dateFormat-medium":"yyyy/M/d","field-second":"秒","quarters-standAlone-abbr":["第1季","第2季","第3季","第4季"],"dateFormatItem-MMdd":"MM/dd","dateFormatItem-MEd":"M/d(E)","dateFormatItem-yMEd":"yyyy/M/d(EEE)","field-week":"週","dateFormatItem-H":"H時","eraNarrow":["西元前","西元"],"field-day-relative+-3":"大前天","timeFormat-full":"zzzzah時mm分ss秒","dateFormatItem-Md":"M/d","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"eraNames":["西元前","西元"],"field-minute":"分鐘","field-hour":"小時","field-day-relative+2":"後天","field-day-relative+3":"大後天","dateFormat-short":"yy/M/d","dateFormatItem-yMMMEd":"y年M月d日EEE","field-era":"年代","dateFormatItem-yM":"yyyy/M","timeFormat-long":"zah時mm分ss秒","eraAbbr":["西元前","西元"],"dateFormatItem-h":"ah時","dateFormatItem-yMMM":"y年M月","quarters-format-wide":["第1季","第2季","第3季","第4季"],"field-weekday":"週天","field-zone":"區域","dateFormatItem-Ed":"d日(E)"});
hasantayyar/cdnjs
ajax/libs/dojo/1.7.5/cldr/nls/zh-tw/gregorian.js
JavaScript
mit
1,411
/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/cldr/nls/tr/gregorian",{"months-format-narrow":["O","Ş","M","N","M","H","T","A","E","E","K","A"],"field-weekday":"Haftanın Günü","dateFormatItem-yyQQQQ":"QQQQ yy","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-yMEd":"dd.MM.yyyy EEE","dateFormatItem-MMMEd":"dd MMM E","eraNarrow":["MÖ","MS"],"dateFormat-long":"dd MMMM y","months-format-wide":["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],"dateFormatItem-EEEd":"d EEE","dayPeriods-format-wide-pm":"PM","dateFormat-full":"dd MMMM y EEEE","dateFormatItem-Md":"dd/MM","field-era":"Miladi Dönem","dateFormatItem-yM":"M/yyyy","months-standAlone-wide":["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],"timeFormat-short":"HH:mm","quarters-format-wide":["1. çeyrek","2. çeyrek","3. çeyrek","4. çeyrek"],"timeFormat-long":"HH:mm:ss z","field-year":"Yıl","dateFormatItem-yMMM":"MMM y","dateFormatItem-yQ":"Q yyyy","field-hour":"Saat","months-format-abbr":["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],"dateFormatItem-yyQ":"Q yy","timeFormat-full":"HH:mm:ss zzzz","field-day-relative+0":"Bugün","field-day-relative+1":"Yarın","field-day-relative+2":"Yarından sonraki gün","dateFormatItem-H":"HH","field-day-relative+3":"Üç gün sonra","months-standAlone-abbr":["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],"quarters-format-abbr":["Ç1","Ç2","Ç3","Ç4"],"quarters-standAlone-wide":["1. çeyrek","2. çeyrek","3. çeyrek","4. çeyrek"],"dateFormatItem-M":"L","days-standAlone-wide":["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],"dateFormatItem-MMMMd":"dd MMMM","dateFormatItem-yyMMM":"MMM yy","timeFormat-medium":"HH:mm:ss","dateFormatItem-Hm":"HH:mm","quarters-standAlone-abbr":["Ç1","Ç2","Ç3","Ç4"],"eraAbbr":["MÖ","MS"],"field-minute":"Dakika","field-dayperiod":"AM/PM","days-standAlone-abbr":["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],"dateFormatItem-d":"d","dateFormatItem-ms":"mm:ss","field-day-relative+-1":"Dün","field-day-relative+-2":"Evvelsi gün","field-day-relative+-3":"Üç gün önce","dateFormatItem-MMMd":"dd MMM","dateFormatItem-MEd":"dd/MM E","dateFormatItem-yMMMM":"MMMM y","field-day":"Gün","days-format-wide":["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],"field-zone":"Saat Dilimi","dateFormatItem-y":"y","months-standAlone-narrow":["O","Ş","M","N","M","H","T","A","E","E","K","A"],"dateFormatItem-yyMM":"MM/yy","dateFormatItem-hm":"h:mm a","days-format-abbr":["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],"eraNames":["Milattan Önce","Milattan Sonra"],"days-format-narrow":["P","P","S","Ç","P","C","C"],"field-month":"Ay","days-standAlone-narrow":["P","P","S","Ç","P","C","C"],"dateFormatItem-MMM":"LLL","dayPeriods-format-wide-am":"AM","dateFormatItem-MMMMEd":"dd MMMM E","dateFormat-short":"dd.MM.yyyy","field-second":"Saniye","dateFormatItem-yMMMEd":"dd MMM y EEE","dateFormatItem-Ed":"d E","field-week":"Hafta","dateFormat-medium":"dd MMM y","dateFormatItem-mmss":"mm:ss","dateFormatItem-Hms":"HH:mm:ss","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-yyyy":"y"});
sujonvidia/cdnjs
ajax/libs/dojo/1.7.4/cldr/nls/tr/gregorian.js
JavaScript
mit
3,413
/** * SyntaxHighlighter * http://alexgorbatchev.com/SyntaxHighlighter * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/SyntaxHighlighter/donate.html * * @version * 3.0.83 (July 02 2010) * * @copyright * Copyright (C) 2004-2010 Alex Gorbatchev. * * @license * Dual licensed under the MIT and GPL licenses. */ .syntaxhighlighter { background-color: #121212 !important; } .syntaxhighlighter .line.alt1 { background-color: #121212 !important; } .syntaxhighlighter .line.alt2 { background-color: #121212 !important; } .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { background-color: #2c2c29 !important; } .syntaxhighlighter .line.highlighted.number { color: white !important; } .syntaxhighlighter table caption { color: white !important; } .syntaxhighlighter .gutter { color: #afafaf !important; } .syntaxhighlighter .gutter .line { border-right: 3px solid #3185b9 !important; } .syntaxhighlighter .gutter .line.highlighted { background-color: #3185b9 !important; color: #121212 !important; } .syntaxhighlighter.printing .line .content { border: none !important; } .syntaxhighlighter.collapsed { overflow: visible !important; } .syntaxhighlighter.collapsed .toolbar { color: #3185b9 !important; background: black !important; border: 1px solid #3185b9 !important; } .syntaxhighlighter.collapsed .toolbar a { color: #3185b9 !important; } .syntaxhighlighter.collapsed .toolbar a:hover { color: #d01d33 !important; } .syntaxhighlighter .toolbar { color: white !important; background: #3185b9 !important; border: none !important; } .syntaxhighlighter .toolbar a { color: white !important; } .syntaxhighlighter .toolbar a:hover { color: #96daff !important; } .syntaxhighlighter .plain, .syntaxhighlighter .plain a { color: white !important; } .syntaxhighlighter .comments, .syntaxhighlighter .comments a { color: #696854 !important; } .syntaxhighlighter .string, .syntaxhighlighter .string a { color: #e3e658 !important; } .syntaxhighlighter .keyword { color: #d01d33 !important; } .syntaxhighlighter .preprocessor { color: #435a5f !important; } .syntaxhighlighter .variable { color: #898989 !important; } .syntaxhighlighter .value { color: #009900 !important; } .syntaxhighlighter .functions { color: #aaaaaa !important; } .syntaxhighlighter .constants { color: #96daff !important; } .syntaxhighlighter .script { font-weight: bold !important; color: #d01d33 !important; background-color: none !important; } .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { color: #ffc074 !important; } .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { color: #4a8cdb !important; } .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { color: #96daff !important; } .syntaxhighlighter .functions { font-weight: bold !important; }
Clouda-team/baiducdnstatic
libs/SyntaxHighlighter/3.0.83/styles/shThemeFadeToGrey.css
CSS
mit
2,912
// mksysnum_freebsd.pl // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // +build amd64,freebsd package unix const ( // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int SYS_EXIT = 1 // { void sys_exit(int rval); } exit \ SYS_FORK = 2 // { int fork(void); } SYS_READ = 3 // { ssize_t read(int fd, void *buf, \ SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, \ SYS_OPEN = 5 // { int open(char *path, int flags, int mode); } SYS_CLOSE = 6 // { int close(int fd); } SYS_WAIT4 = 7 // { int wait4(int pid, int *status, \ SYS_LINK = 9 // { int link(char *path, char *link); } SYS_UNLINK = 10 // { int unlink(char *path); } SYS_CHDIR = 12 // { int chdir(char *path); } SYS_FCHDIR = 13 // { int fchdir(int fd); } SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); } SYS_CHMOD = 15 // { int chmod(char *path, int mode); } SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); } SYS_OBREAK = 17 // { int obreak(char *nsize); } break \ SYS_GETPID = 20 // { pid_t getpid(void); } SYS_MOUNT = 21 // { int mount(char *type, char *path, \ SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); } SYS_SETUID = 23 // { int setuid(uid_t uid); } SYS_GETUID = 24 // { uid_t getuid(void); } SYS_GETEUID = 25 // { uid_t geteuid(void); } SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, \ SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, \ SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, \ SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, \ SYS_ACCEPT = 30 // { int accept(int s, \ SYS_GETPEERNAME = 31 // { int getpeername(int fdes, \ SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, \ SYS_ACCESS = 33 // { int access(char *path, int amode); } SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); } SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); } SYS_SYNC = 36 // { int sync(void); } SYS_KILL = 37 // { int kill(int pid, int signum); } SYS_GETPPID = 39 // { pid_t getppid(void); } SYS_DUP = 41 // { int dup(u_int fd); } SYS_PIPE = 42 // { int pipe(void); } SYS_GETEGID = 43 // { gid_t getegid(void); } SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \ SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, \ SYS_GETGID = 47 // { gid_t getgid(void); } SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int \ SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); } SYS_ACCT = 51 // { int acct(char *path); } SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, \ SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, \ SYS_REBOOT = 55 // { int reboot(int opt); } SYS_REVOKE = 56 // { int revoke(char *path); } SYS_SYMLINK = 57 // { int symlink(char *path, char *link); } SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, \ SYS_EXECVE = 59 // { int execve(char *fname, char **argv, \ SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args \ SYS_CHROOT = 61 // { int chroot(char *path); } SYS_MSYNC = 65 // { int msync(void *addr, size_t len, \ SYS_VFORK = 66 // { int vfork(void); } SYS_SBRK = 69 // { int sbrk(int incr); } SYS_SSTK = 70 // { int sstk(int incr); } SYS_OVADVISE = 72 // { int ovadvise(int anom); } vadvise \ SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); } SYS_MPROTECT = 74 // { int mprotect(const void *addr, size_t len, \ SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, \ SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \ SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, \ SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, \ SYS_GETPGRP = 81 // { int getpgrp(void); } SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); } SYS_SETITIMER = 83 // { int setitimer(u_int which, struct \ SYS_SWAPON = 85 // { int swapon(char *name); } SYS_GETITIMER = 86 // { int getitimer(u_int which, \ SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); } SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); } SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); } SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \ SYS_FSYNC = 95 // { int fsync(int fd); } SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, \ SYS_SOCKET = 97 // { int socket(int domain, int type, \ SYS_CONNECT = 98 // { int connect(int s, caddr_t name, \ SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); } SYS_BIND = 104 // { int bind(int s, caddr_t name, \ SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \ SYS_LISTEN = 106 // { int listen(int s, int backlog); } SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \ SYS_GETRUSAGE = 117 // { int getrusage(int who, \ SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \ SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, \ SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \ SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \ SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); } SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); } SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); } SYS_SETREGID = 127 // { int setregid(int rgid, int egid); } SYS_RENAME = 128 // { int rename(char *from, char *to); } SYS_FLOCK = 131 // { int flock(int fd, int how); } SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); } SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \ SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); } SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, \ SYS_MKDIR = 136 // { int mkdir(char *path, int mode); } SYS_RMDIR = 137 // { int rmdir(char *path); } SYS_UTIMES = 138 // { int utimes(char *path, \ SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \ SYS_SETSID = 147 // { int setsid(void); } SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \ SYS_LGETFH = 160 // { int lgetfh(char *fname, \ SYS_GETFH = 161 // { int getfh(char *fname, \ SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); } SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \ SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \ SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \ SYS_SETFIB = 175 // { int setfib(int fibnum); } SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } SYS_SETGID = 181 // { int setgid(gid_t gid); } SYS_SETEGID = 182 // { int setegid(gid_t egid); } SYS_SETEUID = 183 // { int seteuid(uid_t euid); } SYS_STAT = 188 // { int stat(char *path, struct stat *ub); } SYS_FSTAT = 189 // { int fstat(int fd, struct stat *sb); } SYS_LSTAT = 190 // { int lstat(char *path, struct stat *ub); } SYS_PATHCONF = 191 // { int pathconf(char *path, int name); } SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); } SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \ SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \ SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, \ SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, \ SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, \ SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, \ SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, \ SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, \ SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } SYS_UNDELETE = 205 // { int undelete(char *path); } SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); } SYS_GETPGID = 207 // { int getpgid(pid_t pid); } SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \ SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \ SYS_CLOCK_SETTIME = 233 // { int clock_settime( \ SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \ SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, \ SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); } SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, \ SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct \ SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); } SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \ SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( \ SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( \ SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,\ SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, \ SYS_RFORK = 251 // { int rfork(int flags); } SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \ SYS_ISSETUGID = 253 // { int issetugid(void); } SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); } SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \ SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); } SYS_LUTIMES = 276 // { int lutimes(char *path, \ SYS_NSTAT = 278 // { int nstat(char *path, struct nstat *ub); } SYS_NFSTAT = 279 // { int nfstat(int fd, struct nstat *sb); } SYS_NLSTAT = 280 // { int nlstat(char *path, struct nstat *ub); } SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \ SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \ SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, \ SYS_FHSTAT = 299 // { int fhstat(const struct fhandle *u_fhp, \ SYS_MODNEXT = 300 // { int modnext(int modid); } SYS_MODSTAT = 301 // { int modstat(int modid, \ SYS_MODFNEXT = 302 // { int modfnext(int modid); } SYS_MODFIND = 303 // { int modfind(const char *name); } SYS_KLDLOAD = 304 // { int kldload(const char *file); } SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); } SYS_KLDFIND = 306 // { int kldfind(const char *file); } SYS_KLDNEXT = 307 // { int kldnext(int fileid); } SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct \ SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); } SYS_GETSID = 310 // { int getsid(pid_t pid); } SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \ SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \ SYS_YIELD = 321 // { int yield(void); } SYS_MLOCKALL = 324 // { int mlockall(int how); } SYS_MUNLOCKALL = 325 // { int munlockall(void); } SYS___GETCWD = 326 // { int __getcwd(char *buf, u_int buflen); } SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, \ SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct \ SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int \ SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); } SYS_SCHED_YIELD = 331 // { int sched_yield (void); } SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); } SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); } SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, \ SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); } SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, \ SYS_JAIL = 338 // { int jail(struct jail *jail); } SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, \ SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); } SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); } SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, \ SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, \ SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \ SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \ SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, \ SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, \ SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \ SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, \ SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \ SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, \ SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \ SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \ SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \ SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \ SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \ SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \ SYS_KQUEUE = 362 // { int kqueue(void); } SYS_KEVENT = 363 // { int kevent(int fd, \ SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, \ SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, \ SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, \ SYS___SETUGID = 374 // { int __setugid(int flag); } SYS_EACCESS = 376 // { int eaccess(char *path, int amode); } SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, \ SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); } SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); } SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, \ SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, \ SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, \ SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, \ SYS_KENV = 390 // { int kenv(int what, const char *name, \ SYS_LCHFLAGS = 391 // { int lchflags(const char *path, \ SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, \ SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, \ SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, \ SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, \ SYS_STATFS = 396 // { int statfs(char *path, \ SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); } SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \ SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \ SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \ SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \ SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link( \ SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link( \ SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link( \ SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, \ SYS_SIGACTION = 416 // { int sigaction(int sig, \ SYS_SIGRETURN = 417 // { int sigreturn( \ SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); } SYS_SETCONTEXT = 422 // { int setcontext( \ SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, \ SYS_SWAPOFF = 424 // { int swapoff(const char *name); } SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, \ SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, \ SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, \ SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, \ SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, \ SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, \ SYS_THR_EXIT = 431 // { void thr_exit(long *state); } SYS_THR_SELF = 432 // { int thr_self(long *id); } SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); } SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); } SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \ SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \ SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \ SYS_THR_SUSPEND = 442 // { int thr_suspend( \ SYS_THR_WAKE = 443 // { int thr_wake(long id); } SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); } SYS_AUDIT = 445 // { int audit(const void *record, \ SYS_AUDITON = 446 // { int auditon(int cmd, void *data, \ SYS_GETAUID = 447 // { int getauid(uid_t *auid); } SYS_SETAUID = 448 // { int setauid(uid_t *auid); } SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); } SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); } SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr( \ SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr( \ SYS_AUDITCTL = 453 // { int auditctl(char *path); } SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \ SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \ SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); } SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); } SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); } SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \ SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); } SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \ SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \ SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \ SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \ SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \ SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \ SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, \ SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); } SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); } SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); } SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, \ SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); } SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); } SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \ SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, \ SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, \ SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, \ SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, \ SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, \ SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, \ SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, \ SYS_FSTATAT = 493 // { int fstatat(int fd, char *path, \ SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, \ SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, \ SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); } SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); } SYS_MKNODAT = 498 // { int mknodat(int fd, char *path, mode_t mode, \ SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, \ SYS_READLINKAT = 500 // { int readlinkat(int fd, char *path, char *buf, \ SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, \ SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \ SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); } SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); } SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \ SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \ SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); } SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); } SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); } SYS_CAP_NEW = 514 // { int cap_new(int fd, uint64_t rights); } SYS_CAP_GETRIGHTS = 515 // { int cap_getrights(int fd, \ SYS_CAP_ENTER = 516 // { int cap_enter(void); } SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); } SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); } SYS_PDKILL = 519 // { int pdkill(int fd, int signum); } SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); } SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \ SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, \ SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); } SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, \ SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, \ SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, \ SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, \ SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, \ SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \ SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \ SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \ SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \ SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \ SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \ SYS_ACCEPT4 = 541 // { int accept4(int s, \ SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); } SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \ SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \ )
steindornatorinn/nyaa
vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go
GO
mit
26,283
YUI.add('async-queue', function(Y) { /** * <p>AsyncQueue allows you create a chain of function callbacks executed * via setTimeout (or synchronously) that are guaranteed to run in order. * Items in the queue can be promoted or removed. Start or resume the * execution chain with run(). pause() to temporarily delay execution, or * stop() to halt and clear the queue.</p> * * @module async-queue */ /** * <p>A specialized queue class that supports scheduling callbacks to execute * sequentially, iteratively, even asynchronously.</p> * * <p>Callbacks can be function refs or objects with the following keys. Only * the <code>fn</code> key is required.</p> * * <ul> * <li><code>fn</code> -- The callback function</li> * <li><code>context</code> -- The execution context for the callbackFn.</li> * <li><code>args</code> -- Arguments to pass to callbackFn.</li> * <li><code>timeout</code> -- Millisecond delay before executing callbackFn. * (Applies to each iterative execution of callback)</li> * <li><code>iterations</code> -- Number of times to repeat the callback. * <li><code>until</code> -- Repeat the callback until this function returns * true. This setting trumps iterations.</li> * <li><code>autoContinue</code> -- Set to false to prevent the AsyncQueue from * executing the next callback in the Queue after * the callback completes.</li> * <li><code>id</code> -- Name that can be used to get, promote, get the * indexOf, or delete this callback.</li> * </ul> * * @class AsyncQueue * @extends EventTarget * @constructor * @param callback* {Function|Object} 0..n callbacks to seed the queue */ Y.AsyncQueue = function() { this._init(); this.add.apply(this, arguments); }; var Queue = Y.AsyncQueue, EXECUTE = 'execute', SHIFT = 'shift', PROMOTE = 'promote', REMOVE = 'remove', isObject = Y.Lang.isObject, isFunction = Y.Lang.isFunction; /** * <p>Static default values used to populate callback configuration properties. * Preconfigured defaults include:</p> * * <ul> * <li><code>autoContinue</code>: <code>true</code></li> * <li><code>iterations</code>: 1</li> * <li><code>timeout</code>: 10 (10ms between callbacks)</li> * <li><code>until</code>: (function to run until iterations &lt;= 0)</li> * </ul> * * @property AsyncQueue.defaults * @type {Object} * @static */ Queue.defaults = Y.mix({ autoContinue : true, iterations : 1, timeout : 10, until : function () { this.iterations |= 0; return this.iterations <= 0; } }, Y.config.queueDefaults || {}); Y.extend(Queue, Y.EventTarget, { /** * Used to indicate the queue is currently executing a callback. * * @property _running * @type {Boolean|Object} true for synchronous callback execution, the * return handle from Y.later for async callbacks. * Otherwise false. * @protected */ _running : false, /** * Initializes the AsyncQueue instance properties and events. * * @method _init * @protected */ _init : function () { Y.EventTarget.call(this, { emitFacade: true }); this._q = []; /** * Callback defaults for this instance. Static defaults that are not * overridden are also included. * * @property defaults * @type {Object} */ this.defaults = {}; this._initEvents(); }, /** * Initializes the instance events. * * @method _initEvents * @protected */ _initEvents : function () { this.publish({ 'execute' : { defaultFn : this._defExecFn, emitFacade: true }, 'shift' : { defaultFn : this._defShiftFn, emitFacade: true }, 'add' : { defaultFn : this._defAddFn, emitFacade: true }, 'promote' : { defaultFn : this._defPromoteFn, emitFacade: true }, 'remove' : { defaultFn : this._defRemoveFn, emitFacade: true } }); }, /** * Returns the next callback needing execution. If a callback is * configured to repeat via iterations or until, it will be returned until * the completion criteria is met. * * When the queue is empty, null is returned. * * @method next * @return {Function} the callback to execute */ next : function () { var callback; while (this._q.length) { callback = this._q[0] = this._prepare(this._q[0]); if (callback && callback.until()) { this.fire(SHIFT, { callback: callback }); callback = null; } else { break; } } return callback || null; }, /** * Default functionality for the &quot;shift&quot; event. Shifts the * callback stored in the event object's <em>callback</em> property from * the queue if it is the first item. * * @method _defShiftFn * @param e {Event} The event object * @protected */ _defShiftFn : function (e) { if (this.indexOf(e.callback) === 0) { this._q.shift(); } }, /** * Creates a wrapper function to execute the callback using the aggregated * configuration generated by combining the static AsyncQueue.defaults, the * instance defaults, and the specified callback settings. * * The wrapper function is decorated with the callback configuration as * properties for runtime modification. * * @method _prepare * @param callback {Object|Function} the raw callback * @return {Function} a decorated function wrapper to execute the callback * @protected */ _prepare: function (callback) { if (isFunction(callback) && callback._prepared) { return callback; } var config = Y.merge( Queue.defaults, { context : this, args: [], _prepared: true }, this.defaults, (isFunction(callback) ? { fn: callback } : callback)), wrapper = Y.bind(function () { if (!wrapper._running) { wrapper.iterations--; } if (isFunction(wrapper.fn)) { wrapper.fn.apply(wrapper.context || Y, Y.Array(wrapper.args)); } }, this); return Y.mix(wrapper, config); }, /** * Sets the queue in motion. All queued callbacks will be executed in * order unless pause() or stop() is called or if one of the callbacks is * configured with autoContinue: false. * * @method run * @return {AsyncQueue} the AsyncQueue instance * @chainable */ run : function () { var callback, cont = true; for (callback = this.next(); cont && callback && !this.isRunning(); callback = this.next()) { cont = (callback.timeout < 0) ? this._execute(callback) : this._schedule(callback); } if (!callback) { /** * Event fired after the last queued callback is executed. * @event complete */ this.fire('complete'); } return this; }, /** * Handles the execution of callbacks. Returns a boolean indicating * whether it is appropriate to continue running. * * @method _execute * @param callback {Object} the callback object to execute * @return {Boolean} whether the run loop should continue * @protected */ _execute : function (callback) { this._running = callback._running = true; callback.iterations--; this.fire(EXECUTE, { callback: callback }); var cont = this._running && callback.autoContinue; this._running = callback._running = false; return cont; }, /** * Schedules the execution of asynchronous callbacks. * * @method _schedule * @param callback {Object} the callback object to execute * @return {Boolean} whether the run loop should continue * @protected */ _schedule : function (callback) { this._running = Y.later(callback.timeout, this, function () { if (this._execute(callback)) { this.run(); } }); return false; }, /** * Determines if the queue is waiting for a callback to complete execution. * * @method isRunning * @return {Boolean} true if queue is waiting for a * from any initiated transactions */ isRunning : function () { return !!this._running; }, /** * Default functionality for the &quot;execute&quot; event. Executes the * callback function * * @method _defExecFn * @param e {Event} the event object * @protected */ _defExecFn : function (e) { e.callback(); }, /** * Add any number of callbacks to the end of the queue. Callbacks may be * provided as functions or objects. * * @method add * @param callback* {Function|Object} 0..n callbacks * @return {AsyncQueue} the AsyncQueue instance * @chainable */ add : function () { this.fire('add', { callbacks: Y.Array(arguments,0,true) }); return this; }, /** * Default functionality for the &quot;add&quot; event. Adds the callbacks * in the event facade to the queue. Callbacks successfully added to the * queue are present in the event's <code>added</code> property in the * after phase. * * @method _defAddFn * @param e {Event} the event object * @protected */ _defAddFn : function(e) { var _q = this._q, added = []; Y.Array.each(e.callbacks, function (c) { if (isObject(c)) { _q.push(c); added.push(c); } }); e.added = added; }, /** * Pause the execution of the queue after the execution of the current * callback completes. If called from code outside of a queued callback, * clears the timeout for the pending callback. Paused queue can be * restarted with q.run() * * @method pause * @return {AsyncQueue} the AsyncQueue instance * @chainable */ pause: function () { if (isObject(this._running)) { this._running.cancel(); } this._running = false; return this; }, /** * Stop and clear the queue after the current execution of the * current callback completes. * * @method stop * @return {AsyncQueue} the AsyncQueue instance * @chainable */ stop : function () { this._q = []; return this.pause(); }, /** * Returns the current index of a callback. Pass in either the id or * callback function from getCallback. * * @method indexOf * @param callback {String|Function} the callback or its specified id * @return {Number} index of the callback or -1 if not found */ indexOf : function (callback) { var i = 0, len = this._q.length, c; for (; i < len; ++i) { c = this._q[i]; if (c === callback || c.id === callback) { return i; } } return -1; }, /** * Retrieve a callback by its id. Useful to modify the configuration * while the queue is running. * * @method getCallback * @param id {String} the id assigned to the callback * @return {Object} the callback object */ getCallback : function (id) { var i = this.indexOf(id); return (i > -1) ? this._q[i] : null; }, /** * Promotes the named callback to the top of the queue. If a callback is * currently executing or looping (via until or iterations), the promotion * is scheduled to occur after the current callback has completed. * * @method promote * @param callback {String|Object} the callback object or a callback's id * @return {AsyncQueue} the AsyncQueue instance * @chainable */ promote : function (callback) { var payload = { callback : callback },e; if (this.isRunning()) { e = this.after(SHIFT, function () { this.fire(PROMOTE, payload); e.detach(); }, this); } else { this.fire(PROMOTE, payload); } return this; }, /** * <p>Default functionality for the &quot;promote&quot; event. Promotes the * named callback to the head of the queue.</p> * * <p>The event object will contain a property &quot;callback&quot;, which * holds the id of a callback or the callback object itself.</p> * * @method _defPromoteFn * @param e {Event} the custom event * @protected */ _defPromoteFn : function (e) { var i = this.indexOf(e.callback), promoted = (i > -1) ? this._q.splice(i,1)[0] : null; e.promoted = promoted; if (promoted) { this._q.unshift(promoted); } }, /** * Removes the callback from the queue. If the queue is active, the * removal is scheduled to occur after the current callback has completed. * * @method remove * @param callback {String|Object} the callback object or a callback's id * @return {AsyncQueue} the AsyncQueue instance * @chainable */ remove : function (callback) { var payload = { callback : callback },e; // Can't return the removed callback because of the deferral until // current callback is complete if (this.isRunning()) { e = this.after(SHIFT, function () { this.fire(REMOVE, payload); e.detach(); },this); } else { this.fire(REMOVE, payload); } return this; }, /** * <p>Default functionality for the &quot;remove&quot; event. Removes the * callback from the queue.</p> * * <p>The event object will contain a property &quot;callback&quot;, which * holds the id of a callback or the callback object itself.</p> * * @method _defRemoveFn * @param e {Event} the custom event * @protected */ _defRemoveFn : function (e) { var i = this.indexOf(e.callback); e.removed = (i > -1) ? this._q.splice(i,1)[0] : null; }, /** * Returns the number of callbacks in the queue. * * @method size * @return {Number} */ size : function () { // next() flushes callbacks that have met their until() criteria and // therefore shouldn't count since they wouldn't execute anyway. if (!this.isRunning()) { this.next(); } return this._q.length; } }); }, '@VERSION@' ,{requires:['event-custom']});
khasinski/cdnjs
ajax/libs/yui/3.3.0pr1/async-queue/async-queue-debug.js
JavaScript
mit
15,366
.yui3-slider,.yui3-slider-rail{display:-moz-inline-stack;display:inline-block;*display:inline;zoom:1;vertical-align:middle;}.yui3-slider-content{position:relative;display:block;}.yui3-slider-rail{position:relative;}.yui3-slider-rail-cap-top,.yui3-slider-rail-cap-left,.yui3-slider-rail-cap-bottom,.yui3-slider-rail-cap-right,.yui3-slider-thumb,.yui3-slider-thumb-image,.yui3-slider-thumb-shadow{position:absolute;}.yui3-slider-thumb{overflow:hidden;}.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail,.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail-cap-left,.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail-cap-right{background-image:url(rail-x.png);background-repeat:repeat-x;background-repeat:repeat-x;}.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail{height:25px;}.yui3-skin-capsule .yui3-slider-x .yui3-slider-thumb{height:30px;width:14px;}.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail-cap-left{background-position:0 -20px;height:20px;left:-2px;width:5px;}.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail-cap-right{background-position:0 -40px;height:20px;right:-2px;width:5px;}.yui3-skin-capsule .yui3-slider-x .yui3-slider-thumb-image{left:0;top:-10px;}.yui3-skin-capsule .yui3-slider-x .yui3-slider-thumb-shadow{left:0;opacity:.15;filter:alpha(opacity=15);top:-50px;}.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail,.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail-cap-top,.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail-cap-bottom{background-image:url(rail-y.png);background-repeat:repeat-y;background-repeat:repeat-y;}.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail{width:25px;}.yui3-skin-capsule .yui3-slider-y .yui3-slider-thumb{width:30px;height:14px;}.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail-cap-top{background-position:-20px 0;width:20px;top:-2px;height:5px;}.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail-cap-bottom{background-position:-40px 0;width:20px;bottom:-2px;height:5px;}.yui3-skin-capsule .yui3-slider-y .yui3-slider-thumb-image{left:-10px;top:0;}.yui3-skin-capsule .yui3-slider-y .yui3-slider-thumb-shadow{left:-50px;opacity:.15;filter:alpha(opacity=15);top:0;}
x112358/cdnjs
ajax/libs/yui/3.3.0pr3/slider/assets/skins/capsule/slider.css
CSS
mit
2,135
.yui3-slider,.yui3-slider-rail{display:-moz-inline-stack;display:inline-block;*display:inline;zoom:1;vertical-align:middle;}.yui3-slider-content{position:relative;display:block;}.yui3-slider-rail{position:relative;}.yui3-slider-rail-cap-top,.yui3-slider-rail-cap-left,.yui3-slider-rail-cap-bottom,.yui3-slider-rail-cap-right,.yui3-slider-thumb,.yui3-slider-thumb-image,.yui3-slider-thumb-shadow{position:absolute;}.yui3-slider-thumb{overflow:hidden;}.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail,.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail-cap-left,.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail-cap-right{background-image:url(rail-x.png);background-repeat:repeat-x;background-repeat:repeat-x;}.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail{height:25px;}.yui3-skin-capsule .yui3-slider-x .yui3-slider-thumb{height:30px;width:14px;}.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail-cap-left{background-position:0 -20px;height:20px;left:-2px;width:5px;}.yui3-skin-capsule .yui3-slider-x .yui3-slider-rail-cap-right{background-position:0 -40px;height:20px;right:-2px;width:5px;}.yui3-skin-capsule .yui3-slider-x .yui3-slider-thumb-image{left:0;top:-10px;}.yui3-skin-capsule .yui3-slider-x .yui3-slider-thumb-shadow{left:0;opacity:.15;filter:alpha(opacity=15);top:-50px;}.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail,.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail-cap-top,.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail-cap-bottom{background-image:url(rail-y.png);background-repeat:repeat-y;background-repeat:repeat-y;}.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail{width:25px;}.yui3-skin-capsule .yui3-slider-y .yui3-slider-thumb{width:30px;height:14px;}.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail-cap-top{background-position:-20px 0;width:20px;top:-2px;height:5px;}.yui3-skin-capsule .yui3-slider-y .yui3-slider-rail-cap-bottom{background-position:-40px 0;width:20px;bottom:-2px;height:5px;}.yui3-skin-capsule .yui3-slider-y .yui3-slider-thumb-image{left:-10px;top:0;}.yui3-skin-capsule .yui3-slider-y .yui3-slider-thumb-shadow{left:-50px;opacity:.15;filter:alpha(opacity=15);top:0;}
hanbyul-here/cdnjs
ajax/libs/yui/3.3.0/slider/assets/skins/capsule/slider.css
CSS
mit
2,135
YUI.add("dd-ddm-base",function(e,t){var n=function(){n.superclass.constructor.apply(this,arguments)};n.NAME="ddm",n.ATTRS={dragCursor:{value:"move"},clickPixelThresh:{value:3},clickTimeThresh:{value:1e3},throttleTime:{value:-1},dragMode:{value:"point",setter:function(e){return this._setDragMode(e),e}}},e.extend(n,e.Base,{_createPG:function(){},_active:null,_setDragMode:function(t){t===null&&(t=e.DD.DDM.get("dragMode"));switch(t){case 1:case"intersect":return 1;case 2:case"strict":return 2;case 0:case"point":return 0}return 0},CSS_PREFIX:e.ClassNameManager.getClassName("dd"),_activateTargets:function(){},_drags:[],activeDrag:!1,_regDrag:function(e){return this.getDrag(e.get("node"))?!1:(this._active||this._setupListeners(),this._drags.push(e),!0)},_unregDrag:function(t){var n=[];e.Array.each(this._drags,function(e){e!==t&&(n[n.length]=e)}),this._drags=n},_setupListeners:function(){this._createPG(),this._active=!0;var t=e.one(e.config.doc);t.on("mousemove",e.throttle(e.bind(this._docMove,this),this.get("throttleTime"))),t.on("mouseup",e.bind(this._end,this))},_start:function(){this.fire("ddm:start"),this._startDrag()},_startDrag:function(){},_endDrag:function(){},_dropMove:function(){},_end:function(){this.activeDrag&&(this._shimming=!1,this._endDrag(),this.fire("ddm:end"),this.activeDrag.end.call(this.activeDrag),this.activeDrag=null)},stopDrag:function(){return this.activeDrag&&this._end(),this},_shimming:!1,_docMove:function(e){this._shimming||this._move(e)},_move:function(e){this.activeDrag&&(this.activeDrag._move.call(this.activeDrag,e),this._dropMove())},cssSizestoObject:function(e){var t=e.split(" ");switch(t.length){case 1:t[1]=t[2]=t[3]=t[0];break;case 2:t[2]=t[0],t[3]=t[1];break;case 3:t[3]=t[1]}return{top:parseInt(t[0],10),right:parseInt(t[1],10),bottom:parseInt(t[2],10),left:parseInt(t[3],10)}},getDrag:function(t){var n=!1,r=e.one(t);return r instanceof e.Node&&e.Array.each(this._drags,function(e){r.compareTo(e.get("node"))&&(n=e)}),n},swapPosition:function(t,n){t=e.DD.DDM.getNode(t),n=e.DD.DDM.getNode(n);var r=t.getXY(),i=n.getXY();return t.setXY(i),n.setXY(r),t},getNode:function(t){return t instanceof e.Node?t:(t&&t.get?e.Widget&&t instanceof e.Widget?t=t.get("boundingBox"):t=t.get("node"):t=e.one(t),t)},swapNode:function(t,n){t=e.DD.DDM.getNode(t),n=e.DD.DDM.getNode(n);var r=n.get("parentNode"),i=n.get("nextSibling");return i===t?r.insertBefore(t,n):n===t.get("nextSibling")?r.insertBefore(n,t):(t.get("parentNode").replaceChild(n,t),r.insertBefore(t,i)),t}}),e.namespace("DD"),e.DD.DDM=new n},"@VERSION@",{requires:["node","base","yui-throttle","classnamemanager"]});
brunoksato/cdnjs
ajax/libs/yui/3.9.1/dd-ddm-base/dd-ddm-base-min.js
JavaScript
mit
2,624
/* * Jssor 18.0 * http://www.jssor.com/ * * TERMS OF USE - Jssor * * Copyright 2014 Jssor * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*! Jssor */ //$JssorDebug$ var $JssorDebug$ = new function () { this.$DebugMode = true; // Methods this.$Log = function (msg, important) { var console = window.console || {}; var debug = this.$DebugMode; if (debug && console.log) { console.log(msg); } else if (debug && important) { alert(msg); } }; this.$Error = function (msg, e) { var console = window.console || {}; var debug = this.$DebugMode; if (debug && console.error) { console.error(msg); } else if (debug) { alert(msg); } if (debug) { // since we're debugging, fail fast by crashing throw e || new Error(msg); } }; this.$Fail = function (msg) { throw new Error(msg); }; this.$Assert = function (value, msg) { var debug = this.$DebugMode; if (debug) { if (!value) throw new Error("Assert failed " + msg || ""); } }; this.$Trace = function (msg) { var console = window.console || {}; var debug = this.$DebugMode; if (debug && console.log) { console.log(msg); } }; this.$Execute = function (func) { var debug = this.$DebugMode; if (debug) func(); }; this.$LiveStamp = function (obj, id) { var debug = this.$DebugMode; if (debug) { var stamp = document.createElement("DIV"); stamp.setAttribute("id", id); obj.$Live = stamp; } }; this.$C_AbstractMethod = function () { /// <summary> /// Tells compiler the method is abstract, it should be implemented by subclass. /// </summary> throw new Error("The method is abstract, it should be implemented by subclass."); }; function C_AbstractClass (instance) { /// <summary> /// Tells compiler the class is abstract, it should be implemented by subclass. /// </summary> if(instance.constructor === C_AbstractClass.caller) throw new Error("Cannot create instance of an abstract class."); } this.$C_AbstractClass = C_AbstractClass; }; //$JssorEasing$ var $JssorEasing$ = window.$JssorEasing$ = { $EaseLinear: function (t) { return t; }, $EaseGoBack: function (t) { return 1 - Math.abs((t *= 2) - 1); }, $EaseSwing: function (t) { return -Math.cos(t * Math.PI) / 2 + .5; }, $EaseInQuad: function (t) { return t * t; }, $EaseOutQuad: function (t) { return -t * (t - 2); }, $EaseInOutQuad: function (t) { return (t *= 2) < 1 ? 1 / 2 * t * t : -1 / 2 * (--t * (t - 2) - 1); }, $EaseInCubic: function (t) { return t * t * t; }, $EaseOutCubic: function (t) { return (t -= 1) * t * t + 1; }, $EaseInOutCubic: function (t) { return (t *= 2) < 1 ? 1 / 2 * t * t * t : 1 / 2 * ((t -= 2) * t * t + 2); }, $EaseInQuart: function (t) { return t * t * t * t; }, $EaseOutQuart: function (t) { return -((t -= 1) * t * t * t - 1); }, $EaseInOutQuart: function (t) { return (t *= 2) < 1 ? 1 / 2 * t * t * t * t : -1 / 2 * ((t -= 2) * t * t * t - 2); }, $EaseInQuint: function (t) { return t * t * t * t * t; }, $EaseOutQuint: function (t) { return (t -= 1) * t * t * t * t + 1; }, $EaseInOutQuint: function (t) { return (t *= 2) < 1 ? 1 / 2 * t * t * t * t * t : 1 / 2 * ((t -= 2) * t * t * t * t + 2); }, $EaseInSine: function (t) { return 1 - Math.cos(t * Math.PI / 2); }, $EaseOutSine: function (t) { return Math.sin(t * Math.PI / 2); }, $EaseInOutSine: function (t) { return -1 / 2 * (Math.cos(Math.PI * t) - 1); }, $EaseInExpo: function (t) { return t == 0 ? 0 : Math.pow(2, 10 * (t - 1)); }, $EaseOutExpo: function (t) { return t == 1 ? 1 : -Math.pow(2, -10 * t) + 1; }, $EaseInOutExpo: function (t) { return t == 0 || t == 1 ? t : (t *= 2) < 1 ? 1 / 2 * Math.pow(2, 10 * (t - 1)) : 1 / 2 * (-Math.pow(2, -10 * --t) + 2); }, $EaseInCirc: function (t) { return -(Math.sqrt(1 - t * t) - 1); }, $EaseOutCirc: function (t) { return Math.sqrt(1 - (t -= 1) * t); }, $EaseInOutCirc: function (t) { return (t *= 2) < 1 ? -1 / 2 * (Math.sqrt(1 - t * t) - 1) : 1 / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1); }, $EaseInElastic: function (t) { if (!t || t == 1) return t; var p = .3, s = .075; return -(Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * 2 * Math.PI / p)); }, $EaseOutElastic: function (t) { if (!t || t == 1) return t; var p = .3, s = .075; return Math.pow(2, -10 * t) * Math.sin((t - s) * 2 * Math.PI / p) + 1; }, $EaseInOutElastic: function (t) { if (!t || t == 1) return t; var p = .45, s = .1125; return (t *= 2) < 1 ? -.5 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * 2 * Math.PI / p) : Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * 2 * Math.PI / p) * .5 + 1; }, $EaseInBack: function (t) { var s = 1.70158; return t * t * ((s + 1) * t - s); }, $EaseOutBack: function (t) { var s = 1.70158; return (t -= 1) * t * ((s + 1) * t + s) + 1; }, $EaseInOutBack: function (t) { var s = 1.70158; return (t *= 2) < 1 ? 1 / 2 * t * t * (((s *= 1.525) + 1) * t - s) : 1 / 2 * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2); }, $EaseInBounce: function (t) { return 1 - $JssorEasing$.$EaseOutBounce(1 - t) }, $EaseOutBounce: function (t) { return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375; }, $EaseInOutBounce: function (t) { return t < 1 / 2 ? $JssorEasing$.$EaseInBounce(t * 2) * .5 : $JssorEasing$.$EaseOutBounce(t * 2 - 1) * .5 + .5; }, $EaseInWave: function (t) { return 1 - Math.cos(t * Math.PI * 2) }, $EaseOutWave: function (t) { return Math.sin(t * Math.PI * 2); }, $EaseOutJump: function (t) { return 1 - (((t *= 2) < 1) ? (t = 1 - t) * t * t : (t -= 1) * t * t); }, $EaseInJump: function (t) { return ((t *= 2) < 1) ? t * t * t : (t = 2 - t) * t * t; } }; var $JssorDirection$ = window.$JssorDirection$ = { $TO_LEFT: 0x0001, $TO_RIGHT: 0x0002, $TO_TOP: 0x0004, $TO_BOTTOM: 0x0008, $HORIZONTAL: 0x0003, $VERTICAL: 0x000C, $LEFTRIGHT: 0x0003, $TOPBOTOM: 0x000C, $TOPLEFT: 0x0005, $TOPRIGHT: 0x0006, $BOTTOMLEFT: 0x0009, $BOTTOMRIGHT: 0x000A, $AROUND: 0x000F, $GetDirectionHorizontal: function (direction) { return direction & 0x0003; }, $GetDirectionVertical: function (direction) { return direction & 0x000C; }, $ChessHorizontal: function (direction) { return (~direction & 0x0003) + (direction & 0x000C); }, $ChessVertical: function (direction) { return (~direction & 0x000C) + (direction & 0x0003); }, $IsToLeft: function (direction) { return (direction & 0x0003) == 0x0001; }, $IsToRight: function (direction) { return (direction & 0x0003) == 0x0002; }, $IsToTop: function (direction) { return (direction & 0x000C) == 0x0004; }, $IsToBottom: function (direction) { return (direction & 0x000C) == 0x0008; }, $IsHorizontal: function (direction) { return (direction & 0x0003) > 0; }, $IsVertical: function (direction) { return (direction & 0x000C) > 0; } }; var $JssorKeyCode$ = { $BACKSPACE: 8, $COMMA: 188, $DELETE: 46, $DOWN: 40, $END: 35, $ENTER: 13, $ESCAPE: 27, $HOME: 36, $LEFT: 37, $NUMPAD_ADD: 107, $NUMPAD_DECIMAL: 110, $NUMPAD_DIVIDE: 111, $NUMPAD_ENTER: 108, $NUMPAD_MULTIPLY: 106, $NUMPAD_SUBTRACT: 109, $PAGE_DOWN: 34, $PAGE_UP: 33, $PERIOD: 190, $RIGHT: 39, $SPACE: 32, $TAB: 9, $UP: 38 }; var $JssorAlignment$ = { $TopLeft: 0x11, $TopCenter: 0x12, $TopRight: 0x14, $MiddleLeft: 0x21, $MiddleCenter: 0x22, $MiddleRight: 0x24, $BottomLeft: 0x41, $BottomCenter: 0x42, $BottomRight: 0x44, $IsTop: function (aligment) { return aligment & 0x10 > 0; }, $IsMiddle: function (alignment) { return alignment & 0x20 > 0; }, $IsBottom: function (alignment) { return alignment & 0x40 > 0; }, $IsLeft: function (alignment) { return alignment & 0x01 > 0; }, $IsCenter: function (alignment) { return alignment & 0x02 > 0; }, $IsRight: function (alignment) { return alignment & 0x04 > 0; } }; var $JssorMatrix$; var $JssorAnimator$; // $Jssor$ is a static class, so make it singleton instance var $Jssor$ = window.$Jssor$ = new function () { // Fields var _This = this; var REGEX_WHITESPACE_GLOBAL = /\S+/g; var ROWSER_UNKNOWN = 0; var BROWSER_IE = 1; var BROWSER_FIREFOX = 2; var BROWSER_FIREFOX = 3; var BROWSER_CHROME = 4; var BROWSER_OPERA = 5; //var arrActiveX = ["Msxml2.XMLHTTP", "Msxml3.XMLHTTP", "Microsoft.XMLHTTP"]; var browser = 0; var browserRuntimeVersion = 0; var browserEngineVersion = 0; var browserJavascriptVersion = 0; var webkitVersion = 0; var app = navigator.appName; var ver = navigator.appVersion; var ua = navigator.userAgent; var _DocElmt = document.documentElement; var _TransformProperty; function DetectBrowser() { if (!browser) { if (app == "Microsoft Internet Explorer" && !!window.attachEvent && !!window.ActiveXObject) { var ieOffset = ua.indexOf("MSIE"); browser = BROWSER_IE; browserEngineVersion = ParseFloat(ua.substring(ieOffset + 5, ua.indexOf(";", ieOffset))); //check IE javascript version /*@cc_on browserJavascriptVersion = @_jscript_version; @*/ // update: for intranet sites and compat view list sites, IE sends // an IE7 User-Agent to the server to be interoperable, and even if // the page requests a later IE version, IE will still report the // IE7 UA to JS. we should be robust to self //var docMode = document.documentMode; //if (typeof docMode !== "undefined") { // browserRuntimeVersion = docMode; //} browserRuntimeVersion = document.documentMode || browserEngineVersion; } else if (app == "Netscape" && !!window.addEventListener) { var ffOffset = ua.indexOf("Firefox"); var saOffset = ua.indexOf("Safari"); var chOffset = ua.indexOf("Chrome"); var webkitOffset = ua.indexOf("AppleWebKit"); if (ffOffset >= 0) { browser = BROWSER_FIREFOX; browserRuntimeVersion = ParseFloat(ua.substring(ffOffset + 8)); } else if (saOffset >= 0) { var slash = ua.substring(0, saOffset).lastIndexOf("/"); browser = (chOffset >= 0) ? BROWSER_CHROME : BROWSER_FIREFOX; browserRuntimeVersion = ParseFloat(ua.substring(slash + 1, saOffset)); } if (webkitOffset >= 0) webkitVersion = ParseFloat(ua.substring(webkitOffset + 12)); } else { var match = /(opera)(?:.*version|)[ \/]([\w.]+)/i.exec(ua); if (match) { browser = BROWSER_OPERA; browserRuntimeVersion = ParseFloat(match[2]); } } } } function IsBrowserIE() { DetectBrowser(); return browser == BROWSER_IE; } function IsBrowserIeQuirks() { return IsBrowserIE() && (browserRuntimeVersion < 6 || document.compatMode == "BackCompat"); //Composite to "CSS1Compat" } function IsBrowserFireFox() { DetectBrowser(); return browser == BROWSER_FIREFOX; } function IsBrowserSafari() { DetectBrowser(); return browser == BROWSER_FIREFOX; } function IsBrowserChrome() { DetectBrowser(); return browser == BROWSER_CHROME; } function IsBrowserOpera() { DetectBrowser(); return browser == BROWSER_OPERA; } function IsBrowserBadTransform() { return IsBrowserSafari() && (webkitVersion > 534) && (webkitVersion < 535); } function IsBrowserIe9Earlier() { return IsBrowserIE() && browserRuntimeVersion < 9; } function GetTransformProperty(elmt) { if (!_TransformProperty) { // Note that in some versions of IE9 it is critical that // msTransform appear in this list before MozTransform each(['transform', 'WebkitTransform', 'msTransform', 'MozTransform', 'OTransform'], function (property) { if (elmt.style[property] != undefined) { _TransformProperty = property; return true; } }); _TransformProperty = _TransformProperty || "transform"; } return _TransformProperty; } // Helpers function getOffsetParent(elmt, isFixed) { // IE and Opera "fixed" position elements don't have offset parents. // regardless, if it's fixed, its offset parent is the body. if (isFixed && elmt != document.body) { return document.body; } else { return elmt.offsetParent; } } function toString(obj) { return Object.prototype.toString.call(obj); } // [[Class]] -> type pairs var class2type; function each(object, callback) { if (toString(object) == "[object Array]") { for (var i = 0; i < object.length; i++) { if (callback(object[i], i, object)) { return true; } } } else { for (var name in object) { if (callback(object[name], name, object)) { return true; } } } } function GetClass2Type() { if (!class2type) { class2type = {}; each(["Boolean", "Number", "String", "Function", "Array", "Date", "RegExp", "Object"], function (name) { class2type["[object " + name + "]"] = name.toLowerCase(); }); } return class2type; } function type(obj) { return obj == null ? String(obj) : GetClass2Type()[toString(obj)] || "object"; } function isPlainObject(obj) { // Must be an Object. // Because of IE, we also have to check the presence of the constructor property. // Make sure that DOM nodes and window objects don't pass through, as well if (!obj || type(obj) !== "object" || obj.nodeType || _This.$IsWindow(obj)) { return false; } var hasOwn = Object.prototype.hasOwnProperty; try { // Not own constructor property must be Object if (obj.constructor && !hasOwn.call(obj, "constructor") && !hasOwn.call(obj.constructor.prototype, "isPrototypeOf")) { return false; } } catch (e) { // IE8,9 Will throw exceptions on certain host objects #9897 return false; } // Own properties are enumerated firstly, so to speed up, // if last one is own, then all properties are own. var key; for (key in obj) { } return key === undefined || hasOwn.call(obj, key); } function Point(x, y) { return { x: x, y: y }; } function Delay(code, delay) { setTimeout(code, delay || 0); } function RemoveByReg(str, reg) { var m = reg.exec(str); if (m) { var header = str.substr(0, m.index); var tailer = str.substr(m.lastIndex + 1, str.length - (m.lastIndex + 1)); str = header + tailer; } return str; } function BuildNewCss(oldCss, removeRegs, replaceValue) { var css = (!oldCss || oldCss == "inherit") ? "" : oldCss; each(removeRegs, function (removeReg) { var m = removeReg.exec(css); if (m) { var header = css.substr(0, m.index); var tailer = css.substr(m.lastIndex + 1, css.length - (m.lastIndex + 1)); css = header + tailer; } }); css = replaceValue + (css.indexOf(" ") != 0 ? " " : "") + css; return css; } function SetStyleFilterIE(elmt, value) { if (browserRuntimeVersion < 9) { elmt.style.filter = value; } } function SetStyleMatrixIE(elmt, matrix, offset) { //matrix is not for ie9+ running in ie8- mode if (browserJavascriptVersion < 9) { var oldFilterValue = elmt.style.filter; var matrixReg = new RegExp(/[\s]*progid:DXImageTransform\.Microsoft\.Matrix\([^\)]*\)/g); var matrixValue = matrix ? "progid:DXImageTransform.Microsoft.Matrix(" + "M11=" + matrix[0][0] + ", M12=" + matrix[0][1] + ", M21=" + matrix[1][0] + ", M22=" + matrix[1][1] + ", SizingMethod='auto expand')" : ""; var newFilterValue = BuildNewCss(oldFilterValue, [matrixReg], matrixValue); SetStyleFilterIE(elmt, newFilterValue); _This.$CssMarginTop(elmt, offset.y); _This.$CssMarginLeft(elmt, offset.x); } } // Methods _This.$IsBrowserIE = IsBrowserIE; _This.$IsBrowserIeQuirks = IsBrowserIeQuirks; _This.$IsBrowserFireFox = IsBrowserFireFox; _This.$IsBrowserSafari = IsBrowserSafari; _This.$IsBrowserChrome = IsBrowserChrome; _This.$IsBrowserOpera = IsBrowserOpera; _This.$IsBrowserBadTransform = IsBrowserBadTransform; _This.$IsBrowserIe9Earlier = IsBrowserIe9Earlier; _This.$BrowserVersion = function () { return browserRuntimeVersion; }; _This.$BrowserEngineVersion = function () { return browserEngineVersion || browserRuntimeVersion; }; _This.$WebKitVersion = function () { DetectBrowser(); return webkitVersion; }; _This.$Delay = Delay; _This.$Inherit = function (instance, baseClass) { baseClass.apply(instance, [].slice.call(arguments, 2)); return Extend({}, instance); }; function Construct(instance, constructor) { instance.constructor === Construct.caller && instance.$Construct && instance.$Construct(); } _This.$Construct = Construct; _This.$GetElement = function (elmt) { if (_This.$IsString(elmt)) { elmt = document.getElementById(elmt); } return elmt; }; function GetEvent(event) { return event || window.event; } GetEvent = GetEvent; _This.$EventSrc = function (event) { event = GetEvent(event); return event.target || event.srcElement || document; }; _This.$EventDst = function (event) { event = GetEvent(event); return event.relatedTarget || event.toElement; }; _This.$MousePosition = function (event) { event = GetEvent(event); var body = document.body; return { x: event.pageX || event.clientX + (_DocElmt.scrollLeft || body.scrollLeft || 0) - (_DocElmt.clientLeft || body.clientLeft || 0) || 0, y: event.pageY || event.clientY + (_DocElmt.scrollTop || body.scrollTop || 0) - (_DocElmt.clientTop || body.clientTop || 0) || 0 }; }; _This.$PageScroll = function () { var body = document.body; return { x: (window.pageXOffset || _DocElmt.scrollLeft || body.scrollLeft || 0) - (_DocElmt.clientLeft || body.clientLeft || 0), y: (window.pageYOffset || _DocElmt.scrollTop || body.scrollTop || 0) - (_DocElmt.clientTop || body.clientTop || 0) }; }; _This.$WindowSize = function () { var body = document.body; return { x: body.clientWidth || _DocElmt.clientWidth, y: body.clientHeight || _DocElmt.clientHeight }; }; //_This.$GetElementPosition = function (elmt) { // elmt = _This.$GetElement(elmt); // var result = Point(); // // technique from: // // http://www.quirksmode.org/js/findpos.html // // with special check for "fixed" elements. // while (elmt) { // result.x += elmt.offsetLeft; // result.y += elmt.offsetTop; // var isFixed = _This.$GetElementStyle(elmt).position == "fixed"; // if (isFixed) { // result = result.$Plus(_This.$PageScroll(window)); // } // elmt = getOffsetParent(elmt, isFixed); // } // return result; //}; //_This.$GetMouseScroll = function (event) { // event = GetEvent(event); // var delta = 0; // default value // // technique from: // // http://blog.paranoidferret.com/index.php/2007/10/31/javascript-tutorial-the-scroll-wheel/ // if (typeof (event.wheelDelta) == "number") { // delta = event.wheelDelta; // } else if (typeof (event.detail) == "number") { // delta = event.detail * -1; // } else { // $JssorDebug$.$Fail("Unknown event mouse scroll, no known technique."); // } // // normalize value to [-1, 1] // return delta ? delta / Math.abs(delta) : 0; //}; //_This.$MakeAjaxRequest = function (url, callback) { // var async = typeof (callback) == "function"; // var req = null; // if (async) { // var actual = callback; // var callback = function () { // Delay($Jssor$.$CreateCallback(null, actual, req), 1); // }; // } // if (window.ActiveXObject) { // for (var i = 0; i < arrActiveX.length; i++) { // try { // req = new ActiveXObject(arrActiveX[i]); // break; // } catch (e) { // continue; // } // } // } else if (window.XMLHttpRequest) { // req = new XMLHttpRequest(); // } // if (!req) { // $JssorDebug$.$Fail("Browser doesn't support XMLHttpRequest."); // } // if (async) { // req.onreadystatechange = function () { // if (req.readyState == 4) { // // prevent memory leaks by breaking circular reference now // req.onreadystatechange = new Function(); // callback(); // } // }; // } // try { // req.open("GET", url, async); // req.send(null); // } catch (e) { // $JssorDebug$.$Log(e.name + " while making AJAX request: " + e.message); // req.onreadystatechange = null; // req = null; // if (async) { // callback(); // } // } // return async ? null : req; //}; //_This.$ParseXml = function (string) { // var xmlDoc = null; // if (window.ActiveXObject) { // try { // xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); // xmlDoc.async = false; // xmlDoc.loadXML(string); // } catch (e) { // $JssorDebug$.$Log(e.name + " while parsing XML (ActiveX): " + e.message); // } // } else if (window.DOMParser) { // try { // var parser = new DOMParser(); // xmlDoc = parser.parseFromString(string, "text/xml"); // } catch (e) { // $JssorDebug$.$Log(e.name + " while parsing XML (DOMParser): " + e.message); // } // } else { // $JssorDebug$.$Fail("Browser doesn't support XML DOM."); // } // return xmlDoc; //}; function Css(elmt, name, value) { /// <summary> /// access css /// $Jssor$.$Css(elmt, name); //get css value /// $Jssor$.$Css(elmt, name, value); //set css value /// </summary> /// <param name="elmt" type="HTMLElement"> /// the element to access css /// </param> /// <param name="name" type="String"> /// the name of css property /// </param> /// <param name="value" optional="true"> /// the value to set /// </param> if (value != undefined) { elmt.style[name] = value; } else { var style = elmt.currentStyle || elmt.style; value = style[name]; if (value == "" && window.getComputedStyle) { style = elmt.ownerDocument.defaultView.getComputedStyle(elmt, null); style && (value = style.getPropertyValue(name) || style[name]); } return value; } } function CssN(elmt, name, value, isDimensional) { /// <summary> /// access css as numeric /// $Jssor$.$CssN(elmt, name); //get css value /// $Jssor$.$CssN(elmt, name, value); //set css value /// </summary> /// <param name="elmt" type="HTMLElement"> /// the element to access css /// </param> /// <param name="name" type="String"> /// the name of css property /// </param> /// <param name="value" type="Number" optional="true"> /// the value to set /// </param> if (value != undefined) { isDimensional && (value += "px"); Css(elmt, name, value); } else { return ParseFloat(Css(elmt, name)); } } function CssP(elmt, name, value) { /// <summary> /// access css in pixel as numeric, like 'top', 'left', 'width', 'height' /// $Jssor$.$CssP(elmt, name); //get css value /// $Jssor$.$CssP(elmt, name, value); //set css value /// </summary> /// <param name="elmt" type="HTMLElement"> /// the element to access css /// </param> /// <param name="name" type="String"> /// the name of css property /// </param> /// <param name="value" type="Number" optional="true"> /// the value to set /// </param> return CssN(elmt, name, value, true); } function CssProxy(name, numericOrDimension) { /// <summary> /// create proxy to access css, CssProxy(name[, numericOrDimension]); /// </summary> /// <param name="elmt" type="HTMLElement"> /// the element to access css /// </param> /// <param name="numericOrDimension" type="Number" optional="true"> /// not set: access original css, 1: access css as numeric, 2: access css in pixel as numeric /// </param> var isDimensional = numericOrDimension & 2; var cssAccessor = numericOrDimension ? CssN : Css; return function (elmt, value) { return cssAccessor(elmt, name, value, isDimensional); }; } function GetStyleOpacity(elmt) { if (IsBrowserIE() && browserEngineVersion < 9) { var match = /opacity=([^)]*)/.exec(elmt.style.filter || ""); return match ? (ParseFloat(match[1]) / 100) : 1; } else return ParseFloat(elmt.style.opacity || "1"); } function SetStyleOpacity(elmt, opacity, ie9EarlierForce) { if (IsBrowserIE() && browserEngineVersion < 9) { //var filterName = "filter"; // browserEngineVersion < 8 ? "filter" : "-ms-filter"; var finalFilter = elmt.style.filter || ""; // for CSS filter browsers (IE), remove alpha filter if it's unnecessary. // update: doing _This always since IE9 beta seems to have broken the // behavior if we rely on the programmatic filters collection. var alphaReg = new RegExp(/[\s]*alpha\([^\)]*\)/g); // important: note the lazy star! _This protects against // multiple filters; we don't want to delete the other ones. // update: also trimming extra whitespace around filter. var ieOpacity = Math.round(100 * opacity); var alphaFilter = ""; if (ieOpacity < 100 || ie9EarlierForce) { alphaFilter = "alpha(opacity=" + ieOpacity + ") "; //elmt.style["-ms-filter"] = "progid:DXImageTransform.Microsoft.Alpha(opacity=" + ieOpacity + ") "; } var newFilterValue = BuildNewCss(finalFilter, [alphaReg], alphaFilter); SetStyleFilterIE(elmt, newFilterValue); } //if (!IsBrowserIE() || browserEngineVersion >= 9) else { elmt.style.opacity = opacity == 1 ? "" : Math.round(opacity * 100) / 100; } } function SetStyleTransformInternal(elmt, transform) { var rotate = transform.$Rotate || 0; var scale = transform.$Scale == undefined ? 1 : transform.$Scale; if (IsBrowserIe9Earlier()) { var matrix = _This.$CreateMatrix(rotate / 180 * Math.PI, scale, scale); SetStyleMatrixIE(elmt, (!rotate && scale == 1) ? null : matrix, _This.$GetMatrixOffset(matrix, transform.$OriginalWidth, transform.$OriginalHeight)); } else { //rotate(15deg) scale(.5) translateZ(0) var transformProperty = GetTransformProperty(elmt); if (transformProperty) { var transformValue = "rotate(" + rotate % 360 + "deg) scale(" + scale + ")"; if (IsBrowserChrome() && webkitVersion > 535) transformValue += " perspective(2000px)"; elmt.style[transformProperty] = transformValue; } } } _This.$SetStyleTransform = function (elmt, transform) { if (IsBrowserBadTransform()) { Delay(_This.$CreateCallback(null, SetStyleTransformInternal, elmt, transform)); } else { SetStyleTransformInternal(elmt, transform); } }; _This.$SetStyleTransformOrigin = function (elmt, transformOrigin) { var transformProperty = GetTransformProperty(elmt); if (transformProperty) elmt.style[transformProperty + "Origin"] = transformOrigin; }; _This.$CssScale = function (elmt, scale) { if (IsBrowserIE() && browserEngineVersion < 9 || (browserEngineVersion < 10 && IsBrowserIeQuirks())) { elmt.style.zoom = (scale == 1) ? "" : scale; } else { var transformProperty = GetTransformProperty(elmt); if (transformProperty) { //rotate(15deg) scale(.5) var transformValue = "scale(" + scale + ")"; var oldTransformValue = elmt.style[transformProperty]; var scaleReg = new RegExp(/[\s]*scale\(.*?\)/g); var newTransformValue = BuildNewCss(oldTransformValue, [scaleReg], transformValue); elmt.style[transformProperty] = newTransformValue; } } }; _This.$EnableHWA = function (elmt) { if (!elmt.style[GetTransformProperty(elmt)] || elmt.style[GetTransformProperty(elmt)] == "none") elmt.style[GetTransformProperty(elmt)] = "perspective(2000px)"; }; _This.$DisableHWA = function (elmt) { //if (force || elmt.style[GetTransformProperty(elmt)] == "perspective(2000px)") elmt.style[GetTransformProperty(elmt)] = "none"; }; var ie8OffsetWidth = 0; var ie8OffsetHeight = 0; //var ie8WindowResizeCallbackHandlers; //var ie8LastVerticalScrollbar; //var toggleInfo = ""; //function Ie8WindowResizeFilter(window, handler) { // var trigger = true; // var checkElement = (IsBrowserIeQuirks() ? window.document.body : window.document.documentElement); // if (checkElement) { // //check vertical bar // //var hasVerticalBar = checkElement.scrollHeight > checkElement.clientHeight; // //var verticalBarToggle = hasVerticalBar != ie8LastVerticalScrollbar; // //ie8LastVerticalScrollbar = hasVerticalBar; // var widthChange = checkElement.offsetWidth - ie8OffsetWidth; // var heightChange = checkElement.offsetHeight - ie8OffsetHeight; // if (widthChange || heightChange) { // ie8OffsetWidth += widthChange; // ie8OffsetHeight += heightChange; // } // else // trigger = false; // } // trigger && handler(); //} //_This.$OnWindowResize = function (window, handler) { // if (IsBrowserIE() && browserEngineVersion < 9) { // if (!ie8WindowResizeCallbackHandlers) { // ie8WindowResizeCallbackHandlers = [handler]; // handler = _This.$CreateCallback(null, Ie8WindowResizeFilter, window); // } // else { // ie8WindowResizeCallbackHandlers.push(handler); // return; // } // } // _This.$AddEvent(window, "resize", handler); //}; _This.$WindowResizeFilter = function (window, handler) { return IsBrowserIe9Earlier() ? function () { var trigger = true; var checkElement = (IsBrowserIeQuirks() ? window.document.body : window.document.documentElement); if (checkElement) { //check vertical bar //var hasVerticalBar = checkElement.scrollHeight > checkElement.clientHeight; //var verticalBarToggle = hasVerticalBar != ie8LastVerticalScrollbar; //ie8LastVerticalScrollbar = hasVerticalBar; var widthChange = checkElement.offsetWidth - ie8OffsetWidth; var heightChange = checkElement.offsetHeight - ie8OffsetHeight; if (widthChange || heightChange) { ie8OffsetWidth += widthChange; ie8OffsetHeight += heightChange; } else trigger = false; } trigger && handler(); } : handler; }; _This.$MouseOverOutFilter = function (handler, target) { /// <param name="target" type="HTMLDomElement"> /// The target element to detect mouse over/out events. (for ie < 9 compatibility) /// </param> $JssorDebug$.$Execute(function () { if (!target) { throw new Error("Null reference, parameter \"target\"."); } }); return function (event) { event = GetEvent(event); var eventName = event.type; var related = event.relatedTarget || (eventName == "mouseout" ? event.toElement : event.fromElement); if (!related || (related !== target && !_This.$IsChild(target, related))) { handler(event); } }; }; _This.$AddEvent = function (elmt, eventName, handler, useCapture) { elmt = _This.$GetElement(elmt); // technique from: // http://blog.paranoidferret.com/index.php/2007/08/10/javascript-working-with-events/ if (elmt.addEventListener) { if (eventName == "mousewheel") { elmt.addEventListener("DOMMouseScroll", handler, useCapture); } // we are still going to add the mousewheel -- not a mistake! // _This is for opera, since it uses onmousewheel but needs addEventListener. elmt.addEventListener(eventName, handler, useCapture); } else if (elmt.attachEvent) { elmt.attachEvent("on" + eventName, handler); if (useCapture && elmt.setCapture) { elmt.setCapture(); } } $JssorDebug$.$Execute(function () { if (!elmt.addEventListener && !elmt.attachEvent) { $JssorDebug$.$Fail("Unable to attach event handler, no known technique."); } }); }; _This.$RemoveEvent = function (elmt, eventName, handler, useCapture) { elmt = _This.$GetElement(elmt); // technique from: // http://blog.paranoidferret.com/index.php/2007/08/10/javascript-working-with-events/ if (elmt.removeEventListener) { if (eventName == "mousewheel") { elmt.removeEventListener("DOMMouseScroll", handler, useCapture); } // we are still going to remove the mousewheel -- not a mistake! // _This is for opera, since it uses onmousewheel but needs removeEventListener. elmt.removeEventListener(eventName, handler, useCapture); } else if (elmt.detachEvent) { elmt.detachEvent("on" + eventName, handler); if (useCapture && elmt.releaseCapture) { elmt.releaseCapture(); } } }; _This.$FireEvent = function (elmt, eventName) { //var document = elmt.document; $JssorDebug$.$Execute(function () { if (!document.createEvent && !document.createEventObject) { $JssorDebug$.$Fail("Unable to fire event, no known technique."); } if (!elmt.dispatchEvent && !elmt.fireEvent) { $JssorDebug$.$Fail("Unable to fire event, no known technique."); } }); var evento; if (document.createEvent) { evento = document.createEvent("HTMLEvents"); evento.initEvent(eventName, false, false); elmt.dispatchEvent(evento); } else { var ieEventName = "on" + eventName; evento = document.createEventObject(); //event.eventType = ieEventName; //event.eventName = ieEventName; elmt.fireEvent(ieEventName, evento); } }; _This.$AddEventBrowserMouseUp = function (handler, userCapture) { _This.$AddEvent((IsBrowserIe9Earlier()) ? document : window, "mouseup", handler, userCapture); }; _This.$RemoveEventBrowserMouseUp = function (handler, userCapture) { _This.$RemoveEvent((IsBrowserIe9Earlier()) ? document : window, "mouseup", handler, userCapture); }; //_This.$AddEventBrowserMouseDown = function (handler, userCapture) { // _This.$AddEvent((IsBrowserIe9Earlier()) ? document : window, "mousedown", handler, userCapture); //}; //_This.$RemoveEventBrowserMouseDown = function (handler, userCapture) { // _This.$RemoveEvent((IsBrowserIe9Earlier()) ? document : window, "mousedown", handler, userCapture); //}; _This.$CancelEvent = function (event) { event = GetEvent(event); // technique from: // http://blog.paranoidferret.com/index.php/2007/08/10/javascript-working-with-events/ if (event.preventDefault) { event.preventDefault(); // W3C for preventing default } event.cancel = true; // legacy for preventing default event.returnValue = false; // IE for preventing default }; _This.$StopEvent = function (event) { event = GetEvent(event); // technique from: // http://blog.paranoidferret.com/index.php/2007/08/10/javascript-working-with-events/ if (event.stopPropagation) { event.stopPropagation(); // W3C for stopping propagation } event.cancelBubble = true; // IE for stopping propagation }; _This.$CreateCallback = function (object, method) { // create callback args var initialArgs = [].slice.call(arguments, 2); // create closure to apply method var callback = function () { // concatenate new args, but make a copy of initialArgs first var args = initialArgs.concat([].slice.call(arguments, 0)); return method.apply(object, args); }; //$JssorDebug$.$LiveStamp(callback, "callback_" + ($Jssor$.$GetNow() & 0xFFFFFF)); return callback; }; var _Freeer; _This.$FreeElement = function (elmt) { if (!_Freeer) _Freeer = _This.$CreateDiv(); if (elmt) { $Jssor$.$AppendChild(_Freeer, elmt); $Jssor$.$ClearInnerHtml(_Freeer); } }; _This.$InnerText = function (elmt, text) { if (text == undefined) return elmt.textContent || elmt.innerText; var textNode = document.createTextNode(text); _This.$ClearInnerHtml(elmt); elmt.appendChild(textNode); }; _This.$InnerHtml = function (elmt, html) { if (html == undefined) return elmt.innerHTML; elmt.innerHTML = html; }; _This.$GetClientRect = function (elmt) { var rect = elmt.getBoundingClientRect(); return { x: rect.left, y: rect.top, w: rect.right - rect.left, h: rect.bottom - rect.top }; }; _This.$ClearInnerHtml = function (elmt) { elmt.innerHTML = ""; }; _This.$EncodeHtml = function (text) { var div = _This.$CreateDiv(); _This.$InnerText(div, text); return _This.$InnerHtml(div); }; _This.$DecodeHtml = function (html) { var div = _This.$CreateDiv(); _This.$InnerHtml(div, html); return _This.$InnerText(div); }; _This.$SelectElement = function (elmt) { var userSelection; if (window.getSelection) { //W3C default userSelection = window.getSelection(); } var theRange = null; if (document.createRange) { theRange = document.createRange(); theRange.selectNode(elmt); } else { theRange = document.body.createTextRange(); theRange.moveToElementText(elmt); theRange.select(); } //set user selection if (userSelection) userSelection.addRange(theRange); }; _This.$DeselectElements = function () { if (document.selection) { document.selection.empty(); } else if (window.getSelection) { window.getSelection().removeAllRanges(); } }; _This.$Children = function (elmt) { var children = []; for (var tmpEl = elmt.firstChild; tmpEl; tmpEl = tmpEl.nextSibling) { if (tmpEl.nodeType == 1) { children.push(tmpEl); } } return children; }; function FindChild(elmt, attrValue, noDeep, attrName) { attrName = attrName || "u"; for (elmt = elmt ? elmt.firstChild : null; elmt; elmt = elmt.nextSibling) { if (elmt.nodeType == 1) { if (AttributeEx(elmt, attrName) == attrValue) return elmt; if (!noDeep) { var childRet = FindChild(elmt, attrValue, noDeep, attrName); if (childRet) return childRet; } } } } _This.$FindChild = FindChild; function FindChildren(elmt, attrValue, noDeep, attrName) { attrName = attrName || "u"; var ret = []; for (elmt = elmt ? elmt.firstChild : null; elmt; elmt = elmt.nextSibling) { if (elmt.nodeType == 1) { if (AttributeEx(elmt, attrName) == attrValue) ret.push(elmt); if (!noDeep) { var childRet = FindChildren(elmt, attrValue, noDeep, attrName); if (childRet.length) ret = ret.concat(childRet); } } } return ret; } _This.$FindChildren = FindChildren; function FindChildByTag(elmt, tagName, noDeep) { for (elmt = elmt ? elmt.firstChild : null; elmt; elmt = elmt.nextSibling) { if (elmt.nodeType == 1) { if (elmt.tagName == tagName) return elmt; if (!noDeep) { var childRet = FindChildByTag(elmt, tagName, noDeep); if (childRet) return childRet; } } } } _This.$FindChildByTag = FindChildByTag; function FindChildrenByTag(elmt, tagName, noDeep) { var ret = []; for (elmt = elmt ? elmt.firstChild : null; elmt; elmt = elmt.nextSibling) { if (elmt.nodeType == 1) { if (!tagName || elmt.tagName == tagName) ret.push(elmt); if (!noDeep) { var childRet = FindChildrenByTag(elmt, tagName, noDeep); if (childRet.length) ret = ret.concat(childRet); } } } return ret; } _This.$FindChildrenByTag = FindChildrenByTag; _This.$GetElementsByTag = function (elmt, tagName) { return elmt.getElementsByTagName(tagName); }; function Extend(target) { for (var i = 1; i < arguments.length; i++) { var options = arguments[i]; // Only deal with non-null/undefined values if (options) { // Extend the base object for (var name in options) { target[name] = options[name]; } } } // Return the modified object return target; } _This.$Extend = Extend; function Unextend(target, options) { $JssorDebug$.$Assert(options); var unextended = {}; // Extend the base object for (var name in target) { if (target[name] != options[name]) { unextended[name] = target[name]; } } // Return the modified object return unextended; } _This.$Unextend = Unextend; _This.$IsUndefined = function (obj) { return type(obj) == "undefined"; }; _This.$IsFunction = function (obj) { return type(obj) == "function"; }; _This.$IsArray = function (obj) { return type(obj) == "array"; }; _This.$IsString = function (obj) { return type(obj) == "string"; }; _This.$IsNumeric = function (obj) { return !isNaN(ParseFloat(obj)) && isFinite(obj); }; _This.$IsWindow = function (obj) { return obj && obj == obj.window; }; _This.$Type = type; // args is for internal usage only _This.$Each = each; _This.$IsPlainObject = isPlainObject; function CreateElement(tagName) { return document.createElement(tagName); } _This.$CreateElement = CreateElement; _This.$CreateDiv = function () { return CreateElement("DIV", document); }; _This.$CreateSpan = function () { return CreateElement("SPAN", document); }; _This.$EmptyFunction = function () { }; function Attribute(elmt, name, value) { if (value == undefined) return elmt.getAttribute(name); elmt.setAttribute(name, value); } function AttributeEx(elmt, name) { return Attribute(elmt, name) || Attribute(elmt, "data-" + name); } _This.$Attribute = Attribute; _This.$AttributeEx = AttributeEx; function ClassName(elmt, className) { if (className == undefined) return elmt.className; elmt.className = className; } _This.$ClassName = ClassName; function ToHash(array) { var hash = {}; each(array, function (item) { hash[item] = item; }); return hash; } _This.$ToHash = ToHash; function Join(separator, strings) { /// <param name="separator" type="String"> /// The element to show the dialog around /// </param> /// <param name="strings" type="Array" value="['1']"> /// The element to show the dialog around /// </param> var joined = ""; each(strings, function (str) { joined && (joined += separator); joined += str; }); return joined; } _This.$Join = Join; _This.$AddClass = function (elmt, className) { var newClassName = ClassName(elmt) + " " + className; ClassName(elmt, Join(" ", ToHash(newClassName.match(REGEX_WHITESPACE_GLOBAL)))); }; _This.$RemoveClass = function (elmt, className) { ClassName(elmt, Join(" ", _This.$Unextend(ToHash(ClassName(elmt).match(REGEX_WHITESPACE_GLOBAL)), ToHash(className.match(REGEX_WHITESPACE_GLOBAL))))); }; _This.$ParentNode = function (elmt) { return elmt.parentNode; }; _This.$HideElement = function (elmt) { _This.$CssDisplay(elmt, "none"); }; _This.$HideElements = function (elmts) { for (var i = 0; i < elmts.length; i++) { _This.$HideElement(elmts[i]); } }; _This.$ShowElement = function (elmt, hide) { _This.$CssDisplay(elmt, hide ? "none" : ""); }; _This.$ShowElements = function (elmts, hide) { for (var i = 0; i < elmts.length; i++) { _This.$ShowElement(elmts[i], hide); } }; _This.$RemoveAttribute = function (elmt, attrbuteName) { elmt.removeAttribute(attrbuteName); }; _This.$CanClearClip = function () { return IsBrowserIE() && browserRuntimeVersion < 10; }; _This.$SetStyleClip = function (elmt, clip) { if (clip) { elmt.style.clip = "rect(" + Math.round(clip.$Top) + "px " + Math.round(clip.$Right) + "px " + Math.round(clip.$Bottom) + "px " + Math.round(clip.$Left) + "px)"; } else { var cssText = elmt.style.cssText; var clipRegs = [ new RegExp(/[\s]*clip: rect\(.*?\)[;]?/i), new RegExp(/[\s]*cliptop: .*?[;]?/i), new RegExp(/[\s]*clipright: .*?[;]?/i), new RegExp(/[\s]*clipbottom: .*?[;]?/i), new RegExp(/[\s]*clipleft: .*?[;]?/i) ]; var newCssText = BuildNewCss(cssText, clipRegs, ""); $Jssor$.$CssCssText(elmt, newCssText); } }; _This.$GetNow = function () { return new Date().getTime(); }; _This.$AppendChild = function (elmt, child) { elmt.appendChild(child); }; _This.$AppendChildren = function (elmt, children) { each(children, function (child) { _This.$AppendChild(elmt, child); }); }; _This.$InsertBefore = function (elmt, child, refObject) { elmt.insertBefore(child, refObject); }; _This.$InsertAdjacentHtml = function (elmt, where, text) { elmt.insertAdjacentHTML(where, text); }; _This.$RemoveChild = function (elmt, child) { elmt.removeChild(child); }; _This.$RemoveChildren = function (elmt, children) { each(children, function (child) { _This.$RemoveChild(elmt, child); }); }; _This.$ClearChildren = function (elmt) { _This.$RemoveChildren(elmt, _This.$Children(elmt)); }; _This.$ParseInt = function (str, radix) { return parseInt(str, radix || 10); }; function ParseFloat(str) { return parseFloat(str); } _This.$ParseFloat = ParseFloat; _This.$IsChild = function (elmtA, elmtB) { var body = document.body; while (elmtB && elmtA != elmtB && body != elmtB) { try { elmtB = elmtB.parentNode; } catch (e) { // Firefox sometimes fires events for XUL elements, which throws // a "permission denied" error. so this is not a child. return false; } } return elmtA == elmtB; }; function CloneNode(elmt, noDeep) { return elmt.cloneNode(!noDeep); } _This.$CloneNode = CloneNode; function TranslateTransition(transition) { if (transition) { var flyDirection = transition.$FlyDirection; if (flyDirection & 1) { transition.x = transition.$ScaleHorizontal || 1; } if (flyDirection & 2) { transition.x = -transition.$ScaleHorizontal || -1; } if (flyDirection & 4) { transition.y = transition.$ScaleVertical || 1; } if (flyDirection & 8) { transition.y = -transition.$ScaleVertical || -1; } if (transition.$Rotate == true) transition.$Rotate = 1; TranslateTransition(transition.$Brother); } } _This.$TranslateTransitions = function (transitions) { /// <summary> /// For backward compatibility only. /// </summary> if (transitions) { for (var i = 0; i < transitions.length; i++) { TranslateTransition(transitions[i]); } for (var name in transitions) { TranslateTransition(transitions[name]); } } }; //function ImageLoader() { // var _ThisImageLoader = this; // var _BaseImageLoader = _This.$Inherit(_ThisImageLoader, $JssorObject$); // var _ImageLoading = 1; // var _MainImageSrc; // var _MainImage; // var _CompleteCallback; // var _MainImageAbort; // function LoadCompleteCallback(image, abort) { // _ImageLoading--; // if (image) { // _This.$RemoveEvent(image, "load"); // _This.$RemoveEvent(image, "abort"); // _This.$RemoveEvent(image, "error"); // if (_MainImageSrc == image.src) { // _MainImage = image; // _MainImageAbort = abort; // } // } // _CompleteCallback && _CompleteCallback(_MainImage, _MainImageAbort); // } // function LoadImage(src) { // _ImageLoading++; // if (IsBrowserOpera() && browserRuntimeVersion < 11.6 || !src) { // LoadImageCallback(callback, null, !src); // } // else { // var image = new Image(); // _This.$AddEvent(image, "load", _This.$CreateCallback(null, LoadImageCallback, image, false)); // var abortHandler = _This.$CreateCallback(null, LoadImageCallback, image, true); // _This.$AddEvent(image, "abort", abortHandler); // _This.$AddEvent(image, "error", abortHandler); // image.src = src; // } // } // _ThisImageLoader.$LoadImage = function (src, callback) { // _MainImageSrc = src; // _CompleteCallback = callback; // LoadImage(src); // LoadComplete(); // }; // _ThisImageLoader.$LoadImages = function (imageElmts, mainImageElmt, callback) { // mainImageElmt && (_MainImageSrc = mainImageElmt.src); // _CompleteCallback = callback; // each(imageElmts, function (imageElmt) { // LoadImage(imageElmt.src); // }); // LoadComplete(); // }; //} _This.$LoadImage = function (src, callback) { var image = new Image(); function LoadImageCompleteHandler(abort) { _This.$RemoveEvent(image, "load", LoadImageCompleteHandler); _This.$RemoveEvent(image, "abort", ErrorOrAbortHandler); _This.$RemoveEvent(image, "error", ErrorOrAbortHandler); if (callback) callback(image, abort); } function ErrorOrAbortHandler() { LoadImageCompleteHandler(true); } if (IsBrowserOpera() && browserRuntimeVersion < 11.6 || !src) { LoadImageCompleteHandler(!src); } else { _This.$AddEvent(image, "load", LoadImageCompleteHandler); _This.$AddEvent(image, "abort", ErrorOrAbortHandler); _This.$AddEvent(image, "error", ErrorOrAbortHandler); image.src = src; } }; _This.$LoadImages = function (imageElmts, mainImageElmt, callback) { var _ImageLoading = imageElmts.length + 1; function LoadImageCompleteEventHandler(image, abort) { _ImageLoading--; if (mainImageElmt && image && image.src == mainImageElmt.src) mainImageElmt = image; !_ImageLoading && callback && callback(mainImageElmt); } each(imageElmts, function (imageElmt) { _This.$LoadImage(imageElmt.src, LoadImageCompleteEventHandler); }); LoadImageCompleteEventHandler(); }; _This.$BuildElement = function (template, tagName, replacer, createCopy) { if (createCopy) template = CloneNode(template); var templateHolders = $Jssor$.$GetElementsByTag(template, tagName); for (var j = templateHolders.length -1; j > -1; j--) { var templateHolder = templateHolders[j]; var replaceItem = CloneNode(replacer); ClassName(replaceItem, ClassName(templateHolder)); $Jssor$.$CssCssText(replaceItem, templateHolder.style.cssText); var thumbnailPlaceHolderParent = $Jssor$.$ParentNode(templateHolder); $Jssor$.$InsertBefore(thumbnailPlaceHolderParent, replaceItem, templateHolder); $Jssor$.$RemoveChild(thumbnailPlaceHolderParent, templateHolder); } return template; }; var _MouseDownButtons; function JssorButtonEx(elmt) { var _Self = this; var _OriginClassName; var _IsMouseDown; //class name 'dn' var _IsActive; //class name 'av' var _IsDisabled; //class name 'ds' function Highlight() { var className = _OriginClassName; if (_IsDisabled) { className += 'ds'; } else if (_IsMouseDown) { className += 'dn'; } else if (_IsActive) { className += "av"; } ClassName(elmt, className); } function OnMouseDown(event) { if (_IsDisabled) { _This.$CancelEvent(event); } else { _MouseDownButtons.push(_Self); _IsMouseDown = true; Highlight(); } } _Self.$MouseUp = function () { /// <summary> /// Internal member function, do not use it. /// </summary> /// <private /> _IsMouseDown = false; Highlight(); }; _Self.$Activate = function (activate) { if (activate != undefined) { _IsActive = activate; Highlight(); } else { return _IsActive; } }; _Self.$Enable = function (enable) { if (enable != undefined) { _IsDisabled = !enable; Highlight(); } else { return !_IsDisabled; } }; //JssorButtonEx Constructor { elmt = _This.$GetElement(elmt); if (!_MouseDownButtons) { _This.$AddEventBrowserMouseUp(function () { var oldMouseDownButtons = _MouseDownButtons; _MouseDownButtons = []; each(oldMouseDownButtons, function (button) { button.$MouseUp(); }); }); _MouseDownButtons = []; } _OriginClassName = ClassName(elmt); $Jssor$.$AddEvent(elmt, "mousedown", OnMouseDown); } } _This.$Buttonize = function (elmt) { return new JssorButtonEx(elmt); }; _This.$Css = Css; _This.$CssN = CssN; _This.$CssP = CssP; _This.$CssOverflow = CssProxy("overflow"); _This.$CssTop = CssProxy("top", 2); _This.$CssLeft = CssProxy("left", 2); _This.$CssWidth = CssProxy("width", 2); _This.$CssHeight = CssProxy("height", 2); _This.$CssMarginLeft = CssProxy("marginLeft", 2); _This.$CssMarginTop = CssProxy("marginTop", 2); _This.$CssPosition = CssProxy("position"); _This.$CssDisplay = CssProxy("display"); _This.$CssZIndex = CssProxy("zIndex", 1); _This.$CssFloat = function (elmt, float) { return Css(elmt, IsBrowserIE() ? "styleFloat" : "cssFloat", float); }; _This.$CssOpacity = function (elmt, opacity, ie9EarlierForce) { if (opacity != undefined) { SetStyleOpacity(elmt, opacity, ie9EarlierForce); } else { return GetStyleOpacity(elmt); } }; _This.$CssCssText = function (elmt, text) { if (text != undefined) { elmt.style.cssText = text; } else { return elmt.style.cssText; } }; var _StyleGetter = { $Opacity: _This.$CssOpacity, $Top: _This.$CssTop, $Left: _This.$CssLeft, $Width: _This.$CssWidth, $Height: _This.$CssHeight, $Position: _This.$CssPosition, $Display: _This.$CssDisplay, $ZIndex: _This.$CssZIndex }; var _StyleSetterReserved; function StyleSetter() { if (!_StyleSetterReserved) { _StyleSetterReserved = Extend({ $MarginTop: _This.$CssMarginTop, $MarginLeft: _This.$CssMarginLeft, $Clip: _This.$SetStyleClip, $Transform: _This.$SetStyleTransform }, _StyleGetter); } return _StyleSetterReserved; } function StyleSetterEx() { StyleSetter(); //For Compression Only _StyleSetterReserved.$Transform = _StyleSetterReserved.$Transform; return _StyleSetterReserved; } _This.$StyleSetter = StyleSetter; _This.$StyleSetterEx = StyleSetterEx; _This.$GetStyles = function (elmt, originStyles) { StyleSetter(); var styles = {}; each(originStyles, function (value, key) { if (_StyleGetter[key]) { styles[key] = _StyleGetter[key](elmt); } }); return styles; }; _This.$SetStyles = function (elmt, styles) { var styleSetter = StyleSetter(); each(styles, function (value, key) { styleSetter[key] && styleSetter[key](elmt, value); }); }; _This.$SetStylesEx = function (elmt, styles) { StyleSetterEx(); _This.$SetStyles(elmt, styles); }; $JssorMatrix$ = new function () { var _ThisMatrix = this; function Multiply(ma, mb) { var acs = ma[0].length; var rows = ma.length; var cols = mb[0].length; var matrix = []; for (var r = 0; r < rows; r++) { var row = matrix[r] = []; for (var c = 0; c < cols; c++) { var unitValue = 0; for (var ac = 0; ac < acs; ac++) { unitValue += ma[r][ac] * mb[ac][c]; } row[c] = unitValue; } } return matrix; } _ThisMatrix.$ScaleX = function (matrix, sx) { return _ThisMatrix.$ScaleXY(matrix, sx, 0); }; _ThisMatrix.$ScaleY = function (matrix, sy) { return _ThisMatrix.$ScaleXY(matrix, 0, sy); }; _ThisMatrix.$ScaleXY = function (matrix, sx, sy) { return Multiply(matrix, [[sx, 0], [0, sy]]); }; _ThisMatrix.$TransformPoint = function (matrix, p) { var pMatrix = Multiply(matrix, [[p.x], [p.y]]); return Point(pMatrix[0][0], pMatrix[1][0]); }; }; _This.$CreateMatrix = function (alpha, scaleX, scaleY) { var cos = Math.cos(alpha); var sin = Math.sin(alpha); //var r11 = cos; //var r21 = sin; //var r12 = -sin; //var r22 = cos; //var m11 = cos * scaleX; //var m12 = -sin * scaleY; //var m21 = sin * scaleX; //var m22 = cos * scaleY; return [[cos * scaleX, -sin * scaleY], [sin * scaleX, cos * scaleY]]; }; _This.$GetMatrixOffset = function (matrix, width, height) { var p1 = $JssorMatrix$.$TransformPoint(matrix, Point(-width / 2, -height / 2)); var p2 = $JssorMatrix$.$TransformPoint(matrix, Point(width / 2, -height / 2)); var p3 = $JssorMatrix$.$TransformPoint(matrix, Point(width / 2, height / 2)); var p4 = $JssorMatrix$.$TransformPoint(matrix, Point(-width / 2, height / 2)); return Point(Math.min(p1.x, p2.x, p3.x, p4.x) + width / 2, Math.min(p1.y, p2.y, p3.y, p4.y) + height / 2); }; _This.$Transform = function (fromStyles, toStyles, interPosition, easings, durings, rounds, options) { var currentStyles = toStyles; if (fromStyles) { currentStyles = {}; for (var key in toStyles) { var round = rounds[key] || 1; var during = durings[key] || [0, 1]; var propertyInterPosition = (interPosition - during[0]) / during[1]; propertyInterPosition = Math.min(Math.max(propertyInterPosition, 0), 1); propertyInterPosition = propertyInterPosition * round; var floorPosition = Math.floor(propertyInterPosition); if (propertyInterPosition != floorPosition) propertyInterPosition -= floorPosition; var easing = easings[key] || easings.$Default; var easingValue = easing(propertyInterPosition); var currentPropertyValue; var value = fromStyles[key]; var toValue = toStyles[key]; if ($Jssor$.$IsNumeric(toValue)) { currentPropertyValue = value + (toValue - value) * easingValue; } else { currentPropertyValue = $Jssor$.$Extend({ $Offset: {} }, fromStyles[key]); $Jssor$.$Each(toValue.$Offset, function (rectX, n) { var offsetValue = rectX * easingValue; currentPropertyValue.$Offset[n] = offsetValue; currentPropertyValue[n] += offsetValue; }); } currentStyles[key] = currentPropertyValue; } if (fromStyles.$Zoom) { currentStyles.$Transform = { $Rotate: currentStyles.$Rotate || 0, $Scale: currentStyles.$Zoom, $OriginalWidth: options.$OriginalWidth, $OriginalHeight: options.$OriginalHeight }; } } if (toStyles.$Clip && options.$Move) { var styleFrameNClipOffset = currentStyles.$Clip.$Offset; var offsetY = (styleFrameNClipOffset.$Top || 0) + (styleFrameNClipOffset.$Bottom || 0); var offsetX = (styleFrameNClipOffset.$Left || 0) + (styleFrameNClipOffset.$Right || 0); currentStyles.$Left = (currentStyles.$Left || 0) + offsetX; currentStyles.$Top = (currentStyles.$Top || 0) + offsetY; currentStyles.$Clip.$Left -= offsetX; currentStyles.$Clip.$Right -= offsetX; currentStyles.$Clip.$Top -= offsetY; currentStyles.$Clip.$Bottom -= offsetY; } if (currentStyles.$Clip && $Jssor$.$CanClearClip() && !currentStyles.$Clip.$Top && !currentStyles.$Clip.$Left && (currentStyles.$Clip.$Right == options.$OriginalWidth) && (currentStyles.$Clip.$Bottom == options.$OriginalHeight)) currentStyles.$Clip = null; return currentStyles; }; }; //$JssorObject$ var $JssorObject$ = window.$JssorObject$ = function () { var _ThisObject = this; // Fields var _Listeners = []; // dictionary of eventName --> array of handlers var _Listenees = []; // Private Methods function AddListener(eventName, handler) { $JssorDebug$.$Execute(function () { if (eventName == undefined || eventName == null) throw new Error("param 'eventName' is null or empty."); if (typeof (handler) != "function") { throw "param 'handler' must be a function."; } $Jssor$.$Each(_Listeners, function (listener) { if (listener.$EventName == eventName && listener.$Handler === handler) { throw new Error("The handler listened to the event already, cannot listen to the same event of the same object with the same handler twice."); } }); }); _Listeners.push({ $EventName: eventName, $Handler: handler }); } function RemoveListener(eventName, handler) { $JssorDebug$.$Execute(function () { if (eventName == undefined || eventName == null) throw new Error("param 'eventName' is null or empty."); if (typeof (handler) != "function") { throw "param 'handler' must be a function."; } }); $Jssor$.$Each(_Listeners, function (listener, index) { if (listener.$EventName == eventName && listener.$Handler === handler) { _Listeners.splice(index, 1); } }); } function ClearListeners() { _Listeners = []; } function ClearListenees() { $Jssor$.$Each(_Listenees, function (listenee) { $Jssor$.$RemoveEvent(listenee.$Obj, listenee.$EventName, listenee.$Handler); }); _Listenees = []; } //Protected Methods _ThisObject.$Listen = function (obj, eventName, handler, useCapture) { $JssorDebug$.$Execute(function () { if (!obj) throw new Error("param 'obj' is null or empty."); if (eventName == undefined || eventName == null) throw new Error("param 'eventName' is null or empty."); if (typeof (handler) != "function") { throw "param 'handler' must be a function."; } $Jssor$.$Each(_Listenees, function (listenee) { if (listenee.$Obj === obj && listenee.$EventName == eventName && listenee.$Handler === handler) { throw new Error("The handler listened to the event already, cannot listen to the same event of the same object with the same handler twice."); } }); }); $Jssor$.$AddEvent(obj, eventName, handler, useCapture); _Listenees.push({ $Obj: obj, $EventName: eventName, $Handler: handler }); }; _ThisObject.$Unlisten = function (obj, eventName, handler) { $JssorDebug$.$Execute(function () { if (!obj) throw new Error("param 'obj' is null or empty."); if (eventName == undefined || eventName == null) throw new Error("param 'eventName' is null or empty."); if (typeof (handler) != "function") { throw "param 'handler' must be a function."; } }); $Jssor$.$Each(_Listenees, function (listenee, index) { if (listenee.$Obj === obj && listenee.$EventName == eventName && listenee.$Handler === handler) { $Jssor$.$RemoveEvent(obj, eventName, handler); _Listenees.splice(index, 1); } }); }; _ThisObject.$UnlistenAll = ClearListenees; // Public Methods _ThisObject.$On = _ThisObject.addEventListener = AddListener; _ThisObject.$Off = _ThisObject.removeEventListener = RemoveListener; _ThisObject.$TriggerEvent = function (eventName) { var args = [].slice.call(arguments, 1); $Jssor$.$Each(_Listeners, function (listener) { try { listener.$EventName == eventName && listener.$Handler.apply(window, args); } catch (e) { // handler threw an error, ignore, go on to next one $JssorDebug$.$Error(e.name + " while executing " + eventName + " handler: " + e.message, e); } }); }; _ThisObject.$Destroy = function () { ClearListenees(); ClearListeners(); for (var name in _ThisObject) delete _ThisObject[name]; }; $JssorDebug$.$C_AbstractClass(_ThisObject); }; $JssorAnimator$ = function (delay, duration, options, elmt, fromStyles, toStyles) { delay = delay || 0; var _ThisAnimator = this; var _AutoPlay; var _Hiden; var _CombineMode; var _PlayToPosition; var _PlayDirection; var _NoStop; var _TimeStampLastFrame = 0; var _SubEasings; var _SubRounds; var _SubDurings; var _Callback; var _Position_Current = 0; var _Position_Display = 0; var _Hooked; var _Position_InnerBegin = delay; var _Position_InnerEnd = delay + duration; var _Position_OuterBegin; var _Position_OuterEnd; var _LoopLength; var _NestedAnimators = []; var _StyleSetter; function GetPositionRange(position, begin, end) { var range = 0; if (position < begin) range = -1; else if (position > end) range = 1; return range; } function GetInnerPositionRange(position) { return GetPositionRange(position, _Position_InnerBegin, _Position_InnerEnd); } function GetOuterPositionRange(position) { return GetPositionRange(position, _Position_OuterBegin, _Position_OuterEnd); } function Shift(offset) { _Position_OuterBegin += offset; _Position_OuterEnd += offset; _Position_InnerBegin += offset; _Position_InnerEnd += offset; _Position_Current += offset; _Position_Display += offset; $Jssor$.$Each(_NestedAnimators, function (animator) { animator, animator.$Shift(offset); }); } function Locate(position, relative) { var offset = position - _Position_OuterBegin + delay * relative; Shift(offset); //$JssorDebug$.$Execute(function () { // _ThisAnimator.$Position_InnerBegin = _Position_InnerBegin; // _ThisAnimator.$Position_InnerEnd = _Position_InnerEnd; // _ThisAnimator.$Position_OuterBegin = _Position_OuterBegin; // _ThisAnimator.$Position_OuterEnd = _Position_OuterEnd; //}); return _Position_OuterEnd; } function GoToPosition(positionOuter, force) { var trimedPositionOuter = positionOuter; if (_LoopLength && (trimedPositionOuter >= _Position_OuterEnd || trimedPositionOuter <= _Position_OuterBegin)) { trimedPositionOuter = ((trimedPositionOuter - _Position_OuterBegin) % _LoopLength + _LoopLength) % _LoopLength + _Position_OuterBegin; } if (!_Hooked || _NoStop || force || _Position_Current != trimedPositionOuter) { var positionToDisplay = Math.min(trimedPositionOuter, _Position_OuterEnd); positionToDisplay = Math.max(positionToDisplay, _Position_OuterBegin); if (!_Hooked || _NoStop || force || positionToDisplay != _Position_Display) { if (toStyles) { var interPosition = (positionToDisplay - _Position_InnerBegin) / (duration || 1); //if (options.$Optimize && $Jssor$.$IsBrowserChrome() && duration) { // interPosition = Math.round(interPosition / 8 * duration) * 8 / duration; //} if (options.$Reverse) interPosition = 1 - interPosition; var currentStyles = $Jssor$.$Transform(fromStyles, toStyles, interPosition, _SubEasings, _SubDurings, _SubRounds, options); $Jssor$.$Each(currentStyles, function (value, key) { _StyleSetter[key] && _StyleSetter[key](elmt, value); }); } _ThisAnimator.$OnInnerOffsetChange(_Position_Display - _Position_InnerBegin, positionToDisplay - _Position_InnerBegin); } _Position_Display = positionToDisplay; $Jssor$.$Each(_NestedAnimators, function (animator, i) { var nestedAnimator = positionOuter < _Position_Current ? _NestedAnimators[_NestedAnimators.length - i - 1] : animator; nestedAnimator.$GoToPosition(positionOuter, force); }); var positionOld = _Position_Current; var positionNew = positionOuter; _Position_Current = trimedPositionOuter; _Hooked = true; _ThisAnimator.$OnPositionChange(positionOld, positionNew); } } function Join(animator, combineMode) { /// <summary> /// Combine another animator as nested animator /// </summary> /// <param name="animator" type="$JssorAnimator$"> /// An instance of $JssorAnimator$ /// </param> /// <param name="combineMode" type="int"> /// 0: parallel - place the animator parallel to this animator. /// 1: chain - chain the animator at the _Position_InnerEnd of this animator. /// </param> $JssorDebug$.$Execute(function () { if (combineMode !== 0 && combineMode !== 1) $JssorDebug$.$Fail("Argument out of range, the value of 'combineMode' should be either 0 or 1."); }); if (combineMode) animator.$Locate(_Position_OuterEnd, 1); _Position_OuterEnd = Math.max(_Position_OuterEnd, animator.$GetPosition_OuterEnd()); _NestedAnimators.push(animator); } var RequestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame; if ($Jssor$.$IsBrowserSafari() && $Jssor$.$BrowserVersion() < 7) { RequestAnimationFrame = null; $JssorDebug$.$Log("Custom animation frame for safari before 7."); } RequestAnimationFrame = RequestAnimationFrame || function (callback) { $Jssor$.$Delay(callback, options.$Interval); }; function ShowFrame() { if (_AutoPlay) { var now = $Jssor$.$GetNow(); var timeOffset = Math.min(now - _TimeStampLastFrame, options.$IntervalMax); var timePosition = _Position_Current + timeOffset * _PlayDirection; _TimeStampLastFrame = now; if (timePosition * _PlayDirection >= _PlayToPosition * _PlayDirection) timePosition = _PlayToPosition; GoToPosition(timePosition); if (!_NoStop && timePosition * _PlayDirection >= _PlayToPosition * _PlayDirection) { Stop(_Callback); } else { RequestAnimationFrame(ShowFrame); } } } function PlayToPosition(toPosition, callback, noStop) { if (!_AutoPlay) { _AutoPlay = true; _NoStop = noStop _Callback = callback; toPosition = Math.max(toPosition, _Position_OuterBegin); toPosition = Math.min(toPosition, _Position_OuterEnd); _PlayToPosition = toPosition; _PlayDirection = _PlayToPosition < _Position_Current ? -1 : 1; _ThisAnimator.$OnStart(); _TimeStampLastFrame = $Jssor$.$GetNow(); RequestAnimationFrame(ShowFrame); } } function Stop(callback) { if (_AutoPlay) { _NoStop = _AutoPlay = _Callback = false; _ThisAnimator.$OnStop(); if (callback) callback(); } } _ThisAnimator.$Play = function (positionLength, callback, noStop) { PlayToPosition(positionLength ? _Position_Current + positionLength : _Position_OuterEnd, callback, noStop); }; _ThisAnimator.$PlayToPosition = PlayToPosition; _ThisAnimator.$PlayToBegin = function (callback, noStop) { PlayToPosition(_Position_OuterBegin, callback, noStop); }; _ThisAnimator.$PlayToEnd = function (callback, noStop) { PlayToPosition(_Position_OuterEnd, callback, noStop); }; _ThisAnimator.$Stop = Stop; _ThisAnimator.$Continue = function (toPosition) { PlayToPosition(toPosition); }; _ThisAnimator.$GetPosition = function () { return _Position_Current; }; _ThisAnimator.$GetPlayToPosition = function () { return _PlayToPosition; }; _ThisAnimator.$GetPosition_Display = function () { return _Position_Display; }; _ThisAnimator.$GoToPosition = GoToPosition; _ThisAnimator.$GoToBegin = function () { GoToPosition(_Position_OuterBegin, true); }; _ThisAnimator.$GoToEnd = function () { GoToPosition(_Position_OuterEnd, true); }; _ThisAnimator.$Move = function (offset) { GoToPosition(_Position_Current + offset); }; _ThisAnimator.$CombineMode = function () { return _CombineMode; }; _ThisAnimator.$GetDuration = function () { return duration; }; _ThisAnimator.$IsPlaying = function () { return _AutoPlay; }; _ThisAnimator.$IsOnTheWay = function () { return _Position_Current > _Position_InnerBegin && _Position_Current <= _Position_InnerEnd; }; _ThisAnimator.$SetLoopLength = function (length) { _LoopLength = length; }; _ThisAnimator.$Locate = Locate; _ThisAnimator.$Shift = Shift; _ThisAnimator.$Join = Join; _ThisAnimator.$Combine = function (animator) { /// <summary> /// Combine another animator parallel to this animator /// </summary> /// <param name="animator" type="$JssorAnimator$"> /// An instance of $JssorAnimator$ /// </param> Join(animator, 0); }; _ThisAnimator.$Chain = function (animator) { /// <summary> /// Chain another animator at the _Position_InnerEnd of this animator /// </summary> /// <param name="animator" type="$JssorAnimator$"> /// An instance of $JssorAnimator$ /// </param> Join(animator, 1); }; _ThisAnimator.$GetPosition_InnerBegin = function () { /// <summary> /// Internal member function, do not use it. /// </summary> /// <private /> /// <returns type="int" /> return _Position_InnerBegin; }; _ThisAnimator.$GetPosition_InnerEnd = function () { /// <summary> /// Internal member function, do not use it. /// </summary> /// <private /> /// <returns type="int" /> return _Position_InnerEnd; }; _ThisAnimator.$GetPosition_OuterBegin = function () { /// <summary> /// Internal member function, do not use it. /// </summary> /// <private /> /// <returns type="int" /> return _Position_OuterBegin; }; _ThisAnimator.$GetPosition_OuterEnd = function () { /// <summary> /// Internal member function, do not use it. /// </summary> /// <private /> /// <returns type="int" /> return _Position_OuterEnd; }; _ThisAnimator.$OnPositionChange = _ThisAnimator.$OnStart = _ThisAnimator.$OnStop = _ThisAnimator.$OnInnerOffsetChange = $Jssor$.$EmptyFunction; _ThisAnimator.$Version = $Jssor$.$GetNow(); //Constructor 1 { options = $Jssor$.$Extend({ $Interval: 16, $IntervalMax: 50 }, options); //Sodo statement, for development time intellisence only $JssorDebug$.$Execute(function () { options = $Jssor$.$Extend({ $LoopLength: undefined, $Setter: undefined, $Easing: undefined }, options); }); _LoopLength = options.$LoopLength; _StyleSetter = $Jssor$.$Extend({}, $Jssor$.$StyleSetter(), options.$Setter); _Position_OuterBegin = _Position_InnerBegin = delay; _Position_OuterEnd = _Position_InnerEnd = delay + duration; _SubRounds = options.$Round || {}; _SubDurings = options.$During || {}; _SubEasings = $Jssor$.$Extend({ $Default: $Jssor$.$IsFunction(options.$Easing) && options.$Easing || $JssorEasing$.$EaseSwing }, options.$Easing); } }; function $JssorPlayerClass$() { var _ThisPlayer = this; var _PlayerControllers = []; function PlayerController(playerElement) { var _SelfPlayerController = this; var _PlayerInstance; var _PlayerInstantces = []; function OnPlayerInstanceDataAvailable(event) { var srcElement = $Jssor$.$EventSrc(event); _PlayerInstance = srcElement.pInstance; $Jssor$.$RemoveEvent(srcElement, "dataavailable", OnPlayerInstanceDataAvailable); $Jssor$.$Each(_PlayerInstantces, function (playerInstance) { if (playerInstance != _PlayerInstance) { playerInstance.$Remove(); } }); playerElement.pTagName = _PlayerInstance.tagName; _PlayerInstantces = null; } function HandlePlayerInstance(playerInstanceElement) { var playerHandler; if (!playerInstanceElement.pInstance) { var playerHandlerAttribute = $Jssor$.$AttributeEx(playerInstanceElement, "pHandler"); if ($JssorPlayer$[playerHandlerAttribute]) { $Jssor$.$AddEvent(playerInstanceElement, "dataavailable", OnPlayerInstanceDataAvailable); playerHandler = new $JssorPlayer$[playerHandlerAttribute](playerElement, playerInstanceElement); _PlayerInstantces.push(playerHandler); $JssorDebug$.$Execute(function () { if ($Jssor$.$Type(playerHandler.$Remove) != "function") { $JssorDebug$.$Fail("'pRemove' interface not implemented for player handler '" + playerHandlerAttribute + "'."); } }); } } return playerHandler; } _SelfPlayerController.$InitPlayerController = function () { if (!playerElement.pInstance && !HandlePlayerInstance(playerElement)) { var playerInstanceElements = $Jssor$.$Children(playerElement); $Jssor$.$Each(playerInstanceElements, function (playerInstanceElement) { HandlePlayerInstance(playerInstanceElement); }); } }; } _ThisPlayer.$EVT_SWITCH = 21; _ThisPlayer.$FetchPlayers = function (elmt) { elmt = elmt || document.body; var playerElements = $Jssor$.$FindChildren(elmt, "player"); $Jssor$.$Each(playerElements, function (playerElement) { if (!_PlayerControllers[playerElement.pId]) { playerElement.pId = _PlayerControllers.length; _PlayerControllers.push(new PlayerController(playerElement)); } var playerController = _PlayerControllers[playerElement.pId]; playerController.$InitPlayerController(); }); }; }
sharmasusheel/getblood2
js/jssor.js
JavaScript
mit
89,724
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sylius\Bundle\CoreBundle\Validator\Initializer; use Sylius\Component\Core\Model\CustomerInterface; use Sylius\Component\User\Canonicalizer\CanonicalizerInterface; use Symfony\Component\Validator\ObjectInitializerInterface; /** * @author Steffen Brem <steffenbrem@gmail.com> */ final class CustomerInitializer implements ObjectInitializerInterface { /** * @var CanonicalizerInterface */ private $canonicalizer; /** * @param CanonicalizerInterface $canonicalizer */ public function __construct(CanonicalizerInterface $canonicalizer) { $this->canonicalizer = $canonicalizer; } /** * {@inheritdoc} */ public function initialize($object) { if ($object instanceof CustomerInterface) { $emailCanonical = $this->canonicalizer->canonicalize($object->getEmail()); $object->setEmailCanonical($emailCanonical); } } }
Niiko/Sylius
src/Sylius/Bundle/CoreBundle/Validator/Initializer/CustomerInitializer.php
PHP
mit
1,159
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2012, Ajax.org B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of Ajax.org B.V. nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * * Contributor(s): * * * * ***** END LICENSE BLOCK ***** */ ace.define('ace/mode/dart', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/c_cpp', 'ace/tokenizer', 'ace/mode/dart_highlight_rules', 'ace/mode/folding/cstyle'], function(require, exports, module) { var oop = require("../lib/oop"); var CMode = require("./c_cpp").Mode; var Tokenizer = require("../tokenizer").Tokenizer; var DartHighlightRules = require("./dart_highlight_rules").DartHighlightRules; var CStyleFoldMode = require("./folding/cstyle").FoldMode; var Mode = function() { CMode.call(this); var highlighter = new DartHighlightRules(); this.foldingRules = new CStyleFoldMode(); this.$tokenizer = new Tokenizer(highlighter.getRules()); this.$keywordList = highlighter.$keywordList; }; oop.inherits(Mode, CMode); (function() { this.lineCommentStart = "//"; this.blockComment = {start: "/*", end: "*/"}; }).call(Mode.prototype); exports.Mode = Mode; }); ace.define('ace/mode/c_cpp', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/c_cpp_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/range', 'ace/mode/behaviour/cstyle', 'ace/mode/folding/cstyle'], function(require, exports, module) { var oop = require("../lib/oop"); var TextMode = require("./text").Mode; var Tokenizer = require("../tokenizer").Tokenizer; var c_cppHighlightRules = require("./c_cpp_highlight_rules").c_cppHighlightRules; var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent; var Range = require("../range").Range; var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour; var CStyleFoldMode = require("./folding/cstyle").FoldMode; var Mode = function() { var highlighter = new c_cppHighlightRules(); this.$tokenizer = new Tokenizer(highlighter.getRules()); this.$outdent = new MatchingBraceOutdent(); this.$behaviour = new CstyleBehaviour(); this.$keywordList = highlighter.$keywordList; this.foldingRules = new CStyleFoldMode(); }; oop.inherits(Mode, TextMode); (function() { this.lineCommentStart = "//"; this.blockComment = {start: "/*", end: "*/"}; this.getNextLineIndent = function(state, line, tab) { var indent = this.$getIndent(line); var tokenizedLine = this.$tokenizer.getLineTokens(line, state); var tokens = tokenizedLine.tokens; var endState = tokenizedLine.state; if (tokens.length && tokens[tokens.length-1].type == "comment") { return indent; } if (state == "start") { var match = line.match(/^.*[\{\(\[]\s*$/); if (match) { indent += tab; } } else if (state == "doc-start") { if (endState == "start") { return ""; } var match = line.match(/^\s*(\/?)\*/); if (match) { if (match[1]) { indent += " "; } indent += "* "; } } return indent; }; this.checkOutdent = function(state, line, input) { return this.$outdent.checkOutdent(line, input); }; this.autoOutdent = function(state, doc, row) { this.$outdent.autoOutdent(doc, row); }; }).call(Mode.prototype); exports.Mode = Mode; }); ace.define('ace/mode/c_cpp_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/doc_comment_highlight_rules', 'ace/mode/text_highlight_rules'], function(require, exports, module) { var oop = require("../lib/oop"); var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules; var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var cFunctions = exports.cFunctions = "\\s*\\bhypot(?:f|l)?|s(?:scanf|ystem|nprintf|ca(?:nf|lb(?:n(?:f|l)?|ln(?:f|l)?))|i(?:n(?:h(?:f|l)?|f|l)?|gn(?:al|bit))|tr(?:s(?:tr|pn)|nc(?:py|at|mp)|c(?:spn|hr|oll|py|at|mp)|to(?:imax|d|u(?:l(?:l)?|max)|k|f|l(?:d|l)?)|error|pbrk|ftime|len|rchr|xfrm)|printf|et(?:jmp|vbuf|locale|buf)|qrt(?:f|l)?|w(?:scanf|printf)|rand)|n(?:e(?:arbyint(?:f|l)?|xt(?:toward(?:f|l)?|after(?:f|l)?))|an(?:f|l)?)|c(?:s(?:in(?:h(?:f|l)?|f|l)?|qrt(?:f|l)?)|cos(?:h(?:f)?|f|l)?|imag(?:f|l)?|t(?:ime|an(?:h(?:f|l)?|f|l)?)|o(?:s(?:h(?:f|l)?|f|l)?|nj(?:f|l)?|pysign(?:f|l)?)|p(?:ow(?:f|l)?|roj(?:f|l)?)|e(?:il(?:f|l)?|xp(?:f|l)?)|l(?:o(?:ck|g(?:f|l)?)|earerr)|a(?:sin(?:h(?:f|l)?|f|l)?|cos(?:h(?:f|l)?|f|l)?|tan(?:h(?:f|l)?|f|l)?|lloc|rg(?:f|l)?|bs(?:f|l)?)|real(?:f|l)?|brt(?:f|l)?)|t(?:ime|o(?:upper|lower)|an(?:h(?:f|l)?|f|l)?|runc(?:f|l)?|gamma(?:f|l)?|mp(?:nam|file))|i(?:s(?:space|n(?:ormal|an)|cntrl|inf|digit|u(?:nordered|pper)|p(?:unct|rint)|finite|w(?:space|c(?:ntrl|type)|digit|upper|p(?:unct|rint)|lower|al(?:num|pha)|graph|xdigit|blank)|l(?:ower|ess(?:equal|greater)?)|al(?:num|pha)|gr(?:eater(?:equal)?|aph)|xdigit|blank)|logb(?:f|l)?|max(?:div|abs))|di(?:v|fftime)|_Exit|unget(?:c|wc)|p(?:ow(?:f|l)?|ut(?:s|c(?:har)?|wc(?:har)?)|error|rintf)|e(?:rf(?:c(?:f|l)?|f|l)?|x(?:it|p(?:2(?:f|l)?|f|l|m1(?:f|l)?)?))|v(?:s(?:scanf|nprintf|canf|printf|w(?:scanf|printf))|printf|f(?:scanf|printf|w(?:scanf|printf))|w(?:scanf|printf)|a_(?:start|copy|end|arg))|qsort|f(?:s(?:canf|e(?:tpos|ek))|close|tell|open|dim(?:f|l)?|p(?:classify|ut(?:s|c|w(?:s|c))|rintf)|e(?:holdexcept|set(?:e(?:nv|xceptflag)|round)|clearexcept|testexcept|of|updateenv|r(?:aiseexcept|ror)|get(?:e(?:nv|xceptflag)|round))|flush|w(?:scanf|ide|printf|rite)|loor(?:f|l)?|abs(?:f|l)?|get(?:s|c|pos|w(?:s|c))|re(?:open|e|ad|xp(?:f|l)?)|m(?:in(?:f|l)?|od(?:f|l)?|a(?:f|l|x(?:f|l)?)?))|l(?:d(?:iv|exp(?:f|l)?)|o(?:ngjmp|cal(?:time|econv)|g(?:1(?:p(?:f|l)?|0(?:f|l)?)|2(?:f|l)?|f|l|b(?:f|l)?)?)|abs|l(?:div|abs|r(?:int(?:f|l)?|ound(?:f|l)?))|r(?:int(?:f|l)?|ound(?:f|l)?)|gamma(?:f|l)?)|w(?:scanf|c(?:s(?:s(?:tr|pn)|nc(?:py|at|mp)|c(?:spn|hr|oll|py|at|mp)|to(?:imax|d|u(?:l(?:l)?|max)|k|f|l(?:d|l)?|mbs)|pbrk|ftime|len|r(?:chr|tombs)|xfrm)|to(?:b|mb)|rtomb)|printf|mem(?:set|c(?:hr|py|mp)|move))|a(?:s(?:sert|ctime|in(?:h(?:f|l)?|f|l)?)|cos(?:h(?:f|l)?|f|l)?|t(?:o(?:i|f|l(?:l)?)|exit|an(?:h(?:f|l)?|2(?:f|l)?|f|l)?)|b(?:s|ort))|g(?:et(?:s|c(?:har)?|env|wc(?:har)?)|mtime)|r(?:int(?:f|l)?|ound(?:f|l)?|e(?:name|alloc|wind|m(?:ove|quo(?:f|l)?|ainder(?:f|l)?))|a(?:nd|ise))|b(?:search|towc)|m(?:odf(?:f|l)?|em(?:set|c(?:hr|py|mp)|move)|ktime|alloc|b(?:s(?:init|towcs|rtowcs)|towc|len|r(?:towc|len)))\\b" var c_cppHighlightRules = function() { var keywordControls = ( "break|case|continue|default|do|else|for|goto|if|_Pragma|" + "return|switch|while|catch|operator|try|throw|using" ); var storageType = ( "asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|" + "_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void|" + "class|wchar_t|template" ); var storageModifiers = ( "const|extern|register|restrict|static|volatile|inline|private:|" + "protected:|public:|friend|explicit|virtual|export|mutable|typename" ); var keywordOperators = ( "and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq" + "const_cast|dynamic_cast|reinterpret_cast|static_cast|sizeof|namespace" ); var builtinConstants = ( "NULL|true|false|TRUE|FALSE" ); var keywordMapper = this.$keywords = this.createKeywordMapper({ "keyword.control" : keywordControls, "storage.type" : storageType, "storage.modifier" : storageModifiers, "keyword.operator" : keywordOperators, "variable.language": "this", "constant.language": builtinConstants }, "identifier"); var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\d\\$_\u00a1-\uffff]*\\b"; this.$rules = { "start" : [ { token : "comment", regex : "\\/\\/.*$" }, DocCommentHighlightRules.getStartRule("doc-start"), { token : "comment", // multi line comment regex : "\\/\\*", next : "comment" }, { token : "string", // single line regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' }, { token : "string", // multi line string start regex : '["].*\\\\$', next : "qqstring" }, { token : "string", // single line regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']" }, { token : "string", // multi line string start regex : "['].*\\\\$", next : "qstring" }, { token : "constant.numeric", // hex regex : "0[xX][0-9a-fA-F]+(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b" }, { token : "constant.numeric", // float regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b" }, { token : "keyword", // pre-compiler directives regex : "#\\s*(?:include|import|pragma|line|define|undef|if|ifdef|else|elif|ifndef)\\b", next : "directive" }, { token : "keyword", // special case pre-compiler directive regex : "(?:#\\s*endif)\\b" }, { token : "support.function.C99.c", regex : cFunctions }, { token : keywordMapper, regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b" }, { token : "keyword.operator", regex : "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|==|=|!=|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|new|delete|typeof|void)" }, { token : "punctuation.operator", regex : "\\?|\\:|\\,|\\;|\\." }, { token : "paren.lparen", regex : "[[({]" }, { token : "paren.rparen", regex : "[\\])}]" }, { token : "text", regex : "\\s+" } ], "comment" : [ { token : "comment", // closing comment regex : ".*?\\*\\/", next : "start" }, { token : "comment", // comment spanning whole line regex : ".+" } ], "qqstring" : [ { token : "string", regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"', next : "start" }, { token : "string", regex : '.+' } ], "qstring" : [ { token : "string", regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'", next : "start" }, { token : "string", regex : '.+' } ], "directive" : [ { token : "constant.other.multiline", regex : /\\/ }, { token : "constant.other.multiline", regex : /.*\\/ }, { token : "constant.other", regex : "\\s*<.+?>", next : "start" }, { token : "constant.other", // single line regex : '\\s*["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]', next : "start" }, { token : "constant.other", // single line regex : "\\s*['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']", next : "start" }, { token : "constant.other", regex : /[^\\\/]+/, next : "start" } ] }; this.embedRules(DocCommentHighlightRules, "doc-", [ DocCommentHighlightRules.getEndRule("start") ]); }; oop.inherits(c_cppHighlightRules, TextHighlightRules); exports.c_cppHighlightRules = c_cppHighlightRules; }); ace.define('ace/mode/doc_comment_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) { var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRules = function() { this.$rules = { "start" : [ { token : "comment.doc.tag", regex : "@[\\w\\d_]+" // TODO: fix email addresses }, { token : "comment.doc.tag", regex : "\\bTODO\\b" }, { defaultToken : "comment.doc" }] }; }; oop.inherits(DocCommentHighlightRules, TextHighlightRules); DocCommentHighlightRules.getStartRule = function(start) { return { token : "comment.doc", // doc comment regex : "\\/\\*(?=\\*)", next : start }; }; DocCommentHighlightRules.getEndRule = function (start) { return { token : "comment.doc", // closing comment regex : "\\*\\/", next : start }; }; exports.DocCommentHighlightRules = DocCommentHighlightRules; }); ace.define('ace/mode/matching_brace_outdent', ['require', 'exports', 'module' , 'ace/range'], function(require, exports, module) { var Range = require("../range").Range; var MatchingBraceOutdent = function() {}; (function() { this.checkOutdent = function(line, input) { if (! /^\s+$/.test(line)) return false; return /^\s*\}/.test(input); }; this.autoOutdent = function(doc, row) { var line = doc.getLine(row); var match = line.match(/^(\s*\})/); if (!match) return 0; var column = match[1].length; var openBracePos = doc.findMatchingBracket({row: row, column: column}); if (!openBracePos || openBracePos.row == row) return 0; var indent = this.$getIndent(doc.getLine(openBracePos.row)); doc.replace(new Range(row, 0, row, column-1), indent); }; this.$getIndent = function(line) { return line.match(/^\s*/)[0]; }; }).call(MatchingBraceOutdent.prototype); exports.MatchingBraceOutdent = MatchingBraceOutdent; }); ace.define('ace/mode/behaviour/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/behaviour', 'ace/token_iterator', 'ace/lib/lang'], function(require, exports, module) { var oop = require("../../lib/oop"); var Behaviour = require("../behaviour").Behaviour; var TokenIterator = require("../../token_iterator").TokenIterator; var lang = require("../../lib/lang"); var SAFE_INSERT_IN_TOKENS = ["text", "paren.rparen", "punctuation.operator"]; var SAFE_INSERT_BEFORE_TOKENS = ["text", "paren.rparen", "punctuation.operator", "comment"]; var autoInsertedBrackets = 0; var autoInsertedRow = -1; var autoInsertedLineEnd = ""; var maybeInsertedBrackets = 0; var maybeInsertedRow = -1; var maybeInsertedLineStart = ""; var maybeInsertedLineEnd = ""; var CstyleBehaviour = function () { CstyleBehaviour.isSaneInsertion = function(editor, session) { var cursor = editor.getCursorPosition(); var iterator = new TokenIterator(session, cursor.row, cursor.column); if (!this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS)) { var iterator2 = new TokenIterator(session, cursor.row, cursor.column + 1); if (!this.$matchTokenType(iterator2.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS)) return false; } iterator.stepForward(); return iterator.getCurrentTokenRow() !== cursor.row || this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_BEFORE_TOKENS); }; CstyleBehaviour.$matchTokenType = function(token, types) { return types.indexOf(token.type || token) > -1; }; CstyleBehaviour.recordAutoInsert = function(editor, session, bracket) { var cursor = editor.getCursorPosition(); var line = session.doc.getLine(cursor.row); if (!this.isAutoInsertedClosing(cursor, line, autoInsertedLineEnd[0])) autoInsertedBrackets = 0; autoInsertedRow = cursor.row; autoInsertedLineEnd = bracket + line.substr(cursor.column); autoInsertedBrackets++; }; CstyleBehaviour.recordMaybeInsert = function(editor, session, bracket) { var cursor = editor.getCursorPosition(); var line = session.doc.getLine(cursor.row); if (!this.isMaybeInsertedClosing(cursor, line)) maybeInsertedBrackets = 0; maybeInsertedRow = cursor.row; maybeInsertedLineStart = line.substr(0, cursor.column) + bracket; maybeInsertedLineEnd = line.substr(cursor.column); maybeInsertedBrackets++; }; CstyleBehaviour.isAutoInsertedClosing = function(cursor, line, bracket) { return autoInsertedBrackets > 0 && cursor.row === autoInsertedRow && bracket === autoInsertedLineEnd[0] && line.substr(cursor.column) === autoInsertedLineEnd; }; CstyleBehaviour.isMaybeInsertedClosing = function(cursor, line) { return maybeInsertedBrackets > 0 && cursor.row === maybeInsertedRow && line.substr(cursor.column) === maybeInsertedLineEnd && line.substr(0, cursor.column) == maybeInsertedLineStart; }; CstyleBehaviour.popAutoInsertedClosing = function() { autoInsertedLineEnd = autoInsertedLineEnd.substr(1); autoInsertedBrackets--; }; CstyleBehaviour.clearMaybeInsertedClosing = function() { maybeInsertedBrackets = 0; maybeInsertedRow = -1; }; this.add("braces", "insertion", function (state, action, editor, session, text) { var cursor = editor.getCursorPosition(); var line = session.doc.getLine(cursor.row); if (text == '{') { var selection = editor.getSelectionRange(); var selected = session.doc.getTextRange(selection); if (selected !== "" && selected !== "{" && editor.getWrapBehavioursEnabled()) { return { text: '{' + selected + '}', selection: false }; } else if (CstyleBehaviour.isSaneInsertion(editor, session)) { if (/[\]\}\)]/.test(line[cursor.column])) { CstyleBehaviour.recordAutoInsert(editor, session, "}"); return { text: '{}', selection: [1, 1] }; } else { CstyleBehaviour.recordMaybeInsert(editor, session, "{"); return { text: '{', selection: [1, 1] }; } } } else if (text == '}') { var rightChar = line.substring(cursor.column, cursor.column + 1); if (rightChar == '}') { var matching = session.$findOpeningBracket('}', {column: cursor.column + 1, row: cursor.row}); if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) { CstyleBehaviour.popAutoInsertedClosing(); return { text: '', selection: [1, 1] }; } } } else if (text == "\n" || text == "\r\n") { var closing = ""; if (CstyleBehaviour.isMaybeInsertedClosing(cursor, line)) { closing = lang.stringRepeat("}", maybeInsertedBrackets); CstyleBehaviour.clearMaybeInsertedClosing(); } var rightChar = line.substring(cursor.column, cursor.column + 1); if (rightChar == '}' || closing !== "") { var openBracePos = session.findMatchingBracket({row: cursor.row, column: cursor.column}, '}'); if (!openBracePos) return null; var indent = this.getNextLineIndent(state, line.substring(0, cursor.column), session.getTabString()); var next_indent = this.$getIndent(line); return { text: '\n' + indent + '\n' + next_indent + closing, selection: [1, indent.length, 1, indent.length] }; } } }); this.add("braces", "deletion", function (state, action, editor, session, range) { var selected = session.doc.getTextRange(range); if (!range.isMultiLine() && selected == '{') { var line = session.doc.getLine(range.start.row); var rightChar = line.substring(range.end.column, range.end.column + 1); if (rightChar == '}') { range.end.column++; return range; } else { maybeInsertedBrackets--; } } }); this.add("parens", "insertion", function (state, action, editor, session, text) { if (text == '(') { var selection = editor.getSelectionRange(); var selected = session.doc.getTextRange(selection); if (selected !== "" && editor.getWrapBehavioursEnabled()) { return { text: '(' + selected + ')', selection: false }; } else if (CstyleBehaviour.isSaneInsertion(editor, session)) { CstyleBehaviour.recordAutoInsert(editor, session, ")"); return { text: '()', selection: [1, 1] }; } } else if (text == ')') { var cursor = editor.getCursorPosition(); var line = session.doc.getLine(cursor.row); var rightChar = line.substring(cursor.column, cursor.column + 1); if (rightChar == ')') { var matching = session.$findOpeningBracket(')', {column: cursor.column + 1, row: cursor.row}); if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) { CstyleBehaviour.popAutoInsertedClosing(); return { text: '', selection: [1, 1] }; } } } }); this.add("parens", "deletion", function (state, action, editor, session, range) { var selected = session.doc.getTextRange(range); if (!range.isMultiLine() && selected == '(') { var line = session.doc.getLine(range.start.row); var rightChar = line.substring(range.start.column + 1, range.start.column + 2); if (rightChar == ')') { range.end.column++; return range; } } }); this.add("brackets", "insertion", function (state, action, editor, session, text) { if (text == '[') { var selection = editor.getSelectionRange(); var selected = session.doc.getTextRange(selection); if (selected !== "" && editor.getWrapBehavioursEnabled()) { return { text: '[' + selected + ']', selection: false }; } else if (CstyleBehaviour.isSaneInsertion(editor, session)) { CstyleBehaviour.recordAutoInsert(editor, session, "]"); return { text: '[]', selection: [1, 1] }; } } else if (text == ']') { var cursor = editor.getCursorPosition(); var line = session.doc.getLine(cursor.row); var rightChar = line.substring(cursor.column, cursor.column + 1); if (rightChar == ']') { var matching = session.$findOpeningBracket(']', {column: cursor.column + 1, row: cursor.row}); if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) { CstyleBehaviour.popAutoInsertedClosing(); return { text: '', selection: [1, 1] }; } } } }); this.add("brackets", "deletion", function (state, action, editor, session, range) { var selected = session.doc.getTextRange(range); if (!range.isMultiLine() && selected == '[') { var line = session.doc.getLine(range.start.row); var rightChar = line.substring(range.start.column + 1, range.start.column + 2); if (rightChar == ']') { range.end.column++; return range; } } }); this.add("string_dquotes", "insertion", function (state, action, editor, session, text) { if (text == '"' || text == "'") { var quote = text; var selection = editor.getSelectionRange(); var selected = session.doc.getTextRange(selection); if (selected !== "" && selected !== "'" && selected != '"' && editor.getWrapBehavioursEnabled()) { return { text: quote + selected + quote, selection: false }; } else { var cursor = editor.getCursorPosition(); var line = session.doc.getLine(cursor.row); var leftChar = line.substring(cursor.column-1, cursor.column); if (leftChar == '\\') { return null; } var tokens = session.getTokens(selection.start.row); var col = 0, token; var quotepos = -1; // Track whether we're inside an open quote. for (var x = 0; x < tokens.length; x++) { token = tokens[x]; if (token.type == "string") { quotepos = -1; } else if (quotepos < 0) { quotepos = token.value.indexOf(quote); } if ((token.value.length + col) > selection.start.column) { break; } col += tokens[x].value.length; } if (!token || (quotepos < 0 && token.type !== "comment" && (token.type !== "string" || ((selection.start.column !== token.value.length+col-1) && token.value.lastIndexOf(quote) === token.value.length-1)))) { if (!CstyleBehaviour.isSaneInsertion(editor, session)) return; return { text: quote + quote, selection: [1,1] }; } else if (token && token.type === "string") { var rightChar = line.substring(cursor.column, cursor.column + 1); if (rightChar == quote) { return { text: '', selection: [1, 1] }; } } } } }); this.add("string_dquotes", "deletion", function (state, action, editor, session, range) { var selected = session.doc.getTextRange(range); if (!range.isMultiLine() && (selected == '"' || selected == "'")) { var line = session.doc.getLine(range.start.row); var rightChar = line.substring(range.start.column + 1, range.start.column + 2); if (rightChar == selected) { range.end.column++; return range; } } }); }; oop.inherits(CstyleBehaviour, Behaviour); exports.CstyleBehaviour = CstyleBehaviour; }); ace.define('ace/mode/folding/cstyle', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/range', 'ace/mode/folding/fold_mode'], function(require, exports, module) { var oop = require("../../lib/oop"); var Range = require("../../range").Range; var BaseFoldMode = require("./fold_mode").FoldMode; var FoldMode = exports.FoldMode = function(commentRegex) { if (commentRegex) { this.foldingStartMarker = new RegExp( this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start) ); this.foldingStopMarker = new RegExp( this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end) ); } }; oop.inherits(FoldMode, BaseFoldMode); (function() { this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/; this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/; this.getFoldWidgetRange = function(session, foldStyle, row) { var line = session.getLine(row); var match = line.match(this.foldingStartMarker); if (match) { var i = match.index; if (match[1]) return this.openingBracketBlock(session, match[1], row, i); return session.getCommentFoldRange(row, i + match[0].length, 1); } if (foldStyle !== "markbeginend") return; var match = line.match(this.foldingStopMarker); if (match) { var i = match.index + match[0].length; if (match[1]) return this.closingBracketBlock(session, match[1], row, i); return session.getCommentFoldRange(row, i, -1); } }; }).call(FoldMode.prototype); }); ace.define('ace/mode/dart_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text_highlight_rules'], function(require, exports, module) { var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DartHighlightRules = function() { var constantLanguage = "true|false|null"; var variableLanguage = "this|super"; var keywordControl = "try|catch|finally|throw|break|case|continue|default|do|else|for|if|in|return|switch|while|new"; var keywordDeclaration = "abstract|class|extends|external|factory|implements|get|native|operator|set|typedef"; var storageModifier = "static|final|const"; var storageType = "void|bool|num|int|double|Dynamic|var|String"; var keywordMapper = this.createKeywordMapper({ "constant.language.dart": constantLanguage, "variable.language.dart": variableLanguage, "keyword.control.dart": keywordControl, "keyword.declaration.dart": keywordDeclaration, "storage.modifier.dart": storageModifier, "storage.type.primitive.dart": storageType }, "identifier"); var stringfill = { token : "string", regex : ".+" }; this.$rules = { "start": [ { token : "comment", regex : /\/\/.*$/ }, { token : "comment", // multi line comment regex : /\/\*/, next : "comment" }, { token: ["meta.preprocessor.script.dart"], regex: "^(#!.*)$" }, { token: "keyword.other.import.dart", regex: "(?:\\b)(?:library|import|source|part|of)(?:\\b)" }, { token : ["keyword.other.import.dart", "text"], regex : "(?:\\b)(prefix)(\\s*:)" }, { regex: "\\bas\\b", token: "keyword.cast.dart" }, { regex: "\\?|:", token: "keyword.control.ternary.dart" }, { regex: "(?:\\b)(is\\!?)(?:\\b)", token: ["keyword.operator.dart"] }, { regex: "(<<|>>>?|~|\\^|\\||&)", token: ["keyword.operator.bitwise.dart"] }, { regex: "((?:&|\\^|\\||<<|>>>?)=)", token: ["keyword.operator.assignment.bitwise.dart"] }, { regex: "(===?|!==?|<=?|>=?)", token: ["keyword.operator.comparison.dart"] }, { regex: "((?:[+*/%-]|\\~)=)", token: ["keyword.operator.assignment.arithmetic.dart"] }, { regex: "=", token: "keyword.operator.assignment.dart" }, { token : "string", regex : "'''", next : "qdoc" }, { token : "string", regex : '"""', next : "qqdoc" }, { token : "string", regex : "'", next : "qstring" }, { token : "string", regex : '"', next : "qqstring" }, { regex: "(\\-\\-|\\+\\+)", token: ["keyword.operator.increment-decrement.dart"] }, { regex: "(\\-|\\+|\\*|\\/|\\~\\/|%)", token: ["keyword.operator.arithmetic.dart"] }, { regex: "(!|&&|\\|\\|)", token: ["keyword.operator.logical.dart"] }, { token : "constant.numeric", // hex regex : "0[xX][0-9a-fA-F]+\\b" }, { token : "constant.numeric", // float regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b" }, { token : keywordMapper, regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b" } ], "comment" : [ { token : "comment", // closing comment regex : ".*?\\*\\/", next : "start" }, { token : "comment", // comment spanning whole line regex : ".+" } ], "qdoc" : [ { token : "string", regex : ".*?'''", next : "start" }, stringfill], "qqdoc" : [ { token : "string", regex : '.*?"""', next : "start" }, stringfill], "qstring" : [ { token : "string", regex : "[^\\\\']*(?:\\\\.[^\\\\']*)*'", next : "start" }, stringfill], "qqstring" : [ { token : "string", regex : '[^\\\\"]*(?:\\\\.[^\\\\"]*)*"', next : "start" }, stringfill] } }; oop.inherits(DartHighlightRules, TextHighlightRules); exports.DartHighlightRules = DartHighlightRules; });
ArcherSys/ArcherVMPeridot
htdocs/owncloud-serv/apps/files_texteditor/js/vendor/ace/src-noconflict/mode-dart.js
JavaScript
mit
36,162
<?php use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest; $container->loadFromExtension('framework', array( 'workflows' => array( 'article' => array( 'type' => 'workflow', 'marking_store' => array( 'type' => 'multiple_state', ), 'supports' => array( FrameworkExtensionTest::class, ), 'initial_place' => 'draft', 'places' => array( 'draft', 'wait_for_journalist', 'approved_by_journalist', 'wait_for_spellchecker', 'approved_by_spellchecker', 'published', ), 'transitions' => array( 'request_review' => array( 'from' => 'draft', 'to' => array('wait_for_journalist', 'wait_for_spellchecker'), ), 'journalist_approval' => array( 'from' => 'wait_for_journalist', 'to' => 'approved_by_journalist', ), 'spellchecker_approval' => array( 'from' => 'wait_for_spellchecker', 'to' => 'approved_by_spellchecker', ), 'publish' => array( 'from' => array('approved_by_journalist', 'approved_by_spellchecker'), 'to' => 'published', ), ), ), 'pull_request' => array( 'marking_store' => array( 'type' => 'single_state', ), 'supports' => array( FrameworkExtensionTest::class, ), 'initial_place' => 'start', 'places' => array( 'start', 'coding', 'travis', 'review', 'merged', 'closed', ), 'transitions' => array( 'submit' => array( 'from' => 'start', 'to' => 'travis', ), 'update' => array( 'from' => array('coding', 'travis', 'review'), 'to' => 'travis', ), 'wait_for_review' => array( 'from' => 'travis', 'to' => 'review', ), 'request_change' => array( 'from' => 'review', 'to' => 'coding', ), 'accept' => array( 'from' => 'review', 'to' => 'merged', ), 'reject' => array( 'from' => 'review', 'to' => 'closed', ), 'reopen' => array( 'from' => 'closed', 'to' => 'review', ), ), ), 'service_marking_store_workflow' => array( 'type' => 'workflow', 'marking_store' => array( 'service' => 'workflow_service', ), 'supports' => array( FrameworkExtensionTest::class, ), 'places' => array( 'first', 'last', ), 'transitions' => array( 'go' => array( 'from' => 'first', 'to' => 'last', ), ), ), ), ));
DavidGarciaCat/symfony
src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/workflows.php
PHP
mit
3,584
using System; using Confuser.Core; using Confuser.Renamer.BAML; using dnlib.DotNet; namespace Confuser.Renamer.References { internal class BAMLConverterTypeReference : INameReference<TypeDef> { readonly PropertyRecord propRec; readonly TypeSig sig; readonly TextRecord textRec; readonly BAMLAnalyzer.XmlNsContext xmlnsCtx; public BAMLConverterTypeReference(BAMLAnalyzer.XmlNsContext xmlnsCtx, TypeSig sig, PropertyRecord rec) { this.xmlnsCtx = xmlnsCtx; this.sig = sig; propRec = rec; } public BAMLConverterTypeReference(BAMLAnalyzer.XmlNsContext xmlnsCtx, TypeSig sig, TextRecord rec) { this.xmlnsCtx = xmlnsCtx; this.sig = sig; textRec = rec; } public bool UpdateNameReference(ConfuserContext context, INameService service) { string name = sig.ReflectionName; string prefix = xmlnsCtx.GetPrefix(sig.ReflectionNamespace, sig.ToBasicTypeDefOrRef().ResolveTypeDefThrow().Module.Assembly); if (!string.IsNullOrEmpty(prefix)) name = prefix + ":" + name; if (propRec != null) propRec.Value = name; else textRec.Value = name; return true; } public bool ShouldCancelRename() { return false; } } }
yeaicc/ConfuserEx
Confuser.Renamer/References/BAMLConverterTypeReference.cs
C#
mit
1,175
/*! * Connect * Copyright(c) 2011 TJ Holowaychuk * MIT Licensed */ /** * Module dependencies. */ var cookie = require('cookie'); var http = require('http'); var onHeaders = require('on-headers'); var utils = require('./utils') , res = http.ServerResponse.prototype , addListener = res.addListener , setHeader = res.setHeader; /** * Deprecated proxy for .on('header', ...) */ var attachHeaderListener = utils.deprecate(onHeaders, 'res.on("header"): use on-headers module directly'); // apply only once if (!res._hasConnectPatch) { /** * Provide a public "header sent" flag * until node does. * * @return {Boolean} * @api public */ Object.defineProperty(res, 'headerSent', { configurable: true, enumerable: true, get: utils.deprecate(headersSent, 'res.headerSent: use standard res.headersSent') }); if (!('headersSent' in res)) { /** * Provide the public "header sent" flag * added in node.js 0.10. * * @return {Boolean} * @api public */ Object.defineProperty(res, 'headersSent', { configurable: true, enumerable: true, get: headersSent }); } /** * Set cookie `name` to `val`, with the given `options`. * * Options: * * - `maxAge` max-age in milliseconds, converted to `expires` * - `path` defaults to "/" * * @param {String} name * @param {String} val * @param {Object} options * @api public */ res.cookie = function(name, val, options){ options = utils.merge({}, options); if ('maxAge' in options) { options.expires = new Date(Date.now() + options.maxAge); options.maxAge /= 1000; } if (null == options.path) options.path = '/'; this.setHeader('Set-Cookie', cookie.serialize(name, String(val), options)); }; /** * Append additional header `field` with value `val`. * * @param {String} field * @param {String} val * @api public */ res.appendHeader = function appendHeader(field, val){ var prev = this.getHeader(field); if (!prev) return setHeader.call(this, field, val); // concat the new and prev vals val = Array.isArray(prev) ? prev.concat(val) : Array.isArray(val) ? [prev].concat(val) : [prev, val]; return setHeader.call(this, field, val); }; /** * Set header `field` to `val`, special-casing * the `Set-Cookie` field for multiple support. * * @param {String} field * @param {String} val * @api public */ res.setHeader = function(field, val){ var key = field.toLowerCase() , prev; // special-case Set-Cookie if ('set-cookie' == key) return this.appendHeader(field, val); // charset if ('content-type' == key && this.charset) { val = utils.setCharset(val, this.charset, true); } return setHeader.call(this, field, val); }; /** * Proxy to emit "header" event. */ res.on = function(type, listener){ if (type === 'header') { attachHeaderListener(this, listener); return this; } return addListener.apply(this, arguments); }; res._hasConnectPatch = true; } /** * Determine if headers sent. * * @return {Boolean} * @api private */ function headersSent(){ return Boolean(this._header); }
icchis/soramiru
node_modules/gulp-connect/node_modules/connect/lib/patch.js
JavaScript
mit
3,286
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Managing your Applications &mdash; CodeIgniter 3.0.6 documentation</title> <link rel="shortcut icon" href="../_static/ci-icon.ico"/> <link href='https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="../_static/css/citheme.css" type="text/css" /> <link rel="top" title="CodeIgniter 3.0.6 documentation" href="../index.html"/> <link rel="up" title="General Topics" href="index.html"/> <link rel="next" title="Handling Multiple Environments" href="environments.html"/> <link rel="prev" title="Running via the CLI" href="cli.html"/> <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script> </head> <body class="wy-body-for-nav" role="document"> <div id="nav"> <div id="nav_inner"> <div id="pulldown-menu" class="ciNav"> <ul> <li class="toctree-l1"><a class="reference internal" href="welcome.html">Welcome to CodeIgniter</a><ul class="simple"> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../installation/index.html">Installation Instructions</a><ul> <li class="toctree-l2"><a class="reference internal" href="../installation/downloads.html">Downloading CodeIgniter</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/index.html">Installation Instructions</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/upgrading.html">Upgrading From a Previous Version</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/troubleshooting.html">Troubleshooting</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../overview/index.html">CodeIgniter Overview</a><ul> <li class="toctree-l2"><a class="reference internal" href="../overview/getting_started.html">Getting Started</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/at_a_glance.html">CodeIgniter at a Glance</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/features.html">Supported Features</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/appflow.html">Application Flow Chart</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/mvc.html">Model-View-Controller</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/goals.html">Architectural Goals</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../tutorial/index.html">Tutorial</a><ul> <li class="toctree-l2"><a class="reference internal" href="../tutorial/static_pages.html">Static pages</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/news_section.html">News section</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/create_news_items.html">Create news items</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/conclusion.html">Conclusion</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../contributing/index.html">Contributing to CodeIgniter</a><ul> <li class="toctree-l2"><a class="reference internal" href="../documentation/index.html">Writing CodeIgniter Documentation</a></li> <li class="toctree-l2"><a class="reference internal" href="../DCO.html">Developer&#8217;s Certificate of Origin 1.1</a></li> </ul> </li> </ul> <ul class="current"> <li class="toctree-l1 current"><a class="reference internal" href="index.html">General Topics</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="urls.html">CodeIgniter URLs</a></li> <li class="toctree-l2"><a class="reference internal" href="controllers.html">Controllers</a></li> <li class="toctree-l2"><a class="reference internal" href="reserved_names.html">Reserved Names</a></li> <li class="toctree-l2"><a class="reference internal" href="views.html">Views</a></li> <li class="toctree-l2"><a class="reference internal" href="models.html">Models</a></li> <li class="toctree-l2"><a class="reference internal" href="helpers.html">Helpers</a></li> <li class="toctree-l2"><a class="reference internal" href="libraries.html">Using CodeIgniter Libraries</a></li> <li class="toctree-l2"><a class="reference internal" href="creating_libraries.html">Creating Libraries</a></li> <li class="toctree-l2"><a class="reference internal" href="drivers.html">Using CodeIgniter Drivers</a></li> <li class="toctree-l2"><a class="reference internal" href="creating_drivers.html">Creating Drivers</a></li> <li class="toctree-l2"><a class="reference internal" href="core_classes.html">Creating Core System Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="ancillary_classes.html">Creating Ancillary Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="hooks.html">Hooks - Extending the Framework Core</a></li> <li class="toctree-l2"><a class="reference internal" href="autoloader.html">Auto-loading Resources</a></li> <li class="toctree-l2"><a class="reference internal" href="common_functions.html">Common Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="compatibility_functions.html">Compatibility Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="routing.html">URI Routing</a></li> <li class="toctree-l2"><a class="reference internal" href="errors.html">Error Handling</a></li> <li class="toctree-l2"><a class="reference internal" href="caching.html">Caching</a></li> <li class="toctree-l2"><a class="reference internal" href="profiling.html">Profiling Your Application</a></li> <li class="toctree-l2"><a class="reference internal" href="cli.html">Running via the CLI</a></li> <li class="toctree-l2 current"><a class="current reference internal" href="">Managing your Applications</a></li> <li class="toctree-l2"><a class="reference internal" href="environments.html">Handling Multiple Environments</a></li> <li class="toctree-l2"><a class="reference internal" href="alternative_php.html">Alternate PHP Syntax for View Files</a></li> <li class="toctree-l2"><a class="reference internal" href="security.html">Security</a></li> <li class="toctree-l2"><a class="reference internal" href="styleguide.html">PHP Style Guide</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../libraries/index.html">Libraries</a><ul> <li class="toctree-l2"><a class="reference internal" href="../libraries/benchmark.html">Benchmarking Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/caching.html">Caching Driver</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/calendar.html">Calendaring Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/cart.html">Shopping Cart Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/config.html">Config Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/email.html">Email Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/encrypt.html">Encrypt Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/encryption.html">Encryption Library</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/file_uploading.html">File Uploading Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/form_validation.html">Form Validation</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/ftp.html">FTP Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/image_lib.html">Image Manipulation Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/input.html">Input Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/javascript.html">Javascript Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/language.html">Language Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/loader.html">Loader Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/migration.html">Migrations Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/output.html">Output Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/pagination.html">Pagination Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/parser.html">Template Parser Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/security.html">Security Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/sessions.html">Session Library</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/table.html">HTML Table Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/trackback.html">Trackback Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/typography.html">Typography Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/unit_testing.html">Unit Testing Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/uri.html">URI Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/user_agent.html">User Agent Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/xmlrpc.html">XML-RPC and XML-RPC Server Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/zip.html">Zip Encoding Class</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../database/index.html">Database Reference</a><ul> <li class="toctree-l2"><a class="reference internal" href="../database/examples.html">Quick Start: Usage Examples</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/configuration.html">Database Configuration</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/connecting.html">Connecting to a Database</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/queries.html">Running Queries</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/results.html">Generating Query Results</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/helpers.html">Query Helper Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/query_builder.html">Query Builder Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/transactions.html">Transactions</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/metadata.html">Getting MetaData</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/call_function.html">Custom Function Calls</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/caching.html">Query Caching</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/forge.html">Database Manipulation with Database Forge</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/utilities.html">Database Utilities Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/db_driver_reference.html">Database Driver Reference</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../helpers/index.html">Helpers</a><ul> <li class="toctree-l2"><a class="reference internal" href="../helpers/array_helper.html">Array Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/captcha_helper.html">CAPTCHA Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/cookie_helper.html">Cookie Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/date_helper.html">Date Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/directory_helper.html">Directory Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/download_helper.html">Download Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/email_helper.html">Email Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/file_helper.html">File Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/form_helper.html">Form Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/html_helper.html">HTML Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/inflector_helper.html">Inflector Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/language_helper.html">Language Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/number_helper.html">Number Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/path_helper.html">Path Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/security_helper.html">Security Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/smiley_helper.html">Smiley Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/string_helper.html">String Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/text_helper.html">Text Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/typography_helper.html">Typography Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/url_helper.html">URL Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/xml_helper.html">XML Helper</a></li> </ul> </li> </ul> </div> </div> </div> <div id="nav2"> <a href="#" id="openToc"> <img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAARgAA/+4ADkFkb2JlAGTAAAAAAf/bAIQABAMDAwMDBAMDBAYEAwQGBwUEBAUHCAYGBwYGCAoICQkJCQgKCgwMDAwMCgwMDQ0MDBERERERFBQUFBQUFBQUFAEEBQUIBwgPCgoPFA4ODhQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgAKwCaAwERAAIRAQMRAf/EAHsAAQAABwEBAAAAAAAAAAAAAAABAwQFBgcIAgkBAQAAAAAAAAAAAAAAAAAAAAAQAAEDAwICBwYEAgsAAAAAAAIBAwQAEQUSBiEHkROTVNQWGDFBUVIUCHEiMtOUFWGBobHRQlMkZIRVEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwDSC+ygkOOaUoKigUCgUCgUCgUCgUCgUCgUCgkuGguIP9FBMFb0Hqg7We+3jlmIqqYFf4ub+/QYlnOR/LqIBKGFUbf8qWv971BytQXXE7Y3Lnm3HsFhp2TaZJAdchRXpIgSpdEJWxJEW3xoKV7F5OMy7JkQn2o7D6w33XGjEAkoiqrJEqIiOIiKuhePCgqp22dyYyS3CyWHnQ5joG61HkRnmnTbaFSMhExRVQRRVJU9iUHjE7ez+fJ0MFipmUNhBV8YUd2SoIV9KkjQla9ltegttBdPLW4/qocL+UTfrMiHW4+P9M71shuyrqaHTcxsl7jegpsji8nh5ZwMvDfgTm0RTjSmjYdFCS6KoOIipdFunCgmNYTMv457MMY6U7iI6oMieDDhRm1VbIhuoOkbqtuK0Hpzb+eZcYZexUxt6UyUqK2cd0SdjtgrhOgijcgERUlJOCIl6CpgbP3blRI8XgMjNARAyKNDfeRBdFDBVUAXgQrqH4pxoJTu2NysY97LP4ac1io5q1InHFeGO24LnVKJuKOkSQ/yKir+rh7aCLG1dzypZQI2FnvTgccYOM3FeN0XWERXAUEFVQgQkUktdLpegm+Td3/Xli/L+S/mYNJIOF9G/wBeLKrZHFb0akG6W1WtQWSg3Dyg5e7V3fipE3O4/wCrktyzYA+ufas2LbZIlmnAT2kvuoN1wft95augilglX/tzP3qCu9O3LL/wV/i5v79BvmTADq14UGu91467Z6U9y0HzH/ncj/U/sT/CgynZG7I2NezpZGUjIycJkYkZSG+uQ81pbBNKLxJfjwoMqZ3/ALYHl35AJ7/cuwHcu5k7r1Q5pHetBjquqVVJWGxj9Zrtcl/Ggy3dHMvauR3HFZj5nHNxSyW5JISYDMoIwx8tFIGHZhPNaykGapr6rUAiicEoMG21lMRj8buPAz8xhJrr7uOeiPTCyAwXUaGR1mgozbTusOsFLEiJ7fbQa/h7gcjy2H3V6xppwDNtUSxCJIqp7valBuWVzJ22xuCROXNNZiJkMtms0DbjUkAZjzoDrTMd9dDRI44ZC2YsrYdKWP2WDT2S3N9dNdlRYrGMYc06IURXSYb0igrpWS485xVNS6nF4rwslkoMwnbpgZLB7bmt5uMweAhDEl4B5uSLzzqTnnyVpW2jaJHRMSIjdDiiotvy3DOE5rYTEbkl5yFn28k7JyG4c7AU2HtLH1uKfaiMPI40CdYbpNtmLdwTSn5rewLNld+7TLdeal4WarWBkbVKBjgdElMJJwAAY5fl4kB3b1fp4XvagsGS3FjJfLzDNtS8aeXx7LzT7TyzByQE5PccRGRC0ZRUDRV6y62vbjagzLmJzS2vuPK43JY6aP1TW6Jz+RIWyFtyC06y3EkiiinAo7YCqfq1AqqnGgsOH3lhZO8d1pmcpB8j5XIm9OYlBJSQ/FSS4427DKO0RC8AlcEMhFdViRR1WDWR5t3WXVuL1d106kG9vdeye2g60+1FDyW0shIcXVpyroXt8I8dfd+NB1vioAdWnD3UF1+gD4UFc6CEKpagxXN43rwJLUHz7yX2c8zokt9uHlsPIhA4aRnnHJTLptIS6CNsY7iASpxUUMkReGpfbQW0vtN5pitvrsN28rwtBD0nc0+/Yft5XhaB6TuaXfsP28rwtA9J3NPv2H7eV4Wgek7mn37D9vK8LQPSdzT79h+3leFoHpO5pd+w/byvC0D0nc0u/Yft5XhaB6TuaXfsP28rwtA9J3NLv2H7eV4Wgek7ml37D9vK8LQPSdzS79h+3leFoHpO5p9+w/byvC0E9r7Reazy2HIYVPxkS/CUHVn26cosxyv2g7h89LYmZSXOenvLEQ1YaQ222RATcQCP8rSGqqA8S02W2pQ6FhMoAIlqCtsnwoCpdKClejI4i3Sgtb+GBxVuNBSFt1pV/RQefLjPyUDy4z8lA8uM/JQPLjPyUDy4z8lA8uM/JQPLjPyUDy4z8lA8uM/JQPLjPyUDy4z8lA8utJ/koJ7WCbBU/LQXOPAFq1koK8B0pag90CggtBBf6qB0UDooHRQOigdFA6KB0UDooHRQOigdFA6KB0UDooI0EaBQf//Z" title="Toggle Table of Contents" alt="Toggle Table of Contents" /> </a> </div> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-nav-search"> <a href="../index.html" class="fa fa-home"> CodeIgniter</a> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <ul> <li class="toctree-l1"><a class="reference internal" href="welcome.html">Welcome to CodeIgniter</a><ul class="simple"> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../installation/index.html">Installation Instructions</a><ul> <li class="toctree-l2"><a class="reference internal" href="../installation/downloads.html">Downloading CodeIgniter</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/index.html">Installation Instructions</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/upgrading.html">Upgrading From a Previous Version</a></li> <li class="toctree-l2"><a class="reference internal" href="../installation/troubleshooting.html">Troubleshooting</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../overview/index.html">CodeIgniter Overview</a><ul> <li class="toctree-l2"><a class="reference internal" href="../overview/getting_started.html">Getting Started</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/at_a_glance.html">CodeIgniter at a Glance</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/features.html">Supported Features</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/appflow.html">Application Flow Chart</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/mvc.html">Model-View-Controller</a></li> <li class="toctree-l2"><a class="reference internal" href="../overview/goals.html">Architectural Goals</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../tutorial/index.html">Tutorial</a><ul> <li class="toctree-l2"><a class="reference internal" href="../tutorial/static_pages.html">Static pages</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/news_section.html">News section</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/create_news_items.html">Create news items</a></li> <li class="toctree-l2"><a class="reference internal" href="../tutorial/conclusion.html">Conclusion</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../contributing/index.html">Contributing to CodeIgniter</a><ul> <li class="toctree-l2"><a class="reference internal" href="../documentation/index.html">Writing CodeIgniter Documentation</a></li> <li class="toctree-l2"><a class="reference internal" href="../DCO.html">Developer&#8217;s Certificate of Origin 1.1</a></li> </ul> </li> </ul> <ul class="current"> <li class="toctree-l1 current"><a class="reference internal" href="index.html">General Topics</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="urls.html">CodeIgniter URLs</a></li> <li class="toctree-l2"><a class="reference internal" href="controllers.html">Controllers</a></li> <li class="toctree-l2"><a class="reference internal" href="reserved_names.html">Reserved Names</a></li> <li class="toctree-l2"><a class="reference internal" href="views.html">Views</a></li> <li class="toctree-l2"><a class="reference internal" href="models.html">Models</a></li> <li class="toctree-l2"><a class="reference internal" href="helpers.html">Helpers</a></li> <li class="toctree-l2"><a class="reference internal" href="libraries.html">Using CodeIgniter Libraries</a></li> <li class="toctree-l2"><a class="reference internal" href="creating_libraries.html">Creating Libraries</a></li> <li class="toctree-l2"><a class="reference internal" href="drivers.html">Using CodeIgniter Drivers</a></li> <li class="toctree-l2"><a class="reference internal" href="creating_drivers.html">Creating Drivers</a></li> <li class="toctree-l2"><a class="reference internal" href="core_classes.html">Creating Core System Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="ancillary_classes.html">Creating Ancillary Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="hooks.html">Hooks - Extending the Framework Core</a></li> <li class="toctree-l2"><a class="reference internal" href="autoloader.html">Auto-loading Resources</a></li> <li class="toctree-l2"><a class="reference internal" href="common_functions.html">Common Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="compatibility_functions.html">Compatibility Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="routing.html">URI Routing</a></li> <li class="toctree-l2"><a class="reference internal" href="errors.html">Error Handling</a></li> <li class="toctree-l2"><a class="reference internal" href="caching.html">Caching</a></li> <li class="toctree-l2"><a class="reference internal" href="profiling.html">Profiling Your Application</a></li> <li class="toctree-l2"><a class="reference internal" href="cli.html">Running via the CLI</a></li> <li class="toctree-l2 current"><a class="current reference internal" href="">Managing your Applications</a></li> <li class="toctree-l2"><a class="reference internal" href="environments.html">Handling Multiple Environments</a></li> <li class="toctree-l2"><a class="reference internal" href="alternative_php.html">Alternate PHP Syntax for View Files</a></li> <li class="toctree-l2"><a class="reference internal" href="security.html">Security</a></li> <li class="toctree-l2"><a class="reference internal" href="styleguide.html">PHP Style Guide</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../libraries/index.html">Libraries</a><ul> <li class="toctree-l2"><a class="reference internal" href="../libraries/benchmark.html">Benchmarking Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/caching.html">Caching Driver</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/calendar.html">Calendaring Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/cart.html">Shopping Cart Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/config.html">Config Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/email.html">Email Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/encrypt.html">Encrypt Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/encryption.html">Encryption Library</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/file_uploading.html">File Uploading Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/form_validation.html">Form Validation</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/ftp.html">FTP Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/image_lib.html">Image Manipulation Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/input.html">Input Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/javascript.html">Javascript Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/language.html">Language Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/loader.html">Loader Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/migration.html">Migrations Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/output.html">Output Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/pagination.html">Pagination Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/parser.html">Template Parser Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/security.html">Security Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/sessions.html">Session Library</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/table.html">HTML Table Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/trackback.html">Trackback Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/typography.html">Typography Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/unit_testing.html">Unit Testing Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/uri.html">URI Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/user_agent.html">User Agent Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/xmlrpc.html">XML-RPC and XML-RPC Server Classes</a></li> <li class="toctree-l2"><a class="reference internal" href="../libraries/zip.html">Zip Encoding Class</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../database/index.html">Database Reference</a><ul> <li class="toctree-l2"><a class="reference internal" href="../database/examples.html">Quick Start: Usage Examples</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/configuration.html">Database Configuration</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/connecting.html">Connecting to a Database</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/queries.html">Running Queries</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/results.html">Generating Query Results</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/helpers.html">Query Helper Functions</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/query_builder.html">Query Builder Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/transactions.html">Transactions</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/metadata.html">Getting MetaData</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/call_function.html">Custom Function Calls</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/caching.html">Query Caching</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/forge.html">Database Manipulation with Database Forge</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/utilities.html">Database Utilities Class</a></li> <li class="toctree-l2"><a class="reference internal" href="../database/db_driver_reference.html">Database Driver Reference</a></li> </ul> </li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="../helpers/index.html">Helpers</a><ul> <li class="toctree-l2"><a class="reference internal" href="../helpers/array_helper.html">Array Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/captcha_helper.html">CAPTCHA Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/cookie_helper.html">Cookie Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/date_helper.html">Date Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/directory_helper.html">Directory Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/download_helper.html">Download Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/email_helper.html">Email Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/file_helper.html">File Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/form_helper.html">Form Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/html_helper.html">HTML Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/inflector_helper.html">Inflector Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/language_helper.html">Language Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/number_helper.html">Number Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/path_helper.html">Path Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/security_helper.html">Security Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/smiley_helper.html">Smiley Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/string_helper.html">String Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/text_helper.html">Text Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/typography_helper.html">Typography Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/url_helper.html">URL Helper</a></li> <li class="toctree-l2"><a class="reference internal" href="../helpers/xml_helper.html">XML Helper</a></li> </ul> </li> </ul> </div> &nbsp; </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../index.html">CodeIgniter</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="../index.html">Docs</a> &raquo;</li> <li><a href="index.html">General Topics</a> &raquo;</li> <li>Managing your Applications</li> <li class="wy-breadcrumbs-aside"> </li> <div style="float:right;margin-left:5px;" id="closeMe"> <img title="Classic Layout" alt="classic layout" src="data:image/gif;base64,R0lGODlhFAAUAJEAAAAAADMzM////wAAACH5BAUUAAIALAAAAAAUABQAAAImlI+py+0PU5gRBRDM3DxbWoXis42X13USOLauUIqnlsaH/eY6UwAAOw==" /> </div> </ul> <hr/> </div> <div role="main" class="document"> <div class="section" id="managing-your-applications"> <h1>Managing your Applications<a class="headerlink" href="#managing-your-applications" title="Permalink to this headline">¶</a></h1> <p>By default it is assumed that you only intend to use CodeIgniter to manage one application, which you will build in your <em>application/</em> directory. It is possible, however, to have multiple sets of applications that share a single CodeIgniter installation, or even to rename or relocate your application directory.</p> <div class="section" id="renaming-the-application-directory"> <h2>Renaming the Application Directory<a class="headerlink" href="#renaming-the-application-directory" title="Permalink to this headline">¶</a></h2> <p>If you would like to rename your application directory you may do so as long as you open your main index.php file and set its name using the <tt class="docutils literal"><span class="pre">$application_folder</span></tt> variable:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$application_folder</span> <span class="o">=</span> <span class="s1">&#39;application&#39;</span><span class="p">;</span> </pre></div> </div> </div> <div class="section" id="relocating-your-application-directory"> <h2>Relocating your Application Directory<a class="headerlink" href="#relocating-your-application-directory" title="Permalink to this headline">¶</a></h2> <p>It is possible to move your application directory to a different location on your server than your web root. To do so open your main index.php and set a <em>full server path</em> in the <tt class="docutils literal"><span class="pre">$application_folder</span></tt> variable:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$application_folder</span> <span class="o">=</span> <span class="s1">&#39;/path/to/your/application&#39;</span><span class="p">;</span> </pre></div> </div> </div> <div class="section" id="running-multiple-applications-with-one-codeigniter-installation"> <h2>Running Multiple Applications with one CodeIgniter Installation<a class="headerlink" href="#running-multiple-applications-with-one-codeigniter-installation" title="Permalink to this headline">¶</a></h2> <p>If you would like to share a common CodeIgniter installation to manage several different applications simply put all of the directories located inside your application directory into their own sub-directory.</p> <p>For example, let&#8217;s say you want to create two applications, named &#8220;foo&#8221; and &#8220;bar&#8221;. You could structure your application directories like this:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nx">applications</span><span class="o">/</span><span class="nx">foo</span><span class="o">/</span> <span class="nx">applications</span><span class="o">/</span><span class="nx">foo</span><span class="o">/</span><span class="nx">config</span><span class="o">/</span> <span class="nx">applications</span><span class="o">/</span><span class="nx">foo</span><span class="o">/</span><span class="nx">controllers</span><span class="o">/</span> <span class="nx">applications</span><span class="o">/</span><span class="nx">foo</span><span class="o">/</span><span class="nx">libraries</span><span class="o">/</span> <span class="nx">applications</span><span class="o">/</span><span class="nx">foo</span><span class="o">/</span><span class="nx">models</span><span class="o">/</span> <span class="nx">applications</span><span class="o">/</span><span class="nx">foo</span><span class="o">/</span><span class="nx">views</span><span class="o">/</span> <span class="nx">applications</span><span class="o">/</span><span class="nx">bar</span><span class="o">/</span> <span class="nx">applications</span><span class="o">/</span><span class="nx">bar</span><span class="o">/</span><span class="nx">config</span><span class="o">/</span> <span class="nx">applications</span><span class="o">/</span><span class="nx">bar</span><span class="o">/</span><span class="nx">controllers</span><span class="o">/</span> <span class="nx">applications</span><span class="o">/</span><span class="nx">bar</span><span class="o">/</span><span class="nx">libraries</span><span class="o">/</span> <span class="nx">applications</span><span class="o">/</span><span class="nx">bar</span><span class="o">/</span><span class="nx">models</span><span class="o">/</span> <span class="nx">applications</span><span class="o">/</span><span class="nx">bar</span><span class="o">/</span><span class="nx">views</span><span class="o">/</span> </pre></div> </div> <p>To select a particular application for use requires that you open your main index.php file and set the <tt class="docutils literal"><span class="pre">$application_folder</span></tt> variable. For example, to select the &#8220;foo&#8221; application for use you would do this:</p> <div class="highlight-ci"><div class="highlight"><pre><span class="nv">$application_folder</span> <span class="o">=</span> <span class="s1">&#39;applications/foo&#39;</span><span class="p">;</span> </pre></div> </div> <div class="admonition note"> <p class="first admonition-title">Note</p> <p class="last">Each of your applications will need its own index.php file which calls the desired application. The index.php file can be named anything you want.</p> </div> </div> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="environments.html" class="btn btn-neutral float-right" title="Handling Multiple Environments">Next <span class="fa fa-arrow-circle-right"></span></a> <a href="cli.html" class="btn btn-neutral" title="Running via the CLI"><span class="fa fa-arrow-circle-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> &copy; Copyright 2014 - 2016, British Columbia Institute of Technology. Last updated on Mar 21, 2016. </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT:'../', VERSION:'3.0.6', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: false }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.StickyNav.enable(); }); </script> </body> </html>
MrKarl/soram
user_guide/general/managing_apps.html
HTML
mit
39,428
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Routing\Tests; use Symfony\Component\Routing\Router; class RouterTest extends \PHPUnit_Framework_TestCase { private $router = null; private $loader = null; protected function setUp() { $this->loader = $this->getMock('Symfony\Component\Config\Loader\LoaderInterface'); $this->router = new Router($this->loader, 'routing.yml'); } public function testSetOptionsWithSupportedOptions() { $this->router->setOptions(array( 'cache_dir' => './cache', 'debug' => true, 'resource_type' => 'ResourceType' )); $this->assertSame('./cache', $this->router->getOption('cache_dir')); $this->assertTrue($this->router->getOption('debug')); $this->assertSame('ResourceType', $this->router->getOption('resource_type')); } /** * @expectedException \InvalidArgumentException * @expectedExceptionMessage The Router does not support the following options: "option_foo", "option_bar" */ public function testSetOptionsWithUnsupportedOptions() { $this->router->setOptions(array( 'cache_dir' => './cache', 'option_foo' => true, 'option_bar' => 'baz', 'resource_type' => 'ResourceType' )); } public function testSetOptionWithSupportedOption() { $this->router->setOption('cache_dir', './cache'); $this->assertSame('./cache', $this->router->getOption('cache_dir')); } /** * @expectedException \InvalidArgumentException * @expectedExceptionMessage The Router does not support the "option_foo" option */ public function testSetOptionWithUnsupportedOption() { $this->router->setOption('option_foo', true); } /** * @expectedException \InvalidArgumentException * @expectedExceptionMessage The Router does not support the "option_foo" option */ public function testGetOptionWithUnsupportedOption() { $this->router->getOption('option_foo', true); } public function testThatRouteCollectionIsLoaded() { $this->router->setOption('resource_type', 'ResourceType'); $routeCollection = $this->getMock('Symfony\Component\Routing\RouteCollection'); $this->loader->expects($this->once()) ->method('load')->with('routing.yml', 'ResourceType') ->will($this->returnValue($routeCollection)); $this->assertSame($routeCollection, $this->router->getRouteCollection()); } /** * @dataProvider provideMatcherOptionsPreventingCaching */ public function testMatcherIsCreatedIfCacheIsNotConfigured($option) { $this->router->setOption($option, null); $this->loader->expects($this->once()) ->method('load')->with('routing.yml', null) ->will($this->returnValue($this->getMock('Symfony\Component\Routing\RouteCollection'))); $this->assertInstanceOf('Symfony\\Component\\Routing\\Matcher\\UrlMatcher', $this->router->getMatcher()); } public function provideMatcherOptionsPreventingCaching() { return array( array('cache_dir'), array('matcher_cache_class') ); } /** * @dataProvider provideGeneratorOptionsPreventingCaching */ public function testGeneratorIsCreatedIfCacheIsNotConfigured($option) { $this->router->setOption($option, null); $this->loader->expects($this->once()) ->method('load')->with('routing.yml', null) ->will($this->returnValue($this->getMock('Symfony\Component\Routing\RouteCollection'))); $this->assertInstanceOf('Symfony\\Component\\Routing\\Generator\\UrlGenerator', $this->router->getGenerator()); } public function provideGeneratorOptionsPreventingCaching() { return array( array('cache_dir'), array('generator_cache_class') ); } }
mu4ddi3/gajdaw-zad-31
vendor/symfony/symfony/src/Symfony/Component/Routing/Tests/RouterTest.php
PHP
mit
4,224
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */ article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; } audio, canvas, video { display: inline-block; } audio:not([controls]) { display: none; height: 0; } [hidden], template { display: none; } html { font-family: sans-serif; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } body { margin: 0; } a { background: transparent; } a:focus { outline: thin dotted; } a:active, a:hover { outline: 0; } h1 { margin: 0.67em 0; font-size: 2em; } abbr[title] { border-bottom: 1px dotted; } b, strong { font-weight: bold; } dfn { font-style: italic; } hr { height: 0; -moz-box-sizing: content-box; box-sizing: content-box; } mark { color: #000; background: #ff0; } code, kbd, pre, samp { font-family: monospace, serif; font-size: 1em; } pre { white-space: pre-wrap; } q { quotes: "\201C" "\201D" "\2018" "\2019"; } small { font-size: 80%; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { border: 0; } svg:not(:root) { overflow: hidden; } figure { margin: 0; } fieldset { padding: 0.35em 0.625em 0.75em; margin: 0 2px; border: 1px solid #c0c0c0; } legend { padding: 0; border: 0; } button, input, select, textarea { margin: 0; font-family: inherit; font-size: 100%; } button, input { line-height: normal; } button, select { text-transform: none; } button, html input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; } button[disabled], html input[disabled] { cursor: default; } input[type="checkbox"], input[type="radio"] { padding: 0; box-sizing: border-box; } input[type="search"] { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; -webkit-appearance: textfield; } input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } button::-moz-focus-inner, input::-moz-focus-inner { padding: 0; border: 0; } textarea { overflow: auto; vertical-align: top; } table { border-collapse: collapse; border-spacing: 0; } @media print { * { color: #000 !important; text-shadow: none !important; background: transparent !important; box-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } @page { margin: 2cm .5cm; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } select { background: #fff !important; } .navbar { display: none; } .table td, .table th { background-color: #fff !important; } .btn > .caret, .dropup > .btn > .caret { border-top-color: #000 !important; } .label { border: 1px solid #000; } .table { border-collapse: collapse !important; } .table-bordered th, .table-bordered td { border: 1px solid #ddd !important; } } *, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 62.5%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.428571429; color: #c8c8c8; background-color: #272b30; } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } a { color: #ffffff; text-decoration: none; } a:hover, a:focus { color: #ffffff; text-decoration: underline; } a:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } img { vertical-align: middle; } .img-responsive { display: block; height: auto; max-width: 100%; } .img-rounded { border-radius: 6px; } .img-thumbnail { display: inline-block; height: auto; max-width: 100%; padding: 4px; line-height: 1.428571429; background-color: #272b30; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .img-circle { border-radius: 50%; } hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #1c1e22; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; color: inherit; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small { font-weight: normal; line-height: 1; color: #7a8288; } h1, h2, h3 { margin-top: 20px; margin-bottom: 10px; } h1 small, h2 small, h3 small, h1 .small, h2 .small, h3 .small { font-size: 65%; } h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; } h4 small, h5 small, h6 small, h4 .small, h5 .small, h6 .small { font-size: 75%; } h1, .h1 { font-size: 36px; } h2, .h2 { font-size: 30px; } h3, .h3 { font-size: 24px; } h4, .h4 { font-size: 18px; } h5, .h5 { font-size: 14px; } h6, .h6 { font-size: 12px; } p { margin: 0 0 10px; } .lead { margin-bottom: 20px; font-size: 16px; font-weight: 200; line-height: 1.4; } @media (min-width: 768px) { .lead { font-size: 21px; } } small, .small { font-size: 85%; } cite { font-style: normal; } .text-muted { color: #7a8288; } .text-primary { color: #7a8288; } .text-primary:hover { color: #62686d; } .text-warning { color: #ffffff; } .text-warning:hover { color: #e6e6e6; } .text-danger { color: #ffffff; } .text-danger:hover { color: #e6e6e6; } .text-success { color: #ffffff; } .text-success:hover { color: #e6e6e6; } .text-info { color: #ffffff; } .text-info:hover { color: #e6e6e6; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } .page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #1c1e22; } ul, ol { margin-top: 0; margin-bottom: 10px; } ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; list-style: none; } .list-inline > li { display: inline-block; padding-right: 5px; padding-left: 5px; } .list-inline > li:first-child { padding-left: 0; } dl { margin-top: 0; margin-bottom: 20px; } dt, dd { line-height: 1.428571429; } dt { font-weight: bold; } dd { margin-left: 0; } @media (min-width: 768px) { .dl-horizontal dt { float: left; width: 160px; overflow: hidden; clear: left; text-align: right; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #7a8288; } .initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 10px 20px; margin: 0 0 20px; border-left: 5px solid #7a8288; } blockquote p { font-size: 17.5px; font-weight: 300; line-height: 1.25; } blockquote p:last-child { margin-bottom: 0; } blockquote small, blockquote .small { display: block; line-height: 1.428571429; color: #7a8288; } blockquote small:before, blockquote .small:before { content: '\2014 \00A0'; } blockquote.pull-right { padding-right: 15px; padding-left: 0; border-right: 5px solid #7a8288; border-left: 0; } blockquote.pull-right p, blockquote.pull-right small, blockquote.pull-right .small { text-align: right; } blockquote.pull-right small:before, blockquote.pull-right .small:before { content: ''; } blockquote.pull-right small:after, blockquote.pull-right .small:after { content: '\00A0 \2014'; } blockquote:before, blockquote:after { content: ""; } address { margin-bottom: 20px; font-style: normal; line-height: 1.428571429; } code, kbd, pre, samp { font-family: Monaco, Menlo, Consolas, "Courier New", monospace; } code { padding: 2px 4px; font-size: 90%; color: #c7254e; white-space: nowrap; background-color: #f9f2f4; border-radius: 4px; } pre { display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.428571429; color: #3a3f44; word-break: break-all; word-wrap: break-word; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; } pre code { padding: 0; font-size: inherit; color: inherit; white-space: pre-wrap; background-color: transparent; border-radius: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } .container { padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } @media (min-width: 768px) { .container { width: 750px; } } @media (min-width: 992px) { .container { width: 970px; } } @media (min-width: 1200px) { .container { width: 1170px; } } .row { margin-right: -15px; margin-left: -15px; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { float: left; } .col-xs-12 { width: 100%; } .col-xs-11 { width: 91.66666666666666%; } .col-xs-10 { width: 83.33333333333334%; } .col-xs-9 { width: 75%; } .col-xs-8 { width: 66.66666666666666%; } .col-xs-7 { width: 58.333333333333336%; } .col-xs-6 { width: 50%; } .col-xs-5 { width: 41.66666666666667%; } .col-xs-4 { width: 33.33333333333333%; } .col-xs-3 { width: 25%; } .col-xs-2 { width: 16.666666666666664%; } .col-xs-1 { width: 8.333333333333332%; } .col-xs-pull-12 { right: 100%; } .col-xs-pull-11 { right: 91.66666666666666%; } .col-xs-pull-10 { right: 83.33333333333334%; } .col-xs-pull-9 { right: 75%; } .col-xs-pull-8 { right: 66.66666666666666%; } .col-xs-pull-7 { right: 58.333333333333336%; } .col-xs-pull-6 { right: 50%; } .col-xs-pull-5 { right: 41.66666666666667%; } .col-xs-pull-4 { right: 33.33333333333333%; } .col-xs-pull-3 { right: 25%; } .col-xs-pull-2 { right: 16.666666666666664%; } .col-xs-pull-1 { right: 8.333333333333332%; } .col-xs-pull-0 { right: 0; } .col-xs-push-12 { left: 100%; } .col-xs-push-11 { left: 91.66666666666666%; } .col-xs-push-10 { left: 83.33333333333334%; } .col-xs-push-9 { left: 75%; } .col-xs-push-8 { left: 66.66666666666666%; } .col-xs-push-7 { left: 58.333333333333336%; } .col-xs-push-6 { left: 50%; } .col-xs-push-5 { left: 41.66666666666667%; } .col-xs-push-4 { left: 33.33333333333333%; } .col-xs-push-3 { left: 25%; } .col-xs-push-2 { left: 16.666666666666664%; } .col-xs-push-1 { left: 8.333333333333332%; } .col-xs-push-0 { left: 0; } .col-xs-offset-12 { margin-left: 100%; } .col-xs-offset-11 { margin-left: 91.66666666666666%; } .col-xs-offset-10 { margin-left: 83.33333333333334%; } .col-xs-offset-9 { margin-left: 75%; } .col-xs-offset-8 { margin-left: 66.66666666666666%; } .col-xs-offset-7 { margin-left: 58.333333333333336%; } .col-xs-offset-6 { margin-left: 50%; } .col-xs-offset-5 { margin-left: 41.66666666666667%; } .col-xs-offset-4 { margin-left: 33.33333333333333%; } .col-xs-offset-3 { margin-left: 25%; } .col-xs-offset-2 { margin-left: 16.666666666666664%; } .col-xs-offset-1 { margin-left: 8.333333333333332%; } .col-xs-offset-0 { margin-left: 0; } @media (min-width: 768px) { .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { float: left; } .col-sm-12 { width: 100%; } .col-sm-11 { width: 91.66666666666666%; } .col-sm-10 { width: 83.33333333333334%; } .col-sm-9 { width: 75%; } .col-sm-8 { width: 66.66666666666666%; } .col-sm-7 { width: 58.333333333333336%; } .col-sm-6 { width: 50%; } .col-sm-5 { width: 41.66666666666667%; } .col-sm-4 { width: 33.33333333333333%; } .col-sm-3 { width: 25%; } .col-sm-2 { width: 16.666666666666664%; } .col-sm-1 { width: 8.333333333333332%; } .col-sm-pull-12 { right: 100%; } .col-sm-pull-11 { right: 91.66666666666666%; } .col-sm-pull-10 { right: 83.33333333333334%; } .col-sm-pull-9 { right: 75%; } .col-sm-pull-8 { right: 66.66666666666666%; } .col-sm-pull-7 { right: 58.333333333333336%; } .col-sm-pull-6 { right: 50%; } .col-sm-pull-5 { right: 41.66666666666667%; } .col-sm-pull-4 { right: 33.33333333333333%; } .col-sm-pull-3 { right: 25%; } .col-sm-pull-2 { right: 16.666666666666664%; } .col-sm-pull-1 { right: 8.333333333333332%; } .col-sm-pull-0 { right: 0; } .col-sm-push-12 { left: 100%; } .col-sm-push-11 { left: 91.66666666666666%; } .col-sm-push-10 { left: 83.33333333333334%; } .col-sm-push-9 { left: 75%; } .col-sm-push-8 { left: 66.66666666666666%; } .col-sm-push-7 { left: 58.333333333333336%; } .col-sm-push-6 { left: 50%; } .col-sm-push-5 { left: 41.66666666666667%; } .col-sm-push-4 { left: 33.33333333333333%; } .col-sm-push-3 { left: 25%; } .col-sm-push-2 { left: 16.666666666666664%; } .col-sm-push-1 { left: 8.333333333333332%; } .col-sm-push-0 { left: 0; } .col-sm-offset-12 { margin-left: 100%; } .col-sm-offset-11 { margin-left: 91.66666666666666%; } .col-sm-offset-10 { margin-left: 83.33333333333334%; } .col-sm-offset-9 { margin-left: 75%; } .col-sm-offset-8 { margin-left: 66.66666666666666%; } .col-sm-offset-7 { margin-left: 58.333333333333336%; } .col-sm-offset-6 { margin-left: 50%; } .col-sm-offset-5 { margin-left: 41.66666666666667%; } .col-sm-offset-4 { margin-left: 33.33333333333333%; } .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-2 { margin-left: 16.666666666666664%; } .col-sm-offset-1 { margin-left: 8.333333333333332%; } .col-sm-offset-0 { margin-left: 0; } } @media (min-width: 992px) { .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { float: left; } .col-md-12 { width: 100%; } .col-md-11 { width: 91.66666666666666%; } .col-md-10 { width: 83.33333333333334%; } .col-md-9 { width: 75%; } .col-md-8 { width: 66.66666666666666%; } .col-md-7 { width: 58.333333333333336%; } .col-md-6 { width: 50%; } .col-md-5 { width: 41.66666666666667%; } .col-md-4 { width: 33.33333333333333%; } .col-md-3 { width: 25%; } .col-md-2 { width: 16.666666666666664%; } .col-md-1 { width: 8.333333333333332%; } .col-md-pull-12 { right: 100%; } .col-md-pull-11 { right: 91.66666666666666%; } .col-md-pull-10 { right: 83.33333333333334%; } .col-md-pull-9 { right: 75%; } .col-md-pull-8 { right: 66.66666666666666%; } .col-md-pull-7 { right: 58.333333333333336%; } .col-md-pull-6 { right: 50%; } .col-md-pull-5 { right: 41.66666666666667%; } .col-md-pull-4 { right: 33.33333333333333%; } .col-md-pull-3 { right: 25%; } .col-md-pull-2 { right: 16.666666666666664%; } .col-md-pull-1 { right: 8.333333333333332%; } .col-md-pull-0 { right: 0; } .col-md-push-12 { left: 100%; } .col-md-push-11 { left: 91.66666666666666%; } .col-md-push-10 { left: 83.33333333333334%; } .col-md-push-9 { left: 75%; } .col-md-push-8 { left: 66.66666666666666%; } .col-md-push-7 { left: 58.333333333333336%; } .col-md-push-6 { left: 50%; } .col-md-push-5 { left: 41.66666666666667%; } .col-md-push-4 { left: 33.33333333333333%; } .col-md-push-3 { left: 25%; } .col-md-push-2 { left: 16.666666666666664%; } .col-md-push-1 { left: 8.333333333333332%; } .col-md-push-0 { left: 0; } .col-md-offset-12 { margin-left: 100%; } .col-md-offset-11 { margin-left: 91.66666666666666%; } .col-md-offset-10 { margin-left: 83.33333333333334%; } .col-md-offset-9 { margin-left: 75%; } .col-md-offset-8 { margin-left: 66.66666666666666%; } .col-md-offset-7 { margin-left: 58.333333333333336%; } .col-md-offset-6 { margin-left: 50%; } .col-md-offset-5 { margin-left: 41.66666666666667%; } .col-md-offset-4 { margin-left: 33.33333333333333%; } .col-md-offset-3 { margin-left: 25%; } .col-md-offset-2 { margin-left: 16.666666666666664%; } .col-md-offset-1 { margin-left: 8.333333333333332%; } .col-md-offset-0 { margin-left: 0; } } @media (min-width: 1200px) { .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { float: left; } .col-lg-12 { width: 100%; } .col-lg-11 { width: 91.66666666666666%; } .col-lg-10 { width: 83.33333333333334%; } .col-lg-9 { width: 75%; } .col-lg-8 { width: 66.66666666666666%; } .col-lg-7 { width: 58.333333333333336%; } .col-lg-6 { width: 50%; } .col-lg-5 { width: 41.66666666666667%; } .col-lg-4 { width: 33.33333333333333%; } .col-lg-3 { width: 25%; } .col-lg-2 { width: 16.666666666666664%; } .col-lg-1 { width: 8.333333333333332%; } .col-lg-pull-12 { right: 100%; } .col-lg-pull-11 { right: 91.66666666666666%; } .col-lg-pull-10 { right: 83.33333333333334%; } .col-lg-pull-9 { right: 75%; } .col-lg-pull-8 { right: 66.66666666666666%; } .col-lg-pull-7 { right: 58.333333333333336%; } .col-lg-pull-6 { right: 50%; } .col-lg-pull-5 { right: 41.66666666666667%; } .col-lg-pull-4 { right: 33.33333333333333%; } .col-lg-pull-3 { right: 25%; } .col-lg-pull-2 { right: 16.666666666666664%; } .col-lg-pull-1 { right: 8.333333333333332%; } .col-lg-pull-0 { right: 0; } .col-lg-push-12 { left: 100%; } .col-lg-push-11 { left: 91.66666666666666%; } .col-lg-push-10 { left: 83.33333333333334%; } .col-lg-push-9 { left: 75%; } .col-lg-push-8 { left: 66.66666666666666%; } .col-lg-push-7 { left: 58.333333333333336%; } .col-lg-push-6 { left: 50%; } .col-lg-push-5 { left: 41.66666666666667%; } .col-lg-push-4 { left: 33.33333333333333%; } .col-lg-push-3 { left: 25%; } .col-lg-push-2 { left: 16.666666666666664%; } .col-lg-push-1 { left: 8.333333333333332%; } .col-lg-push-0 { left: 0; } .col-lg-offset-12 { margin-left: 100%; } .col-lg-offset-11 { margin-left: 91.66666666666666%; } .col-lg-offset-10 { margin-left: 83.33333333333334%; } .col-lg-offset-9 { margin-left: 75%; } .col-lg-offset-8 { margin-left: 66.66666666666666%; } .col-lg-offset-7 { margin-left: 58.333333333333336%; } .col-lg-offset-6 { margin-left: 50%; } .col-lg-offset-5 { margin-left: 41.66666666666667%; } .col-lg-offset-4 { margin-left: 33.33333333333333%; } .col-lg-offset-3 { margin-left: 25%; } .col-lg-offset-2 { margin-left: 16.666666666666664%; } .col-lg-offset-1 { margin-left: 8.333333333333332%; } .col-lg-offset-0 { margin-left: 0; } } table { max-width: 100%; background-color: #2e3338; } th { text-align: left; } .table { width: 100%; margin-bottom: 20px; } .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { padding: 8px; line-height: 1.428571429; vertical-align: top; border-top: 1px solid #1c1e22; } .table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #1c1e22; } .table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > th, .table > caption + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td { border-top: 0; } .table > tbody + tbody { border-top: 2px solid #1c1e22; } .table .table { background-color: #272b30; } .table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td { padding: 5px; } .table-bordered { border: 1px solid #1c1e22; } .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border: 1px solid #1c1e22; } .table-bordered > thead > tr > th, .table-bordered > thead > tr > td { border-bottom-width: 2px; } .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th { background-color: #353a41; } .table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th { background-color: #49515a; } table col[class*="col-"] { position: static; display: table-column; float: none; } table td[class*="col-"], table th[class*="col-"] { display: table-cell; float: none; } .table > thead > tr > .active, .table > tbody > tr > .active, .table > tfoot > tr > .active, .table > thead > .active > td, .table > tbody > .active > td, .table > tfoot > .active > td, .table > thead > .active > th, .table > tbody > .active > th, .table > tfoot > .active > th { background-color: #49515a; } .table-hover > tbody > tr > .active:hover, .table-hover > tbody > .active:hover > td, .table-hover > tbody > .active:hover > th { background-color: #3e444c; } .table > thead > tr > .success, .table > tbody > tr > .success, .table > tfoot > tr > .success, .table > thead > .success > td, .table > tbody > .success > td, .table > tfoot > .success > td, .table > thead > .success > th, .table > tbody > .success > th, .table > tfoot > .success > th { background-color: #62c462; } .table-hover > tbody > tr > .success:hover, .table-hover > tbody > .success:hover > td, .table-hover > tbody > .success:hover > th { background-color: #4fbd4f; } .table > thead > tr > .danger, .table > tbody > tr > .danger, .table > tfoot > tr > .danger, .table > thead > .danger > td, .table > tbody > .danger > td, .table > tfoot > .danger > td, .table > thead > .danger > th, .table > tbody > .danger > th, .table > tfoot > .danger > th { background-color: #ee5f5b; } .table-hover > tbody > tr > .danger:hover, .table-hover > tbody > .danger:hover > td, .table-hover > tbody > .danger:hover > th { background-color: #ec4844; } .table > thead > tr > .warning, .table > tbody > tr > .warning, .table > tfoot > tr > .warning, .table > thead > .warning > td, .table > tbody > .warning > td, .table > tfoot > .warning > td, .table > thead > .warning > th, .table > tbody > .warning > th, .table > tfoot > .warning > th { background-color: #f89406; } .table-hover > tbody > tr > .warning:hover, .table-hover > tbody > .warning:hover > td, .table-hover > tbody > .warning:hover > th { background-color: #df8505; } @media (max-width: 767px) { .table-responsive { width: 100%; margin-bottom: 15px; overflow-x: scroll; overflow-y: hidden; border: 1px solid #1c1e22; -ms-overflow-style: -ms-autohiding-scrollbar; -webkit-overflow-scrolling: touch; } .table-responsive > .table { margin-bottom: 0; } .table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th, .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td { white-space: nowrap; } .table-responsive > .table-bordered { border: 0; } .table-responsive > .table-bordered > thead > tr > th:first-child, .table-responsive > .table-bordered > tbody > tr > th:first-child, .table-responsive > .table-bordered > tfoot > tr > th:first-child, .table-responsive > .table-bordered > thead > tr > td:first-child, .table-responsive > .table-bordered > tbody > tr > td:first-child, .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .table-responsive > .table-bordered > thead > tr > th:last-child, .table-responsive > .table-bordered > tbody > tr > th:last-child, .table-responsive > .table-bordered > tfoot > tr > th:last-child, .table-responsive > .table-bordered > thead > tr > td:last-child, .table-responsive > .table-bordered > tbody > tr > td:last-child, .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .table-responsive > .table-bordered > tbody > tr:last-child > th, .table-responsive > .table-bordered > tfoot > tr:last-child > th, .table-responsive > .table-bordered > tbody > tr:last-child > td, .table-responsive > .table-bordered > tfoot > tr:last-child > td { border-bottom: 0; } } fieldset { padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit; color: #c8c8c8; border: 0; border-bottom: 1px solid #1c1e22; } label { display: inline-block; margin-bottom: 5px; font-weight: bold; } input[type="search"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; /* IE8-9 */ line-height: normal; } input[type="file"] { display: block; } select[multiple], select[size] { height: auto; } select optgroup { font-family: inherit; font-size: inherit; font-style: inherit; } input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { height: auto; } output { display: block; padding-top: 9px; font-size: 14px; line-height: 1.428571429; color: #272b30; vertical-align: middle; } .form-control { display: block; width: 100%; height: 38px; padding: 8px 12px; font-size: 14px; line-height: 1.428571429; color: #272b30; vertical-align: middle; background-color: #ffffff; background-image: none; border: 1px solid #cccccc; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; } .form-control:focus { border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); } .form-control:-moz-placeholder { color: #7a8288; } .form-control::-moz-placeholder { color: #7a8288; opacity: 1; } .form-control:-ms-input-placeholder { color: #7a8288; } .form-control::-webkit-input-placeholder { color: #7a8288; } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { cursor: not-allowed; background-color: #999999; } textarea.form-control { height: auto; } .form-group { margin-bottom: 15px; } .radio, .checkbox { display: block; min-height: 20px; padding-left: 20px; margin-top: 10px; margin-bottom: 10px; vertical-align: middle; } .radio label, .checkbox label { display: inline; margin-bottom: 0; font-weight: normal; cursor: pointer; } .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { float: left; margin-left: -20px; } .radio + .radio, .checkbox + .checkbox { margin-top: -5px; } .radio-inline, .checkbox-inline { display: inline-block; padding-left: 20px; margin-bottom: 0; font-weight: normal; vertical-align: middle; cursor: pointer; } .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; } input[type="radio"][disabled], input[type="checkbox"][disabled], .radio[disabled], .radio-inline[disabled], .checkbox[disabled], .checkbox-inline[disabled], fieldset[disabled] input[type="radio"], fieldset[disabled] input[type="checkbox"], fieldset[disabled] .radio, fieldset[disabled] .radio-inline, fieldset[disabled] .checkbox, fieldset[disabled] .checkbox-inline { cursor: not-allowed; } .input-sm { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-sm { height: 30px; line-height: 30px; } textarea.input-sm { height: auto; } .input-lg { height: 56px; padding: 14px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } select.input-lg { height: 56px; line-height: 56px; } textarea.input-lg { height: auto; } .has-warning .help-block, .has-warning .control-label, .has-warning .radio, .has-warning .checkbox, .has-warning .radio-inline, .has-warning .checkbox-inline { color: #ffffff; } .has-warning .form-control { border-color: #ffffff; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-warning .form-control:focus { border-color: #e6e6e6; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; } .has-warning .input-group-addon { color: #ffffff; background-color: #f89406; border-color: #ffffff; } .has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline { color: #ffffff; } .has-error .form-control { border-color: #ffffff; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-error .form-control:focus { border-color: #e6e6e6; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; } .has-error .input-group-addon { color: #ffffff; background-color: #ee5f5b; border-color: #ffffff; } .has-success .help-block, .has-success .control-label, .has-success .radio, .has-success .checkbox, .has-success .radio-inline, .has-success .checkbox-inline { color: #ffffff; } .has-success .form-control { border-color: #ffffff; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-success .form-control:focus { border-color: #e6e6e6; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; } .has-success .input-group-addon { color: #ffffff; background-color: #62c462; border-color: #ffffff; } .form-control-static { margin-bottom: 0; } .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #ffffff; } @media (min-width: 768px) { .form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .form-inline .form-control { display: inline-block; } .form-inline select.form-control { width: auto; } .form-inline .radio, .form-inline .checkbox { display: inline-block; padding-left: 0; margin-top: 0; margin-bottom: 0; } .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { float: none; margin-left: 0; } } .form-horizontal .control-label, .form-horizontal .radio, .form-horizontal .checkbox, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline { padding-top: 9px; margin-top: 0; margin-bottom: 0; } .form-horizontal .radio, .form-horizontal .checkbox { min-height: 29px; } .form-horizontal .form-group { margin-right: -15px; margin-left: -15px; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-control-static { padding-top: 9px; } @media (min-width: 768px) { .form-horizontal .control-label { text-align: right; } } .btn { display: inline-block; padding: 8px 12px; margin-bottom: 0; font-size: 14px; font-weight: normal; line-height: 1.428571429; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; background-image: none; border: 1px solid transparent; border-radius: 4px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } .btn:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn:hover, .btn:focus { color: #ffffff; text-decoration: none; } .btn:active, .btn.active { background-image: none; outline: 0; -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { pointer-events: none; cursor: not-allowed; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; } .btn-default { color: #ffffff; background-color: #3a3f44; border-color: #3a3f44; } .btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { color: #ffffff; background-color: #272b2e; border-color: #1e2023; } .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default { background-image: none; } .btn-default.disabled, .btn-default[disabled], fieldset[disabled] .btn-default, .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled:active, .btn-default[disabled]:active, fieldset[disabled] .btn-default:active, .btn-default.disabled.active, .btn-default[disabled].active, fieldset[disabled] .btn-default.active { background-color: #3a3f44; border-color: #3a3f44; } .btn-default .badge { color: #3a3f44; background-color: #fff; } .btn-primary { color: #ffffff; background-color: #7a8288; border-color: #7a8288; } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { color: #ffffff; background-color: #676d73; border-color: #5d6368; } .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { background-image: none; } .btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active { background-color: #7a8288; border-color: #7a8288; } .btn-primary .badge { color: #7a8288; background-color: #fff; } .btn-warning { color: #ffffff; background-color: #f89406; border-color: #f89406; } .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { color: #ffffff; background-color: #d07c05; border-color: #bc7005; } .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { background-image: none; } .btn-warning.disabled, .btn-warning[disabled], fieldset[disabled] .btn-warning, .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled:active, .btn-warning[disabled]:active, fieldset[disabled] .btn-warning:active, .btn-warning.disabled.active, .btn-warning[disabled].active, fieldset[disabled] .btn-warning.active { background-color: #f89406; border-color: #f89406; } .btn-warning .badge { color: #f89406; background-color: #fff; } .btn-danger { color: #ffffff; background-color: #ee5f5b; border-color: #ee5f5b; } .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { color: #ffffff; background-color: #ea3b36; border-color: #e82924; } .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { background-image: none; } .btn-danger.disabled, .btn-danger[disabled], fieldset[disabled] .btn-danger, .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled:active, .btn-danger[disabled]:active, fieldset[disabled] .btn-danger:active, .btn-danger.disabled.active, .btn-danger[disabled].active, fieldset[disabled] .btn-danger.active { background-color: #ee5f5b; border-color: #ee5f5b; } .btn-danger .badge { color: #ee5f5b; background-color: #fff; } .btn-success { color: #ffffff; background-color: #62c462; border-color: #62c462; } .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { color: #ffffff; background-color: #45b845; border-color: #40a940; } .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { background-image: none; } .btn-success.disabled, .btn-success[disabled], fieldset[disabled] .btn-success, .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled:active, .btn-success[disabled]:active, fieldset[disabled] .btn-success:active, .btn-success.disabled.active, .btn-success[disabled].active, fieldset[disabled] .btn-success.active { background-color: #62c462; border-color: #62c462; } .btn-success .badge { color: #62c462; background-color: #fff; } .btn-info { color: #ffffff; background-color: #5bc0de; border-color: #5bc0de; } .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { color: #ffffff; background-color: #39b3d7; border-color: #2aabd2; } .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { background-image: none; } .btn-info.disabled, .btn-info[disabled], fieldset[disabled] .btn-info, .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled:active, .btn-info[disabled]:active, fieldset[disabled] .btn-info:active, .btn-info.disabled.active, .btn-info[disabled].active, fieldset[disabled] .btn-info.active { background-color: #5bc0de; border-color: #5bc0de; } .btn-info .badge { color: #5bc0de; background-color: #fff; } .btn-link { font-weight: normal; color: #ffffff; cursor: pointer; border-radius: 0; } .btn-link, .btn-link:active, .btn-link[disabled], fieldset[disabled] .btn-link { background-color: transparent; -webkit-box-shadow: none; box-shadow: none; } .btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { border-color: transparent; } .btn-link:hover, .btn-link:focus { color: #ffffff; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { color: #7a8288; text-decoration: none; } .btn-lg { padding: 14px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } .btn-sm { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-xs { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-block { display: block; width: 100%; padding-right: 0; padding-left: 0; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { display: none; } .collapse.in { display: block; } .collapsing { position: relative; height: 0; overflow: hidden; -webkit-transition: height 0.35s ease; transition: height 0.35s ease; } @font-face { font-family: 'Glyphicons Halflings'; src: url('../fonts/glyphicons-halflings-regular.eot'); src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg'); } .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; -webkit-font-smoothing: antialiased; font-style: normal; font-weight: normal; line-height: 1; -moz-osx-font-smoothing: grayscale; } .glyphicon:empty { width: 1em; } .glyphicon-asterisk:before { content: "\2a"; } .glyphicon-plus:before { content: "\2b"; } .glyphicon-euro:before { content: "\20ac"; } .glyphicon-minus:before { content: "\2212"; } .glyphicon-cloud:before { content: "\2601"; } .glyphicon-envelope:before { content: "\2709"; } .glyphicon-pencil:before { content: "\270f"; } .glyphicon-glass:before { content: "\e001"; } .glyphicon-music:before { content: "\e002"; } .glyphicon-search:before { content: "\e003"; } .glyphicon-heart:before { content: "\e005"; } .glyphicon-star:before { content: "\e006"; } .glyphicon-star-empty:before { content: "\e007"; } .glyphicon-user:before { content: "\e008"; } .glyphicon-film:before { content: "\e009"; } .glyphicon-th-large:before { content: "\e010"; } .glyphicon-th:before { content: "\e011"; } .glyphicon-th-list:before { content: "\e012"; } .glyphicon-ok:before { content: "\e013"; } .glyphicon-remove:before { content: "\e014"; } .glyphicon-zoom-in:before { content: "\e015"; } .glyphicon-zoom-out:before { content: "\e016"; } .glyphicon-off:before { content: "\e017"; } .glyphicon-signal:before { content: "\e018"; } .glyphicon-cog:before { content: "\e019"; } .glyphicon-trash:before { content: "\e020"; } .glyphicon-home:before { content: "\e021"; } .glyphicon-file:before { content: "\e022"; } .glyphicon-time:before { content: "\e023"; } .glyphicon-road:before { content: "\e024"; } .glyphicon-download-alt:before { content: "\e025"; } .glyphicon-download:before { content: "\e026"; } .glyphicon-upload:before { content: "\e027"; } .glyphicon-inbox:before { content: "\e028"; } .glyphicon-play-circle:before { content: "\e029"; } .glyphicon-repeat:before { content: "\e030"; } .glyphicon-refresh:before { content: "\e031"; } .glyphicon-list-alt:before { content: "\e032"; } .glyphicon-lock:before { content: "\e033"; } .glyphicon-flag:before { content: "\e034"; } .glyphicon-headphones:before { content: "\e035"; } .glyphicon-volume-off:before { content: "\e036"; } .glyphicon-volume-down:before { content: "\e037"; } .glyphicon-volume-up:before { content: "\e038"; } .glyphicon-qrcode:before { content: "\e039"; } .glyphicon-barcode:before { content: "\e040"; } .glyphicon-tag:before { content: "\e041"; } .glyphicon-tags:before { content: "\e042"; } .glyphicon-book:before { content: "\e043"; } .glyphicon-bookmark:before { content: "\e044"; } .glyphicon-print:before { content: "\e045"; } .glyphicon-camera:before { content: "\e046"; } .glyphicon-font:before { content: "\e047"; } .glyphicon-bold:before { content: "\e048"; } .glyphicon-italic:before { content: "\e049"; } .glyphicon-text-height:before { content: "\e050"; } .glyphicon-text-width:before { content: "\e051"; } .glyphicon-align-left:before { content: "\e052"; } .glyphicon-align-center:before { content: "\e053"; } .glyphicon-align-right:before { content: "\e054"; } .glyphicon-align-justify:before { content: "\e055"; } .glyphicon-list:before { content: "\e056"; } .glyphicon-indent-left:before { content: "\e057"; } .glyphicon-indent-right:before { content: "\e058"; } .glyphicon-facetime-video:before { content: "\e059"; } .glyphicon-picture:before { content: "\e060"; } .glyphicon-map-marker:before { content: "\e062"; } .glyphicon-adjust:before { content: "\e063"; } .glyphicon-tint:before { content: "\e064"; } .glyphicon-edit:before { content: "\e065"; } .glyphicon-share:before { content: "\e066"; } .glyphicon-check:before { content: "\e067"; } .glyphicon-move:before { content: "\e068"; } .glyphicon-step-backward:before { content: "\e069"; } .glyphicon-fast-backward:before { content: "\e070"; } .glyphicon-backward:before { content: "\e071"; } .glyphicon-play:before { content: "\e072"; } .glyphicon-pause:before { content: "\e073"; } .glyphicon-stop:before { content: "\e074"; } .glyphicon-forward:before { content: "\e075"; } .glyphicon-fast-forward:before { content: "\e076"; } .glyphicon-step-forward:before { content: "\e077"; } .glyphicon-eject:before { content: "\e078"; } .glyphicon-chevron-left:before { content: "\e079"; } .glyphicon-chevron-right:before { content: "\e080"; } .glyphicon-plus-sign:before { content: "\e081"; } .glyphicon-minus-sign:before { content: "\e082"; } .glyphicon-remove-sign:before { content: "\e083"; } .glyphicon-ok-sign:before { content: "\e084"; } .glyphicon-question-sign:before { content: "\e085"; } .glyphicon-info-sign:before { content: "\e086"; } .glyphicon-screenshot:before { content: "\e087"; } .glyphicon-remove-circle:before { content: "\e088"; } .glyphicon-ok-circle:before { content: "\e089"; } .glyphicon-ban-circle:before { content: "\e090"; } .glyphicon-arrow-left:before { content: "\e091"; } .glyphicon-arrow-right:before { content: "\e092"; } .glyphicon-arrow-up:before { content: "\e093"; } .glyphicon-arrow-down:before { content: "\e094"; } .glyphicon-share-alt:before { content: "\e095"; } .glyphicon-resize-full:before { content: "\e096"; } .glyphicon-resize-small:before { content: "\e097"; } .glyphicon-exclamation-sign:before { content: "\e101"; } .glyphicon-gift:before { content: "\e102"; } .glyphicon-leaf:before { content: "\e103"; } .glyphicon-fire:before { content: "\e104"; } .glyphicon-eye-open:before { content: "\e105"; } .glyphicon-eye-close:before { content: "\e106"; } .glyphicon-warning-sign:before { content: "\e107"; } .glyphicon-plane:before { content: "\e108"; } .glyphicon-calendar:before { content: "\e109"; } .glyphicon-random:before { content: "\e110"; } .glyphicon-comment:before { content: "\e111"; } .glyphicon-magnet:before { content: "\e112"; } .glyphicon-chevron-up:before { content: "\e113"; } .glyphicon-chevron-down:before { content: "\e114"; } .glyphicon-retweet:before { content: "\e115"; } .glyphicon-shopping-cart:before { content: "\e116"; } .glyphicon-folder-close:before { content: "\e117"; } .glyphicon-folder-open:before { content: "\e118"; } .glyphicon-resize-vertical:before { content: "\e119"; } .glyphicon-resize-horizontal:before { content: "\e120"; } .glyphicon-hdd:before { content: "\e121"; } .glyphicon-bullhorn:before { content: "\e122"; } .glyphicon-bell:before { content: "\e123"; } .glyphicon-certificate:before { content: "\e124"; } .glyphicon-thumbs-up:before { content: "\e125"; } .glyphicon-thumbs-down:before { content: "\e126"; } .glyphicon-hand-right:before { content: "\e127"; } .glyphicon-hand-left:before { content: "\e128"; } .glyphicon-hand-up:before { content: "\e129"; } .glyphicon-hand-down:before { content: "\e130"; } .glyphicon-circle-arrow-right:before { content: "\e131"; } .glyphicon-circle-arrow-left:before { content: "\e132"; } .glyphicon-circle-arrow-up:before { content: "\e133"; } .glyphicon-circle-arrow-down:before { content: "\e134"; } .glyphicon-globe:before { content: "\e135"; } .glyphicon-wrench:before { content: "\e136"; } .glyphicon-tasks:before { content: "\e137"; } .glyphicon-filter:before { content: "\e138"; } .glyphicon-briefcase:before { content: "\e139"; } .glyphicon-fullscreen:before { content: "\e140"; } .glyphicon-dashboard:before { content: "\e141"; } .glyphicon-paperclip:before { content: "\e142"; } .glyphicon-heart-empty:before { content: "\e143"; } .glyphicon-link:before { content: "\e144"; } .glyphicon-phone:before { content: "\e145"; } .glyphicon-pushpin:before { content: "\e146"; } .glyphicon-usd:before { content: "\e148"; } .glyphicon-gbp:before { content: "\e149"; } .glyphicon-sort:before { content: "\e150"; } .glyphicon-sort-by-alphabet:before { content: "\e151"; } .glyphicon-sort-by-alphabet-alt:before { content: "\e152"; } .glyphicon-sort-by-order:before { content: "\e153"; } .glyphicon-sort-by-order-alt:before { content: "\e154"; } .glyphicon-sort-by-attributes:before { content: "\e155"; } .glyphicon-sort-by-attributes-alt:before { content: "\e156"; } .glyphicon-unchecked:before { content: "\e157"; } .glyphicon-expand:before { content: "\e158"; } .glyphicon-collapse-down:before { content: "\e159"; } .glyphicon-collapse-up:before { content: "\e160"; } .glyphicon-log-in:before { content: "\e161"; } .glyphicon-flash:before { content: "\e162"; } .glyphicon-log-out:before { content: "\e163"; } .glyphicon-new-window:before { content: "\e164"; } .glyphicon-record:before { content: "\e165"; } .glyphicon-save:before { content: "\e166"; } .glyphicon-open:before { content: "\e167"; } .glyphicon-saved:before { content: "\e168"; } .glyphicon-import:before { content: "\e169"; } .glyphicon-export:before { content: "\e170"; } .glyphicon-send:before { content: "\e171"; } .glyphicon-floppy-disk:before { content: "\e172"; } .glyphicon-floppy-saved:before { content: "\e173"; } .glyphicon-floppy-remove:before { content: "\e174"; } .glyphicon-floppy-save:before { content: "\e175"; } .glyphicon-floppy-open:before { content: "\e176"; } .glyphicon-credit-card:before { content: "\e177"; } .glyphicon-transfer:before { content: "\e178"; } .glyphicon-cutlery:before { content: "\e179"; } .glyphicon-header:before { content: "\e180"; } .glyphicon-compressed:before { content: "\e181"; } .glyphicon-earphone:before { content: "\e182"; } .glyphicon-phone-alt:before { content: "\e183"; } .glyphicon-tower:before { content: "\e184"; } .glyphicon-stats:before { content: "\e185"; } .glyphicon-sd-video:before { content: "\e186"; } .glyphicon-hd-video:before { content: "\e187"; } .glyphicon-subtitles:before { content: "\e188"; } .glyphicon-sound-stereo:before { content: "\e189"; } .glyphicon-sound-dolby:before { content: "\e190"; } .glyphicon-sound-5-1:before { content: "\e191"; } .glyphicon-sound-6-1:before { content: "\e192"; } .glyphicon-sound-7-1:before { content: "\e193"; } .glyphicon-copyright-mark:before { content: "\e194"; } .glyphicon-registration-mark:before { content: "\e195"; } .glyphicon-cloud-download:before { content: "\e197"; } .glyphicon-cloud-upload:before { content: "\e198"; } .glyphicon-tree-conifer:before { content: "\e199"; } .glyphicon-tree-deciduous:before { content: "\e200"; } .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px solid; border-right: 4px solid transparent; border-left: 4px solid transparent; } .dropdown { position: relative; } .dropdown-toggle:focus { outline: 0; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; font-size: 14px; list-style: none; background-color: #3a3f44; border: 1px solid #272b30; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); background-clip: padding-box; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #272b30; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.428571429; color: #c8c8c8; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { color: #ffffff; text-decoration: none; background-color: #272b30; } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #ffffff; text-decoration: none; background-color: #272b30; outline: 0; } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #7a8288; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { text-decoration: none; cursor: not-allowed; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); } .open > .dropdown-menu { display: block; } .open > a { outline: 0; } .dropdown-header { display: block; padding: 3px 20px; font-size: 12px; line-height: 1.428571429; color: #7a8288; } .dropdown-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 990; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { border-top: 0; border-bottom: 4px solid; content: ""; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 1px; } @media (min-width: 768px) { .navbar-right .dropdown-menu { right: 0; left: auto; } } .btn-group, .btn-group-vertical { position: relative; display: inline-block; vertical-align: middle; } .btn-group > .btn, .btn-group-vertical > .btn { position: relative; float: left; } .btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:focus, .btn-group-vertical > .btn:focus, .btn-group > .btn:active, .btn-group-vertical > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn.active { z-index: 2; } .btn-group > .btn:focus, .btn-group-vertical > .btn:focus { outline: none; } .btn-group .btn + .btn, .btn-group .btn + .btn-group, .btn-group .btn-group + .btn, .btn-group .btn-group + .btn-group { margin-left: -1px; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar:before, .btn-toolbar:after { display: table; content: " "; } .btn-toolbar:after { clear: both; } .btn-toolbar .btn-group { float: left; } .btn-toolbar > .btn + .btn, .btn-toolbar > .btn-group + .btn, .btn-toolbar > .btn + .btn-group, .btn-toolbar > .btn-group + .btn-group { margin-left: 5px; } .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; } .btn-group > .btn:first-child { margin-left: 0; } .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group > .btn-group { float: left; } .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group > .btn-group:first-child > .btn:last-child, .btn-group > .btn-group:first-child > .dropdown-toggle { border-top-right-radius: 0; border-bottom-right-radius: 0; } .btn-group > .btn-group:last-child > .btn:first-child { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group-xs > .btn { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-group-sm > .btn { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-group-lg > .btn { padding: 14px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } .btn-group > .btn + .dropdown-toggle { padding-right: 8px; padding-left: 8px; } .btn-group > .btn-lg + .dropdown-toggle { padding-right: 12px; padding-left: 12px; } .btn-group.open .dropdown-toggle { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn-group.open .dropdown-toggle.btn-link { -webkit-box-shadow: none; box-shadow: none; } .btn .caret { margin-left: 0; } .btn-lg .caret { border-width: 5px 5px 0; border-bottom-width: 0; } .dropup .btn-lg .caret { border-width: 0 5px 5px; } .btn-group-vertical > .btn, .btn-group-vertical > .btn-group, .btn-group-vertical > .btn-group > .btn { display: block; float: none; width: 100%; max-width: 100%; } .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after { display: table; content: " "; } .btn-group-vertical > .btn-group:after { clear: both; } .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after { display: table; content: " "; } .btn-group-vertical > .btn-group:after { clear: both; } .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after { display: table; content: " "; } .btn-group-vertical > .btn-group:after { clear: both; } .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after { display: table; content: " "; } .btn-group-vertical > .btn-group:after { clear: both; } .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after { display: table; content: " "; } .btn-group-vertical > .btn-group:after { clear: both; } .btn-group-vertical > .btn-group > .btn { float: none; } .btn-group-vertical > .btn + .btn, .btn-group-vertical > .btn + .btn-group, .btn-group-vertical > .btn-group + .btn, .btn-group-vertical > .btn-group + .btn-group { margin-top: -1px; margin-left: 0; } .btn-group-vertical > .btn:not(:first-child):not(:last-child) { border-radius: 0; } .btn-group-vertical > .btn:first-child:not(:last-child) { border-top-right-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn:last-child:not(:first-child) { border-top-right-radius: 0; border-bottom-left-radius: 4px; border-top-left-radius: 0; } .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group-vertical > .btn-group:first-child > .btn:last-child, .btn-group-vertical > .btn-group:first-child > .dropdown-toggle { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn-group:last-child > .btn:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .btn-group-justified { display: table; width: 100%; border-collapse: separate; table-layout: fixed; } .btn-group-justified > .btn, .btn-group-justified > .btn-group { display: table-cell; float: none; width: 1%; } .btn-group-justified > .btn-group .btn { width: 100%; } [data-toggle="buttons"] > .btn > input[type="radio"], [data-toggle="buttons"] > .btn > input[type="checkbox"] { display: none; } .input-group { position: relative; display: table; border-collapse: separate; } .input-group[class*="col-"] { float: none; padding-right: 0; padding-left: 0; } .input-group .form-control { width: 100%; margin-bottom: 0; } .input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn { height: 56px; padding: 14px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } select.input-group-lg > .form-control, select.input-group-lg > .input-group-addon, select.input-group-lg > .input-group-btn > .btn { height: 56px; line-height: 56px; } textarea.input-group-lg > .form-control, textarea.input-group-lg > .input-group-addon, textarea.input-group-lg > .input-group-btn > .btn { height: auto; } .input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-group-sm > .form-control, select.input-group-sm > .input-group-addon, select.input-group-sm > .input-group-btn > .btn { height: 30px; line-height: 30px; } textarea.input-group-sm > .form-control, textarea.input-group-sm > .input-group-addon, textarea.input-group-sm > .input-group-btn > .btn { height: auto; } .input-group-addon, .input-group-btn, .input-group .form-control { display: table-cell; } .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; } .input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; } .input-group-addon { padding: 8px 12px; font-size: 14px; font-weight: normal; line-height: 1; color: #272b30; text-align: center; background-color: #999999; border: 1px solid #cccccc; border-radius: 4px; } .input-group-addon.input-sm { padding: 5px 10px; font-size: 12px; border-radius: 3px; } .input-group-addon.input-lg { padding: 14px 16px; font-size: 18px; border-radius: 6px; } .input-group-addon input[type="radio"], .input-group-addon input[type="checkbox"] { margin-top: 0; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) { border-top-right-radius: 0; border-bottom-right-radius: 0; } .input-group-addon:first-child { border-right: 0; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .input-group-addon:last-child { border-left: 0; } .input-group-btn { position: relative; white-space: nowrap; } .input-group-btn:first-child > .btn { margin-right: -1px; } .input-group-btn:last-child > .btn { margin-left: -1px; } .input-group-btn > .btn { position: relative; } .input-group-btn > .btn + .btn { margin-left: -4px; } .input-group-btn > .btn:hover, .input-group-btn > .btn:active { z-index: 2; } .nav { padding-left: 0; margin-bottom: 0; list-style: none; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav > li { position: relative; display: block; } .nav > li > a { position: relative; display: block; padding: 10px 15px; } .nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #3e444c; } .nav > li.disabled > a { color: #7a8288; } .nav > li.disabled > a:hover, .nav > li.disabled > a:focus { color: #7a8288; text-decoration: none; cursor: not-allowed; background-color: transparent; } .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { background-color: #3e444c; border-color: #ffffff; } .nav .nav-divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; } .nav > li > a > img { max-width: none; } .nav-tabs { border-bottom: 1px solid #1c1e22; } .nav-tabs > li { float: left; margin-bottom: -1px; } .nav-tabs > li > a { margin-right: 2px; line-height: 1.428571429; border: 1px solid transparent; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover { border-color: #1c1e22 #1c1e22 #1c1e22; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: #ffffff; cursor: default; background-color: #3e444c; border: 1px solid #1c1e22; border-bottom-color: transparent; } .nav-tabs.nav-justified { width: 100%; border-bottom: 0; } .nav-tabs.nav-justified > li { float: none; } .nav-tabs.nav-justified > li > a { margin-bottom: 5px; text-align: center; } .nav-tabs.nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-tabs.nav-justified > li { display: table-cell; width: 1%; } .nav-tabs.nav-justified > li > a { margin-bottom: 0; } } .nav-tabs.nav-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border: 1px solid #dddddd; } @media (min-width: 768px) { .nav-tabs.nav-justified > li > a { border-bottom: 1px solid #dddddd; border-radius: 4px 4px 0 0; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border-bottom-color: #272b30; } } .nav-pills > li { float: left; } .nav-pills > li > a { border-radius: 4px; } .nav-pills > li + li { margin-left: 2px; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: #ffffff; background-color: transparent; } .nav-stacked > li { float: none; } .nav-stacked > li + li { margin-top: 2px; margin-left: 0; } .nav-justified { width: 100%; } .nav-justified > li { float: none; } .nav-justified > li > a { margin-bottom: 5px; text-align: center; } .nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-justified > li { display: table-cell; width: 1%; } .nav-justified > li > a { margin-bottom: 0; } } .nav-tabs-justified { border-bottom: 0; } .nav-tabs-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border: 1px solid #dddddd; } @media (min-width: 768px) { .nav-tabs-justified > li > a { border-bottom: 1px solid #dddddd; border-radius: 4px 4px 0 0; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border-bottom-color: #272b30; } } .tab-content > .tab-pane { display: none; } .tab-content > .active { display: block; } .nav-tabs .dropdown-menu { margin-top: -1px; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar { position: relative; min-height: 50px; margin-bottom: 20px; border: 1px solid transparent; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } @media (min-width: 768px) { .navbar { border-radius: 4px; } } .navbar-header:before, .navbar-header:after { display: table; content: " "; } .navbar-header:after { clear: both; } .navbar-header:before, .navbar-header:after { display: table; content: " "; } .navbar-header:after { clear: both; } .navbar-header:before, .navbar-header:after { display: table; content: " "; } .navbar-header:after { clear: both; } .navbar-header:before, .navbar-header:after { display: table; content: " "; } .navbar-header:after { clear: both; } .navbar-header:before, .navbar-header:after { display: table; content: " "; } .navbar-header:after { clear: both; } @media (min-width: 768px) { .navbar-header { float: left; } } .navbar-collapse { max-height: 340px; padding-right: 15px; padding-left: 15px; overflow-x: visible; border-top: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); -webkit-overflow-scrolling: touch; } .navbar-collapse:before, .navbar-collapse:after { display: table; content: " "; } .navbar-collapse:after { clear: both; } .navbar-collapse:before, .navbar-collapse:after { display: table; content: " "; } .navbar-collapse:after { clear: both; } .navbar-collapse:before, .navbar-collapse:after { display: table; content: " "; } .navbar-collapse:after { clear: both; } .navbar-collapse:before, .navbar-collapse:after { display: table; content: " "; } .navbar-collapse:after { clear: both; } .navbar-collapse:before, .navbar-collapse:after { display: table; content: " "; } .navbar-collapse:after { clear: both; } .navbar-collapse.in { overflow-y: auto; } @media (min-width: 768px) { .navbar-collapse { width: auto; border-top: 0; box-shadow: none; } .navbar-collapse.collapse { display: block !important; height: auto !important; padding-bottom: 0; overflow: visible !important; } .navbar-collapse.in { overflow-y: visible; } .navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { padding-right: 0; padding-left: 0; } } .container > .navbar-header, .container > .navbar-collapse { margin-right: -15px; margin-left: -15px; } @media (min-width: 768px) { .container > .navbar-header, .container > .navbar-collapse { margin-right: 0; margin-left: 0; } } .navbar-static-top { z-index: 1000; border-width: 0 0 1px; } @media (min-width: 768px) { .navbar-static-top { border-radius: 0; } } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; } @media (min-width: 768px) { .navbar-fixed-top, .navbar-fixed-bottom { border-radius: 0; } } .navbar-fixed-top { top: 0; border-width: 0 0 1px; } .navbar-fixed-bottom { bottom: 0; margin-bottom: 0; border-width: 1px 0 0; } .navbar-brand { float: left; padding: 15px 15px; font-size: 18px; line-height: 20px; } .navbar-brand:hover, .navbar-brand:focus { text-decoration: none; } @media (min-width: 768px) { .navbar > .container .navbar-brand { margin-left: -15px; } } .navbar-toggle { position: relative; float: right; padding: 9px 10px; margin-top: 8px; margin-right: 15px; margin-bottom: 8px; background-color: transparent; background-image: none; border: 1px solid transparent; border-radius: 4px; } .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; } .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; } @media (min-width: 768px) { .navbar-toggle { display: none; } } .navbar-nav { margin: 7.5px -15px; } .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 20px; } @media (max-width: 767px) { .navbar-nav .open .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; box-shadow: none; } .navbar-nav .open .dropdown-menu > li > a, .navbar-nav .open .dropdown-menu .dropdown-header { padding: 5px 15px 5px 25px; } .navbar-nav .open .dropdown-menu > li > a { line-height: 20px; } .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-nav .open .dropdown-menu > li > a:focus { background-image: none; } } @media (min-width: 768px) { .navbar-nav { float: left; margin: 0; } .navbar-nav > li { float: left; } .navbar-nav > li > a { padding-top: 15px; padding-bottom: 15px; } .navbar-nav.navbar-right:last-child { margin-right: -15px; } } @media (min-width: 768px) { .navbar-left { float: left !important; } .navbar-right { float: right !important; } } .navbar-form { padding: 10px 15px; margin-top: 6px; margin-right: -15px; margin-bottom: 6px; margin-left: -15px; border-top: 1px solid transparent; border-bottom: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); } @media (min-width: 768px) { .navbar-form .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .navbar-form .form-control { display: inline-block; } .navbar-form select.form-control { width: auto; } .navbar-form .radio, .navbar-form .checkbox { display: inline-block; padding-left: 0; margin-top: 0; margin-bottom: 0; } .navbar-form .radio input[type="radio"], .navbar-form .checkbox input[type="checkbox"] { float: none; margin-left: 0; } } @media (max-width: 767px) { .navbar-form .form-group { margin-bottom: 5px; } } @media (min-width: 768px) { .navbar-form { width: auto; padding-top: 0; padding-bottom: 0; margin-right: 0; margin-left: 0; border: 0; -webkit-box-shadow: none; box-shadow: none; } .navbar-form.navbar-right:last-child { margin-right: -15px; } } .navbar-nav > li > .dropdown-menu { margin-top: 0; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .navbar-nav.pull-right > li > .dropdown-menu, .navbar-nav > li > .dropdown-menu.pull-right { right: 0; left: auto; } .navbar-btn { margin-top: 6px; margin-bottom: 6px; } .navbar-btn.btn-sm { margin-top: 10px; margin-bottom: 10px; } .navbar-btn.btn-xs { margin-top: 14px; margin-bottom: 14px; } .navbar-text { margin-top: 15px; margin-bottom: 15px; } @media (min-width: 768px) { .navbar-text { float: left; margin-right: 15px; margin-left: 15px; } .navbar-text.navbar-right:last-child { margin-right: 0; } } .navbar-default { background-color: #3a3f44; border-color: #2b2e32; } .navbar-default .navbar-brand { color: #c8c8c8; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #ffffff; background-color: none; } .navbar-default .navbar-text { color: #c8c8c8; } .navbar-default .navbar-nav > li > a { color: #c8c8c8; } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #ffffff; background-color: #272b2e; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { color: #ffffff; background-color: #272b2e; } .navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus { color: #cccccc; background-color: transparent; } .navbar-default .navbar-toggle { border-color: #272b2e; } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: #272b2e; } .navbar-default .navbar-toggle .icon-bar { background-color: #c8c8c8; } .navbar-default .navbar-collapse, .navbar-default .navbar-form { border-color: #2b2e32; } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { color: #ffffff; background-color: #272b2e; } @media (max-width: 767px) { .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #c8c8c8; } .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #ffffff; background-color: #272b2e; } .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #ffffff; background-color: #272b2e; } .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #cccccc; background-color: transparent; } } .navbar-default .navbar-link { color: #c8c8c8; } .navbar-default .navbar-link:hover { color: #ffffff; } .navbar-inverse { background-color: #7a8288; border-color: #62686d; } .navbar-inverse .navbar-brand { color: #cccccc; } .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { color: #ffffff; background-color: none; } .navbar-inverse .navbar-text { color: #cccccc; } .navbar-inverse .navbar-nav > li > a { color: #cccccc; } .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { color: #ffffff; background-color: #5d6368; } .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { color: #ffffff; background-color: #5d6368; } .navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { color: #cccccc; background-color: transparent; } .navbar-inverse .navbar-toggle { border-color: #5d6368; } .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { background-color: #5d6368; } .navbar-inverse .navbar-toggle .icon-bar { background-color: #ffffff; } .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { border-color: #697075; } .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { color: #ffffff; background-color: #5d6368; } @media (max-width: 767px) { .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { border-color: #62686d; } .navbar-inverse .navbar-nav .open .dropdown-menu .divider { background-color: #62686d; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #cccccc; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { color: #ffffff; background-color: #5d6368; } .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { color: #ffffff; background-color: #5d6368; } .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #cccccc; background-color: transparent; } } .navbar-inverse .navbar-link { color: #cccccc; } .navbar-inverse .navbar-link:hover { color: #ffffff; } .breadcrumb { padding: 8px 15px; margin-bottom: 20px; list-style: none; background-color: transparent; border-radius: 4px; } .breadcrumb > li { display: inline-block; } .breadcrumb > li + li:before { padding: 0 5px; color: #cccccc; content: "/\00a0"; } .breadcrumb > .active { color: #7a8288; } .pagination { display: inline-block; padding-left: 0; margin: 20px 0; border-radius: 4px; } .pagination > li { display: inline; } .pagination > li > a, .pagination > li > span { position: relative; float: left; padding: 8px 12px; margin-left: -1px; line-height: 1.428571429; text-decoration: none; background-color: #3a3f44; border: 1px solid rgba(0, 0, 0, 0.6); } .pagination > li:first-child > a, .pagination > li:first-child > span { margin-left: 0; border-bottom-left-radius: 4px; border-top-left-radius: 4px; } .pagination > li:last-child > a, .pagination > li:last-child > span { border-top-right-radius: 4px; border-bottom-right-radius: 4px; } .pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus, .pagination > li > span:focus { background-color: transparent; } .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { z-index: 2; color: #ffffff; cursor: default; background-color: #232628; border-color: #232628; } .pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus { color: #7a8288; cursor: not-allowed; background-color: #3a3f44; border-color: rgba(0, 0, 0, 0.6); } .pagination-lg > li > a, .pagination-lg > li > span { padding: 14px 16px; font-size: 18px; } .pagination-lg > li:first-child > a, .pagination-lg > li:first-child > span { border-bottom-left-radius: 6px; border-top-left-radius: 6px; } .pagination-lg > li:last-child > a, .pagination-lg > li:last-child > span { border-top-right-radius: 6px; border-bottom-right-radius: 6px; } .pagination-sm > li > a, .pagination-sm > li > span { padding: 5px 10px; font-size: 12px; } .pagination-sm > li:first-child > a, .pagination-sm > li:first-child > span { border-bottom-left-radius: 3px; border-top-left-radius: 3px; } .pagination-sm > li:last-child > a, .pagination-sm > li:last-child > span { border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .pager { padding-left: 0; margin: 20px 0; text-align: center; list-style: none; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager:before, .pager:after { display: table; content: " "; } .pager:after { clear: both; } .pager li { display: inline; } .pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #3a3f44; border: 1px solid rgba(0, 0, 0, 0.6); border-radius: 15px; } .pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: transparent; } .pager .next > a, .pager .next > span { float: right; } .pager .previous > a, .pager .previous > span { float: left; } .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span { color: #7a8288; cursor: not-allowed; background-color: #3a3f44; } .label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: bold; line-height: 1; color: #ffffff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; } .label[href]:hover, .label[href]:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .label:empty { display: none; } .btn .label { position: relative; top: -1px; } .label-default { background-color: #3a3f44; } .label-default[href]:hover, .label-default[href]:focus { background-color: #232628; } .label-primary { background-color: #7a8288; } .label-primary[href]:hover, .label-primary[href]:focus { background-color: #62686d; } .label-success { background-color: #62c462; } .label-success[href]:hover, .label-success[href]:focus { background-color: #42b142; } .label-info { background-color: #5bc0de; } .label-info[href]:hover, .label-info[href]:focus { background-color: #31b0d5; } .label-warning { background-color: #f89406; } .label-warning[href]:hover, .label-warning[href]:focus { background-color: #c67605; } .label-danger { background-color: #ee5f5b; } .label-danger[href]:hover, .label-danger[href]:focus { background-color: #e9322d; } .badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 12px; font-weight: bold; line-height: 1; color: #ffffff; text-align: center; white-space: nowrap; vertical-align: baseline; background-color: #7a8288; border-radius: 10px; } .badge:empty { display: none; } .btn .badge { position: relative; top: -1px; } a.badge:hover, a.badge:focus { color: #ffffff; text-decoration: none; cursor: pointer; } a.list-group-item.active > .badge, .nav-pills > .active > a > .badge { color: #ffffff; background-color: #7a8288; } .nav-pills > li > a > .badge { margin-left: 3px; } .jumbotron { padding: 30px; margin-bottom: 30px; font-size: 21px; font-weight: 200; line-height: 2.1428571435; color: inherit; background-color: #1c1e22; } .jumbotron h1, .jumbotron .h1 { line-height: 1; color: inherit; } .jumbotron p { line-height: 1.4; } .container .jumbotron { border-radius: 6px; } .jumbotron .container { max-width: 100%; } @media screen and (min-width: 768px) { .jumbotron { padding-top: 48px; padding-bottom: 48px; } .container .jumbotron { padding-right: 60px; padding-left: 60px; } .jumbotron h1, .jumbotron .h1 { font-size: 63px; } } .thumbnail { display: block; padding: 4px; margin-bottom: 20px; line-height: 1.428571429; background-color: #272b30; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .thumbnail > img, .thumbnail a > img { display: block; height: auto; max-width: 100%; margin-right: auto; margin-left: auto; } a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active { border-color: #ffffff; } .thumbnail .caption { padding: 9px; color: #c8c8c8; } .alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; } .alert h4 { margin-top: 0; color: inherit; } .alert .alert-link { font-weight: bold; } .alert > p, .alert > ul { margin-bottom: 0; } .alert > p + p { margin-top: 5px; } .alert-dismissable { padding-right: 35px; } .alert-dismissable .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { color: #ffffff; background-color: #62c462; border-color: #62bd4f; } .alert-success hr { border-top-color: #55b142; } .alert-success .alert-link { color: #e6e6e6; } .alert-info { color: #ffffff; background-color: #5bc0de; border-color: #3dced8; } .alert-info hr { border-top-color: #2ac7d2; } .alert-info .alert-link { color: #e6e6e6; } .alert-warning { color: #ffffff; background-color: #f89406; border-color: #e96506; } .alert-warning hr { border-top-color: #d05a05; } .alert-warning .alert-link { color: #e6e6e6; } .alert-danger { color: #ffffff; background-color: #ee5f5b; border-color: #ed4d63; } .alert-danger hr { border-top-color: #ea364f; } .alert-danger .alert-link { color: #e6e6e6; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } .progress { height: 20px; margin-bottom: 20px; overflow: hidden; background-color: #1c1e22; border-radius: 4px; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } .progress-bar { float: left; width: 0; height: 100%; font-size: 12px; line-height: 20px; color: #ffffff; text-align: center; background-color: #7a8288; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-transition: width 0.6s ease; transition: width 0.6s ease; } .progress-striped .progress-bar { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 40px 40px; } .progress.active .progress-bar { -webkit-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-bar-success { background-color: #62c462; } .progress-striped .progress-bar-success { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-info { background-color: #5bc0de; } .progress-striped .progress-bar-info { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-warning { background-color: #f89406; } .progress-striped .progress-bar-warning { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-danger { background-color: #ee5f5b; } .progress-striped .progress-bar-danger { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .media, .media-body { overflow: hidden; zoom: 1; } .media, .media .media { margin-top: 15px; } .media:first-child { margin-top: 0; } .media-object { display: block; } .media-heading { margin: 0 0 5px; } .media > .pull-left { margin-right: 10px; } .media > .pull-right { margin-left: 10px; } .media-list { padding-left: 0; list-style: none; } .list-group { padding-left: 0; margin-bottom: 20px; } .list-group-item { position: relative; display: block; padding: 10px 15px; margin-bottom: -1px; background-color: transparent; border: 1px solid rgba(0, 0, 0, 0.6); } .list-group-item:first-child { border-top-right-radius: 4px; border-top-left-radius: 4px; } .list-group-item:last-child { margin-bottom: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } .list-group-item > .badge { float: right; } .list-group-item > .badge + .badge { margin-right: 5px; } a.list-group-item { color: #c8c8c8; } a.list-group-item .list-group-item-heading { color: #ffffff; } a.list-group-item:hover, a.list-group-item:focus { text-decoration: none; background-color: #3e444c; } a.list-group-item.active, a.list-group-item.active:hover, a.list-group-item.active:focus { z-index: 2; color: #ffffff; background-color: #3e444c; border-color: rgba(0, 0, 0, 0.6); } a.list-group-item.active .list-group-item-heading, a.list-group-item.active:hover .list-group-item-heading, a.list-group-item.active:focus .list-group-item-heading { color: inherit; } a.list-group-item.active .list-group-item-text, a.list-group-item.active:hover .list-group-item-text, a.list-group-item.active:focus .list-group-item-text { color: #a2aab4; } .list-group-item-heading { margin-top: 0; margin-bottom: 5px; } .list-group-item-text { margin-bottom: 0; line-height: 1.3; } .panel { margin-bottom: 20px; background-color: #2e3338; border: 1px solid transparent; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); } .panel-body { padding: 15px; } .panel-body:before, .panel-body:after { display: table; content: " "; } .panel-body:after { clear: both; } .panel-body:before, .panel-body:after { display: table; content: " "; } .panel-body:after { clear: both; } .panel-body:before, .panel-body:after { display: table; content: " "; } .panel-body:after { clear: both; } .panel-body:before, .panel-body:after { display: table; content: " "; } .panel-body:after { clear: both; } .panel-body:before, .panel-body:after { display: table; content: " "; } .panel-body:after { clear: both; } .panel > .list-group { margin-bottom: 0; } .panel > .list-group .list-group-item { border-width: 1px 0; } .panel > .list-group .list-group-item:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .panel > .list-group .list-group-item:last-child { border-bottom: 0; } .panel-heading + .list-group .list-group-item:first-child { border-top-width: 0; } .panel > .table, .panel > .table-responsive > .table { margin-bottom: 0; } .panel > .panel-body + .table, .panel > .panel-body + .table-responsive { border-top: 1px solid #1c1e22; } .panel > .table > tbody:first-child th, .panel > .table > tbody:first-child td { border-top: 0; } .panel > .table-bordered, .panel > .table-responsive > .table-bordered { border: 0; } .panel > .table-bordered > thead > tr > th:first-child, .panel > .table-responsive > .table-bordered > thead > tr > th:first-child, .panel > .table-bordered > tbody > tr > th:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, .panel > .table-bordered > tfoot > tr > th:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, .panel > .table-bordered > thead > tr > td:first-child, .panel > .table-responsive > .table-bordered > thead > tr > td:first-child, .panel > .table-bordered > tbody > tr > td:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, .panel > .table-bordered > tfoot > tr > td:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .panel > .table-bordered > thead > tr > th:last-child, .panel > .table-responsive > .table-bordered > thead > tr > th:last-child, .panel > .table-bordered > tbody > tr > th:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, .panel > .table-bordered > tfoot > tr > th:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, .panel > .table-bordered > thead > tr > td:last-child, .panel > .table-responsive > .table-bordered > thead > tr > td:last-child, .panel > .table-bordered > tbody > tr > td:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, .panel > .table-bordered > tfoot > tr > td:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .panel > .table-bordered > thead > tr:last-child > th, .panel > .table-responsive > .table-bordered > thead > tr:last-child > th, .panel > .table-bordered > tbody > tr:last-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, .panel > .table-bordered > tfoot > tr:last-child > th, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th, .panel > .table-bordered > thead > tr:last-child > td, .panel > .table-responsive > .table-bordered > thead > tr:last-child > td, .panel > .table-bordered > tbody > tr:last-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, .panel > .table-bordered > tfoot > tr:last-child > td, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td { border-bottom: 0; } .panel > .table-responsive { margin-bottom: 0; border: 0; } .panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel-heading > .dropdown .dropdown-toggle { color: inherit; } .panel-title { margin-top: 0; margin-bottom: 0; font-size: 16px; color: inherit; } .panel-title > a { color: inherit; } .panel-footer { padding: 10px 15px; background-color: #3e444c; border-top: 1px solid rgba(0, 0, 0, 0.6); border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel-group .panel { margin-bottom: 0; overflow: hidden; border-radius: 4px; } .panel-group .panel + .panel { margin-top: 5px; } .panel-group .panel-heading { border-bottom: 0; } .panel-group .panel-heading + .panel-collapse .panel-body { border-top: 1px solid rgba(0, 0, 0, 0.6); } .panel-group .panel-footer { border-top: 0; } .panel-group .panel-footer + .panel-collapse .panel-body { border-bottom: 1px solid rgba(0, 0, 0, 0.6); } .panel-default { border-color: rgba(0, 0, 0, 0.6); } .panel-default > .panel-heading { color: #c8c8c8; background-color: #3e444c; border-color: rgba(0, 0, 0, 0.6); } .panel-default > .panel-heading + .panel-collapse .panel-body { border-top-color: rgba(0, 0, 0, 0.6); } .panel-default > .panel-footer + .panel-collapse .panel-body { border-bottom-color: rgba(0, 0, 0, 0.6); } .panel-primary { border-color: rgba(0, 0, 0, 0.6); } .panel-primary > .panel-heading { color: #ffffff; background-color: #7a8288; border-color: rgba(0, 0, 0, 0.6); } .panel-primary > .panel-heading + .panel-collapse .panel-body { border-top-color: rgba(0, 0, 0, 0.6); } .panel-primary > .panel-footer + .panel-collapse .panel-body { border-bottom-color: rgba(0, 0, 0, 0.6); } .panel-success { border-color: rgba(0, 0, 0, 0.6); } .panel-success > .panel-heading { color: #ffffff; background-color: #62c462; border-color: rgba(0, 0, 0, 0.6); } .panel-success > .panel-heading + .panel-collapse .panel-body { border-top-color: rgba(0, 0, 0, 0.6); } .panel-success > .panel-footer + .panel-collapse .panel-body { border-bottom-color: rgba(0, 0, 0, 0.6); } .panel-warning { border-color: rgba(0, 0, 0, 0.6); } .panel-warning > .panel-heading { color: #ffffff; background-color: #f89406; border-color: rgba(0, 0, 0, 0.6); } .panel-warning > .panel-heading + .panel-collapse .panel-body { border-top-color: rgba(0, 0, 0, 0.6); } .panel-warning > .panel-footer + .panel-collapse .panel-body { border-bottom-color: rgba(0, 0, 0, 0.6); } .panel-danger { border-color: rgba(0, 0, 0, 0.6); } .panel-danger > .panel-heading { color: #ffffff; background-color: #ee5f5b; border-color: rgba(0, 0, 0, 0.6); } .panel-danger > .panel-heading + .panel-collapse .panel-body { border-top-color: rgba(0, 0, 0, 0.6); } .panel-danger > .panel-footer + .panel-collapse .panel-body { border-bottom-color: rgba(0, 0, 0, 0.6); } .panel-info { border-color: rgba(0, 0, 0, 0.6); } .panel-info > .panel-heading { color: #ffffff; background-color: #5bc0de; border-color: rgba(0, 0, 0, 0.6); } .panel-info > .panel-heading + .panel-collapse .panel-body { border-top-color: rgba(0, 0, 0, 0.6); } .panel-info > .panel-footer + .panel-collapse .panel-body { border-bottom-color: rgba(0, 0, 0, 0.6); } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #1c1e22; border: 1px solid #0c0d0e; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .well-lg { padding: 24px; border-radius: 6px; } .well-sm { padding: 9px; border-radius: 3px; } .close { float: right; font-size: 21px; font-weight: bold; line-height: 1; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover, .close:focus { color: #000000; text-decoration: none; cursor: pointer; opacity: 0.5; filter: alpha(opacity=50); } button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .modal-open { overflow: hidden; } .modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; display: none; overflow: auto; overflow-y: scroll; } .modal.fade .modal-dialog { -webkit-transform: translate(0, -25%); -ms-transform: translate(0, -25%); transform: translate(0, -25%); -webkit-transition: -webkit-transform 0.3s ease-out; -moz-transition: -moz-transform 0.3s ease-out; -o-transition: -o-transform 0.3s ease-out; transition: transform 0.3s ease-out; } .modal.in .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); transform: translate(0, 0); } .modal-dialog { position: relative; z-index: 1050; width: auto; margin: 10px; } .modal-content { position: relative; background-color: #2e3338; border: 1px solid #999999; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; outline: none; -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); background-clip: padding-box; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1030; background-color: #000000; } .modal-backdrop.fade { opacity: 0; filter: alpha(opacity=0); } .modal-backdrop.in { opacity: 0.5; filter: alpha(opacity=50); } .modal-header { min-height: 16.428571429px; padding: 15px; border-bottom: 1px solid #1c1e22; } .modal-header .close { margin-top: -2px; } .modal-title { margin: 0; line-height: 1.428571429; } .modal-body { position: relative; padding: 20px; } .modal-footer { padding: 19px 20px 20px; margin-top: 15px; text-align: right; border-top: 1px solid #1c1e22; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer:before, .modal-footer:after { display: table; content: " "; } .modal-footer:after { clear: both; } .modal-footer .btn + .btn { margin-bottom: 0; margin-left: 5px; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } @media screen and (min-width: 768px) { .modal-dialog { width: 600px; margin: 30px auto; } .modal-content { -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); } } .tooltip { position: absolute; z-index: 1030; display: block; font-size: 12px; line-height: 1.4; opacity: 0; filter: alpha(opacity=0); visibility: visible; } .tooltip.in { opacity: 0.9; filter: alpha(opacity=90); } .tooltip.top { padding: 5px 0; margin-top: -3px; } .tooltip.right { padding: 0 5px; margin-left: 3px; } .tooltip.bottom { padding: 5px 0; margin-top: 3px; } .tooltip.left { padding: 0 5px; margin-left: -3px; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #ffffff; text-align: center; text-decoration: none; background-color: rgba(0, 0, 0, 0.9); border-radius: 4px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-top-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 0; } .tooltip.top-left .tooltip-arrow { bottom: 0; left: 5px; border-top-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 0; } .tooltip.top-right .tooltip-arrow { right: 5px; bottom: 0; border-top-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 0; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-right-color: rgba(0, 0, 0, 0.9); border-width: 5px 5px 5px 0; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-left-color: rgba(0, 0, 0, 0.9); border-width: 5px 0 5px 5px; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-bottom-color: rgba(0, 0, 0, 0.9); border-width: 0 5px 5px; } .tooltip.bottom-left .tooltip-arrow { top: 0; left: 5px; border-bottom-color: rgba(0, 0, 0, 0.9); border-width: 0 5px 5px; } .tooltip.bottom-right .tooltip-arrow { top: 0; right: 5px; border-bottom-color: rgba(0, 0, 0, 0.9); border-width: 0 5px 5px; } .popover { position: absolute; top: 0; left: 0; z-index: 1010; display: none; max-width: 276px; padding: 1px; text-align: left; white-space: normal; background-color: #2e3338; border: 1px solid #999999; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); background-clip: padding-box; } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover-title { padding: 8px 14px; margin: 0; font-size: 14px; font-weight: normal; line-height: 18px; background-color: #2e3338; border-bottom: 1px solid #22262a; border-radius: 5px 5px 0 0; } .popover-content { padding: 9px 14px; } .popover .arrow, .popover .arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover .arrow { border-width: 11px; } .popover .arrow:after { border-width: 10px; content: ""; } .popover.top .arrow { bottom: -11px; left: 50%; margin-left: -11px; border-top-color: #999999; border-top-color: rgba(0, 0, 0, 0.25); border-bottom-width: 0; } .popover.top .arrow:after { bottom: 1px; margin-left: -10px; border-top-color: #2e3338; border-bottom-width: 0; content: " "; } .popover.right .arrow { top: 50%; left: -11px; margin-top: -11px; border-right-color: #999999; border-right-color: rgba(0, 0, 0, 0.25); border-left-width: 0; } .popover.right .arrow:after { bottom: -10px; left: 1px; border-right-color: #2e3338; border-left-width: 0; content: " "; } .popover.bottom .arrow { top: -11px; left: 50%; margin-left: -11px; border-bottom-color: #999999; border-bottom-color: rgba(0, 0, 0, 0.25); border-top-width: 0; } .popover.bottom .arrow:after { top: 1px; margin-left: -10px; border-bottom-color: #2e3338; border-top-width: 0; content: " "; } .popover.left .arrow { top: 50%; right: -11px; margin-top: -11px; border-left-color: #999999; border-left-color: rgba(0, 0, 0, 0.25); border-right-width: 0; } .popover.left .arrow:after { right: 1px; bottom: -10px; border-left-color: #2e3338; border-right-width: 0; content: " "; } .carousel { position: relative; } .carousel-inner { position: relative; width: 100%; overflow: hidden; } .carousel-inner > .item { position: relative; display: none; -webkit-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: block; height: auto; max-width: 100%; line-height: 1; } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next { left: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { position: absolute; top: 0; bottom: 0; left: 0; width: 15%; font-size: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); opacity: 0.5; filter: alpha(opacity=50); } .carousel-control.left { background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.5) 0), color-stop(rgba(0, 0, 0, 0.0001) 100%)); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.0001) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); } .carousel-control.right { right: 0; left: auto; background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.0001) 0), color-stop(rgba(0, 0, 0, 0.5) 100%)); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0, rgba(0, 0, 0, 0.5) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); } .carousel-control:hover, .carousel-control:focus { color: #ffffff; text-decoration: none; outline: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-control .icon-prev, .carousel-control .icon-next, .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right { position: absolute; top: 50%; z-index: 5; display: inline-block; } .carousel-control .icon-prev, .carousel-control .glyphicon-chevron-left { left: 50%; } .carousel-control .icon-next, .carousel-control .glyphicon-chevron-right { right: 50%; } .carousel-control .icon-prev, .carousel-control .icon-next { width: 20px; height: 20px; margin-top: -10px; margin-left: -10px; font-family: serif; } .carousel-control .icon-prev:before { content: '\2039'; } .carousel-control .icon-next:before { content: '\203a'; } .carousel-indicators { position: absolute; bottom: 10px; left: 50%; z-index: 15; width: 60%; padding-left: 0; margin-left: -30%; text-align: center; list-style: none; } .carousel-indicators li { display: inline-block; width: 10px; height: 10px; margin: 1px; text-indent: -999px; cursor: pointer; background-color: #000 \9; background-color: rgba(0, 0, 0, 0); border: 1px solid #ffffff; border-radius: 10px; } .carousel-indicators .active { width: 12px; height: 12px; margin: 0; background-color: #ffffff; } .carousel-caption { position: absolute; right: 15%; bottom: 20px; left: 15%; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } .carousel-caption .btn { text-shadow: none; } @media screen and (min-width: 768px) { .carousel-control .glyphicons-chevron-left, .carousel-control .glyphicons-chevron-right, .carousel-control .icon-prev, .carousel-control .icon-next { width: 30px; height: 30px; margin-top: -15px; margin-left: -15px; font-size: 30px; } .carousel-caption { right: 20%; left: 20%; padding-bottom: 30px; } .carousel-indicators { bottom: 20px; } } .clearfix:before, .clearfix:after { display: table; content: " "; } .clearfix:after { clear: both; } .clearfix:before, .clearfix:after { display: table; content: " "; } .clearfix:after { clear: both; } .center-block { display: block; margin-right: auto; margin-left: auto; } .pull-right { float: right !important; } .pull-left { float: left !important; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .hidden { display: none !important; visibility: hidden !important; } .affix { position: fixed; } @-ms-viewport { width: device-width; } .visible-xs, tr.visible-xs, th.visible-xs, td.visible-xs { display: none !important; } @media (max-width: 767px) { .visible-xs { display: block !important; } table.visible-xs { display: table; } tr.visible-xs { display: table-row !important; } th.visible-xs, td.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-xs.visible-sm { display: block !important; } table.visible-xs.visible-sm { display: table; } tr.visible-xs.visible-sm { display: table-row !important; } th.visible-xs.visible-sm, td.visible-xs.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-xs.visible-md { display: block !important; } table.visible-xs.visible-md { display: table; } tr.visible-xs.visible-md { display: table-row !important; } th.visible-xs.visible-md, td.visible-xs.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-xs.visible-lg { display: block !important; } table.visible-xs.visible-lg { display: table; } tr.visible-xs.visible-lg { display: table-row !important; } th.visible-xs.visible-lg, td.visible-xs.visible-lg { display: table-cell !important; } } .visible-sm, tr.visible-sm, th.visible-sm, td.visible-sm { display: none !important; } @media (max-width: 767px) { .visible-sm.visible-xs { display: block !important; } table.visible-sm.visible-xs { display: table; } tr.visible-sm.visible-xs { display: table-row !important; } th.visible-sm.visible-xs, td.visible-sm.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: block !important; } table.visible-sm { display: table; } tr.visible-sm { display: table-row !important; } th.visible-sm, td.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-sm.visible-md { display: block !important; } table.visible-sm.visible-md { display: table; } tr.visible-sm.visible-md { display: table-row !important; } th.visible-sm.visible-md, td.visible-sm.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-sm.visible-lg { display: block !important; } table.visible-sm.visible-lg { display: table; } tr.visible-sm.visible-lg { display: table-row !important; } th.visible-sm.visible-lg, td.visible-sm.visible-lg { display: table-cell !important; } } .visible-md, tr.visible-md, th.visible-md, td.visible-md { display: none !important; } @media (max-width: 767px) { .visible-md.visible-xs { display: block !important; } table.visible-md.visible-xs { display: table; } tr.visible-md.visible-xs { display: table-row !important; } th.visible-md.visible-xs, td.visible-md.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-md.visible-sm { display: block !important; } table.visible-md.visible-sm { display: table; } tr.visible-md.visible-sm { display: table-row !important; } th.visible-md.visible-sm, td.visible-md.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md { display: block !important; } table.visible-md { display: table; } tr.visible-md { display: table-row !important; } th.visible-md, td.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-md.visible-lg { display: block !important; } table.visible-md.visible-lg { display: table; } tr.visible-md.visible-lg { display: table-row !important; } th.visible-md.visible-lg, td.visible-md.visible-lg { display: table-cell !important; } } .visible-lg, tr.visible-lg, th.visible-lg, td.visible-lg { display: none !important; } @media (max-width: 767px) { .visible-lg.visible-xs { display: block !important; } table.visible-lg.visible-xs { display: table; } tr.visible-lg.visible-xs { display: table-row !important; } th.visible-lg.visible-xs, td.visible-lg.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-lg.visible-sm { display: block !important; } table.visible-lg.visible-sm { display: table; } tr.visible-lg.visible-sm { display: table-row !important; } th.visible-lg.visible-sm, td.visible-lg.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-lg.visible-md { display: block !important; } table.visible-lg.visible-md { display: table; } tr.visible-lg.visible-md { display: table-row !important; } th.visible-lg.visible-md, td.visible-lg.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-lg { display: block !important; } table.visible-lg { display: table; } tr.visible-lg { display: table-row !important; } th.visible-lg, td.visible-lg { display: table-cell !important; } } .hidden-xs { display: block !important; } table.hidden-xs { display: table; } tr.hidden-xs { display: table-row !important; } th.hidden-xs, td.hidden-xs { display: table-cell !important; } @media (max-width: 767px) { .hidden-xs, tr.hidden-xs, th.hidden-xs, td.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-xs.hidden-sm, tr.hidden-xs.hidden-sm, th.hidden-xs.hidden-sm, td.hidden-xs.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-xs.hidden-md, tr.hidden-xs.hidden-md, th.hidden-xs.hidden-md, td.hidden-xs.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-xs.hidden-lg, tr.hidden-xs.hidden-lg, th.hidden-xs.hidden-lg, td.hidden-xs.hidden-lg { display: none !important; } } .hidden-sm { display: block !important; } table.hidden-sm { display: table; } tr.hidden-sm { display: table-row !important; } th.hidden-sm, td.hidden-sm { display: table-cell !important; } @media (max-width: 767px) { .hidden-sm.hidden-xs, tr.hidden-sm.hidden-xs, th.hidden-sm.hidden-xs, td.hidden-sm.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-sm, tr.hidden-sm, th.hidden-sm, td.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-sm.hidden-md, tr.hidden-sm.hidden-md, th.hidden-sm.hidden-md, td.hidden-sm.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-sm.hidden-lg, tr.hidden-sm.hidden-lg, th.hidden-sm.hidden-lg, td.hidden-sm.hidden-lg { display: none !important; } } .hidden-md { display: block !important; } table.hidden-md { display: table; } tr.hidden-md { display: table-row !important; } th.hidden-md, td.hidden-md { display: table-cell !important; } @media (max-width: 767px) { .hidden-md.hidden-xs, tr.hidden-md.hidden-xs, th.hidden-md.hidden-xs, td.hidden-md.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-md.hidden-sm, tr.hidden-md.hidden-sm, th.hidden-md.hidden-sm, td.hidden-md.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-md, tr.hidden-md, th.hidden-md, td.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-md.hidden-lg, tr.hidden-md.hidden-lg, th.hidden-md.hidden-lg, td.hidden-md.hidden-lg { display: none !important; } } .hidden-lg { display: block !important; } table.hidden-lg { display: table; } tr.hidden-lg { display: table-row !important; } th.hidden-lg, td.hidden-lg { display: table-cell !important; } @media (max-width: 767px) { .hidden-lg.hidden-xs, tr.hidden-lg.hidden-xs, th.hidden-lg.hidden-xs, td.hidden-lg.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-lg.hidden-sm, tr.hidden-lg.hidden-sm, th.hidden-lg.hidden-sm, td.hidden-lg.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-lg.hidden-md, tr.hidden-lg.hidden-md, th.hidden-lg.hidden-md, td.hidden-lg.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-lg, tr.hidden-lg, th.hidden-lg, td.hidden-lg { display: none !important; } } .visible-print, tr.visible-print, th.visible-print, td.visible-print { display: none !important; } @media print { .visible-print { display: block !important; } table.visible-print { display: table; } tr.visible-print { display: table-row !important; } th.visible-print, td.visible-print { display: table-cell !important; } .hidden-print, tr.hidden-print, th.hidden-print, td.hidden-print { display: none !important; } } .navbar { text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; border: 1px solid rgba(0, 0, 0, 0.6); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .navbar-inverse { background-image: -webkit-linear-gradient(#8a9196, #7a8288 60%, #70787d); background-image: linear-gradient(#8a9196, #7a8288 60%, #70787d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff8a9196', endColorstr='#ff70787d', GradientType=0); filter: none; } .navbar-nav > li > a { border-right: 1px solid rgba(0, 0, 0, 0.2); border-left: 1px solid rgba(255, 255, 255, 0.1); } .navbar-nav > li > a:hover { background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d); background-image: linear-gradient(#020202, #101112 40%, #191b1d); background-repeat: no-repeat; border-left-color: transparent; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0); filter: none; } .navbar .nav .open > a { border-color: transparent; } .navbar-nav > li.active > a { border-left-color: transparent; } .navbar-form { margin-right: 5px; margin-left: 5px; } .btn, .btn:hover { text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); border-color: rgba(0, 0, 0, 0.6); } .btn-default { background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .btn-primary { background-image: -webkit-linear-gradient(#8a9196, #7a8288 60%, #70787d); background-image: linear-gradient(#8a9196, #7a8288 60%, #70787d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff8a9196', endColorstr='#ff70787d', GradientType=0); filter: none; } .btn-success { background-image: -webkit-linear-gradient(#78cc78, #62c462 60%, #53be53); background-image: linear-gradient(#78cc78, #62c462 60%, #53be53); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff78cc78', endColorstr='#ff53be53', GradientType=0); filter: none; } .btn-info { background-image: -webkit-linear-gradient(#74cae3, #5bc0de 60%, #4ab9db); background-image: linear-gradient(#74cae3, #5bc0de 60%, #4ab9db); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff74cae3', endColorstr='#ff4ab9db', GradientType=0); filter: none; } .btn-warning { background-image: -webkit-linear-gradient(#faa123, #f89406 60%, #e48806); background-image: linear-gradient(#faa123, #f89406 60%, #e48806); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffaa123', endColorstr='#ffe48806', GradientType=0); filter: none; } .btn-danger { background-image: -webkit-linear-gradient(#f17a77, #ee5f5b 60%, #ec4d49); background-image: linear-gradient(#f17a77, #ee5f5b 60%, #ec4d49); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff17a77', endColorstr='#ffec4d49', GradientType=0); filter: none; } .btn-default:hover { background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d); background-image: linear-gradient(#020202, #101112 40%, #191b1d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0); filter: none; } .btn-primary:hover { background-image: -webkit-linear-gradient(#404448, #4e5458 40%, #585e62); background-image: linear-gradient(#404448, #4e5458 40%, #585e62); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff404448', endColorstr='#ff585e62', GradientType=0); filter: none; } .btn-success:hover { background-image: -webkit-linear-gradient(#2f7d2f, #379337 40%, #3da23d); background-image: linear-gradient(#2f7d2f, #379337 40%, #3da23d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff2f7d2f', endColorstr='#ff3da23d', GradientType=0); filter: none; } .btn-info:hover { background-image: -webkit-linear-gradient(#20829f, #2596b8 40%, #28a4c9); background-image: linear-gradient(#20829f, #2596b8 40%, #28a4c9); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff20829f', endColorstr='#ff28a4c9', GradientType=0); filter: none; } .btn-warning:hover { background-image: -webkit-linear-gradient(#804d03, #9e5f04 40%, #b26a04); background-image: linear-gradient(#804d03, #9e5f04 40%, #b26a04); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff804d03', endColorstr='#ffb26a04', GradientType=0); filter: none; } .btn-danger:hover { background-image: -webkit-linear-gradient(#bb1813, #d71c16 40%, #e7201a); background-image: linear-gradient(#bb1813, #d71c16 40%, #e7201a); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffbb1813', endColorstr='#ffe7201a', GradientType=0); filter: none; } h1, h2, h3, h4, h5, h6 { text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); } .text-primary, .text-primary:hover { color: #7a8288; } .text-success, .text-success:hover { color: #62c462; } .text-danger, .text-danger:hover { color: #ee5f5b; } .text-warning, .text-warning:hover { color: #f89406; } .text-info, .text-info:hover { color: #5bc0de; } .table tr.success, .table tr.warning, .table tr.danger { color: #fff; } .table-bordered tbody tr.success td, .table-bordered tbody tr.warning td, .table-bordered tbody tr.danger td, .table-bordered tbody tr.success:hover td, .table-bordered tbody tr.warning:hover td, .table-bordered tbody tr.danger:hover td { border-color: #1c1e22; } .table-responsive > .table { background-color: #2e3338; } .has-warning .help-block, .has-warning .control-label { color: #f89406; } .has-warning .form-control, .has-warning .form-control:focus { border-color: #f89406; } .has-error .help-block, .has-error .control-label { color: #ee5f5b; } .has-error .form-control, .has-error .form-control:focus { border-color: #ee5f5b; } .has-success .help-block, .has-success .control-label { color: #62c462; } .has-success .form-control, .has-success .form-control:focus { border-color: #62c462; } legend { color: #fff; } .input-group-addon { text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; border-color: rgba(0, 0, 0, 0.6); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { border-color: rgba(0, 0, 0, 0.6); } .nav-pills > li > a { text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; border: 1px solid rgba(0, 0, 0, 0.6); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .nav-pills > li > a:hover { background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d); background-image: linear-gradient(#020202, #101112 40%, #191b1d); background-repeat: no-repeat; border: 1px solid rgba(0, 0, 0, 0.6); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0); filter: none; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover { background-color: none; background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d); background-image: linear-gradient(#020202, #101112 40%, #191b1d); background-repeat: no-repeat; border: 1px solid rgba(0, 0, 0, 0.6); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0); filter: none; } .nav-pills > li.disabled > a, .nav-pills > li.disabled > a:hover { background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .pagination > li > a { text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .pagination > li > a:hover { background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d); background-image: linear-gradient(#020202, #101112 40%, #191b1d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0); filter: none; } .pagination > li.active > a { background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d); background-image: linear-gradient(#020202, #101112 40%, #191b1d); background-repeat: no-repeat; border-color: rgba(0, 0, 0, 0.6); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0); filter: none; } .pagination > li.disabled > a, .pagination > li.disabled > a:hover { background-color: transparent; background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .pager > li > a { text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; border: 1px solid rgba(0, 0, 0, 0.6); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .pager > li > a:hover { background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d); background-image: linear-gradient(#020202, #101112 40%, #191b1d); background-repeat: no-repeat; border: 1px solid rgba(0, 0, 0, 0.6); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0); filter: none; } .pager > li.disabled > a, .pager > li.disabled > a:hover { background-color: transparent; background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .breadcrumb { text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; border: 1px solid rgba(0, 0, 0, 0.6); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .alert .alert-link, .alert a { color: #fff; text-decoration: underline; } .jumbotron { border: 1px solid rgba(0, 0, 0, 0.6); } .list-group-item { background-color: #32383e; } .panel-primary .panel-heading, .panel-success .panel-heading, .panel-danger .panel-heading, .panel-warning .panel-heading, .panel-info .panel-heading { border-color: #000; } .clearfix:before, .clearfix:after { display: table; content: " "; } .clearfix:after { clear: both; } .clearfix:before, .clearfix:after { display: table; content: " "; } .clearfix:after { clear: both; } .center-block { display: block; margin-right: auto; margin-left: auto; } .pull-right { float: right !important; } .pull-left { float: left !important; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .hidden { display: none !important; visibility: hidden !important; } .affix { position: fixed; }
him2him2/cdnjs
ajax/libs/bootswatch/3.0.3/css/slate/bootstrap.css
CSS
mit
141,303
/* * /MathJax/jax/output/HTML-CSS/fonts/TeX/Math/BoldItalic/Main.js * * Copyright (c) 2009-2013 The MathJax Consortium * * 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. */ MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["MathJax_Math-bold-italic"]={directory:"Math/BoldItalic",family:"MathJax_Math",weight:"bold",style:"italic",testString:"MathJax Math \u03A5",skew:{65:0.16,66:0.0958,67:0.0958,68:0.0639,69:0.0958,70:0.0958,71:0.0958,72:0.0639,73:0.128,74:0.192,75:0.0639,76:0.0319,77:0.0958,78:0.0958,79:0.0958,80:0.0958,81:0.0958,82:0.0958,83:0.0958,84:0.0958,85:0.0319,88:0.0958,90:0.0958,99:0.0639,100:0.192,101:0.0639,102:0.192,103:0.0319,104:-0.0319,108:0.0958,111:0.0639,112:0.0958,113:0.0958,114:0.0639,115:0.0639,116:0.0958,117:0.0319,118:0.0319,119:0.0958,120:0.0319,121:0.0639,122:0.0639,915:0.0958,916:0.192,920:0.0958,923:0.192,926:0.0958,928:0.0639,931:0.0958,933:0.0639,934:0.0958,936:0.0639,937:0.0958,945:0.0319,946:0.0958,948:0.0639,949:0.0958,950:0.0958,951:0.0639,952:0.0958,953:0.0639,956:0.0319,957:0.0319,958:0.128,959:0.0639,961:0.0958,962:0.0958,964:0.0319,965:0.0319,966:0.0958,967:0.0639,968:0.128,977:0.0958,981:0.0958,1009:0.0958,1013:0.0639},32:[0,0,250,0,0],47:[711,210,894,160,733],65:[711,0,869,45,839],66:[686,0,866,43,853],67:[703,17,817,55,855],68:[686,0,938,43,914],69:[680,0,810,43,825],70:[680,0,689,43,809],71:[703,16,887,56,854],72:[686,0,982,43,1027],73:[686,0,511,30,573],74:[686,17,631,42,694],75:[686,0,971,43,1003],76:[686,0,756,43,711],77:[686,0,1142,43,1219],78:[686,0,950,43,1027],79:[703,17,837,53,815],80:[686,0,723,43,847],81:[703,194,869,53,815],82:[686,17,872,43,881],83:[703,17,693,63,714],84:[675,0,637,22,772],85:[686,16,800,63,877],86:[686,16,678,62,886],87:[686,17,1093,61,1207],88:[686,0,947,38,953],89:[686,0,675,40,876],90:[686,0,773,68,805],97:[452,8,633,38,607],98:[694,8,521,45,513],99:[451,8,513,40,509],100:[694,8,610,38,612],101:[452,8,554,42,509],102:[701,201,568,64,624],103:[452,202,545,0,540],104:[694,8,668,45,642],105:[694,8,405,24,367],106:[694,202,471,-12,456],107:[694,8,604,45,578],108:[694,8,348,27,296],109:[452,8,1032,24,1006],110:[452,8,713,24,687],111:[452,8,585,39,576],112:[452,194,601,-23,593],113:[452,194,542,38,550],114:[452,8,529,24,500],115:[451,8,531,57,476],116:[643,7,415,21,387],117:[452,8,681,24,655],118:[453,8,567,24,540],119:[453,8,831,24,796],120:[452,8,659,43,599],121:[452,202,590,24,587],122:[452,8,555,34,539],160:[0,0,250,0,0],915:[680,0,657,43,777],916:[711,0,958,59,904],920:[702,17,867,54,844],923:[711,0,806,44,776],926:[675,0,841,62,867],928:[680,0,982,43,1026],931:[686,0,885,69,902],933:[703,0,671,32,802],934:[686,0,767,29,737],936:[686,0,714,22,790],937:[703,0,879,93,886],945:[452,8,761,39,712],946:[701,194,660,28,637],947:[451,211,590,5,617],948:[725,8,522,39,513],949:[461,17,529,36,481],950:[711,202,508,48,521],951:[452,211,600,24,600],952:[702,8,562,40,554],953:[452,8,412,38,386],954:[452,8,668,45,642],955:[694,13,671,40,652],956:[452,211,708,33,682],957:[452,2,577,38,608],958:[711,201,508,23,490],959:[452,8,585,39,576],960:[444,8,682,23,674],961:[451,211,612,34,603],962:[451,105,424,33,457],963:[444,8,686,35,677],964:[444,13,521,23,610],965:[453,8,631,24,604],966:[452,216,747,53,703],967:[452,201,718,32,685],968:[694,202,758,24,732],969:[453,8,718,24,691],977:[701,8,692,24,656],981:[694,202,712,51,693],982:[444,8,975,23,961],1009:[451,194,612,75,603],1013:[444,7,483,44,450]};MathJax.Callback.Queue(["initFont",MathJax.OutputJax["HTML-CSS"],"MathJax_Math-bold-italic"],["loadComplete",MathJax.Ajax,MathJax.OutputJax["HTML-CSS"].fontDir+"/Math/BoldItalic/Main.js"]);
MisatoTremor/cdnjs
ajax/libs/mathjax/2.3.0/jax/output/HTML-CSS/fonts/TeX/Math/BoldItalic/Main.js
JavaScript
mit
4,120
define("dojo/dnd/Container", ["../main", "../Evented", "./common", "../parser"], function(dojo, Evented) { // module: // dojo/dnd/Container // summary: // TODOC /* Container states: "" - normal state "Over" - mouse over a container Container item states: "" - normal state "Over" - mouse over a container item */ /*===== dojo.declare("dojo.dnd.__ContainerArgs", [], { creator: function(){ // summary: // a creator function, which takes a data item, and returns an object like that: // {node: newNode, data: usedData, type: arrayOfStrings} }, // skipForm: Boolean // don't start the drag operation, if clicked on form elements skipForm: false, // dropParent: Node||String // node or node's id to use as the parent node for dropped items // (must be underneath the 'node' parameter in the DOM) dropParent: null, // _skipStartup: Boolean // skip startup(), which collects children, for deferred initialization // (this is used in the markup mode) _skipStartup: false }); dojo.dnd.Item = function(){ // summary: // Represents (one of) the source node(s) being dragged. // Contains (at least) the "type" and "data" attributes. // type: String[] // Type(s) of this item, by default this is ["text"] // data: Object // Logical representation of the object being dragged. // If the drag object's type is "text" then data is a String, // if it's another type then data could be a different Object, // perhaps a name/value hash. this.type = type; this.data = data; } =====*/ dojo.declare("dojo.dnd.Container", Evented, { // summary: // a Container object, which knows when mouse hovers over it, // and over which element it hovers // object attributes (for markup) skipForm: false, /*===== // current: DomNode // The DOM node the mouse is currently hovered over current: null, // map: Hash<String, dojo.dnd.Item> // Map from an item's id (which is also the DOMNode's id) to // the dojo.dnd.Item itself. map: {}, =====*/ constructor: function(node, params){ // summary: // a constructor of the Container // node: Node // node or node's id to build the container on // params: dojo.dnd.__ContainerArgs // a dictionary of parameters this.node = dojo.byId(node); if(!params){ params = {}; } this.creator = params.creator || null; this.skipForm = params.skipForm; this.parent = params.dropParent && dojo.byId(params.dropParent); // class-specific variables this.map = {}; this.current = null; // states this.containerState = ""; dojo.addClass(this.node, "dojoDndContainer"); // mark up children if(!(params && params._skipStartup)){ this.startup(); } // set up events this.events = [ dojo.connect(this.node, "onmouseover", this, "onMouseOver"), dojo.connect(this.node, "onmouseout", this, "onMouseOut"), // cancel text selection and text dragging dojo.connect(this.node, "ondragstart", this, "onSelectStart"), dojo.connect(this.node, "onselectstart", this, "onSelectStart") ]; }, // object attributes (for markup) creator: function(){ // summary: // creator function, dummy at the moment }, // abstract access to the map getItem: function(/*String*/ key){ // summary: // returns a data item by its key (id) return this.map[key]; // dojo.dnd.Item }, setItem: function(/*String*/ key, /*dojo.dnd.Item*/ data){ // summary: // associates a data item with its key (id) this.map[key] = data; }, delItem: function(/*String*/ key){ // summary: // removes a data item from the map by its key (id) delete this.map[key]; }, forInItems: function(/*Function*/ f, /*Object?*/ o){ // summary: // iterates over a data map skipping members that // are present in the empty object (IE and/or 3rd-party libraries). o = o || dojo.global; var m = this.map, e = dojo.dnd._empty; for(var i in m){ if(i in e){ continue; } f.call(o, m[i], i, this); } return o; // Object }, clearItems: function(){ // summary: // removes all data items from the map this.map = {}; }, // methods getAllNodes: function(){ // summary: // returns a list (an array) of all valid child nodes return dojo.query("> .dojoDndItem", this.parent); // NodeList }, sync: function(){ // summary: // sync up the node list with the data map var map = {}; this.getAllNodes().forEach(function(node){ if(node.id){ var item = this.getItem(node.id); if(item){ map[node.id] = item; return; } }else{ node.id = dojo.dnd.getUniqueId(); } var type = node.getAttribute("dndType"), data = node.getAttribute("dndData"); map[node.id] = { data: data || node.innerHTML, type: type ? type.split(/\s*,\s*/) : ["text"] }; }, this); this.map = map; return this; // self }, insertNodes: function(data, before, anchor){ // summary: // inserts an array of new nodes before/after an anchor node // data: Array // a list of data items, which should be processed by the creator function // before: Boolean // insert before the anchor, if true, and after the anchor otherwise // anchor: Node // the anchor node to be used as a point of insertion if(!this.parent.firstChild){ anchor = null; }else if(before){ if(!anchor){ anchor = this.parent.firstChild; } }else{ if(anchor){ anchor = anchor.nextSibling; } } if(anchor){ for(var i = 0; i < data.length; ++i){ var t = this._normalizedCreator(data[i]); this.setItem(t.node.id, {data: t.data, type: t.type}); this.parent.insertBefore(t.node, anchor); } }else{ for(var i = 0; i < data.length; ++i){ var t = this._normalizedCreator(data[i]); this.setItem(t.node.id, {data: t.data, type: t.type}); this.parent.appendChild(t.node); } } return this; // self }, destroy: function(){ // summary: // prepares this object to be garbage-collected dojo.forEach(this.events, dojo.disconnect); this.clearItems(); this.node = this.parent = this.current = null; }, // markup methods markupFactory: function(params, node, ctor){ params._skipStartup = true; return new ctor(node, params); }, startup: function(){ // summary: // collects valid child items and populate the map // set up the real parent node if(!this.parent){ // use the standard algorithm, if not assigned this.parent = this.node; if(this.parent.tagName.toLowerCase() == "table"){ var c = this.parent.getElementsByTagName("tbody"); if(c && c.length){ this.parent = c[0]; } } } this.defaultCreator = dojo.dnd._defaultCreator(this.parent); // process specially marked children this.sync(); }, // mouse events onMouseOver: function(e){ // summary: // event processor for onmouseover // e: Event // mouse event var n = e.relatedTarget; while(n){ if(n == this.node){ break; } try{ n = n.parentNode; }catch(x){ n = null; } } if(!n){ this._changeState("Container", "Over"); this.onOverEvent(); } n = this._getChildByEvent(e); if(this.current == n){ return; } if(this.current){ this._removeItemClass(this.current, "Over"); } if(n){ this._addItemClass(n, "Over"); } this.current = n; }, onMouseOut: function(e){ // summary: // event processor for onmouseout // e: Event // mouse event for(var n = e.relatedTarget; n;){ if(n == this.node){ return; } try{ n = n.parentNode; }catch(x){ n = null; } } if(this.current){ this._removeItemClass(this.current, "Over"); this.current = null; } this._changeState("Container", ""); this.onOutEvent(); }, onSelectStart: function(e){ // summary: // event processor for onselectevent and ondragevent // e: Event // mouse event if(!this.skipForm || !dojo.dnd.isFormElement(e)){ dojo.stopEvent(e); } }, // utilities onOverEvent: function(){ // summary: // this function is called once, when mouse is over our container }, onOutEvent: function(){ // summary: // this function is called once, when mouse is out of our container }, _changeState: function(type, newState){ // summary: // changes a named state to new state value // type: String // a name of the state to change // newState: String // new state var prefix = "dojoDnd" + type; var state = type.toLowerCase() + "State"; //dojo.replaceClass(this.node, prefix + newState, prefix + this[state]); dojo.replaceClass(this.node, prefix + newState, prefix + this[state]); this[state] = newState; }, _addItemClass: function(node, type){ // summary: // adds a class with prefix "dojoDndItem" // node: Node // a node // type: String // a variable suffix for a class name dojo.addClass(node, "dojoDndItem" + type); }, _removeItemClass: function(node, type){ // summary: // removes a class with prefix "dojoDndItem" // node: Node // a node // type: String // a variable suffix for a class name dojo.removeClass(node, "dojoDndItem" + type); }, _getChildByEvent: function(e){ // summary: // gets a child, which is under the mouse at the moment, or null // e: Event // a mouse event var node = e.target; if(node){ for(var parent = node.parentNode; parent; node = parent, parent = node.parentNode){ if(parent == this.parent && dojo.hasClass(node, "dojoDndItem")){ return node; } } } return null; }, _normalizedCreator: function(/*dojo.dnd.Item*/ item, /*String*/ hint){ // summary: // adds all necessary data to the output of the user-supplied creator function var t = (this.creator || this.defaultCreator).call(this, item, hint); if(!dojo.isArray(t.type)){ t.type = ["text"]; } if(!t.node.id){ t.node.id = dojo.dnd.getUniqueId(); } dojo.addClass(t.node, "dojoDndItem"); return t; } }); dojo.dnd._createNode = function(tag){ // summary: // returns a function, which creates an element of given tag // (SPAN by default) and sets its innerHTML to given text // tag: String // a tag name or empty for SPAN if(!tag){ return dojo.dnd._createSpan; } return function(text){ // Function return dojo.create(tag, {innerHTML: text}); // Node }; }; dojo.dnd._createTrTd = function(text){ // summary: // creates a TR/TD structure with given text as an innerHTML of TD // text: String // a text for TD var tr = dojo.create("tr"); dojo.create("td", {innerHTML: text}, tr); return tr; // Node }; dojo.dnd._createSpan = function(text){ // summary: // creates a SPAN element with given text as its innerHTML // text: String // a text for SPAN return dojo.create("span", {innerHTML: text}); // Node }; // dojo.dnd._defaultCreatorNodes: Object // a dictionary that maps container tag names to child tag names dojo.dnd._defaultCreatorNodes = {ul: "li", ol: "li", div: "div", p: "div"}; dojo.dnd._defaultCreator = function(node){ // summary: // takes a parent node, and returns an appropriate creator function // node: Node // a container node var tag = node.tagName.toLowerCase(); var c = tag == "tbody" || tag == "thead" ? dojo.dnd._createTrTd : dojo.dnd._createNode(dojo.dnd._defaultCreatorNodes[tag]); return function(item, hint){ // Function var isObj = item && dojo.isObject(item), data, type, n; if(isObj && item.tagName && item.nodeType && item.getAttribute){ // process a DOM node data = item.getAttribute("dndData") || item.innerHTML; type = item.getAttribute("dndType"); type = type ? type.split(/\s*,\s*/) : ["text"]; n = item; // this node is going to be moved rather than copied }else{ // process a DnD item object or a string data = (isObj && item.data) ? item.data : item; type = (isObj && item.type) ? item.type : ["text"]; n = (hint == "avatar" ? dojo.dnd._createSpan : c)(String(data)); } if(!n.id){ n.id = dojo.dnd.getUniqueId(); } return {node: n, data: data, type: type}; }; }; return dojo.dnd.Container; });
senekis/cdnjs
ajax/libs/dojo/1.7.7/dnd/Container.js.uncompressed.js
JavaScript
mit
11,907
define("dojo/AdapterRegistry", ["./_base/kernel", "./_base/lang"], function(dojo, lang) { // module: // dojo/AdapterRegistry // summary: // TODOC var AdapterRegistry = dojo.AdapterRegistry = function(/*Boolean?*/ returnWrappers){ // summary: // A registry to make contextual calling/searching easier. // description: // Objects of this class keep list of arrays in the form [name, check, // wrap, directReturn] that are used to determine what the contextual // result of a set of checked arguments is. All check/wrap functions // in this registry should be of the same arity. // example: // | // create a new registry // | var reg = new dojo.AdapterRegistry(); // | reg.register("handleString", // | dojo.isString, // | function(str){ // | // do something with the string here // | } // | ); // | reg.register("handleArr", // | dojo.isArray, // | function(arr){ // | // do something with the array here // | } // | ); // | // | // now we can pass reg.match() *either* an array or a string and // | // the value we pass will get handled by the right function // | reg.match("someValue"); // will call the first function // | reg.match(["someValue"]); // will call the second this.pairs = []; this.returnWrappers = returnWrappers || false; // Boolean }; /*===== // doc alias helpers: AdapterRegistry = dojo.AdapterRegistry; =====*/ lang.extend(AdapterRegistry, { register: function(/*String*/ name, /*Function*/ check, /*Function*/ wrap, /*Boolean?*/ directReturn, /*Boolean?*/ override){ // summary: // register a check function to determine if the wrap function or // object gets selected // name: // a way to identify this matcher. // check: // a function that arguments are passed to from the adapter's // match() function. The check function should return true if the // given arguments are appropriate for the wrap function. // directReturn: // If directReturn is true, the value passed in for wrap will be // returned instead of being called. Alternately, the // AdapterRegistry can be set globally to "return not call" using // the returnWrappers property. Either way, this behavior allows // the registry to act as a "search" function instead of a // function interception library. // override: // If override is given and true, the check function will be given // highest priority. Otherwise, it will be the lowest priority // adapter. this.pairs[((override) ? "unshift" : "push")]([name, check, wrap, directReturn]); }, match: function(/* ... */){ // summary: // Find an adapter for the given arguments. If no suitable adapter // is found, throws an exception. match() accepts any number of // arguments, all of which are passed to all matching functions // from the registered pairs. for(var i = 0; i < this.pairs.length; i++){ var pair = this.pairs[i]; if(pair[1].apply(this, arguments)){ if((pair[3])||(this.returnWrappers)){ return pair[2]; }else{ return pair[2].apply(this, arguments); } } } throw new Error("No match found"); }, unregister: function(name){ // summary: // Remove a named adapter from the registry // name: String // The name of the adapter. // returns: Boolean // Returns true if operation is successful. // Returns false if operation fails. // FIXME: this is kind of a dumb way to handle this. On a large // registry this will be slow-ish and we can use the name as a lookup // should we choose to trade memory for speed. for(var i = 0; i < this.pairs.length; i++){ var pair = this.pairs[i]; if(pair[0] == name){ this.pairs.splice(i, 1); return true; } } return false; } }); return AdapterRegistry; });
emmansun/cdnjs
ajax/libs/dojo/1.7.8/AdapterRegistry.js.uncompressed.js
JavaScript
mit
3,756
define("dojo/data/api/Request", ["../.."], function(dojo) { // module: // dojo/data/api/Request // summary: // TODOC dojo.declare("dojo.data.api.Request", null, { // summary: // This class defines out the semantics of what a 'Request' object looks like // when returned from a fetch() method. In general, a request object is // nothing more than the original keywordArgs from fetch with an abort function // attached to it to allow users to abort a particular request if they so choose. // No other functions are required on a general Request object return. That does not // inhibit other store implementations from adding extentions to it, of course. // // This is an abstract API that data provider implementations conform to. // This file defines methods signatures and intentionally leaves all the // methods unimplemented. // // For more details on fetch, see dojo.data.api.Read.fetch(). abort: function(){ // summary: // This function is a hook point for stores to provide as a way for // a fetch to be halted mid-processing. // description: // This function is a hook point for stores to provide as a way for // a fetch to be halted mid-processing. For more details on the fetch() api, // please see dojo.data.api.Read.fetch(). throw new Error('Unimplemented API: dojo.data.api.Request.abort'); } }); return dojo.data.api.Request; });
NameFILIP/cdnjs
ajax/libs/dojo/1.7.7/data/api/Request.js.uncompressed.js
JavaScript
mit
1,401
define( "dojo/cldr/nls/sk/gregorian", //begin v1.x content { "field-dayperiod": "Časť dňa", "dateFormatItem-yQ": "Q yyyy", "dayPeriods-format-wide-pm": "popoludní", "field-minute": "Minúta", "eraNames": [ "pred n.l.", "n.l." ], "dateFormatItem-MMMEd": "E, d. MMM", "field-day-relative+-1": "Včera", "field-weekday": "Deň v týždni", "dateFormatItem-yQQQ": "QQQ y", "field-day-relative+-2": "Predvčerom", "field-day-relative+-3": "Pred tromi dňami", "days-standAlone-wide": [ "nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota" ], "months-standAlone-narrow": [ "j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d" ], "field-era": "Éra", "field-hour": "Hodina", "dayPeriods-format-wide-am": "dopoludnia", "timeFormat-full": "H:mm:ss zzzz", "months-standAlone-abbr": [ "jan", "feb", "mar", "apr", "máj", "jún", "júl", "aug", "sep", "okt", "nov", "dec" ], "dateFormatItem-yMMM": "LLL y", "field-day-relative+0": "Dnes", "field-day-relative+1": "Zajtra", "days-standAlone-narrow": [ "N", "P", "U", "S", "Š", "P", "S" ], "eraAbbr": [ "pred n.l.", "n.l." ], "field-day-relative+2": "Pozajtra", "field-day-relative+3": "O tri dni", "dateFormatItem-yyyyMMMM": "LLLL y", "dateFormat-long": "d. MMMM y", "timeFormat-medium": "H:mm:ss", "dateFormatItem-EEEd": "EEE, d.", "field-zone": "Pásmo", "dateFormatItem-Hm": "H:mm", "dateFormat-medium": "d.M.yyyy", "dateFormatItem-Hms": "H:mm:ss", "dateFormatItem-yyQQQQ": "QQQQ yy", "quarters-standAlone-wide": [ "1. štvrťrok", "2. štvrťrok", "3. štvrťrok", "4. štvrťrok" ], "dateFormatItem-yMMMM": "LLLL y", "dateFormatItem-ms": "mm:ss", "field-year": "Rok", "months-standAlone-wide": [ "január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december" ], "field-week": "Týždeň", "dateFormatItem-MMMMEd": "E, d. MMMM", "dateFormatItem-MMMd": "d. MMM", "dateFormatItem-yyQ": "Q yy", "timeFormat-long": "H:mm:ss z", "months-format-abbr": [ "jan", "feb", "mar", "apr", "máj", "jún", "júl", "aug", "sep", "okt", "nov", "dec" ], "timeFormat-short": "H:mm", "dateFormatItem-H": "H", "field-month": "Mesiac", "dateFormatItem-MMMMd": "d. MMMM", "quarters-format-abbr": [ "Q1", "Q2", "Q3", "Q4" ], "days-format-abbr": [ "ne", "po", "ut", "st", "št", "pi", "so" ], "dateFormatItem-mmss": "mm:ss", "days-format-narrow": [ "N", "P", "U", "S", "Š", "P", "S" ], "field-second": "Sekunda", "field-day": "Deň", "dateFormatItem-MEd": "E, d.M.", "months-format-narrow": [ "j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d" ], "days-standAlone-abbr": [ "ne", "po", "ut", "st", "št", "pi", "so" ], "dateFormat-short": "d.M.yyyy", "dateFormatItem-yyyyM": "M.yyyy", "dateFormatItem-yMMMEd": "EEE, d. MMM y", "dateFormat-full": "EEEE, d. MMMM y", "dateFormatItem-Md": "d.M.", "dateFormatItem-yMEd": "EEE, d.M.yyyy", "months-format-wide": [ "januára", "februára", "marca", "apríla", "mája", "júna", "júla", "augusta", "septembra", "októbra", "novembra", "decembra" ], "dateFormatItem-d": "d.", "quarters-format-wide": [ "1. štvrťrok", "2. štvrťrok", "3. štvrťrok", "4. štvrťrok" ], "days-format-wide": [ "nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota" ], "eraNarrow": [ "pred n.l.", "n.l." ] } //end v1.x content );
KOLANICH/cdnjs
ajax/libs/dojo/1.7.6/cldr/nls/sk/gregorian.js.uncompressed.js
JavaScript
mit
3,642
/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/promise/instrumentation",["./tracer","../has","../_base/lang","../_base/array"],function(_1,_2,_3,_4){ _2.add("config-useDeferredInstrumentation","report-unhandled-rejections"); function _5(_6,_7,_8){ var _9=""; if(_6&&_6.stack){ _9+=_6.stack; } if(_7&&_7.stack){ _9+="\n ----------------------------------------\n rejected"+_7.stack.split("\n").slice(1).join("\n").replace(/^\s+/," "); } if(_8&&_8.stack){ _9+="\n ----------------------------------------\n"+_8.stack; } console.error(_6,_9); }; function _a(_b,_c,_d,_e){ if(!_c){ _5(_b,_d,_e); } }; var _f=[]; var _10=false; var _11=1000; function _12(_13,_14,_15,_16){ if(!_4.some(_f,function(obj){ if(obj.error===_13){ if(_14){ obj.handled=true; } return true; } })){ _f.push({error:_13,rejection:_15,handled:_14,deferred:_16,timestamp:new Date().getTime()}); } if(!_10){ _10=setTimeout(_17,_11); } }; function _17(){ var now=new Date().getTime(); var _18=now-_11; _f=_4.filter(_f,function(obj){ if(obj.timestamp<_18){ if(!obj.handled){ _5(obj.error,obj.rejection,obj.deferred); } return false; } return true; }); if(_f.length){ _10=setTimeout(_17,_f[0].timestamp+_11-now); }else{ _10=false; } }; return function(_19){ var _1a=_2("config-useDeferredInstrumentation"); if(_1a){ _1.on("resolved",_3.hitch(console,"log","resolved")); _1.on("rejected",_3.hitch(console,"log","rejected")); _1.on("progress",_3.hitch(console,"log","progress")); var _1b=[]; if(typeof _1a==="string"){ _1b=_1a.split(","); _1a=_1b.shift(); } if(_1a==="report-rejections"){ _19.instrumentRejected=_a; }else{ if(_1a==="report-unhandled-rejections"||_1a===true||_1a===1){ _19.instrumentRejected=_12; _11=parseInt(_1b[0],10)||_11; }else{ throw new Error("Unsupported instrumentation usage <"+_1a+">"); } } } }; });
menuka94/cdnjs
ajax/libs/dojo/1.9.7/promise/instrumentation.js
JavaScript
mit
1,967
/*! * Copyright 2014 Drifty Co. * http://drifty.com/ * * Ionic, v1.0.0-beta.1 * A powerful HTML5 mobile app framework. * http://ionicframework.com/ * * By @maxlynch, @benjsperry, @adamdbradley <3 * * Licensed under the MIT license. Please see LICENSE for more information. * */ (function() { /** * Create a wrapping module to ease having to include too many * modules. */ /** * @ngdoc module * @name ionic * @description * Ionic main module. */ angular.module('ionic.service', [ 'ionic.service.bind', 'ionic.service.platform', 'ionic.service.actionSheet', 'ionic.service.gesture', 'ionic.service.loading', 'ionic.service.modal', 'ionic.service.popup', 'ionic.service.templateLoad', 'ionic.service.view', 'ionic.decorator.location' ]); angular.module('ionic.ui', [ 'ionic.ui.checkbox', 'ionic.ui.content', 'ionic.ui.header', 'ionic.ui.list', 'ionic.ui.navBar', 'ionic.ui.popup', 'ionic.ui.radio', 'ionic.ui.scroll', 'ionic.ui.sideMenu', 'ionic.ui.slideBox', 'ionic.ui.tabs', 'ionic.ui.toggle', 'ionic.ui.touch', 'ionic.ui.viewState' ]); angular.module('ionic', [ 'ionic.service', 'ionic.ui', // Angular deps 'ngAnimate', 'ngSanitize', 'ui.router' ]); angular.element.prototype.addClass = function(cssClasses) { var x, y, cssClass, el, splitClasses, existingClasses; if (cssClasses && cssClasses != 'ng-scope' && cssClasses != 'ng-isolate-scope') { for(x=0; x<this.length; x++) { el = this[x]; if(el.setAttribute) { if(cssClasses.indexOf(' ') < 0) { el.classList.add(cssClasses); } else { existingClasses = (' ' + (el.getAttribute('class') || '') + ' ') .replace(/[\n\t]/g, " "); splitClasses = cssClasses.split(' '); for (y=0; y<splitClasses.length; y++) { cssClass = splitClasses[y].trim(); if (existingClasses.indexOf(' ' + cssClass + ' ') === -1) { existingClasses += cssClass + ' '; } } el.setAttribute('class', existingClasses.trim()); } } } } return this; }; angular.element.prototype.removeClass = function(cssClasses) { var x, y, splitClasses, cssClass, el; if (cssClasses) { for(x=0; x<this.length; x++) { el = this[x]; if(el.getAttribute) { if(cssClasses.indexOf(' ') < 0) { el.classList.remove(cssClasses); } else { splitClasses = cssClasses.split(' '); for (y=0; y<splitClasses.length; y++) { cssClass = splitClasses[y]; el.setAttribute('class', ( (" " + (el.getAttribute('class') || '') + " ") .replace(/[\n\t]/g, " ") .replace(" " + cssClass.trim() + " ", " ")).trim() ); } } } } } return this; }; function delegateService(methodNames) { return ['$log', function($log) { var delegate = this; var instances = this._instances = []; this._registerInstance = function(instance, handle) { instance.$$delegateHandle = handle; instances.push(instance); return function deregister() { var index = instances.indexOf(instance); if (index !== -1) { instances.splice(index, 1); } }; }; this.$getByHandle = function(handle) { if (!handle) { return delegate; } return new InstanceForHandle(handle); }; /* * Creates a new object that will have all the methodNames given, * and call them on the given the controller instance matching given * handle. * The reason we don't just let $getByHandle return the controller instance * itself is that the controller instance might not exist yet. * * We want people to be able to do * `var instance = $ionicScrollDelegate.$getByHandle('foo')` on controller * instantiation, but on controller instantiation a child directive * may not have been compiled yet! * * So this is our way of solving this problem: we create an object * that will only try to fetch the controller with given handle * once the methods are actually called. */ function InstanceForHandle(handle) { this.handle = handle; } methodNames.forEach(function(methodName) { InstanceForHandle.prototype[methodName] = function() { var handle = this.handle; var args = arguments; var matchingInstancesFound = 0; var finalResult; var result; //This logic is repeated below; we could factor some of it out to a function //but don't because it lets this method be more performant (one loop versus 2) instances.forEach(function(instance) { if (instance.$$delegateHandle === handle) { matchingInstancesFound++; result = instance[methodName].apply(instance, args); //Only return the value from the first call if (matchingInstancesFound === 1) { finalResult = result; } } }); if (!matchingInstancesFound) { return $log.warn( 'Delegate for handle "'+this.handle+'" could not find a', 'corresponding element with delegate-handle="'+this.handle+'"!', methodName, 'was not called!'); } return finalResult; }; delegate[methodName] = function() { var args = arguments; var finalResult; var result; //This logic is repeated above instances.forEach(function(instance, index) { result = instance[methodName].apply(instance, args); //Only return the value from the first call if (index === 0) { finalResult = result; } }); return finalResult; }; function callMethod(instancesToUse, methodName, args) { var finalResult; var result; instancesToUse.forEach(function(instance, index) { result = instance[methodName].apply(instance, args); //Make it so the first result is the one returned if (index === 0) { finalResult = result; } }); return finalResult; } }); }]; } angular.module('ionic.service.actionSheet', ['ionic.service.templateLoad', 'ionic.service.platform', 'ionic.ui.actionSheet', 'ngAnimate']) /** * @ngdoc service * @name $ionicActionSheet * @module ionic * @description * The Action Sheet is a slide-up pane that lets the user choose from a set of options. * Dangerous options are highlighted in red and made obvious. * * There are easy ways to cancel out of the action sheet, such as tapping the backdrop or even * hitting escape on the keyboard for desktop testing. * * ![Action Sheet](http://ionicframework.com.s3.amazonaws.com/docs/controllers/actionSheet.gif) * * @usage * To trigger an Action Sheet in your code, use the $ionicActionSheet service in your angular controllers: * * ```js * angular.module('mySuperApp', ['ionic']) * .controller(function($scope, $ionicActionSheet) { * * // Triggered on a button click, or some other target * $scope.show = function() { * * // Show the action sheet * $ionicActionSheet.show({ * buttons: [ * { text: 'Share' }, * { text: 'Move' }, * ], * destructiveText: 'Delete', * titleText: 'Modify your album', * cancelText: 'Cancel', * buttonClicked: function(index) { * return true; * } * }); * * }; * }); * ``` * */ .factory('$ionicActionSheet', ['$rootScope', '$document', '$compile', '$animate', '$timeout', '$ionicTemplateLoader', '$ionicPlatform', function($rootScope, $document, $compile, $animate, $timeout, $ionicTemplateLoader, $ionicPlatform) { return { /** * @ngdoc method * @name $ionicActionSheet#show * @description * Load and return a new action sheet. * * A new isolated scope will be created for the * action sheet and the new element will be appended into the body. * * @param {object} opts The options for this ActionSheet. Properties: * * - `[Object]` `buttons` Which buttons to show. Each button is an object with a `text` field. * - `{string}` `titleText` The title to show on the action sheet. * - `{string=}` `cancelText` The text for a 'cancel' button on the action sheet. * - `{string=}` `destructiveText` The text for a 'danger' on the action sheet. * - `{function=}` `cancel` Called if the cancel button is pressed or the backdrop is tapped. * - `{function=}` `buttonClicked` Called when one of the non-destructive buttons is clicked, * with the index of the button that was clicked. Return true to close the action sheet, * or false to keep it opened. * - `{function=}` `destructiveButtonClicked` Called when the destructive button is clicked. * Return true to close the action sheet, or false to keep it opened. */ show: function(opts) { var scope = $rootScope.$new(true); angular.extend(scope, opts); // Compile the template var element = $compile('<ion-action-sheet buttons="buttons"></ion-action-sheet>')(scope); // Grab the sheet element for animation var sheetEl = angular.element(element[0].querySelector('.action-sheet-wrapper')); var hideSheet = function(didCancel) { sheetEl.removeClass('action-sheet-up'); if(didCancel) { $timeout(function(){ opts.cancel(); }, 200); } $animate.removeClass(element, 'active', function() { scope.$destroy(); }); $document[0].body.classList.remove('action-sheet-open'); scope.$deregisterBackButton && scope.$deregisterBackButton(); }; // Support Android back button to close scope.$deregisterBackButton = $ionicPlatform.registerBackButtonAction(function(){ hideSheet(); }, 300); scope.cancel = function() { hideSheet(true); }; scope.buttonClicked = function(index) { // Check if the button click event returned true, which means // we can close the action sheet if((opts.buttonClicked && opts.buttonClicked(index)) === true) { hideSheet(false); } }; scope.destructiveButtonClicked = function() { // Check if the destructive button click event returned true, which means // we can close the action sheet if((opts.destructiveButtonClicked && opts.destructiveButtonClicked()) === true) { hideSheet(false); } }; $document[0].body.appendChild(element[0]); $document[0].body.classList.add('action-sheet-open'); var sheet = new ionic.views.ActionSheet({el: element[0] }); scope.sheet = sheet; $animate.addClass(element, 'active'); $timeout(function(){ sheetEl.addClass('action-sheet-up'); }, 20); return sheet; } }; }]); angular.module('ionic.service.bind', []) /** * @private */ .factory('$ionicBind', ['$parse', '$interpolate', function($parse, $interpolate) { var LOCAL_REGEXP = /^\s*([@=&])(\??)\s*(\w*)\s*$/; return function(scope, attrs, bindDefinition) { angular.forEach(bindDefinition || {}, function (definition, scopeName) { //Adapted from angular.js $compile var match = definition.match(LOCAL_REGEXP) || [], attrName = match[3] || scopeName, mode = match[1], // @, =, or & parentGet, unwatch; switch(mode) { case '@': if (!attrs[attrName]) { return; } attrs.$observe(attrName, function(value) { scope[scopeName] = value; }); // we trigger an interpolation to ensure // the value is there for use immediately if (attrs[attrName]) { scope[scopeName] = $interpolate(attrs[attrName])(scope); } break; case '=': if (!attrs[attrName]) { return; } unwatch = scope.$watch(attrs[attrName], function(value) { scope[scopeName] = value; }); //Destroy parent scope watcher when this scope is destroyed scope.$on('$destroy', unwatch); break; case '&': /* jshint -W044 */ if (attrs[attrName] && attrs[attrName].match(RegExp(scopeName + '\(.*?\)'))) { throw new Error('& expression binding "' + scopeName + '" looks like it will recursively call "' + attrs[attrName] + '" and cause a stack overflow! Please choose a different scopeName.'); } parentGet = $parse(attrs[attrName]); scope[scopeName] = function(locals) { return parentGet(scope, locals); }; break; } }); }; }]); angular.module('ionic.service.gesture', []) /** * @ngdoc service * @name $ionicGesture * @module ionic * @description An angular service exposing ionic * {@link ionic.utility:ionic.EventController}'s gestures. */ .factory('$ionicGesture', [function() { return { /** * @ngdoc method * @name $ionicGesture#on * @description Add an event listener for a gesture on an element. See {@link ionic.utility:ionic.EventController#onGesture}. * @param {string} eventType The gesture event to listen for. * @param {function(e)} callback The function to call when the gesture * happens. * @param {element} $element The angular element to listen for the event on. */ on: function(eventType, cb, $element) { return window.ionic.onGesture(eventType, cb, $element[0]); }, /** * @ngdoc method * @name $ionicGesture#on * @description Remove an event listener for a gesture on an element. See {@link ionic.utility:ionic.EventController#offGesture}. * @param {string} eventType The gesture event to remove the listener for. * @param {function(e)} callback The listener to remove. * @param {element} $element The angular element that was listening for the event. */ off: function(gesture, eventType, cb) { return window.ionic.offGesture(gesture, eventType, cb); } }; }]); angular.module('ionic.service.loading', ['ionic.ui.loading']) /** * @ngdoc service * @name $ionicLoading * @module ionic * @description * An overlay that can be used to indicate activity while blocking user * interaction. * * @usage * ```js * angular.module('LoadingApp', ['ionic']) * .controller('LoadingCtrl', function($scope, $ionicLoading) { * $scope.show = function() { * $scope.loading = $ionicLoading.show({ * content: 'Loading', * }); * }; * $scope.hide = function(){ * $scope.loading.hide(); * }; * }); * ``` */ .factory('$ionicLoading', ['$rootScope', '$document', '$compile', function($rootScope, $document, $compile) { return { /** * @ngdoc method * @name $ionicLoading#show * @param {object} opts The options for the indicator. Available properties: * - `{string=}` `content` The content of the indicator. Default: none. * - `{string=}` `animation` The animation of the indicator. * Default: 'fade-in'. * - `{boolean=}` `showBackdrop` Whether to show a backdrop. Default: true. * - `{number=}` `maxWidth` The maximum width of the indicator, in pixels. * Default: 200. * - `{number=}` `showDelay` How many milliseconds to delay showing the * indicator. Default: 0. * @returns {object} A shown loader with the following methods: * - `hide()` - Hides the loader. * - `show()` - Shows the loader. * - `setContent(string)` - Sets the html content of the loader. */ show: function(opts) { var defaults = { content: '', animation: 'fade-in', showBackdrop: true, maxWidth: 200, showDelay: 0 }; opts = angular.extend(defaults, opts); var scope = $rootScope.$new(true); angular.extend(scope, opts); // Make sure there is only one loading element on the page at one point in time var existing = angular.element($document[0].querySelector('.loading-backdrop')); if(existing.length) { existing.remove(); } // Compile the template var element = $compile('<ion-loading>' + opts.content + '</ion-loading>')(scope); $document[0].body.appendChild(element[0]); var loading = new ionic.views.Loading({ el: element[0], maxWidth: opts.maxWidth, showDelay: opts.showDelay }); loading.show(); scope.loading = loading; return loading; } }; }]); angular.module('ionic.service.modal', ['ionic.service.templateLoad', 'ionic.service.platform', 'ionic.ui.modal']) /** * @ngdoc service * @name $ionicModal * @module ionic * @description * The Modal is a content pane that can go over the user's main view * temporarily. Usually used for making a choice or editing an item. * * @usage * ```html * <script id="my-modal.html" type="text/ng-template"> * <div class="modal"> * <ion-header-bar> * <h1 class="title">My Modal title</h1> * </ion-header-bar> * <ion-content> * Hello! * </ion-content> * </div> * </script> * ``` * ```js * angular.module('testApp', ['ionic']) * .controller('MyController', function($scope, $ionicModal) { * $ionicModal.fromTemplateUrl('modal.html', { * scope: $scope, * animation: 'slide-in-up' * }).then(function(modal) { * $scope.modal = modal; * }); * $scope.openModal = function() { * $scope.modal.show(); * }; * $scope.closeModal = function() { * $scope.modal.hide(); * }; * //Cleanup the modal when we're done with it! * $scope.$on('$destroy', function() { * $scope.modal.remove(); * }); * }); * ``` */ .factory('$ionicModal', [ '$rootScope', '$document', '$compile', '$timeout', '$ionicPlatform', '$ionicTemplateLoader', '$q', function($rootScope, $document, $compile, $timeout, $ionicPlatform, $ionicTemplateLoader, $q) { /** * @ngdoc controller * @name ionicModal * @module ionic * @description * Instantiated by the {@link ionic.service:$ionicModal} service. * * Hint: Be sure to call [remove()](#remove) when you are done with each modal * to clean it up and avoid memory leaks. */ var ModalView = ionic.views.Modal.inherit({ /** * @ngdoc method * @name ionicModal#initialize * @description Creates a new modal controller instance. * @param {object} options An options object with the following properties: * - `{object=}` `scope` The scope to be a child of. * Default: creates a child of $rootScope. * - `{string=}` `animation` The animation to show & hide with. * Default: 'slide-in-up' * - `{boolean=}` `focusFirstInput` Whether to autofocus the first input of * the modal when shown. Default: false. */ initialize: function(opts) { ionic.views.Modal.prototype.initialize.call(this, opts); this.animation = opts.animation || 'slide-in-up'; }, /** * @ngdoc method * @name ionicModal#show * @description Show this modal instance. * @returns {promise} A promise which is resolved when the modal is finished animating in. */ show: function() { var self = this; var modalEl = angular.element(self.modalEl); self.el.classList.remove('hide'); $document[0].body.classList.add('modal-open'); if(!self.el.parentElement) { modalEl.addClass(self.animation); $document[0].body.appendChild(self.el); } modalEl.addClass('ng-enter active') .removeClass('ng-leave ng-leave-active'); self._isShown = true; self._deregisterBackButton = $ionicPlatform.registerBackButtonAction(function(){ self.hide(); }, 200); self._isOpenPromise = $q.defer(); ionic.views.Modal.prototype.show.call(self); $timeout(function(){ modalEl.addClass('ng-enter-active'); self.scope.$parent && self.scope.$parent.$broadcast('modal.shown'); self.el.classList.add('active'); }, 20); return $timeout(angular.noop, 400); }, /** * @ngdoc method * @name ionicModal#hide * @description Hide this modal instance. * @returns {promise} A promise which is resolved when the modal is finished animating out. */ hide: function() { var self = this; var modalEl = angular.element(self.modalEl); self.el.classList.remove('active'); modalEl.addClass('ng-leave'); $timeout(function(){ modalEl.addClass('ng-leave-active') .removeClass('ng-enter ng-enter-active active'); }, 20); self._isShown = false; self.scope.$parent && self.scope.$parent.$broadcast('modal.hidden'); self._deregisterBackButton && self._deregisterBackButton(); ionic.views.Modal.prototype.hide.call(self); return $timeout(function(){ $document[0].body.classList.remove('modal-open'); self.el.classList.add('hide'); }, 350); }, /** * @ngdoc method * @name ionicModal#remove * @description Remove this modal instance from the DOM and clean up. * @returns {promise} A promise which is resolved when the modal is finished animating out. */ remove: function() { var self = this; self.scope.$parent && self.scope.$parent.$broadcast('modal.removed'); return self.hide().then(function() { self.scope.$destroy(); self.el && self.el.parentElement && self.el.parentElement.removeChild(self.el); }); }, /** * @ngdoc method * @name ionicModal#isShown * @returns boolean Whether this modal is currently shown. */ isShown: function() { return !!this._isShown; } }); var createModal = function(templateString, options) { // Create a new scope for the modal var scope = options.scope && options.scope.$new() || $rootScope.$new(true); // Compile the template var element = $compile('<ion-modal>' + templateString + '</ion-modal>')(scope); options.el = element[0]; options.modalEl = options.el.querySelector('.modal'); var modal = new ModalView(options); modal.scope = scope; // If this wasn't a defined scope, we can assign 'modal' to the isolated scope // we created if(!options.scope) { scope.modal = modal; } return modal; }; return { /** * @ngdoc method * @name $ionicModal#fromTemplate * @param {string} templateString The template string to use as the modal's * content. * @param {object} options Options to be passed {@link ionic.controller:ionicModal#initialize ionicModal#initialize} method. * @returns {object} An instance of an {@link ionic.controller:ionicModal} * controller. */ fromTemplate: function(templateString, options) { var modal = createModal(templateString, options || {}); return modal; }, /** * @ngdoc method * @name $ionicModal#fromTemplateUrl * @param {string} templateUrl The url to load the template from. * @param {object} options Options to be passed {@link ionic.controller:ionicModal#initialize ionicModal#initialize} method. * options object. * @returns {promise} A promise that will be resolved with an instance of * an {@link ionic.controller:ionicModal} controller. */ fromTemplateUrl: function(url, options, _) { var cb; //Deprecated: allow a callback as second parameter. Now we return a promise. if (angular.isFunction(options)) { cb = options; options = _; } return $ionicTemplateLoader.load(url).then(function(templateString) { var modal = createModal(templateString, options || {}); cb && cb(modal); return modal; }); } }; }]); (function(ionic) {'use strict'; angular.module('ionic.service.platform', []) /** * @ngdoc service * @name $ionicPlatform * @module ionic * @description * An angular abstraction of {@link ionic.utility:ionic.Platform}. * * Used to detect the current platform, as well as do things like override the * Android back button in PhoneGap/Cordova. */ .provider('$ionicPlatform', function() { return { $get: ['$q', '$rootScope', function($q, $rootScope) { return { /** * @ngdoc method * @name $ionicPlatform#onHardwareBackButton * @description * Some platforms have a hardware back button, so this is one way to * bind to it. * @param {function} callback the callback to trigger when this event occurs */ onHardwareBackButton: function(cb) { ionic.Platform.ready(function() { document.addEventListener('backbutton', cb, false); }); }, /** * @ngdoc method * @name $ionicPlatform#offHardwareBackButton * @description * Remove an event listener for the backbutton. * @param {function} callback The listener function that was * originally bound. */ offHardwareBackButton: function(fn) { ionic.Platform.ready(function() { document.removeEventListener('backbutton', fn); }); }, /** * @ngdoc method * @name $ionicPlatform#registerBackButtonAction * @description * Register a hardware back button action. Only one action will execute * when the back button is clicked, so this method decides which of * the registered back button actions has the highest priority. * * For example, if an actionsheet is showing, the back button should * close the actionsheet, but it should not also go back a page view * or close a modal which may be open. * * @param {function} callback Called when the back button is pressed, * if this listener is the highest priority. * @param {number} priority Only the highest priority will execute. * @param {*=} actionId The id to assign this action. Default: a * random unique id. * @returns {function} A function that, when called, will deregister * this backButtonAction. */ registerBackButtonAction: function(fn, priority, actionId) { var self = this; if(!self._hasBackButtonHandler) { // add a back button listener if one hasn't been setup yet $rootScope.$backButtonActions = {}; self.onHardwareBackButton(self.hardwareBackButtonClick); self._hasBackButtonHandler = true; } var action = { id: (actionId ? actionId : ionic.Utils.nextUid()), priority: (priority ? priority : 0), fn: fn }; $rootScope.$backButtonActions[action.id] = action; // return a function to de-register this back button action return function() { delete $rootScope.$backButtonActions[action.id]; }; }, /** * @private */ hardwareBackButtonClick: function(e){ // loop through all the registered back button actions // and only run the last one of the highest priority var priorityAction, actionId; for(actionId in $rootScope.$backButtonActions) { if(!priorityAction || $rootScope.$backButtonActions[actionId].priority >= priorityAction.priority) { priorityAction = $rootScope.$backButtonActions[actionId]; } } if(priorityAction) { priorityAction.fn(e); return priorityAction; } }, is: function(type) { return ionic.Platform.is(type); }, /** * @ngdoc method * @name $ionicPlatform#ready * @description * Trigger a callback once the device is ready, * or immediately if the device is already ready. * @param {function=} callback The function to call. * @returns {promise} A promise which is resolved when the device is ready. */ ready: function(cb) { var q = $q.defer(); ionic.Platform.ready(function(){ q.resolve(); cb && cb(); }); return q.promise; } }; }] }; }); })(ionic); (function(ionic) { 'use strict'; angular.module('ionic.service.popup', ['ionic.service.templateLoad']) /** * @ngdoc service * @name $ionicPopup * @module ionic * @restrict E * @codepen zkmhJ * @description * * The Ionic Popup service makes it easy to programatically create and show popup * windows that require the user to respond in order to continue: * * The popup system has support for nicer versions of the built in `alert()` `prompt()` and `confirm()` functions * you are used to in the browser, but with more powerful support for customizing input types in the case of * prompt, or customizing the look of the window. * * But the true power of the Popup is when a built-in popup just won't cut it. Luckily, the popup window * has full support for arbitrary popup content, and a simple promise-based system for returning data * entered by the user. * * @usage * To trigger a Popup in your code, use the $ionicPopup service in your angular controllers: * * ```js * angular.module('mySuperApp', ['ionic']) * .controller(function($scope, $ionicPopup) { * * // Triggered on a button click, or some other target $scope.showPopup = function() { $scope.data = {} // An elaborate, custom popup $ionicPopup.show({ templateUrl: 'popup-template.html', title: 'Enter Wi-Fi Password', subTitle: 'Please use normal things', scope: $scope, buttons: [ { text: 'Cancel', onTap: function(e) { return true; } }, { text: '<b>Save</b>', type: 'button-positive', onTap: function(e) { return $scope.data.wifi; } }, ] }).then(function(res) { console.log('Tapped!', res); }, function(err) { console.log('Err:', err); }, function(popup) { // If you need to access the popup directly, do it in the notify method // This is also where you can programatically close the popup: // popup.close(); }); // A confirm dialog $scope.showConfirm = function() { $ionicPopup.confirm({ title: 'Consume Ice Cream', content: 'Are you sure you want to eat this ice cream?' }).then(function(res) { if(res) { console.log('You are sure'); } else { console.log('You are not sure'); } }); }; // A prompt dialog $scope.showPrompt = function() { $ionicPopup.prompt({ title: 'ID Check', content: 'What is your name?' }).then(function(res) { console.log('Your name is', res); }); }; // A prompt with password input dialog $scope.showPasswordPrompt = function() { $ionicPopup.prompt({ title: 'Password Check', content: 'Enter your secret password', inputType: 'password', inputPlaceholder: 'Your password' }).then(function(res) { console.log('Your password is', res); }); }; // An alert dialog $scope.showAlert = function() { $ionicPopup.alert({ title: 'Don\'t eat that!', content: 'It might taste good' }).then(function(res) { console.log('Thank you for not eating my delicious ice cream cone'); }); }; }; }); ``` */ .factory('$ionicPopup', ['$rootScope', '$q', '$document', '$compile', '$timeout', '$ionicTemplateLoader', function($rootScope, $q, $document, $compile, $timeout, $ionicTemplateLoader) { // TODO: Make this configurable var popupOptions = { // How long to wait after a popup is already shown to show another one stackPushDelay: 50 } // Center the given popup var positionPopup = function(popup) { popup.el.style.marginLeft = (-popup.el.offsetWidth) / 2 + 'px'; popup.el.style.marginTop = (-popup.el.offsetHeight) / 2 + 'px'; }; // Hide the body of the given popup if it's empty var hideBody = function(popup) { var bodyEl = popup.el.querySelector('.popup-body'); if(bodyEl && bodyEl.innerHTML.trim() == '') { bodyEl.style.display = 'none'; } }; var focusLastButton = function(popup) { var buttons, lastButton; buttons = popup.el.querySelectorAll('button'); lastButton = buttons[buttons.length-1]; if(lastButton) { lastButton.focus(); } } // Show a single popup var showSinglePopup = function(popup, opts) { var _this = this; ionic.requestAnimationFrame(function() { hideBody(popup); positionPopup(popup); popup.el.classList.remove('popup-hidden'); popup.el.classList.add('popup-showing'); popup.el.classList.add('active'); focusLastButton(popup); }); }; // Show a popup that was already shown at one point in the past var reshowSinglePopup = function(popup) { ionic.requestAnimationFrame(function() { popup.el.classList.remove('popup-hidden'); popup.el.classList.add('popup-showing'); popup.el.classList.add('active'); focusLastButton(popup); }); }; // Hide a single popup var hideSinglePopup = function(popup) { ionic.requestAnimationFrame(function() { popup.el.classList.remove('active'); popup.el.classList.add('popup-hidden'); }); }; // Remove a popup once and for all var removeSinglePopup = function(popup) { // Force a reflow so the animation will actually run popup.el.offsetWidth; popup.el.classList.remove('active'); popup.el.classList.add('popup-hidden'); $timeout(function() { popup.el.parentNode.removeChild(popup.el); }, 400); }; /** * Popup stack and directive */ var popupStack = []; var backdropEl = null; // Show the backdrop element var showBackdrop = function() { var el = $compile('<ion-popup-backdrop></ion-popup-backdrop>')($rootScope.$new(true)); $document[0].body.appendChild(el[0]); backdropEl = el; $document[0].body.classList.add('popup-open'); }; // Remove the backdrop element var removeBackdrop = function() { backdropEl.remove(); $timeout(function(){ $document[0].body.classList.remove('popup-open'); }, 300); }; // Push the new popup onto the stack with the given data and scope. // If this is the first one in the stack, show the backdrop, otherwise don't. var pushAndShow = function(popup, data) { var lastPopup = popupStack[popupStack.length-1]; popupStack.push(popup); // If this is the first popup, show the backdrop if(popupStack.length == 1) { showBackdrop(); } // If we have an existing popup, add a delay between hiding and showing it if(lastPopup) { hideSinglePopup(lastPopup); $timeout(function() { showSinglePopup(popup); }, popupOptions.stackPushDelay); } else { // Otherwise, immediately show it showSinglePopup(popup); } }; // Pop the current popup off the stack. If there are other popups, show them // otherwise hide the backdrop. var popAndRemove = function(popup) { var lastPopup = popupStack.pop(); var nextPopup = popupStack[popupStack.length-1]; removeSinglePopup(lastPopup); if(nextPopup) { reshowSinglePopup(nextPopup); } else { removeBackdrop(); } }; // Append the element to the screen, create the popup view, // and add the popup to the scope var constructPopupOnScope = function(element, scope) { var popup = { el: element[0], scope: scope, close: function() { popAndRemove(this); } }; scope.popup = popup; return popup; } var buildPopupTemplate = function(opts, content) { return '<ion-popup title="' + opts.title + '" buttons="buttons" on-button-tap="onButtonTap(button, event)" on-close="onClose(button, result, event)">' + (content || '') + '</ion-popup>'; }; // Given an options object, build a new popup window and return a promise // which will contain the constructed popup at a later date. Perhaps at a later // year even. At this point, it's hard to say. var createPopup = function(opts, responseDeferred) { var q = $q.defer(); // Create some defaults var defaults = { title: '', animation: 'fade-in', }; opts = angular.extend(defaults, opts); // Create a new scope, and bind some of the options stuff to that scope var scope = opts.scope && opts.scope.$new() || $rootScope.$new(true); angular.extend(scope, opts); scope.onClose = function(button, result, event) { popAndRemove(scope.popup); responseDeferred.resolve(result); }; // Check if we need to load a template for the content of the popup if(opts.templateUrl) { // Load the template externally $ionicTemplateLoader.load(opts.templateUrl).then(function(templateString) { var popupTemplate = buildPopupTemplate(opts, templateString); var element = $compile(popupTemplate)(scope); $document[0].body.appendChild(element[0]); q.resolve(constructPopupOnScope(element, scope)); }, function(err) { // Error building the popup q.reject(err); }); } else { // Compile the template var popupTemplate = buildPopupTemplate(opts, opts.content); var element = $compile(popupTemplate)(scope); $document[0].body.appendChild(element[0]); q.resolve(constructPopupOnScope(element, scope)); } return q.promise; }; // Public API return { /** * @private */ showPopup: function(data) { var q = $q.defer(); createPopup(data, q).then(function(popup, scope) { // Send the popup back q.notify(popup); // We constructed the popup, push it on the stack and show it pushAndShow(popup, data); }, function(err) { console.error('Unable to load popup:', err); }); return q.promise; }, /** * @ngdoc method * @name $ionicPopup#show * @description show a complex popup. This is the master show function for all popups * @param {data} object The options for showing a popup, of the form: * @returns {Promise} an Angular promise which resolves when the user enters the correct data, and also * sends the constructed popup in the notify function (for programatic closing, as shown in the example above). * ``` * { * content: '', // String. The content of the popup * title: '', // String. The title of the popup * subTitle: '', // String (optional). The sub-title of the popup * templateUrl: '', // URL String (optional). The URL of a template to load as the content (instead of the `content` field) * scope: null, // Scope (optional). A scope to apply to the popup content (for using ng-model in a template, for example) * buttons: * [ * { * text: 'Cancel', * type: 'button-default', * onTap: function(e) { * // e.preventDefault() is the only way to return a false value * e.preventDefault(); * } * }, * { * text: 'OK', * type: 'button-positive', * onTap: function(e) { * // When the user taps one of the buttons, you need to return the * // Data you want back to the popup service which will then resolve * // the promise waiting for a response. * // * // To return "false", call e.preventDefault(); * return scope.data.response; * } * } * ] * * } * ``` */ show: function(data) { return this.showPopup(data); }, /** * @ngdoc method * @name $ionicPopup#alert * @description show a simple popup with one button that the user has to tap * * Show a simple alert dialog * * ```javascript * $ionicPopup.alert({ * title: 'Hey!', * content: 'Don\'t do that!' * }).then(function(res) { * // Accepted * }); * ``` * * @returns {Promise} that resolves when the alert is accepted * @param {data} object The options for showing an alert, of the form: * * ``` * { * content: '', // String. The content of the popup * title: '', // String. The title of the popup * okText: '', // String. The text of the OK button * okType: '', // String (default: button-positive). The type of the OK button * } * ``` */ alert: function(opts) { return this.showPopup({ content: opts.content || '', title: opts.title || '', buttons: [ { text: opts.okText || 'OK', type: opts.okType || 'button-positive', onTap: function(e) { return true; } } ] }); }, /** * @ngdoc method * @name $ionicPopup#confirm * @description * Show a simple confirm popup with a cancel and accept button: * * ```javascript * $ionicPopup.confirm({ * title: 'Consume Ice Cream', * content: 'Are you sure you want to eat this ice cream?' * }).then(function(res) { * if(res) { * console.log('You are sure'); * } else { * console.log('You are not sure'); * } * }); * ``` * * @returns {Promise} that resolves with the chosen option * @param {data} object The options for showing a confirm dialog, of the form: * * ``` * { * content: '', // String. The content of the popup * title: '', // String. The title of the popup * cancelText: '', // String. The text of the Cancel button * cancelType: '', // String (default: button-default). The type of the kCancel button * okText: '', // String. The text of the OK button * okType: '', // String (default: button-positive). The type of the OK button * } * ``` */ confirm: function(opts) { return this.showPopup({ content: opts.content || '', title: opts.title || '', buttons: [ { text: opts.cancelText || 'Cancel' , type: opts.cancelType || 'button-default', onTap: function(e) { e.preventDefault(); } }, { text: opts.okText || 'OK', type: opts.okType || 'button-positive', onTap: function(e) { return true; } } ] }); }, /** * @ngdoc method * @name $ionicPopup#prompt * @description show a simple prompt dialog. * * ```javascript * $ionicPopup.prompt({ * title: 'Password Check', * content: 'Enter your secret password', * inputType: 'password', * inputPlaceholder: 'Your password' * }).then(function(res) { * console.log('Your password is', res); * }); * ``` * * @returns {Promise} that resolves with the entered data * @param {data} object The options for showing a prompt dialog, of the form: * * ``` * { * content: // String. The content of the popup * title: // String. The title of the popup * subTitle: // String. The sub title of the popup * inputType: // String (default: "text"). The type of input to use * inputPlaceholder: // String (default: ""). A placeholder to use for the input. * cancelText: // String. The text of the Cancel button * cancelType: // String (default: button-default). The type of the kCancel button * okText: // String. The text of the OK button * okType: // String (default: button-positive). The type of the OK button * } * ``` */ prompt: function(opts) { var scope = $rootScope.$new(true); scope.data = {}; return this.showPopup({ content: opts.content || '<input ng-model="data.response" type="' + (opts.inputType || 'text') + '" placeholder="' + (opts.inputPlaceholder || '') + '">', title: opts.title || '', subTitle: opts.subTitle || '', scope: scope, buttons: [ { text: opts.cancelText || 'Cancel', type: opts.cancelType|| 'button-default', onTap: function(e) { e.preventDefault(); } }, { text: opts.okText || 'OK', type: opts.okType || 'button-positive', onTap: function(e) { return scope.data.response; } } ] }); } }; }]); })(ionic); angular.module('ionic.service.templateLoad', []) /** * @private */ .factory('$ionicTemplateLoader', ['$q', '$http', '$templateCache', function($q, $http, $templateCache) { return { load: function(url) { return $http.get(url, {cache: $templateCache}) .then(function(response) { return response.data && response.data.trim(); }); } }; }]); angular.module('ionic.service.view', ['ui.router', 'ionic.service.platform']) /** * @private * TODO document */ .run(['$rootScope', '$state', '$location', '$document', '$animate', '$ionicPlatform', function( $rootScope, $state, $location, $document, $animate, $ionicPlatform) { // init the variables that keep track of the view history $rootScope.$viewHistory = { histories: { root: { historyId: 'root', parentHistoryId: null, stack: [], cursor: -1 } }, views: {}, backView: null, forwardView: null, currentView: null, disabledRegistrableTagNames: [] }; $rootScope.$on('viewState.changeHistory', function(e, data) { if(!data) return; var hist = (data.historyId ? $rootScope.$viewHistory.histories[ data.historyId ] : null ); if(hist && hist.cursor > -1 && hist.cursor < hist.stack.length) { // the history they're going to already exists // go to it's last view in its stack var view = hist.stack[ hist.cursor ]; return view.go(data); } // this history does not have a URL, but it does have a uiSref // figure out its URL from the uiSref if(!data.url && data.uiSref) { data.url = $state.href(data.uiSref); } if(data.url) { // don't let it start with a #, messes with $location.url() if(data.url.indexOf('#') === 0) { data.url = data.url.replace('#', ''); } if(data.url !== $location.url()) { // we've got a good URL, ready GO! $location.url(data.url); } } }); // Set the document title when a new view is shown $rootScope.$on('viewState.viewEnter', function(e, data) { if(data && data.title) { $document[0].title = data.title; } }); // Triggered when devices with a hardware back button (Android) is clicked by the user // This is a Cordova/Phonegap platform specifc method function onHardwareBackButton(e) { if($rootScope.$viewHistory.backView) { // there is a back view, go to it $rootScope.$viewHistory.backView.go(); } else { // there is no back view, so close the app instead ionic.Platform.exitApp(); } e.preventDefault(); return false; } $ionicPlatform.registerBackButtonAction(onHardwareBackButton, 100); }]) .factory('$ionicViewService', ['$rootScope', '$state', '$location', '$window', '$injector', function( $rootScope, $state, $location, $window, $injector) { var $animate = $injector.has('$animate') ? $injector.get('$animate') : false; var View = function(){}; View.prototype.initialize = function(data) { if(data) { for(var name in data) this[name] = data[name]; return this; } return null; }; View.prototype.go = function() { if(this.stateName) { return $state.go(this.stateName, this.stateParams); } if(this.url && this.url !== $location.url()) { if($rootScope.$viewHistory.backView === this) { return $window.history.go(-1); } else if($rootScope.$viewHistory.forwardView === this) { return $window.history.go(1); } $location.url(this.url); return; } return null; }; View.prototype.destroy = function() { if(this.scope) { this.scope.$destroy && this.scope.$destroy(); this.scope = null; } }; function createViewId(stateId) { return ionic.Utils.nextUid(); } return { register: function(containerScope, element) { var viewHistory = $rootScope.$viewHistory, currentStateId = this.getCurrentStateId(), hist = this._getHistory(containerScope), currentView = viewHistory.currentView, backView = viewHistory.backView, forwardView = viewHistory.forwardView, nextViewOptions = this.nextViewOptions(), rsp = { viewId: null, navAction: null, navDirection: null, historyId: hist.historyId }; if(element && !this.isTagNameRegistrable(element)) { // first check to see if this element can even be registered as a view. // Certain tags are only containers for views, but are not views themselves. // For example, the <ion-tabs> directive contains a <ion-tab> and the <ion-tab> is the // view, but the <ion-tabs> directive itself should not be registered as a view. rsp.navAction = 'disabledByTagName'; return rsp; } if(currentView && currentView.stateId === currentStateId && currentView.historyId === hist.historyId) { // do nothing if its the same stateId in the same history rsp.navAction = 'noChange'; return rsp; } if(viewHistory.forcedNav) { // we've previously set exactly what to do ionic.Utils.extend(rsp, viewHistory.forcedNav); $rootScope.$viewHistory.forcedNav = null; } else if(backView && backView.stateId === currentStateId) { // they went back one, set the old current view as a forward view rsp.viewId = backView.viewId; rsp.navAction = 'moveBack'; rsp.viewId = backView.viewId; if(backView.historyId === currentView.historyId) { // went back in the same history rsp.navDirection = 'back'; } } else if(forwardView && forwardView.stateId === currentStateId) { // they went to the forward one, set the forward view to no longer a forward view rsp.viewId = forwardView.viewId; rsp.navAction = 'moveForward'; if(forwardView.historyId === currentView.historyId) { rsp.navDirection = 'forward'; } var parentHistory = this._getParentHistoryObj(containerScope); if(forwardView.historyId && parentHistory.scope) { // if a history has already been created by the forward view then make sure it stays the same parentHistory.scope.$historyId = forwardView.historyId; rsp.historyId = forwardView.historyId; } } else if(currentView && currentView.historyId !== hist.historyId && hist.cursor > -1 && hist.stack.length > 0 && hist.cursor < hist.stack.length && hist.stack[hist.cursor].stateId === currentStateId) { // they just changed to a different history and the history already has views in it rsp.viewId = hist.stack[hist.cursor].viewId; rsp.navAction = 'moveBack'; } else { // set a new unique viewId rsp.viewId = createViewId(currentStateId); if(currentView) { // set the forward view if there is a current view (ie: if its not the first view) currentView.forwardViewId = rsp.viewId; // its only moving forward if its in the same history if(hist.historyId === currentView.historyId) { rsp.navDirection = 'forward'; } rsp.navAction = 'newView'; // check if there is a new forward view if(forwardView && currentView.stateId !== forwardView.stateId) { // they navigated to a new view but the stack already has a forward view // since its a new view remove any forwards that existed var forwardsHistory = this._getHistoryById(forwardView.historyId); if(forwardsHistory) { // the forward has a history for(var x=forwardsHistory.stack.length - 1; x >= forwardView.index; x--) { // starting from the end destroy all forwards in this history from this point forwardsHistory.stack[x].destroy(); forwardsHistory.stack.splice(x); } } } } else { // there's no current view, so this must be the initial view rsp.navAction = 'initialView'; } // add the new view viewHistory.views[rsp.viewId] = this.createView({ viewId: rsp.viewId, index: hist.stack.length, historyId: hist.historyId, backViewId: (currentView && currentView.viewId ? currentView.viewId : null), forwardViewId: null, stateId: currentStateId, stateName: this.getCurrentStateName(), stateParams: this.getCurrentStateParams(), url: $location.url(), }); if (rsp.navAction == 'moveBack') { //moveBack(from, to); $rootScope.$emit('$viewHistory.viewBack', currentView.viewId, rsp.viewId); } // add the new view to this history's stack hist.stack.push(viewHistory.views[rsp.viewId]); } if(nextViewOptions) { if(nextViewOptions.disableAnimate) rsp.navDirection = null; if(nextViewOptions.disableBack) viewHistory.views[rsp.viewId].backViewId = null; this.nextViewOptions(null); } this.setNavViews(rsp.viewId); hist.cursor = viewHistory.currentView.index; return rsp; }, setNavViews: function(viewId) { var viewHistory = $rootScope.$viewHistory; viewHistory.currentView = this._getViewById(viewId); viewHistory.backView = this._getBackView(viewHistory.currentView); viewHistory.forwardView = this._getForwardView(viewHistory.currentView); $rootScope.$broadcast('$viewHistory.historyChange', { showBack: (viewHistory.backView && viewHistory.backView.historyId === viewHistory.currentView.historyId) }); }, registerHistory: function(scope) { scope.$historyId = ionic.Utils.nextUid(); }, createView: function(data) { var newView = new View(); return newView.initialize(data); }, getCurrentView: function() { return $rootScope.$viewHistory.currentView; }, getBackView: function() { return $rootScope.$viewHistory.backView; }, getForwardView: function() { return $rootScope.$viewHistory.forwardView; }, getNavDirection: function() { return $rootScope.$viewHistory.navDirection; }, getCurrentStateName: function() { return ($state && $state.current ? $state.current.name : null); }, isCurrentStateNavView: function(navView) { return ($state && $state.current && $state.current.views && $state.current.views[navView] ? true : false); }, getCurrentStateParams: function() { var rtn; if ($state && $state.params) { for(var key in $state.params) { if($state.params.hasOwnProperty(key)) { rtn = rtn || {}; rtn[key] = $state.params[key]; } } } return rtn; }, getCurrentStateId: function() { var id; if($state && $state.current && $state.current.name) { id = $state.current.name; if($state.params) { for(var key in $state.params) { if($state.params.hasOwnProperty(key) && $state.params[key]) { id += "_" + key + "=" + $state.params[key]; } } } return id; } // if something goes wrong make sure its got a unique stateId return ionic.Utils.nextUid(); }, goToHistoryRoot: function(historyId) { if(historyId) { var hist = $rootScope.$viewHistory.histories[ historyId ]; if(hist && hist.stack.length) { if($rootScope.$viewHistory.currentView && $rootScope.$viewHistory.currentView.viewId === hist.stack[0].viewId) { return; } $rootScope.$viewHistory.forcedNav = { viewId: hist.stack[0].viewId, navAction: 'moveBack', navDirection: 'back' }; hist.stack[0].go(); } } }, _getViewById: function(viewId) { return (viewId ? $rootScope.$viewHistory.views[ viewId ] : null ); }, _getBackView: function(view) { return (view ? this._getViewById(view.backViewId) : null ); }, _getForwardView: function(view) { return (view ? this._getViewById(view.forwardViewId) : null ); }, _getHistoryById: function(historyId) { return (historyId ? $rootScope.$viewHistory.histories[ historyId ] : null ); }, _getHistory: function(scope) { var histObj = this._getParentHistoryObj(scope); if( !$rootScope.$viewHistory.histories[ histObj.historyId ] ) { // this history object exists in parent scope, but doesn't // exist in the history data yet $rootScope.$viewHistory.histories[ histObj.historyId ] = { historyId: histObj.historyId, parentHistoryId: this._getParentHistoryObj(histObj.scope.$parent).historyId, stack: [], cursor: -1 }; } return $rootScope.$viewHistory.histories[ histObj.historyId ]; }, _getParentHistoryObj: function(scope) { var parentScope = scope; while(parentScope) { if(parentScope.hasOwnProperty('$historyId')) { // this parent scope has a historyId return { historyId: parentScope.$historyId, scope: parentScope }; } // nothing found keep climbing up parentScope = parentScope.$parent; } // no history for for the parent, use the root return { historyId: 'root', scope: $rootScope }; }, nextViewOptions: function(opts) { if(arguments.length) { this._nextOpts = opts; } else { return this._nextOpts; } }, getRenderer: function(navViewElement, navViewAttrs, navViewScope) { var service = this; var registerData; var doAnimation; // climb up the DOM and see which animation classname to use, if any var animationClass = angular.isDefined(navViewScope.$nextAnimation) ? navViewScope.$nextAnimation : getParentAnimationClass(navViewElement[0]); navViewScope.$nextAnimation = undefined; function getParentAnimationClass(el) { var className = ''; while(!className && el) { className = el.getAttribute('animation'); el = el.parentElement; } return className; } function setAnimationClass() { // add the animation CSS class we're gonna use to transition between views if (animationClass) { navViewElement[0].classList.add(animationClass); } if(registerData.navDirection === 'back') { // animate like we're moving backward navViewElement[0].classList.add('reverse'); } else { // defaults to animate forward // make sure the reverse class isn't already added navViewElement[0].classList.remove('reverse'); } } return function(shouldAnimate) { return { enter: function(element) { if(doAnimation && shouldAnimate) { // enter with an animation setAnimationClass(); element.addClass('ng-enter'); document.body.classList.add('disable-pointer-events'); $animate.enter(element, navViewElement, null, function() { document.body.classList.remove('disable-pointer-events'); if (animationClass) { navViewElement[0].classList.remove(animationClass); } }); return; } // no animation navViewElement.append(element); }, leave: function() { var element = navViewElement.contents(); if(doAnimation && shouldAnimate) { // leave with an animation setAnimationClass(); $animate.leave(element, function() { element.remove(); }); return; } // no animation element.remove(); }, register: function(element) { // register a new view registerData = service.register(navViewScope, element); doAnimation = (animationClass !== null && registerData.navDirection !== null); return registerData; } }; }; }, disableRegisterByTagName: function(tagName) { // not every element should animate betwee transitions // For example, the <ion-tabs> directive should not animate when it enters, // but instead the <ion-tabs> directve would just show, and its children // <ion-tab> directives would do the animating, but <ion-tabs> itself is not a view $rootScope.$viewHistory.disabledRegistrableTagNames.push(tagName.toUpperCase()); }, isTagNameRegistrable: function(element) { // check if this element has a tagName (at its root, not recursively) // that shouldn't be animated, like <ion-tabs> or <ion-side-menu> var x, y, disabledTags = $rootScope.$viewHistory.disabledRegistrableTagNames; for(x=0; x<element.length; x++) { if(element[x].nodeType !== 1) continue; for(y=0; y<disabledTags.length; y++) { if(element[x].tagName === disabledTags[y]) { return false; } } } return true; }, clearHistory: function() { var histories = $rootScope.$viewHistory.histories, currentView = $rootScope.$viewHistory.currentView; for(var historyId in histories) { if(histories[historyId].stack) { histories[historyId].stack = []; histories[historyId].cursor = -1; } if(currentView.historyId === historyId) { currentView.backViewId = null; currentView.forwardViewId = null; histories[historyId].stack.push(currentView); } else if(histories[historyId].destroy) { histories[historyId].destroy(); } } for(var viewId in $rootScope.$viewHistory.views) { if(viewId !== currentView.viewId) { delete $rootScope.$viewHistory.views[viewId]; } } this.setNavViews(currentView.viewId); } }; }]); angular.module('ionic.decorator.location', []) /** * @private */ .config(['$provide', function($provide) { function $LocationDecorator($location, $timeout) { $location.__hash = $location.hash; //Fix: when window.location.hash is set, the scrollable area //found nearest to body's scrollTop is set to scroll to an element //with that ID. $location.hash = function(value) { if (angular.isDefined(value)) { $timeout(function() { var scroll = document.querySelector('.scroll-content'); if (scroll) scroll.scrollTop = 0; }, 0, false); } return $location.__hash(value); }; return $location; } $provide.decorator('$location', ['$delegate', '$timeout', $LocationDecorator]); }]); (function() { 'use strict'; angular.module('ionic.ui.actionSheet', []) /* * We don't document the ionActionSheet directive, we instead document * the $ionicActionSheet service */ .directive('ionActionSheet', ['$document', function($document) { return { restrict: 'E', scope: true, replace: true, link: function($scope, $element){ var keyUp = function(e) { if(e.which == 27) { $scope.cancel(); $scope.$apply(); } }; var backdropClick = function(e) { if(e.target == $element[0]) { $scope.cancel(); $scope.$apply(); } }; $scope.$on('$destroy', function() { $element.remove(); $document.unbind('keyup', keyUp); }); $document.bind('keyup', keyUp); $element.bind('click', backdropClick); }, template: '<div class="action-sheet-backdrop">' + '<div class="action-sheet-wrapper">' + '<div class="action-sheet">' + '<div class="action-sheet-group">' + '<div class="action-sheet-title" ng-if="titleText">{{titleText}}</div>' + '<button class="button" ng-click="buttonClicked($index)" ng-repeat="button in buttons">{{button.text}}</button>' + '</div>' + '<div class="action-sheet-group" ng-if="destructiveText">' + '<button class="button destructive" ng-click="destructiveButtonClicked()">{{destructiveText}}</button>' + '</div>' + '<div class="action-sheet-group" ng-if="cancelText">' + '<button class="button" ng-click="cancel()">{{cancelText}}</button>' + '</div>' + '</div>' + '</div>' + '</div>' }; }]); })(); (function(ionic) { 'use strict'; angular.module('ionic.ui.header', ['ngAnimate', 'ngSanitize']) .directive('ionNavBar', tapScrollToTopDirective()) .directive('ionHeaderBar', tapScrollToTopDirective()) /** * @ngdoc directive * @name ionHeaderBar * @module ionic * @restrict E * * @description * Adds a fixed header bar above some content. * * @param {string=} align-title Where to align the title. * Avaialble: 'left', 'right', or 'center'. Defaults to 'center'. * * @usage * ```html * <ion-header-bar align-title="left" class="bar-positive"> * <div class="buttons"> * <button class="button" ng-click="doSomething()">Left Button</button> * </div> * <h1 class="title">Title!</h1> * <div class="buttons"> * <button class="button">Right Button</button> * </div> * </ion-header-bar> * <ion-content> * Some content! * </ion-content> * ``` */ .directive('ionHeaderBar', barDirective(true)) /** * @ngdoc directive * @name ionFooterBar * @module ionic * @restrict E * * @description * Adds a fixed footer bar below some content. * * @param {string=} align-title Where to align the title. * Avaialble: 'left', 'right', or 'center'. Defaults to 'center'. * * @usage * ```html * <ion-content> * Some content! * </ion-content> * <ion-footer-bar align-title="left" class="bar-assertive"> * <div class="buttons"> * <button class="button">Left Button</button> * </div> * <h1 class="title">Title!</h1> * <div class="buttons" ng-click="doSomething()"> * <button class="button">Right Button</button> * </div> * </ion-footer-bar> * ``` */ .directive('ionFooterBar', barDirective(false)); function tapScrollToTopDirective() { return ['$ionicScrollDelegate', function($ionicScrollDelegate) { return { restrict: 'E', link: function($scope, $element, $attr) { ionic.on('tap', onTap, $element[0]); $scope.$on('$destroy', function() { ionic.off('tap', onTap, $element[0]); }); function onTap(e) { if (ionic.DomUtil.getParentOrSelfWithClass(e.target, 'button', 4)) { return; } var touch = e.gesture && e.gesture.touches[0] || e.detail.touches[0]; var bounds = $element[0].getBoundingClientRect(); if (ionic.DomUtil.rectContains( touch.pageX, touch.pageY, bounds.left, bounds.top - 20, bounds.left + bounds.width, bounds.top + bounds.height )) { $ionicScrollDelegate.scrollTop(true); } } } }; }]; } function barDirective(isHeader) { return [function() { return { restrict: 'E', compile: function($element, $attr) { $element.addClass(isHeader ? 'bar bar-header' : 'bar bar-footer'); return { pre: prelink }; function prelink($scope, $element, $attr) { var hb = new ionic.views.HeaderBar({ el: $element[0], alignTitle: $attr.alignTitle || 'center' }); var el = $element[0]; //just incase header is on rootscope var parentScope = $scope.$parent || $scope; if (isHeader) { $scope.$watch(function() { return el.className; }, function(value) { var isSubheader = value.indexOf('bar-subheader') !== -1; parentScope.$hasHeader = !isSubheader; parentScope.$hasSubheader = isSubheader; }); $scope.$on('$destroy', function() { parentScope.$hasHeader = parentScope.$hasSubheader = null; }); } else { $scope.$watch(function() { return el.className; }, function(value) { var isSubfooter = value.indexOf('bar-subfooter') !== -1; parentScope.$hasFooter = !isSubfooter; parentScope.$hasSubfooter = isSubfooter; }); $scope.$on('$destroy', function() { parentScope.$hasFooter = parentScope.$hasSubfooter = null; }); $scope.$watch('$hasTabs', function(val) { $element.toggleClass('has-tabs', !!val); }); } } } }; }]; } })(ionic); (function() { 'use strict'; angular.module('ionic.ui.checkbox', []) /** * @ngdoc directive * @name ionCheckbox * @module ionic * @restrict E * @codepen hqcju * @description * The checkbox is no different than the HTML checkbox input, except it's styled differently. * * The checkbox behaves like any [AngularJS checkbox](http://docs.angularjs.org/api/ng/input/input[checkbox]). * * @usage * ```html * <ion-checkbox ng-model="isChecked">Checkbox Label</ion-checkbox> * ``` */ .directive('ionCheckbox', function() { return { restrict: 'E', replace: true, require: '?ngModel', scope: { ngModel: '=?', ngValue: '=?', ngChecked: '=?', ngDisabled: '=?', ngChange: '&' }, transclude: true, template: '<label class="item item-checkbox">' + '<div class="checkbox">' + '<input type="checkbox" ng-model="ngModel" ng-value="ngValue" ng-change="ngChange()">' + '</div>' + '<div class="item-content disable-pointer-events" ng-transclude></div>' + '</label>', compile: function(element, attr) { var input = element.find('input'); if(attr.name) input.attr('name', attr.name); if(attr.ngChecked) input.attr('ng-checked', attr.ngChecked); if(attr.ngDisabled) input.attr('ng-disabled', attr.ngDisabled); if(attr.ngTrueValue) input.attr('ng-true-value', attr.ngTrueValue); if(attr.ngFalseValue) input.attr('ng-false-value', attr.ngFalseValue); } }; }); })(); (function() { 'use strict'; angular.module('ionic.ui.content', ['ionic.ui.scroll']) /** * Panel is a simple 100% width and height, fixed panel. It's meant for content to be * added to it, or animated around. */ /** * @ngdoc directive * @name ionPane * @module ionic * @restrict E * * @description A simple container that fits content, with no side effects. Adds the 'pane' class to the element. */ .directive('ionPane', function() { return { restrict: 'E', link: function(scope, element, attr) { element.addClass('pane'); } }; }) /** * @ngdoc directive * @name ionContent * @module ionic * @delegate ionic.service:$ionicScrollDelegate * @restrict E * * @description * The ionContent directive provides an easy to use content area that can be configured * to use Ionic's custom Scroll View, or the built in overflow scrolling of the browser. * * While we recommend using the custom Scroll features in Ionic in most cases, sometimes * (for performance reasons) only the browser's native overflow scrolling will suffice, * and so we've made it easy to toggle between the Ionic scroll implementation and * overflow scrolling. * * You can implement pull-to-refresh with the {@link ionic.directive:ionRefresher} * directive, and infinite scrolling with the {@link ionic.directive:ionInfiniteScroll} * directive. * * @param {string=} delegate-handle The handle used to identify this scrollView * with {@link ionic.service:$ionicScrollDelegate}. * @param {boolean=} padding Whether to add padding to the content. * of the content. Defaults to true on iOS, false on Android. * @param {boolean=} scroll Whether to allow scrolling of content. Defaults to true. * @param {boolean=} overflow-scroll Whether to use overflow-scrolling instead of * Ionic scroll. * @param {boolean=} has-bouncing Whether to allow scrolling to bounce past the edges * of the content. Defaults to true on iOS, false on Android. * @param {expression=} on-scroll Expression to evaluate when the content is scrolled. * @param {expression=} on-scroll-complete Expression to evaluate when a scroll action completes. */ .directive('ionContent', [ '$timeout', '$controller', '$ionicBind', function($timeout, $controller, $ionicBind) { return { restrict: 'E', require: '^?ionNavView', scope: true, compile: function(element, attr) { var innerElement; element.addClass('scroll-content'); if (attr.scroll != 'false') { //We cannot use normal transclude here because it breaks element.data() //inheritance on compile innerElement = angular.element('<div class="scroll"></div>'); innerElement.append(element.contents()); element.append(innerElement); } return { pre: prelink }; function prelink($scope, $element, $attr, navViewCtrl) { var parentScope = $scope.$parent; $scope.$watch(function() { return (parentScope.$hasHeader ? ' has-header' : '') + (parentScope.$hasSubheader ? ' has-subheader' : '') + (parentScope.$hasFooter ? ' has-footer' : '') + (parentScope.$hasSubfooter ? ' has-subfooter' : '') + (parentScope.$hasTabs ? ' has-tabs' : '') + (parentScope.$hasTabsTop ? ' has-tabs-top' : ''); }, function(className, oldClassName) { $element.removeClass(oldClassName); $element.addClass(className); }); //Only this ionContent should use these variables from parent scopes $scope.$hasHeader = $scope.$hasSubheader = $scope.$hasFooter = $scope.$hasSubfooter = $scope.$hasTabs = $scope.$hasTabsTop = false; $ionicBind($scope, $attr, { $onScroll: '&onScroll', $onScrollComplete: '&onScrollComplete', hasBouncing: '@', scroll: '@', padding: '@', hasScrollX: '@', hasScrollY: '@', scrollbarX: '@', scrollbarY: '@', startX: '@', startY: '@', scrollEventInterval: '@' }); if (angular.isDefined($attr.padding)) { $scope.$watch($attr.padding, function(newVal) { (innerElement || $element).toggleClass('padding', !!newVal); }); } if ($scope.scroll === "false") { //do nothing } else if(attr.overflowScroll === "true") { $element.addClass('overflow-scroll'); } else { $controller('$ionicScroll', { $scope: $scope, scrollViewOptions: { el: $element[0], delegateHandle: attr.delegateHandle, bouncing: $scope.$eval($scope.hasBouncing), startX: $scope.$eval($scope.startX) || 0, startY: $scope.$eval($scope.startY) || 0, scrollbarX: $scope.$eval($scope.scrollbarX) !== false, scrollbarY: $scope.$eval($scope.scrollbarY) !== false, scrollingX: $scope.$eval($scope.hasScrollX) === true, scrollingY: $scope.$eval($scope.hasScrollY) !== false, scrollEventInterval: parseInt($scope.scrollEventInterval, 10) || 20, scrollingComplete: function() { $scope.$onScrollComplete({ scrollTop: this.__scrollTop, scrollLeft: this.__scrollLeft }); } } }); } } } }; }]) /** * @ngdoc directive * @name ionRefresher * @module ionic * @restrict E * @parent ionic.directive:ionContent, ionic.directive:ionScroll * @description * Allows you to add pull-to-refresh to a scrollView. * * Place it as the first child of your {@link ionic.directive:ionContent} or * {@link ionic.directive:ionScroll} element. * * When refreshing is complete, $broadcast the 'scroll.refreshComplete' event * from your controller. * * @usage * * ```html * <ion-content ng-controller="MyController"> * <ion-refresher * pulling-text="Pull to refresh..." * on-refresh="doRefresh()"> * </ion-refresher> * <ion-list> * <ion-item ng-repeat="item in items"></ion-item> * </ion-list> * </ion-content> * ``` * ```js * angular.module('testApp', ['ionic']) * .controller('MyController', function($scope, $http) { * $scope.items = [1,2,3]; * $scope.doRefresh = function() { * $http.get('/new-items') * .success(function(newItems) { * $scope.items = newItems; * }) * .finally(function() { * // Stop the ion-refresher from spinning * $scope.$broadcast('scroll.refreshComplete'); * }); * }; * }); * ``` * * @param {expression=} on-refresh Called when the user pulls down enough and lets go * of the refresher. * @param {expression=} on-pulling Called when the user starts to pull down * on the refresher. * @param {string=} pulling-icon The icon to display while the user is pulling down. * Default: 'ion-arrow-down-c'. * @param {string=} pulling-text The text to display while the user is pulling down. * @param {string=} refreshing-icon The icon to display after user lets go of the * refresher. * @param {string=} refreshing-text The text to display after the user lets go of * the refresher. * */ .directive('ionRefresher', ['$ionicBind', function($ionicBind) { return { restrict: 'E', replace: true, require: '^$ionicScroll', template: '<div class="scroll-refresher">' + '<div class="ionic-refresher-content">' + '<i class="icon {{pullingIcon}} icon-pulling"></i>' + '<div class="text-pulling" ng-bind-html="pullingText"></div>' + '<i class="icon {{refreshingIcon}} icon-refreshing"></i>' + '<div class="text-refreshing" ng-bind-html="refreshingText"></div>' + '</div>' + '</div>', compile: function($element, $attrs) { if (angular.isUndefined($attrs.pullingIcon)) { $attrs.$set('pullingIcon', 'ion-arrow-down-c'); } if (angular.isUndefined($attrs.refreshingIcon)) { $attrs.$set('refreshingIcon', 'ion-loading-d'); } return function($scope, $element, $attrs, scrollCtrl) { $ionicBind($scope, $attrs, { pullingIcon: '@', pullingText: '@', refreshingIcon: '@', refreshingText: '@', $onRefresh: '&onRefresh', $onPulling: '&onPulling' }); scrollCtrl._setRefresher($scope, $element[0]); $scope.$on('scroll.refreshComplete', function() { $element[0].classList.remove('active'); scrollCtrl.scrollView.finishPullToRefresh(); }); }; } }; }]) /** * @ngdoc directive * @name ionInfiniteScroll * @module ionic * @parent ionic.directive:ionContent, ionic.directive:ionScroll * @restrict E * * @description * The ionInfiniteScroll directive allows you to call a function whenever * the user gets to the bottom of the page or near the bottom of the page. * * The expression you pass in for `on-infinite` is called when the user scrolls * greater than `distance` away from the bottom of the content. * * @param {expression} on-infinite What to call when the scroller reaches the * bottom. * @param {string=} distance The distance from the bottom that the scroll must * reach to trigger the on-infinite expression. Default: 1%. * @param {string=} icon The icon to show while loading. Default: 'ion-loading-d'. * * @usage * ```html * <ion-content ng-controller="MyController"> * <ion-infinite-scroll * on-infinite="loadMore()" * distance="1%"> * </ion-infinite-scroll> * </ion-content> * ``` * ```js * function MyController($scope, $http) { * $scope.items = []; * $scope.loadMore = function() { * $http.get('/more-items').success(function(items) { * useItems(items); * $scope.$broadcast('scroll.infiniteScrollComplete'); * }); * }; * } * ``` * * An easy to way to stop infinite scroll once there is no more data to load * is to use angular's `ng-if` directive: * * ```html * <ion-infinite-scroll * ng-if="moreDataCanBeLoaded()" * icon="ion-loading-c" * on-infinite="loadMoreData()"> * </ion-infinite-scroll> * ``` */ .directive('ionInfiniteScroll', ['$timeout', function($timeout) { return { restrict: 'E', require: ['^$ionicScroll', 'ionInfiniteScroll'], template: '<div class="scroll-infinite">' + '<div class="scroll-infinite-content">' + '<i class="icon {{icon()}} icon-refreshing"></i>' + '</div>' + '</div>', scope: true, controller: ['$scope', '$attrs', function($scope, $attrs) { this.isLoading = false; this.scrollView = null; //given by link function this.getMaxScroll = function() { var dist = $attrs.distance || '1%'; return dist.indexOf('%') > -1 ? this.scrollView.getScrollMax().top * (1 - parseInt(dist,10) / 100) : this.scrollView.getScrollMax().top - parseInt(dist, 10); }; }], link: function($scope, $element, $attrs, ctrls) { var scrollCtrl = ctrls[0]; var infiniteScrollCtrl = ctrls[1]; var scrollView = infiniteScrollCtrl.scrollView = scrollCtrl.scrollView; $scope.icon = function() { return angular.isDefined($attrs.icon) ? $attrs.icon : 'ion-loading-d'; }; $scope.$on('scroll.infiniteScrollComplete', function() { $element[0].classList.remove('active'); $timeout(function() { scrollView.resize(); }, 0, false); infiniteScrollCtrl.isLoading = false; }); scrollCtrl.$element.on('scroll', ionic.animationFrameThrottle(function() { if (!infiniteScrollCtrl.isLoading && scrollView.getValues().top >= infiniteScrollCtrl.getMaxScroll()) { $element[0].classList.add('active'); infiniteScrollCtrl.isLoading = true; $scope.$parent.$apply($attrs.onInfinite || ''); } })); } }; }]); })(); (function() { 'use strict'; angular.module('ionic.ui.list', ['ngAnimate']) /** * @ngdoc directive * @name ionItem * @module ionic * @restrict E * @parent ionic.directive:ionList * * @description * The ionItem directive creates a list-item that can easily be swiped, * deleted, reordered, edited, and more. * * @usage * ```html * <ion-list> * <ion-item ng-repeat="item in items" * item="item" * can-swipe="true" * option-buttons="itemButtons"> * </ion-item> * </ion-list> * ``` * * @param {string=} item-type The type of this item. See [the list CSS page](/docs/components/#list) for available item types. * @param {expression=} option-buttons The option buttons to show when swiping the item to the left (if swiping is enabled). Defaults to the ionList parent's option-buttons setting. The format of each button object is: * ```js * $scope.itemButtons = [ * { * text: 'Edit', * type: 'Button', * onTap: function(item) { * alert('Edit Item: ' + item.id); * } * }, * { * text: 'Share', * type: 'Button', * onTap: function(item) { * alert('Share Item: ' + item.id); * } * } * ]; * ``` * * @param {expression=} item The 'object' representing this item, to be passed in to swipe, delete, and reorder callbacks. * @param {boolean=} can-swipe Whether or not this item can be swiped. Defaults ot the ionList parent's can-swipe setting. * @param {boolean=} can-delete Whether or not this item can be deleted. Defaults to the ionList parent's can-delete setting. * @param {boolean=} can-reorder Whether or not this item can be reordered. Defaults to the ionList parent's can-reorder setting. * @param {expression=} on-delete The expression to call when this item is deleted. * @param {string=} delete-icon The class name of the icon to show on this item while deleting. Defaults to the ionList parent's delete-icon setting. * @param {string=} reorder-icon The class name of the icon to show on this item while reordering. Defaults to the ionList parent's reorder-icon setting. */ .directive('ionItem', ['$timeout', '$parse', function($timeout, $parse) { return { restrict: 'E', require: '?^ionList', replace: true, transclude: true, scope: { item: '=', itemType: '@', canDelete: '@', canReorder: '@', canSwipe: '@', onDelete: '&', optionButtons: '&', deleteIcon: '@', reorderIcon: '@' }, template: '<div class="item item-complex">\ <div class="item-left-edit item-delete" ng-if="deleteClick !== undefined">\ <button class="button button-icon icon" ng-class="deleteIconClass" ng-click="deleteClick()" ion-stop-event="click"></button>\ </div>\ <a class="item-content" ng-href="{{ href }}" ng-transclude></a>\ <div class="item-right-edit item-reorder" ng-if="reorderIconClass !== undefined">\ <button data-ionic-action="reorder" data-prevent-scroll="true" class="button button-icon icon" ng-class="reorderIconClass"></button>\ </div>\ <div class="item-options" ng-if="itemOptionButtons">\ <button ng-click="b.onTap(item, b)" ion-stop-event="click" class="button" ng-class="b.type" ng-repeat="b in itemOptionButtons" ng-bind="b.text"></button>\ </div>\ </div>', link: function($scope, $element, $attr, list) { if(!list) return; var $parentScope = list.scope; var $parentAttrs = list.attrs; $attr.$observe('href', function(value) { if(value) $scope.href = value.trim(); }); if(!$scope.itemType) { $scope.itemType = $parentScope.itemType; } // Set this item's class, first from the item directive attr, and then the list attr if item not set $element.addClass($scope.itemType || $parentScope.itemType); $scope.itemClass = $scope.itemType; // Decide if this item can do stuff, and follow a certain priority // depending on where the value comes from if(($attr.canDelete ? $scope.canDelete : $parentScope.canDelete) !== "false") { if($attr.onDelete || $parentAttrs.onDelete) { // only assign this method when we need to // and use its existence to decide if the delete should show or not $scope.deleteClick = function() { if($attr.onDelete) { // this item has an on-delete attribute $scope.onDelete({ item: $scope.item, index: $scope.$parent.$index }); } else if($parentAttrs.onDelete) { // run the parent list's onDelete method // if it doesn't exist nothing will happen $parentScope.onDelete({ item: $scope.item, index: $scope.$parent.$index }); } }; // Set which icons to use for deleting $scope.deleteIconClass = $scope.deleteIcon || $parentScope.deleteIcon || 'ion-minus-circled'; $element.addClass('item-left-editable'); } } // set the reorder Icon Class only if the item or list set can-reorder="true" if(($attr.canReorder ? $scope.canReorder : $parentScope.canReorder) === "true") { $scope.reorderIconClass = $scope.reorderIcon || $parentScope.reorderIcon || 'ion-navicon'; $element.addClass('item-right-editable'); } // Set the option buttons which can be revealed by swiping to the left // if canSwipe was set to false don't even bother if(($attr.canSwipe ? $scope.canSwipe : $parentScope.canSwipe) !== "false") { $scope.itemOptionButtons = $scope.optionButtons(); if(typeof $scope.itemOptionButtons === "undefined") { $scope.itemOptionButtons = $parentScope.optionButtons(); } $element.addClass('item-swipeable'); } } }; }]) /** * @ngdoc directive * @name ionList * @module ionic * @restrict E * @codepen jsHjf * * @description * The List is a widely used interface element in almost any mobile app, * and can include content ranging from basic text all the way to buttons, * toggles, icons, and thumbnails. * * Both the list, which contains items, and the list items themselves can be * any HTML element. The containing element requires the list class and each * list item requires the item class. Ionic also comes with pre-built Angular * directives to make it easier to create a complex list. * * Using the ionList and {@link ionic.directive:ionItem} directives * make it easy to support various interaction modes such as swipe to edit, * drag to reorder, and removing items. * * However, if you need just a simple list you won't be required to use the * directives, but rather just use the classnames. * This demo is a simple list without using the directives. * * See the {@link ionic.directive:ionItem} documentation for more information on list items. * * @usage * ```html * <ion-list> * <ion-item ng-repeat="item in items" item="item"> * </ion-item> * </ion-list> * ``` * * @param {string=} item-type The type of this item. See [the list CSS page](/docs/components/#list) for available item types. * @param {expression=} on-delete Called when a child item is deleted. * @param {expression=} on-reorder Called when a child item is reordered. * @param {boolean=} show-delete Whether to show each item delete button. * @param {boolean=} show-reoder Whether to show each item's reorder button. * @param {boolean=} can-delete Whether child items are able to be deleted or not. * @param {boolean=} can-reorder Whether child items can be reordered or not. * @param {boolean=} can-swipe Whether child items can be swiped to reveal option buttons. * @param {string=} delete-icon The class name of the icon to show on child items while deleting. Defaults to `ion-minus-circled`. * @param {string=} reorder-icon The class name to show on child items while reordering. Defaults to `ion-navicon`. * @param {string=} animation An animation class to apply to the list for animating when child items enter or exit the list. See [the animation CSS page](/docs/components/#animations) for available animation classes. */ .directive('ionList', ['$timeout', function($timeout) { return { restrict: 'E', replace: true, transclude: true, require: '^?$ionicScroll', scope: { itemType: '@', canDelete: '@', canReorder: '@', canSwipe: '@', showDelete: '=', showReorder: '=', onDelete: '&', onReorder: '&', optionButtons: '&', deleteIcon: '@', reorderIcon: '@' }, template: '<div class="list" ng-class="{\'list-left-editing\': showDelete, \'list-right-editing\': showReorder}" ng-transclude></div>', controller: ['$scope', '$attrs', function($scope, $attrs) { this.scope = $scope; this.attrs = $attrs; }], link: function($scope, $element, $attr, ionicScrollCtrl) { $scope.listView = new ionic.views.ListView({ canSwipe: $scope.canSwipe !== "false" && !!$scope.optionButtons(), el: $element[0], listEl: $element[0].children[0], scrollEl: ionicScrollCtrl && ionicScrollCtrl.element, scrollView: ionicScrollCtrl && ionicScrollCtrl.scrollView, onReorder: function(el, oldIndex, newIndex) { $scope.$apply(function() { $scope.onReorder({el: el, start: oldIndex, end: newIndex}); }); } }); if($attr.animation) { $element[0].classList.add($attr.animation); } var destroyShowReorderWatch = $scope.$watch('showReorder', function(val) { if(val) { $element[0].classList.add('item-options-hide'); $scope.listView && $scope.listView.clearDragEffects(); } else if(val === false) { // false checking is because it could be undefined // if its undefined then we don't care to do anything $timeout(function(){ $element[0].classList.remove('item-options-hide'); }, 250); } }); $scope.$on('$destroy', function () { destroyShowReorderWatch(); }); } }; }]); })(); (function() { 'use strict'; angular.module('ionic.ui.loading', []) /** * @private * $ionicLoading service is documented */ .directive('ionLoading', function() { return { restrict: 'E', replace: true, transclude: true, link: function($scope, $element){ $element.addClass($scope.animation || ''); }, template: '<div class="loading-backdrop" ng-class="{\'show-backdrop\': showBackdrop}">' + '<div class="loading" ng-transclude>' + '</div>' + '</div>' }; }); })(); (function() { 'use strict'; angular.module('ionic.ui.modal', []) /* * We don't document the ionModal directive, we instead document * the $ionicModal service */ .directive('ionModal', [function() { return { restrict: 'E', transclude: true, replace: true, template: '<div class="modal-backdrop">' + '<div class="modal-wrapper" ng-transclude></div>' + '</div>' }; }]); })(); angular.module('ionic.ui.navBar', ['ionic.service.view', 'ngSanitize']) /** * @ngdoc service * @name $ionicNavBarDelegate * @module ionic * @description * Delegate for controlling the {@link ionic.directive:ionNavBar} directive. * * @usage * * ```html * <body ng-controller="MyCtrl"> * <ion-nav-bar> * <button ng-click="setNavTitle('banana')"> * Set title to banana! * </button> * </ion-nav-bar> * </body> * ``` * ```js * function MyCtrl($scope, $ionicNavBarDelegate) { * $scope.setNavTitle = function(title) { * $ionicNavBarDelegate.setTitle(title); * } * } * ``` */ .service('$ionicNavBarDelegate', delegateService([ /** * @ngdoc method * @name $ionicNavBarDelegate#back * @description Goes back in the view history. * @param {DOMEvent=} event The event object (eg from a tap event) */ 'back', /** * @ngdoc method * @name $ionicNavBarDelegate#align * @description Aligns the title with the buttons in a given direction. * @param {string=} direction The direction to the align the title text towards. * Available: 'left', 'right', 'center'. Default: 'center'. */ 'align', /** * @ngdoc method * @name $ionicNavBarDelegate#showBackButton * @description * Set whether the {@link ionic.directive:ionNavBackButton} should be shown * (if it exists). * @param {boolean} show Whether to show the back button. */ 'showBackButton', /** * @ngdoc method * @name $ionicNavBarDelegate#showBar * @description * Set whether the {@link ionic.directive:ionNavBar} should be shown. * @param {boolean} show Whether to show the bar. */ 'showBar', /** * @ngdoc method * @name $ionicNavBarDelegate#setTitle * @description * Set the title for the {@link ionic.directive:ionNavBar}. * @param {string} title The new title to show. */ 'setTitle', /** * @ngdoc method * @name $ionicNavBarDelegate#changeTitle * @description * Change the title, transitioning the new title in and the old one out in a given direction. * @param {string} title The new title to show. * @param {string} direction The direction to transition the new title in. * Available: 'forward', 'back'. */ 'changeTitle', /** * @ngdoc method * @name $ionicNavBarDelegate#getTitle * @returns {string} The current title of the navbar. */ 'getTitle', /** * @ngdoc method * @name $ionicNavBarDelegate#getPreviousTitle * @returns {string} The previous title of the navbar. */ 'getPreviousTitle' /** * @ngdoc method * @name $ionicNavBarDelegate#$getByHandle * @param {string} handle * @returns `delegateInstance` A delegate instance that controls only the * navBars with delegate-handle matching the given handle. * * Example: `$ionicNavBarDelegate.$getByHandle('myHandle').setTitle('newTitle')` */ ])) .controller('$ionicNavBar', [ '$scope', '$element', '$attrs', '$ionicViewService', '$animate', '$compile', '$ionicNavBarDelegate', function($scope, $element, $attrs, $ionicViewService, $animate, $compile, $ionicNavBarDelegate) { //Let the parent know about our controller too so that children of //sibling content elements can know about us $element.parent().data('$ionNavBarController', this); var deregisterInstance = $ionicNavBarDelegate._registerInstance(this, $attrs.delegateHandle); $scope.$on('$destroy', deregisterInstance); var self = this; this.leftButtonsElement = angular.element( $element[0].querySelector('.buttons.left-buttons') ); this.rightButtonsElement = angular.element( $element[0].querySelector('.buttons.right-buttons') ); this.back = function(e) { var backView = $ionicViewService.getBackView(); backView && backView.go(); e && (e.alreadyHandled = true); return false; }; this.align = function(direction) { this._headerBarView.align(direction); }; this.showBackButton = function(show) { $scope.backButtonShown = !!show; }; this.showBar = function(show) { $scope.isInvisible = !show; $scope.$parent.$hasHeader = !!show; }; this.setTitle = function(title) { $scope.oldTitle = $scope.title; $scope.title = title || ''; }; this.changeTitle = function(title, direction) { if ($scope.title === title) { return false; } this.setTitle(title); $scope.isReverse = direction == 'back'; $scope.shouldAnimate = !!direction; if (!$scope.shouldAnimate) { //We're done! this._headerBarView.align(); } else { this._animateTitles(); } return true; }; this.getTitle = function() { return $scope.title || ''; }; this.getPreviousTitle = function() { return $scope.oldTitle || ''; }; /** * Exposed for testing */ this._animateTitles = function() { var oldTitleEl, newTitleEl, currentTitles; //If we have any title right now //(or more than one, they could be transitioning on switch), //replace the first one with an oldTitle element currentTitles = $element[0].querySelectorAll('.title'); if (currentTitles.length) { oldTitleEl = $compile('<h1 class="title" ng-bind-html="oldTitle"></h1>')($scope); angular.element(currentTitles[0]).replaceWith(oldTitleEl); } //Compile new title newTitleEl = $compile('<h1 class="title invisible" ng-bind-html="title"></h1>')($scope); //Animate in on next frame ionic.requestAnimationFrame(function() { oldTitleEl && $animate.leave(angular.element(oldTitleEl)); var insert = oldTitleEl && angular.element(oldTitleEl) || null; $animate.enter(newTitleEl, $element, insert, function() { self._headerBarView.align(); }); //Cleanup any old titles leftover (besides the one we already did replaceWith on) angular.forEach(currentTitles, function(el) { if (el && el.parentNode) { //Use .remove() to cleanup things like .data() angular.element(el).remove(); } }); //$apply so bindings fire $scope.$digest(); //Stop flicker of new title on ios7 ionic.requestAnimationFrame(function() { newTitleEl[0].classList.remove('invisible'); }); }); }; }]) /** * @ngdoc directive * @name ionNavBar * @module ionic * @delegate ionic.service:$ionicNavBarDelegate * @restrict E * * @description * If we have an {@link ionic.directive:ionNavView} directive, we can also create an * `<ion-nav-bar>`, which will create a topbar that updates as the application state changes. * * We can add a back button by putting an {@link ionic.directive:ionNavBackButton} inside. * * We can add buttons depending on the currently visible view using * {@link ionic.directive:ionNavButtons}. * * Assign an [animation class](/docs/components#animations) to the element to * enable animated changing of titles (recommended: 'slide-left-right' or 'nav-title-slide-ios7') * * @usage * * ```html * <body ng-app="starter"> * <!-- The nav bar that will be updated as we navigate --> * <ion-nav-bar class="bar-positive nav-title-slide-ios7"> * </ion-nav-bar> * * <!-- where the initial view template will be rendered --> * <ion-nav-view></ion-nav-view> * </body> * ``` * * @param {string=} delegate-handle The handle used to identify this navBar * with {@link ionic.service:$ionicNavBarDelegate}. * @param align-title {string=} Where to align the title of the navbar. * Available: 'left', 'right', 'center'. Defaults to 'center'. */ .directive('ionNavBar', ['$ionicViewService', '$rootScope', '$animate', '$compile', function($ionicViewService, $rootScope, $animate, $compile) { return { restrict: 'E', controller: '$ionicNavBar', scope: true, compile: function(tElement, tAttrs) { //We cannot transclude here because it breaks element.data() inheritance on compile tElement .addClass('bar bar-header nav-bar') .append( '<div class="buttons left-buttons"> ' + '</div>' + '<h1 ng-bind-html="title" class="title"></h1>' + '<div class="buttons right-buttons"> ' + '</div>' ); return { pre: prelink }; function prelink($scope, $element, $attr, navBarCtrl) { navBarCtrl._headerBarView = new ionic.views.HeaderBar({ el: $element[0], alignTitle: $attr.alignTitle || 'center' }); //defaults $scope.backButtonShown = false; $scope.shouldAnimate = true; $scope.isReverse = false; $scope.isInvisible = true; $scope.$on('$destroy', function() { $scope.$parent.$hasHeader = false; }); $scope.$watch(function() { return ($scope.isReverse ? ' reverse' : '') + ($scope.isInvisible ? ' invisible' : '') + (!$scope.shouldAnimate ? ' no-animation' : ''); }, function(className, oldClassName) { $element.removeClass(oldClassName); $element.addClass(className); }); } } }; }]) /** * @ngdoc directive * @name ionNavBackButton * @module ionic * @restrict E * @parent ionNavBar * @description * Creates a back button inside an {@link ionic.directive:ionNavBar}. * * Will show up when the user is able to go back in the current navigation stack. * * By default, will go back when clicked. If you wish for more advanced behavior, see the * examples below. * * @usage * * With default click action: * * ```html * <ion-nav-bar> * <ion-nav-back-button class="button-icon"> * <i class="ion-arrow-left-c"></i> Back! * </ion-nav-back-button> * </ion-nav-bar> * ``` * * With custom click action, using {@link ionic.service:$ionicNavBarDelegate}: * * ```html * <ion-nav-bar ng-controller="MyCtrl"> * <ion-nav-back-button class="button-icon" * ng-click="canGoBack && goBack()"> * <i class="ion-arrow-left-c"></i> Back * </ion-nav-back-button> * </ion-nav-bar> * ``` * ```js * function MyCtrl($scope, $ionicNavBarDelegate) { * $scope.goBack = function() { * $ionicNavBarDelegate.back(); * }; * } * ``` * * Displaying the previous title on the back button, again using * {@link ionic.service:$ionicNavBarDelegate}. * * ```html * <ion-nav-bar ng-controller="MyCtrl"> * <ion-nav-back-button class="button button-icon ion-arrow-left-c"> * {% raw %}{{getPreviousTitle() || 'Back'}}{% endraw %} * </ion-nav-back-button> * </ion-nav-bar> * ``` * ```js * function MyCtrl($scope, $ionicNavBarDelegate) { * $scope.getPreviousTitle = function() { * return $ionicNavBarDelegate.getPreviousTitle(); * }; * } * ``` */ .directive('ionNavBackButton', ['$ionicNgClick', function($ionicNgClick) { return { restrict: 'E', require: '^ionNavBar', compile: function(tElement, tAttrs) { tElement.addClass('button back-button'); return function($scope, $element, $attr, navBarCtrl) { if (!$attr.ngClick) { $scope.$navBack = navBarCtrl.back; $ionicNgClick($scope, $element, '$navBack($event)'); } //If the current viewstate does not allow a back button, //always hide it. var deregisterListener = $scope.$parent.$on( '$viewHistory.historyChange', function(e, data) { $scope.hasBackButton = !!data.showBack; } ); $scope.$on('$destroy', deregisterListener); //Make sure both that a backButton is allowed in the first place, //and that it is shown by the current view. $scope.$watch('!!(backButtonShown && hasBackButton)', function(show) { $element.toggleClass('hide', !show); }); }; } }; }]) /** * @ngdoc directive * @name ionNavButtons * @module ionic * @restrict E * @parent ionNavView * * @description * Use ionNavButtons to set the buttons on your {@link ionic.directive:ionNavBar} * from within an {@link ionic.directive:ionView}. * * Any buttons you declare will be placed onto the navbar's corresponding side, * and then destroyed when the user leaves their parent view. * * @usage * ```html * <ion-nav-bar> * </ion-nav-bar> * <ion-nav-view> * <ion-view> * <ion-nav-buttons side="left"> * <button class="button" ng-click="doSomething()"> * I'm a button on the left of the navbar! * </button> * </ion-nav-buttons> * <ion-content> * Some super content here! * </ion-content> * </ion-view> * </ion-nav-view> * ``` * * @param {string} side The side to place the buttons on in the parent * {@link ionic.directive:ionNavBar}. Available: 'left' or 'right'. */ .directive('ionNavButtons', ['$compile', '$animate', function($compile, $animate) { return { require: '^ionNavBar', restrict: 'E', compile: function($element, $attrs) { var content = $element.contents().remove(); return function($scope, $element, $attrs, navBarCtrl) { var navElement = $attrs.side === 'right' ? navBarCtrl.rightButtonsElement : navBarCtrl.leftButtonsElement; //Put all of our inside buttons into their own span, //so we can remove them all when this element dies - //even if the buttons have changed through an ng-repeat or the like, //we just remove their div parent and they are gone. var buttons = angular.element('<span>').append(content); //Compile buttons inside content so they have access to everything //something inside content does (eg parent ionicScroll) $element.append(buttons); $compile(buttons)($scope); //Append buttons to navbar $animate.enter(buttons, navElement); //When our ion-nav-buttons container is destroyed, //destroy everything in the navbar $scope.$on('$destroy', function() { $animate.leave(buttons); }); // The original element is just a completely empty <ion-nav-buttons> element. // make it invisible just to be sure it doesn't change any layout $element.css('display', 'none'); }; } }; }]); (function() { 'use strict'; angular.module('ionic.ui.popup', []) /** * @private */ .directive('ionPopupBackdrop', function() { return { restrict: 'E', replace: true, template: '<div class="popup-backdrop"></div>' } }) /** * @private */ .directive('ionPopup', ['$ionicBind', function($ionicBind) { return { restrict: 'E', replace: true, transclude: true, scope: true, template: '<div class="popup">' + '<div class="popup-head">' + '<h3 class="popup-title" ng-bind-html="title"></h3>' + '<h5 class="popup-sub-title" ng-bind-html="subTitle" ng-if="subTitle"></h5>' + '</div>' + '<div class="popup-body" ng-transclude>' + '</div>' + '<div class="popup-buttons row">' + '<button ng-repeat="button in buttons" ng-click="_buttonTapped(button, $event)" class="button col" ng-class="button.type || \'button-default\'" ng-bind-html="button.text"></button>' + '</div>' + '</div>', link: function($scope, $element, $attr) { $ionicBind($scope, $attr, { title: '@', buttons: '=', $onButtonTap: '&onButtonTap', $onClose: '&onClose' }); $scope._buttonTapped = function(button, event) { var result = button.onTap && button.onTap(event); // A way to return false if(event.defaultPrevented) { return $scope.$onClose({button: button, result: false, event: event }); } // Truthy test to see if we should close the window if(result) { return $scope.$onClose({button: button, result: result, event: event }); } $scope.$onButtonTap({button: button, event: event}); } } }; }]); })(); (function(ionic) { 'use strict'; angular.module('ionic.ui.radio', []) /** * @ngdoc directive * @name ionRadio * @module ionic * @restrict E * @codepen saoBG * @description * The radio directive is no different than the HTML radio input, except it's styled differently. * * Radio behaves like any [AngularJS radio](http://docs.angularjs.org/api/ng/input/input[radio]). * * @usage * ```html * <ion-radio ng-model="choice" value="A">Choose A</ion-radio> * <ion-radio ng-model="choice" value="B">Choose B</ion-radio> * <ion-radio ng-model="choice" value="C">Choose C</ion-radio> * ``` */ .directive('ionRadio', function() { return { restrict: 'E', replace: true, require: '?ngModel', scope: { ngModel: '=?', ngValue: '=?', ngChange: '&', icon: '@' }, transclude: true, template: '<label class="item item-radio">' + '<input type="radio" name="radio-group"' + ' ng-model="ngModel" ng-value="ngValue" ng-change="ngChange()">' + '<div class="item-content disable-pointer-events" ng-transclude></div>' + '<i class="radio-icon disable-pointer-events icon ion-checkmark"></i>' + '</label>', compile: function(element, attr) { if(attr.name) element.children().eq(0).attr('name', attr.name); if(attr.icon) element.children().eq(2).removeClass('ion-checkmark').addClass(attr.icon); } }; }) // The radio button is a radio powered element with only // one possible selection in a set of options. .directive('ionRadioButtons', function() { return { restrict: 'E', replace: true, require: '?ngModel', scope: { value: '@' }, transclude: true, template: '<div class="button-bar button-bar-inline" ng-transclude></div>', controller: ['$scope', '$element', function($scope, $element) { this.select = function(element) { var c, children = $element.children(); for(var i = 0; i < children.length; i++) { c = children[i]; if(c != element[0]) { c.classList.remove('active'); } } }; }], link: function($scope, $element, $attr, ngModel) { var radio; if(ngModel) { //$element.bind('tap', tapHandler); ngModel.$render = function() { var children = $element.children(); for(var i = 0; i < children.length; i++) { children[i].classList.remove('active'); } $scope.$parent.$broadcast('radioButton.select', ngModel.$viewValue); }; } } }; }) .directive('ionButtonRadio', function() { return { restrict: 'CA', require: ['?^ngModel', '?^ionRadioButtons'], link: function($scope, $element, $attr, ctrls) { var ngModel = ctrls[0]; var radioButtons = ctrls[1]; if(!ngModel || !radioButtons) { return; } var setIt = function() { $element.addClass('active'); ngModel.$setViewValue($scope.$eval($attr.ngValue)); radioButtons.select($element); }; var clickHandler = function(e) { setIt(); }; $scope.$on('radioButton.select', function(e, val) { if(val == $scope.$eval($attr.ngValue)) { $element.addClass('active'); } }); ionic.on('tap', clickHandler, $element[0]); $scope.$on('$destroy', function() { ionic.off('tap', clickHandler); }); } }; }); })(window.ionic); (function() { 'use strict'; angular.module('ionic.ui.scroll', []) /** * @ngdoc directive * @name ionScroll * @module ionic * @delegate ionic.service:$ionicScrollDelegate * @restrict E * * @description * Creates a scrollable container for all content inside. * * @param {string=} delegate-handle The handle used to identify this scrollView * with {@link ionic.service:$ionicScrollDelegate}. * @param {string=} direction Which way to scroll. 'x' or 'y'. Default 'y'. * @param {boolean=} paging Whether to scroll with paging. * @param {expression=} on-refresh Called on pull-to-refresh, triggered by an {@link ionic.directive:ionRefresher}. * @param {expression=} on-scroll Called whenever the user scrolls. * @param {boolean=} scrollbar-x Whether to show the horizontal scrollbar. Default false. * @param {boolean=} scrollbar-x Whether to show the vertical scrollbar. Default true. */ .directive('ionScroll', [ '$timeout', '$controller', '$ionicBind', function($timeout, $controller, $ionicBind) { return { restrict: 'E', scope: true, controller: function() {}, compile: function(element, attr) { element.addClass('scroll-view'); //We cannot transclude here because it breaks element.data() inheritance on compile var innerElement = angular.element('<div class="scroll"></div>'); innerElement.append(element.contents()); element.append(innerElement); return { pre: prelink }; function prelink($scope, $element, $attr) { var scrollView, scrollCtrl; $ionicBind($scope, $attr, { direction: '@', paging: '@', $onScroll: '&onScroll', scroll: '@', scrollbarX: '@', scrollbarY: '@', }); if (angular.isDefined($attr.padding)) { $scope.$watch($attr.padding, function(newVal) { innerElement.toggleClass('padding', !!newVal); }); } if($scope.$eval($scope.paging) === true) { innerElement.addClass('scroll-paging'); } if(!$scope.direction) { $scope.direction = 'y'; } var isPaging = $scope.$eval($scope.paging) === true; var scrollViewOptions= { el: $element[0], delegateHandle: $attr.delegateHandle, paging: isPaging, scrollbarX: $scope.$eval($scope.scrollbarX) !== false, scrollbarY: $scope.$eval($scope.scrollbarY) !== false, scrollingX: $scope.direction.indexOf('x') >= 0, scrollingY: $scope.direction.indexOf('y') >= 0 }; if (isPaging) { scrollViewOptions.speedMultiplier = 0.8; scrollViewOptions.bouncing = false; } scrollCtrl = $controller('$ionicScroll', { $scope: $scope, scrollViewOptions: scrollViewOptions }); scrollView = $scope.$parent.scrollView = scrollCtrl.scrollView; } } }; }]); })(); (function() { 'use strict'; /** * @description * The sideMenuCtrl lets you quickly have a draggable side * left and/or right menu, which a center content area. */ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture', 'ionic.service.view']) /** * The internal controller for the side menu controller. This * extends our core Ionic side menu controller and exposes * some side menu stuff on the current scope. */ .run(['$ionicViewService', function($ionicViewService) { // set that the side-menus directive should not animate when transitioning to it $ionicViewService.disableRegisterByTagName('ion-side-menus'); }]) /** * @ngdoc service * @name $ionicSideMenuDelegate * @module ionic * * @description * Delegate for controlling the {@link ionic.directive:ionSideMenus} directive. * * Methods called directly on the $ionicSideMenuDelegate service will control all side * menus. Use the {@link ionic.service:$ionicSideMenuDelegate#$getByHandle $getByHandle} * method to control specific ionSideMenus instances. * * @usage * * ```html * <body ng-controller="MainCtrl"> * <ion-side-menus> * <ion-side-menu-content> * Content! * <button ng-click="toggleLeftSideMenu()"> * Toggle Left Side Menu * </button> * </ion-side-menu-content> * <ion-side-menu side="left"> * Left Menu! * <ion-side-menu> * </ion-side-menus> * </body> * ``` * ```js * function MainCtrl($scope, $ionicSideMenuDelegate) { * $scope.toggleLeftSideMenu = function() { * $ionicSideMenuDelegate.toggleLeft(); * }; * } * ``` */ .service('$ionicSideMenuDelegate', delegateService([ /** * @ngdoc method * @name $ionicSideMenuDelegate#toggleLeft * @description Toggle the left side menu (if it exists). * @param {boolean=} isOpen Whether to open or close the menu. * Default: Toggles the menu. */ 'toggleLeft', /** * @ngdoc method * @name $ionicSideMenuDelegate#toggleRight * @description Toggle the right side menu (if it exists). * @param {boolean=} isOpen Whether to open or close the menu. * Default: Toggles the menu. */ 'toggleRight', /** * @ngdoc method * @name $ionicSideMenuDelegate#getOpenRatio * @description Gets the ratio of open amount over menu width. For example, a * menu of width 100 that is opened by 50 pixels is 50% opened, and would return * a ratio of 0.5. * * @returns {float} 0 if nothing is open, between 0 and 1 if left menu is * opened/opening, and between 0 and -1 if right menu is opened/opening. */ 'getOpenRatio', /** * @ngdoc method * @name $ionicSideMenuDelegate#isOpenLeft * @returns {boolean} Whether the left menu is currently opened. */ 'isOpenLeft', /** * @ngdoc method * @name $ionicSideMenuDelegate#isOpenRight * @returns {boolean} Whether the right menu is currently opened. */ 'isOpenRight', /** * @ngdoc method * @name $ionicSideMenuDelegate#canDragContent * @param {boolean=} canDrag Set whether the content can or cannot be dragged to open * side menus. * @returns {boolean} Whether the content can be dragged to open side menus. */ 'canDragContent' /** * @ngdoc method * @name $ionicSideMenuDelegate#$getByHandle * @param {string} handle * @returns `delegateInstance` A delegate instance that controls only the * {@link ionic.directive:ionSideMenus} directives with `delegate-handle` matching * the given handle. * * Example: `$ionicSideMenuDelegate.$getByHandle('my-handle').toggleLeft();` */ ])) /** * @ngdoc directive * @name ionSideMenus * @module ionic * @delegate ionic.service:$ionicSideMenuDelegate * @restrict E * * @description * A container element for side menu(s) and the main content. Allows the left * and/or right side menu to be toggled by dragging the main content area side * to side. * * ![Side Menu](http://ionicframework.com.s3.amazonaws.com/docs/controllers/sidemenu.gif) * * For more information on side menus, check out the documenation for * {@link ionic.directive:ionSideMenuContent} and * {@link ionic.directive:ionSideMenu}. * * @usage * To use side menus, add an `<ion-side-menus>` parent element, * an `<ion-side-menu-content>` for the center content, * and one or more `<ion-side-menu>` directives. * * ```html * <ion-side-menus> * <!-- Center content --> * <ion-side-menu-content ng-controller="ContentController"> * </ion-side-menu-content> * * <!-- Left menu --> * <ion-side-menu side="left"> * </ion-side-menu> * * <!-- Right menu --> * <ion-side-menu side="right"> * </ion-side-menu> * </ion-side-menus> * ``` * ```js * function ContentController($scope, $ionicSideMenuDelegate) { * $scope.toggleLeft = function() { * $ionicSideMenuDelegate.toggleLeft(); * }; * } * ``` * * @param {string=} delegate-handle The handle used to identify this side menu * with {@link ionic.service:$ionicSideMenuDelegate}. * */ .directive('ionSideMenus', function() { return { restrict: 'ECA', controller: ['$scope', '$attrs', '$ionicSideMenuDelegate', function($scope, $attrs, $ionicSideMenuDelegate) { angular.extend(this, ionic.controllers.SideMenuController.prototype); ionic.controllers.SideMenuController.call(this, { left: { width: 275 }, right: { width: 275 } }); this.canDragContent = function(canDrag) { if (arguments.length) { $scope.dragContent = !!canDrag; } return $scope.dragContent; }; this.isDraggableTarget = function(e) { return $scope.dragContent && (!e.gesture.srcEvent.defaultPrevented && !e.target.tagName.match(/input|textarea|select|object|embed/i) && !e.target.isContentEditable && !(e.target.dataset ? e.target.dataset.preventScroll : e.target.getAttribute('data-prevent-default') == 'true')); }; $scope.sideMenuContentTranslateX = 0; var deregisterInstance = $ionicSideMenuDelegate._registerInstance( this, $attrs.delegateHandle ); $scope.$on('$destroy', deregisterInstance); }], replace: true, transclude: true, template: '<div class="view" ng-transclude></div>' }; }) /** * @ngdoc directive * @name ionSideMenuContent * @module ionic * @restrict E * @parent ionic.directive:ionSideMenus * * @description * A container for the main visible content, sibling to one or more * {@link ionic.directive:ionSideMenu} directives. * * @usage * ```html * <ion-side-menu-content * drag-content="true"> * </ion-side-menu-content> * ``` * For a complete side menu example, see the * {@link ionic.directive:ionSideMenus} documentation. * * @param {boolean=} drag-content Whether the content can be dragged. Defaul true. * */ .directive('ionSideMenuContent', ['$timeout', '$ionicGesture', function($timeout, $ionicGesture) { return { restrict: 'EA', //DEPRECATED 'A' require: '^ionSideMenus', scope: true, compile: function(element, attr) { return { pre: prelink }; function prelink($scope, $element, $attr, sideMenuCtrl) { $element.addClass('menu-content pane'); if (angular.isDefined(attr.dragContent)) { $scope.$watch(attr.dragContent, function(value) { sideMenuCtrl.canDragContent(value); }); } else { sideMenuCtrl.canDragContent(true); } var defaultPrevented = false; var isDragging = false; // Listen for taps on the content to close the menu function contentTap(e) { if(sideMenuCtrl.getOpenAmount() !== 0) { sideMenuCtrl.close(); e.gesture.srcEvent.preventDefault(); } } ionic.on('tap', contentTap, $element[0]); var dragFn = function(e) { if(defaultPrevented || !sideMenuCtrl.isDraggableTarget(e)) return; isDragging = true; sideMenuCtrl._handleDrag(e); e.gesture.srcEvent.preventDefault(); }; var dragVertFn = function(e) { if(isDragging) { e.gesture.srcEvent.preventDefault(); } }; //var dragGesture = Gesture.on('drag', dragFn, $element); var dragRightGesture = $ionicGesture.on('dragright', dragFn, $element); var dragLeftGesture = $ionicGesture.on('dragleft', dragFn, $element); var dragUpGesture = $ionicGesture.on('dragup', dragVertFn, $element); var dragDownGesture = $ionicGesture.on('dragdown', dragVertFn, $element); var dragReleaseFn = function(e) { isDragging = false; if(!defaultPrevented) { sideMenuCtrl._endDrag(e); } defaultPrevented = false; }; var releaseGesture = $ionicGesture.on('release', dragReleaseFn, $element); sideMenuCtrl.setContent({ onDrag: function(e) {}, endDrag: function(e) {}, getTranslateX: function() { return $scope.sideMenuContentTranslateX || 0; }, setTranslateX: ionic.animationFrameThrottle(function(amount) { $element[0].style[ionic.CSS.TRANSFORM] = 'translate3d(' + amount + 'px, 0, 0)'; $timeout(function() { $scope.sideMenuContentTranslateX = amount; }); }), enableAnimation: function() { //this.el.classList.add(this.animateClass); $scope.animationEnabled = true; $element[0].classList.add('menu-animated'); }, disableAnimation: function() { //this.el.classList.remove(this.animateClass); $scope.animationEnabled = false; $element[0].classList.remove('menu-animated'); } }); // Cleanup $scope.$on('$destroy', function() { $ionicGesture.off(dragLeftGesture, 'dragleft', dragFn); $ionicGesture.off(dragRightGesture, 'dragright', dragFn); $ionicGesture.off(dragUpGesture, 'dragup', dragFn); $ionicGesture.off(dragDownGesture, 'dragdown', dragFn); $ionicGesture.off(releaseGesture, 'release', dragReleaseFn); ionic.off('tap', contentTap, $element[0]); }); } } }; }]) /** * @ngdoc directive * @name ionSideMenu * @module ionic * @restrict E * @parent ionic.directive:ionSideMenus * * @description * A container for a side menu, sibling to an {@link ionic.directive:ionSideMenuContent} directive. * * @usage * ```html * <ion-side-menu * side="left" * width="myWidthValue + 20" * is-enabled="shouldLeftSideMenuBeEnabled()"> * </ion-side-menu> * ``` * For a complete side menu example, see the * {@link ionic.directive:ionSideMenus} documentation. * * @param {string} side Which side the side menu is currently on. Allowed values: 'left' or 'right'. * @param {boolean=} is-enabled Whether this side menu is enabled. * @param {number=} width How many pixels wide the side menu should be. Defaults to 275. */ .directive('ionSideMenu', function() { return { restrict: 'E', require: '^ionSideMenus', scope: true, compile: function(element, attr) { angular.isUndefined(attr.isEnabled) && attr.$set('isEnabled', 'true'); angular.isUndefined(attr.width) && attr.$set('width', '275'); element.addClass('menu menu-' + attr.side); return function($scope, $element, $attr, sideMenuCtrl) { $scope.side = $attr.side || 'left'; var sideMenu = sideMenuCtrl[$scope.side] = new ionic.views.SideMenu({ width: 275, el: $element[0], isEnabled: true }); $scope.$watch($attr.width, function(val) { var numberVal = +val; if (numberVal && numberVal == val) { sideMenu.setWidth(+val); } }); $scope.$watch($attr.isEnabled, function(val) { sideMenu.setIsEnabled(!!val); }); }; } }; }) /** * @ngdoc directive * @name menuToggle * @module ionic * @restrict AC * * @description * Toggle a side menu on the given side * * @usage * Below is an example of a link within a nav bar. Tapping this link would * automatically open the given side menu * * ```html * <ion-view> * <ion-nav-buttons side="left"> * <button menu-toggle="left" class="button button-icon icon ion-navicon"></button> * </ion-nav-buttons> * ... * </ion-view> * ``` */ .directive('menuToggle', ['$ionicViewService', function($ionicViewService) { return { restrict: 'AC', require: '^ionSideMenus', link: function($scope, $element, $attr, sideMenuCtrl) { var side = $attr.menuToggle || 'left'; $element.bind('click', function(){ if(side === 'left') { sideMenuCtrl.toggleLeft(); } else if(side === 'right') { sideMenuCtrl.toggleRight(); } }); } }; }]) /** * @ngdoc directive * @name menuClose * @module ionic * @restrict AC * * @description * Closes a side menu which is currently opened. * * @usage * Below is an example of a link within a side menu. Tapping this link would * automatically close the currently opened menu * * ```html * <a nav-clear menu-close href="#/home" class="item">Home</a> * ``` */ .directive('menuClose', ['$ionicViewService', function($ionicViewService) { return { restrict: 'AC', require: '^ionSideMenus', link: function($scope, $element, $attr, sideMenuCtrl) { $element.bind('click', function(){ sideMenuCtrl.close(); }); } }; }]); })(); (function() { 'use strict'; angular.module('ionic.ui.slideBox', []) /** * @ngdoc service * @name $ionicSlideBoxDelegate * @module ionic * @description * Delegate that controls the {@link ionic.directive:ionSlideBox} directive. * * Methods called directly on the $ionicSlideBoxDelegate service will control all side * menus. Use the {@link ionic.service:$ionicSlideBoxDelegate#$getByHandle $getByHandle} * method to control specific slide box instances. * * @usage * * ```html * <body ng-controller="MyCtrl"> * <ion-slide-box> * <ion-slide> * <div class="box blue"> * <button ng-click="nextSlide()">Next slide!</button> * </div> * </ion-slide> * <ion-slide> * <div class="box red"> * Slide 2! * </div> * </ion-slide> * </ion-slide-box> * </body> * ``` * ```js * function MyCtrl($scope, $ionicSlideBoxDelegate) { * $scope.nextSlide = function() { * $ionicSlideBoxDelegate.next(); * } * } * ``` */ .service('$ionicSlideBoxDelegate', delegateService([ /** * @ngdoc method * @name $ionicSlideBoxDelegate#update * @description * Update the slidebox (for example if using Angular with ng-repeat, * resize it for the elements inside). */ 'update', /** * @ngdoc method * @name $ionicSlideBoxDelegate#slide * @param {number} to The index to slide to. * @param {number=} speed The number of milliseconds for the change to take. */ 'slide', /** * @ngdoc method * @name $ionicSlideBoxDelegate#previous * @description Go to the previous slide. Wraps around if at the beginning. */ 'previous', /** * @ngdoc method * @name $ionicSlideBoxDelegate#next * @description Go to the next slide. Wraps around if at the end. */ 'next', /** * @ngdoc method * @name $ionicSlideBoxDelegate#stop * @description Stop sliding. The slideBox will not move again until * explicitly told to do so. */ 'stop', /** * @ngdoc method * @name $ionicSlideBoxDelegate#currentIndex * @returns number The index of the current slide. */ 'currentIndex', /** * @ngdoc method * @name $ionicSlideBoxDelegate#slidesCount * @returns number The number of slides there are currently. */ 'slidesCount' /** * @ngdoc method * @name $ionicSlideBoxDelegate#$getByHandle * @param {string} handle * @returns `delegateInstance` A delegate instance that controls only the * {@link ionic.directive:ionSlideBox} directives with `delegate-handle` matching * the given handle. * * Example: `$ionicSlideBoxDelegate.$getByHandle('my-handle').stop();` */ ])) /** * The internal controller for the slide box controller. */ /** * @ngdoc directive * @name ionSlideBox * @module ionic * @delegate ionic.service:$ionicSlideBoxDelegate * @restrict E * @description * The Slide Box is a multi-page container where each page can be swiped or dragged between: * * ![SlideBox](http://ionicframework.com.s3.amazonaws.com/docs/controllers/slideBox.gif) * * @usage * ```html * <ion-slide-box> * <ion-slide> * <div class="box blue"><h1>BLUE</h1></div> * </ion-slide> * <ion-slide> * <div class="box yellow"><h1>YELLOW</h1></div> * </ion-slide> * <ion-slide> * <div class="box pink"><h1>PINK</h1></div> * </ion-slide> * </ion-slide-box> * ``` * * @param {string=} delegate-handle The handle used to identify this slideBox * with {@link ionic.service:$ionicSlideBoxDelegate}. * @param {boolean=} does-continue Whether the slide box should automatically slide. * @param {number=} slide-interval How many milliseconds to wait to change slides (if does-continue is true). Defaults to 4000. * @param {boolean=} show-pager Whether a pager should be shown for this slide box. * @param {boolean=} disable-scroll Whether to disallow scrolling/dragging of the slide-box content. * @param {expression=} on-slide-changed Expression called whenever the slide is changed. * @param {expression=} active-slide Model to bind the current slide to. */ .directive('ionSlideBox', [ '$timeout', '$compile', '$ionicSlideBoxDelegate', function($timeout, $compile, $ionicSlideBoxDelegate) { return { restrict: 'E', replace: true, transclude: true, scope: { doesContinue: '@', slideInterval: '@', showPager: '@', disableScroll: '@', onSlideChanged: '&', activeSlide: '=?' }, controller: ['$scope', '$element', '$attrs', function($scope, $element, $attrs) { var _this = this; var continuous = $scope.$eval($scope.doesContinue) === true; var slideInterval = continuous ? $scope.$eval($scope.slideInterval) || 4000 : 0; var slider = new ionic.views.Slider({ el: $element[0], auto: slideInterval, disableScroll: ($scope.$eval($scope.disableScroll) === true) || false, continuous: continuous, startSlide: $scope.activeSlide, slidesChanged: function() { $scope.currentSlide = slider.currentIndex(); // Try to trigger a digest $timeout(function() {}); }, callback: function(slideIndex) { $scope.currentSlide = slideIndex; $scope.onSlideChanged({index:$scope.currentSlide}); $scope.$parent.$broadcast('slideBox.slideChanged', slideIndex); $scope.activeSlide = slideIndex; // Try to trigger a digest $timeout(function() {}); } }); $scope.$watch('activeSlide', function(nv) { if(angular.isDefined(nv)){ slider.slide(nv); } }); $scope.$on('slideBox.nextSlide', function() { slider.next(); }); $scope.$on('slideBox.prevSlide', function() { slider.prev(); }); $scope.$on('slideBox.setSlide', function(e, index) { slider.slide(index); }); //Exposed for testing this.__slider = slider; var deregisterInstance = $ionicSlideBoxDelegate._registerInstance(slider, $attrs.delegateHandle); $scope.$on('$destroy', deregisterInstance); this.slidesCount = function() { return slider.slidesCount(); }; $timeout(function() { slider.load(); }); }], template: '<div class="slider">\ <div class="slider-slides" ng-transclude>\ </div>\ </div>', link: function($scope, $element, $attr, slideBoxCtrl) { // If the pager should show, append it to the slide box if($scope.$eval($scope.showPager) !== false) { var childScope = $scope.$new(); var pager = angular.element('<ion-pager></ion-pager>'); $element.append(pager); $compile(pager)(childScope); } } }; }]) .directive('ionSlide', function() { return { restrict: 'E', require: '^ionSlideBox', compile: function(element, attr) { element.addClass('slider-slide'); return function($scope, $element, $attr) {}; }, }; }) .directive('ionPager', function() { return { restrict: 'E', replace: true, require: '^ionSlideBox', template: '<div class="slider-pager"><span class="slider-pager-page" ng-repeat="slide in numSlides() track by $index" ng-class="{active: $index == currentSlide}"><i class="icon ion-record"></i></span></div>', link: function($scope, $element, $attr, slideBox) { var selectPage = function(index) { var children = $element[0].children; var length = children.length; for(var i = 0; i < length; i++) { if(i == index) { children[i].classList.add('active'); } else { children[i].classList.remove('active'); } } }; $scope.numSlides = function() { return new Array(slideBox.slidesCount()); }; $scope.$watch('currentSlide', function(v) { selectPage(v); }); } }; }); })(); angular.module('ionic.ui.tabs', ['ionic.service.view']) .run(['$ionicViewService', function($ionicViewService) { // set that the tabs directive should not animate when transitioning // to it. Instead, the children <tab> directives would animate $ionicViewService.disableRegisterByTagName('ion-tabs'); }]) /** * @ngdoc service * @name $ionicTabsDelegate * @module ionic * * @description * Delegate for controlling the {@link ionic.directive:ionTabs} directive. * * Methods called directly on the $ionicTabsDelegate service will control all ionTabs * directives. Use the {@link ionic.service:$ionicTabsDelegate#$getByHandle $getByHandle} * method to control specific ionTabs instances. * * @usage * * ```html * <body ng-controller="MyCtrl"> * <ion-tabs> * * <ion-tab title="Tab 1"> * Hello tab 1! * <button ng-click="selectTabWithIndex(1)">Select tab 2!</button> * </ion-tab> * <ion-tab title="Tab 2">Hello tab 2!</ion-tab> * * </ion-tabs> * </body> * ``` * ```js * function MyCtrl($scope, $ionicTabsDelegate) { * $scope.selectTabWithIndex = function(index) { * $ionicTabsDelegate.select(index); * } * } * ``` */ .service('$ionicTabsDelegate', delegateService([ /** * @ngdoc method * @name $ionicTabsDelegate#select * @description Select the tab matching the given index. * * @param {number} index Index of the tab to select. * @param {boolean=} shouldChangeHistory Whether this selection should load this tab's * view history (if it exists) and use it, or just load the default page. * Default false. * Hint: you probably want this to be true if you have an * {@link ionic.directive:ionNavView} inside your tab. */ 'select', /** * @ngdoc method * @name $ionicTabsDelegate#selectedIndex * @returns `number` The index of the selected tab, or -1. */ 'selectedIndex' /** * @ngdoc method * @name $ionicTabsDelegate#$getByHandle * @param {string} handle * @returns `delegateInstance` A delegate instance that controls only the * {@link ionic.directive:ionTabs} directives with `delegate-handle` matching * the given handle. * * Example: `$ionicTabsDelegate.$getByHandle('my-handle').select(0);` */ ])) .controller('ionicTabs', ['$scope', '$ionicViewService', '$element', function($scope, $ionicViewService, $element) { var _selectedTab = null; var self = this; self.tabs = []; self.selectedIndex = function() { return self.tabs.indexOf(_selectedTab); }; self.selectedTab = function() { return _selectedTab; }; self.add = function(tab) { $ionicViewService.registerHistory(tab); self.tabs.push(tab); if(self.tabs.length === 1) { self.select(tab); } }; self.remove = function(tab) { var tabIndex = self.tabs.indexOf(tab); if (tabIndex === -1) { return; } //Use a field like '$tabSelected' so developers won't accidentally set it in controllers etc if (tab.$tabSelected) { self.deselect(tab); //Try to select a new tab if we're removing a tab if (self.tabs.length === 1) { //do nothing if there are no other tabs to select } else { //Select previous tab if it's the last tab, else select next tab var newTabIndex = tabIndex === self.tabs.length - 1 ? tabIndex - 1 : tabIndex + 1; self.select(self.tabs[newTabIndex]); } } self.tabs.splice(tabIndex, 1); }; self.deselect = function(tab) { if (tab.$tabSelected) { _selectedTab = null; tab.$tabSelected = false; (tab.onDeselect || angular.noop)(); } }; self.select = function(tab, shouldEmitEvent) { var tabIndex; if (angular.isNumber(tab)) { tabIndex = tab; tab = self.tabs[tabIndex]; } else { tabIndex = self.tabs.indexOf(tab); } if (!tab || tabIndex == -1) { throw new Error('Cannot select tab "' + tabIndex + '"!'); } if (_selectedTab && _selectedTab.$historyId == tab.$historyId) { if (shouldEmitEvent) { $ionicViewService.goToHistoryRoot(tab.$historyId); } } else { angular.forEach(self.tabs, function(tab) { self.deselect(tab); }); _selectedTab = tab; //Use a funny name like $tabSelected so the developer doesn't overwrite the var in a child scope tab.$tabSelected = true; (tab.onSelect || angular.noop)(); if (shouldEmitEvent) { var viewData = { type: 'tab', tabIndex: tabIndex, historyId: tab.$historyId, navViewName: tab.navViewName, hasNavView: !!tab.navViewName, title: tab.title, //Skip the first character of href if it's # url: tab.href, uiSref: tab.uiSref }; $scope.$emit('viewState.changeHistory', viewData); } } }; }]) /** * @ngdoc directive * @name ionTabs * @module ionic * @delegate ionic.service:$ionicTabsDelegate * @restrict E * @codepen KbrzJ * * @description * Powers a multi-tabbed interface with a Tab Bar and a set of "pages" that can be tabbed * through. * * Assign any [tabs class](/docs/components#tabs) or * [animation class](/docs/components#animation) to the element to define * its look and feel. * * See the {@link ionic.directive:ionTab} directive's documentation for more details on * individual tabs. * * @usage * ```html * <ion-tabs class="tabs-positive tabs-icon-only"> * * <ion-tab title="Home" icon-on="ion-ios7-filing" icon-off="ion-ios7-filing-outline"> * <!-- Tab 1 content --> * </ion-tab> * * <ion-tab title="About" icon-on="ion-ios7-clock" icon-off="ion-ios7-clock-outline"> * <!-- Tab 2 content --> * </ion-tab> * * <ion-tab title="Settings" icon-on="ion-ios7-gear" icon-off="ion-ios7-gear-outline"> * <!-- Tab 3 content --> * </ion-tab> * * </ion-tabs> * ``` * * @param {string=} delegate-handle The handle used to identify these tabs * with {@link ionic.service:$ionicTabsDelegate}. */ .directive('ionTabs', ['$ionicViewService', '$ionicTabsDelegate', function($ionicViewService, $ionicTabsDelegate) { return { restrict: 'E', scope: true, controller: 'ionicTabs', compile: function(element, attr) { element.addClass('view'); //We cannot use regular transclude here because it breaks element.data() //inheritance on compile var innerElement = angular.element('<div class="tabs"></div>'); innerElement.append(element.contents()); element.append(innerElement); return { pre: prelink }; function prelink($scope, $element, $attr, tabsCtrl) { var deregisterInstance = $ionicTabsDelegate._registerInstance( tabsCtrl, $attr.delegateHandle ); $scope.$on('$destroy', deregisterInstance); tabsCtrl.$scope = $scope; tabsCtrl.$element = $element; tabsCtrl.$tabsElement = angular.element($element[0].querySelector('.tabs')); var el = $element[0]; $scope.$watch(function() { return el.className; }, function(value) { var isTabsTop = value.indexOf('tabs-top') !== -1; var isHidden = value.indexOf('tabs-item-hide') !== -1; $scope.$hasTabs = !isTabsTop && !isHidden; $scope.$hasTabsTop = isTabsTop && !isHidden; }); $scope.$on('$destroy', function() { $scope.$hasTabs = $scope.$hasTabsTop = null; }); } } }; }]) .controller('ionicTab', ['$scope', '$ionicViewService', '$attrs', '$location', '$state', function($scope, $ionicViewService, $attrs, $location, $state) { this.$scope = $scope; //All of these exposed for testing this.hrefMatchesState = function() { return $attrs.href && $location.path().indexOf( $attrs.href.replace(/^#/, '').replace(/\/$/, '') ) === 0; }; this.srefMatchesState = function() { return $attrs.uiSref && $state.includes( $attrs.uiSref.split('(')[0] ); }; this.navNameMatchesState = function() { return this.navViewName && $ionicViewService.isCurrentStateNavView(this.navViewName); }; this.tabMatchesState = function() { return this.hrefMatchesState() || this.srefMatchesState() || this.navNameMatchesState(); }; }]) /** * @ngdoc directive * @name ionTab * @module ionic * @restrict E * @parent ionic.directive:ionTabs * * @description * Contains a tab's content. The content only exists while the given tab is selected. * * Each ionTab has its own view history. * * @usage * ```html * <ion-tab * title="Tab!" * icon="my-icon" * href="#/tab/tab-link" * on-select="onTabSelected()" * on-deselect="onTabDeselected()"> * </ion-tab> * ``` * For a complete, working tab bar example, see the {@link ionic.directive:ionTabs} documentation. * * @param {string} title The title of the tab. * @param {string=} href The link that this tab will navigate to when tapped. * @param {string=} icon The icon of the tab. If given, this will become the default for icon-on and icon-off. * @param {string=} icon-on The icon of the tab while it is selected. * @param {string=} icon-off The icon of the tab while it is not selected. * @param {expression=} badge The badge to put on this tab (usually a number). * @param {expression=} badge-style The style of badge to put on this tab (eg tabs-positive). * @param {expression=} on-select Called when this tab is selected. * @param {expression=} on-deselect Called when this tab is deselected. * @param {expression=} ng-click By default, the tab will be selected on click. If ngClick is set, it will not. You can explicitly switch tabs using {@link ionic.service:$ionicTabsDelegate#select $ionicTabsDelegate.select()}. */ .directive('ionTab', ['$rootScope', '$animate', '$ionicBind', '$compile', '$ionicViewService', '$state', '$location', function($rootScope, $animate, $ionicBind, $compile, $ionicViewService, $state, $location) { //Returns ' key="value"' if value exists function attrStr(k,v) { return angular.isDefined(v) ? ' ' + k + '="' + v + '"' : ''; } return { restrict: 'E', require: ['^ionTabs', 'ionTab'], replace: true, controller: 'ionicTab', scope: true, compile: function(element, attr) { var navView = element[0].querySelector('ion-nav-view') || element[0].querySelector('data-ion-nav-view'); var navViewName = navView && navView.getAttribute('name'); //Remove the contents of the element so we can compile them later, if tab is selected //We don't use regular transclusion because it breaks element inheritance var tabContent = angular.element('<div class="pane">') .append( element.contents().remove() ); return function link($scope, $element, $attr, ctrls) { var childScope, childElement, tabNavElement; tabsCtrl = ctrls[0], tabCtrl = ctrls[1]; $ionicBind($scope, $attr, { animate: '=', onSelect: '&', onDeselect: '&', title: '@', uiSref: '@', href: '@', }); tabsCtrl.add($scope); $scope.$on('$destroy', function() { tabsCtrl.remove($scope); tabNavElement.isolateScope().$destroy(); tabNavElement.remove(); }); //Remove title attribute so browser-tooltip does not apear $element[0].removeAttribute('title'); if (navViewName) { tabCtrl.navViewName = navViewName; } $scope.$on('$stateChangeSuccess', selectIfMatchesState); selectIfMatchesState(); function selectIfMatchesState() { if (tabCtrl.tabMatchesState()) { tabsCtrl.select($scope); } } tabNavElement = angular.element( '<ion-tab-nav' + attrStr('ng-click', attr.ngClick) + attrStr('title', attr.title) + attrStr('icon', attr.icon) + attrStr('icon-on', attr.iconOn) + attrStr('icon-off', attr.iconOff) + attrStr('badge', attr.badge) + attrStr('badge-style', attr.badgeStyle) + '></ion-tab-nav>' ); tabNavElement.data('$ionTabsController', tabsCtrl); tabNavElement.data('$ionTabController', tabCtrl); tabsCtrl.$tabsElement.append($compile(tabNavElement)($scope)); $scope.$watch('$tabSelected', function(value) { childScope && childScope.$destroy(); childScope = null; childElement && $animate.leave(childElement); childElement = null; if (value) { childScope = $scope.$new(); childElement = tabContent.clone(); $animate.enter(childElement, tabsCtrl.$element); $compile(childElement)(childScope); } }); }; } }; }]) .directive('ionTabNav', ['$ionicNgClick', function($ionicNgClick) { return { restrict: 'E', replace: true, require: ['^ionTabs', '^ionTab'], template: '<a ng-class="{\'tab-item-active\': isTabActive(), \'has-badge\':badge}" ' + ' class="tab-item">' + '<span class="badge {{badgeStyle}}" ng-if="badge">{{badge}}</span>' + '<i class="icon {{getIconOn()}}" ng-if="getIconOn() && isTabActive()"></i>' + '<i class="icon {{getIconOff()}}" ng-if="getIconOff() && !isTabActive()"></i>' + '<span class="tab-title" ng-bind-html="title"></span>' + '</a>', scope: { title: '@', icon: '@', iconOn: '@', iconOff: '@', badge: '=', badgeStyle: '@' }, compile: function(element, attr, transclude) { return function link($scope, $element, $attrs, ctrls) { var tabsCtrl = ctrls[0], tabCtrl = ctrls[1]; //Remove title attribute so browser-tooltip does not apear $element[0].removeAttribute('title'); $scope.selectTab = function(e) { e.preventDefault(); tabsCtrl.select(tabCtrl.$scope, true); }; if (!$attrs.ngClick) { $ionicNgClick($scope, $element, 'selectTab($event)'); } $scope.getIconOn = function() { return $scope.iconOn || $scope.icon; }; $scope.getIconOff = function() { return $scope.iconOff || $scope.icon; }; $scope.isTabActive = function() { return tabsCtrl.selectedTab() === tabCtrl.$scope; }; }; } }; }]); (function(ionic) { 'use strict'; angular.module('ionic.ui.toggle', []) /** * @ngdoc directive * @name ionToggle * @module ionic * @codepen tfAzj * @restrict E * * @description * A toggle is an animated switch which binds a given model to a boolean. * * Allows dragging of the switch's nub. * * The toggle behaves like any [AngularJS checkbox](http://docs.angularjs.org/api/ng/input/input[checkbox]) otherwise. * */ .directive('ionToggle', ['$ionicGesture', '$timeout', function($ionicGesture, $timeout) { return { restrict: 'E', replace: true, require: '?ngModel', scope: { ngModel: '=?', ngValue: '=?', ngChecked: '=?', ngChange: '&', ngDisabled: '=?' }, transclude: true, template: '<div class="item item-toggle disable-pointer-events">' + '<div ng-transclude></div>' + '<label class="toggle enable-pointer-events">' + '<input type="checkbox" ng-model="ngModel" ng-value="ngValue" ng-change="ngChange()" ng-disabled="ngDisabled">' + '<div class="track disable-pointer-events">' + '<div class="handle"></div>' + '</div>' + '</label>' + '</div>', compile: function(element, attr) { var input = element.find('input'); if(attr.name) input.attr('name', attr.name); if(attr.ngChecked) input.attr('ng-checked', 'ngChecked'); if(attr.ngTrueValue) input.attr('ng-true-value', attr.ngTrueValue); if(attr.ngFalseValue) input.attr('ng-false-value', attr.ngFalseValue); return function($scope, $element, $attr) { var el, checkbox, track, handle; el = $element[0].getElementsByTagName('label')[0]; checkbox = el.children[0]; track = el.children[1]; handle = track.children[0]; var ngModelController = angular.element(checkbox).controller('ngModel'); $scope.toggle = new ionic.views.Toggle({ el: el, track: track, checkbox: checkbox, handle: handle, onChange: function() { if(checkbox.checked) { ngModelController.$setViewValue(true); } else { ngModelController.$setViewValue(false); } $scope.$apply(); } }); $scope.$on('$destroy', function() { $scope.toggle.destroy(); }); }; } }; }]); })(window.ionic); // Similar to Angular's ngTouch, however it uses Ionic's tap detection // and click simulation. ngClick (function(angular, ionic) {'use strict'; angular.module('ionic.ui.touch', []) .config(['$provide', function($provide) { $provide.decorator('ngClickDirective', ['$delegate', function($delegate) { // drop the default ngClick directive $delegate.shift(); return $delegate; }]); }]) /** * @private */ .factory('$ionicNgClick', ['$parse', function($parse) { function onTap(e) { // wire this up to Ionic's tap/click simulation ionic.tapElement(e.target, e); } return function(scope, element, clickExpr) { var clickHandler = $parse(clickExpr); element.on('click', function(event) { scope.$apply(function() { clickHandler(scope, {$event: (event)}); }); }); ionic.on("release", onTap, element[0]); // Hack for iOS Safari's benefit. It goes searching for onclick handlers and is liable to click // something else nearby. element.onclick = function(event) { }; scope.$on('$destroy', function () { ionic.off("release", onTap, element[0]); }); }; }]) .directive('ngClick', ['$ionicNgClick', function($ionicNgClick) { return function(scope, element, attr) { $ionicNgClick(scope, element, attr.ngClick); }; }]) .directive('ionStopEvent', function () { function stopEvent(e) { e.stopPropagation(); } return { restrict: 'A', link: function (scope, element, attr) { element.bind(attr.ionStopEvent, stopEvent); } }; }); })(window.angular, window.ionic); (function() { 'use strict'; angular.module('ionic.ui.viewState', ['ionic.service.view', 'ionic.service.gesture', 'ngSanitize']) /** * @ngdoc directive * @name ionView * @module ionic * @restrict E * @parent ionNavView * * @description * A container for content, used to tell a parent {@link ionic.directive:ionNavBar} * about the current view. * * @usage * Below is an example where our page will load with a navbar containing "My Page" as the title. * * ```html * <ion-nav-bar></ion-nav-bar> * <ion-nav-view class="slide-left-right"> * <ion-view title="My Page"> * <ion-content> * Hello! * </ion-content> * </ion-view> * </ion-nav-view> * ``` * * @param {string=} title The title to display on the parent {@link ionic.directive:ionNavBar}. * @param {boolean=} hideBackButton Whether to hide the back button on the parent * {@link ionic.directive:ionNavBar} by default. * @param {boolean=} hideNavBar Whether to hide the parent * {@link ionic.directive:ionNavBar} by default. */ .directive('ionView', ['$ionicViewService', '$rootScope', '$animate', function( $ionicViewService, $rootScope, $animate) { return { restrict: 'EA', priority: 1000, require: '^?ionNavBar', compile: function(tElement, tAttrs, transclude) { tElement.addClass('pane'); tElement[0].removeAttribute('title'); return function link($scope, $element, $attr, navBarCtrl) { if (!navBarCtrl) { return; } if (angular.isDefined($attr.title)) { var initialTitle = $attr.title; navBarCtrl.changeTitle(initialTitle, $scope.$navDirection); // watch for changes in the title, don't set initial value as changeTitle does that $attr.$observe('title', function(val, oldVal) { if (val !== initialTitle) { navBarCtrl.setTitle(val); } }); } $scope.$watch($attr.hideBackButton, function(value) { // Should we hide a back button when this tab is shown navBarCtrl.showBackButton(!value); }); $scope.$watch($attr.hideNavBar, function(value) { // Should the nav bar be hidden for this view or not? navBarCtrl.showBar(!value); }); }; } }; }]) /** * @ngdoc directive * @name ionNavView * @module ionic * @restrict E * @codepen HjnFx * * @description * As a user navigates throughout your app, Ionic is able to keep track of their * navigation history. By knowing their history, transitions between views * correctly slide either left or right, or no transition at all. An additional * benefit to Ionic's navigation system is its ability to manage multiple * histories. * * Ionic uses the AngularUI Router module so app interfaces can be organized * into various "states". Like Angular's core $route service, URLs can be used * to control the views. However, the AngularUI Router provides a more powerful * state manager in that states are bound to named, nested, and parallel views, * allowing more than one template to be rendered on the same page. * Additionally, each state is not required to be bound to a URL, and data can * be pushed to each state which allows much flexibility. * * The ionNavView directive is used to render templates in your application. Each template * is part of a state. States are usually mapped to a url, and are defined programatically * using angular-ui-router (see [their docs](https://github.com/angular-ui/ui-router/wiki), * and remember to replace ui-view with ion-nav-view in examples). * * @usage * In this example, we will create a navigation view that contains our different states for the app. * * To do this, in our markup we use ionNavView top level directive. To display a header bar we use * the {@link ionic.directive:ionNavBar} directive that updates as we navigate through the * navigation stack. * * You can any [animation class](/docs/components#animation) on the navView to have its pages slide. * Recommended for page transitions: 'slide-left-right', 'slide-left-right-ios7', 'slide-in-up'. * * ```html * <ion-nav-bar></ion-nav-bar> * <ion-nav-view class="slide-left-right"> * <!-- Center content --> * </ion-nav-view> * ``` * * Next, we need to setup our states that will be rendered. * * ```js * var app = angular.module('myApp', ['ionic']); * app.config(function($stateProvider) { * $stateProvider * .state('index', { * url: '/', * templateUrl: 'home.html' * }) * .state('music', { * url: '/music', * templateUrl: 'music.html' * }); * }); * ``` * Then on app start, $stateProvider will look at the url, see it matches the index state, * and then try to load home.html into the `<ion-nav-view>`. * * Pages are loaded by the URLs given. One simple way to create templates in Angular is to put * them directly into your HTML file and use the `<script type="text/ng-template">` syntax. * So here is one way to put home.html into our app: * * ```html * <script id="home" type="text/ng-template"> * <!-- The title of the ion-view will be shown on the navbar --> * <ion-view title="'Home'"> * <ion-content ng-controller="HomeCtrl"> * <!-- The content of the page --> * <a href="#/music">Go to music page!</a> * </ion-content> * </ion-view> * </script> * ``` * * This is good to do because the template will be cached for very fast loading, instead of * having to fetch them from the network. * * Please visit [AngularUI Router's docs](https://github.com/angular-ui/ui-router/wiki) for * more info. Below is a great video by the AngularUI Router guys that may help to explain * how it all works: * * <iframe width="560" height="315" src="//www.youtube.com/embed/dqJRoh8MnBo" * frameborder="0" allowfullscreen></iframe> * * @param {string=} name A view name. The name should be unique amongst the other views in the * same state. You can have views of the same name that live in different states. For more * information, see ui-router's [ui-view documentation](http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.directive:ui-view). */ .directive('ionNavView', ['$ionicViewService', '$state', '$compile', '$controller', '$animate', function( $ionicViewService, $state, $compile, $controller, $animate) { // IONIC's fork of Angular UI Router, v0.2.7 // the navView handles registering views in the history, which animation to use, and which var viewIsUpdating = false; var directive = { restrict: 'E', terminal: true, priority: 2000, transclude: true, controller: [function(){ }], compile: function (element, attr, transclude) { return function(scope, element, attr, navViewCtrl) { var viewScope, viewLocals, name = attr[directive.name] || attr.name || '', onloadExp = attr.onload || '', initialView = transclude(scope); // Put back the compiled initial view element.append(initialView); // Find the details of the parent view directive (if any) and use it // to derive our own qualified view name, then hang our own details // off the DOM so child directives can find it. var parent = element.parent().inheritedData('$uiView'); if (name.indexOf('@') < 0) name = name + '@' + (parent ? parent.state.name : ''); var view = { name: name, state: null }; element.data('$uiView', view); var eventHook = function() { if (viewIsUpdating) return; viewIsUpdating = true; try { updateView(true); } catch (e) { viewIsUpdating = false; throw e; } viewIsUpdating = false; }; scope.$on('$stateChangeSuccess', eventHook); scope.$on('$viewContentLoading', eventHook); updateView(false); function updateView(doAnimate) { //===false because $animate.enabled() is a noop without angular-animate included if ($animate.enabled() === false) { doAnimate = false; } var locals = $state.$current && $state.$current.locals[name]; if (locals === viewLocals) return; // nothing to do var renderer = $ionicViewService.getRenderer(element, attr, scope); // Destroy previous view scope if (viewScope) { viewScope.$destroy(); viewScope = null; } if (!locals) { viewLocals = null; view.state = null; // Restore the initial view return element.append(initialView); } var newElement = angular.element('<div></div>').html(locals.$template).contents(); var viewRegisterData = renderer().register(newElement); // Remove existing content renderer(doAnimate).leave(); viewLocals = locals; view.state = locals.$$state; renderer(doAnimate).enter(newElement); var link = $compile(newElement); viewScope = scope.$new(); viewScope.$navDirection = viewRegisterData.navDirection; if (locals.$$controller) { locals.$scope = viewScope; var controller = $controller(locals.$$controller, locals); element.children().data('$ngControllerController', controller); } link(viewScope); var viewHistoryData = $ionicViewService._getViewById(viewRegisterData.viewId) || {}; viewScope.$broadcast('$viewContentLoaded', viewHistoryData); if (onloadExp) viewScope.$eval(onloadExp); newElement = null; } }; } }; return directive; }]) /** * @ngdoc directive * @name navClear * @module ionic * @restrict AC * * @description * Disables any transition animations between views, along with removing the back * button which would normally show on the next view. This directive is useful for * links within a sideMenu. * * @usage * Below is an example of a link within a side menu. Tapping this link would disable * any animations which would normally occur between views. * * ```html * <a nav-clear menu-close href="#/home" class="item">Home</a> * ``` */ .directive('navClear', ['$ionicViewService', function($ionicViewService) { return { restrict: 'AC', link: function($scope, $element, $attr) { $element.bind('click', function(){ $ionicViewService.nextViewOptions({ disableAnimate: true, disableBack: true }); }); } }; }]); })(); /* (function() { 'use strict'; angular.module('ionic.ui.virtRepeat', []) .directive('ionVirtRepeat', function() { return { require: ['?ngModel', '^virtualList'], transclude: 'element', priority: 1000, terminal: true, compile: function(element, attr, transclude) { return function($scope, $element, $attr, ctrls) { var virtualList = ctrls[1]; virtualList.listView.renderViewport = function(high, low, start, end) { }; }; } }; }); })(ionic); */ /* (function() { 'use strict'; // Turn the expression supplied to the directive: // // a in b // // into `{ value: "a", collection: "b" }` function parseRepeatExpression(expression){ var match = expression.match(/^\s*([\$\w]+)\s+in\s+(\S*)\s*$/); if (! match) { throw new Error("Expected sfVirtualRepeat in form of '_item_ in _collection_' but got '" + expression + "'."); } return { value: match[1], collection: match[2] }; } // Utility to filter out elements by tag name function isTagNameInList(element, list){ var t, tag = element.tagName.toUpperCase(); for( t = 0; t < list.length; t++ ){ if( list[t] === tag ){ return true; } } return false; } // Utility to find the viewport/content elements given the start element: function findViewportAndContent(startElement){ var root = $rootElement[0]; var e, n; // Somewhere between the grandparent and the root node for( e = startElement.parent().parent()[0]; e !== root; e = e.parentNode ){ // is an element if( e.nodeType != 1 ) break; // that isn't in the blacklist (tables etc.), if( isTagNameInList(e, DONT_WORK_AS_VIEWPORTS) ) continue; // has a single child element (the content), if( e.childElementCount != 1 ) continue; // which is not in the blacklist if( isTagNameInList(e.firstElementChild, DONT_WORK_AS_CONTENT) ) continue; // and no text. for( n = e.firstChild; n; n = n.nextSibling ){ if( n.nodeType == 3 && /\S/g.test(n.textContent) ){ break; } } if( n === null ){ // That element should work as a viewport. return { viewport: angular.element(e), content: angular.element(e.firstElementChild) }; } } throw new Error("No suitable viewport element"); } // Apply explicit height and overflow styles to the viewport element. // // If the viewport has a max-height (inherited or otherwise), set max-height. // Otherwise, set height from the current computed value or use // window.innerHeight as a fallback // function setViewportCss(viewport){ var viewportCss = {'overflow': 'auto'}, style = window.getComputedStyle ? window.getComputedStyle(viewport[0]) : viewport[0].currentStyle, maxHeight = style && style.getPropertyValue('max-height'), height = style && style.getPropertyValue('height'); if( maxHeight && maxHeight !== '0px' ){ viewportCss.maxHeight = maxHeight; }else if( height && height !== '0px' ){ viewportCss.height = height; }else{ viewportCss.height = window.innerHeight; } viewport.css(viewportCss); } // Apply explicit styles to the content element to prevent pesky padding // or borders messing with our calculations: function setContentCss(content){ var contentCss = { margin: 0, padding: 0, border: 0, 'box-sizing': 'border-box' }; content.css(contentCss); } // TODO: compute outerHeight (padding + border unless box-sizing is border) function computeRowHeight(element){ var style = window.getComputedStyle ? window.getComputedStyle(element) : element.currentStyle, maxHeight = style && style.getPropertyValue('max-height'), height = style && style.getPropertyValue('height'); if( height && height !== '0px' && height !== 'auto' ){ $log.info('Row height is "%s" from css height', height); }else if( maxHeight && maxHeight !== '0px' && maxHeight !== 'none' ){ height = maxHeight; $log.info('Row height is "%s" from css max-height', height); }else if( element.clientHeight ){ height = element.clientHeight+'px'; $log.info('Row height is "%s" from client height', height); }else{ throw new Error("Unable to compute height of row"); } angular.element(element).css('height', height); return parseInt(height, 10); } angular.module('ionic.ui.virtualRepeat', []) // // A replacement for ng-repeat that supports virtual lists. // This is not a 1 to 1 replacement for ng-repeat. However, in situations // where you have huge lists, this repeater will work with our virtual // scrolling to only render items that are showing or will be showing // if a scroll is made. // .directive('ionVirtualRepeat', ['$log', function($log) { return { require: ['?ngModel, ^virtualList'], transclude: 'element', priority: 1000, terminal: true, compile: function(element, attr, transclude) { var ident = parseRepeatExpression(attr.sfVirtualRepeat); return function(scope, iterStartElement, attrs, ctrls, b) { var virtualList = ctrls[1]; var rendered = []; var rowHeight = 0; var sticky = false; var dom = virtualList.element; //var dom = findViewportAndContent(iterStartElement); // The list structure is controlled by a few simple (visible) variables: var state = 'ngModel' in attrs ? scope.$eval(attrs.ngModel) : {}; function makeNewScope (idx, collection, containerScope) { var childScope = containerScope.$new(); childScope[ident.value] = collection[idx]; childScope.$index = idx; childScope.$first = (idx === 0); childScope.$last = (idx === (collection.length - 1)); childScope.$middle = !(childScope.$first || childScope.$last); childScope.$watch(function updateChildScopeItem(){ childScope[ident.value] = collection[idx]; }); return childScope; } // Given the collection and a start and end point, add the current function addElements (start, end, collection, containerScope, insPoint) { var frag = document.createDocumentFragment(); var newElements = [], element, idx, childScope; for( idx = start; idx !== end; idx ++ ){ childScope = makeNewScope(idx, collection, containerScope); element = linker(childScope, angular.noop); //setElementCss(element); newElements.push(element); frag.appendChild(element[0]); } insPoint.after(frag); return newElements; } function recomputeActive() { // We want to set the start to the low water mark unless the current // start is already between the low and high water marks. var start = clip(state.firstActive, state.firstVisible - state.lowWater, state.firstVisible - state.highWater); // Similarly for the end var end = clip(state.firstActive + state.active, state.firstVisible + state.visible + state.lowWater, state.firstVisible + state.visible + state.highWater ); state.firstActive = Math.max(0, start); state.active = Math.min(end, state.total) - state.firstActive; } function sfVirtualRepeatOnScroll(evt){ if( !rowHeight ){ return; } // Enter the angular world for the state change to take effect. scope.$apply(function(){ state.firstVisible = Math.floor(evt.target.scrollTop / rowHeight); state.visible = Math.ceil(dom.viewport[0].clientHeight / rowHeight); $log.log('scroll to row %o', state.firstVisible); sticky = evt.target.scrollTop + evt.target.clientHeight >= evt.target.scrollHeight; recomputeActive(); $log.log(' state is now %o', state); $log.log(' sticky = %o', sticky); }); } function sfVirtualRepeatWatchExpression(scope){ var coll = scope.$eval(ident.collection); if( coll.length !== state.total ){ state.total = coll.length; recomputeActive(); } return { start: state.firstActive, active: state.active, len: coll.length }; } function destroyActiveElements (action, count) { var dead, ii, remover = Array.prototype[action]; for( ii = 0; ii < count; ii++ ){ dead = remover.call(rendered); dead.scope().$destroy(); dead.remove(); } } // When the watch expression for the repeat changes, we may need to add // and remove scopes and elements function sfVirtualRepeatListener(newValue, oldValue, scope){ var oldEnd = oldValue.start + oldValue.active, collection = scope.$eval(ident.collection), newElements; if(newValue === oldValue) { $log.info('initial listen'); newElements = addElements(newValue.start, oldEnd, collection, scope, iterStartElement); rendered = newElements; if(rendered.length) { rowHeight = computeRowHeight(newElements[0][0]); } } else { var newEnd = newValue.start + newValue.active; var forward = newValue.start >= oldValue.start; var delta = forward ? newValue.start - oldValue.start : oldValue.start - newValue.start; var endDelta = newEnd >= oldEnd ? newEnd - oldEnd : oldEnd - newEnd; var contiguous = delta < (forward ? oldValue.active : newValue.active); $log.info('change by %o,%o rows %s', delta, endDelta, forward ? 'forward' : 'backward'); if(!contiguous) { $log.info('non-contiguous change'); destroyActiveElements('pop', rendered.length); rendered = addElements(newValue.start, newEnd, collection, scope, iterStartElement); } else { if(forward) { $log.info('need to remove from the top'); destroyActiveElements('shift', delta); } else if(delta) { $log.info('need to add at the top'); newElements = addElements( newValue.start, oldValue.start, collection, scope, iterStartElement); rendered = newElements.concat(rendered); } if(newEnd < oldEnd) { $log.info('need to remove from the bottom'); destroyActiveElements('pop', oldEnd - newEnd); } else if(endDelta) { var lastElement = rendered[rendered.length-1]; $log.info('need to add to the bottom'); newElements = addElements( oldEnd, newEnd, collection, scope, lastElement); rendered = rendered.concat(newElements); } } if(!rowHeight && rendered.length) { rowHeight = computeRowHeight(rendered[0][0]); } dom.content.css({'padding-top': newValue.start * rowHeight + 'px'}); } dom.content.css({'height': newValue.len * rowHeight + 'px'}); if(sticky) { dom.viewport[0].scrollTop = dom.viewport[0].clientHeight + dom.viewport[0].scrollHeight; } } // - The index of the first active element state.firstActive = 0; // - The index of the first visible element state.firstVisible = 0; // - The number of elements visible in the viewport. state.visible = 0; // - The number of active elements state.active = 0; // - The total number of elements state.total = 0; // - The point at which we add new elements state.lowWater = state.lowWater || 100; // - The point at which we remove old elements state.highWater = state.highWater || 300; // TODO: now watch the water marks setContentCss(dom.content); setViewportCss(dom.viewport); // When the user scrolls, we move the `state.firstActive` dom.bind('momentumScrolled', sfVirtualRepeatOnScroll); scope.$on('$destroy', function () { dom.unbind('momentumScrolled', sfVirtualRepeatOnScroll); }); // The watch on the collection is just a watch on the length of the // collection. We don't care if the content changes. scope.$watch(sfVirtualRepeatWatchExpression, sfVirtualRepeatListener, true); }; } }; }]); })(ionic); */ angular.module('ionic.ui.scroll') /** * @ngdoc service * @name $ionicScrollDelegate * @module ionic * @description * Delegate for controlling scrollViews (created by * {@link ionic.directive:ionContent} and * {@link ionic.directive:ionScroll} directives). * * Methods called directly on the $ionicScrollDelegate service will control all scroll * views. Use the {@link ionic.service:$ionicScrollDelegate#$getByHandle $getByHandle} * method to control specific scrollViews. * * @usage * * ```html * <body ng-controller="MainCtrl"> * <ion-content> * <button ng-click="scrollTop()">Scroll to Top!</button> * </ion-content> * </body> * ``` * ```js * function MainCtrl($scope, $ionicScrollDelegate) { * $scope.scrollTop = function() { * $ionicScrollDelegate.scrollTop(); * }; * } * ``` * * Example of advanced usage, with two scroll areas using `delegate-handle` * for fine control. * * ```html * <body ng-controller="MainCtrl"> * <ion-content delegate-handle="mainScroll"> * <button ng-click="scrollMainToTop()"> * Scroll content to top! * </button> * <ion-scroll delegate-handle="small" style="height: 100px;"> * <button ng-click="scrollSmallToTop()"> * Scroll small area to top! * </button> * </ion-scroll> * </ion-content> * </body> * ``` * ```js * function MainCtrl($scope, $ionicScrollDelegate) { * $scope.scrollMainToTop = function() { * $ionicScrollDelegate.$getByHandle('mainScroll').scrollTop(); * }; * $scope.scrollSmallToTop = function() { * $ionicScrollDelegate.$getByHandle('small').scrollTop(); * }; * } * ``` */ .service('$ionicScrollDelegate', delegateService([ /** * @ngdoc method * @name $ionicScrollDelegate#resize * @description Tell the scrollView to recalculate the size of its container. */ 'resize', /** * @ngdoc method * @name $ionicScrollDelegate#scrollTop * @param {boolean=} shouldAnimate Whether the scroll should animate. */ 'scrollTop', /** * @ngdoc method * @name $ionicScrollDelegate#scrollBottom * @param {boolean=} shouldAnimate Whether the scroll should animate. */ 'scrollBottom', /** * @ngdoc method * @name $ionicScrollDelegate#scrollTo * @param {number} left The x-value to scroll to. * @param {number} top The y-value to scroll to. * @param {boolean=} shouldAnimate Whether the scroll should animate. */ 'scrollTo', /** * @ngdoc method * @name $ionicScrollDelegate#scrollBy * @param {number} left The x-offset to scroll by. * @param {number} top The y-offset to scroll by. * @param {boolean=} shouldAnimate Whether the scroll should animate. */ 'scrollBy', /** * @ngdoc method * @name $ionicScrollDelegate#anchorScroll * @description Tell the scrollView to scroll to the element with an id * matching window.location.hash. * * If no matching element is found, it will scroll to top. * * @param {boolean=} shouldAnimate Whether the scroll should animate. */ 'anchorScroll', /** * @ngdoc method * @name $ionicScrollDelegate#rememberScrollPosition * @description * Will make it so, when this scrollView is destroyed (user leaves the page), * the last scroll position the page was on will be saved, indexed by the * given id. * * Note: for pages associated with a view under an ion-nav-view, * rememberScrollPosition automatically saves their scroll. * * Related methods: scrollToRememberedPosition, forgetScrollPosition (below). * * In the following example, the scroll position of the ion-scroll element * will persist, even when the user changes the toggle switch. * * ```html * <ion-toggle ng-model="shouldShowScrollView"></ion-toggle> * <ion-scroll delegate-handle="myScroll" ng-if="shouldShowScrollView"> * <div ng-controller="ScrollCtrl"> * <ion-list> * <ion-item ng-repeat="i in items">{{i}}</ion-item> * </ion-list> * </div> * </ion-scroll> * ``` * ```js * function ScrollCtrl($scope, $ionicScrollDelegate) { * var delegate = $ionicScrollDelegate.$getByHandle('myScroll'); * * // Put any unique ID here. The point of this is: every time the controller is recreated * // we want to load the correct remembered scroll values. * delegate.rememberScrollPosition('my-scroll-id'); * delegate.scrollToRememberedPosition(); * $scope.items = []; * for (var i=0; i<100; i++) { * $scope.items.push(i); * } * } * ``` * * @param {string} id The id to remember the scroll position of this * scrollView by. */ 'rememberScrollPosition', /** * @ngdoc method * @name $ionicScrollDelegate#forgetScrollPosition * @description * Stop remembering the scroll position for this scrollView. */ 'forgetScrollPosition', /** * @ngdoc method * @name $ionicScrollDelegate#scrollToRememberedPosition * @description * If this scrollView has an id associated with its scroll position, * (through calling rememberScrollPosition), and that position is remembered, * load the position and scroll to it. * @param {boolean=} shouldAnimate Whether to animate the scroll. */ 'scrollToRememberedPosition' /** * @ngdoc method * @name $ionicScrollDelegate#$getByHandle * @param {string} handle * @returns `delegateInstance` A delegate instance that controls only the * scrollViews with `delegate-handle` matching the given handle. * * Example: `$ionicScrollDelegate.$getByHandle('my-handle').scrollTop();` */ ])) /** * @private */ .factory('$$scrollValueCache', function() { return {}; }) .controller('$ionicScroll', [ '$scope', 'scrollViewOptions', '$timeout', '$window', '$$scrollValueCache', '$location', '$rootScope', '$document', '$ionicScrollDelegate', function($scope, scrollViewOptions, $timeout, $window, $$scrollValueCache, $location, $rootScope, $document, $ionicScrollDelegate) { var self = this; this._scrollViewOptions = scrollViewOptions; //for testing var element = this.element = scrollViewOptions.el; var $element = this.$element = angular.element(element); var scrollView = this.scrollView = new ionic.views.Scroll(scrollViewOptions); //Attach self to element as a controller so other directives can require this controller //through `require: '$ionicScroll' //Also attach to parent so that sibling elements can require this ($element.parent().length ? $element.parent() : $element) .data('$$ionicScrollController', this); var deregisterInstance = $ionicScrollDelegate._registerInstance( this, scrollViewOptions.delegateHandle ); if (!angular.isDefined(scrollViewOptions.bouncing)) { ionic.Platform.ready(function() { scrollView.options.bouncing = !ionic.Platform.isAndroid(); }); } var resize = angular.bind(scrollView, scrollView.resize); ionic.on('resize', resize, $window); // set by rootScope listener if needed var backListenDone = angular.noop; $scope.$on('$destroy', function() { deregisterInstance(); ionic.off('resize', resize, $window); $window.removeEventListener('resize', resize); backListenDone(); if (self._rememberScrollId) { $$scrollValueCache[self._rememberScrollId] = scrollView.getValues(); } }); $element.on('scroll', function(e) { var detail = (e.originalEvent || e).detail || {}; $scope.$onScroll && $scope.$onScroll({ event: e, scrollTop: detail.scrollTop || 0, scrollLeft: detail.scrollLeft || 0 }); }); $scope.$on('$viewContentLoaded', function(e, historyData) { //only the top-most scroll area under a view should remember that view's //scroll position if (e.defaultPrevented) { return; } e.preventDefault(); var viewId = historyData && historyData.viewId; if (viewId) { self.rememberScrollPosition(viewId); self.scrollToRememberedPosition(); backListenDone = $rootScope.$on('$viewHistory.viewBack', function(e, fromViewId, toViewId) { //When going back from this view, forget its saved scroll position if (viewId === fromViewId) { self.forgetScrollPosition(); } }); } }); $timeout(function() { scrollView.run(); }); this._rememberScrollId = null; this.resize = function() { return $timeout(resize); }; this.scrollTop = function(shouldAnimate) { this.resize().then(function() { scrollView.scrollTo(0, 0, !!shouldAnimate); }); }; this.scrollBottom = function(shouldAnimate) { this.resize().then(function() { var max = scrollView.getScrollMax(); scrollView.scrollTo(max.left, max.top, !!shouldAnimate); }); }; this.scrollTo = function(left, top, shouldAnimate) { this.resize().then(function() { scrollView.scrollTo(left, top, !!shouldAnimate); }); }; this.scrollBy = function(left, top, shouldAnimate) { this.resize().then(function() { scrollView.scrollBy(left, top, !!shouldAnimate); }); }; this.anchorScroll = function(shouldAnimate) { this.resize().then(function() { var hash = $location.hash(); var elm = hash && $document[0].getElementById(hash); if (hash && elm) { var scroll = ionic.DomUtil.getPositionInParent(elm, self.$element); scrollView.scrollTo(scroll.left, scroll.top, !!shouldAnimate); } else { scrollView.scrollTo(0,0, !!shouldAnimate); } }); }; this.rememberScrollPosition = function(id) { if (!id) { throw new Error("Must supply an id to remember the scroll by!"); } this._rememberScrollId = id; }; this.forgetScrollPosition = function() { delete $$scrollValueCache[this._rememberScrollId]; this._rememberScrollId = null; }; this.scrollToRememberedPosition = function(shouldAnimate) { var values = $$scrollValueCache[this._rememberScrollId]; if (values) { this.resize().then(function() { scrollView.scrollTo(+values.left, +values.top, shouldAnimate); }); } }; /** * @private */ this._setRefresher = function(refresherScope, refresherElement) { var refresher = this.refresher = refresherElement; var refresherHeight = self.refresher.clientHeight || 0; scrollView.activatePullToRefresh(refresherHeight, function() { refresher.classList.add('active'); refresherScope.$onPulling(); }, function() { refresher.classList.remove('refreshing'); refresher.classList.remove('active'); }, function() { refresher.classList.add('refreshing'); refresherScope.$onRefresh(); }); }; }]); })();
yhyuan/ionic-weather
www/lib/js/ionic-angular.js
JavaScript
mit
192,912
package net.sf.jabref.logic.layout.format; import net.sf.jabref.logic.layout.LayoutFormatter; import org.junit.Assert; import org.junit.Test; public class LastPageTest { @Test public void testFormatEmpty() { LayoutFormatter a = new LastPage(); Assert.assertEquals("", a.format("")); } @Test public void testFormatNull() { LayoutFormatter a = new LastPage(); Assert.assertEquals("", a.format(null)); } @Test public void testFormatSinglePage() { LayoutFormatter a = new LastPage(); Assert.assertEquals("345", a.format("345")); } @Test public void testFormatSingleDash() { LayoutFormatter a = new LastPage(); Assert.assertEquals("350", a.format("345-350")); } @Test public void testFormatDoubleDash() { LayoutFormatter a = new LastPage(); Assert.assertEquals("350", a.format("345--350")); } @Test public void testFinalCoverageCase() { LayoutFormatter a = new LastPage(); Assert.assertEquals("", a.format("--")); } }
grimes2/jabref
src/test/java/net/sf/jabref/logic/layout/format/LastPageTest.java
Java
mit
1,090
var searchData= [ ['empty',['Empty',['../classv8_1_1String.html#aa393d47baa54467fe57001065e49194b',1,'v8::String']]], ['endofstream',['EndOfStream',['../classv8_1_1OutputStream.html#a6c5c308367fc5776bcbedff0e94d6049',1,'v8::OutputStream']]], ['enqueuemicrotask',['EnqueueMicrotask',['../classv8_1_1Isolate.html#a79a222a1a662d08479d5a1880c6793c5',1,'v8::Isolate::EnqueueMicrotask(Local&lt; Function &gt; microtask)'],['../classv8_1_1Isolate.html#ad4d6c7dfdfc6c1bc857841de7e9967c3',1,'v8::Isolate::EnqueueMicrotask(MicrotaskCallback microtask, void *data=NULL)']]], ['enter',['Enter',['../classv8_1_1Isolate.html#aec80bb49b6b7647ff75e8f2cc9484ea3',1,'v8::Isolate::Enter()'],['../classv8_1_1Context.html#a6995c49d9897eb49053f07874b825133',1,'v8::Context::Enter()']]], ['escape',['Escape',['../classv8_1_1EscapableHandleScope.html#afdf0d3850978f65d1a827f78b3a2b6fd',1,'v8::EscapableHandleScope']]], ['exception',['Exception',['../classv8_1_1TryCatch.html#a99c425f29b3355b4294cbe762377f99b',1,'v8::TryCatch']]], ['exit',['Exit',['../classv8_1_1Isolate.html#a64a8503cafd00d1d2cadfbb0c2345054',1,'v8::Isolate::Exit()'],['../classv8_1_1Context.html#a2db09d4fefb26023a40d88972a4c1599',1,'v8::Context::Exit()']]], ['externalize',['Externalize',['../classv8_1_1ArrayBuffer.html#a8b90b72486cfacb4fbec157f4803f889',1,'v8::ArrayBuffer::Externalize()'],['../classv8_1_1SharedArrayBuffer.html#afe025bbf668e64439cfc0044b353eb41',1,'v8::SharedArrayBuffer::Externalize()']]] ];
v8-dox/v8-dox.github.io
aa575b8/html/search/functions_4.js
JavaScript
mit
1,475
<!DOCTYPE html> <html lang="en"> <head> <title>three.js webgl - gpgpu - water</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> <style> body { background-color: #000000; margin: 0px; overflow: hidden; font-family:Monospace; font-size:13px; text-align:center; text-align:center; } a { color:#0078ff; } #info { color: #ffffff; position: absolute; top: 10px; width: 100%; } </style> </head> <body> <div id="info"> <a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> - <span id="waterSize"></span> webgl gpgpu water<br/> Select <span id="options"></span> water size<br/> Move mouse to disturb water.<br> Press mouse button to orbit around. 'W' key toggles wireframe. </div> <script src="../build/three.js"></script> <script src="js/Detector.js"></script> <script src="js/libs/stats.min.js"></script> <script src="js/libs/dat.gui.min.js"></script> <script src="js/controls/OrbitControls.js"></script> <script src="js/SimplexNoise.js"></script> <script src="js/GPUComputationRenderer.js"></script> <!-- This is the 'compute shader' for the water heightmap: --> <script id="heightmapFragmentShader" type="x-shader/x-fragment"> #include <common> uniform vec2 mousePos; uniform float mouseSize; uniform float viscosityConstant; #define deltaTime ( 1.0 / 60.0 ) #define GRAVITY_CONSTANT ( resolution.x * deltaTime * 3.0 ) void main() { vec2 cellSize = 1.0 / resolution.xy; vec2 uv = gl_FragCoord.xy * cellSize; // heightmapValue.x == height // heightmapValue.y == velocity // heightmapValue.z, heightmapValue.w not used vec4 heightmapValue = texture2D( heightmap, uv ); // Get neighbours vec4 north = texture2D( heightmap, uv + vec2( 0.0, cellSize.y ) ); vec4 south = texture2D( heightmap, uv + vec2( 0.0, - cellSize.y ) ); vec4 east = texture2D( heightmap, uv + vec2( cellSize.x, 0.0 ) ); vec4 west = texture2D( heightmap, uv + vec2( - cellSize.x, 0.0 ) ); float sump = north.x + south.x + east.x + west.x - 4.0 * heightmapValue.x; float accel = sump * GRAVITY_CONSTANT; // Dynamics heightmapValue.y += accel; heightmapValue.x += heightmapValue.y * deltaTime; // Viscosity heightmapValue.x += sump * viscosityConstant; // Mouse influence float mousePhase = clamp( length( ( uv - vec2( 0.5 ) ) * BOUNDS - vec2( mousePos.x, - mousePos.y ) ) * PI / mouseSize, 0.0, PI ); heightmapValue.x += cos( mousePhase ) + 1.0; gl_FragColor = heightmapValue; } </script> <!-- This is just a smoothing 'compute shader' for using manually: --> <script id="smoothFragmentShader" type="x-shader/x-fragment"> uniform sampler2D texture; void main() { vec2 cellSize = 1.0 / resolution.xy; vec2 uv = gl_FragCoord.xy * cellSize; // Computes the mean of texel and 4 neighbours vec4 textureValue = texture2D( texture, uv ); textureValue += texture2D( texture, uv + vec2( 0.0, cellSize.y ) ); textureValue += texture2D( texture, uv + vec2( 0.0, - cellSize.y ) ); textureValue += texture2D( texture, uv + vec2( cellSize.x, 0.0 ) ); textureValue += texture2D( texture, uv + vec2( - cellSize.x, 0.0 ) ); textureValue /= 5.0; gl_FragColor = textureValue; } </script> <!-- This is the water visualization shader, copied from the MeshPhongMaterial and modified: --> <script id="waterVertexShader" type="x-shader/x-vertex"> uniform sampler2D heightmap; #define PHONG varying vec3 vViewPosition; #ifndef FLAT_SHADED varying vec3 vNormal; #endif #include <common> #include <uv_pars_vertex> #include <uv2_pars_vertex> #include <displacementmap_pars_vertex> #include <envmap_pars_vertex> #include <color_pars_vertex> #include <morphtarget_pars_vertex> #include <skinning_pars_vertex> #include <shadowmap_pars_vertex> #include <logdepthbuf_pars_vertex> #include <clipping_planes_pars_vertex> void main() { vec2 cellSize = vec2( 1.0 / WIDTH, 1.0 / WIDTH ); #include <uv_vertex> #include <uv2_vertex> #include <color_vertex> // # include <beginnormal_vertex> // Compute normal from heightmap vec3 objectNormal = vec3( ( texture2D( heightmap, uv + vec2( - cellSize.x, 0 ) ).x - texture2D( heightmap, uv + vec2( cellSize.x, 0 ) ).x ) * WIDTH / BOUNDS, ( texture2D( heightmap, uv + vec2( 0, - cellSize.y ) ).x - texture2D( heightmap, uv + vec2( 0, cellSize.y ) ).x ) * WIDTH / BOUNDS, 1.0 ); //<beginnormal_vertex> #include <morphnormal_vertex> #include <skinbase_vertex> #include <skinnormal_vertex> #include <defaultnormal_vertex> #ifndef FLAT_SHADED // Normal computed with derivatives when FLAT_SHADED vNormal = normalize( transformedNormal ); #endif //# include <begin_vertex> float heightValue = texture2D( heightmap, uv ).x; vec3 transformed = vec3( position.x, position.y, heightValue ); //<begin_vertex> #include <morphtarget_vertex> #include <skinning_vertex> #include <displacementmap_vertex> #include <project_vertex> #include <logdepthbuf_vertex> #include <clipping_planes_vertex> vViewPosition = - mvPosition.xyz; #include <worldpos_vertex> #include <envmap_vertex> #include <shadowmap_vertex> } </script> <script> if ( ! Detector.webgl ) Detector.addGetWebGLMessage(); var hash = document.location.hash.substr( 1 ); if ( hash ) hash = parseInt( hash, 0 ); // Texture width for simulation var WIDTH = hash || 128; var NUM_TEXELS = WIDTH * WIDTH; // Water size in system units var BOUNDS = 512; var BOUNDS_HALF = BOUNDS * 0.5; var container, stats; var camera, scene, renderer, controls; var mouseMoved = false; var mouseCoords = new THREE.Vector2(); var raycaster = new THREE.Raycaster(); var waterMesh; var meshRay; var gpuCompute; var heightmapVariable; var waterUniforms; var smoothShader; var simplex = new SimplexNoise(); var windowHalfX = window.innerWidth / 2; var windowHalfY = window.innerHeight / 2; document.getElementById( 'waterSize' ).innerText = WIDTH + ' x ' + WIDTH; function change(n) { location.hash = n; location.reload(); return false; } var options = ''; for ( var i = 4; i < 10; i++ ) { var j = Math.pow( 2, i ); options += '<a href="#" onclick="return change(' + j + ')">' + j + 'x' + j + '</a> '; } document.getElementById('options').innerHTML = options; init(); animate(); function init() { container = document.createElement( 'div' ); document.body.appendChild( container ); camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 3000 ); camera.position.set( 0, 200, 350 ); scene = new THREE.Scene(); var sun = new THREE.DirectionalLight( 0xFFFFFF, 1.0 ); sun.position.set( 300, 400, 175 ); scene.add( sun ); var sun2 = new THREE.DirectionalLight( 0x40A040, 0.6 ); sun2.position.set( -100, 350, -200 ); scene.add( sun2 ); renderer = new THREE.WebGLRenderer(); renderer.setPixelRatio( window.devicePixelRatio ); renderer.setSize( window.innerWidth, window.innerHeight ); container.appendChild( renderer.domElement ); controls = new THREE.OrbitControls( camera, renderer.domElement ); stats = new Stats(); container.appendChild( stats.dom ); document.addEventListener( 'mousemove', onDocumentMouseMove, false ); document.addEventListener( 'touchstart', onDocumentTouchStart, false ); document.addEventListener( 'touchmove', onDocumentTouchMove, false ); document.addEventListener( 'keydown', function( event ) { // W Pressed: Toggle wireframe if ( event.keyCode === 87 ) { waterMesh.material.wireframe = ! waterMesh.material.wireframe; waterMesh.material.needsUpdate = true; } } , false ); window.addEventListener( 'resize', onWindowResize, false ); var gui = new dat.GUI(); var effectController = { mouseSize: 20.0, viscosity: 0.03 }; var valuesChanger = function() { heightmapVariable.material.uniforms.mouseSize.value = effectController.mouseSize; heightmapVariable.material.uniforms.viscosityConstant.value = effectController.viscosity; }; gui.add( effectController, "mouseSize", 1.0, 100.0, 1.0 ).onChange( valuesChanger ); gui.add( effectController, "viscosity", 0.0, 0.1, 0.001 ).onChange( valuesChanger ); var buttonSmooth = { smoothWater: function() { smoothWater(); } }; gui.add( buttonSmooth, 'smoothWater' ); initWater(); valuesChanger(); } function initWater() { var materialColor = 0x0040C0; var geometry = new THREE.PlaneBufferGeometry( BOUNDS, BOUNDS, WIDTH - 1, WIDTH -1 ); // material: make a ShaderMaterial clone of MeshPhongMaterial, with customized vertex shader var material = new THREE.ShaderMaterial( { uniforms: THREE.UniformsUtils.merge( [ THREE.ShaderLib[ 'phong' ].uniforms, { heightmap: { value: null } } ] ), vertexShader: document.getElementById( 'waterVertexShader' ).textContent, fragmentShader: THREE.ShaderChunk[ 'meshphong_frag' ] } ); material.lights = true; // Material attributes from MeshPhongMaterial material.color = new THREE.Color( materialColor ); material.specular = new THREE.Color( 0x111111 ); material.shininess = 50; // Sets the uniforms with the material values material.uniforms.diffuse.value = material.color; material.uniforms.specular.value = material.specular; material.uniforms.shininess.value = Math.max( material.shininess, 1e-4 ); material.uniforms.opacity.value = material.opacity; // Defines material.defines.WIDTH = WIDTH.toFixed( 1 ); material.defines.BOUNDS = BOUNDS.toFixed( 1 ); waterUniforms = material.uniforms; waterMesh = new THREE.Mesh( geometry, material ); waterMesh.rotation.x = - Math.PI / 2; waterMesh.matrixAutoUpdate = false; waterMesh.updateMatrix(); scene.add( waterMesh ); // Mesh just for mouse raycasting var geometryRay = new THREE.PlaneBufferGeometry( BOUNDS, BOUNDS, 1, 1 ); meshRay = new THREE.Mesh( geometryRay, new THREE.MeshBasicMaterial( { color: 0xFFFFFF, visible: false } ) ); meshRay.rotation.x = - Math.PI / 2; meshRay.matrixAutoUpdate = false; meshRay.updateMatrix(); scene.add( meshRay ); // Creates the gpu computation class and sets it up gpuCompute = new GPUComputationRenderer( WIDTH, WIDTH, renderer ); var heightmap0 = gpuCompute.createTexture(); fillTexture( heightmap0 ); heightmapVariable = gpuCompute.addVariable( "heightmap", document.getElementById( 'heightmapFragmentShader' ).textContent, heightmap0 ); gpuCompute.setVariableDependencies( heightmapVariable, [ heightmapVariable ] ); heightmapVariable.material.uniforms.mousePos = { value: new THREE.Vector2( 10000, 10000 ) }; heightmapVariable.material.uniforms.mouseSize = { value: 20.0 }; heightmapVariable.material.uniforms.viscosityConstant = { value: 0.03 }; heightmapVariable.material.defines.BOUNDS = BOUNDS.toFixed( 1 ); var error = gpuCompute.init(); if ( error !== null ) { console.error( error ); } // Create compute shader to smooth the water surface and velocity smoothShader = gpuCompute.createShaderMaterial( document.getElementById( 'smoothFragmentShader' ).textContent, { texture: { value: null } } ); } function fillTexture( texture ) { var waterMaxHeight = 10; function noise( x, y, z ) { var multR = waterMaxHeight; var mult = 0.025; var r = 0; for ( var i = 0; i < 15; i++ ) { r += multR * simplex.noise( x * mult, y * mult ); multR *= 0.53 + 0.025 * i; mult *= 1.25; } return r; } var pixels = texture.image.data; var p = 0; for ( var j = 0; j < WIDTH; j++ ) { for ( var i = 0; i < WIDTH; i++ ) { var x = i * 128 / WIDTH; var y = j * 128 / WIDTH; pixels[ p + 0 ] = noise( x, y, 123.4 ); pixels[ p + 1 ] = 0; pixels[ p + 2 ] = 0; pixels[ p + 3 ] = 1; p += 4; } } } function smoothWater() { var currentRenderTarget = gpuCompute.getCurrentRenderTarget( heightmapVariable ); var alternateRenderTarget = gpuCompute.getAlternateRenderTarget( heightmapVariable ); for ( var i = 0; i < 10; i++ ) { smoothShader.uniforms.texture.value = currentRenderTarget.texture; gpuCompute.doRenderTarget( smoothShader, alternateRenderTarget ); smoothShader.uniforms.texture.value = alternateRenderTarget.texture; gpuCompute.doRenderTarget( smoothShader, currentRenderTarget ); } } function onWindowResize() { windowHalfX = window.innerWidth / 2; windowHalfY = window.innerHeight / 2; camera.aspect = window.innerWidth / window.innerHeight; camera.updateProjectionMatrix(); renderer.setSize( window.innerWidth, window.innerHeight ); } function setMouseCoords( x, y ) { mouseCoords.set( ( x / renderer.domElement.clientWidth ) * 2 - 1, - ( y / renderer.domElement.clientHeight ) * 2 + 1 ); mouseMoved = true; } function onDocumentMouseMove( event ) { setMouseCoords( event.clientX, event.clientY ); } function onDocumentTouchStart( event ) { if ( event.touches.length === 1 ) { event.preventDefault(); setMouseCoords( event.touches[ 0 ].pageX, event.touches[ 0 ].pageY ); } } function onDocumentTouchMove( event ) { if ( event.touches.length === 1 ) { event.preventDefault(); setMouseCoords( event.touches[ 0 ].pageX, event.touches[ 0 ].pageY ); } } function animate() { requestAnimationFrame( animate ); render(); stats.update(); } function render() { // Set uniforms: mouse interaction var uniforms = heightmapVariable.material.uniforms; if ( mouseMoved ) { this.raycaster.setFromCamera( mouseCoords, camera ); var intersects = this.raycaster.intersectObject( meshRay ); if ( intersects.length > 0 ) { var point = intersects[ 0 ].point; uniforms.mousePos.value.set( point.x, point.z ); } else { uniforms.mousePos.value.set( 10000, 10000 ); } mouseMoved = false; } else { uniforms.mousePos.value.set( 10000, 10000 ); } // Do the gpu computation gpuCompute.compute(); // Get compute output in custom uniform waterUniforms.heightmap.value = gpuCompute.getCurrentRenderTarget( heightmapVariable ).texture; // Render renderer.render( scene, camera ); } </script> </body> </html>
brianchirls/three.js
examples/webgl_gpgpu_water.html
HTML
mit
15,025
/**************************************************************************** Copyright (c) 2008-2010 Ricardo Quesada Copyright (c) 2011-2012 cocos2d-x.org Copyright (c) 2013-2014 Chukong Technologies Inc. Copyright 2011 Jeff Lamarche Copyright 2012 Goffredo Marocchi http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ cc.HashUniformEntry = function (value, location, hh) { this.value = value; this.location = location; this.hh = hh || {}; }; /** * Class that implements a WebGL program * @class * @extends cc.Class */ cc.GLProgram = cc.Class.extend(/** @lends cc.GLProgram# */{ _glContext: null, _programObj: null, _vertShader: null, _fragShader: null, _uniforms: null, _hashForUniforms: null, _usesTime: false, // Uniform cache _updateUniformLocation: function (location, data, bytes) { if (location == null) return false; var updated = true; var element = null; for (var i = 0; i < this._hashForUniforms.length; i++) if (this._hashForUniforms[i].location == location) element = this._hashForUniforms[i]; if (!element) { element = new cc.HashUniformEntry(); // key element.location = location; // value element.value = data; this._hashForUniforms.push(element); } else { if (element.value == data) updated = false; else element.value = data; } return updated; }, _description: function () { return "<CCGLProgram = " + this.toString() + " | Program = " + this._programObj.toString() + ", VertexShader = " + this._vertShader.toString() + ", FragmentShader = " + this._fragShader.toString() + ">"; }, _compileShader: function (shader, type, source) { if (!source || !shader) return false; var preStr = cc.GLProgram._isHighpSupported() ? "precision highp float;\n" : "precision mediump float;\n"; source = preStr + "uniform mat4 CC_PMatrix; \n" + "uniform mat4 CC_MVMatrix; \n" + "uniform mat4 CC_MVPMatrix; \n" + "uniform vec4 CC_Time; \n" + "uniform vec4 CC_SinTime; \n" + "uniform vec4 CC_CosTime; \n" + "uniform vec4 CC_Random01; \n" + "uniform sampler2D CC_Texture0; \n" + "//CC INCLUDES END \n" + source; this._glContext.shaderSource(shader, source); this._glContext.compileShader(shader); var status = this._glContext.getShaderParameter(shader, this._glContext.COMPILE_STATUS); if (!status) { cc.log("cocos2d: ERROR: Failed to compile shader:\n" + this._glContext.getShaderSource(shader)); if (type === this._glContext.VERTEX_SHADER) cc.log("cocos2d: \n" + this.vertexShaderLog()); else cc.log("cocos2d: \n" + this.fragmentShaderLog()); } return ( status === true ); }, /** * Create a cc.GLProgram object * @param {String} vShaderFileName * @param {String} fShaderFileName * @returns {cc.GLProgram} */ ctor: function (vShaderFileName, fShaderFileName, glContext) { this._uniforms = []; this._hashForUniforms = []; this._glContext = glContext || cc._renderContext; vShaderFileName && fShaderFileName && this.init(vShaderFileName, fShaderFileName); }, /** * destroy program */ destroyProgram: function () { this._vertShader = null; this._fragShader = null; this._uniforms = null; this._hashForUniforms = null; this._glContext.deleteProgram(this._programObj); }, /** * Initializes the cc.GLProgram with a vertex and fragment with string * @param {String} vertShaderStr * @param {String} fragShaderStr * @return {Boolean} */ initWithVertexShaderByteArray: function (vertShaderStr, fragShaderStr) { var locGL = this._glContext; this._programObj = locGL.createProgram(); //cc.checkGLErrorDebug(); this._vertShader = null; this._fragShader = null; if (vertShaderStr) { this._vertShader = locGL.createShader(locGL.VERTEX_SHADER); if (!this._compileShader(this._vertShader, locGL.VERTEX_SHADER, vertShaderStr)) { cc.log("cocos2d: ERROR: Failed to compile vertex shader"); } } // Create and compile fragment shader if (fragShaderStr) { this._fragShader = locGL.createShader(locGL.FRAGMENT_SHADER); if (!this._compileShader(this._fragShader, locGL.FRAGMENT_SHADER, fragShaderStr)) { cc.log("cocos2d: ERROR: Failed to compile fragment shader"); } } if (this._vertShader) locGL.attachShader(this._programObj, this._vertShader); cc.checkGLErrorDebug(); if (this._fragShader) locGL.attachShader(this._programObj, this._fragShader); this._hashForUniforms.length = 0; cc.checkGLErrorDebug(); return true; }, /** * Initializes the cc.GLProgram with a vertex and fragment with string * @param {String} vertShaderStr * @param {String} fragShaderStr * @return {Boolean} */ initWithString: function (vertShaderStr, fragShaderStr) { return this.initWithVertexShaderByteArray(vertShaderStr, fragShaderStr); }, /** * Initializes the CCGLProgram with a vertex and fragment with contents of filenames * @param {String} vShaderFilename * @param {String} fShaderFileName * @return {Boolean} */ initWithVertexShaderFilename: function (vShaderFilename, fShaderFileName) { var vertexSource = cc.loader.getRes(vShaderFilename); if(!vertexSource) throw "Please load the resource firset : " + vShaderFilename; var fragmentSource = cc.loader.getRes(fShaderFileName); if(!fragmentSource) throw "Please load the resource firset : " + fShaderFileName; return this.initWithVertexShaderByteArray(vertexSource, fragmentSource); }, /** * Initializes the CCGLProgram with a vertex and fragment with contents of filenames * @param {String} vShaderFilename * @param {String} fShaderFileName * @return {Boolean} */ init: function (vShaderFilename, fShaderFileName) { return this.initWithVertexShaderFilename(vShaderFilename, fShaderFileName); }, /** * It will add a new attribute to the shader * @param {String} attributeName * @param {Number} index */ addAttribute: function (attributeName, index) { this._glContext.bindAttribLocation(this._programObj, index, attributeName); }, /** * links the glProgram * @return {Boolean} */ link: function () { if(!this._programObj) { cc.log("cc.GLProgram.link(): Cannot link invalid program"); return false; } this._glContext.linkProgram(this._programObj); if (this._vertShader) this._glContext.deleteShader(this._vertShader); if (this._fragShader) this._glContext.deleteShader(this._fragShader); this._vertShader = null; this._fragShader = null; if (cc.game.config[cc.game.CONFIG_KEY.debugMode]) { var status = this._glContext.getProgramParameter(this._programObj, this._glContext.LINK_STATUS); if (!status) { cc.log("cocos2d: ERROR: Failed to link program: " + this._glContext.getProgramInfoLog(this._programObj)); cc.glDeleteProgram(this._programObj); this._programObj = null; return false; } } return true; }, /** * it will call glUseProgram() */ use: function () { cc.glUseProgram(this._programObj); }, /** * It will create 4 uniforms: * cc.UNIFORM_PMATRIX * cc.UNIFORM_MVMATRIX * cc.UNIFORM_MVPMATRIX * cc.UNIFORM_SAMPLER */ updateUniforms: function () { this._uniforms[cc.UNIFORM_PMATRIX] = this._glContext.getUniformLocation(this._programObj, cc.UNIFORM_PMATRIX_S); this._uniforms[cc.UNIFORM_MVMATRIX] = this._glContext.getUniformLocation(this._programObj, cc.UNIFORM_MVMATRIX_S); this._uniforms[cc.UNIFORM_MVPMATRIX] = this._glContext.getUniformLocation(this._programObj, cc.UNIFORM_MVPMATRIX_S); this._uniforms[cc.UNIFORM_TIME] = this._glContext.getUniformLocation(this._programObj, cc.UNIFORM_TIME_S); this._uniforms[cc.UNIFORM_SINTIME] = this._glContext.getUniformLocation(this._programObj, cc.UNIFORM_SINTIME_S); this._uniforms[cc.UNIFORM_COSTIME] = this._glContext.getUniformLocation(this._programObj, cc.UNIFORM_COSTIME_S); this._usesTime = (this._uniforms[cc.UNIFORM_TIME] != null || this._uniforms[cc.UNIFORM_SINTIME] != null || this._uniforms[cc.UNIFORM_COSTIME] != null); this._uniforms[cc.UNIFORM_RANDOM01] = this._glContext.getUniformLocation(this._programObj, cc.UNIFORM_RANDOM01_S); this._uniforms[cc.UNIFORM_SAMPLER] = this._glContext.getUniformLocation(this._programObj, cc.UNIFORM_SAMPLER_S); this.use(); // Since sample most probably won't change, set it to 0 now. this.setUniformLocationWith1i(this._uniforms[cc.UNIFORM_SAMPLER], 0); }, /** * calls retrieves the named uniform location for this shader program. * @param {String} name * @returns {Number} */ getUniformLocationForName:function(name){ if(!name) throw "cc.GLProgram.getUniformLocationForName(): uniform name should be non-null"; if(!this._programObj) throw "cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized"; return this._glContext.getUniformLocation(this._programObj, name); }, /** * get uniform MVP matrix * @returns {WebGLUniformLocation} */ getUniformMVPMatrix: function () { return this._uniforms[cc.UNIFORM_MVPMATRIX]; }, /** * get uniform sampler * @returns {WebGLUniformLocation} */ getUniformSampler: function () { return this._uniforms[cc.UNIFORM_SAMPLER]; }, /** * calls glUniform1i only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Number} i1 */ setUniformLocationWith1i: function (location, i1) { var updated = this._updateUniformLocation(location, i1); if (updated) this._glContext.uniform1i(location, i1); }, /** * calls glUniform2i only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Number} i1 * @param {Number} i2 */ setUniformLocationWith2i:function(location, i1,i2){ var intArray= [i1,i2]; var updated = this._updateUniformLocation(location, intArray); if( updated ) this._glContext.uniform2i(location, i1, i2); }, /** * calls glUniform3i only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Number} i1 * @param {Number} i2 * @param {Number} i3 */ setUniformLocationWith3i:function(location, i1, i2, i3){ var intArray = [i1,i2,i3]; var updated = this._updateUniformLocation(location, intArray); if( updated ) this._glContext.uniform3i(location, i1, i2, i3); }, /** * calls glUniform4i only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Number} i1 * @param {Number} i2 * @param {Number} i3 * @param {Number} i4 */ setUniformLocationWith4i:function(location, i1, i2, i3, i4){ var intArray = [i1,i2,i3,i4]; var updated = this._updateUniformLocation(location, intArray); if( updated ) this._glContext.uniform4i(location, i1, i2, i3, i4); }, /** * calls glUniform2iv only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Int32Array} intArray * @param {Number} numberOfArrays */ setUniformLocationWith2iv:function(location, intArray, numberOfArrays){ var updated = this._updateUniformLocation(location, intArray); if( updated ) this._glContext.uniform2iv(location, intArray); }, /** * calls glUniform3iv only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Int32Array} intArray * @param {Number} numberOfArrays */ setUniformLocationWith3iv:function(location, intArray, numberOfArrays){ var updated = this._updateUniformLocation(location, intArray); if( updated ) this._glContext.uniform3iv(location, intArray); }, /** * calls glUniform4iv only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Int32Array} intArray * @param {Number} numberOfArrays */ setUniformLocationWith4iv:function(location, intArray, numberOfArrays){ var updated = this._updateUniformLocation(location, intArray); if( updated ) this._glContext.uniform4iv(location, intArray); }, /** * calls glUniform1i only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Number} i1 */ setUniformLocationI32: function (location, i1) { this.setUniformLocationWith1i(arguments[0], arguments[1]); }, /** * calls glUniform1f only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Number} f1 */ setUniformLocationWith1f: function (location, f1) { var updated = this._updateUniformLocation(location, f1); if (updated) this._glContext.uniform1f(location, f1); }, /** * calls glUniform2f only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Number} f1 * @param {Number} f2 */ setUniformLocationWith2f: function (location, f1, f2) { var floats = [f1, f2]; var updated = this._updateUniformLocation(location, floats); if (updated) this._glContext.uniform2f(location, f1, f2); }, /** * calls glUniform3f only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Number} f1 * @param {Number} f2 * @param {Number} f3 */ setUniformLocationWith3f: function (location, f1, f2, f3) { var floats = [f1, f2, f3]; var updated = this._updateUniformLocation(location, floats); if (updated) this._glContext.uniform3f(location, f1, f2, f3); }, /** * calls glUniform4f only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Number} f1 * @param {Number} f2 * @param {Number} f3 * @param {Number} f4 */ setUniformLocationWith4f: function (location, f1, f2, f3, f4) { var floats = [f1, f2, f3, f4]; var updated = this._updateUniformLocation(location, floats); if (updated) this._glContext.uniform4f(location, f1, f2, f3, f4); }, /** * calls glUniform2fv only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Float32Array} floatArray * @param {Number} numberOfArrays */ setUniformLocationWith2fv: function (location, floatArray, numberOfArrays) { var updated = this._updateUniformLocation(location, floatArray); if (updated) this._glContext.uniform2fv(location, floatArray); }, /** * calls glUniform3fv only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Float32Array} floatArray * @param {Number} numberOfArrays */ setUniformLocationWith3fv: function (location, floatArray, numberOfArrays) { var updated = this._updateUniformLocation(location, floatArray); if (updated) this._glContext.uniform3fv(location, floatArray); }, /** * calls glUniform4fv only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Float32Array} floatArray * @param {Number} numberOfArrays */ setUniformLocationWith4fv: function (location, floatArray, numberOfArrays) { var updated = this._updateUniformLocation(location, floatArray); if (updated) this._glContext.uniform4fv(location, floatArray); }, /** * calls glUniformMatrix4fv only if the values are different than the previous call for this same shader program. * @param {WebGLUniformLocation} location * @param {Float32Array} matrixArray * @param {Number} numberOfMatrices */ setUniformLocationWithMatrix4fv: function (location, matrixArray, numberOfMatrices) { var updated = this._updateUniformLocation(location, matrixArray); if (updated) this._glContext.uniformMatrix4fv(location, false, matrixArray); }, setUniformLocationF32: function () { if (arguments.length < 2) return; switch (arguments.length) { case 2: this.setUniformLocationWith1f(arguments[0], arguments[1]); break; case 3: this.setUniformLocationWith2f(arguments[0], arguments[1], arguments[2]); break; case 4: this.setUniformLocationWith3f(arguments[0], arguments[1], arguments[2], arguments[3]); break; case 5: this.setUniformLocationWith4f(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]); break; } }, /** * will update the builtin uniforms if they are different than the previous call for this same shader program. */ setUniformsForBuiltins: function () { var matrixP = new cc.math.Matrix4(); var matrixMV = new cc.math.Matrix4(); var matrixMVP = new cc.math.Matrix4(); cc.kmGLGetMatrix(cc.KM_GL_PROJECTION, matrixP); cc.kmGLGetMatrix(cc.KM_GL_MODELVIEW, matrixMV); cc.kmMat4Multiply(matrixMVP, matrixP, matrixMV); this.setUniformLocationWithMatrix4fv(this._uniforms[cc.UNIFORM_PMATRIX], matrixP.mat, 1); this.setUniformLocationWithMatrix4fv(this._uniforms[cc.UNIFORM_MVMATRIX], matrixMV.mat, 1); this.setUniformLocationWithMatrix4fv(this._uniforms[cc.UNIFORM_MVPMATRIX], matrixMVP.mat, 1); if (this._usesTime) { var director = cc.director; // This doesn't give the most accurate global time value. // Cocos2D doesn't store a high precision time value, so this will have to do. // Getting Mach time per frame per shader using time could be extremely expensive. var time = director.getTotalFrames() * director.getAnimationInterval(); this.setUniformLocationWith4f(this._uniforms[cc.UNIFORM_TIME], time / 10.0, time, time * 2, time * 4); this.setUniformLocationWith4f(this._uniforms[cc.UNIFORM_SINTIME], time / 8.0, time / 4.0, time / 2.0, Math.sin(time)); this.setUniformLocationWith4f(this._uniforms[cc.UNIFORM_COSTIME], time / 8.0, time / 4.0, time / 2.0, Math.cos(time)); } if (this._uniforms[cc.UNIFORM_RANDOM01] !== -1) this.setUniformLocationWith4f(this._uniforms[cc.UNIFORM_RANDOM01], Math.random(), Math.random(), Math.random(), Math.random()); }, _setUniformsForBuiltinsForRenderer: function (node) { if(!node || !node._renderCmd) return; var matrixP = new cc.math.Matrix4(); //var matrixMV = new cc.kmMat4(); var matrixMVP = new cc.math.Matrix4(); cc.kmGLGetMatrix(cc.KM_GL_PROJECTION, matrixP); //cc.kmGLGetMatrix(cc.KM_GL_MODELVIEW, node._stackMatrix); cc.kmMat4Multiply(matrixMVP, matrixP, node._renderCmd._stackMatrix); this.setUniformLocationWithMatrix4fv(this._uniforms[cc.UNIFORM_PMATRIX], matrixP.mat, 1); this.setUniformLocationWithMatrix4fv(this._uniforms[cc.UNIFORM_MVMATRIX], node._renderCmd._stackMatrix.mat, 1); this.setUniformLocationWithMatrix4fv(this._uniforms[cc.UNIFORM_MVPMATRIX], matrixMVP.mat, 1); if (this._usesTime) { var director = cc.director; // This doesn't give the most accurate global time value. // Cocos2D doesn't store a high precision time value, so this will have to do. // Getting Mach time per frame per shader using time could be extremely expensive. var time = director.getTotalFrames() * director.getAnimationInterval(); this.setUniformLocationWith4f(this._uniforms[cc.UNIFORM_TIME], time / 10.0, time, time * 2, time * 4); this.setUniformLocationWith4f(this._uniforms[cc.UNIFORM_SINTIME], time / 8.0, time / 4.0, time / 2.0, Math.sin(time)); this.setUniformLocationWith4f(this._uniforms[cc.UNIFORM_COSTIME], time / 8.0, time / 4.0, time / 2.0, Math.cos(time)); } if (this._uniforms[cc.UNIFORM_RANDOM01] !== -1) this.setUniformLocationWith4f(this._uniforms[cc.UNIFORM_RANDOM01], Math.random(), Math.random(), Math.random(), Math.random()); }, /** * will update the MVP matrix on the MVP uniform if it is different than the previous call for this same shader program. */ setUniformForModelViewProjectionMatrix: function () { this._glContext.uniformMatrix4fv(this._uniforms[cc.UNIFORM_MVPMATRIX], false, cc.getMat4MultiplyValue(cc.projection_matrix_stack.top, cc.modelview_matrix_stack.top)); }, setUniformForModelViewProjectionMatrixWithMat4: function (swapMat4) { cc.kmMat4Multiply(swapMat4, cc.projection_matrix_stack.top, cc.modelview_matrix_stack.top); this._glContext.uniformMatrix4fv(this._uniforms[cc.UNIFORM_MVPMATRIX], false, swapMat4.mat); }, setUniformForModelViewAndProjectionMatrixWithMat4: function () { this._glContext.uniformMatrix4fv(this._uniforms[cc.UNIFORM_MVMATRIX], false, cc.modelview_matrix_stack.top.mat); this._glContext.uniformMatrix4fv(this._uniforms[cc.UNIFORM_PMATRIX], false, cc.projection_matrix_stack.top.mat); }, _setUniformForMVPMatrixWithMat4: function(modelViewMatrix){ if(!modelViewMatrix) throw "modelView matrix is undefined."; this._glContext.uniformMatrix4fv(this._uniforms[cc.UNIFORM_MVMATRIX], false, modelViewMatrix.mat); this._glContext.uniformMatrix4fv(this._uniforms[cc.UNIFORM_PMATRIX], false, cc.projection_matrix_stack.top.mat); }, /** * returns the vertexShader error log * @return {String} */ vertexShaderLog: function () { return this._glContext.getShaderInfoLog(this._vertShader); }, /** * returns the vertexShader error log * @return {String} */ getVertexShaderLog: function () { return this._glContext.getShaderInfoLog(this._vertShader); }, /** * returns the fragmentShader error log * @returns {String} */ getFragmentShaderLog: function () { return this._glContext.getShaderInfoLog(this._vertShader); }, /** * returns the fragmentShader error log * @return {String} */ fragmentShaderLog: function () { return this._glContext.getShaderInfoLog(this._fragShader); }, /** * returns the program error log * @return {String} */ programLog: function () { return this._glContext.getProgramInfoLog(this._programObj); }, /** * returns the program error log * @return {String} */ getProgramLog: function () { return this._glContext.getProgramInfoLog(this._programObj); }, /** * reload all shaders, this function is designed for android <br/> * when opengl context lost, so don't call it. */ reset: function () { this._vertShader = null; this._fragShader = null; this._uniforms.length = 0; // it is already deallocated by android //ccGLDeleteProgram(m_uProgram); this._glContext.deleteProgram(this._programObj); this._programObj = null; // Purge uniform hash for (var i = 0; i < this._hashForUniforms.length; i++) { this._hashForUniforms[i].value = null; this._hashForUniforms[i] = null; } this._hashForUniforms.length = 0; }, /** * get WebGLProgram object * @return {WebGLProgram} */ getProgram: function () { return this._programObj; }, /** * Currently JavaScript Bindings (JSB), in some cases, needs to use retain and release. This is a bug in JSB, * and the ugly workaround is to use retain/release. So, these 2 methods were added to be compatible with JSB. * This is a hack, and should be removed once JSB fixes the retain/release bug */ retain: function () { }, release: function () { } }); /** * Create a cc.GLProgram object * @deprecated since v3.0, please use new cc.GLProgram(vShaderFileName, fShaderFileName) instead * @param {String} vShaderFileName * @param {String} fShaderFileName * @returns {cc.GLProgram} */ cc.GLProgram.create = function (vShaderFileName, fShaderFileName) { return new cc.GLProgram(vShaderFileName, fShaderFileName); }; cc.GLProgram._highpSupported = null; cc.GLProgram._isHighpSupported = function(){ if(cc.GLProgram._highpSupported == null){ var ctx = cc._renderContext; var highp = ctx.getShaderPrecisionFormat(ctx.FRAGMENT_SHADER, ctx.HIGH_FLOAT); cc.GLProgram._highpSupported = highp.precision !== 0; } return cc.GLProgram._highpSupported; }; /** * <p> * Sets the shader program for this node * * Since v2.0, each rendering node must set its shader program. * It should be set in initialize phase. * </p> * @function * @param {cc.Node} node * @param {cc.GLProgram} program The shader program which fetches from CCShaderCache. * @example * cc.setGLProgram(node, cc.shaderCache.programForKey(cc.SHADER_POSITION_TEXTURECOLOR)); */ cc.setProgram = function (node, program) { node.shaderProgram = program; var children = node.children; if (!children) return; for (var i = 0; i < children.length; i++) cc.setProgram(children[i], program); };
lishengzxc/hitplane
frameworks/cocos2d-html5/cocos2d/shaders/CCGLProgram.js
JavaScript
mit
28,715
// https://d3js.org/d3-color/ Version 0.5.0. Copyright 2016 Mike Bostock. (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.d3 = global.d3 || {}))); }(this, function (exports) { 'use strict'; function define(constructor, factory, prototype) { constructor.prototype = factory.prototype = prototype; prototype.constructor = constructor; } function extend(parent, definition) { var prototype = Object.create(parent.prototype); for (var key in definition) prototype[key] = definition[key]; return prototype; } function Color() {} var darker = 0.7; var brighter = 1 / darker; var reHex3 = /^#([0-9a-f]{3})$/; var reHex6 = /^#([0-9a-f]{6})$/; var reRgbInteger = /^rgb\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*\)$/; var reRgbPercent = /^rgb\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/; var reRgbaInteger = /^rgba\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/; var reRgbaPercent = /^rgba\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/; var reHslPercent = /^hsl\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/; var reHslaPercent = /^hsla\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/; var named = { aliceblue: 0xf0f8ff, antiquewhite: 0xfaebd7, aqua: 0x00ffff, aquamarine: 0x7fffd4, azure: 0xf0ffff, beige: 0xf5f5dc, bisque: 0xffe4c4, black: 0x000000, blanchedalmond: 0xffebcd, blue: 0x0000ff, blueviolet: 0x8a2be2, brown: 0xa52a2a, burlywood: 0xdeb887, cadetblue: 0x5f9ea0, chartreuse: 0x7fff00, chocolate: 0xd2691e, coral: 0xff7f50, cornflowerblue: 0x6495ed, cornsilk: 0xfff8dc, crimson: 0xdc143c, cyan: 0x00ffff, darkblue: 0x00008b, darkcyan: 0x008b8b, darkgoldenrod: 0xb8860b, darkgray: 0xa9a9a9, darkgreen: 0x006400, darkgrey: 0xa9a9a9, darkkhaki: 0xbdb76b, darkmagenta: 0x8b008b, darkolivegreen: 0x556b2f, darkorange: 0xff8c00, darkorchid: 0x9932cc, darkred: 0x8b0000, darksalmon: 0xe9967a, darkseagreen: 0x8fbc8f, darkslateblue: 0x483d8b, darkslategray: 0x2f4f4f, darkslategrey: 0x2f4f4f, darkturquoise: 0x00ced1, darkviolet: 0x9400d3, deeppink: 0xff1493, deepskyblue: 0x00bfff, dimgray: 0x696969, dimgrey: 0x696969, dodgerblue: 0x1e90ff, firebrick: 0xb22222, floralwhite: 0xfffaf0, forestgreen: 0x228b22, fuchsia: 0xff00ff, gainsboro: 0xdcdcdc, ghostwhite: 0xf8f8ff, gold: 0xffd700, goldenrod: 0xdaa520, gray: 0x808080, green: 0x008000, greenyellow: 0xadff2f, grey: 0x808080, honeydew: 0xf0fff0, hotpink: 0xff69b4, indianred: 0xcd5c5c, indigo: 0x4b0082, ivory: 0xfffff0, khaki: 0xf0e68c, lavender: 0xe6e6fa, lavenderblush: 0xfff0f5, lawngreen: 0x7cfc00, lemonchiffon: 0xfffacd, lightblue: 0xadd8e6, lightcoral: 0xf08080, lightcyan: 0xe0ffff, lightgoldenrodyellow: 0xfafad2, lightgray: 0xd3d3d3, lightgreen: 0x90ee90, lightgrey: 0xd3d3d3, lightpink: 0xffb6c1, lightsalmon: 0xffa07a, lightseagreen: 0x20b2aa, lightskyblue: 0x87cefa, lightslategray: 0x778899, lightslategrey: 0x778899, lightsteelblue: 0xb0c4de, lightyellow: 0xffffe0, lime: 0x00ff00, limegreen: 0x32cd32, linen: 0xfaf0e6, magenta: 0xff00ff, maroon: 0x800000, mediumaquamarine: 0x66cdaa, mediumblue: 0x0000cd, mediumorchid: 0xba55d3, mediumpurple: 0x9370db, mediumseagreen: 0x3cb371, mediumslateblue: 0x7b68ee, mediumspringgreen: 0x00fa9a, mediumturquoise: 0x48d1cc, mediumvioletred: 0xc71585, midnightblue: 0x191970, mintcream: 0xf5fffa, mistyrose: 0xffe4e1, moccasin: 0xffe4b5, navajowhite: 0xffdead, navy: 0x000080, oldlace: 0xfdf5e6, olive: 0x808000, olivedrab: 0x6b8e23, orange: 0xffa500, orangered: 0xff4500, orchid: 0xda70d6, palegoldenrod: 0xeee8aa, palegreen: 0x98fb98, paleturquoise: 0xafeeee, palevioletred: 0xdb7093, papayawhip: 0xffefd5, peachpuff: 0xffdab9, peru: 0xcd853f, pink: 0xffc0cb, plum: 0xdda0dd, powderblue: 0xb0e0e6, purple: 0x800080, rebeccapurple: 0x663399, red: 0xff0000, rosybrown: 0xbc8f8f, royalblue: 0x4169e1, saddlebrown: 0x8b4513, salmon: 0xfa8072, sandybrown: 0xf4a460, seagreen: 0x2e8b57, seashell: 0xfff5ee, sienna: 0xa0522d, silver: 0xc0c0c0, skyblue: 0x87ceeb, slateblue: 0x6a5acd, slategray: 0x708090, slategrey: 0x708090, snow: 0xfffafa, springgreen: 0x00ff7f, steelblue: 0x4682b4, tan: 0xd2b48c, teal: 0x008080, thistle: 0xd8bfd8, tomato: 0xff6347, turquoise: 0x40e0d0, violet: 0xee82ee, wheat: 0xf5deb3, white: 0xffffff, whitesmoke: 0xf5f5f5, yellow: 0xffff00, yellowgreen: 0x9acd32 }; define(Color, color, { displayable: function() { return this.rgb().displayable(); }, toString: function() { return this.rgb() + ""; } }); function color(format) { var m; format = (format + "").trim().toLowerCase(); return (m = reHex3.exec(format)) ? (m = parseInt(m[1], 16), new Rgb((m >> 8 & 0xf) | (m >> 4 & 0x0f0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1)) // #f00 : (m = reHex6.exec(format)) ? rgbn(parseInt(m[1], 16)) // #ff0000 : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0) : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%) : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1) : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1) : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%) : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1) : named.hasOwnProperty(format) ? rgbn(named[format]) : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null; } function rgbn(n) { return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1); } function rgba(r, g, b, a) { if (a <= 0) r = g = b = NaN; return new Rgb(r, g, b, a); } function rgbConvert(o) { if (!(o instanceof Color)) o = color(o); if (!o) return new Rgb; o = o.rgb(); return new Rgb(o.r, o.g, o.b, o.opacity); } function rgb(r, g, b, opacity) { return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity); } function Rgb(r, g, b, opacity) { this.r = +r; this.g = +g; this.b = +b; this.opacity = +opacity; } define(Rgb, rgb, extend(Color, { brighter: function(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, darker: function(k) { k = k == null ? darker : Math.pow(darker, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, rgb: function() { return this; }, displayable: function() { return (0 <= this.r && this.r <= 255) && (0 <= this.g && this.g <= 255) && (0 <= this.b && this.b <= 255) && (0 <= this.opacity && this.opacity <= 1); }, toString: function() { var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a)); return (a === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a === 1 ? ")" : ", " + a + ")"); } })); function hsla(h, s, l, a) { if (a <= 0) h = s = l = NaN; else if (l <= 0 || l >= 1) h = s = NaN; else if (s <= 0) h = NaN; return new Hsl(h, s, l, a); } function hslConvert(o) { if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity); if (!(o instanceof Color)) o = color(o); if (!o) return new Hsl; if (o instanceof Hsl) return o; o = o.rgb(); var r = o.r / 255, g = o.g / 255, b = o.b / 255, min = Math.min(r, g, b), max = Math.max(r, g, b), h = NaN, s = max - min, l = (max + min) / 2; if (s) { if (r === max) h = (g - b) / s + (g < b) * 6; else if (g === max) h = (b - r) / s + 2; else h = (r - g) / s + 4; s /= l < 0.5 ? max + min : 2 - max - min; h *= 60; } else { s = l > 0 && l < 1 ? 0 : h; } return new Hsl(h, s, l, o.opacity); } function hsl(h, s, l, opacity) { return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity); } function Hsl(h, s, l, opacity) { this.h = +h; this.s = +s; this.l = +l; this.opacity = +opacity; } define(Hsl, hsl, extend(Color, { brighter: function(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, darker: function(k) { k = k == null ? darker : Math.pow(darker, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, rgb: function() { var h = this.h % 360 + (this.h < 0) * 360, s = isNaN(h) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < 0.5 ? l : 1 - l) * s, m1 = 2 * l - m2; return new Rgb( hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity ); }, displayable: function() { return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1); } })); /* From FvD 13.37, CSS Color Module Level 3 */ function hsl2rgb(h, m1, m2) { return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255; } var deg2rad = Math.PI / 180; var rad2deg = 180 / Math.PI; var Kn = 18; var Xn = 0.950470; var Yn = 1; var Zn = 1.088830; var t0 = 4 / 29; var t1 = 6 / 29; var t2 = 3 * t1 * t1; var t3 = t1 * t1 * t1; function labConvert(o) { if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity); if (o instanceof Hcl) { var h = o.h * deg2rad; return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity); } if (!(o instanceof Rgb)) o = rgbConvert(o); var b = rgb2xyz(o.r), a = rgb2xyz(o.g), l = rgb2xyz(o.b), x = xyz2lab((0.4124564 * b + 0.3575761 * a + 0.1804375 * l) / Xn), y = xyz2lab((0.2126729 * b + 0.7151522 * a + 0.0721750 * l) / Yn), z = xyz2lab((0.0193339 * b + 0.1191920 * a + 0.9503041 * l) / Zn); return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity); } function lab(l, a, b, opacity) { return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity); } function Lab(l, a, b, opacity) { this.l = +l; this.a = +a; this.b = +b; this.opacity = +opacity; } define(Lab, lab, extend(Color, { brighter: function(k) { return new Lab(this.l + Kn * (k == null ? 1 : k), this.a, this.b, this.opacity); }, darker: function(k) { return new Lab(this.l - Kn * (k == null ? 1 : k), this.a, this.b, this.opacity); }, rgb: function() { var y = (this.l + 16) / 116, x = isNaN(this.a) ? y : y + this.a / 500, z = isNaN(this.b) ? y : y - this.b / 200; y = Yn * lab2xyz(y); x = Xn * lab2xyz(x); z = Zn * lab2xyz(z); return new Rgb( xyz2rgb( 3.2404542 * x - 1.5371385 * y - 0.4985314 * z), // D65 -> sRGB xyz2rgb(-0.9692660 * x + 1.8760108 * y + 0.0415560 * z), xyz2rgb( 0.0556434 * x - 0.2040259 * y + 1.0572252 * z), this.opacity ); } })); function xyz2lab(t) { return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0; } function lab2xyz(t) { return t > t1 ? t * t * t : t2 * (t - t0); } function xyz2rgb(x) { return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055); } function rgb2xyz(x) { return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4); } function hclConvert(o) { if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity); if (!(o instanceof Lab)) o = labConvert(o); var h = Math.atan2(o.b, o.a) * rad2deg; return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity); } function hcl(h, c, l, opacity) { return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity); } function Hcl(h, c, l, opacity) { this.h = +h; this.c = +c; this.l = +l; this.opacity = +opacity; } define(Hcl, hcl, extend(Color, { brighter: function(k) { return new Hcl(this.h, this.c, this.l + Kn * (k == null ? 1 : k), this.opacity); }, darker: function(k) { return new Hcl(this.h, this.c, this.l - Kn * (k == null ? 1 : k), this.opacity); }, rgb: function() { return labConvert(this).rgb(); } })); var A = -0.14861; var B = +1.78277; var C = -0.29227; var D = -0.90649; var E = +1.97294; var ED = E * D; var EB = E * B; var BC_DA = B * C - D * A; function cubehelixConvert(o) { if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity); if (!(o instanceof Rgb)) o = rgbConvert(o); var r = o.r / 255, g = o.g / 255, b = o.b / 255, l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB), bl = b - l, k = (E * (g - l) - C * bl) / D, s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1 h = s ? Math.atan2(k, bl) * rad2deg - 120 : NaN; return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity); } function cubehelix(h, s, l, opacity) { return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity); } function Cubehelix(h, s, l, opacity) { this.h = +h; this.s = +s; this.l = +l; this.opacity = +opacity; } define(Cubehelix, cubehelix, extend(Color, { brighter: function(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Cubehelix(this.h, this.s, this.l * k, this.opacity); }, darker: function(k) { k = k == null ? darker : Math.pow(darker, k); return new Cubehelix(this.h, this.s, this.l * k, this.opacity); }, rgb: function() { var h = isNaN(this.h) ? 0 : (this.h + 120) * deg2rad, l = +this.l, a = isNaN(this.s) ? 0 : this.s * l * (1 - l), cosh = Math.cos(h), sinh = Math.sin(h); return new Rgb( 255 * (l + a * (A * cosh + B * sinh)), 255 * (l + a * (C * cosh + D * sinh)), 255 * (l + a * (E * cosh)), this.opacity ); } })); exports.color = color; exports.rgb = rgb; exports.hsl = hsl; exports.lab = lab; exports.hcl = hcl; exports.cubehelix = cubehelix; Object.defineProperty(exports, '__esModule', { value: true }); }));
dakshshah96/cdnjs
ajax/libs/d3-color/0.5.0/d3-color.js
JavaScript
mit
15,824
module ActiveRecord class PredicateBuilder class PolymorphicArrayHandler # :nodoc: def initialize(predicate_builder) @predicate_builder = predicate_builder end def call(attribute, value) table = value.associated_table queries = value.type_to_ids_mapping.map do |type, ids| { table.association_foreign_type.to_s => type, table.association_foreign_key.to_s => ids } end predicates = queries.map { |query| predicate_builder.build_from_hash(query) } if predicates.size > 1 type_and_ids_predicates = predicates.map { |type_predicate, id_predicate| Arel::Nodes::Grouping.new(type_predicate.and(id_predicate)) } type_and_ids_predicates.inject(&:or) else predicates.first end end # TODO Change this to private once we've dropped Ruby 2.2 support. # Workaround for Ruby 2.2 "private attribute?" warning. protected attr_reader :predicate_builder end class PolymorphicArrayValue # :nodoc: attr_reader :associated_table, :values def initialize(associated_table, values) @associated_table = associated_table @values = values end def type_to_ids_mapping default_hash = Hash.new { |hsh, key| hsh[key] = [] } values.each_with_object(default_hash) { |value, hash| hash[base_class(value).name] << convert_to_id(value) } end private def primary_key(value) associated_table.association_primary_key(base_class(value)) end def base_class(value) value.class.base_class end def convert_to_id(value) value._read_attribute(primary_key(value)) end end end end
lrosskamp/makealist-public
vendor/cache/ruby/2.3.0/gems/activerecord-5.1.2/lib/active_record/relation/predicate_builder/polymorphic_array_handler.rb
Ruby
mit
1,765
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Country List</title></head><body><select name="country"><option value="VI">ABŞ Virqin Adaları</option><option value="AX">Aland Adaları</option><option value="AL">Albaniya</option><option value="DE">Almaniya</option><option value="US">Amerika Birləşmiş Ştatları</option><option value="AS">Amerika Samoası</option><option value="AD">Andorra</option><option value="AO">Angola</option><option value="AI">Anquila</option><option value="AQ">Antarktika</option><option value="AG">Antiqua və Barbuda</option><option value="AR">Arqentina</option><option value="AW">Aruba</option><option value="AU">Avstraliya</option><option value="AT">Avstriya</option><option value="AZ">Azərbaycan</option><option value="BS">Bahamalar</option><option value="BH">Bahreyn</option><option value="BD">Banqladeş</option><option value="BB">Barbados</option><option value="BY">Belarus</option><option value="BZ">Beliz</option><option value="BE">Belçika</option><option value="BJ">Benin</option><option value="BM">Bermuda</option><option value="GB">Birləşmiş Krallıq</option><option value="UM">Birləşmiş Ştatların uzaq adaları</option><option value="AE">Birləşmiş Ərəb Emiratları</option><option value="BO">Boliviya</option><option value="BG">Bolqariya</option><option value="BA">Bosniya və Herzokovina</option><option value="BW">Botsvana</option><option value="BV">Bove Adası</option><option value="BR">Braziliya</option><option value="VG">Britaniya Virgin Adaları</option><option value="IO">Britaniya-Hindistan Okeanik territoriyası</option><option value="BN">Bruney</option><option value="BF">Burkina Faso</option><option value="BI">Burundi</option><option value="BT">Butan</option><option value="DZ">Cezayır</option><option value="DJ">Ciboti</option><option value="JE">Cörsi</option><option value="ZA">Cənub Afrika</option><option value="GS">Cənub Gürcüstan və Cənub Sandvilç Adaları</option><option value="KR">Cənub Koreya</option><option value="DK">Danemarka</option><option value="DO">Dominik Respublikası</option><option value="DM">Dominika</option><option value="ET">Efiopiya</option><option value="EC">Ekvador</option><option value="GQ">Ekvator Qineya</option><option value="SV">El Salvador</option><option value="ER">Eritreya</option><option value="AM">Ermənistan</option><option value="EE">Estoniya</option><option value="FO">Faro Adaları</option><option value="FJ">Fici</option><option value="PH">Filipin</option><option value="FI">Finlandiya</option><option value="FK">Folkland Adaları</option><option value="FR">Fransa</option><option value="TF">Fransız Cənub teritoriyası</option><option value="PF">Fransız Polineziya</option><option value="GF">Fransız Quyanası</option><option value="PS">Fələstin Bölqüsü</option><option value="GI">Gibraltar</option><option value="GG">Görnsey</option><option value="GE">Gürcüstan</option><option value="HT">Haiti</option><option value="IN">Hindistan</option><option value="NL">Hollandiya</option><option value="AN">Hollandiya antilleri</option><option value="HK">Honk Konq çina</option><option value="HM">Hörd və Makdonald Adaları</option><option value="KH">Kambodiya</option><option value="CM">Kamerun</option><option value="CA">Kanada</option><option value="CV">Kape Verde</option><option value="KY">Kayman Adaları</option><option value="KZ">Kazaxstan</option><option value="KE">Kenya</option><option value="CY">Kipr</option><option value="KI">Kiribati</option><option value="CC">Kokos Adaları</option><option value="CO">Kolumbiya</option><option value="KM">Komoros</option><option value="CG">Konqo - Brazavil</option><option value="CD">Konqo - Kinşasa</option><option value="CR">Kosta Rika</option><option value="CU">Kuba</option><option value="CK">Kuk Adaları</option><option value="KW">Kuveyt</option><option value="KG">Kırqızstan</option><option value="LA">Laos</option><option value="LV">Latviya</option><option value="LB">Lebanon</option><option value="LS">Lesoto</option><option value="LR">Liberiya</option><option value="LY">Libya</option><option value="LT">Litva</option><option value="LI">Lixtenşteyn</option><option value="LU">Lüksemburq</option><option value="HU">Macaristan</option><option value="MG">Madaqaskar</option><option value="MO">Makao Çina</option><option value="MW">Malavi</option><option value="MY">Malaysiya</option><option value="MV">Maldiv</option><option value="ML">Mali</option><option value="MT">Malta</option><option value="IM">Man Adası</option><option value="MQ">Martiniqu</option><option value="MH">Marşal Adaları</option><option value="MK">Masedoniya</option><option value="MR">Mavritaniya</option><option value="MU">Mavritis</option><option value="YT">Mayot</option><option value="MZ">Mazambik</option><option value="MX">Meksika</option><option value="FM">Mikronesiya</option><option value="EG">Misir</option><option value="MD">Moldova</option><option value="MC">Monako</option><option value="MN">Monqoliya</option><option value="ME">Monteneqro</option><option value="MS">Montserat</option><option value="MA">Morokko</option><option value="MM">Myanmar</option><option value="NA">Namibiya</option><option value="NR">Nauru</option><option value="NP">Nepal</option><option value="NG">Nijeriya</option><option value="NI">Nikaraqua</option><option value="NU">Niye</option><option value="NF">Norfolk Adası</option><option value="NO">Norvec</option><option value="OM">Oman</option><option value="CF">Orta Afrika respublikası</option><option value="PK">Pakistan</option><option value="PW">Palav</option><option value="PA">Panama</option><option value="PG">Papua Yeni Qvineya</option><option value="PY">Paraqvay</option><option value="PE">Peru</option><option value="PN">Pitkarn</option><option value="PL">Polşa</option><option value="PT">Portuqal</option><option value="PR">Puerto Riko</option><option value="GA">Qabon</option><option value="GM">Qambiya</option><option value="GH">Qana</option><option value="QA">Qatar</option><option value="HN">Qonduras</option><option value="GD">Qrenada</option><option value="GL">Qrinland</option><option value="GU">Quam</option><option value="GY">Quyana</option><option value="GP">Qvadalup</option><option value="GT">Qvatemala</option><option value="GN">Qvineya</option><option value="GW">Qvineya-Bisau</option><option value="EH">Qərb Sahara</option><option value="RE">Reyunion</option><option value="RO">Romaniya</option><option value="RU">Rusiya</option><option value="RW">Rvanda</option><option value="WS">Samoa</option><option value="SM">San Marino</option><option value="ST">Sao Tom və Prinsip</option><option value="SA">Saudi Ərəbistan</option><option value="SN">Seneqal</option><option value="RS">Serbiya</option><option value="BL">Seynt Bartelemey</option><option value="SH">Seynt Elena</option><option value="KN">Seynt Kits və Nevis</option><option value="LC">Seynt Lusiya</option><option value="MF">Seynt Martin</option><option value="PM">Seynt Piyer və Mikelon</option><option value="VC">Seynt Vinsent və Qrenada</option><option value="SC">Seyçels</option><option value="SG">Sinqapur</option><option value="SL">Siyera Leon</option><option value="SK">Slovakiya</option><option value="SI">Sloveniya</option><option value="SB">Solomon Adaları</option><option value="SO">Somaliya</option><option value="TK">Tokelau</option><option value="TO">Tonqa</option><option value="TG">Toqo</option><option value="TT">Trinidan və Tobaqo</option><option value="TN">Tunisiya</option><option value="TV">Tuvalu</option><option value="TC">Türk və Kaykos Adaları</option><option value="TR">Türkiya</option><option value="TM">Türkmənistan</option><option value="UA">Ukraina</option><option value="UG">Uqanda</option><option value="UY">Uruqvay</option><option value="WF">Valis və Futuna</option><option value="VU">Vanuatu</option><option value="VA">Vatikan</option><option value="VE">Venesuela</option><option value="VN">Vyetnam</option><option value="HR">Xorvatiya</option><option value="JM">Yamayka</option><option value="JP">Yaponiya</option><option value="YE">Yemen</option><option value="NC">Yeni Kaledoniya</option><option value="NZ">Yeni Zelandiya</option><option value="GR">Yunanıstan</option><option value="ZM">Zambiya</option><option value="ZW">Zimbabve</option><option value="ZZ">bilinmir</option><option value="SE">isveç</option><option value="CH">isveçriya</option><option value="NE">nijer</option><option value="SY">siriya</option><option value="SD">sudan</option><option value="SR">surinamə</option><option value="SJ">svalbard və yan mayen</option><option value="SZ">svazilənd</option><option value="TJ">tacikistan</option><option value="TZ">tanzaniya</option><option value="TH">tayland</option><option value="TW">tayvan</option><option value="TD">Çad</option><option value="CZ">Çex respublikası</option><option value="CL">Çile</option><option value="CN">Çin</option><option value="CX">Çristmas Adası</option><option value="UZ">Özbəkistan</option><option value="JO">Ürdün</option><option value="ID">İndoneziya</option><option value="IQ">İrak</option><option value="IR">İran</option><option value="IE">İrlandiya</option><option value="IS">İslandiya</option><option value="ES">İspaniya</option><option value="IT">İtaliya</option><option value="CI">İvori Sahili</option><option value="IL">İzrail</option><option value="KP">Şimal Koreya</option><option value="MP">Şimal Mariana Adaları</option><option value="LK">Şri Lanka</option><option value="TL">Şərq Timor</option><option value="AF">Əfqənistan</option></select></body></html>
firexam/country-list
country/cldr/az_AZ/country.html
HTML
mit
9,783
require 'rexml/document' module ActiveMerchant #:nodoc: module Billing #:nodoc: # Initialization Options # :login Your store number # :pem The text of your linkpoint PEM file. Note # this is not the path to file, but its # contents. If you are only using one PEM # file on your site you can declare it # globally and then you won't need to # include this option # # # A valid store number is required. Unfortunately, with LinkPoint # YOU CAN'T JUST USE ANY OLD STORE NUMBER. Also, you can't just # generate your own PEM file. You'll need to use a special PEM file # provided by LinkPoint. # # Go to http://www.linkpoint.com/support/sup_teststore.asp to set up # a test account and obtain your PEM file. # # Declaring PEM file Globally # ActiveMerchant::Billing::LinkpointGateway.pem_file = File.read( File.dirname(__FILE__) + '/../mycert.pem' ) # # # Valid Order Options # :result => # LIVE Production mode # GOOD Approved response in test mode # DECLINE Declined response in test mode # DUPLICATE Duplicate response in test mode # # :ponumber Order number # # :transactionorigin => Source of the transaction # ECI Email or Internet # MAIL Mail order # MOTO Mail order/Telephone # TELEPHONE Telephone # RETAIL Face-to-face # # :ordertype => # SALE Real live sale # PREAUTH Authorize only # POSTAUTH Forced Ticket or Ticket Only transaction # VOID # CREDIT # CALCSHIPPING For shipping charges calculations # CALCTAX For sales tax calculations # # Recurring Options # :action => # SUBMIT # MODIFY # CANCEL # # :installments Identifies how many recurring payments to charge the customer # :startdate Date to begin charging the recurring payments. Format: YYYYMMDD or "immediate" # :periodicity => # MONTHLY # BIMONTHLY # WEEKLY # BIWEEKLY # YEARLY # DAILY # :threshold Tells how many times to retry the transaction (if it fails) before contacting the merchant. # :comments Uh... comments # # # For reference: # # https://www.linkpointcentral.com/lpc/docs/Help/APIHelp/lpintguide.htm # # Entities = { # :payment => [:subtotal, :tax, :vattax, :shipping, :chargetotal], # :billing => [:name, :address1, :address2, :city, :state, :zip, :country, :email, :phone, :fax, :addrnum], # :shipping => [:name, :address1, :address2, :city, :state, :zip, :country, :weight, :items, :carrier, :total], # :creditcard => [:cardnumber, :cardexpmonth, :cardexpyear, :cvmvalue, :track], # :telecheck => [:routing, :account, :checknumber, :bankname, :bankstate, :dl, :dlstate, :void, :accounttype, :ssn], # :transactiondetails => [:transactionorigin, :oid, :ponumber, :taxexempt, :terminaltype, :ip, :reference_number, :recurring, :tdate], # :periodic => [:action, :installments, :threshold, :startdate, :periodicity, :comments], # :notes => [:comments, :referred] # :items => [:item => [:price, :quantity, :description, :id, :options => [:option => [:name, :value]]]] # } # # # LinkPoint's Items entity is an optional entity that can be attached to orders. # It is entered as :line_items to be consistent with the CyberSource implementation # # The line_item hash goes in the options hash and should look like # # :line_items => [ # { # :id => '123456', # :description => 'Logo T-Shirt', # :price => '12.00', # :quantity => '1', # :options => [ # { # :name => 'Color', # :value => 'Red' # }, # { # :name => 'Size', # :value => 'XL' # } # ] # }, # { # :id => '111', # :description => 'keychain', # :price => '3.00', # :quantity => '1' # } # ] # This functionality is only supported by this particular gateway may # be changed at any time # class LinkpointGateway < Gateway # Your global PEM file. This will be assigned to you by linkpoint # # Example: # # ActiveMerchant::Billing::LinkpointGateway.pem_file = File.read( File.dirname(__FILE__) + '/../mycert.pem' ) # cattr_accessor :pem_file self.test_url = 'https://staging.linkpt.net:1129/' self.live_url = 'https://secure.linkpt.net:1129/' self.supported_countries = ['US'] self.supported_cardtypes = [:visa, :master, :american_express, :discover, :jcb, :diners_club] self.homepage_url = 'http://www.linkpoint.com/' self.display_name = 'LinkPoint' def initialize(options = {}) requires!(options, :login) @options = { :result => 'LIVE', :pem => LinkpointGateway.pem_file }.update(options) raise ArgumentError, "You need to pass in your pem file using the :pem parameter or set it globally using ActiveMerchant::Billing::LinkpointGateway.pem_file = File.read( File.dirname(__FILE__) + '/../mycert.pem' ) or similar" if @options[:pem].blank? end # Send a purchase request with periodic options # Recurring Options # :action => # SUBMIT # MODIFY # CANCEL # # :installments Identifies how many recurring payments to charge the customer # :startdate Date to begin charging the recurring payments. Format: YYYYMMDD or "immediate" # :periodicity => # :monthly # :bimonthly # :weekly # :biweekly # :yearly # :daily # :threshold Tells how many times to retry the transaction (if it fails) before contacting the merchant. # :comments Uh... comments # def recurring(money, creditcard, options={}) requires!(options, [:periodicity, :bimonthly, :monthly, :biweekly, :weekly, :yearly, :daily], :installments, :order_id ) options.update( :ordertype => "SALE", :action => options[:action] || "SUBMIT", :installments => options[:installments] || 12, :startdate => options[:startdate] || "immediate", :periodicity => options[:periodicity].to_s || "monthly", :comments => options[:comments] || nil, :threshold => options[:threshold] || 3 ) commit(money, creditcard, options) end # Buy the thing def purchase(money, creditcard, options={}) requires!(options, :order_id) options.update( :ordertype => "SALE" ) commit(money, creditcard, options) end # # Authorize the transaction # # Reserves the funds on the customer's credit card, but does not charge the card. # def authorize(money, creditcard, options = {}) requires!(options, :order_id) options.update( :ordertype => "PREAUTH" ) commit(money, creditcard, options) end # # Post an authorization. # # Captures the funds from an authorized transaction. # Order_id must be a valid order id from a prior authorized transaction. # def capture(money, authorization, options = {}) options.update( :order_id => authorization, :ordertype => "POSTAUTH" ) commit(money, nil, options) end # Void a previous transaction def void(identification, options = {}) options.update( :order_id => identification, :ordertype => "VOID" ) commit(nil, nil, options) end # # Refund an order # # identification must be a valid order id previously submitted by SALE # def refund(money, identification, options = {}) options.update( :ordertype => "CREDIT", :order_id => identification ) commit(money, nil, options) end def credit(money, identification, options = {}) deprecated CREDIT_DEPRECATION_MESSAGE refund(money, identification, options) end def test? @options[:test] || super end private # Commit the transaction by posting the XML file to the LinkPoint server def commit(money, creditcard, options = {}) response = parse(ssl_post(test? ? self.test_url : self.live_url, post_data(money, creditcard, options))) Response.new(successful?(response), response[:message], response, :test => test?, :authorization => response[:ordernum], :avs_result => { :code => response[:avs].to_s[2,1] }, :cvv_result => response[:avs].to_s[3,1] ) end def successful?(response) response[:approved] == "APPROVED" end # Build the XML file def post_data(money, creditcard, options) params = parameters(money, creditcard, options) xml = REXML::Document.new order = xml.add_element("order") # Merchant Info merchantinfo = order.add_element("merchantinfo") merchantinfo.add_element("configfile").text = @options[:login] # Loop over the params hash to construct the XML string for key, value in params elem = order.add_element(key.to_s) if key == :items build_items(elem, value) else for k, v in params[key] elem.add_element(k.to_s).text = params[key][k].to_s if params[key][k] end end # Linkpoint doesn't understand empty elements: order.delete(elem) if elem.size == 0 end return xml.to_s end # adds LinkPoint's Items entity to the XML. Called from post_data def build_items(element, items) for item in items item_element = element.add_element("item") for key, value in item if key == :options options_element = item_element.add_element("options") for option in value opt_element = options_element.add_element("option") opt_element.add_element("name").text = option[:name] unless option[:name].blank? opt_element.add_element("value").text = option[:value] unless option[:value].blank? end else item_element.add_element(key.to_s).text = item[key].to_s unless item[key].blank? end end end end # Set up the parameters hash just once so we don't have to do it # for every action. def parameters(money, creditcard, options = {}) params = { :payment => { :subtotal => amount(options[:subtotal]), :tax => amount(options[:tax]), :vattax => amount(options[:vattax]), :shipping => amount(options[:shipping]), :chargetotal => amount(money) }, :transactiondetails => { :transactionorigin => options[:transactionorigin] || "ECI", :oid => options[:order_id], :ponumber => options[:ponumber], :taxexempt => options[:taxexempt], :terminaltype => options[:terminaltype], :ip => options[:ip], :reference_number => options[:reference_number], :recurring => options[:recurring] || "NO", #DO NOT USE if you are using the periodic billing option. :tdate => options[:tdate] }, :orderoptions => { :ordertype => options[:ordertype], :result => @options[:result] }, :periodic => { :action => options[:action], :installments => options[:installments], :threshold => options[:threshold], :startdate => options[:startdate], :periodicity => options[:periodicity], :comments => options[:comments] }, :telecheck => { :routing => options[:telecheck_routing], :account => options[:telecheck_account], :checknumber => options[:telecheck_checknumber], :bankname => options[:telecheck_bankname], :dl => options[:telecheck_dl], :dlstate => options[:telecheck_dlstate], :void => options[:telecheck_void], :accounttype => options[:telecheck_accounttype], :ssn => options[:telecheck_ssn], } } if creditcard params[:creditcard] = { :cardnumber => creditcard.number, :cardexpmonth => creditcard.month, :cardexpyear => format_creditcard_expiry_year(creditcard.year), :track => nil } if creditcard.verification_value? params[:creditcard][:cvmvalue] = creditcard.verification_value params[:creditcard][:cvmindicator] = 'provided' else params[:creditcard][:cvmindicator] = 'not_provided' end end if billing_address = options[:billing_address] || options[:address] params[:billing] = {} params[:billing][:name] = billing_address[:name] || (creditcard ? creditcard.name : nil) params[:billing][:address1] = billing_address[:address1] unless billing_address[:address1].blank? params[:billing][:address2] = billing_address[:address2] unless billing_address[:address2].blank? params[:billing][:city] = billing_address[:city] unless billing_address[:city].blank? params[:billing][:state] = billing_address[:state] unless billing_address[:state].blank? params[:billing][:zip] = billing_address[:zip] unless billing_address[:zip].blank? params[:billing][:country] = billing_address[:country] unless billing_address[:country].blank? params[:billing][:company] = billing_address[:company] unless billing_address[:company].blank? params[:billing][:phone] = billing_address[:phone] unless billing_address[:phone].blank? params[:billing][:email] = options[:email] unless options[:email].blank? end if shipping_address = options[:shipping_address] params[:shipping] = {} params[:shipping][:name] = shipping_address[:name] || creditcard ? creditcard.name : nil params[:shipping][:address1] = shipping_address[:address1] unless shipping_address[:address1].blank? params[:shipping][:address2] = shipping_address[:address2] unless shipping_address[:address2].blank? params[:shipping][:city] = shipping_address[:city] unless shipping_address[:city].blank? params[:shipping][:state] = shipping_address[:state] unless shipping_address[:state].blank? params[:shipping][:zip] = shipping_address[:zip] unless shipping_address[:zip].blank? params[:shipping][:country] = shipping_address[:country] unless shipping_address[:country].blank? end params[:items] = options[:line_items] if options[:line_items] return params end def parse(xml) # For reference, a typical response... # <r_csp></r_csp> # <r_time></r_time> # <r_ref></r_ref> # <r_error></r_error> # <r_ordernum></r_ordernum> # <r_message>This is a test transaction and will not show up in the Reports</r_message> # <r_code></r_code> # <r_tdate>Thu Feb 2 15:40:21 2006</r_tdate> # <r_score></r_score> # <r_authresponse></r_authresponse> # <r_approved>APPROVED</r_approved> # <r_avs></r_avs> response = {:message => "Global Error Receipt", :complete => false} xml = REXML::Document.new("<response>#{xml}</response>") xml.root.elements.each do |node| response[node.name.downcase.sub(/^r_/, '').to_sym] = normalize(node.text) end unless xml.root.nil? response end # Make a ruby type out of the response string def normalize(field) case field when "true" then true when "false" then false when "" then nil when "null" then nil else field end end def format_creditcard_expiry_year(year) sprintf("%.4i", year)[-2..-1] end end end end
fbandrey/active_merchant
lib/active_merchant/billing/gateways/linkpoint.rb
Ruby
mit
17,880
/* * bootstrap-table - v1.12.1 - 2018-03-12 * https://github.com/wenzhixin/bootstrap-table * Copyright (c) 2018 zhixin wen * Licensed MIT License */ !function(a){"use strict";var b={sortOrder:"bs.table.sortOrder",sortName:"bs.table.sortName",pageNumber:"bs.table.pageNumber",pageList:"bs.table.pageList",columns:"bs.table.columns",searchText:"bs.table.searchText",filterControl:"bs.table.filterControl"},c=function(a){var b=a.$header;return a.options.height&&(b=a.$tableHeader),b},d=function(a){var b="select, input";return a.options.height&&(b="table select, table input"),b},e=function(){return!!navigator.cookieEnabled},f=function(a,b){for(var c=-1,d=0;d<b.length;d++)if(a.toLowerCase()===b[d].toLowerCase()){c=d;break}return c},g=function(a,b,c){if(a.options.cookie&&e()&&""!==a.options.cookieIdTable&&-1!==f(b,a.options.cookiesEnabled)){switch(b=a.options.cookieIdTable+"."+b,a.options.cookieStorage){case"cookieStorage":document.cookie=[b,"=",c,"; expires="+j(a.options.cookieExpire),a.options.cookiePath?"; path="+a.options.cookiePath:"",a.options.cookieDomain?"; domain="+a.options.cookieDomain:"",a.options.cookieSecure?"; secure":""].join("");case"localStorage":localStorage.setItem(b,c);break;case"sessionStorage":sessionStorage.setItem(b,c);break;default:return!1}return!0}},h=function(a,b,c){if(!c)return null;if(-1===f(c,a.options.cookiesEnabled))return null;switch(c=b+"."+c,a.options.cookieStorage){case"cookieStorage":var d="; "+document.cookie,e=d.split("; "+c+"=");return 2===e.length?e.pop().split(";").shift():null;case"localStorage":return localStorage.getItem(c);case"sessionStorage":return sessionStorage.getItem(c);default:return null}},i=function(a,b,c){switch(c=b+"."+c,a.options.cookieStorage){case"cookieStorage":document.cookie=[encodeURIComponent(c),"=","; expires=Thu, 01 Jan 1970 00:00:00 GMT",a.options.cookiePath?"; path="+a.options.cookiePath:"",a.options.cookieDomain?"; domain="+a.options.cookieDomain:""].join("");break;case"localStorage":localStorage.removeItem(c);break;case"sessionStorage":sessionStorage.removeItem(c)}return!0},j=function(a){var b=a.replace(/[0-9]*/,"");switch(a=a.replace(/[A-Za-z]{1,2}/,""),b.toLowerCase()){case"s":a=+a;break;case"mi":a=60*a;break;case"h":a=60*a*60;break;case"d":a=24*a*60*60;break;case"m":a=30*a*24*60*60;break;case"y":a=365*a*24*60*60;break;default:a=void 0}if(!a)return"";var c=new Date;return c.setTime(c.getTime()+1e3*a),c.toGMTString()},k=function(e){setTimeout(function(){var f=JSON.parse(h(e,e.options.cookieIdTable,b.filterControl));if(!e.options.filterControlValuesLoaded&&f){var g={},i=c(e),j=d(e),k=function(b,c){a(c).each(function(c,d){""!==d.text&&(a(b).val(d.text),g[d.field]=d.text)})};i.find(j).each(function(){var b=a(this).closest("[data-field]").data("field"),c=a.grep(f,function(a){return a.field===b});k(this,c)}),e.initColumnSearch(g),e.options.filterControlValuesLoaded=!0,e.initServer()}},250)};a.extend(a.fn.bootstrapTable.defaults,{cookie:!1,cookieExpire:"2h",cookiePath:null,cookieDomain:null,cookieSecure:null,cookieIdTable:"",cookiesEnabled:["bs.table.sortOrder","bs.table.sortName","bs.table.pageNumber","bs.table.pageList","bs.table.columns","bs.table.searchText","bs.table.filterControl"],cookieStorage:"cookieStorage",filterControls:[],filterControlValuesLoaded:!1}),a.fn.bootstrapTable.methods.push("getCookies"),a.fn.bootstrapTable.methods.push("deleteCookie"),a.extend(a.fn.bootstrapTable.utils,{setCookie:g,getCookie:h});var l=a.fn.bootstrapTable.Constructor,m=l.prototype.init,n=l.prototype.initTable,o=l.prototype.initServer,p=l.prototype.onSort,q=l.prototype.onPageNumber,r=l.prototype.onPageListChange,s=l.prototype.onPagePre,t=l.prototype.onPageNext,u=l.prototype.toggleColumn,v=l.prototype.selectPage,w=l.prototype.onSearch;l.prototype.init=function(){if(this.options.filterControls=[],this.options.filterControlValuesLoaded=!1,this.options.cookiesEnabled="string"==typeof this.options.cookiesEnabled?this.options.cookiesEnabled.replace("[","").replace("]","").replace(/ /g,"").toLowerCase().split(","):this.options.cookiesEnabled,this.options.filterControl){var a=this;this.$el.on("column-search.bs.table",function(c,d,e){for(var f=!0,h=0;h<a.options.filterControls.length;h++)if(a.options.filterControls[h].field===d){a.options.filterControls[h].text=e,f=!1;break}f&&a.options.filterControls.push({field:d,text:e}),g(a,b.filterControl,JSON.stringify(a.options.filterControls))}).on("post-body.bs.table",k(a))}m.apply(this,Array.prototype.slice.apply(arguments))},l.prototype.initServer=function(){var a=this;if(a.options.cookie&&a.options.filterControl&&!a.options.filterControlValuesLoaded){var c=JSON.parse(h(a,a.options.cookieIdTable,b.filterControl));if(c)return}o.apply(this,Array.prototype.slice.apply(arguments))},l.prototype.initTable=function(){n.apply(this,Array.prototype.slice.apply(arguments)),this.initCookie()},l.prototype.initCookie=function(){if(this.options.cookie){if(""===this.options.cookieIdTable||""===this.options.cookieExpire||!e())return console.error("Configuration error. Please review the cookieIdTable, cookieExpire properties, if those properties are ok, then this browser does not support the cookies"),void(this.options.cookie=!1);var c=h(this,this.options.cookieIdTable,b.sortOrder),d=h(this,this.options.cookieIdTable,b.sortName),f=h(this,this.options.cookieIdTable,b.pageNumber),g=h(this,this.options.cookieIdTable,b.pageList),i=JSON.parse(h(this,this.options.cookieIdTable,b.columns)),j=h(this,this.options.cookieIdTable,b.searchText);this.options.sortOrder=c?c:this.options.sortOrder,this.options.sortName=d?d:this.options.sortName,this.options.pageNumber=f?+f:this.options.pageNumber,this.options.pageSize=g?g===this.options.formatAllRows()?g:+g:this.options.pageSize,this.options.searchText=j?j:"",i&&a.each(this.columns,function(b,c){c.visible=-1!==a.inArray(c.field,i)})}},l.prototype.onSort=function(){p.apply(this,Array.prototype.slice.apply(arguments)),g(this,b.sortOrder,this.options.sortOrder),g(this,b.sortName,this.options.sortName)},l.prototype.onPageNumber=function(){return q.apply(this,Array.prototype.slice.apply(arguments)),g(this,b.pageNumber,this.options.pageNumber),!1},l.prototype.onPageListChange=function(){return r.apply(this,Array.prototype.slice.apply(arguments)),g(this,b.pageList,this.options.pageSize),g(this,b.pageNumber,this.options.pageNumber),!1},l.prototype.onPagePre=function(){return s.apply(this,Array.prototype.slice.apply(arguments)),g(this,b.pageNumber,this.options.pageNumber),!1},l.prototype.onPageNext=function(){return t.apply(this,Array.prototype.slice.apply(arguments)),g(this,b.pageNumber,this.options.pageNumber),!1},l.prototype.toggleColumn=function(){u.apply(this,Array.prototype.slice.apply(arguments));var c=[];a.each(this.columns,function(a,b){b.visible&&c.push(b.field)}),g(this,b.columns,JSON.stringify(c))},l.prototype.selectPage=function(a){v.apply(this,Array.prototype.slice.apply(arguments)),g(this,b.pageNumber,a)},l.prototype.onSearch=function(){var c=Array.prototype.slice.apply(arguments);w.apply(this,c),a(c[0].currentTarget).parent().hasClass("search")&&g(this,b.searchText,this.searchText),g(this,b.pageNumber,this.options.pageNumber)},l.prototype.getCookies=function(){var c=this,d={};return a.each(b,function(a,b){d[a]=h(c,c.options.cookieIdTable,b),"columns"===a&&(d[a]=JSON.parse(d[a]))}),d},l.prototype.deleteCookie=function(a){""!==a&&e()&&i(this,this.options.cookieIdTable,b[a])}}(jQuery);
CIFullCalendar/bootstrap-table
docs/dist/extensions/cookie/bootstrap-table-cookie.min.js
JavaScript
mit
7,426
#include "Window.h" #include <iostream> #include "Renderer.h" #include "AudioManager.h" #include "Log.h" #include "Settings.h" #include <iomanip> #include "components/HelpComponent.h" #include "components/ImageComponent.h" Window::Window() : mNormalizeNextUpdate(false), mFrameTimeElapsed(0), mFrameCountElapsed(0), mAverageDeltaTime(10), mAllowSleep(true), mSleeping(false), mTimeSinceLastInput(0) { mHelp = new HelpComponent(this); mBackgroundOverlay = new ImageComponent(this); mBackgroundOverlay->setImage(":/scroll_gradient.png"); } Window::~Window() { delete mBackgroundOverlay; // delete all our GUIs while(peekGui()) delete peekGui(); delete mHelp; } void Window::pushGui(GuiComponent* gui) { mGuiStack.push_back(gui); gui->updateHelpPrompts(); } void Window::removeGui(GuiComponent* gui) { for(auto i = mGuiStack.begin(); i != mGuiStack.end(); i++) { if(*i == gui) { i = mGuiStack.erase(i); if(i == mGuiStack.end() && mGuiStack.size()) // we just popped the stack and the stack is not empty mGuiStack.back()->updateHelpPrompts(); return; } } } GuiComponent* Window::peekGui() { if(mGuiStack.size() == 0) return NULL; return mGuiStack.back(); } bool Window::init(unsigned int width, unsigned int height) { if(!Renderer::init(width, height)) { LOG(LogError) << "Renderer failed to initialize!"; return false; } InputManager::getInstance()->init(); ResourceManager::getInstance()->reloadAll(); //keep a reference to the default fonts, so they don't keep getting destroyed/recreated if(mDefaultFonts.empty()) { mDefaultFonts.push_back(Font::get(FONT_SIZE_SMALL)); mDefaultFonts.push_back(Font::get(FONT_SIZE_MEDIUM)); mDefaultFonts.push_back(Font::get(FONT_SIZE_LARGE)); } mBackgroundOverlay->setResize((float)Renderer::getScreenWidth(), (float)Renderer::getScreenHeight()); // update our help because font sizes probably changed if(peekGui()) peekGui()->updateHelpPrompts(); return true; } void Window::deinit() { InputManager::getInstance()->deinit(); ResourceManager::getInstance()->unloadAll(); Renderer::deinit(); } void Window::textInput(const char* text) { if(peekGui()) peekGui()->textInput(text); } void Window::input(InputConfig* config, Input input) { if(mSleeping) { // wake up mTimeSinceLastInput = 0; mSleeping = false; onWake(); return; } mTimeSinceLastInput = 0; if(config->getDeviceId() == DEVICE_KEYBOARD && input.value && input.id == SDLK_g && SDL_GetModState() & KMOD_LCTRL && Settings::getInstance()->getBool("Debug")) { // toggle debug grid with Ctrl-G Settings::getInstance()->setBool("DebugGrid", !Settings::getInstance()->getBool("DebugGrid")); } else if(config->getDeviceId() == DEVICE_KEYBOARD && input.value && input.id == SDLK_t && SDL_GetModState() & KMOD_LCTRL && Settings::getInstance()->getBool("Debug")) { // toggle TextComponent debug view with Ctrl-T Settings::getInstance()->setBool("DebugText", !Settings::getInstance()->getBool("DebugText")); } else { if(peekGui()) this->peekGui()->input(config, input); } } void Window::update(int deltaTime) { if(mNormalizeNextUpdate) { mNormalizeNextUpdate = false; if(deltaTime > mAverageDeltaTime) deltaTime = mAverageDeltaTime; } mFrameTimeElapsed += deltaTime; mFrameCountElapsed++; if(mFrameTimeElapsed > 500) { mAverageDeltaTime = mFrameTimeElapsed / mFrameCountElapsed; if(Settings::getInstance()->getBool("DrawFramerate")) { std::stringstream ss; // fps ss << std::fixed << std::setprecision(1) << (1000.0f * (float)mFrameCountElapsed / (float)mFrameTimeElapsed) << "fps, "; ss << std::fixed << std::setprecision(2) << ((float)mFrameTimeElapsed / (float)mFrameCountElapsed) << "ms"; // vram float textureVramUsageMb = TextureResource::getTotalMemUsage() / 1000.0f / 1000.0f;; float fontVramUsageMb = Font::getTotalMemUsage() / 1000.0f / 1000.0f;; float totalVramUsageMb = textureVramUsageMb + fontVramUsageMb; ss << "\nVRAM: " << totalVramUsageMb << "mb (texs: " << textureVramUsageMb << "mb, fonts: " << fontVramUsageMb << "mb)"; mFrameDataText = std::unique_ptr<TextCache>(mDefaultFonts.at(1)->buildTextCache(ss.str(), 50.f, 50.f, 0xFF00FFFF)); } mFrameTimeElapsed = 0; mFrameCountElapsed = 0; } mTimeSinceLastInput += deltaTime; if(peekGui()) peekGui()->update(deltaTime); } void Window::render() { Eigen::Affine3f transform = Eigen::Affine3f::Identity(); mRenderedHelpPrompts = false; // draw only bottom and top of GuiStack (if they are different) if(mGuiStack.size()) { auto& bottom = mGuiStack.front(); auto& top = mGuiStack.back(); bottom->render(transform); if(bottom != top) { mBackgroundOverlay->render(transform); top->render(transform); } } if(!mRenderedHelpPrompts) mHelp->render(transform); if(Settings::getInstance()->getBool("DrawFramerate") && mFrameDataText) { Renderer::setMatrix(Eigen::Affine3f::Identity()); mDefaultFonts.at(1)->renderTextCache(mFrameDataText.get()); } unsigned int screensaverTime = (unsigned int)Settings::getInstance()->getInt("ScreenSaverTime"); if(mTimeSinceLastInput >= screensaverTime && screensaverTime != 0 && mAllowSleep) { // go to sleep mSleeping = true; onSleep(); } } void Window::normalizeNextUpdate() { mNormalizeNextUpdate = true; } bool Window::getAllowSleep() { return mAllowSleep; } void Window::setAllowSleep(bool sleep) { mAllowSleep = sleep; } void Window::renderLoadingScreen() { Eigen::Affine3f trans = Eigen::Affine3f::Identity(); Renderer::setMatrix(trans); Renderer::drawRect(0, 0, Renderer::getScreenWidth(), Renderer::getScreenHeight(), 0xFFFFFFFF); ImageComponent splash(this); splash.setResize(Renderer::getScreenWidth() * 0.6f, 0.0f); splash.setImage(":/splash.svg"); splash.setPosition((Renderer::getScreenWidth() - splash.getSize().x()) / 2, (Renderer::getScreenHeight() - splash.getSize().y()) / 2 * 0.6f); splash.render(trans); auto& font = mDefaultFonts.at(1); TextCache* cache = font->buildTextCache("LOADING...", 0, 0, 0x656565FF); trans = trans.translate(Eigen::Vector3f(round((Renderer::getScreenWidth() - cache->metrics.size.x()) / 2.0f), round(Renderer::getScreenHeight() * 0.835f), 0.0f)); Renderer::setMatrix(trans); font->renderTextCache(cache); delete cache; Renderer::swapBuffers(); } void Window::renderHelpPromptsEarly() { mHelp->render(Eigen::Affine3f::Identity()); mRenderedHelpPrompts = true; } void Window::setHelpPrompts(const std::vector<HelpPrompt>& prompts, const HelpStyle& style) { mHelp->clearPrompts(); mHelp->setStyle(style); std::vector<HelpPrompt> addPrompts; std::map<std::string, bool> inputSeenMap; std::map<std::string, int> mappedToSeenMap; for(auto it = prompts.begin(); it != prompts.end(); it++) { // only add it if the same icon hasn't already been added if(inputSeenMap.insert(std::make_pair<std::string, bool>(it->first, true)).second) { // this symbol hasn't been seen yet, what about the action name? auto mappedTo = mappedToSeenMap.find(it->second); if(mappedTo != mappedToSeenMap.end()) { // yes, it has! // can we combine? (dpad only) if((it->first == "up/down" && addPrompts.at(mappedTo->second).first == "left/right") || (it->first == "left/right" && addPrompts.at(mappedTo->second).first == "up/down")) { // yes! addPrompts.at(mappedTo->second).first = "up/down/left/right"; // don't need to add this to addPrompts since we just merged }else{ // no, we can't combine! addPrompts.push_back(*it); } }else{ // no, it hasn't! mappedToSeenMap.insert(std::pair<std::string, int>(it->second, addPrompts.size())); addPrompts.push_back(*it); } } } // sort prompts so it goes [dpad_all] [dpad_u/d] [dpad_l/r] [a/b/x/y/l/r] [start/select] std::sort(addPrompts.begin(), addPrompts.end(), [](const HelpPrompt& a, const HelpPrompt& b) -> bool { static const char* map[] = { "up/down/left/right", "up/down", "left/right", "a", "b", "x", "y", "l", "r", "start", "select", NULL }; int i = 0; int aVal = 0; int bVal = 0; while(map[i] != NULL) { if(a.first == map[i]) aVal = i; if(b.first == map[i]) bVal = i; i++; } return aVal > bVal; }); mHelp->setPrompts(addPrompts); } void Window::onSleep() { Renderer::setMatrix(Eigen::Affine3f::Identity()); unsigned char opacity = Settings::getInstance()->getString("ScreenSaverBehavior") == "dim" ? 0xA0 : 0xFF; Renderer::drawRect(0, 0, Renderer::getScreenWidth(), Renderer::getScreenHeight(), 0x00000000 | opacity); } void Window::onWake() { }
hevey/EmulationStation
es-core/src/Window.cpp
C++
mit
8,647
//////////////////////////////////////////////////////////////////////////// // // Copyright 2017 Realm 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. // //////////////////////////////////////////////////////////////////////////// #include "sync/sync_permission.hpp" #include "impl/notification_wrapper.hpp" #include "impl/object_accessor_impl.hpp" #include "object_schema.hpp" #include "property.hpp" #include "sync/sync_config.hpp" #include "sync/sync_manager.hpp" #include "sync/sync_session.hpp" #include "sync/sync_user.hpp" #include "util/event_loop_signal.hpp" #include "util/uuid.hpp" #include <realm/query_expression.hpp> using namespace realm; using namespace std::chrono; // MARK: - Utility namespace { // Make a handler that extracts either an exception pointer, or the string value // of the property with the specified name. Permissions::AsyncOperationHandler make_handler_extracting_property(std::string property, Permissions::PermissionOfferCallback callback) { return [property=std::move(property), callback=std::move(callback)](Object* object, std::exception_ptr exception) { if (exception) { callback(none, exception); } else { CppContext context; auto token = any_cast<std::string>(object->get_property_value<util::Any>(context, property)); callback(util::make_optional<std::string>(std::move(token)), nullptr); } }; } AccessLevel extract_access_level(Object& permission, CppContext& context) { auto may_manage = permission.get_property_value<util::Any>(context, "mayManage"); if (may_manage.has_value() && any_cast<bool>(may_manage)) return AccessLevel::Admin; auto may_write = permission.get_property_value<util::Any>(context, "mayWrite"); if (may_write.has_value() && any_cast<bool>(may_write)) return AccessLevel::Write; auto may_read = permission.get_property_value<util::Any>(context, "mayRead"); if (may_read.has_value() && any_cast<bool>(may_read)) return AccessLevel::Read; return AccessLevel::None; } /// Turn a system time point value into the 64-bit integer representing ns since the Unix epoch. int64_t ns_since_unix_epoch(const system_clock::time_point& point) { tm unix_epoch{}; unix_epoch.tm_year = 70; time_t epoch_time = mktime(&unix_epoch); auto epoch_point = system_clock::from_time_t(epoch_time); return duration_cast<nanoseconds>(point - epoch_point).count(); } } // anonymous namespace // MARK: - Permission Permission::Permission(Object& permission) { CppContext context; path = any_cast<std::string>(permission.get_property_value<util::Any>(context, "path")); access = extract_access_level(permission, context); condition = Condition(any_cast<std::string>(permission.get_property_value<util::Any>(context, "userId"))); updated_at = any_cast<Timestamp>(permission.get_property_value<util::Any>(context, "updatedAt")); } Permission::Permission(std::string path, AccessLevel access, Condition condition, Timestamp updated_at) : path(std::move(path)) , access(access) , condition(std::move(condition)) , updated_at(std::move(updated_at)) { } std::string Permission::description_for_access_level(AccessLevel level) { switch (level) { case AccessLevel::None: return "none"; case AccessLevel::Read: return "read"; case AccessLevel::Write: return "write"; case AccessLevel::Admin: return "admin"; } REALM_UNREACHABLE(); } bool Permission::paths_are_equivalent(std::string path_1, std::string path_2, const std::string& user_id_1, const std::string& user_id_2) { REALM_ASSERT_DEBUG(path_1.length() > 0); REALM_ASSERT_DEBUG(path_2.length() > 0); if (path_1 == path_2) { // If both paths are identical and contain `/~/`, the user IDs must match. return (path_1.find("/~/") == std::string::npos) || (user_id_1 == user_id_2); } // Make substitutions for the first `/~/` in the string. size_t index = path_1.find("/~/"); if (index != std::string::npos) path_1.replace(index + 1, 1, user_id_1); index = path_2.find("/~/"); if (index != std::string::npos) path_2.replace(index + 1, 1, user_id_2); return path_1 == path_2; } // MARK: - Permissions void Permissions::get_permissions(std::shared_ptr<SyncUser> user, PermissionResultsCallback callback, const ConfigMaker& make_config) { auto realm = Permissions::permission_realm(user, make_config); auto table = ObjectStore::table_for_object_type(realm->read_group(), "Permission"); auto results = std::make_shared<_impl::NotificationWrapper<Results>>(std::move(realm), *table); // `get_permissions` works by temporarily adding an async notifier to the permission Realm. // This notifier will run the `async` callback until the Realm contains permissions or // an error happens. When either of these two things happen, the notifier will be // unregistered by nulling out the `results_wrapper` container. auto async = [results, callback=std::move(callback)](CollectionChangeSet, std::exception_ptr ex) mutable { if (ex) { callback(Results(), ex); results.reset(); return; } if (results->size() > 0) { // We monitor the raw results. The presence of a `__management` Realm indicates // that the permissions have been downloaded (hence, we wait until size > 0). TableRef table = ObjectStore::table_for_object_type(results->get_realm()->read_group(), "Permission"); size_t col_idx = table->get_descriptor()->get_column_index("path"); auto query = !(table->column<StringData>(col_idx).ends_with("/__permission") || table->column<StringData>(col_idx).ends_with("/__perm") || table->column<StringData>(col_idx).ends_with("/__management")); // Call the callback with our new permissions object. This object will exclude the // private Realms. callback(results->filter(std::move(query)), nullptr); results.reset(); } }; results->add_notification_callback(std::move(async)); } void Permissions::set_permission(std::shared_ptr<SyncUser> user, Permission permission, PermissionChangeCallback callback, const ConfigMaker& make_config) { auto props = AnyDict{ {"userId", permission.condition.user_id}, {"realmUrl", user->server_url() + permission.path}, {"mayRead", permission.access != AccessLevel::None}, {"mayWrite", permission.access == AccessLevel::Write || permission.access == AccessLevel::Admin}, {"mayManage", permission.access == AccessLevel::Admin}, }; if (permission.condition.type == Permission::Condition::Type::KeyValue) { props.insert({"metadataKey", permission.condition.key_value.first}); props.insert({"metadataValue", permission.condition.key_value.second}); } auto cb = [callback=std::move(callback)](Object*, std::exception_ptr exception) { callback(exception); }; perform_async_operation("PermissionChange", std::move(user), std::move(cb), std::move(props), make_config); } void Permissions::delete_permission(std::shared_ptr<SyncUser> user, Permission permission, PermissionChangeCallback callback, const ConfigMaker& make_config) { permission.access = AccessLevel::None; set_permission(std::move(user), std::move(permission), std::move(callback), make_config); } void Permissions::make_offer(std::shared_ptr<SyncUser> user, PermissionOffer offer, PermissionOfferCallback callback, const ConfigMaker& make_config) { auto props = AnyDict{ {"expiresAt", std::move(offer.expiration)}, {"userId", user->identity()}, {"realmUrl", user->server_url() + offer.path}, {"mayRead", offer.access != AccessLevel::None}, {"mayWrite", offer.access == AccessLevel::Write || offer.access == AccessLevel::Admin}, {"mayManage", offer.access == AccessLevel::Admin}, }; perform_async_operation("PermissionOffer", std::move(user), make_handler_extracting_property("token", std::move(callback)), std::move(props), make_config); } void Permissions::accept_offer(std::shared_ptr<SyncUser> user, const std::string& token, PermissionOfferCallback callback, const ConfigMaker& make_config) { perform_async_operation("PermissionOfferResponse", std::move(user), make_handler_extracting_property("realmUrl", std::move(callback)), AnyDict{ {"token", token} }, make_config); } void Permissions::perform_async_operation(const std::string& object_type, std::shared_ptr<SyncUser> user, AsyncOperationHandler handler, AnyDict additional_props, const ConfigMaker& make_config) {; auto realm = Permissions::management_realm(std::move(user), make_config); CppContext context; // Get the current time. int64_t ns_since_epoch = ns_since_unix_epoch(system_clock::now()); int64_t s_arg = ns_since_epoch / (int64_t)Timestamp::nanoseconds_per_second; int32_t ns_arg = ns_since_epoch % Timestamp::nanoseconds_per_second; auto props = AnyDict{ {"id", util::uuid_string()}, {"createdAt", Timestamp(s_arg, ns_arg)}, {"updatedAt", Timestamp(s_arg, ns_arg)}, }; props.insert(additional_props.begin(), additional_props.end()); // Write the permission object. realm->begin_transaction(); auto raw = Object::create<util::Any>(context, realm, *realm->schema().find(object_type), std::move(props), false); auto object = std::make_shared<_impl::NotificationWrapper<Object>>(std::move(raw)); realm->commit_transaction(); // Observe the permission object until the permission change has been processed or failed. // The notifier is automatically unregistered upon the completion of the permission // change, one way or another. auto block = [object, handler=std::move(handler)](CollectionChangeSet, std::exception_ptr ex) mutable { if (ex) { handler(nullptr, ex); object.reset(); return; } CppContext context; auto status_code = object->get_property_value<util::Any>(context, "statusCode"); if (!status_code.has_value()) { // Continue waiting for the sync server to complete the operation. return; } // Determine whether an error happened or not. if (auto code = any_cast<long long>(status_code)) { // The permission change failed because an error was returned from the server. auto status = object->get_property_value<util::Any>(context, "statusMessage"); std::string error_str = (status.has_value() ? any_cast<std::string>(status) : util::format("Error code: %1", code)); handler(nullptr, std::make_exception_ptr(PermissionActionException(error_str, code))); } else { handler(object.get(), nullptr); } object.reset(); }; object->add_notification_callback(std::move(block)); } SharedRealm Permissions::management_realm(std::shared_ptr<SyncUser> user, const ConfigMaker& make_config) { // FIXME: maybe we should cache the management Realm on the user, so we don't need to open it every time. const auto realm_url = util::format("realm%1/~/__management", user->server_url().substr(4)); Realm::Config config = make_config(user, std::move(realm_url)); config.sync_config->stop_policy = SyncSessionStopPolicy::Immediately; config.schema = Schema{ {"PermissionChange", { Property{"id", PropertyType::String, Property::IsPrimary{true}}, Property{"createdAt", PropertyType::Date}, Property{"updatedAt", PropertyType::Date}, Property{"statusCode", PropertyType::Int|PropertyType::Nullable}, Property{"statusMessage", PropertyType::String|PropertyType::Nullable}, Property{"userId", PropertyType::String}, Property{"metadataKey", PropertyType::String|PropertyType::Nullable}, Property{"metadataValue", PropertyType::String|PropertyType::Nullable}, Property{"metadataNameSpace", PropertyType::String|PropertyType::Nullable}, Property{"realmUrl", PropertyType::String}, Property{"mayRead", PropertyType::Bool|PropertyType::Nullable}, Property{"mayWrite", PropertyType::Bool|PropertyType::Nullable}, Property{"mayManage", PropertyType::Bool|PropertyType::Nullable}, }}, {"PermissionOffer", { Property{"id", PropertyType::String, Property::IsPrimary{true}}, Property{"createdAt", PropertyType::Date}, Property{"updatedAt", PropertyType::Date}, Property{"expiresAt", PropertyType::Date|PropertyType::Nullable}, Property{"statusCode", PropertyType::Int|PropertyType::Nullable}, Property{"statusMessage", PropertyType::String|PropertyType::Nullable}, Property{"token", PropertyType::String|PropertyType::Nullable}, Property{"realmUrl", PropertyType::String}, Property{"mayRead", PropertyType::Bool}, Property{"mayWrite", PropertyType::Bool}, Property{"mayManage", PropertyType::Bool}, }}, {"PermissionOfferResponse", { Property{"id", PropertyType::String, Property::IsPrimary{true}}, Property{"createdAt", PropertyType::Date}, Property{"updatedAt", PropertyType::Date}, Property{"statusCode", PropertyType::Int|PropertyType::Nullable}, Property{"statusMessage", PropertyType::String|PropertyType::Nullable}, Property{"token", PropertyType::String}, Property{"realmUrl", PropertyType::String|PropertyType::Nullable}, }}, }; config.schema_version = 0; auto shared_realm = Realm::get_shared_realm(std::move(config)); user->register_management_session(shared_realm->config().path); return shared_realm; } SharedRealm Permissions::permission_realm(std::shared_ptr<SyncUser> user, const ConfigMaker& make_config) { // FIXME: maybe we should cache the permission Realm on the user, so we don't need to open it every time. const auto realm_url = util::format("realm%1/~/__permission", user->server_url().substr(4)); Realm::Config config = make_config(user, std::move(realm_url)); config.sync_config->stop_policy = SyncSessionStopPolicy::Immediately; config.schema = Schema{ {"Permission", { {"updatedAt", PropertyType::Date}, {"userId", PropertyType::String}, {"path", PropertyType::String}, {"mayRead", PropertyType::Bool}, {"mayWrite", PropertyType::Bool}, {"mayManage", PropertyType::Bool}, }} }; config.schema_version = 0; auto shared_realm = Realm::get_shared_realm(std::move(config)); user->register_permission_session(shared_realm->config().path); return shared_realm; }
Sweepin/SweepinConnect-iOS
Example/Pods/Realm/Realm/ObjectStore/src/sync/sync_permission.cpp
C++
mit
16,857
/*! UIkit 2.18.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ (function(UI) { "use strict"; var active = false, hoverIdle; UI.component('dropdown', { defaults: { 'mode' : 'hover', 'remaintime' : 800, 'justify' : false, 'boundary' : UI.$win, 'delay' : 0 }, remainIdle: false, boot: function() { var triggerevent = UI.support.touch ? "click" : "mouseenter"; // init code UI.$html.on(triggerevent+".dropdown.uikit", "[data-uk-dropdown]", function(e) { var ele = UI.$(this); if (!ele.data("dropdown")) { var dropdown = UI.dropdown(ele, UI.Utils.options(ele.attr("data-uk-dropdown"))); if (triggerevent=="click" || (triggerevent=="mouseenter" && dropdown.options.mode=="hover")) { dropdown.element.trigger(triggerevent); } if(dropdown.element.find('.uk-dropdown').length) { e.preventDefault(); } } }); }, init: function() { var $this = this; this.dropdown = this.find('.uk-dropdown'); this.centered = this.dropdown.hasClass('uk-dropdown-center'); this.justified = this.options.justify ? UI.$(this.options.justify) : false; this.boundary = UI.$(this.options.boundary); this.flipped = this.dropdown.hasClass('uk-dropdown-flip'); if (!this.boundary.length) { this.boundary = UI.$win; } // Init ARIA this.element.attr('aria-haspopup', 'true'); this.element.attr('aria-expanded', this.element.hasClass("uk-open")); if (this.options.mode == "click" || UI.support.touch) { this.on("click.uikit.dropdown", function(e) { var $target = UI.$(e.target); if (!$target.parents(".uk-dropdown").length) { if ($target.is("a[href='#']") || $target.parent().is("a[href='#']") || ($this.dropdown.length && !$this.dropdown.is(":visible")) ){ e.preventDefault(); } $target.blur(); } if (!$this.element.hasClass('uk-open')) { $this.show(); } else { if ($target.is("a:not(.js-uk-prevent)") || $target.is(".uk-dropdown-close") || !$this.dropdown.find(e.target).length) { $this.hide(); } } }); } else { this.on("mouseenter", function(e) { if ($this.remainIdle) { clearTimeout($this.remainIdle); } if (hoverIdle) { clearTimeout(hoverIdle); } hoverIdle = setTimeout($this.show.bind($this), $this.options.delay); }).on("mouseleave", function() { if (hoverIdle) { clearTimeout(hoverIdle); } $this.remainIdle = setTimeout(function() { $this.hide(); }, $this.options.remaintime); }).on("click", function(e){ var $target = UI.$(e.target); if ($this.remainIdle) { clearTimeout($this.remainIdle); } if ($target.is("a[href='#']") || $target.parent().is("a[href='#']")){ e.preventDefault(); } $this.show(); }); } }, show: function(){ UI.$html.off("click.outer.dropdown"); if (active && active[0] != this.element[0]) { active.removeClass('uk-open'); // Update ARIA active.attr('aria-expanded', 'false'); } if (hoverIdle) { clearTimeout(hoverIdle); } this.checkDimensions(); this.element.addClass('uk-open'); // Update ARIA this.element.attr('aria-expanded', 'true'); this.trigger('show.uk.dropdown', [this]); UI.Utils.checkDisplay(this.dropdown, true); active = this.element; this.registerOuterClick(); }, hide: function() { this.element.removeClass('uk-open'); this.remainIdle = false; // Update ARIA this.element.attr('aria-expanded', 'false'); if (active && active[0] == this.element[0]) active = false; }, registerOuterClick: function(){ var $this = this; UI.$html.off("click.outer.dropdown"); setTimeout(function() { UI.$html.on("click.outer.dropdown", function(e) { if (hoverIdle) { clearTimeout(hoverIdle); } var $target = UI.$(e.target); if (active && active[0] == $this.element[0] && ($target.is("a:not(.js-uk-prevent)") || $target.is(".uk-dropdown-close") || !$this.dropdown.find(e.target).length)) { $this.hide(); UI.$html.off("click.outer.dropdown"); } }); }, 10); }, checkDimensions: function() { if (!this.dropdown.length) return; if (this.justified && this.justified.length) { this.dropdown.css("min-width", ""); } var $this = this, dropdown = this.dropdown.css("margin-" + UI.langdirection, ""), offset = dropdown.show().offset(), width = dropdown.outerWidth(), boundarywidth = this.boundary.width(), boundaryoffset = this.boundary.offset() ? this.boundary.offset().left:0; // centered dropdown if (this.centered) { dropdown.css("margin-" + UI.langdirection, (parseFloat(width) / 2 - dropdown.parent().width() / 2) * -1); offset = dropdown.offset(); // reset dropdown if ((width + offset.left) > boundarywidth || offset.left < 0) { dropdown.css("margin-" + UI.langdirection, ""); offset = dropdown.offset(); } } // justify dropdown if (this.justified && this.justified.length) { var jwidth = this.justified.outerWidth(); dropdown.css("min-width", jwidth); if (UI.langdirection == 'right') { var right1 = boundarywidth - (this.justified.offset().left + jwidth), right2 = boundarywidth - (dropdown.offset().left + dropdown.outerWidth()); dropdown.css("margin-right", right1 - right2); } else { dropdown.css("margin-left", this.justified.offset().left - offset.left); } offset = dropdown.offset(); } if ((width + (offset.left-boundaryoffset)) > boundarywidth) { dropdown.addClass('uk-dropdown-flip'); offset = dropdown.offset(); } if ((offset.left-boundaryoffset) < 0) { dropdown.addClass("uk-dropdown-stack"); if (dropdown.hasClass('uk-dropdown-flip')) { if (!this.flipped) { dropdown.removeClass('uk-dropdown-flip'); offset = dropdown.offset(); dropdown.addClass('uk-dropdown-flip'); } setTimeout(function(){ if ((dropdown.offset().left-boundaryoffset) < 0 || !$this.flipped && (dropdown.outerWidth() + (offset.left-boundaryoffset)) < boundarywidth) { dropdown.removeClass('uk-dropdown-flip'); } }, 0); } this.trigger('stack.uk.dropdown', [this]); } dropdown.css("display", ""); } }); })(UIkit);
wallin/cdnjs
ajax/libs/uikit/2.18.0/js/core/dropdown.js
JavaScript
mit
8,625
/* YUI 3.17.0 (build ce55cc9) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('json-stringify', function (Y, NAME) { /** * Provides Y.JSON.stringify method for converting objects to JSON strings. * * @module json * @submodule json-stringify * @for JSON * @static */ var COLON = ':', _JSON = Y.config.global.JSON; Y.mix(Y.namespace('JSON'), { /** * Serializes a Date instance as a UTC date string. Used internally by * stringify. Override this method if you need Dates serialized in a * different format. * * @method dateToString * @param d {Date} The Date to serialize * @return {String} stringified Date in UTC format YYYY-MM-DDTHH:mm:SSZ * @deprecated Use a replacer function * @static */ dateToString: function (d) { function _zeroPad(v) { return v < 10 ? '0' + v : v; } return d.getUTCFullYear() + '-' + _zeroPad(d.getUTCMonth() + 1) + '-' + _zeroPad(d.getUTCDate()) + 'T' + _zeroPad(d.getUTCHours()) + COLON + _zeroPad(d.getUTCMinutes()) + COLON + _zeroPad(d.getUTCSeconds()) + 'Z'; }, /** * <p>Converts an arbitrary value to a JSON string representation.</p> * * <p>Objects with cyclical references will trigger an exception.</p> * * <p>If a whitelist is provided, only matching object keys will be * included. Alternately, a replacer function may be passed as the * second parameter. This function is executed on every value in the * input, and its return value will be used in place of the original value. * This is useful to serialize specialized objects or class instances.</p> * * <p>If a positive integer or non-empty string is passed as the third * parameter, the output will be formatted with carriage returns and * indentation for readability. If a String is passed (such as "\t") it * will be used once for each indentation level. If a number is passed, * that number of spaces will be used.</p> * * @method stringify * @param o {MIXED} any arbitrary value to convert to JSON string * @param w {Array|Function} (optional) whitelist of acceptable object * keys to include, or a replacer function to modify the * raw value before serialization * @param ind {Number|String} (optional) indentation character or depth of * spaces to format the output. * @return {string} JSON string representation of the input * @static */ stringify: function () { return _JSON.stringify.apply(_JSON, arguments); }, /** * <p>Number of occurrences of a special character within a single call to * stringify that should trigger promotion of that character to a dedicated * preprocess step for future calls. This is only used in environments * that don't support native JSON, or when useNativeJSONStringify is set to * false.</p> * * <p>So, if set to 50 and an object is passed to stringify that includes * strings containing the special character \x07 more than 50 times, * subsequent calls to stringify will process object strings through a * faster serialization path for \x07 before using the generic, slower, * replacement process for all special characters.</p> * * <p>To prime the preprocessor cache, set this value to 1, then call * <code>Y.JSON.stringify("<em>(all special characters to * cache)</em>");</code>, then return this setting to a more conservative * value.</p> * * <p>Special characters \ " \b \t \n \f \r are already cached.</p> * * @property charCacheThreshold * @static * @default 100 * @type {Number} */ charCacheThreshold: 100 }); }, '3.17.0', {"requires": ["yui-base"]});
rlugojr/cdnjs
ajax/libs/yui/3.17.0/json-stringify/json-stringify.js
JavaScript
mit
4,019
/* YUI 3.17.0 (build ce55cc9) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('app-transitions', function (Y, NAME) { /** `Y.App` extension that provides view transitions in browsers which support native CSS3 transitions. @module app @submodule app-transitions @since 3.5.0 **/ /** `Y.App` extension that provides view transitions in browsers which support native CSS3 transitions. View transitions provide an nice way to move from one "page" to the next that is both pleasant to the user and helps to communicate a hierarchy between sections of an application. When the `"app-transitions"` module is used, it will automatically mix itself into `Y.App` and transition between `activeView` changes using the following effects: - **`fade`**: Cross-fades between the old an new active views. - **`slideLeft`**: The old and new active views are positioned next to each other and both slide to the left. - **`slideRight`**: The old and new active views are positioned next to each other and both slide to the right. **Note:** Transitions are an opt-in feature and are enabled via an app's `transitions` attribute. @class App.Transitions @uses App.TransitionsNative @extensionfor App @since 3.5.0 **/ function AppTransitions() {} AppTransitions.ATTRS = { /** Whether or not this application should use view transitions, and if so then which ones or `true` for the defaults which are specified by the `transitions` prototype property. **Note:** Transitions are an opt-in feature and will only be used in browsers which support native CSS3 transitions. @attribute transitions @type Boolean|Object @default false @since 3.5.0 **/ transitions: { setter: '_setTransitions', value : false } }; /** Collect of transitions -> fx. A transition (e.g. "fade") is a simple name given to a configuration of fx to apply, consisting of `viewIn` and `viewOut` properties who's values are names of fx registered on `Y.Transition.fx`. By default transitions: `fade`, `slideLeft`, and `slideRight` have fx defined. @property FX @type Object @static @since 3.5.0 **/ AppTransitions.FX = { fade: { viewIn : 'app:fadeIn', viewOut: 'app:fadeOut' }, slideLeft: { viewIn : 'app:slideLeft', viewOut: 'app:slideLeft' }, slideRight: { viewIn : 'app:slideRight', viewOut: 'app:slideRight' } }; AppTransitions.prototype = { // -- Public Properties ---------------------------------------------------- /** Default transitions to use when the `activeView` changes. The following are types of changes for which transitions can be defined that correspond to the relationship between the new and previous `activeView`: * `navigate`: The default transition to use when changing the `activeView` of the application. * `toChild`: The transition to use when the new `activeView` is configured as a child of the previously active view via its `parent` property as defined in this app's `views`. * `toParent`: The transition to use when the new `activeView` is configured as the `parent` of the previously active view as defined in this app's `views`. **Note:** Transitions are an opt-in feature and will only be used in browsers which support native CSS3 transitions. @property transitions @type Object @default { navigate: 'fade', toChild : 'slideLeft', toParent: 'slideRight' } @since 3.5.0 **/ transitions: { navigate: 'fade', toChild : 'slideLeft', toParent: 'slideRight' }, // -- Public Methods ------------------------------------------------------- /** Sets which view is active/visible for the application. This will set the app's `activeView` attribute to the specified `view`. The `view` will be "attached" to this app, meaning it will be both rendered into this app's `viewContainer` node and all of its events will bubble to the app. The previous `activeView` will be "detached" from this app. When a string-name is provided for a view which has been registered on this app's `views` object, the referenced metadata will be used and the `activeView` will be set to either a preserved view instance, or a new instance of the registered view will be created using the specified `config` object passed-into this method. A callback function can be specified as either the third or fourth argument, and this function will be called after the new `view` becomes the `activeView`, is rendered to the `viewContainer`, and is ready to use. @example var app = new Y.App({ views: { usersView: { // Imagine that `Y.UsersView` has been defined. type: Y.UsersView } }, transitions: true, users : new Y.ModelList() }); app.route('/users/', function () { this.showView('usersView', {users: this.get('users')}); }); app.render(); app.navigate('/uses/'); // => Creates a new `Y.UsersView` and transitions to it. @method showView @param {String|View} view The name of a view defined in the `views` object, or a view instance which should become this app's `activeView`. @param {Object} [config] Optional configuration to use when creating a new view instance. This config object can also be used to update an existing or preserved view's attributes when `options.update` is `true`. @param {Object} [options] Optional object containing any of the following properties: @param {Function} [options.callback] Optional callback function to call after new `activeView` is ready to use, the function will be passed: @param {View} options.callback.view A reference to the new `activeView`. @param {Boolean} [options.prepend=false] Whether the `view` should be prepended instead of appended to the `viewContainer`. @param {Boolean} [options.render] Whether the `view` should be rendered. **Note:** If no value is specified, a view instance will only be rendered if it's newly created by this method. @param {Boolean|String} [options.transition] Optional transition override. A transition can be specified which will override the default, or `false` for no transition. @param {Boolean} [options.update=false] Whether an existing view should have its attributes updated by passing the `config` object to its `setAttrs()` method. **Note:** This option does not have an effect if the `view` instance is created as a result of calling this method. @param {Function} [callback] Optional callback Function to call after the new `activeView` is ready to use. **Note:** this will override `options.callback` and it can be specified as either the third or fourth argument. The function will be passed the following: @param {View} callback.view A reference to the new `activeView`. @chainable @since 3.5.0 **/ // Does not override `showView()` but does use `options.transitions`. // -- Protected Methods ---------------------------------------------------- /** Setter for `transitions` attribute. When specified as `true`, the defaults will be use as specified by the `transitions` prototype property. @method _setTransitions @param {Boolean|Object} transitions The new `transitions` attribute value. @return {Mixed} The processed value which represents the new state. @protected @see App.Base.showView() @since 3.5.0 **/ _setTransitions: function (transitions) { var defTransitions = this.transitions; if (transitions && transitions === true) { return Y.merge(defTransitions); } return transitions; } }; // -- Namespace ---------------------------------------------------------------- Y.App.Transitions = AppTransitions; Y.Base.mix(Y.App, [AppTransitions]); Y.mix(Y.App.CLASS_NAMES, { transitioning: Y.ClassNameManager.getClassName('app', 'transitioning') }); }, '3.17.0', {"requires": ["app-base"]});
margaritis/cdnjs
ajax/libs/yui/3.17.0/app-transitions/app-transitions-debug.js
JavaScript
mit
8,479
/* YUI 3.17.0 (build ce55cc9) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('series-stacked', function (Y, NAME) { /** * Provides functionality for creating stacked series. * * @module charts * @submodule series-stacked */ var Y_Lang = Y.Lang; /** * Utility class used for creating stacked series. * * @module charts * @class StackingUtil * @constructor * @submodule series-stacked */ function StackingUtil(){} StackingUtil.prototype = { /** * Indicates whether the series is stacked. * * @property _stacked * @private */ _stacked: true, /** * @protected * * Adjusts coordinate values for stacked series. * * @method _stackCoordinates */ _stackCoordinates: function() { if(this.get("direction") === "vertical") { this._stackXCoords(); } else { this._stackYCoords(); } }, /** * Stacks coordinates for a stacked vertical series. * * @method _stackXCoords * @protected */ _stackXCoords: function() { var order = this.get("order"), seriesCollection = this.get("seriesTypeCollection"), i = 0, xcoords = this.get("xcoords"), ycoords = this.get("ycoords"), len, coord, prevCoord, prevOrder, stackedXCoords = xcoords.concat(), prevXCoords, prevYCoords, nullIndices = [], nullIndex; if(order > 0) { prevXCoords = seriesCollection[order - 1].get("stackedXCoords"); prevYCoords = seriesCollection[order - 1].get("stackedYCoords"); len = prevXCoords.length; } else { len = xcoords.length; } for(; i < len; i = i + 1) { if(Y_Lang.isNumber(xcoords[i])) { if(order > 0) { prevCoord = prevXCoords[i]; if(!Y_Lang.isNumber(prevCoord)) { prevOrder = order; while(prevOrder > - 1 && !Y_Lang.isNumber(prevCoord)) { prevOrder = prevOrder - 1; if(prevOrder > -1) { prevCoord = seriesCollection[prevOrder].get("stackedXCoords")[i]; } else { prevCoord = this._leftOrigin; } } } xcoords[i] = xcoords[i] + prevCoord; } stackedXCoords[i] = xcoords[i]; } else { nullIndices.push(i); } } this._cleanXNaN(stackedXCoords, ycoords); len = nullIndices.length; if(len > 0) { for(i = 0; i < len; i = i + 1) { nullIndex = nullIndices[i]; coord = order > 0 ? prevXCoords[nullIndex] : this._leftOrigin; stackedXCoords[nullIndex] = Math.max(stackedXCoords[nullIndex], coord); } } this.set("stackedXCoords", stackedXCoords); this.set("stackedYCoords", ycoords); }, /** * Stacks coordinates for a stacked horizontal series. * * @method _stackYCoords * @protected */ _stackYCoords: function() { var order = this.get("order"), graphic = this.get("graphic"), h = graphic.get("height"), seriesCollection = this.get("seriesTypeCollection"), i = 0, xcoords = this.get("xcoords"), ycoords = this.get("ycoords"), len, coord, prevCoord, prevOrder, stackedYCoords = ycoords.concat(), prevXCoords, prevYCoords, nullIndices = [], nullIndex; if(order > 0) { prevXCoords = seriesCollection[order - 1].get("stackedXCoords"); prevYCoords = seriesCollection[order - 1].get("stackedYCoords"); len = prevYCoords.length; } else { len = ycoords.length; } for(; i < len; i = i + 1) { if(Y_Lang.isNumber(ycoords[i])) { if(order > 0) { prevCoord = prevYCoords[i]; if(!Y_Lang.isNumber(prevCoord)) { prevOrder = order; while(prevOrder > - 1 && !Y_Lang.isNumber(prevCoord)) { prevOrder = prevOrder - 1; if(prevOrder > -1) { prevCoord = seriesCollection[prevOrder].get("stackedYCoords")[i]; } else { prevCoord = this._bottomOrigin; } } } ycoords[i] = prevCoord - (h - ycoords[i]); } stackedYCoords[i] = ycoords[i]; } else { nullIndices.push(i); } } this._cleanYNaN(xcoords, stackedYCoords); len = nullIndices.length; if(len > 0) { for(i = 0; i < len; i = i + 1) { nullIndex = nullIndices[i]; coord = order > 0 ? prevYCoords[nullIndex] : h; stackedYCoords[nullIndex] = Math.min(stackedYCoords[nullIndex], coord); } } this.set("stackedXCoords", xcoords); this.set("stackedYCoords", stackedYCoords); }, /** * Cleans invalid x-coordinates by calculating their value based on the corresponding y-coordinate, the * previous valid x-coordinate with its corresponding y-coordinate and the next valid x-coordinate with * its corresponding y-coordinate. If there is no previous or next valid x-coordinate, the value will not * be altered. * * @method _cleanXNaN * @param {Array} xcoords An array of x-coordinate values * @param {Array} ycoords An arry of y-coordinate values * @private */ _cleanXNaN: function(xcoords, ycoords) { var previousValidIndex, nextValidIndex, previousValidX, previousValidY, x, y, nextValidX, nextValidY, isNumber = Y_Lang.isNumber, m, i = 0, len = ycoords.length; for(; i < len; ++i) { x = xcoords[i]; y = ycoords[i]; //if x is invalid, calculate where it should be if(!isNumber(x) && i > 0 && i < len - 1) { previousValidY = ycoords[i - 1]; //check to see if the previous value is valid previousValidX = this._getPreviousValidCoordValue(xcoords, i); nextValidY = ycoords[i + 1]; nextValidX = this._getNextValidCoordValue(xcoords, i); //check to see if the next value is valid if(isNumber(previousValidX) && isNumber(nextValidX)) { //calculate slope and solve for x m = (nextValidY - previousValidY) / (nextValidX - previousValidX); xcoords[i] = (y + (m * previousValidX) - previousValidY)/m; } previousValidIndex = NaN; nextValidIndex = NaN; } } }, /** * Returns the previous valid (numeric) value in an array if available. * * @method _getPreviousValidCoordValue * @param {Array} coords Array of values * @param {Number} index The index in the array in which to begin searching. * @return Number * @private */ _getPreviousValidCoordValue: function(coords, index) { var coord, isNumber = Y_Lang.isNumber, limit = -1; while(!isNumber(coord) && index > limit) { index = index - 1; coord = coords[index]; } return coord; }, /** * Returns the next valid (numeric) value in an array if available. * * @method _getNextValidCoordValue * @param {Array} coords Array of values * @param {Number} index The index in the array in which to begin searching. * @return Number * @private */ _getNextValidCoordValue: function(coords, index) { var coord, isNumber = Y_Lang.isNumber, limit = coords.length; while(!isNumber(coord) && index < limit) { index = index + 1; coord = coords[index]; } return coord; }, /** * Cleans invalid y-coordinates by calculating their value based on the corresponding x-coordinate, the * previous valid y-coordinate with its corresponding x-coordinate and the next valid y-coordinate with * its corresponding x-coordinate. If there is no previous or next valid y-coordinate, the value will not * be altered. * * @method _cleanYNaN * @param {Array} xcoords An array of x-coordinate values * @param {Array} ycoords An arry of y-coordinate values * @private */ _cleanYNaN: function(xcoords, ycoords) { var previousValidIndex, nextValidIndex, previousValidX, previousValidY, x, y, nextValidX, nextValidY, isNumber = Y_Lang.isNumber, m, i = 0, len = xcoords.length; for(; i < len; ++i) { x = xcoords[i]; y = ycoords[i]; //if y is invalid, calculate where it should be if(!isNumber(y) && i > 0 && i < len - 1) { //check to see if the previous value is valid previousValidX = xcoords[i - 1]; previousValidY = this._getPreviousValidCoordValue(ycoords, i); //check to see if the next value is valid nextValidX = xcoords[i + 1]; nextValidY = this._getNextValidCoordValue(ycoords, i); if(isNumber(previousValidY) && isNumber(nextValidY)) { //calculate slope and solve for y m = (nextValidY - previousValidY) / (nextValidX - previousValidX); ycoords[i] = previousValidY + ((m * x) - (m * previousValidX)); } previousValidIndex = NaN; nextValidIndex = NaN; } } } }; Y.StackingUtil = StackingUtil; }, '3.17.0', {"requires": ["axis-stacked"]});
Rbeuque74/cdnjs
ajax/libs/yui/3.17.0/series-stacked/series-stacked.js
JavaScript
mit
11,282
/* YUI 3.17.0 (build ce55cc9) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('widget-anim', function (Y, NAME) { /** * Provides a plugin which can be used to animate widget visibility changes. * * @module widget-anim */ var BOUNDING_BOX = "boundingBox", HOST = "host", NODE = "node", OPACITY = "opacity", EMPTY_STR = "", VISIBLE = "visible", DESTROY = "destroy", HIDDEN = "hidden", RENDERED = "rendered", START = "start", END = "end", DURATION = "duration", ANIM_SHOW = "animShow", ANIM_HIDE = "animHide", _UI_SET_VISIBLE = "_uiSetVisible", ANIM_SHOW_CHANGE = "animShowChange", ANIM_HIDE_CHANGE = "animHideChange"; /** * A plugin class which can be used to animate widget visibility changes. * * @class WidgetAnim * @extends Plugin.Base * @namespace Plugin */ function WidgetAnim(config) { WidgetAnim.superclass.constructor.apply(this, arguments); } /** * The namespace for the plugin. This will be the property on the widget, which will * reference the plugin instance, when it's plugged in. * * @property NS * @static * @type String * @default "anim" */ WidgetAnim.NS = "anim"; /** * The NAME of the WidgetAnim class. Used to prefix events generated * by the plugin class. * * @property NAME * @static * @type String * @default "pluginWidgetAnim" */ WidgetAnim.NAME = "pluginWidgetAnim"; /** * Pre-Packaged Animation implementations, which can be used for animShow and animHide attribute * values. * * @property ANIMATIONS * @static * @type Object * @default "pluginWidgetAnim" */ WidgetAnim.ANIMATIONS = { fadeIn : function() { var widget = this.get(HOST), boundingBox = widget.get(BOUNDING_BOX), anim = new Y.Anim({ node: boundingBox, to: { opacity: 1 }, duration: this.get(DURATION) }); // Set initial opacity, to avoid initial flicker if (!widget.get(VISIBLE)) { boundingBox.setStyle(OPACITY, 0); } // Clean up, on destroy. Where supported, remove // opacity set using style. Else make 100% opaque anim.on(DESTROY, function() { this.get(NODE).setStyle(OPACITY, (Y.UA.ie) ? 1 : EMPTY_STR); }); return anim; }, fadeOut : function() { return new Y.Anim({ node: this.get(HOST).get(BOUNDING_BOX), to: { opacity: 0 }, duration: this.get(DURATION) }); } }; /** * Static property used to define the default attribute * configuration for the plugin. * * @property ATTRS * @type Object * @static */ WidgetAnim.ATTRS = { /** * Default duration in seconds. Used as the default duration for the default animation implementations * * @attribute duration * @type Number * @default 0.2 (seconds */ duration : { value: 0.2 }, /** * Default animation instance used for showing the widget (opacity fade-in) * * @attribute animShow * @type Anim * @default WidgetAnim.ANIMATIONS.fadeIn */ animShow : { valueFn: WidgetAnim.ANIMATIONS.fadeIn }, /** * Default animation instance used for hiding the widget (opacity fade-out) * * @attribute animHide * @type Anim * @default WidgetAnim.ANIMATIONS.fadeOut */ animHide : { valueFn: WidgetAnim.ANIMATIONS.fadeOut } }; Y.extend(WidgetAnim, Y.Plugin.Base, { /** * The initializer lifecycle implementation. Modifies the host widget's * visibililty implementation to add animation. * * @method initializer * @param {Object} config The user configuration for the plugin */ initializer : function(config) { this._bindAnimShow(); this._bindAnimHide(); this.after(ANIM_SHOW_CHANGE, this._bindAnimShow); this.after(ANIM_HIDE_CHANGE, this._bindAnimHide); // Override default _uiSetVisible method, with custom animated method this.beforeHostMethod(_UI_SET_VISIBLE, this._uiAnimSetVisible); }, /** * The initializer destructor implementation. Responsible for destroying the configured * animation instances. * * @method destructor */ destructor : function() { this.get(ANIM_SHOW).destroy(); this.get(ANIM_HIDE).destroy(); }, /** * The injected method used to override the host widget's _uiSetVisible implementation with * an animated version of the same. * * <p>This method replaces the default _uiSetVisible handler * Widget provides, by injecting itself before _uiSetVisible, * and preventing the default behavior. </p> * * @method _uiAnimSetVisible * @protected * @param {boolean} val true, if making the widget visible. false, if hiding it. */ _uiAnimSetVisible : function(val) { if (this.get(HOST).get(RENDERED)) { if (val) { this.get(ANIM_HIDE).stop(); this.get(ANIM_SHOW).run(); } else { this.get(ANIM_SHOW).stop(); this.get(ANIM_HIDE).run(); } return new Y.Do.Prevent(); } }, /** * The original Widget _uiSetVisible implementation. This currently needs to be replicated, * so it can be invoked before or after the animation starts or stops, since the original * methods is not available to the AOP implementation. * * @method _uiSetVisible * @param {boolean} val true, if making the widget visible. false, if hiding it. * @private */ _uiSetVisible : function(val) { var host = this.get(HOST), hiddenClass = host.getClassName(HIDDEN); host.get(BOUNDING_BOX).toggleClass(hiddenClass, !val); }, /** * Binds a listener to invoke the original visibility handling when the animShow animation is started * * @method _bindAnimShow * @private */ _bindAnimShow : function() { // Setup original visibility handling (for show) before starting to animate this.get(ANIM_SHOW).on(START, Y.bind(function() { this._uiSetVisible(true); }, this)); }, /** * Binds a listener to invoke the original visibility handling when the animHide animation is complete * * @method _bindAnimHide * @private */ _bindAnimHide : function() { // Setup original visibility handling (for hide) after completing animation this.get(ANIM_HIDE).after(END, Y.bind(function() { this._uiSetVisible(false); }, this)); } }); Y.namespace("Plugin").WidgetAnim = WidgetAnim; }, '3.17.0', {"requires": ["anim-base", "plugin", "widget"]});
KyleMit/cdnjs
ajax/libs/yui/3.17.0/widget-anim/widget-anim-debug.js
JavaScript
mit
6,932
/* YUI 3.17.0 (build ce55cc9) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('app-base', function (Y, NAME) { /** The App Framework provides simple MVC-like building blocks (models, model lists, views, and URL-based routing) for writing single-page JavaScript applications. @main app @module app @since 3.4.0 **/ /** Provides a top-level application component which manages navigation and views. @module app @submodule app-base @since 3.5.0 **/ // TODO: Better handling of lifecycle for registered views: // // * [!] Just redo basically everything with view management so there are no // pre-`activeViewChange` side effects and handle the rest of these things: // // * Seems like any view created via `createView` should listen for the view's // `destroy` event and use that to remove it from the `_viewsInfoMap`. I // should look at what ModelList does for Models as a reference. // // * Should we have a companion `destroyView()` method? Maybe this wouldn't be // needed if we have a `getView(name, create)` method, and already doing the // above? We could do `app.getView('foo').destroy()` and it would be removed // from the `_viewsInfoMap` as well. // // * Should we wait to call a view's `render()` method inside of the // `_attachView()` method? // // * Should named views support a collection of instances instead of just one? // var Lang = Y.Lang, YObject = Y.Object, PjaxBase = Y.PjaxBase, Router = Y.Router, View = Y.View, getClassName = Y.ClassNameManager.getClassName, win = Y.config.win, AppBase; /** Provides a top-level application component which manages navigation and views. This gives you a foundation and structure on which to build your application; it combines robust URL navigation with powerful routing and flexible view management. @class App.Base @param {Object} [config] The following are configuration properties that can be specified _in addition_ to default attribute values and the non-attribute properties provided by `Y.Base`: @param {Object} [config.views] Hash of view-name to metadata used to declaratively describe an application's views and their relationship with the app and other views. The views specified here will override any defaults provided by the `views` object on the `prototype`. @constructor @extends Base @uses View @uses Router @uses PjaxBase @since 3.5.0 **/ AppBase = Y.Base.create('app', Y.Base, [View, Router, PjaxBase], { // -- Public Properties ---------------------------------------------------- /** Hash of view-name to metadata used to declaratively describe an application's views and their relationship with the app and its other views. The view metadata is composed of Objects keyed to a view-name that can have any or all of the following properties: * `type`: Function or a string representing the view constructor to use to create view instances. If a string is used, the constructor function is assumed to be on the `Y` object; e.g. `"SomeView"` -> `Y.SomeView`. * `preserve`: Boolean for whether the view instance should be retained. By default, the view instance will be destroyed when it is no longer the `activeView`. If `true` the view instance will simply be `removed()` from the DOM when it is no longer active. This is useful when the view is frequently used and may be expensive to re-create. * `parent`: String to another named view in this hash that represents the parent view within the application's view hierarchy; e.g. a `"photo"` view could have `"album"` has its `parent` view. This parent/child relationship is a useful cue for things like transitions. * `instance`: Used internally to manage the current instance of this named view. This can be used if your view instance is created up-front, or if you would rather manage the View lifecycle, but you probably should just let this be handled for you. If `views` are specified at instantiation time, the metadata in the `views` Object here will be used as defaults when creating the instance's `views`. Every `Y.App` instance gets its own copy of a `views` object so this Object on the prototype will not be polluted. @example // Imagine that `Y.UsersView` and `Y.UserView` have been defined. var app = new Y.App({ views: { users: { type : Y.UsersView, preserve: true }, user: { type : Y.UserView, parent: 'users' } } }); @property views @type Object @default {} @since 3.5.0 **/ views: {}, // -- Protected Properties ------------------------------------------------- /** Map of view instance id (via `Y.stamp()`) to view-info object in `views`. This mapping is used to tie a specific view instance back to its metadata by adding a reference to the the related view info on the `views` object. @property _viewInfoMap @type Object @default {} @protected @since 3.5.0 **/ // -- Lifecycle Methods ---------------------------------------------------- initializer: function (config) { config || (config = {}); var views = {}; // Merges-in specified view metadata into local `views` object. function mergeViewConfig(view, name) { views[name] = Y.merge(views[name], view); } // First, each view in the `views` prototype object gets its metadata // merged-in, providing the defaults. YObject.each(this.views, mergeViewConfig); // Then, each view in the specified `config.views` object gets its // metadata merged-in. YObject.each(config.views, mergeViewConfig); // The resulting hodgepodge of metadata is then stored as the instance's // `views` object, and no one's objects were harmed in the making. this.views = views; this._viewInfoMap = {}; // Using `bind()` to aid extensibility. this.after('activeViewChange', Y.bind('_afterActiveViewChange', this)); // PjaxBase will bind click events when `html5` is `true`, so this just // forces the binding when `serverRouting` and `html5` are both falsy. if (!this.get('serverRouting')) { this._pjaxBindUI(); } }, // TODO: `destructor` to destroy the `activeView`? // -- Public Methods ------------------------------------------------------- /** Creates and returns a new view instance using the provided `name` to look up the view info metadata defined in the `views` object. The passed-in `config` object is passed to the view constructor function. This function also maps a view instance back to its view info metadata. @method createView @param {String} name The name of a view defined on the `views` object. @param {Object} [config] The configuration object passed to the view constructor function when creating the new view instance. @return {View} The new view instance. @since 3.5.0 **/ createView: function (name, config) { var viewInfo = this.getViewInfo(name), type = (viewInfo && viewInfo.type) || View, ViewConstructor, view; // Looks for a namespaced constructor function on `Y`. ViewConstructor = Lang.isString(type) ? YObject.getValue(Y, type.split('.')) : type; // Create the view instance and map it with its metadata. view = new ViewConstructor(config); this._viewInfoMap[Y.stamp(view, true)] = viewInfo; return view; }, /** Returns the metadata associated with a view instance or view name defined on the `views` object. @method getViewInfo @param {View|String} view View instance, or name of a view defined on the `views` object. @return {Object} The metadata for the view, or `undefined` if the view is not registered. @since 3.5.0 **/ getViewInfo: function (view) { if (Lang.isString(view)) { return this.views[view]; } return view && this._viewInfoMap[Y.stamp(view, true)]; }, /** Navigates to the specified URL if there is a route handler that matches. In browsers capable of using HTML5 history or when `serverRouting` is falsy, the navigation will be enhanced by firing the `navigate` event and having the app handle the "request". When `serverRouting` is `true`, non-HTML5 browsers will navigate to the new URL via a full page reload. When there is a route handler for the specified URL and it is being navigated to, this method will return `true`, otherwise it will return `false`. **Note:** The specified URL _must_ be of the same origin as the current URL, otherwise an error will be logged and navigation will not occur. This is intended as both a security constraint and a purposely imposed limitation as it does not make sense to tell the app to navigate to a URL on a different scheme, host, or port. @method navigate @param {String} url The URL to navigate to. This must be of the same origin as the current URL. @param {Object} [options] Additional options to configure the navigation. These are mixed into the `navigate` event facade. @param {Boolean} [options.replace] Whether or not the current history entry will be replaced, or a new entry will be created. Will default to `true` if the specified `url` is the same as the current URL. @param {Boolean} [options.force] Whether the enhanced navigation should occur even in browsers without HTML5 history. Will default to `true` when `serverRouting` is falsy. @see PjaxBase.navigate() **/ // Does not override `navigate()` but does use extra `options`. /** Renders this application by appending the `viewContainer` node to the `container` node if it isn't already a child of the container, and the `activeView` will be appended the view container, if it isn't already. You should call this method at least once, usually after the initialization of your app instance so the proper DOM structure is setup and optionally append the container to the DOM if it's not there already. You may override this method to customize the app's rendering, but you should expect that the `viewContainer`'s contents will be modified by the app for the purpose of rendering the `activeView` when it changes. @method render @chainable @see View.render() **/ render: function () { var CLASS_NAMES = Y.App.CLASS_NAMES, container = this.get('container'), viewContainer = this.get('viewContainer'), activeView = this.get('activeView'), activeViewContainer = activeView && activeView.get('container'), areSame = container.compareTo(viewContainer); container.addClass(CLASS_NAMES.app); viewContainer.addClass(CLASS_NAMES.views); // Prevents needless shuffling around of nodes and maintains DOM order. if (activeView && !viewContainer.contains(activeViewContainer)) { viewContainer.appendChild(activeViewContainer); } // Prevents needless shuffling around of nodes and maintains DOM order. if (!container.contains(viewContainer) && !areSame) { container.appendChild(viewContainer); } return this; }, /** Sets which view is active/visible for the application. This will set the app's `activeView` attribute to the specified `view`. The `view` will be "attached" to this app, meaning it will be both rendered into this app's `viewContainer` node and all of its events will bubble to the app. The previous `activeView` will be "detached" from this app. When a string-name is provided for a view which has been registered on this app's `views` object, the referenced metadata will be used and the `activeView` will be set to either a preserved view instance, or a new instance of the registered view will be created using the specified `config` object passed-into this method. A callback function can be specified as either the third or fourth argument, and this function will be called after the new `view` becomes the `activeView`, is rendered to the `viewContainer`, and is ready to use. @example var app = new Y.App({ views: { usersView: { // Imagine that `Y.UsersView` has been defined. type: Y.UsersView } }, users: new Y.ModelList() }); app.route('/users/', function () { this.showView('usersView', {users: this.get('users')}); }); app.render(); app.navigate('/uses/'); // => Creates a new `Y.UsersView` and shows it. @method showView @param {String|View} view The name of a view defined in the `views` object, or a view instance which should become this app's `activeView`. @param {Object} [config] Optional configuration to use when creating a new view instance. This config object can also be used to update an existing or preserved view's attributes when `options.update` is `true`. @param {Object} [options] Optional object containing any of the following properties: @param {Function} [options.callback] Optional callback function to call after new `activeView` is ready to use, the function will be passed: @param {View} options.callback.view A reference to the new `activeView`. @param {Boolean} [options.prepend=false] Whether the `view` should be prepended instead of appended to the `viewContainer`. @param {Boolean} [options.render] Whether the `view` should be rendered. **Note:** If no value is specified, a view instance will only be rendered if it's newly created by this method. @param {Boolean} [options.update=false] Whether an existing view should have its attributes updated by passing the `config` object to its `setAttrs()` method. **Note:** This option does not have an effect if the `view` instance is created as a result of calling this method. @param {Function} [callback] Optional callback Function to call after the new `activeView` is ready to use. **Note:** this will override `options.callback` and it can be specified as either the third or fourth argument. The function will be passed the following: @param {View} callback.view A reference to the new `activeView`. @chainable @since 3.5.0 **/ showView: function (view, config, options, callback) { var viewInfo, created; options || (options = {}); // Support the callback function being either the third or fourth arg. if (callback) { options = Y.merge(options, {callback: callback}); } else if (Lang.isFunction(options)) { options = {callback: options}; } if (Lang.isString(view)) { viewInfo = this.getViewInfo(view); // Use the preserved view instance, or create a new view. // TODO: Maybe we can remove the strict check for `preserve` and // assume we'll use a View instance if it is there, and just check // `preserve` when detaching? if (viewInfo && viewInfo.preserve && viewInfo.instance) { view = viewInfo.instance; // Make sure there's a mapping back to the view metadata. this._viewInfoMap[Y.stamp(view, true)] = viewInfo; } else { // TODO: Add the app as a bubble target during construction, but // make sure to check that it isn't already in `bubbleTargets`! // This will allow the app to be notified for about _all_ of the // view's events. **Note:** This should _only_ happen if the // view is created _after_ `activeViewChange`. view = this.createView(view, config); created = true; } } // Update the specified or preserved `view` when signaled to do so. // There's no need to updated a view if it was _just_ created. if (options.update && !created) { view.setAttrs(config); } // TODO: Hold off on rendering the view until after it has been // "attached", and move the call to render into `_attachView()`. // When a value is specified for `options.render`, prefer it because it // represents the developer's intent. When no value is specified, the // `view` will only be rendered if it was just created. if ('render' in options) { if (options.render) { view.render(); } } else if (created) { view.render(); } return this._set('activeView', view, {options: options}); }, // -- Protected Methods ---------------------------------------------------- /** Helper method to attach the view instance to the application by making the app a bubble target of the view, append the view to the `viewContainer`, and assign it to the `instance` property of the associated view info metadata. @method _attachView @param {View} view View to attach. @param {Boolean} prepend=false Whether the view should be prepended instead of appended to the `viewContainer`. @protected @since 3.5.0 **/ _attachView: function (view, prepend) { if (!view) { return; } var viewInfo = this.getViewInfo(view), viewContainer = this.get('viewContainer'); // Bubble the view's events to this app. view.addTarget(this); // Save the view instance in the `views` registry. if (viewInfo) { viewInfo.instance = view; } // TODO: Attach events here for persevered Views? // See related TODO in `_detachView`. // TODO: Actually render the view here so that it gets "attached" before // it gets rendered? // Insert view into the DOM. viewContainer[prepend ? 'prepend' : 'append'](view.get('container')); }, /** Overrides View's container destruction to deal with the `viewContainer` and checks to make sure not to remove and purge the `<body>`. @method _destroyContainer @protected @see View._destroyContainer() **/ _destroyContainer: function () { var CLASS_NAMES = Y.App.CLASS_NAMES, container = this.get('container'), viewContainer = this.get('viewContainer'), areSame = container.compareTo(viewContainer); // We do not want to remove or destroy the `<body>`. if (Y.one('body').compareTo(container)) { // Just clean-up our events listeners. this.detachEvents(); // Clean-up `yui3-app` CSS class on the `container`. container.removeClass(CLASS_NAMES.app); if (areSame) { // Clean-up `yui3-app-views` CSS class on the `container`. container.removeClass(CLASS_NAMES.views); } else { // Destroy and purge the `viewContainer`. viewContainer.remove(true); } return; } // Remove and purge events from both containers. viewContainer.remove(true); if (!areSame) { container.remove(true); } }, /** Helper method to detach the view instance from the application by removing the application as a bubble target of the view, and either just removing the view if it is intended to be preserved, or destroying the instance completely. @method _detachView @param {View} view View to detach. @protected @since 3.5.0 **/ _detachView: function (view) { if (!view) { return; } var viewInfo = this.getViewInfo(view) || {}; if (viewInfo.preserve) { view.remove(); // TODO: Detach events here for preserved Views? It is possible that // some event subscriptions are made on elements other than the // View's `container`. } else { view.destroy({remove: true}); // TODO: The following should probably happen automagically from // `destroy()` being called! Possibly `removeTarget()` as well. // Remove from view to view-info map. delete this._viewInfoMap[Y.stamp(view, true)]; // Remove from view-info instance property. if (view === viewInfo.instance) { delete viewInfo.instance; } } view.removeTarget(this); }, /** Gets a request object that can be passed to a route handler. This delegates to `Y.Router`'s `_getRequest()` method and adds a reference to this app instance at `req.app`. @method _getRequest @param {String} src What initiated the URL change and need for the request. @return {Object} Request object. @protected @see Router._getRequest **/ _getRequest: function () { var req = Router.prototype._getRequest.apply(this, arguments); req.app = this; return req; }, /** Getter for the `viewContainer` attribute. @method _getViewContainer @param {Node|null} value Current attribute value. @return {Node} View container node. @protected @since 3.5.0 **/ _getViewContainer: function (value) { // This wackiness is necessary to enable fully lazy creation of the // container node both when no container is specified and when one is // specified via a valueFn. if (!value && !this._viewContainer) { // Create a default container and set that as the new attribute // value. The `this._viewContainer` property prevents infinite // recursion. value = this._viewContainer = this.create(); this._set('viewContainer', value); } return value; }, /** Provides the default value for the `html5` attribute. The value returned is dependent on the value of the `serverRouting` attribute. When `serverRouting` is explicit set to `false` (not just falsy), the default value for `html5` will be set to `false` for *all* browsers. When `serverRouting` is `true` or `undefined` the returned value will be dependent on the browser's capability of using HTML5 history. @method _initHtml5 @return {Boolean} Whether or not HTML5 history should be used. @protected @since 3.5.0 **/ _initHtml5: function () { // When `serverRouting` is explicitly set to `false` (not just falsy), // forcing hash-based URLs in all browsers. if (this.get('serverRouting') === false) { return false; } // Defaults to whether or not the browser supports HTML5 history. return Router.html5; }, /** Determines if the specified `view` is configured as a child of the specified `parent` view. This requires both views to be either named-views, or view instances created using configuration data that exists in the `views` object, e.g. created by the `createView()` or `showView()` method. @method _isChildView @param {View|String} view The name of a view defined in the `views` object, or a view instance. @param {View|String} parent The name of a view defined in the `views` object, or a view instance. @return {Boolean} Whether the view is configured as a child of the parent. @protected @since 3.5.0 **/ _isChildView: function (view, parent) { var viewInfo = this.getViewInfo(view), parentInfo = this.getViewInfo(parent); if (viewInfo && parentInfo) { return this.getViewInfo(viewInfo.parent) === parentInfo; } return false; }, /** Determines if the specified `view` is configured as the parent of the specified `child` view. This requires both views to be either named-views, or view instances created using configuration data that exists in the `views` object, e.g. created by the `createView()` or `showView()` method. @method _isParentView @param {View|String} view The name of a view defined in the `views` object, or a view instance. @param {View|String} parent The name of a view defined in the `views` object, or a view instance. @return {Boolean} Whether the view is configured as the parent of the child. @protected @since 3.5.0 **/ _isParentView: function (view, child) { var viewInfo = this.getViewInfo(view), childInfo = this.getViewInfo(child); if (viewInfo && childInfo) { return this.getViewInfo(childInfo.parent) === viewInfo; } return false; }, /** Underlying implementation for `navigate()`. @method _navigate @param {String} url The fully-resolved URL that the app should dispatch to its route handlers to fulfill the enhanced navigation "request", or use to update `window.location` in non-HTML5 history capable browsers when `serverRouting` is `true`. @param {Object} [options] Additional options to configure the navigation. These are mixed into the `navigate` event facade. @param {Boolean} [options.replace] Whether or not the current history entry will be replaced, or a new entry will be created. Will default to `true` if the specified `url` is the same as the current URL. @param {Boolean} [options.force] Whether the enhanced navigation should occur even in browsers without HTML5 history. Will default to `true` when `serverRouting` is falsy. @protected @see PjaxBase._navigate() **/ _navigate: function (url, options) { if (!this.get('serverRouting')) { // Force navigation to be enhanced and handled by the app when // `serverRouting` is falsy because the server might not be able to // properly handle the request. options = Y.merge({force: true}, options); } return PjaxBase.prototype._navigate.call(this, url, options); }, /** Will either save a history entry using `pushState()` or the location hash, or gracefully-degrade to sending a request to the server causing a full-page reload. Overrides Router's `_save()` method to preform graceful-degradation when the app's `serverRouting` is `true` and `html5` is `false` by updating the full URL via standard assignment to `window.location` or by calling `window.location.replace()`; both of which will cause a request to the server resulting in a full-page reload. Otherwise this will just delegate off to Router's `_save()` method allowing the client-side enhanced routing to occur. @method _save @param {String} [url] URL for the history entry. @param {Boolean} [replace=false] If `true`, the current history entry will be replaced instead of a new one being added. @chainable @protected @see Router._save() **/ _save: function (url, replace) { var path; // Forces full-path URLs to always be used by modifying // `window.location` in non-HTML5 history capable browsers. if (this.get('serverRouting') && !this.get('html5')) { // Perform same-origin check on the specified URL. if (!this._hasSameOrigin(url)) { Y.error('Security error: The new URL must be of the same origin as the current URL.'); return this; } // Either replace the current history entry or create a new one // while navigating to the `url`. if (win) { // Results in the URL's full path starting with '/'. path = this._joinURL(url || ''); if (replace) { win.location.replace(path); } else { win.location = path; } } return this; } return Router.prototype._save.apply(this, arguments); }, /** Performs the actual change of this app's `activeView` by attaching the `newView` to this app, and detaching the `oldView` from this app using any specified `options`. The `newView` is attached to the app by rendering it to the `viewContainer`, and making this app a bubble target of its events. The `oldView` is detached from the app by removing it from the `viewContainer`, and removing this app as a bubble target for its events. The `oldView` will either be preserved or properly destroyed. **Note:** The `activeView` attribute is read-only and can be changed by calling the `showView()` method. @method _uiSetActiveView @param {View} newView The View which is now this app's `activeView`. @param {View} [oldView] The View which was this app's `activeView`. @param {Object} [options] Optional object containing any of the following properties: @param {Function} [options.callback] Optional callback function to call after new `activeView` is ready to use, the function will be passed: @param {View} options.callback.view A reference to the new `activeView`. @param {Boolean} [options.prepend=false] Whether the `view` should be prepended instead of appended to the `viewContainer`. @param {Boolean} [options.render] Whether the `view` should be rendered. **Note:** If no value is specified, a view instance will only be rendered if it's newly created by this method. @param {Boolean} [options.update=false] Whether an existing view should have its attributes updated by passing the `config` object to its `setAttrs()` method. **Note:** This option does not have an effect if the `view` instance is created as a result of calling this method. @protected @since 3.5.0 **/ _uiSetActiveView: function (newView, oldView, options) { options || (options = {}); var callback = options.callback, isChild = this._isChildView(newView, oldView), isParent = !isChild && this._isParentView(newView, oldView), prepend = !!options.prepend || isParent; // Prevent detaching (thus removing) the view we want to show. Also hard // to animate out and in, the same view. if (newView === oldView) { return callback && callback.call(this, newView); } this._attachView(newView, prepend); this._detachView(oldView); if (callback) { callback.call(this, newView); } }, // -- Protected Event Handlers --------------------------------------------- /** Handles the application's `activeViewChange` event (which is fired when the `activeView` attribute changes) by detaching the old view, attaching the new view. The `activeView` attribute is read-only, so the public API to change its value is through the `showView()` method. @method _afterActiveViewChange @param {EventFacade} e @protected @since 3.5.0 **/ _afterActiveViewChange: function (e) { this._uiSetActiveView(e.newVal, e.prevVal, e.options); } }, { ATTRS: { /** The application's active/visible view. This attribute is read-only, to set the `activeView` use the `showView()` method. @attribute activeView @type View @default null @readOnly @see App.Base.showView() @since 3.5.0 **/ activeView: { value : null, readOnly: true }, /** Container node which represents the application's bounding-box, into which this app's content will be rendered. The container node serves as the host for all DOM events attached by the app. Delegation is used to handle events on children of the container, allowing the container's contents to be re-rendered at any time without losing event subscriptions. The default container is the `<body>` Node, but you can override this in a subclass, or by passing in a custom `container` config value at instantiation time. When `container` is overridden by a subclass or passed as a config option at instantiation time, it may be provided as a selector string, a DOM element, or a `Y.Node` instance. During initialization, this app's `create()` method will be called to convert the container into a `Y.Node` instance if it isn't one already and stamp it with the CSS class: `"yui3-app"`. The container is not added to the page automatically. This allows you to have full control over how and when your app is actually rendered to the page. @attribute container @type HTMLElement|Node|String @default Y.one('body') @initOnly **/ container: { valueFn: function () { return Y.one('body'); } }, /** Whether or not this browser is capable of using HTML5 history. This value is dependent on the value of `serverRouting` and will default accordingly. Setting this to `false` will force the use of hash-based history even on HTML5 browsers, but please don't do this unless you understand the consequences. @attribute html5 @type Boolean @initOnly @see serverRouting **/ html5: { valueFn: '_initHtml5' }, /** CSS selector string used to filter link click events so that only the links which match it will have the enhanced-navigation behavior of pjax applied. When a link is clicked and that link matches this selector, navigating to the link's `href` URL using the enhanced, pjax, behavior will be attempted; and the browser's default way to navigate to new pages will be the fallback. By default this selector will match _all_ links on the page. @attribute linkSelector @type String|Function @default "a" **/ linkSelector: { value: 'a' }, /** Whether or not this application's server is capable of properly routing all requests and rendering the initial state in the HTML responses. This can have three different values, each having particular implications on how the app will handle routing and navigation: * `undefined`: The best form of URLs will be chosen based on the capabilities of the browser. Given no information about the server environmentm a balanced approach to routing and navigation is chosen. The server should be capable of handling full-path requests, since full-URLs will be generated by browsers using HTML5 history. If this is a client-side-only app the server could handle full-URL requests by sending a redirect back to the root with a hash-based URL, e.g: Request: http://example.com/users/1 Redirect to: http://example.com/#/users/1 * `true`: The server is *fully* capable of properly handling requests to all full-path URLs the app can produce. This is the best option for progressive-enhancement because it will cause **all URLs to always have full-paths**, which means the server will be able to accurately handle all URLs this app produces. e.g. http://example.com/users/1 To meet this strict full-URL requirement, browsers which are not capable of using HTML5 history will make requests to the server resulting in full-page reloads. * `false`: The server is *not* capable of properly handling requests to all full-path URLs the app can produce, therefore all routing will be handled by this App instance. Be aware that this will cause **all URLs to always be hash-based**, even in browsers that are capable of using HTML5 history. e.g. http://example.com/#/users/1 A single-page or client-side-only app where the server sends a "shell" page with JavaScript to the client might have this restriction. If you're setting this to `false`, read the following: **Note:** When this is set to `false`, the server will *never* receive the full URL because browsers do not send the fragment-part to the server, that is everything after and including the "#". Consider the following example: URL shown in browser: http://example.com/#/users/1 URL sent to server: http://example.com/ You should feel bad about hurting our precious web if you forcefully set either `serverRouting` or `html5` to `false`, because you're basically punching the web in the face here with your lossy URLs! Please make sure you know what you're doing and that you understand the implications. Ideally you should always prefer full-path URLs (not /#/foo/), and want full-page reloads when the client's browser is not capable of enhancing the experience using the HTML5 history APIs. Setting this to `true` is the best option for progressive-enhancement (and graceful-degradation). @attribute serverRouting @type Boolean @default undefined @initOnly @since 3.5.0 **/ serverRouting: { valueFn : function () { return Y.App.serverRouting; }, writeOnce: 'initOnly' }, /** The node into which this app's `views` will be rendered when they become the `activeView`. The view container node serves as the container to hold the app's `activeView`. Each time the `activeView` is set via `showView()`, the previous view will be removed from this node, and the new active view's `container` node will be appended. The default view container is a `<div>` Node, but you can override this in a subclass, or by passing in a custom `viewContainer` config value at instantiation time. The `viewContainer` may be provided as a selector string, DOM element, or a `Y.Node` instance (having the `viewContainer` and the `container` be the same node is also supported). The app's `render()` method will stamp the view container with the CSS class `"yui3-app-views"` and append it to the app's `container` node if it isn't already, and any `activeView` will be appended to this node if it isn't already. @attribute viewContainer @type HTMLElement|Node|String @default Y.Node.create(this.containerTemplate) @initOnly @since 3.5.0 **/ viewContainer: { getter : '_getViewContainer', setter : Y.one, writeOnce: true } }, /** Properties that shouldn't be turned into ad-hoc attributes when passed to App's constructor. @property _NON_ATTRS_CFG @type Array @static @protected @since 3.5.0 **/ _NON_ATTRS_CFG: ['views'] }); // -- Namespace ---------------------------------------------------------------- Y.namespace('App').Base = AppBase; /** Provides a top-level application component which manages navigation and views. This gives you a foundation and structure on which to build your application; it combines robust URL navigation with powerful routing and flexible view management. `Y.App` is both a namespace and constructor function. The `Y.App` class is special in that any `Y.App` class extensions that are included in the YUI instance will be **auto-mixed** on to the `Y.App` class. Consider this example: YUI().use('app-base', 'app-transitions', function (Y) { // This will create two YUI Apps, `basicApp` will not have transitions, // but `fancyApp` will have transitions support included and turn it on. var basicApp = new Y.App.Base(), fancyApp = new Y.App({transitions: true}); }); @class App @param {Object} [config] The following are configuration properties that can be specified _in addition_ to default attribute values and the non-attribute properties provided by `Y.Base`: @param {Object} [config.views] Hash of view-name to metadata used to declaratively describe an application's views and their relationship with the app and other views. The views specified here will override any defaults provided by the `views` object on the `prototype`. @constructor @extends App.Base @uses App.Content @uses App.Transitions @uses PjaxContent @since 3.5.0 **/ Y.App = Y.mix(Y.Base.create('app', AppBase, []), Y.App, true); /** CSS classes used by `Y.App`. @property CLASS_NAMES @type Object @default {} @static @since 3.6.0 **/ Y.App.CLASS_NAMES = { app : getClassName('app'), views: getClassName('app', 'views') }; /** Default `serverRouting` attribute value for all apps. @property serverRouting @type Boolean @default undefined @static @since 3.6.0 **/ }, '3.17.0', {"requires": ["classnamemanager", "pjax-base", "router", "view"]});
luanlmd/cdnjs
ajax/libs/yui/3.17.0/app-base/app-base-debug.js
JavaScript
mit
42,432
/* YUI 3.17.0 (build ce55cc9) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ .yui3-datatable-sortable-column{z-index:1}.yui3-datatable-sortable-column:focus,.yui3-datatable-sortable-column:active{z-index:2}.yui3-datatable-sort-liner{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.yui3-skin-night .yui3-datatable-sortable-column{cursor:pointer}.yui3-skin-night .yui3-datatable-columns .yui3-datatable-sorted,.yui3-skin-night .yui3-datatable-sortable-column:hover{background-color:#4d4e4f;*background:#505152 url(../../../../assets/skins/night/sprite.png) repeat-x 0 -100px;background-image:-webkit-gradient(linear,0 0,0 100%,from(rgba(255,255,255,0.2)),color-stop(40%,rgba(255,255,255,0.1)),color-stop(80%,rgba(255,255,255,0.01)),to(transparent));background-image:-webkit-linear-gradient(rgba(255,255,255,0.2),rgba(255,255,255,0.1) 40%,rgba(255,255,255,0.01) 80%,transparent);background-image:-moz-linear-gradient(top,rgba(255,255,255,0.2),rgba(255,255,255,0.1) 40%,rgba(255,255,255,0.01) 80%,transparent);background-image:-ms-linear-gradient(rgba(255,255,255,0.2),rgba(255,255,255,0.1) 40%,rgba(255,255,255,0.01) 80%,transparent);background-image:-o-linear-gradient(rgba(255,255,255,0.2),rgba(255,255,255,0.1) 40%,rgba(255,255,255,0.01) 80%,transparent);background-image:linear-gradient(rgba(255,255,255,0.2),rgba(255,255,255,0.1) 40%,rgba(255,255,255,0.01) 80%,transparent)}.yui3-skin-night .yui3-datatable-sort-liner{display:block;height:100%;position:relative;padding-right:15px;position:relative}.yui3-skin-night .yui3-datatable-sort-indicator{position:absolute;right:0;bottom:.5ex;width:7px;height:10px;background:url(sort-arrow-sprite.png) no-repeat 0 0;_background:url(sort-arrow-sprite-ie.png) no-repeat 0 0;overflow:hidden}.yui3-skin-night .yui3-datatable-sorted .yui3-datatable-sort-indicator{background-position:0 -10px}.yui3-skin-night .yui3-datatable-sorted-desc .yui3-datatable-sort-indicator{background-position:0 -20px}.yui3-skin-night .yui3-datatable-data .yui3-datatable-even .yui3-datatable-sorted{background-color:#262626;color:#b3b2b2}.yui3-skin-night .yui3-datatable-data .yui3-datatable-odd .yui3-datatable-sorted{background-color:#393a3a;color:#cbcbcb}#yui3-css-stamp.skin-night-datatable-sort{display:none}
ram-nadella/cdnjs
ajax/libs/yui/3.17.0/datatable-sort/assets/skins/night/datatable-sort.css
CSS
mit
2,390
/* YUI 3.17.0 (build ce55cc9) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('paginator-url', function (Y, NAME) { /** Adds in URL options for paginator links. @module paginator @submodule paginator-url @class Paginator.Url @since 3.10.0 */ function PaginatorUrl () {} PaginatorUrl.ATTRS = { /** URL to return formatted with the page number. URL uses `Y.Lang.sub` for page number stubstitutions. For example, if the page number is `3`, setting the `pageUrl` to `"?pg={page}"`, will result in `?pg=3` @attribute pageUrl @type String **/ pageUrl: {} }; PaginatorUrl.prototype = { /** Returns a formated URL for the previous page. @method prevPageUrl @return {String | null} Formatted URL for the previous page, or `null` if there is no previous page. */ prevPageUrl: function () { return (this.hasPrevPage() && this.formatPageUrl(this.get('page') - 1)) || null; }, /** Returns a formated URL for the next page. @method nextPageUrl @return {String | null} Formatted URL for the next page or `null` if there is no next page. */ nextPageUrl: function () { return (this.hasNextPage() && this.formatPageUrl(this.get('page') + 1)) || null; }, /** Returns a formated URL for the provided page number. @method formatPageUrl @param {Number} [page] Page value to be used in the formatted URL. If empty, page will be the value of the `page` ATTRS. @return {String | null} Formatted URL for the page or `null` if there is not a `pageUrl` set. */ formatPageUrl: function (page) { var pageUrl = this.get('pageUrl'); if (pageUrl) { return Y.Lang.sub(pageUrl, { page: page || this.get('page') }); } return null; } }; Y.namespace('Paginator').Url = PaginatorUrl; Y.Base.mix(Y.Paginator, [PaginatorUrl]); }, '3.17.0', {"requires": ["paginator"]});
mzdani/cdnjs
ajax/libs/yui/3.17.0/paginator-url/paginator-url.js
JavaScript
mit
2,040
// oj.GitHubButton.min.js v0.0.2 | Copyright 2013 Evan Moran | ojjs.org/license (function(){var e=function(e,t){typeof t!="object"&&(t={});var n=e.createType("GitHubButton",{base:e.View,constructor:function(){var t=this,r=e.unionArguments(arguments),i=r.options,s=r.args;s.length>=1&&(this.user=s[0]),s.length>=2&&(this.repo=s[1]);var o=["type","user","repo","showCount","size","width","height"];for(var u=0;u<o.length;u++){var a=o[u];i[a]!=null&&(this[a]=e.argumentShift(i,a))}this.el=e(function(){var n="",r="",i="",s="",o="";if(!t.user)throw new Error("oj.GitHubButton: user is not specified");i="user="+t.user,t.repo&&(s="&repo="+t.repo),t.size&&(n="&size="+t.size),t.showCount&&(r="&count="+t.showCount),t.type&&(o="&type="+t.type),src="http://ghbtns.com/github-btn.html?"+i+s+o+r+n,e.iframe({src:src,allowtransparency:"true",frameborder:"0",scrolling:"0",width:t.width,height:t.height})}),n.base.constructor.apply(this,[i])},properties:{user:"evanmoran",repo:null,type:{get:function(){return this._type||(this.repo==null?"follow":"watch")},set:function(e){if(!e||e=="star")e="watch";this._type=e}},showCount:!0,size:{get:function(){return this._size},set:function(e){this._size=e}},width:{get:function(){return this._width||_widthFromType(this.type,this.showCount,this.size)},set:function(e){this._width=e}},height:{get:function(){return this._height||this.size=="large"?30:20},set:function(e){this._height=e}}}});return{GitHubButton:n}};typeof oj!="undefined"&&oj.use(e),typeof module!="undefined"&&typeof module.exports!="undefined"&&(module.exports=e),_widthFromType=function(e,t,n){w=0,e=="watch"&&t==0?w=62:e=="watch"&&t==1?w=110:e=="fork"&&t==0?w=53:e=="fork"&&t==1?w=95:e=="follow"&&t==0?w=132:e=="follow"&&t==1&&(w=165),w+=n=="large"?30:0}})(this)
hippich/cdnjs
ajax/libs/oj.GitHubButton/latest/oj.GitHubButton.min.js
JavaScript
mit
1,761
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2017, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * * @package CodeIgniter * @author EllisLab Dev Team * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/) * @copyright Copyright (c) 2014 - 2017, British Columbia Institute of Technology (http://bcit.ca/) * @license http://opensource.org/licenses/MIT MIT License * @link https://codeigniter.com * @since Version 2.0.0 * @filesource */ defined('BASEPATH') OR exit('No direct script access allowed'); /** * CodeIgniter APC Caching Class * * @package CodeIgniter * @subpackage Libraries * @category Core * @author EllisLab Dev Team * @link */ class CI_Cache_apc extends CI_Driver { /** * Class constructor * * Only present so that an error message is logged * if APC is not available. * * @return void */ public function __construct() { if ( ! $this->is_supported()) { log_message('error', 'Cache: Failed to initialize APC; extension not loaded/enabled?'); } } // ------------------------------------------------------------------------ /** * Get * * Look for a value in the cache. If it exists, return the data * if not, return FALSE * * @param string * @return mixed value that is stored/FALSE on failure */ public function get($id) { $success = FALSE; $data = apc_fetch($id, $success); if ($success === TRUE) { return is_array($data) ? unserialize($data[0]) : $data; } return FALSE; } // ------------------------------------------------------------------------ /** * Cache Save * * @param string $id Cache ID * @param mixed $data Data to store * @param int $ttl Length of time (in seconds) to cache the data * @param bool $raw Whether to store the raw value * @return bool TRUE on success, FALSE on failure */ public function save($id, $data, $ttl = 60, $raw = FALSE) { $ttl = (int) $ttl; return apc_store( $id, ($raw === TRUE ? $data : array(serialize($data), time(), $ttl)), $ttl ); } // ------------------------------------------------------------------------ /** * Delete from Cache * * @param mixed unique identifier of the item in the cache * @return bool true on success/false on failure */ public function delete($id) { return apc_delete($id); } // ------------------------------------------------------------------------ /** * Increment a raw value * * @param string $id Cache ID * @param int $offset Step/value to add * @return mixed New value on success or FALSE on failure */ public function increment($id, $offset = 1) { return apc_inc($id, $offset); } // ------------------------------------------------------------------------ /** * Decrement a raw value * * @param string $id Cache ID * @param int $offset Step/value to reduce by * @return mixed New value on success or FALSE on failure */ public function decrement($id, $offset = 1) { return apc_dec($id, $offset); } // ------------------------------------------------------------------------ /** * Clean the cache * * @return bool false on failure/true on success */ public function clean() { return apc_clear_cache('user'); } // ------------------------------------------------------------------------ /** * Cache Info * * @param string user/filehits * @return mixed array on success, false on failure */ public function cache_info($type = NULL) { return apc_cache_info($type); } // ------------------------------------------------------------------------ /** * Get Cache Metadata * * @param mixed key to get cache metadata on * @return mixed array on success/false on failure */ public function get_metadata($id) { $success = FALSE; $stored = apc_fetch($id, $success); if ($success === FALSE OR count($stored) !== 3) { return FALSE; } list($data, $time, $ttl) = $stored; return array( 'expire' => $time + $ttl, 'mtime' => $time, 'data' => unserialize($data) ); } // ------------------------------------------------------------------------ /** * is_supported() * * Check to see if APC is available on this system, bail if it isn't. * * @return bool */ public function is_supported() { return (extension_loaded('apc') && ini_get('apc.enabled')); } }
firmanprogrammer/codeigniter3_crud_bootstrap
system/libraries/Cache/drivers/Cache_apc.php
PHP
mit
5,548
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/cldr/nls/zh/buddhist",{"dateFormatItem-yM":"Gy年M月","dateFormatItem-yyyyMMMEd":"Gy年M月d日E","dateFormatItem-yQ":"Gy年第Q季度","dayPeriods-format-wide-pm":"下午","eraNames":["佛历"],"dateFormatItem-MMMEd":"M月d日E","dateFormatItem-hms":"ah:mm:ss","dateFormatItem-yQQQ":"Gy年第Q季度","days-standAlone-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"dateFormatItem-MMM":"LLL","dateFormatItem-Gy":"Gy年","dayPeriods-format-wide-am":"上午","quarters-standAlone-abbr":["1季度","2季度","3季度","4季度"],"dateFormatItem-y":"Gy年","timeFormat-full":"zzzzah:mm:ss","dateFormatItem-yyyy":"Gy年","months-standAlone-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"dateFormatItem-Ed":"d日E","dateFormatItem-yMMM":"Gy年M月","days-standAlone-narrow":["日","一","二","三","四","五","六"],"eraAbbr":["佛历"],"dateFormat-long":"Gy年M月d日","timeFormat-medium":"ah:mm:ss","dateFormatItem-Hm":"HH:mm","dateFormat-medium":"Gyyyy-M-d","dateFormatItem-Hms":"HH:mm:ss","dayPeriods-format-narrow-pm":"下午","dateFormatItem-yMd":"y/M/d","quarters-standAlone-wide":["第一季度","第二季度","第三季度","第四季度"],"dateFormatItem-ms":"mm:ss","dayPeriods-format-narrow-am":"上午","months-standAlone-wide":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"dateFormatItem-yyyyMd":"Gy-M-d","dateFormatItem-yyyyMMMd":"Gy年M月d日","dateFormatItem-yyyyMEd":"Gy-M-dE","dateFormatItem-MMMd":"M月d日","timeFormat-long":"zah:mm:ss","months-format-abbr":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"dateFormatItem-H":"H时","timeFormat-short":"ah:mm","quarters-format-abbr":["1季度","2季度","3季度","4季度"],"days-format-abbr":["周日","周一","周二","周三","周四","周五","周六"],"dateFormatItem-M":"M月","days-format-narrow":["日","一","二","三","四","五","六"],"dateFormatItem-yMMMd":"y年M月d日","dateFormatItem-MEd":"M-dE","dateFormatItem-yyyyQQQ":"Gy年QQQQ","days-standAlone-short":["周日","周一","周二","周三","周四","周五","周六"],"dateFormatItem-hm":"ah:mm","days-standAlone-abbr":["周日","周一","周二","周三","周四","周五","周六"],"dateFormat-short":"Gy-M-d","dateFormatItem-yyyyM":"Gy-M","dateFormatItem-yMMMEd":"Gy年M月d日E","dateFormat-full":"Gy年M月d日EEEE","dateFormatItem-Md":"M-d","dateFormatItem-yMEd":"Gy年M月d日,E","dateFormatItem-yyyyQ":"Gy年QQQ","months-format-wide":["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],"days-format-short":["周日","周一","周二","周三","周四","周五","周六"],"dateFormatItem-yyyyMMM":"Gy年M月","dateFormatItem-d":"d日","quarters-format-wide":["第一季度","第二季度","第三季度","第四季度"],"eraNarrow":["佛历"],"days-format-wide":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"dateFormatItem-h":"ah时"});
samthor/cdnjs
ajax/libs/dojo/1.8.4/cldr/nls/zh/buddhist.js
JavaScript
mit
3,321
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/cldr/nls/ja/buddhist",{"dateFormatItem-yM":"GGGGy年M月","dateFormatItem-yyyyMMMEd":"GGGGy年M月d日(E)","dateFormatItem-yQ":"GGGGy QQQ","dayPeriods-format-wide-pm":"午後","dateFormatItem-GGGGyMd":"GGGGy年M月d日","eraNames":["仏暦"],"dateFormatItem-MMMEd":"M月d日(E)","dateFormatItem-hms":"aK:mm:ss","dateFormatItem-yQQQ":"GGGGy第Q四半期","dateFormatItem-MMdd":"MM/dd","dateFormatItem-MMM":"M月","dateFormatItem-Gy":"Gy年","dayPeriods-format-wide-am":"午前","dateFormatItem-y":"GGGGy年","timeFormat-full":"H時mm分ss秒 zzzz","dateFormatItem-yyyy":"GGGGy年","dateFormatItem-yyyyMMMEEEEd":"GGGGy年M月d日EEEE","dateFormatItem-EEEEd":"d日EEEE","dateFormatItem-Ed":"d日(E)","dateFormatItem-yMMM":"GGGGy年M月","days-standAlone-narrow":["日","月","火","水","木","金","土"],"eraAbbr":["BE"],"dateFormatItem-yyyyMM":"Gy/MM","dateFormat-long":"GGGGy年M月d日","timeFormat-medium":"H:mm:ss","dateFormatItem-Hm":"H:mm","dateFormatItem-MMMEEEEd":"M月d日EEEE","dateFormat-medium":"Gy/MM/dd","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-yMMMEEEEd":"GGGGy年M月d日EEEE","dateFormatItem-yMd":"y/M/d","dateFormatItem-ms":"mm:ss","dateFormatItem-yyyyMd":"Gy/M/d","dateFormatItem-yyyyMMMd":"GGGGy年M月d日","dateFormatItem-yyyyMEd":"Gy/M/d(E)","dateFormatItem-MMMd":"M月d日","timeFormat-long":"H:mm:ss z","dateFormatItem-H":"H時","timeFormat-short":"H:mm","quarters-format-abbr":["1Q","2Q","3Q","4Q"],"days-format-abbr":["日","月","火","水","木","金","土"],"dateFormatItem-M":"M月","dateFormatItem-yMMMd":"y年M月d日","dateFormatItem-MEd":"M/d(E)","days-standAlone-short":["日","月","火","水","木","金","土"],"dateFormatItem-hm":"aK:mm","dateFormat-short":"Gy/MM/dd","dateFormatItem-yMMMEd":"GGGGy年M月d日(E)","dateFormat-full":"GGGGy年M月d日EEEE","dateFormatItem-Md":"M/d","dateFormatItem-yMEd":"GGGGy年M/d(E)","dateFormatItem-yyyyQ":"Gy/Q","months-format-wide":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"days-format-short":["日","月","火","水","木","金","土"],"dateFormatItem-yyyyMMM":"GGGGy年M月","dateFormatItem-d":"d日","quarters-format-wide":["第1四半期","第2四半期","第3四半期","第4四半期"],"days-format-wide":["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],"dateFormatItem-h":"aK時"});
ahocevar/cdnjs
ajax/libs/dojo/1.8.2/cldr/nls/ja/buddhist.js
JavaScript
mit
2,579
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/cldr/nls/nl/islamic",{"dateFormatItem-yM":"M-y","dateFormatItem-yyyyMMMEd":"E d MMM y G","dateFormatItem-yQ":"Q yyyy","eraNames":["Saʻna Hizjria"],"dateFormatItem-MMMEd":"E d MMM","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-MMdd":"dd-MM","days-standAlone-wide":["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],"dateFormatItem-MMM":"LLL","months-standAlone-narrow":["1","2","3","4","5","6","7","8","9","10","11","12"],"quarters-standAlone-abbr":["K1","K2","K3","K4"],"dateFormatItem-yyyy":"y G","months-standAlone-abbr":["Moeh.","Saf.","Rab. I","Rab. II","Joem. I","Joem. II","Raj.","Sja.","Ram.","Sjaw.","Doe al k.","Doe al h."],"dateFormatItem-Ed":"E d","dateFormatItem-yMMM":"MMM y","days-standAlone-narrow":["Z","M","D","W","D","V","Z"],"eraAbbr":["Saʻna Hizjria"],"dateFormatItem-yyyyMMMM":"MMMM y G","dateFormat-long":"d MMMM y G","dateFormatItem-Hm":"HH:mm","dateFormatItem-MMd":"d-MM","dateFormatItem-yyMM":"MM-yy G","dateFormat-medium":"d MMM y G","dateFormatItem-yyMMM":"MMM yy G","dateFormatItem-yyQQQQ":"QQQQ yy G","dateFormatItem-yMd":"d-M-y","quarters-standAlone-wide":["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"],"dateFormatItem-ms":"mm:ss","months-standAlone-wide":["Moeharram","Safar","Rabiʻa al awal","Rabiʻa al thani","Joemadʻal awal","Joemadʻal thani","Rajab","Sjaʻaban","Ramadan","Sjawal","Doe al kaʻaba","Doe al hizja"],"dateFormatItem-yyyyMd":"d-M-y G","dateFormatItem-yyyyMMMd":"d MMM y G","dateFormatItem-yyyyMEd":"E d-M-y G","dateFormatItem-MMMd":"d MMM","dateFormatItem-yyQ":"Q yy G","months-format-abbr":["Moeh.","Saf.","Rab. I","Rab. II","Joem. I","Joem. II","Raj.","Sja.","Ram.","Sjaw.","Doe al k.","Doe al h."],"dateFormatItem-MMMMd":"d MMMM","quarters-format-abbr":["K1","K2","K3","K4"],"days-format-abbr":["zo","ma","di","wo","do","vr","za"],"dateFormatItem-M":"L","days-format-narrow":["Z","M","D","W","D","V","Z"],"dateFormatItem-yMMMd":"d MMM y","dateFormatItem-yyyyQQQ":"QQQ y G","dateFormatItem-MEd":"E d-M","days-standAlone-short":["zo","ma","di","wo","do","vr","za"],"days-standAlone-abbr":["zo","ma","di","wo","do","vr","za"],"dateFormat-short":"dd-MM-yy G","dateFormatItem-yyyyM":"M-y G","dateFormatItem-yMMMEd":"E d MMM y","dateFormat-full":"EEEE d MMMM y G","dateFormatItem-Md":"d-M","dateFormatItem-yyyyQ":"Q y G","dateFormatItem-yMEd":"E d-M-y","months-format-wide":["Moeharram","Safar","Rabiʻa al awal","Rabiʻa al thani","Joemadʻal awal","Joemadʻal thani","Rajab","Sjaʻaban","Ramadan","Sjawal","Doe al kaʻaba","Doe al hizja"],"days-format-short":["zo","ma","di","wo","do","vr","za"],"dateFormatItem-yyyyMMM":"MMM y G","dateFormatItem-d":"d","quarters-format-wide":["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"],"eraNarrow":["Saʻna Hizjria"],"days-format-wide":["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]});
him2him2/cdnjs
ajax/libs/dojo/1.8.5/cldr/nls/nl/islamic.js
JavaScript
mit
3,070
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/cldr/nls/sv/hebrew",{"dateFormatItem-yM":"yyyy-MM","dateFormatItem-yQ":"yyyy Q","dayPeriods-format-wide-pm":"em","dateFormatItem-MMMEd":"E d MMM","days-standAlone-wide":["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],"dayPeriods-format-wide-am":"fm","quarters-standAlone-abbr":["K1","K2","K3","K4"],"timeFormat-full":"'kl'. HH:mm:ss zzzz","months-standAlone-abbr":["tishrí","heshván","kislév","tevét","shevát","adár I","adár","nisán","ijjár","siván","tammúz","ab","elúl"],"dateFormatItem-Ed":"E d","dateFormatItem-yMMM":"MMM y","days-standAlone-narrow":["S","M","T","O","T","F","L"],"eraAbbr":["AM"],"dateFormat-long":"d MMMM y","dateFormat-medium":"d MMM y","dayPeriods-format-narrow-pm":"e","dateFormatItem-yMd":"yyyy-MM-dd","quarters-standAlone-wide":["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"],"dayPeriods-format-narrow-am":"f","months-standAlone-wide":["tishrí","heshván","kislév","tevét","shevát","adár I","adár","nisán","ijjár","siván","tammúz","ab","elúl"],"dateFormatItem-MMMd":"d MMM","months-format-abbr":["tishrí","heshván","kislév","tevét","shevát","adár I","adár","nisán","ijjár","siván","tammúz","ab","elúl"],"quarters-format-abbr":["K1","K2","K3","K4"],"days-format-abbr":["sön","mån","tis","ons","tors","fre","lör"],"days-format-narrow":["S","M","T","O","T","F","L"],"dateFormatItem-yMMMd":"d MMM y","dateFormatItem-MEd":"E d/M","days-standAlone-short":["sö","må","ti","on","to","fr","lö"],"days-standAlone-abbr":["sön","mån","tis","ons","tor","fre","lör"],"dayPeriods-format-abbr-pm":"EM","dateFormatItem-yMMMEd":"E d MMM y","dateFormat-full":"EEEE'en' 'den' d:'e' MMMM y","dateFormatItem-Md":"d/M","dateFormatItem-yMEd":"E, yyyy-MM-dd","months-format-wide":["tishrí","heshván","kislév","tevét","shevát","adár I","adár","nisán","ijjár","siván","tammúz","ab","elúl"],"dayPeriods-format-abbr-am":"FM","days-format-short":["sö","må","ti","on","to","fr","lö"],"quarters-format-wide":["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"],"months-format-wide-leap":"adár II","days-format-wide":["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]});
fatso83/cdnjs
ajax/libs/dojo/1.8.7/cldr/nls/sv/hebrew.js
JavaScript
mit
2,413
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/cldr/nls/cs/buddhist",{"dateFormatItem-yM":"LLLL y GGGGG","dateFormatItem-yQ":"Q., y GGGGG","dateFormatItem-MMMEd":"E, d. M.","dateFormatItem-yQQQ":"QQQ, y G","days-standAlone-wide":["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],"months-standAlone-narrow":["l","ú","b","d","k","č","č","s","z","ř","l","p"],"dateFormatItem-y":"y G","timeFormat-full":"H:mm:ss zzzz","months-standAlone-abbr":["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],"dateFormatItem-Ed":"E, d.","dateFormatItem-yMMM":"LLLL y G","days-standAlone-narrow":["N","P","Ú","S","Č","P","S"],"dateFormat-long":"d. MMMM y G","timeFormat-medium":"H:mm:ss","dateFormatItem-Hm":"H:mm","dateFormat-medium":"d. M. y G","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-yMd":"d. M. y","quarters-standAlone-wide":["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"],"months-standAlone-wide":["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],"dateFormatItem-MMMd":"d. M.","timeFormat-long":"H:mm:ss z","months-format-abbr":["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],"timeFormat-short":"H:mm","dateFormatItem-H":"H","days-format-abbr":["ne","po","út","st","čt","pá","so"],"days-format-narrow":["N","P","Ú","S","Č","P","S"],"dateFormatItem-yMMMd":"d. M. y","dateFormatItem-MEd":"E, d. M.","days-standAlone-short":["Ne","Po","Út","St","Čt","Pá","So"],"days-standAlone-abbr":["ne","po","út","st","čt","pá","so"],"dateFormat-short":"dd.MM.yy GGGGG","dateFormatItem-yMMMEd":"E, d. M. y G","dateFormat-full":"EEEE, d. MMMM y G","dateFormatItem-Md":"d. M.","dateFormatItem-yMEd":"E, d. M. y GGGGG","months-format-wide":["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"],"days-format-short":["ne","po","út","st","čt","pá","so"],"dateFormatItem-d":"d.","quarters-format-wide":["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"],"days-format-wide":["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"]});
jieter/cdnjs
ajax/libs/dojo/1.8.6/cldr/nls/cs/buddhist.js
JavaScript
mit
2,374
YUI.add('dd-ddm', function(Y) { /** * Extends the dd-ddm-base Class to add support for the viewport shim to allow a draggable node to drag to be dragged over an iframe or any other node that traps mousemove events. * It is also required to have Drop Targets enabled, as the viewport shim will contain the shims for the Drop Targets. * @module dd * @submodule dd-ddm * @for DDM * @namespace DD */ Y.mix(Y.DD.DDM, { /** * @private * @property _pg * @description The shim placed over the screen to track the mousemove event. * @type {Node} */ _pg: null, /** * @private * @property _debugShim * @description Set this to true to set the shims opacity to .5 for debugging it, default: false. * @type {Boolean} */ _debugShim: false, _activateTargets: function() { }, _deactivateTargets: function() {}, _startDrag: function() { if (this.activeDrag && this.activeDrag.get('useShim')) { this._pg_activate(); this._activateTargets(); } }, _endDrag: function() { this._pg_deactivate(); this._deactivateTargets(); }, /** * @private * @method _pg_deactivate * @description Deactivates the shim */ _pg_deactivate: function() { this._pg.setStyle('display', 'none'); }, /** * @private * @method _pg_activate * @description Activates the shim */ _pg_activate: function() { if (!this._pg) { this._createPG(); } var ah = this.activeDrag.get('activeHandle'), cur = 'auto'; if (ah) { cur = ah.getStyle('cursor'); } if (cur == 'auto') { cur = this.get('dragCursor'); } this._pg_size(); this._pg.setStyles({ top: 0, left: 0, display: 'block', opacity: ((this._debugShim) ? '.5' : '0'), cursor: cur }); }, /** * @private * @method _pg_size * @description Sizes the shim on: activatation, window:scroll, window:resize */ _pg_size: function() { if (this.activeDrag) { var b = Y.one('body'), h = b.get('docHeight'), w = b.get('docWidth'); this._pg.setStyles({ height: h + 'px', width: w + 'px' }); } }, /** * @private * @method _createPG * @description Creates the shim and adds it's listeners to it. */ _createPG: function() { var pg = Y.Node.create('<div></div>'), bd = Y.one('body'), win; pg.setStyles({ top: '0', left: '0', position: 'absolute', zIndex: '9999', overflow: 'hidden', backgroundColor: 'red', display: 'none', height: '5px', width: '5px' }); pg.set('id', Y.stamp(pg)); pg.addClass(Y.DD.DDM.CSS_PREFIX + '-shim'); bd.prepend(pg); this._pg = pg; this._pg.on('mousemove', Y.throttle(Y.bind(this._move, this), this.get('throttleTime'))); this._pg.on('mouseup', Y.bind(this._end, this)); win = Y.one('win'); Y.on('window:resize', Y.bind(this._pg_size, this)); win.on('scroll', Y.bind(this._pg_size, this)); } }, true); }, '@VERSION@' ,{skinnable:false, requires:['dd-ddm-base', 'event-resize']});
CarlosOhh/cdnjs
ajax/libs/yui/3.6.0/dd-ddm/dd-ddm-debug.js
JavaScript
mit
3,931
YUI.add('button', function(Y) { /** * A Button Widget * * @module button * @since 3.5.0 */ var CLASS_NAMES = Y.ButtonCore.CLASS_NAMES, ARIA_STATES = Y.ButtonCore.ARIA_STATES, ARIA_ROLES = Y.ButtonCore.ARIA_ROLES; /** * Creates a Button * * @class Button * @extends Widget * @param config {Object} Configuration object * @constructor */ function Button(config) { Button.superclass.constructor.apply(this, arguments); } /* Button extends Widget */ Y.extend(Button, Y.Widget, { BOUNDING_TEMPLATE: Y.ButtonCore.prototype.TEMPLATE, CONTENT_TEMPLATE: null, /** * @method initializer * @description Internal init() handler. * @param config {Object} Config object. * @private */ initializer: function(config) { this._host = this.get('boundingBox'); }, /** * bindUI implementation * * @description Hooks up events for the widget * @method bindUI */ bindUI: function() { var button = this; button.after('labelChange', button._afterLabelChange); button.after('disabledChange', button._afterDisabledChange); }, /** * @method syncUI * @description Updates button attributes */ syncUI: function() { var button = this; button._uiSetLabel(button.get('label')); button._uiSetDisabled(button.get('disabled')); }, /** * @method _afterLabelChange * @private */ _afterLabelChange: function(e) { this._uiSetLabel(e.newVal); }, /** * @method _afterDisabledChange * @private */ _afterDisabledChange: function(e) { this._uiSetDisabled(e.newVal); } }, { // Y.Button static properties /** * The identity of the widget. * * @property NAME * @type String * @default 'button' * @readOnly * @protected * @static */ NAME: 'button', /** * Static property used to define the default attribute configuration of * the Widget. * * @property ATTRS * @type {Object} * @protected * @static */ ATTRS: { label: { value: Y.ButtonCore.ATTRS.label.value }, disabled: { value: false } }, /** * @property HTML_PARSER * @type {Object} * @protected * @static */ HTML_PARSER: { label: function(node) { this._host = node; // TODO: remove return this._getLabel(); }, disabled: function(node) { return node.getDOMNode().disabled; } }, /** * List of class names used in the ButtonGroup's DOM * * @property CLASS_NAMES * @type Object * @static */ CLASS_NAMES: CLASS_NAMES }); Y.mix(Button.prototype, Y.ButtonCore.prototype); /** * Creates a ToggleButton * * @class ToggleButton * @extends Button * @param config {Object} Configuration object * @constructor */ function ToggleButton(config) { Button.superclass.constructor.apply(this, arguments); } // TODO: move to ButtonCore subclass to enable toggle plugin, widget, etc. /* ToggleButton extends Button */ Y.extend(ToggleButton, Button, { trigger: 'click', selectedAttrName: '', initializer: function (config) { var button = this, type = button.get('type'), selectedAttrName = (type === "checkbox" ? 'checked' : 'pressed'), selectedState = config[selectedAttrName] || false; // Create the checked/pressed attribute button.addAttr(selectedAttrName, { value: selectedState }); button.selectedAttrName = selectedAttrName; }, destructor: function () { delete this.selectedAttrName; }, /** * @method bindUI * @description Hooks up events for the widget */ bindUI: function() { var button = this, cb = button.get('contentBox'); ToggleButton.superclass.bindUI.call(button); cb.on(button.trigger, button.toggle, button); button.after(button.selectedAttrName + 'Change', button._afterSelectedChange); }, /** * @method syncUI * @description Syncs the UI for the widget */ syncUI: function() { var button = this, cb = button.get('contentBox'), type = button.get('type'), ROLES = ToggleButton.ARIA_ROLES, role = (type === 'checkbox' ? ROLES.CHECKBOX : ROLES.TOGGLE), selectedAttrName = button.selectedAttrName; ToggleButton.superclass.syncUI.call(button); cb.set('role', role); button._uiSetSelected(button.get(selectedAttrName)); }, _afterSelectedChange: function(e){ this._uiSetSelected(e.newVal); }, /** * @method _uiSetSelected * @private */ _uiSetSelected: function(value) { var button = this, cb = button.get('contentBox'), STATES = ToggleButton.ARIA_STATES, type = button.get('type'), ariaState = (type === 'checkbox' ? STATES.CHECKED : STATES.PRESSED); cb.toggleClass(Button.CLASS_NAMES.SELECTED, value); cb.set(ariaState, value); }, /** * @method toggle * @description Toggles the selected/pressed/checked state of a ToggleButton * @public */ toggle: function() { var button = this; button._set(button.selectedAttrName, !button.get(button.selectedAttrName)); } }, { /** * The identity of the widget. * * @property NAME * @type {String} * @default 'buttongroup' * @readOnly * @protected * @static */ NAME: 'toggleButton', /** * Static property used to define the default attribute configuration of * the Widget. * * @property ATTRS * @type {Object} * @protected * @static */ ATTRS: { type: { value: 'toggle', writeOnce: 'initOnly' } }, /** * @property HTML_PARSER * @type {Object} * @protected * @static */ HTML_PARSER: { checked: function(node) { return node.hasClass(CLASS_NAMES.SELECTED); }, pressed: function(node) { return node.hasClass(CLASS_NAMES.SELECTED); } }, /** * @property ARIA_STATES * @type {Object} * @protected * @static */ ARIA_STATES: ARIA_STATES, /** * @property ARIA_ROLES * @type {Object} * @protected * @static */ ARIA_ROLES: ARIA_ROLES, /** * Array of static constants used to identify the classnames applied to DOM nodes * * @property CLASS_NAMES * @type Object * @static */ CLASS_NAMES: CLASS_NAMES }); // Export Y.Button = Button; Y.ToggleButton = ToggleButton; }, '@VERSION@' ,{requires:['button-core', 'cssbutton', 'widget']});
xymostech/cdnjs
ajax/libs/yui/3.6.0pr3/button/button.js
JavaScript
mit
7,008
YUI.add('button-core', function(Y) { /** * Provides an interface for working with button-like DOM nodes * * @module button-core * @since 3.5.0 */ var getClassName = Y.ClassNameManager.getClassName; /** * Creates a button * * @class ButtonCore * @param config {Object} Configuration object * @constructor */ function Button(config) { this.initializer(config); } Button.prototype = { TEMPLATE: '<button/>', constructor: Button, /** * @method initializer * @description Internal init() handler. * @param config {Object} Config object. * @private */ initializer: function(config) { this._initNode(config); this._initAttributes(config); this._renderUI(config); }, /** * @method _initNode * @description Node initializer * @param config {Object} Config object. * @private */ _initNode: function(config) { if (config.host) { this._host = Y.one(config.host); } else { this._host = Y.Node.create(this.TEMPLATE); } }, /** * @method _initAttributes * @description Attribute initializer * @param config {Object} Config object. * @private */ _initAttributes: function(config) { var host = this._host, node = host.one('.' + Button.CLASS_NAMES.LABEL) || host; config.label = config.label || this._getLabel(node); Y.AttributeCore.call(this, Button.ATTRS, config); }, /** * @method renderUI * @description Renders any UI/DOM elements for Button instances * @param config {Object} Config object. * @private */ _renderUI: function(config) { var node = this.getNode(), tagName = node.get('tagName').toLowerCase(); // Set some default node attributes node.addClass(Button.CLASS_NAMES.BUTTON); if (tagName !== 'button' && tagName !== 'input') { node.set('role', 'button'); } }, /** * @method enable * @description Sets the button's `disabled` DOM attribute to false * @public */ enable: function() { this.set('disabled', false); }, /** * @method disable * @description Sets the button's `disabled` DOM attribute to true * @public */ disable: function() { this.set('disabled', true); }, /** * @method getNode * @description Gets the host node for this button instance * @public */ getNode: function() { return this._host; }, /** * @method _getLabel * @description Getter for a button's 'label' ATTR * @private */ _getLabel: function () { var node = this.getNode(), tagName = node.get('tagName').toLowerCase(), label; if (tagName === 'input') { label = node.get('value'); } else { label = (node.one('.' + Button.CLASS_NAMES.LABEL) || node).get('text'); } return label; }, /** * @method _uiSetLabel * @description Setter for a button's 'label' ATTR * @param label {string} * @private */ _uiSetLabel: function (label) { var node = this.getNode(), tagName = node.get('tagName').toLowerCase(); if (tagName === 'input') { node.set('value', label); } else { (node.one('.' + Button.CLASS_NAMES.LABEL) || node).set('text', label); } return label; }, /** * @method _uiSetDisabled * @description Setter for the 'disabled' ATTR * @param value {boolean} * @private */ _uiSetDisabled: function(value) { var node = this.getNode(); node.getDOMNode().disabled = value; // avoid rerunning setter when this === node node.toggleClass(Button.CLASS_NAMES.DISABLED, value); return value; } }; /** * Attribute configuration. * * @property ATTRS * @type {Object} * @private * @static */ Button.ATTRS = { label: { setter: '_uiSetLabel', getter: '_getLabel', lazyAdd: false }, disabled: { value: false, setter: '_uiSetDisabled', lazyAdd: false } }; /** * Name of this component. * * @property NAME * @type String * @static */ Button.NAME = "button"; /** * Array of static constants used to identify the classnames applied to DOM nodes * * @property CLASS_NAMES * @type {Object} * @public * @static */ Button.CLASS_NAMES = { BUTTON : getClassName('button'), DISABLED: getClassName('button', 'disabled'), SELECTED: getClassName('button', 'selected'), LABEL : getClassName('button', 'label') }; /** * Array of static constants used to for applying ARIA states * * @property CLASS_NAMES * @type {Object} * @private * @static */ Button.ARIA_STATES = { PRESSED : 'aria-pressed', CHECKED : 'aria-checked' }; /** * Array of static constants used to for applying ARIA roles * * @property CLASS_NAMES * @type {Object} * @private * @static */ Button.ARIA_ROLES = { BUTTON : 'button', CHECKBOX: 'checkbox', TOGGLE : 'toggle' }; Y.mix(Button.prototype, Y.AttributeCore.prototype); // Export Button Y.ButtonCore = Button; }, '@VERSION@' ,{requires:['attribute-core', 'classnamemanager', 'node-base']});
redmunds/cdnjs
ajax/libs/yui/3.5.0/button-core/button-core.js
JavaScript
mit
5,360
YUI.add('dd-ddm', function(Y) { /** * Extends the dd-ddm-base Class to add support for the viewport shim to allow a draggable node to drag to be dragged over an iframe or any other node that traps mousemove events. * It is also required to have Drop Targets enabled, as the viewport shim will contain the shims for the Drop Targets. * @module dd * @submodule dd-ddm * @for DDM * @namespace DD */ Y.mix(Y.DD.DDM, { /** * @private * @property _pg * @description The shim placed over the screen to track the mousemove event. * @type {Node} */ _pg: null, /** * @private * @property _debugShim * @description Set this to true to set the shims opacity to .5 for debugging it, default: false. * @type {Boolean} */ _debugShim: false, _activateTargets: function() { }, _deactivateTargets: function() {}, _startDrag: function() { if (this.activeDrag && this.activeDrag.get('useShim')) { this._pg_activate(); this._activateTargets(); } }, _endDrag: function() { this._pg_deactivate(); this._deactivateTargets(); }, /** * @private * @method _pg_deactivate * @description Deactivates the shim */ _pg_deactivate: function() { this._pg.setStyle('display', 'none'); }, /** * @private * @method _pg_activate * @description Activates the shim */ _pg_activate: function() { if (!this._pg) { this._createPG(); } var ah = this.activeDrag.get('activeHandle'), cur = 'auto'; if (ah) { cur = ah.getStyle('cursor'); } if (cur == 'auto') { cur = this.get('dragCursor'); } this._pg_size(); this._pg.setStyles({ top: 0, left: 0, display: 'block', opacity: ((this._debugShim) ? '.5' : '0'), cursor: cur }); }, /** * @private * @method _pg_size * @description Sizes the shim on: activatation, window:scroll, window:resize */ _pg_size: function() { if (this.activeDrag) { var b = Y.one('body'), h = b.get('docHeight'), w = b.get('docWidth'); this._pg.setStyles({ height: h + 'px', width: w + 'px' }); } }, /** * @private * @method _createPG * @description Creates the shim and adds it's listeners to it. */ _createPG: function() { var pg = Y.Node.create('<div></div>'), bd = Y.one('body'), win; pg.setStyles({ top: '0', left: '0', position: 'absolute', zIndex: '9999', overflow: 'hidden', backgroundColor: 'red', display: 'none', height: '5px', width: '5px' }); pg.set('id', Y.stamp(pg)); pg.addClass(Y.DD.DDM.CSS_PREFIX + '-shim'); bd.prepend(pg); this._pg = pg; this._pg.on('mousemove', Y.throttle(Y.bind(this._move, this), this.get('throttleTime'))); this._pg.on('mouseup', Y.bind(this._end, this)); win = Y.one('win'); Y.on('window:resize', Y.bind(this._pg_size, this)); win.on('scroll', Y.bind(this._pg_size, this)); } }, true); }, '@VERSION@' ,{skinnable:false, requires:['dd-ddm-base', 'event-resize']});
begriffs/cdnjs
ajax/libs/yui/3.6.0/dd-ddm/dd-ddm.js
JavaScript
mit
3,931
YUI.add('editor-bidi', function(Y) { /** * Plugin for Editor to support BiDirectional (bidi) text operations. * @class Plugin.EditorBidi * @extends Base * @constructor * @module editor * @submodule editor-bidi */ var EditorBidi = function() { EditorBidi.superclass.constructor.apply(this, arguments); }, HOST = 'host', DIR = 'dir', BODY = 'BODY', NODE_CHANGE = 'nodeChange', B_C_CHANGE = 'bidiContextChange', FIRST_P = BODY + ' > p', STYLE = 'style'; Y.extend(EditorBidi, Y.Base, { /** * Place holder for the last direction when checking for a switch * @private * @property lastDirection */ lastDirection: null, /** * Tells us that an initial bidi check has already been performed * @private * @property firstEvent */ firstEvent: null, /** * Method checks to see if the direction of the text has changed based on a nodeChange event. * @private * @method _checkForChange */ _checkForChange: function() { var host = this.get(HOST), inst = host.getInstance(), sel = new inst.EditorSelection(), node, direction; if (sel.isCollapsed) { node = EditorBidi.blockParent(sel.focusNode); if (node) { direction = node.getStyle('direction'); if (direction !== this.lastDirection) { host.fire(B_C_CHANGE, { changedTo: direction }); this.lastDirection = direction; } } } else { host.fire(B_C_CHANGE, { changedTo: 'select' }); this.lastDirection = null; } }, /** * Checked for a change after a specific nodeChange event has been fired. * @private * @method _afterNodeChange */ _afterNodeChange: function(e) { // If this is the first event ever, or an event that can result in a context change if (this.firstEvent || EditorBidi.EVENTS[e.changedType]) { this._checkForChange(); this.firstEvent = false; } }, /** * Checks for a direction change after a mouseup occurs. * @private * @method _afterMouseUp */ _afterMouseUp: function(e) { this._checkForChange(); this.firstEvent = false; }, initializer: function() { var host = this.get(HOST); this.firstEvent = true; host.after(NODE_CHANGE, Y.bind(this._afterNodeChange, this)); host.after('dom:mouseup', Y.bind(this._afterMouseUp, this)); } }, { /** * The events to check for a direction change on * @property EVENTS * @static */ EVENTS: { 'backspace-up': true, 'pageup-up': true, 'pagedown-down': true, 'end-up': true, 'home-up': true, 'left-up': true, 'up-up': true, 'right-up': true, 'down-up': true, 'delete-up': true }, /** * More elements may be needed. BODY *must* be in the list to take care of the special case. * * blockParent could be changed to use inst.EditorSelection.BLOCKS * instead, but that would make Y.Plugin.EditorBidi.blockParent * unusable in non-RTE contexts (it being usable is a nice * side-effect). * @property BLOCKS * @static */ //BLOCKS: Y.EditorSelection.BLOCKS+',LI,HR,' + BODY, BLOCKS: Y.EditorSelection.BLOCKS, /** * Template for creating a block element * @static * @property DIV_WRAPPER */ DIV_WRAPPER: '<DIV></DIV>', /** * Returns a block parent for a given element * @static * @method blockParent */ blockParent: function(node, wrap) { var parent = node, divNode, firstChild; if (!parent) { parent = Y.one(BODY); } if (!parent.test(EditorBidi.BLOCKS)) { parent = parent.ancestor(EditorBidi.BLOCKS); } if (wrap && parent.test(BODY)) { // This shouldn't happen if the RTE handles everything // according to spec: we should get to a P before BODY. But // we don't want to set the direction of BODY even if that // happens, so we wrap everything in a DIV. // The code is based on YUI3's Y.EditorSelection._wrapBlock function. divNode = Y.Node.create(EditorBidi.DIV_WRAPPER); parent.get('children').each(function(node, index) { if (index === 0) { firstChild = node; } else { divNode.append(node); } }); firstChild.replace(divNode); divNode.prepend(firstChild); parent = divNode; } return parent; }, /** * The data key to store on the node. * @static * @property _NODE_SELECTED */ _NODE_SELECTED: 'bidiSelected', /** * Generates a list of all the block parents of the current NodeList * @static * @method addParents */ addParents: function(nodeArray) { var i, parent, addParent; for (i = 0; i < nodeArray.length; i += 1) { nodeArray[i].setData(EditorBidi._NODE_SELECTED, true); } // This works automagically, since new parents added get processed // later themselves. So if there's a node early in the process that // we haven't discovered some of its siblings yet, thus resulting in // its parent not added, the parent will be added later, since those // siblings will be added to the array and then get processed. for (i = 0; i < nodeArray.length; i += 1) { parent = nodeArray[i].get('parentNode'); // Don't add the parent if the parent is the BODY element. // We don't want to change the direction of BODY. Also don't // do it if the parent is already in the list. if (!parent.test(BODY) && !parent.getData(EditorBidi._NODE_SELECTED)) { addParent = true; parent.get('children').some(function(sibling) { if (!sibling.getData(EditorBidi._NODE_SELECTED)) { addParent = false; return true; // stop more processing } }); if (addParent) { nodeArray.push(parent); parent.setData(EditorBidi._NODE_SELECTED, true); } } } for (i = 0; i < nodeArray.length; i += 1) { nodeArray[i].clearData(EditorBidi._NODE_SELECTED); } return nodeArray; }, /** * editorBidi * @static * @property NAME */ NAME: 'editorBidi', /** * editorBidi * @static * @property NS */ NS: 'editorBidi', ATTRS: { host: { value: false } }, /** * Regex for testing/removing text-align style from an element * @static * @property RE_TEXT_ALIGN */ RE_TEXT_ALIGN: /text-align:\s*\w*\s*;/, /** * Method to test a node's style attribute for text-align and removing it. * @static * @method removeTextAlign */ removeTextAlign: function(n) { if (n) { if (n.getAttribute(STYLE).match(EditorBidi.RE_TEXT_ALIGN)) { n.setAttribute(STYLE, n.getAttribute(STYLE).replace(EditorBidi.RE_TEXT_ALIGN, '')); } if (n.hasAttribute('align')) { n.removeAttribute('align'); } } return n; } }); Y.namespace('Plugin'); Y.Plugin.EditorBidi = EditorBidi; /** * bidi execCommand override for setting the text direction of a node. * This property is added to the `Y.Plugin.ExecCommands.COMMANDS` * collection. * * @for Plugin.ExecCommand * @property bidi */ //TODO -- This should not add this command unless the plugin is added to the instance.. Y.Plugin.ExecCommand.COMMANDS.bidi = function(cmd, direction) { var inst = this.getInstance(), sel = new inst.EditorSelection(), ns = this.get(HOST).get(HOST).editorBidi, returnValue, block, selected, selectedBlocks, dir; if (!ns) { Y.error('bidi execCommand is not available without the EditorBiDi plugin.'); return; } inst.EditorSelection.filterBlocks(); if (sel.isCollapsed) { // No selection block = EditorBidi.blockParent(sel.anchorNode); if (!block) { block = inst.one('body').one(inst.EditorSelection.BLOCKS); } //Remove text-align attribute if it exists block = EditorBidi.removeTextAlign(block); if (!direction) { //If no direction is set, auto-detect the proper setting to make it "toggle" dir = block.getAttribute(DIR); if (!dir || dir == 'ltr') { direction = 'rtl'; } else { direction = 'ltr'; } } block.setAttribute(DIR, direction); if (Y.UA.ie) { var b = block.all('br.yui-cursor'); if (b.size() === 1 && block.get('childNodes').size() == 1) { b.remove(); } } returnValue = block; } else { // some text is selected selected = sel.getSelected(); selectedBlocks = []; selected.each(function(node) { selectedBlocks.push(EditorBidi.blockParent(node)); }); selectedBlocks = inst.all(EditorBidi.addParents(selectedBlocks)); selectedBlocks.each(function(n) { var d = direction; //Remove text-align attribute if it exists n = EditorBidi.removeTextAlign(n); if (!d) { dir = n.getAttribute(DIR); if (!dir || dir == 'ltr') { d = 'rtl'; } else { d = 'ltr'; } } n.setAttribute(DIR, d); }); returnValue = selectedBlocks; } ns._checkForChange(); return returnValue; }; }, '@VERSION@' ,{skinnable:false, requires:['editor-base']});
chriszarate/cdnjs
ajax/libs/yui/3.5.0/editor-bidi/editor-bidi.js
JavaScript
mit
11,447
YUI.add('series-bar-stacked', function (Y, NAME) { /** * Provides functionality for creating a stacked bar series. * * @module charts * @submodule series-bar-stacked */ var Y_Lang = Y.Lang; /** * The StackedBarSeries renders bar chart in which series are stacked horizontally to show * their contribution to the cumulative total. * * @class StackedBarSeries * @extends BarSeries * @uses StackingUtil * @constructor * @param {Object} config (optional) Configuration parameters. * @submodule series-bar-stacked */ Y.StackedBarSeries = Y.Base.create("stackedBarSeries", Y.BarSeries, [Y.StackingUtil], { /** * @protected * * Draws the series. * * @method drawSeries */ drawSeries: function() { if(this.get("xcoords").length < 1) { return; } var isNumber = Y_Lang.isNumber, style = Y.clone(this.get("styles").marker), w = style.width, h = style.height, xcoords = this.get("xcoords"), ycoords = this.get("ycoords"), i = 0, len = xcoords.length, top = ycoords[0], seriesCollection = this.get("seriesTypeCollection"), ratio, order = this.get("order"), graphOrder = this.get("graphOrder"), left, marker, lastCollection, negativeBaseValues, positiveBaseValues, fillColors, borderColors, useOrigin = order === 0, totalHeight = len * h, dimensions = { width: [], height: [] }, xvalues = [], yvalues = [], groupMarkers = this.get("groupMarkers"); if(Y_Lang.isArray(style.fill.color)) { fillColors = style.fill.color.concat(); } if(Y_Lang.isArray(style.border.color)) { borderColors = style.border.color.concat(); } this._createMarkerCache(); if(totalHeight > this.get("height")) { ratio = this.get("height")/totalHeight; h *= ratio; h = Math.max(h, 1); } if(!useOrigin) { lastCollection = seriesCollection[order - 1]; negativeBaseValues = lastCollection.get("negativeBaseValues"); positiveBaseValues = lastCollection.get("positiveBaseValues"); if(!negativeBaseValues || !positiveBaseValues) { useOrigin = true; positiveBaseValues = []; negativeBaseValues = []; } } else { negativeBaseValues = []; positiveBaseValues = []; } this.set("negativeBaseValues", negativeBaseValues); this.set("positiveBaseValues", positiveBaseValues); for(i = 0; i < len; ++i) { top = ycoords[i]; left = xcoords[i]; if(!isNumber(top) || !isNumber(left)) { if(useOrigin) { positiveBaseValues[i] = this._leftOrigin; negativeBaseValues[i] = this._leftOrigin; } this._markers.push(null); continue; } if(useOrigin) { w = Math.abs(left - this._leftOrigin); if(left > this._leftOrigin) { positiveBaseValues[i] = left; negativeBaseValues[i] = this._leftOrigin; left -= w; } else if(left < this._leftOrigin) { positiveBaseValues[i] = this._leftOrigin; negativeBaseValues[i] = left; } else { positiveBaseValues[i] = left; negativeBaseValues[i] = this._leftOrigin; } } else { if(left < this._leftOrigin) { left = negativeBaseValues[i] - (this._leftOrigin - xcoords[i]); w = negativeBaseValues[i] - left; negativeBaseValues[i] = left; } else if(left >= this._leftOrigin) { left += (positiveBaseValues[i] - this._leftOrigin); w = left - positiveBaseValues[i]; positiveBaseValues[i] = left; left -= w; } } if(!isNaN(w) && w > 0) { top -= h/2; if(groupMarkers) { dimensions.width[i] = w; dimensions.height[i] = h; xvalues.push(left); yvalues.push(top); } else { style.width = w; style.height = h; style.x = left; style.y = top; if(fillColors) { style.fill.color = fillColors[i % fillColors.length]; } if(borderColors) { style.border.color = borderColors[i % borderColors.length]; } marker = this.getMarker(style, graphOrder, i); } } else if(!groupMarkers) { this._markers.push(null); } } if(groupMarkers) { this._createGroupMarker({ fill: style.fill, border: style.border, dimensions: dimensions, xvalues: xvalues, yvalues: yvalues, shape: style.shape }); } else { this._clearMarkerCache(); } }, /** * @protected * * Resizes and positions markers based on a mouse interaction. * * @method updateMarkerState * @param {String} type state of the marker * @param {Number} i index of the marker */ updateMarkerState: function(type, i) { if(this._markers[i]) { var state = this._getState(type), ycoords = this.get("ycoords"), marker = this._markers[i], styles = this.get("styles").marker, h = styles.height, markerStyles = state === "off" || !styles[state] ? Y.clone(styles) : Y.clone(styles[state]), fillColor, borderColor; markerStyles.y = (ycoords[i] - h/2); markerStyles.x = marker.get("x"); markerStyles.width = marker.get("width"); markerStyles.id = marker.get("id"); fillColor = markerStyles.fill.color; borderColor = markerStyles.border.color; if(Y_Lang.isArray(fillColor)) { markerStyles.fill.color = fillColor[i % fillColor.length]; } else { markerStyles.fill.color = this._getItemColor(markerStyles.fill.color, i); } if(Y_Lang.isArray(borderColor)) { markerStyles.border.color = borderColor[i % borderColor.length]; } else { markerStyles.border.color = this._getItemColor(markerStyles.border.color, i); } marker.set(markerStyles); } }, /** * @protected * * Returns default values for the `styles` attribute. * * @method _getPlotDefaults * @return Object */ _getPlotDefaults: function() { var defs = { fill:{ type: "solid", alpha: 1, colors:null, alphas: null, ratios: null }, border:{ weight: 0, alpha: 1 }, width: 24, height: 24, shape: "rect", padding:{ top: 0, left: 0, right: 0, bottom: 0 } }; defs.fill.color = this._getDefaultColor(this.get("graphOrder"), "fill"); defs.border.color = this._getDefaultColor(this.get("graphOrder"), "border"); return defs; } }, { ATTRS: { /** * Read-only attribute indicating the type of series. * * @attribute type * @type String * @default stackedBar */ type: { value: "stackedBar" }, /** * Direction of the series * * @attribute direction * @type String * @default vertical */ direction: { value: "vertical" }, /** * @private * * @attribute negativeBaseValues * @type Array * @default null */ negativeBaseValues: { value: null }, /** * @private * * @attribute positiveBaseValues * @type Array * @default null */ positiveBaseValues: { value: null } /** * Style properties used for drawing markers. This attribute is inherited from `BarSeries`. Below are the default values: * <dl> * <dt>fill</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the fill. The default value is determined by the order of the series on the graph. The color * will be retrieved from the below array:<br/> * `["#66007f", "#a86f41", "#295454", "#996ab2", "#e8cdb7", "#90bdbd","#000000","#c3b8ca", "#968373", "#678585"]` * </dd> * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker fill. The default value is 1.</dd> * </dl> * </dd> * <dt>border</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the border. The default value is determined by the order of the series on the graph. The color * will be retrieved from the below array:<br/> * `["#205096", "#b38206", "#000000", "#94001e", "#9d6fa0", "#e55b00", "#5e85c9", "#adab9e", "#6ac291", "#006457"]` * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker border. The default value is 1.</dd> * <dt>weight</dt><dd>Number indicating the width of the border. The default value is 1.</dd> * </dl> * </dd> * <dt>height</dt><dd>indicates the width of the marker. The default value is 24.</dd> * <dt>over</dt><dd>hash containing styles for markers when highlighted by a `mouseover` event. The default * values for each style is null. When an over style is not set, the non-over value will be used. For example, * the default value for `marker.over.fill.color` is equivalent to `marker.fill.color`.</dd> * </dl> * * @attribute styles * @type Object */ } }); }, '@VERSION@', {"requires": ["series-stacked", "series-bar"]});
victorjonsson/cdnjs
ajax/libs/yui/3.13.0/series-bar-stacked/series-bar-stacked.js
JavaScript
mit
11,710
YUI.add('series-candlestick', function (Y, NAME) { /** * Provides functionality for creating a candlestick series. * * @module charts * @submodule series-candlestick */ /** * The CandlestickSeries class renders columns (candles) and lines (wicks) representing the open, high, low and close * values for a chart. * * @class CandlestickSeries * @extends RangeSeries * @constructor * @param {Object} config (optional) Configuration parameters. * @submodule series-candlestick */ function CandlestickSeries() { CandlestickSeries.superclass.constructor.apply(this, arguments); } CandlestickSeries.NAME = "candlestickSeries"; CandlestickSeries.ATTRS = { /** * Read-only attribute indicating the type of series. * * @attribute type * @type String * @readOnly * @default candlestick */ type: { value: "candlestick" }, /** * The graphic in which drawings will be rendered. * * @attribute graphic * @type Graphic */ graphic: { lazyAdd: false, setter: function(val) { //woraround for Attribute order of operations bug if(!this.get("rendered")) { this.set("rendered", true); } this.set("upcandle", val.addShape({ type: "path" })); this.set("downcandle", val.addShape({ type: "path" })); this.set("wick", val.addShape({ type: "path" })); return val; } }, /** * Reference to the candlestick used when the close value is higher than the open value. * * @attribute upcandle * @type Path */ upcandle: {}, /** * Reference to the candlestick used when the open value is higher than the close value. * * @attribute downcandle * @type Path */ downcandle: {}, /** * Reference to the line drawn between the high and low values. * * @attribute wick * @type Path */ wick: {} /** * Style properties used for drawing candles and wicks. This attribute is inherited from `RangeSeries`. Below are the default values: * <dl> * <dt>upcandle</dt><dd>Properties for a candle representing a period that closes higher than it opens. * <dl> * <dt>fill</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the fill. The default value is "#00aa00".</dd> * </dd> * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker fill. The default value is 1.</dd> * </dl> * </dd> * <dt>border</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the border. The default value is "#000000".</dd> * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker border. The default value is 1.</dd> * <dt>weight</dt><dd>Number indicating the width of the border. The default value is 0.</dd> * </dl> * </dd> * </dl> * </dd> * <dt>downcandle</dt><dd>Properties for a candle representing a period that opens higher than it closes. * <dl> * <dt>fill</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the fill. The default value is "#aa0000".</dd> * </dd> * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker fill. The default value is 1.</dd> * </dl> * </dd> * <dt>border</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the border. The default value is "#000000".</dd> * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker border. The default value is 1.</dd> * <dt>weight</dt><dd>Number indicating the width of the border. The default value is 0.</dd> * </dl> * </dd> * </dl> * </dd> * <dt>wick</dt><dd>Properties for the wick, which is a line drawn from the high point of the period to the low point of the period. * <dl> * <dt>color</dt><dd>The color of the wick. The default value is "#000000".</dd> * <dt>weight</dt><dd>The weight of the wick. The default value is 1.</dd> * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the wick. The default value is 1.</dd> * </dl> * </dd> * </dl> * * @attribute styles * @type Object */ }; Y.extend(CandlestickSeries, Y.RangeSeries, { /** * Draws markers for an Candlestick series. * * @method * @param {Array} xcoords The xcoordinates to be plotted. * @param {Array} opencoords The coordinates representing the open values. * @param {Array} highcoords The coordinates representing the high values. * @param {Array} lowcoords The coordinates representing the low values. * @param {Array} closecoords The coordinates representing the close values. * @param {Number} len The number of x coordinates to plot. * @param {Number} width The width of each candlestick marker. * @param {Number} halfwidth Half the width of each candlestick marker. * @param {Object} styles The styles for the series. * @private */ _drawMarkers: function(xcoords, opencoords, highcoords, lowcoords, closecoords, len, width, halfwidth, styles) { var upcandle = this.get("upcandle"), downcandle = this.get("downcandle"), wick = this.get("wick"), cx, opencoord, highcoord, lowcoord, closecoord, left, right, top, bottom, leftPadding = styles.padding.left, up; upcandle.set(styles.upcandle); downcandle.set(styles.downcandle); wick.set(styles.wick); upcandle.clear(); downcandle.clear(); wick.clear(); for(i = 0; i < len; i = i + 1) { cx = xcoords[i] + leftPadding; left = cx - halfwidth; right = cx + halfwidth; opencoord = opencoords[i]; highcoord = highcoords[i]; lowcoord = lowcoords[i]; closecoord = closecoords[i]; up = opencoord > closecoord; top = up ? closecoord : opencoord; bottom = up ? opencoord : closecoord; height = bottom - top; candle = up ? upcandle : downcandle; candle.drawRect(left, top, width, height); wick.moveTo(cx, highcoord); wick.lineTo(cx, lowcoord); } upcandle.end(); downcandle.end(); wick.end(); wick.toBack(); }, /** * Toggles visibility * * @method _toggleVisible * @param {Boolean} visible indicates visibilitye * @private */ _toggleVisible: function(visible) { this.get("upcandle").set("visible", visible); this.get("downcandle").set("visible", visible); this.get("wick").set("visible", visible); }, /** * Destructor implementation for the CartesianSeries class. Calls destroy on all Graphic instances. * * @method destructor * @protected */ destructor: function() { var upcandle = this.get("upcandle"), downcandle = this.get("downcandle"), wick = this.get("wick"); if(upcandle) { upcandle.destroy(); } if(downcandle) { downcandle.destroy(); } if(wick) { wick.destroy(); } }, /** * Gets the default value for the `styles` attribute. Overrides * base implementation. * * @method _getDefaultStyles * @return Object * @private */ _getDefaultStyles: function() { var styles = { upcandle: { fill: { color: "#00aa00", alpha: 1 }, stroke: { color: "#000000", alpha: 1, weight: 0 } }, downcandle: { fill: { color: "#aa0000", alpha: 1 }, stroke: { color: "#000000", alpha: 1, weight: 0 } }, wick: { stroke: { color: "#000000", alpha: 1, weight: 1 } } }; return this._mergeStyles(styles, CandlestickSeries.superclass._getDefaultStyles()); } }); Y.CandlestickSeries = CandlestickSeries; }, '@VERSION@', {"requires": ["series-range"]});
stevermeister/cdnjs
ajax/libs/yui/3.10.3/series-candlestick/series-candlestick-debug.js
JavaScript
mit
9,495
YUI.add('series-pie', function (Y, NAME) { /** * Provides functionality for creating a pie series. * * @module charts * @submodule series-pie */ /** * PieSeries visualizes data as a circular chart divided into wedges which represent data as a * percentage of a whole. * * @class PieSeries * @constructor * @extends SeriesBase * @uses Plots * @param {Object} config (optional) Configuration parameters. * @submodule series-pie */ var CONFIG = Y.config, DOCUMENT = CONFIG.doc, _getClassName = Y.ClassNameManager.getClassName, SERIES_MARKER = _getClassName("seriesmarker"); Y.PieSeries = Y.Base.create("pieSeries", Y.SeriesBase, [Y.Plots], { /** * Image map used for interactivity when rendered with canvas. * * @property _map * @type HTMLElement * @private */ _map: null, /** * Image used for image map when rendered with canvas. * * @property _image * @type HTMLElement * @private */ _image: null, /** * Creates or updates the image map when rendered with canvas. * * @method _setMap * @private */ _setMap: function() { var id = "pieHotSpotMapi_" + Math.round(100000 * Math.random()), graph = this.get("graph"), graphic, cb, areaNode; if(graph) { cb = graph.get("contentBox"); } else { graphic = this.get("graphic"); cb = graphic.get("node"); } if(this._image) { cb.removeChild(this._image); while(this._areaNodes && this._areaNodes.length > 0) { areaNode = this._areaNodes.shift(); this._map.removeChild(areaNode); } cb.removeChild(this._map); } this._image = DOCUMENT.createElement("img"); this._image.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAABCAYAAAD9yd/wAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSB" + "JbWFnZVJlYWR5ccllPAAAABJJREFUeNpiZGBgSGPAAgACDAAIkABoFyloZQAAAABJRU5ErkJggg=="; cb.appendChild(this._image); this._image.style.position = "absolute"; this._image.style.left = "0px"; this._image.style.top = "0px"; this._image.setAttribute("usemap", "#" + id); this._image.style.zIndex = 3; this._image.style.opacity = 0; this._image.setAttribute("alt", "imagemap"); this._map = DOCUMENT.createElement("map"); cb.appendChild(this._map); this._map.setAttribute("name", id); this._map.setAttribute("id", id); this._areaNodes = []; }, /** * Storage for `categoryDisplayName` attribute. * * @property _categoryDisplayName * @private */ _categoryDisplayName: null, /** * Storage for `valueDisplayName` attribute. * * @property _valueDisplayName * @private */ _valueDisplayName: null, /** * Adds event listeners. * * @method addListeners * @private */ addListeners: function() { var categoryAxis = this.get("categoryAxis"), valueAxis = this.get("valueAxis"); if(categoryAxis) { categoryAxis.after("dataReady", Y.bind(this._categoryDataChangeHandler, this)); categoryAxis.after("dataUpdate", Y.bind(this._categoryDataChangeHandler, this)); } if(valueAxis) { valueAxis.after("dataReady", Y.bind(this._valueDataChangeHandler, this)); valueAxis.after("dataUpdate", Y.bind(this._valueDataChangeHandler, this)); } this.after("categoryAxisChange", this.categoryAxisChangeHandler); this.after("valueAxisChange", this.valueAxisChangeHandler); this.after("stylesChange", this._updateHandler); this._visibleChangeHandle = this.after("visibleChange", this._handleVisibleChange); }, /** * Draws the series. * * @method validate * @private */ validate: function() { this.draw(); this._renderered = true; }, /** * Event handler for the categoryAxisChange event. * * @method _categoryAxisChangeHandler * @param {Object} e Event object. * @private */ _categoryAxisChangeHandler: function() { var categoryAxis = this.get("categoryAxis"); categoryAxis.after("dataReady", Y.bind(this._categoryDataChangeHandler, this)); categoryAxis.after("dataUpdate", Y.bind(this._categoryDataChangeHandler, this)); }, /** * Event handler for the valueAxisChange event. * * @method _valueAxisChangeHandler * @param {Object} e Event object. * @private */ _valueAxisChangeHandler: function() { var valueAxis = this.get("valueAxis"); valueAxis.after("dataReady", Y.bind(this._valueDataChangeHandler, this)); valueAxis.after("dataUpdate", Y.bind(this._valueDataChangeHandler, this)); }, /** * Constant used to generate unique id. * * @property GUID * @type String * @private */ GUID: "pieseries", /** * Event handler for categoryDataChange event. * * @method _categoryDataChangeHandler * @param {Object} event Event object. * @private */ _categoryDataChangeHandler: function() { if(this._rendered && this.get("categoryKey") && this.get("valueKey")) { this.draw(); } }, /** * Event handler for valueDataChange event. * * @method _valueDataChangeHandler * @param {Object} event Event object. * @private */ _valueDataChangeHandler: function() { if(this._rendered && this.get("categoryKey") && this.get("valueKey")) { this.draw(); } }, /** * Returns the sum of all values for the series. * * @method getTotalValues * @return Number */ getTotalValues: function() { var total = this.get("valueAxis").getTotalByKey(this.get("valueKey")); return total; }, /** * Draws the series. Overrides the base implementation. * * @method draw * @protected */ draw: function() { var w = this.get("width"), h = this.get("height"); if(isFinite(w) && isFinite(h) && w > 0 && h > 0) { this._rendered = true; if(this._drawing) { this._callLater = true; return; } this._drawing = true; this._callLater = false; this.drawSeries(); this._drawing = false; if(this._callLater) { this.draw(); } else { this.fire("drawingComplete"); } } }, /** * Draws the markers * * @method drawPlots * @protected */ drawPlots: function() { var values = this.get("valueAxis").getDataByKey(this.get("valueKey")).concat(), totalValue = 0, itemCount = values.length, styles = this.get("styles").marker, fillColors = styles.fill.colors, fillAlphas = styles.fill.alphas || ["1"], borderColors = styles.border.colors, borderWeights = [styles.border.weight], borderAlphas = [styles.border.alpha], tbw = borderWeights.concat(), tbc = borderColors.concat(), tba = borderAlphas.concat(), tfc, tfa, padding = styles.padding, graphic = this.get("graphic"), minDimension = Math.min(graphic.get("width"), graphic.get("height")), w = minDimension - (padding.left + padding.right), h = minDimension - (padding.top + padding.bottom), startAngle = -90, halfWidth = w / 2, halfHeight = h / 2, radius = Math.min(halfWidth, halfHeight), i = 0, value, angle = 0, lc, la, lw, wedgeStyle, marker, graphOrder = this.get("graphOrder") || 0, isCanvas = Y.Graphic.NAME === "canvasGraphic"; for(; i < itemCount; ++i) { value = parseFloat(values[i]); values.push(value); if(!isNaN(value)) { totalValue += value; } } tfc = fillColors ? fillColors.concat() : null; tfa = fillAlphas ? fillAlphas.concat() : null; this._createMarkerCache(); if(isCanvas) { this._setMap(); this._image.width = w; this._image.height = h; } for(i = 0; i < itemCount; i++) { value = values[i]; if(totalValue === 0) { angle = 360 / values.length; } else { angle = 360 * (value / totalValue); } if(tfc && tfc.length < 1) { tfc = fillColors.concat(); } if(tfa && tfa.length < 1) { tfa = fillAlphas.concat(); } if(tbw && tbw.length < 1) { tbw = borderWeights.concat(); } if(tbw && tbc.length < 1) { tbc = borderColors.concat(); } if(tba && tba.length < 1) { tba = borderAlphas.concat(); } lw = tbw ? tbw.shift() : null; lc = tbc ? tbc.shift() : null; la = tba ? tba.shift() : null; startAngle += angle; wedgeStyle = { border: { color:lc, weight:lw, alpha:la }, fill: { color:tfc ? tfc.shift() : this._getDefaultColor(i, "slice"), alpha:tfa ? tfa.shift() : null }, type: "pieslice", arc: angle, radius: radius, startAngle: startAngle, cx: halfWidth, cy: halfHeight, width: w, height: h }; marker = this.getMarker(wedgeStyle, graphOrder, i); if(isCanvas) { this._addHotspot(wedgeStyle, graphOrder, i); } } this._clearMarkerCache(); }, /** * @protected * * Method used by `styles` setter. Overrides base implementation. * * @method _setStyles * @param {Object} newStyles Hash of properties to update. * @return Object */ _setStyles: function(val) { if(!val.marker) { val = {marker:val}; } val = this._parseMarkerStyles(val); return Y.PieSeries.superclass._mergeStyles.apply(this, [val, this._getDefaultStyles()]); }, /** * Adds an interactive map when rendering in canvas. * * @method _addHotspot * @param {Object} cfg Object containing data used to draw the hotspot * @param {Number} seriesIndex Index of series in the `seriesCollection`. * @param {Number} index Index of the marker using the hotspot. * @private */ _addHotspot: function(cfg, seriesIndex, index) { var areaNode = DOCUMENT.createElement("area"), i = 1, x = cfg.cx, y = cfg.cy, arc = cfg.arc, startAngle = cfg.startAngle - arc, endAngle = cfg.startAngle, radius = cfg.radius, ax = x + Math.cos(startAngle / 180 * Math.PI) * radius, ay = y + Math.sin(startAngle / 180 * Math.PI) * radius, bx = x + Math.cos(endAngle / 180 * Math.PI) * radius, by = y + Math.sin(endAngle / 180 * Math.PI) * radius, numPoints = Math.floor(arc/10) - 1, divAngle = (arc/(Math.floor(arc/10)) / 180) * Math.PI, angleCoord = Math.atan((ay - y)/(ax - x)), pts = x + ", " + y + ", " + ax + ", " + ay, cosAng, sinAng, multDivAng; for(i = 1; i <= numPoints; ++i) { multDivAng = divAngle * i; cosAng = Math.cos(angleCoord + multDivAng); sinAng = Math.sin(angleCoord + multDivAng); if(startAngle <= 90) { pts += ", " + (x + (radius * Math.cos(angleCoord + (divAngle * i)))); pts += ", " + (y + (radius * Math.sin(angleCoord + (divAngle * i)))); } else { pts += ", " + (x - (radius * Math.cos(angleCoord + (divAngle * i)))); pts += ", " + (y - (radius * Math.sin(angleCoord + (divAngle * i)))); } } pts += ", " + bx + ", " + by; pts += ", " + x + ", " + y; this._map.appendChild(areaNode); areaNode.setAttribute("class", SERIES_MARKER); areaNode.setAttribute("id", "hotSpot_" + seriesIndex + "_" + index); areaNode.setAttribute("shape", "polygon"); areaNode.setAttribute("coords", pts); this._areaNodes.push(areaNode); }, /** * Resizes and positions markers based on a mouse interaction. * * @method updateMarkerState * @param {String} type state of the marker * @param {Number} i index of the marker * @protected */ updateMarkerState: function(type, i) { if(this._markers[i]) { var state = this._getState(type), markerStyles, indexStyles, marker = this._markers[i], styles = this.get("styles").marker; markerStyles = state === "off" || !styles[state] ? styles : styles[state]; indexStyles = this._mergeStyles(markerStyles, {}); indexStyles.fill.color = indexStyles.fill.colors[i % indexStyles.fill.colors.length]; indexStyles.fill.alpha = indexStyles.fill.alphas[i % indexStyles.fill.alphas.length]; marker.set(indexStyles); } }, /** * Creates a shape to be used as a marker. * * @method _createMarker * @param {Object} styles Hash of style properties. * @return Shape * @private */ _createMarker: function(styles) { var graphic = this.get("graphic"), marker, cfg = Y.clone(styles); marker = graphic.addShape(cfg); marker.addClass(SERIES_MARKER); return marker; }, /** * Creates a cache of markers for reuse. * * @method _createMarkerCache * @private */ _clearMarkerCache: function() { var len = this._markerCache.length, i = 0, marker; for(; i < len; ++i) { marker = this._markerCache[i]; if(marker) { marker.destroy(); } } this._markerCache = []; }, /** * Gets the default style values for the markers. * * @method _getPlotDefaults * @return Object * @private */ _getPlotDefaults: function() { var defs = { padding:{ top: 0, left: 0, right: 0, bottom: 0 }, fill:{ alphas:["1"] }, border: { weight: 0, alpha: 1 } }; defs.fill.colors = this._defaultSliceColors; defs.border.colors = this._defaultBorderColors; return defs; } }, { ATTRS: { /** * Read-only attribute indicating the type of series. * * @attribute type * @type String * @default pie */ type: { value: "pie" }, /** * Order of this instance of this `type`. * * @attribute order * @type Number */ order: {}, /** * Reference to the `Graph` in which the series is drawn into. * * @attribute graph * @type Graph */ graph: {}, /** * Reference to the `Axis` instance used for assigning * category values to the graph. * * @attribute categoryAxis * @type Axis */ categoryAxis: { value: null, validator: function(value) { return value !== this.get("categoryAxis"); } }, /** * Reference to the `Axis` instance used for assigning * series values to the graph. * * @attribute categoryAxis * @type Axis */ valueAxis: { value: null, validator: function(value) { return value !== this.get("valueAxis"); } }, /** * Indicates which array to from the hash of value arrays in * the category `Axis` instance. * * @attribute categoryKey * @type String */ categoryKey: { value: null, validator: function(value) { return value !== this.get("categoryKey"); } }, /** * Indicates which array to from the hash of value arrays in * the value `Axis` instance. * * @attribute valueKey * @type String */ valueKey: { value: null, validator: function(value) { return value !== this.get("valueKey"); } }, /** * Name used for for displaying category data * * @attribute categoryDisplayName * @type String */ categoryDisplayName: { setter: function(val) { this._categoryDisplayName = val; return val; }, getter: function() { return this._categoryDisplayName || this.get("categoryKey"); } }, /** * Name used for for displaying value data * * @attribute valueDisplayName * @type String */ valueDisplayName: { setter: function(val) { this._valueDisplayName = val; return val; }, getter: function() { return this._valueDisplayName || this.get("valueKey"); } }, /** * @attribute slices * @type Array * @private */ slices: null /** * Style properties used for drawing markers. This attribute is inherited from `MarkerSeries`. Below are the default * values: * <dl> * <dt>fill</dt><dd>A hash containing the following values: * <dl> * <dt>colors</dt><dd>An array of colors to be used for the marker fills. The color for each marker is * retrieved from the array below:<br/> * `["#66007f", "#a86f41", "#295454", "#996ab2", "#e8cdb7", "#90bdbd","#000000","#c3b8ca", "#968373", "#678585"]` * </dd> * <dt>alphas</dt><dd>An array of alpha references (Number from 0 to 1) indicating the opacity of each marker * fill. The default value is [1].</dd> * </dl> * </dd> * <dt>border</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>An array of colors to be used for the marker borders. The color for each marker is * retrieved from the array below:<br/> * `["#205096", "#b38206", "#000000", "#94001e", "#9d6fa0", "#e55b00", "#5e85c9", "#adab9e", "#6ac291", "#006457"]` * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker border. The default value is 1.</dd> * <dt>weight</dt><dd>Number indicating the width of the border. The default value is 1.</dd> * </dl> * </dd> * <dt>over</dt><dd>hash containing styles for markers when highlighted by a `mouseover` event. The default * values for each style is null. When an over style is not set, the non-over value will be used. For example, * the default value for `marker.over.fill.color` is equivalent to `marker.fill.color`.</dd> * </dl> * * @attribute styles * @type Object */ } }); }, '@VERSION@', {"requires": ["series-base", "series-plot-util"]});
staabm/cdnjs
ajax/libs/yui/3.9.1/series-pie/series-pie-debug.js
JavaScript
mit
21,237
YUI.add('series-bar-stacked', function (Y, NAME) { /** * Provides functionality for creating a stacked bar series. * * @module charts * @submodule series-bar-stacked */ var Y_Lang = Y.Lang; /** * The StackedBarSeries renders bar chart in which series are stacked horizontally to show * their contribution to the cumulative total. * * @class StackedBarSeries * @extends BarSeries * @uses StackingUtil * @constructor * @param {Object} config (optional) Configuration parameters. * @submodule series-bar-stacked */ Y.StackedBarSeries = Y.Base.create("stackedBarSeries", Y.BarSeries, [Y.StackingUtil], { /** * @protected * * Draws the series. * * @method drawSeries */ drawSeries: function() { if(this.get("xcoords").length < 1) { return; } var isNumber = Y_Lang.isNumber, style = Y.clone(this.get("styles").marker), w = style.width, h = style.height, xcoords = this.get("xcoords"), ycoords = this.get("ycoords"), i = 0, len = xcoords.length, top = ycoords[0], seriesCollection = this.get("seriesTypeCollection"), ratio, order = this.get("order"), graphOrder = this.get("graphOrder"), left, marker, lastCollection, negativeBaseValues, positiveBaseValues, fillColors, borderColors, useOrigin = order === 0, totalHeight = len * h, dimensions = { width: [], height: [] }, xvalues = [], yvalues = [], groupMarkers = this.get("groupMarkers"); if(Y_Lang.isArray(style.fill.color)) { fillColors = style.fill.color.concat(); } if(Y_Lang.isArray(style.border.color)) { borderColors = style.border.color.concat(); } this._createMarkerCache(); if(totalHeight > this.get("height")) { ratio = this.get("height")/totalHeight; h *= ratio; h = Math.max(h, 1); } if(!useOrigin) { lastCollection = seriesCollection[order - 1]; negativeBaseValues = lastCollection.get("negativeBaseValues"); positiveBaseValues = lastCollection.get("positiveBaseValues"); if(!negativeBaseValues || !positiveBaseValues) { useOrigin = true; positiveBaseValues = []; negativeBaseValues = []; } } else { negativeBaseValues = []; positiveBaseValues = []; } this.set("negativeBaseValues", negativeBaseValues); this.set("positiveBaseValues", positiveBaseValues); for(i = 0; i < len; ++i) { top = ycoords[i]; left = xcoords[i]; if(!isNumber(top) || !isNumber(left)) { if(useOrigin) { positiveBaseValues[i] = this._leftOrigin; negativeBaseValues[i] = this._leftOrigin; } this._markers.push(null); continue; } if(useOrigin) { w = Math.abs(left - this._leftOrigin); if(left > this._leftOrigin) { positiveBaseValues[i] = left; negativeBaseValues[i] = this._leftOrigin; left -= w; } else if(left < this._leftOrigin) { positiveBaseValues[i] = this._leftOrigin; negativeBaseValues[i] = left; } else { positiveBaseValues[i] = left; negativeBaseValues[i] = this._leftOrigin; } } else { if(left < this._leftOrigin) { left = negativeBaseValues[i] - (this._leftOrigin - xcoords[i]); w = negativeBaseValues[i] - left; negativeBaseValues[i] = left; } else if(left >= this._leftOrigin) { left += (positiveBaseValues[i] - this._leftOrigin); w = left - positiveBaseValues[i]; positiveBaseValues[i] = left; left -= w; } } if(!isNaN(w) && w > 0) { top -= h/2; if(groupMarkers) { dimensions.width[i] = w; dimensions.height[i] = h; xvalues.push(left); yvalues.push(top); } else { style.width = w; style.height = h; style.x = left; style.y = top; if(fillColors) { style.fill.color = fillColors[i % fillColors.length]; } if(borderColors) { style.border.color = borderColors[i % borderColors.length]; } marker = this.getMarker(style, graphOrder, i); } } else if(!groupMarkers) { this._markers.push(null); } } if(groupMarkers) { this._createGroupMarker({ fill: style.fill, border: style.border, dimensions: dimensions, xvalues: xvalues, yvalues: yvalues, shape: style.shape }); } else { this._clearMarkerCache(); } }, /** * @protected * * Resizes and positions markers based on a mouse interaction. * * @method updateMarkerState * @param {String} type state of the marker * @param {Number} i index of the marker */ updateMarkerState: function(type, i) { if(this._markers[i]) { var state = this._getState(type), ycoords = this.get("ycoords"), marker = this._markers[i], styles = this.get("styles").marker, h = styles.height, markerStyles = state === "off" || !styles[state] ? Y.clone(styles) : Y.clone(styles[state]), fillColor, borderColor; markerStyles.y = (ycoords[i] - h/2); markerStyles.x = marker.get("x"); markerStyles.width = marker.get("width"); markerStyles.id = marker.get("id"); fillColor = markerStyles.fill.color; borderColor = markerStyles.border.color; if(Y_Lang.isArray(fillColor)) { markerStyles.fill.color = fillColor[i % fillColor.length]; } else { markerStyles.fill.color = this._getItemColor(markerStyles.fill.color, i); } if(Y_Lang.isArray(borderColor)) { markerStyles.border.color = borderColor[i % borderColor.length]; } else { markerStyles.border.color = this._getItemColor(markerStyles.border.color, i); } marker.set(markerStyles); } }, /** * @protected * * Returns default values for the `styles` attribute. * * @method _getPlotDefaults * @return Object */ _getPlotDefaults: function() { var defs = { fill:{ type: "solid", alpha: 1, colors:null, alphas: null, ratios: null }, border:{ weight: 0, alpha: 1 }, width: 24, height: 24, shape: "rect", padding:{ top: 0, left: 0, right: 0, bottom: 0 } }; defs.fill.color = this._getDefaultColor(this.get("graphOrder"), "fill"); defs.border.color = this._getDefaultColor(this.get("graphOrder"), "border"); return defs; } }, { ATTRS: { /** * Read-only attribute indicating the type of series. * * @attribute type * @type String * @default stackedBar */ type: { value: "stackedBar" }, /** * Direction of the series * * @attribute direction * @type String * @default vertical */ direction: { value: "vertical" }, /** * @private * * @attribute negativeBaseValues * @type Array * @default null */ negativeBaseValues: { value: null }, /** * @private * * @attribute positiveBaseValues * @type Array * @default null */ positiveBaseValues: { value: null } /** * Style properties used for drawing markers. This attribute is inherited from `BarSeries`. Below are the default values: * <dl> * <dt>fill</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the fill. The default value is determined by the order of the series on the graph. The color * will be retrieved from the below array:<br/> * `["#66007f", "#a86f41", "#295454", "#996ab2", "#e8cdb7", "#90bdbd","#000000","#c3b8ca", "#968373", "#678585"]` * </dd> * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker fill. The default value is 1.</dd> * </dl> * </dd> * <dt>border</dt><dd>A hash containing the following values: * <dl> * <dt>color</dt><dd>Color of the border. The default value is determined by the order of the series on the graph. The color * will be retrieved from the below array:<br/> * `["#205096", "#b38206", "#000000", "#94001e", "#9d6fa0", "#e55b00", "#5e85c9", "#adab9e", "#6ac291", "#006457"]` * <dt>alpha</dt><dd>Number from 0 to 1 indicating the opacity of the marker border. The default value is 1.</dd> * <dt>weight</dt><dd>Number indicating the width of the border. The default value is 1.</dd> * </dl> * </dd> * <dt>height</dt><dd>indicates the width of the marker. The default value is 24.</dd> * <dt>over</dt><dd>hash containing styles for markers when highlighted by a `mouseover` event. The default * values for each style is null. When an over style is not set, the non-over value will be used. For example, * the default value for `marker.over.fill.color` is equivalent to `marker.fill.color`.</dd> * </dl> * * @attribute styles * @type Object */ } }); }, '@VERSION@', {"requires": ["series-stacked", "series-bar"]});
LorenzoBoccaccia/cdnjs
ajax/libs/yui/3.10.2/series-bar-stacked/series-bar-stacked.js
JavaScript
mit
11,710
module.exports = { 'assign': require('./object/assign'), 'create': require('./object/create'), 'defaults': require('./object/defaults'), 'defaultsDeep': require('./object/defaultsDeep'), 'extend': require('./object/extend'), 'findKey': require('./object/findKey'), 'findLastKey': require('./object/findLastKey'), 'forIn': require('./object/forIn'), 'forInRight': require('./object/forInRight'), 'forOwn': require('./object/forOwn'), 'forOwnRight': require('./object/forOwnRight'), 'functions': require('./object/functions'), 'get': require('./object/get'), 'has': require('./object/has'), 'invert': require('./object/invert'), 'keys': require('./object/keys'), 'keysIn': require('./object/keysIn'), 'mapKeys': require('./object/mapKeys'), 'mapValues': require('./object/mapValues'), 'merge': require('./object/merge'), 'methods': require('./object/methods'), 'omit': require('./object/omit'), 'pairs': require('./object/pairs'), 'pick': require('./object/pick'), 'result': require('./object/result'), 'set': require('./object/set'), 'transform': require('./object/transform'), 'values': require('./object/values'), 'valuesIn': require('./object/valuesIn') };
mmayorivera/angular-sync
node_modules/grunt-karma/node_modules/lodash/object.js
JavaScript
mit
1,217
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Umbraco.Core.Configuration; using Umbraco.Core.Logging; using Umbraco.Core.Persistence.DatabaseAnnotations; using Umbraco.Core.Persistence.SqlSyntax; namespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSevenThreeZero { [Migration("7.3.0", 1, GlobalSettings.UmbracoMigrationName)] public class CreateCacheInstructionTable : MigrationBase { public CreateCacheInstructionTable(ISqlSyntaxProvider sqlSyntax, ILogger logger) : base(sqlSyntax, logger) { } public override void Up() { //Don't exeucte if the table is already there var tables = SqlSyntax.GetTablesInSchema(Context.Database).ToArray(); if (tables.InvariantContains("umbracoCacheInstruction")) return; var textType = SqlSyntax.GetSpecialDbType(SpecialDbTypes.NTEXT); Create.Table("umbracoCacheInstruction") .WithColumn("id").AsInt32().NotNullable().PrimaryKey("PK_umbracoCacheInstruction").Identity() .WithColumn("utcStamp").AsDateTime().NotNullable() .WithColumn("jsonInstruction").AsCustom(textType).NotNullable() .WithColumn("originated").AsString(500).NotNullable(); } public override void Down() { Delete.PrimaryKey("PK_umbracoCacheInstruction").FromTable("cmsContentType2ContentType"); Delete.Table("cmsContentType2ContentType"); } } }
Khamull/Umbraco-CMS
src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSevenThreeZero/CreateCacheInstructionTable.cs
C#
mit
1,607
/* Firebase v1.0.21 */ (function() {var h,aa=this;function n(a){return void 0!==a}function ba(){}function ca(a){a.sb=function(){return a.md?a.md:a.md=new a}} function da(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ea(a){return"array"==da(a)}function fa(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function q(a){return"string"==typeof a}function ga(a){return"number"==typeof a}function ha(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ia(a,b,c){return a.call.apply(a.bind,arguments)} function ja(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function r(a,b,c){r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ia:ja;return r.apply(null,arguments)} function ka(a,b){function c(){}c.prototype=b.prototype;a.me=b.prototype;a.prototype=new c;a.ke=function(a,c,f){return b.prototype[c].apply(a,Array.prototype.slice.call(arguments,2))}};function la(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function ma(){this.pc=void 0} function na(a,b,c){switch(typeof b){case "string":oa(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(null==b){c.push("null");break}if(ea(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),e=b[f],na(a,a.pc?a.pc.call(b,String(f),e):e,c),e=",";c.push("]");break}c.push("{");d="";for(f in b)Object.prototype.hasOwnProperty.call(b,f)&&(e=b[f],"function"!=typeof e&&(c.push(d),oa(f,c), c.push(":"),na(a,a.pc?a.pc.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var pa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},qa=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g; function oa(a,b){b.push('"',a.replace(qa,function(a){if(a in pa)return pa[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return pa[a]=e+b.toString(16)}),'"')};function ra(a){return"undefined"!==typeof JSON&&n(JSON.parse)?JSON.parse(a):la(a)}function u(a){if("undefined"!==typeof JSON&&n(JSON.stringify))a=JSON.stringify(a);else{var b=[];na(new ma,a,b);a=b.join("")}return a};function sa(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);55296<=e&&56319>=e&&(e-=55296,d++,v(d<a.length,"Surrogate pair missing trail surrogate."),e=65536+(e<<10)+(a.charCodeAt(d)-56320));128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(65536>e?b[c++]=e>>12|224:(b[c++]=e>>18|240,b[c++]=e>>12&63|128),b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};var ta={};function x(a,b,c,d){var e;d<b?e="at least "+b:d>c&&(e=0===c?"none":"no more than "+c);if(e)throw Error(a+" failed: Was called with "+d+(1===d?" argument.":" arguments.")+" Expects "+e+".");} function y(a,b,c){var d="";switch(b){case 1:d=c?"first":"First";break;case 2:d=c?"second":"Second";break;case 3:d=c?"third":"Third";break;case 4:d=c?"fourth":"Fourth";break;default:ua.assert(!1,"errorPrefix_ called with argumentNumber > 4. Need to update it?")}return a=a+" failed: "+(d+" argument ")}function z(a,b,c,d){if((!d||n(c))&&"function"!=da(c))throw Error(y(a,b,d)+"must be a valid function.");} function va(a,b,c){if(n(c)&&(!ha(c)||null===c))throw Error(y(a,b,!0)+"must be a valid context object.");};function A(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function wa(a,b){if(Object.prototype.hasOwnProperty.call(a,b))return a[b]};var ua={},xa=/[\[\].#$\/\u0000-\u001F\u007F]/,ya=/[\[\].#$\u0000-\u001F\u007F]/;function za(a){return q(a)&&0!==a.length&&!xa.test(a)}function Aa(a,b,c){c&&!n(b)||Ba(y(a,1,c),b)} function Ba(a,b,c,d){c||(c=0);d=d||[];if(!n(b))throw Error(a+"contains undefined"+Ca(d));if("function"==da(b))throw Error(a+"contains a function"+Ca(d)+" with contents: "+b.toString());if(Da(b))throw Error(a+"contains "+b.toString()+Ca(d));if(1E3<c)throw new TypeError(a+"contains a cyclic object value ("+d.slice(0,100).join(".")+"...)");if(q(b)&&b.length>10485760/3&&10485760<sa(b).length)throw Error(a+"contains a string greater than 10485760 utf8 bytes"+Ca(d)+" ('"+b.substring(0,50)+"...')");if(ha(b))for(var e in b)if(A(b, e)){var f=b[e];if(".priority"!==e&&".value"!==e&&".sv"!==e&&!za(e))throw Error(a+" contains an invalid key ("+e+")"+Ca(d)+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');d.push(e);Ba(a,f,c+1,d);d.pop()}}function Ca(a){return 0==a.length?"":" in property '"+a.join(".")+"'"}function Ea(a,b){if(!ha(b)||ea(b))throw Error(y(a,1,!1)+" must be an Object containing the children to replace.");Aa(a,b,!1)} function Fa(a,b,c,d){if(!(d&&!n(c)||null===c||ga(c)||q(c)||ha(c)&&A(c,".sv")))throw Error(y(a,b,d)+"must be a valid firebase priority (a string, number, or null).");}function Ga(a,b,c){if(!c||n(b))switch(b){case "value":case "child_added":case "child_removed":case "child_changed":case "child_moved":break;default:throw Error(y(a,1,c)+'must be a valid event type: "value", "child_added", "child_removed", "child_changed", or "child_moved".');}} function Ha(a,b){if(n(b)&&!za(b))throw Error(y(a,2,!0)+'was an invalid key: "'+b+'". Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").');}function Ia(a,b){if(!q(b)||0===b.length||ya.test(b))throw Error(y(a,1,!1)+'was an invalid path: "'+b+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"');}function B(a,b){if(".info"===C(b))throw Error(a+" failed: Can't modify data under /.info/");};function D(a,b,c,d,e,f,g){this.m=a;this.path=b;this.Ca=c;this.da=d;this.wa=e;this.Aa=f;this.Ya=g;if(n(this.da)&&n(this.Aa)&&n(this.Ca))throw"Query: Can't combine startAt(), endAt(), and limit().";}D.prototype.Uc=function(){x("Query.ref",0,0,arguments.length);return new E(this.m,this.path)};D.prototype.ref=D.prototype.Uc; D.prototype.fb=function(a,b){x("Query.on",2,4,arguments.length);Ga("Query.on",a,!1);z("Query.on",2,b,!1);var c=Ja("Query.on",arguments[2],arguments[3]);this.m.Sb(this,a,b,c.cancel,c.Y);return b};D.prototype.on=D.prototype.fb;D.prototype.zb=function(a,b,c){x("Query.off",0,3,arguments.length);Ga("Query.off",a,!0);z("Query.off",2,b,!0);va("Query.off",3,c);this.m.oc(this,a,b,c)};D.prototype.off=D.prototype.zb; D.prototype.Zd=function(a,b){function c(g){f&&(f=!1,e.zb(a,c),b.call(d.Y,g))}x("Query.once",2,4,arguments.length);Ga("Query.once",a,!1);z("Query.once",2,b,!1);var d=Ja("Query.once",arguments[2],arguments[3]),e=this,f=!0;this.fb(a,c,function(b){e.zb(a,c);d.cancel&&d.cancel.call(d.Y,b)})};D.prototype.once=D.prototype.Zd; D.prototype.Sd=function(a){x("Query.limit",1,1,arguments.length);if(!ga(a)||Math.floor(a)!==a||0>=a)throw"Query.limit: First argument must be a positive integer.";return new D(this.m,this.path,a,this.da,this.wa,this.Aa,this.Ya)};D.prototype.limit=D.prototype.Sd;D.prototype.Ad=function(a,b){x("Query.startAt",0,2,arguments.length);Fa("Query.startAt",1,a,!0);Ha("Query.startAt",b);n(a)||(b=a=null);return new D(this.m,this.path,this.Ca,a,b,this.Aa,this.Ya)};D.prototype.startAt=D.prototype.Ad; D.prototype.gd=function(a,b){x("Query.endAt",0,2,arguments.length);Fa("Query.endAt",1,a,!0);Ha("Query.endAt",b);return new D(this.m,this.path,this.Ca,this.da,this.wa,a,b)};D.prototype.endAt=D.prototype.gd;D.prototype.Kd=function(a,b){x("Query.equalTo",1,2,arguments.length);Fa("Query.equalTo",1,a,!1);Ha("Query.equalTo",b);return this.Ad(a,b).gd(a,b)};D.prototype.equalTo=D.prototype.Kd; function Ka(a){var b={};n(a.da)&&(b.sp=a.da);n(a.wa)&&(b.sn=a.wa);n(a.Aa)&&(b.ep=a.Aa);n(a.Ya)&&(b.en=a.Ya);n(a.Ca)&&(b.l=a.Ca);n(a.da)&&n(a.wa)&&null===a.da&&null===a.wa&&(b.vf="l");return b}D.prototype.Qa=function(){var a=La(Ka(this));return"{}"===a?"default":a}; function Ja(a,b,c){var d={};if(b&&c)d.cancel=b,z(a,3,d.cancel,!0),d.Y=c,va(a,4,d.Y);else if(b)if("object"===typeof b&&null!==b)d.Y=b;else if("function"===typeof b)d.cancel=b;else throw Error(ta.le(a,3,!0)+"must either be a cancel callback or a context object.");return d};function F(a,b){if(1==arguments.length){this.o=a.split("/");for(var c=0,d=0;d<this.o.length;d++)0<this.o[d].length&&(this.o[c]=this.o[d],c++);this.o.length=c;this.U=0}else this.o=a,this.U=b}function C(a){return a.U>=a.o.length?null:a.o[a.U]}function Ma(a){var b=a.U;b<a.o.length&&b++;return new F(a.o,b)}function Na(a){return a.U<a.o.length?a.o[a.o.length-1]:null}h=F.prototype;h.toString=function(){for(var a="",b=this.U;b<this.o.length;b++)""!==this.o[b]&&(a+="/"+this.o[b]);return a||"/"}; h.parent=function(){if(this.U>=this.o.length)return null;for(var a=[],b=this.U;b<this.o.length-1;b++)a.push(this.o[b]);return new F(a,0)};h.G=function(a){for(var b=[],c=this.U;c<this.o.length;c++)b.push(this.o[c]);if(a instanceof F)for(c=a.U;c<a.o.length;c++)b.push(a.o[c]);else for(a=a.split("/"),c=0;c<a.length;c++)0<a[c].length&&b.push(a[c]);return new F(b,0)};h.f=function(){return this.U>=this.o.length};h.length=function(){return this.o.length-this.U}; function Oa(a,b){var c=C(a);if(null===c)return b;if(c===C(b))return Oa(Ma(a),Ma(b));throw"INTERNAL ERROR: innerPath ("+b+") is not within outerPath ("+a+")";}h.contains=function(a){var b=this.U,c=a.U;if(this.length()>a.length())return!1;for(;b<this.o.length;){if(this.o[b]!==a.o[c])return!1;++b;++c}return!0};function Pa(){this.children={};this.Ac=0;this.value=null}function Qa(a,b,c){this.Da=a?a:"";this.Fb=b?b:null;this.C=c?c:new Pa}function I(a,b){for(var c=b instanceof F?b:new F(b),d=a,e;null!==(e=C(c));)d=new Qa(e,d,wa(d.C.children,e)||new Pa),c=Ma(c);return d}h=Qa.prototype;h.j=function(){return this.C.value};function J(a,b){v("undefined"!==typeof b,"Cannot set value to undefined");a.C.value=b;Ra(a)}h.tb=function(){return 0<this.C.Ac};h.f=function(){return null===this.j()&&!this.tb()}; h.A=function(a){for(var b in this.C.children)a(new Qa(b,this,this.C.children[b]))};function Sa(a,b,c,d){c&&!d&&b(a);a.A(function(a){Sa(a,b,!0,d)});c&&d&&b(a)}function Ta(a,b,c){for(a=c?a:a.parent();null!==a;){if(b(a))return!0;a=a.parent()}return!1}h.path=function(){return new F(null===this.Fb?this.Da:this.Fb.path()+"/"+this.Da)};h.name=function(){return this.Da};h.parent=function(){return this.Fb}; function Ra(a){if(null!==a.Fb){var b=a.Fb,c=a.Da,d=a.f(),e=A(b.C.children,c);d&&e?(delete b.C.children[c],b.C.Ac--,Ra(b)):d||e||(b.C.children[c]=a.C,b.C.Ac++,Ra(b))}};function Ua(a,b){this.Va=a?a:Va;this.ca=b?b:Wa}function Va(a,b){return a<b?-1:a>b?1:0}h=Ua.prototype;h.qa=function(a,b){return new Ua(this.Va,this.ca.qa(a,b,this.Va).J(null,null,!1,null,null))};h.remove=function(a){return new Ua(this.Va,this.ca.remove(a,this.Va).J(null,null,!1,null,null))};h.get=function(a){for(var b,c=this.ca;!c.f();){b=this.Va(a,c.key);if(0===b)return c.value;0>b?c=c.left:0<b&&(c=c.right)}return null}; function Xa(a,b){for(var c,d=a.ca,e=null;!d.f();){c=a.Va(b,d.key);if(0===c){if(d.left.f())return e?e.key:null;for(d=d.left;!d.right.f();)d=d.right;return d.key}0>c?d=d.left:0<c&&(e=d,d=d.right)}throw Error("Attempted to find predecessor key for a nonexistent key. What gives?");}h.f=function(){return this.ca.f()};h.count=function(){return this.ca.count()};h.yb=function(){return this.ca.yb()};h.bb=function(){return this.ca.bb()};h.Ba=function(a){return this.ca.Ba(a)};h.Ra=function(a){return this.ca.Ra(a)}; h.ab=function(a){return new Ya(this.ca,a)};function Ya(a,b){this.vd=b;for(this.cc=[];!a.f();)this.cc.push(a),a=a.left}function Za(a){if(0===a.cc.length)return null;var b=a.cc.pop(),c;c=a.vd?a.vd(b.key,b.value):{key:b.key,value:b.value};for(b=b.right;!b.f();)a.cc.push(b),b=b.left;return c}function $a(a,b,c,d,e){this.key=a;this.value=b;this.color=null!=c?c:!0;this.left=null!=d?d:Wa;this.right=null!=e?e:Wa}h=$a.prototype; h.J=function(a,b,c,d,e){return new $a(null!=a?a:this.key,null!=b?b:this.value,null!=c?c:this.color,null!=d?d:this.left,null!=e?e:this.right)};h.count=function(){return this.left.count()+1+this.right.count()};h.f=function(){return!1};h.Ba=function(a){return this.left.Ba(a)||a(this.key,this.value)||this.right.Ba(a)};h.Ra=function(a){return this.right.Ra(a)||a(this.key,this.value)||this.left.Ra(a)};function cb(a){return a.left.f()?a:cb(a.left)}h.yb=function(){return cb(this).key}; h.bb=function(){return this.right.f()?this.key:this.right.bb()};h.qa=function(a,b,c){var d,e;e=this;d=c(a,e.key);e=0>d?e.J(null,null,null,e.left.qa(a,b,c),null):0===d?e.J(null,b,null,null,null):e.J(null,null,null,null,e.right.qa(a,b,c));return db(e)};function eb(a){if(a.left.f())return Wa;a.left.P()||a.left.left.P()||(a=fb(a));a=a.J(null,null,null,eb(a.left),null);return db(a)} h.remove=function(a,b){var c,d;c=this;if(0>b(a,c.key))c.left.f()||c.left.P()||c.left.left.P()||(c=fb(c)),c=c.J(null,null,null,c.left.remove(a,b),null);else{c.left.P()&&(c=gb(c));c.right.f()||c.right.P()||c.right.left.P()||(c=hb(c),c.left.left.P()&&(c=gb(c),c=hb(c)));if(0===b(a,c.key)){if(c.right.f())return Wa;d=cb(c.right);c=c.J(d.key,d.value,null,null,eb(c.right))}c=c.J(null,null,null,null,c.right.remove(a,b))}return db(c)};h.P=function(){return this.color}; function db(a){a.right.P()&&!a.left.P()&&(a=ib(a));a.left.P()&&a.left.left.P()&&(a=gb(a));a.left.P()&&a.right.P()&&(a=hb(a));return a}function fb(a){a=hb(a);a.right.left.P()&&(a=a.J(null,null,null,null,gb(a.right)),a=ib(a),a=hb(a));return a}function ib(a){return a.right.J(null,null,a.color,a.J(null,null,!0,null,a.right.left),null)}function gb(a){return a.left.J(null,null,a.color,null,a.J(null,null,!0,a.left.right,null))} function hb(a){return a.J(null,null,!a.color,a.left.J(null,null,!a.left.color,null,null),a.right.J(null,null,!a.right.color,null,null))}function jb(){}h=jb.prototype;h.J=function(){return this};h.qa=function(a,b){return new $a(a,b,null)};h.remove=function(){return this};h.count=function(){return 0};h.f=function(){return!0};h.Ba=function(){return!1};h.Ra=function(){return!1};h.yb=function(){return null};h.bb=function(){return null};h.P=function(){return!1};var Wa=new jb;function kb(a){this.Xb=a;this.kc="firebase:"}kb.prototype.set=function(a,b){null==b?this.Xb.removeItem(this.kc+a):this.Xb.setItem(this.kc+a,u(b))};kb.prototype.get=function(a){a=this.Xb.getItem(this.kc+a);return null==a?null:ra(a)};kb.prototype.remove=function(a){this.Xb.removeItem(this.kc+a)};kb.prototype.od=!1;function lb(){this.ob={}}lb.prototype.set=function(a,b){null==b?delete this.ob[a]:this.ob[a]=b};lb.prototype.get=function(a){return A(this.ob,a)?this.ob[a]:null};lb.prototype.remove=function(a){delete this.ob[a]};lb.prototype.od=!0;function mb(a){try{if("undefined"!==typeof window&&"undefined"!==typeof window[a]){var b=window[a];b.setItem("firebase:sentinel","cache");b.removeItem("firebase:sentinel");return new kb(b)}}catch(c){}return new lb}var nb=mb("localStorage"),ob=mb("sessionStorage");function pb(a,b,c,d){this.host=a.toLowerCase();this.domain=this.host.substr(this.host.indexOf(".")+1);this.qc=b;this.bc=c;this.ie=d;this.ga=nb.get("host:"+a)||this.host}function qb(a,b){b!==a.ga&&(a.ga=b,"s-"===a.ga.substr(0,2)&&nb.set("host:"+a.host,a.ga))}pb.prototype.toString=function(){return(this.qc?"https://":"http://")+this.host};"use strict";function rb(a,b){if(0===a.length||0===b.length)return a.concat(b);var c=a[a.length-1],d=Math.round(c/1099511627776)||32,e;if(32===d)e=a.concat(b);else{e=b;var c=c|0,f=a.slice(0,a.length-1),g;for(void 0===f&&(f=[]);32<=d;d-=32)f.push(c),c=0;if(0===d)e=f.concat(e);else{for(g=0;g<e.length;g++)f.push(c|e[g]>>>d),c=e[g]<<32-d;g=e.length?e[e.length-1]:0;e=Math.round(g/1099511627776)||32;f.push(sb(d+e&31,32<d+e?c:f.pop(),1));e=f}}return e} function tb(a){var b=a.length;return 0===b?0:32*(b-1)+(Math.round(a[b-1]/1099511627776)||32)}function sb(a,b,c){return 32===a?b:(c?b|0:b<<32-a)+1099511627776*a}function ub(a){var b,c="",d=0,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,g=tb(a);b&&(e=e.substr(0,62)+"-_");for(b=0;6*c.length<g;)c+=e.charAt((f^a[b]>>>d)>>>26),6>d?(f=a[b]<<6-d,d+=26,b++):(f<<=6,d-=6);for(;c.length&3;)c+="=";return c} function vb(a){a?(this.Tb=a.Tb.slice(0),this.nb=a.nb.slice(0),this.Ua=a.Ua):this.reset()}function wb(a){a=(new vb).update(a);var b,c=a.nb,d=a.Tb,c=rb(c,[sb(1,1)]);for(b=c.length+2;b&15;b++)c.push(0);c.push(Math.floor(a.Ua/4294967296));for(c.push(a.Ua|0);c.length;)xb(a,c.splice(0,16));a.reset();return d} vb.prototype={zc:512,reset:function(){this.Tb=this.Md.slice(0);this.nb=[];this.Ua=0;return this},update:function(a){if("string"===typeof a){a=unescape(encodeURIComponent(a));var b=[],c,d=0;for(c=0;c<a.length;c++)d=d<<8|a.charCodeAt(c),3===(c&3)&&(b.push(d),d=0);c&3&&b.push(sb(8*(c&3),d));a=b}c=this.nb=rb(this.nb,a);b=this.Ua;a=this.Ua=b+tb(a);for(b=this.zc+b&-this.zc;b<=a;b+=this.zc)xb(this,c.splice(0,16));return this},Md:[1732584193,4023233417,2562383102,271733878,3285377520],Pd:[1518500249,1859775393, 2400959708,3395469782]};function xb(a,b){var c,d,e,f,g,k,l,m=b.slice(0),p=a.Tb;e=p[0];f=p[1];g=p[2];k=p[3];l=p[4];for(c=0;79>=c;c++)16<=c&&(m[c]=(m[c-3]^m[c-8]^m[c-14]^m[c-16])<<1|(m[c-3]^m[c-8]^m[c-14]^m[c-16])>>>31),d=19>=c?f&g|~f&k:39>=c?f^g^k:59>=c?f&g|f&k|g&k:79>=c?f^g^k:void 0,d=(e<<5|e>>>27)+d+l+m[c]+a.Pd[Math.floor(c/20)]|0,l=k,k=g,g=f<<30|f>>>2,f=e,e=d;p[0]=p[0]+e|0;p[1]=p[1]+f|0;p[2]=p[2]+g|0;p[3]=p[3]+k|0;p[4]=p[4]+l|0};var yb=Array.prototype,zb=yb.forEach?function(a,b,c){yb.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Ab=yb.map?function(a,b,c){return yb.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=q(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Bb=yb.reduce?function(a,b,c,d){d&&(b=r(b,d));return yb.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;zb(a,function(c,g){e=b.call(d,e,c,g,a)});return e}, Cb=yb.every?function(a,b,c){return yb.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0};function Db(a,b){var c;a:{c=a.length;for(var d=q(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){c=e;break a}c=-1}return 0>c?null:q(a)?a.charAt(c):a[c]};var Eb;a:{var Fb=aa.navigator;if(Fb){var Gb=Fb.userAgent;if(Gb){Eb=Gb;break a}}Eb=""}function Hb(a){return-1!=Eb.indexOf(a)};var Ib=Hb("Opera")||Hb("OPR"),Jb=Hb("Trident")||Hb("MSIE"),Kb=Hb("Gecko")&&-1==Eb.toLowerCase().indexOf("webkit")&&!(Hb("Trident")||Hb("MSIE")),Lb=-1!=Eb.toLowerCase().indexOf("webkit");(function(){var a="",b;if(Ib&&aa.opera)return a=aa.opera.version,"function"==da(a)?a():a;Kb?b=/rv\:([^\);]+)(\)|;)/:Jb?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:Lb&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(Eb))?a[1]:"");return Jb&&(b=(b=aa.document)?b.documentMode:void 0,b>parseFloat(a))?String(b):a})();var Mb=null,Nb=null;var Ob=function(){var a=1;return function(){return a++}}();function v(a,b){if(!a)throw Error("Firebase INTERNAL ASSERT FAILED:"+b);}function Pb(a){for(var b="",c=0;c<arguments.length;c++)b=fa(arguments[c])?b+Pb.apply(null,arguments[c]):"object"===typeof arguments[c]?b+u(arguments[c]):b+arguments[c],b+=" ";return b}var Qb=null,Rb=!0;function K(a){!0===Rb&&(Rb=!1,null===Qb&&!0===ob.get("logging_enabled")&&Sb(!0));if(Qb){var b=Pb.apply(null,arguments);Qb(b)}} function Tb(a){return function(){K(a,arguments)}}function Ub(a){if("undefined"!==typeof console){var b="FIREBASE INTERNAL ERROR: "+Pb.apply(null,arguments);"undefined"!==typeof console.error?console.error(b):console.log(b)}}function Vb(a){var b=Pb.apply(null,arguments);throw Error("FIREBASE FATAL ERROR: "+b);}function L(a){if("undefined"!==typeof console){var b="FIREBASE WARNING: "+Pb.apply(null,arguments);"undefined"!==typeof console.warn?console.warn(b):console.log(b)}} function Da(a){return ga(a)&&(a!=a||a==Number.POSITIVE_INFINITY||a==Number.NEGATIVE_INFINITY)}function Wb(a){if("complete"===document.readyState)a();else{var b=!1,c=function(){document.body?b||(b=!0,a()):setTimeout(c,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",c,!1),window.addEventListener("load",c,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&c()}),window.attachEvent("onload",c))}} function Xb(a,b){return a!==b?null===a?-1:null===b?1:typeof a!==typeof b?"number"===typeof a?-1:1:a>b?1:-1:0}function Yb(a,b){if(a===b)return 0;var c=Zb(a),d=Zb(b);return null!==c?null!==d?0==c-d?a.length-b.length:c-d:-1:null!==d?1:a<b?-1:1}function $b(a,b){if(b&&a in b)return b[a];throw Error("Missing required key ("+a+") in object: "+u(b));} function La(a){if("object"!==typeof a||null===a)return u(a);var b=[],c;for(c in a)b.push(c);b.sort();c="{";for(var d=0;d<b.length;d++)0!==d&&(c+=","),c+=u(b[d]),c+=":",c+=La(a[b[d]]);return c+"}"}function ac(a,b){if(a.length<=b)return[a];for(var c=[],d=0;d<a.length;d+=b)d+b>a?c.push(a.substring(d,a.length)):c.push(a.substring(d,d+b));return c}function bc(a,b){if(ea(a))for(var c=0;c<a.length;++c)b(c,a[c]);else cc(a,b)}function dc(a,b){return b?r(a,b):a} function ec(a){v(!Da(a),"Invalid JSON number");var b,c,d,e;0===a?(d=c=0,b=-Infinity===1/a?1:0):(b=0>a,a=Math.abs(a),a>=Math.pow(2,-1022)?(d=Math.min(Math.floor(Math.log(a)/Math.LN2),1023),c=d+1023,d=Math.round(a*Math.pow(2,52-d)-Math.pow(2,52))):(c=0,d=Math.round(a/Math.pow(2,-1074))));e=[];for(a=52;a;a-=1)e.push(d%2?1:0),d=Math.floor(d/2);for(a=11;a;a-=1)e.push(c%2?1:0),c=Math.floor(c/2);e.push(b?1:0);e.reverse();b=e.join("");c="";for(a=0;64>a;a+=8)d=parseInt(b.substr(a,8),2).toString(16),1===d.length&& (d="0"+d),c+=d;return c.toLowerCase()}function fc(a){var b="Unknown Error";"too_big"===a?b="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"==a?b="Client doesn't have permission to access the desired data.":"unavailable"==a&&(b="The service is unavailable");b=Error(a+": "+b);b.code=a.toUpperCase();return b}var gc=/^-?\d{1,10}$/;function Zb(a){return gc.test(a)&&(a=Number(a),-2147483648<=a&&2147483647>=a)?a:null} function ic(a){try{a()}catch(b){setTimeout(function(){throw b;},Math.floor(0))}};function jc(a,b){this.F=a;v(null!==this.F,"LeafNode shouldn't be created with null value.");this.gb="undefined"!==typeof b?b:null}h=jc.prototype;h.O=function(){return!0};h.k=function(){return this.gb};h.Ga=function(a){return new jc(this.F,a)};h.N=function(){return M};h.K=function(a){return null===C(a)?this:M};h.fa=function(){return null};h.H=function(a,b){return(new N).H(a,b).Ga(this.gb)};h.ya=function(a,b){var c=C(a);return null===c?b:this.H(c,M.ya(Ma(a),b))};h.f=function(){return!1};h.dc=function(){return 0}; h.V=function(a){return a&&null!==this.k()?{".value":this.j(),".priority":this.k()}:this.j()};h.hash=function(){var a="";null!==this.k()&&(a+="priority:"+kc(this.k())+":");var b=typeof this.F,a=a+(b+":"),a="number"===b?a+ec(this.F):a+this.F;return ub(wb(a))};h.j=function(){return this.F};h.toString=function(){return"string"===typeof this.F?this.F:'"'+this.F+'"'};function lc(a,b){return Xb(a.ja,b.ja)||Yb(a.name,b.name)}function mc(a,b){return Yb(a.name,b.name)}function nc(a,b){return Yb(a,b)};function N(a,b){this.n=a||new Ua(nc);this.gb="undefined"!==typeof b?b:null}h=N.prototype;h.O=function(){return!1};h.k=function(){return this.gb};h.Ga=function(a){return new N(this.n,a)};h.H=function(a,b){var c=this.n.remove(a);b&&b.f()&&(b=null);null!==b&&(c=c.qa(a,b));return b&&null!==b.k()?new oc(c,null,this.gb):new N(c,this.gb)};h.ya=function(a,b){var c=C(a);if(null===c)return b;var d=this.N(c).ya(Ma(a),b);return this.H(c,d)};h.f=function(){return this.n.f()};h.dc=function(){return this.n.count()}; var pc=/^\d+$/;h=N.prototype;h.V=function(a){if(this.f())return null;var b={},c=0,d=0,e=!0;this.A(function(f,g){b[f]=g.V(a);c++;e&&pc.test(f)?d=Math.max(d,Number(f)):e=!1});if(!a&&e&&d<2*c){var f=[],g;for(g in b)f[g]=b[g];return f}a&&null!==this.k()&&(b[".priority"]=this.k());return b};h.hash=function(){var a="";null!==this.k()&&(a+="priority:"+kc(this.k())+":");this.A(function(b,c){var d=c.hash();""!==d&&(a+=":"+b+":"+d)});return""===a?"":ub(wb(a))}; h.N=function(a){a=this.n.get(a);return null===a?M:a};h.K=function(a){var b=C(a);return null===b?this:this.N(b).K(Ma(a))};h.fa=function(a){return Xa(this.n,a)};h.jd=function(){return this.n.yb()};h.ld=function(){return this.n.bb()};h.A=function(a){return this.n.Ba(a)};h.Fc=function(a){return this.n.Ra(a)};h.ab=function(){return this.n.ab()};h.toString=function(){var a="{",b=!0;this.A(function(c,d){b?b=!1:a+=", ";a+='"'+c+'" : '+d.toString()});return a+="}"};var M=new N;function oc(a,b,c){N.call(this,a,c);null===b&&(b=new Ua(lc),a.Ba(function(a,c){b=b.qa({name:a,ja:c.k()},c)}));this.va=b}ka(oc,N);h=oc.prototype;h.H=function(a,b){var c=this.N(a),d=this.n,e=this.va;null!==c&&(d=d.remove(a),e=e.remove({name:a,ja:c.k()}));b&&b.f()&&(b=null);null!==b&&(d=d.qa(a,b),e=e.qa({name:a,ja:b.k()},b));return new oc(d,e,this.k())};h.fa=function(a,b){var c=Xa(this.va,{name:a,ja:b.k()});return c?c.name:null};h.A=function(a){return this.va.Ba(function(b,c){return a(b.name,c)})}; h.Fc=function(a){return this.va.Ra(function(b,c){return a(b.name,c)})};h.ab=function(){return this.va.ab(function(a,b){return{key:a.name,value:b}})};h.jd=function(){return this.va.f()?null:this.va.yb().name};h.ld=function(){return this.va.f()?null:this.va.bb().name};function O(a,b){if(null===a)return M;var c=null;"object"===typeof a&&".priority"in a?c=a[".priority"]:"undefined"!==typeof b&&(c=b);v(null===c||"string"===typeof c||"number"===typeof c||"object"===typeof c&&".sv"in c,"Invalid priority type found: "+typeof c);"object"===typeof a&&".value"in a&&null!==a[".value"]&&(a=a[".value"]);if("object"!==typeof a||".sv"in a)return new jc(a,c);if(a instanceof Array){var d=M,e=a;cc(e,function(a,b){if(A(e,b)&&"."!==b.substring(0,1)){var c=O(a);if(c.O()||!c.f())d= d.H(b,c)}});return d.Ga(c)}var f=[],g={},k=!1,l=a;bc(l,function(a,b){if("string"!==typeof b||"."!==b.substring(0,1)){var c=O(l[b]);c.f()||(k=k||null!==c.k(),f.push({name:b,ja:c.k()}),g[b]=c)}});var m=qc(f,g,!1);if(k){var p=qc(f,g,!0);return new oc(m,p,c)}return new N(m,c)}var rc=Math.log(2);function sc(a){this.count=parseInt(Math.log(a+1)/rc,10);this.ed=this.count-1;this.Hd=a+1&parseInt(Array(this.count+1).join("1"),2)}function tc(a){var b=!(a.Hd&1<<a.ed);a.ed--;return b} function qc(a,b,c){function d(e,f){var l=f-e;if(0==l)return null;if(1==l){var l=a[e].name,m=c?a[e]:l;return new $a(m,b[l],!1,null,null)}var m=parseInt(l/2,10)+e,p=d(e,m),t=d(m+1,f),l=a[m].name,m=c?a[m]:l;return new $a(m,b[l],!1,p,t)}var e=c?lc:mc;a.sort(e);var f=function(e){function f(e,g){var k=p-e,t=p;p-=e;var s=a[k].name,k=new $a(c?a[k]:s,b[s],g,null,d(k+1,t));l?l.left=k:m=k;l=k}for(var l=null,m=null,p=a.length,t=0;t<e.count;++t){var s=tc(e),w=Math.pow(2,e.count-(t+1));s?f(w,!1):(f(w,!1),f(w,!0))}return m}(new sc(a.length)), e=c?lc:nc;return null!==f?new Ua(e,f):new Ua(e)}function kc(a){return"number"===typeof a?"number:"+ec(a):"string:"+a};function P(a,b){this.C=a;this.nc=b}P.prototype.V=function(){x("Firebase.DataSnapshot.val",0,0,arguments.length);return this.C.V()};P.prototype.val=P.prototype.V;P.prototype.Ld=function(){x("Firebase.DataSnapshot.exportVal",0,0,arguments.length);return this.C.V(!0)};P.prototype.exportVal=P.prototype.Ld;P.prototype.G=function(a){x("Firebase.DataSnapshot.child",0,1,arguments.length);ga(a)&&(a=String(a));Ia("Firebase.DataSnapshot.child",a);var b=new F(a),c=this.nc.G(b);return new P(this.C.K(b),c)}; P.prototype.child=P.prototype.G;P.prototype.Ic=function(a){x("Firebase.DataSnapshot.hasChild",1,1,arguments.length);Ia("Firebase.DataSnapshot.hasChild",a);var b=new F(a);return!this.C.K(b).f()};P.prototype.hasChild=P.prototype.Ic;P.prototype.k=function(){x("Firebase.DataSnapshot.getPriority",0,0,arguments.length);return this.C.k()};P.prototype.getPriority=P.prototype.k; P.prototype.forEach=function(a){x("Firebase.DataSnapshot.forEach",1,1,arguments.length);z("Firebase.DataSnapshot.forEach",1,a,!1);if(this.C.O())return!1;var b=this;return this.C.A(function(c,d){return a(new P(d,b.nc.G(c)))})};P.prototype.forEach=P.prototype.forEach;P.prototype.tb=function(){x("Firebase.DataSnapshot.hasChildren",0,0,arguments.length);return this.C.O()?!1:!this.C.f()};P.prototype.hasChildren=P.prototype.tb; P.prototype.name=function(){x("Firebase.DataSnapshot.name",0,0,arguments.length);return this.nc.name()};P.prototype.name=P.prototype.name;P.prototype.dc=function(){x("Firebase.DataSnapshot.numChildren",0,0,arguments.length);return this.C.dc()};P.prototype.numChildren=P.prototype.dc;P.prototype.Uc=function(){x("Firebase.DataSnapshot.ref",0,0,arguments.length);return this.nc};P.prototype.ref=P.prototype.Uc;function uc(a){v(ea(a)&&0<a.length,"Requires a non-empty array");this.Gd=a;this.xb={}}uc.prototype.bd=function(a,b){for(var c=this.xb[a]||[],d=0;d<c.length;d++)c[d].aa.apply(c[d].Y,Array.prototype.slice.call(arguments,1))};uc.prototype.fb=function(a,b,c){vc(this,a);this.xb[a]=this.xb[a]||[];this.xb[a].push({aa:b,Y:c});(a=this.kd(a))&&b.apply(c,a)};uc.prototype.zb=function(a,b,c){vc(this,a);a=this.xb[a]||[];for(var d=0;d<a.length;d++)if(a[d].aa===b&&(!c||c===a[d].Y)){a.splice(d,1);break}}; function vc(a,b){v(Db(a.Gd,function(a){return a===b}),"Unknown event: "+b)};function wc(){uc.call(this,["visible"]);var a,b;"undefined"!==typeof document&&"undefined"!==typeof document.addEventListener&&("undefined"!==typeof document.hidden?(b="visibilitychange",a="hidden"):"undefined"!==typeof document.mozHidden?(b="mozvisibilitychange",a="mozHidden"):"undefined"!==typeof document.msHidden?(b="msvisibilitychange",a="msHidden"):"undefined"!==typeof document.webkitHidden&&(b="webkitvisibilitychange",a="webkitHidden"));this.lb=!0;if(b){var c=this;document.addEventListener(b, function(){var b=!document[a];b!==c.lb&&(c.lb=b,c.bd("visible",b))},!1)}}ka(wc,uc);ca(wc);wc.prototype.kd=function(a){v("visible"===a,"Unknown event type: "+a);return[this.lb]};function xc(){uc.call(this,["online"]);this.Db=!0;if("undefined"!==typeof window&&"undefined"!==typeof window.addEventListener){var a=this;window.addEventListener("online",function(){a.Db||a.bd("online",!0);a.Db=!0},!1);window.addEventListener("offline",function(){a.Db&&a.bd("online",!1);a.Db=!1},!1)}}ka(xc,uc);ca(xc);xc.prototype.kd=function(a){v("online"===a,"Unknown event type: "+a);return[this.Db]};function cc(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function yc(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function zc(a){var b={},c;for(c in a)b[c]=a[c];return b};function Ac(){this.pb={}}function Bc(a,b,c){n(c)||(c=1);A(a.pb,b)||(a.pb[b]=0);a.pb[b]+=c}Ac.prototype.get=function(){return zc(this.pb)};function Cc(a){this.Id=a;this.Zb=null}Cc.prototype.get=function(){var a=this.Id.get(),b=zc(a);if(this.Zb)for(var c in this.Zb)b[c]-=this.Zb[c];this.Zb=a;return b};function Dc(a,b){this.Zc={};this.tc=new Cc(a);this.u=b;var c=1E4+2E4*Math.random();setTimeout(r(this.td,this),Math.floor(c))}Dc.prototype.td=function(){var a=this.tc.get(),b={},c=!1,d;for(d in a)0<a[d]&&A(this.Zc,d)&&(b[d]=a[d],c=!0);c&&(a=this.u,a.R&&(b={c:b},a.e("reportStats",b),a.Ea("s",b)));setTimeout(r(this.td,this),Math.floor(6E5*Math.random()))};var Ec={},Fc={};function Gc(a){a=a.toString();Ec[a]||(Ec[a]=new Ac);return Ec[a]}function Hc(a,b){var c=a.toString();Fc[c]||(Fc[c]=b());return Fc[c]};var Ic=null;"undefined"!==typeof MozWebSocket?Ic=MozWebSocket:"undefined"!==typeof WebSocket&&(Ic=WebSocket);function Q(a,b,c){this.Cc=a;this.e=Tb(this.Cc);this.frames=this.vb=null;this.Ha=this.Ia=this.ad=0;this.ea=Gc(b);this.Wa=(b.qc?"wss://":"ws://")+b.ga+"/.ws?v=5";b.host!==b.ga&&(this.Wa=this.Wa+"&ns="+b.bc);c&&(this.Wa=this.Wa+"&s="+c)}var Jc; Q.prototype.open=function(a,b){this.ia=b;this.Wd=a;this.e("Websocket connecting to "+this.Wa);this.W=new Ic(this.Wa);this.qb=!1;nb.set("previous_websocket_failure",!0);var c=this;this.W.onopen=function(){c.e("Websocket connected.");c.qb=!0};this.W.onclose=function(){c.e("Websocket connection was disconnected.");c.W=null;c.Pa()};this.W.onmessage=function(a){if(null!==c.W)if(a=a.data,c.Ha+=a.length,Bc(c.ea,"bytes_received",a.length),Kc(c),null!==c.frames)Lc(c,a);else{a:{v(null===c.frames,"We already have a frame buffer"); if(6>=a.length){var b=Number(a);if(!isNaN(b)){c.ad=b;c.frames=[];a=null;break a}}c.ad=1;c.frames=[]}null!==a&&Lc(c,a)}};this.W.onerror=function(a){c.e("WebSocket error. Closing connection.");(a=a.message||a.data)&&c.e(a);c.Pa()}};Q.prototype.start=function(){};Q.isAvailable=function(){var a=!1;if("undefined"!==typeof navigator&&navigator.userAgent){var b=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);b&&1<b.length&&4.4>parseFloat(b[1])&&(a=!0)}return!a&&null!==Ic&&!Jc}; Q.responsesRequiredToBeHealthy=2;Q.healthyTimeout=3E4;h=Q.prototype;h.$b=function(){nb.remove("previous_websocket_failure")};function Lc(a,b){a.frames.push(b);if(a.frames.length==a.ad){var c=a.frames.join("");a.frames=null;c=ra(c);a.Wd(c)}}h.send=function(a){Kc(this);a=u(a);this.Ia+=a.length;Bc(this.ea,"bytes_sent",a.length);a=ac(a,16384);1<a.length&&this.W.send(String(a.length));for(var b=0;b<a.length;b++)this.W.send(a[b])}; h.Nb=function(){this.Ma=!0;this.vb&&(clearInterval(this.vb),this.vb=null);this.W&&(this.W.close(),this.W=null)};h.Pa=function(){this.Ma||(this.e("WebSocket is closing itself"),this.Nb(),this.ia&&(this.ia(this.qb),this.ia=null))};h.close=function(){this.Ma||(this.e("WebSocket is being closed"),this.Nb())};function Kc(a){clearInterval(a.vb);a.vb=setInterval(function(){a.W&&a.W.send("0");Kc(a)},Math.floor(45E3))};function Mc(a){this.Pc=a;this.jc=[];this.Xa=0;this.Bc=-1;this.Oa=null}function Nc(a,b,c){a.Bc=b;a.Oa=c;a.Bc<a.Xa&&(a.Oa(),a.Oa=null)}function Oc(a,b,c){for(a.jc[b]=c;a.jc[a.Xa];){var d=a.jc[a.Xa];delete a.jc[a.Xa];for(var e=0;e<d.length;++e)if(d[e]){var f=a;ic(function(){f.Pc(d[e])})}if(a.Xa===a.Bc){a.Oa&&(clearTimeout(a.Oa),a.Oa(),a.Oa=null);break}a.Xa++}};function Pc(){this.set={}}h=Pc.prototype;h.add=function(a,b){this.set[a]=null!==b?b:!0};h.contains=function(a){return A(this.set,a)};h.get=function(a){return this.contains(a)?this.set[a]:void 0};h.remove=function(a){delete this.set[a]};h.f=function(){var a;a:{a=this.set;for(var b in a){a=!1;break a}a=!0}return a};h.count=function(){var a=this.set,b=0,c;for(c in a)b++;return b};function R(a,b){cc(a.set,function(a,d){b(d,a)})}h.keys=function(){var a=[];cc(this.set,function(b,c){a.push(c)});return a};function Qc(a,b,c){this.Cc=a;this.e=Tb(a);this.Ha=this.Ia=0;this.ea=Gc(b);this.sc=c;this.qb=!1;this.Rb=function(a){b.host!==b.ga&&(a.ns=b.bc);var c=[],f;for(f in a)a.hasOwnProperty(f)&&c.push(f+"="+a[f]);return(b.qc?"https://":"http://")+b.ga+"/.lp?"+c.join("&")}}var Rc,Sc; Qc.prototype.open=function(a,b){this.dd=0;this.S=b;this.pd=new Mc(a);this.Ma=!1;var c=this;this.Ja=setTimeout(function(){c.e("Timed out trying to connect.");c.Pa();c.Ja=null},Math.floor(3E4));Wb(function(){if(!c.Ma){c.la=new Tc(function(a,b,d,k,l){Uc(c,arguments);if(c.la)if(c.Ja&&(clearTimeout(c.Ja),c.Ja=null),c.qb=!0,"start"==a)c.id=b,c.sd=d;else if("close"===a)b?(c.la.rc=!1,Nc(c.pd,b,function(){c.Pa()})):c.Pa();else throw Error("Unrecognized command received: "+a);},function(a,b){Uc(c,arguments); Oc(c.pd,a,b)},function(){c.Pa()},c.Rb);var a={start:"t"};a.ser=Math.floor(1E8*Math.random());c.la.uc&&(a.cb=c.la.uc);a.v="5";c.sc&&(a.s=c.sc);a=c.Rb(a);c.e("Connecting via long-poll to "+a);Vc(c.la,a,function(){})}})};Qc.prototype.start=function(){var a=this.la,b=this.sd;a.Ud=this.id;a.Vd=b;for(a.xc=!0;Wc(a););a=this.id;b=this.sd;this.eb=document.createElement("iframe");var c={dframe:"t"};c.id=a;c.pw=b;this.eb.src=this.Rb(c);this.eb.style.display="none";document.body.appendChild(this.eb)}; Qc.isAvailable=function(){return!Sc&&!("object"===typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))&&!("object"===typeof Windows&&"object"===typeof Windows.je)&&(Rc||!0)};h=Qc.prototype;h.$b=function(){};h.Nb=function(){this.Ma=!0;this.la&&(this.la.close(),this.la=null);this.eb&&(document.body.removeChild(this.eb),this.eb=null);this.Ja&&(clearTimeout(this.Ja),this.Ja=null)}; h.Pa=function(){this.Ma||(this.e("Longpoll is closing itself"),this.Nb(),this.S&&(this.S(this.qb),this.S=null))};h.close=function(){this.Ma||(this.e("Longpoll is being closed."),this.Nb())}; h.send=function(a){a=u(a);this.Ia+=a.length;Bc(this.ea,"bytes_sent",a.length);a=sa(a);if(!fa(a))throw Error("encodeByteArray takes an array as a parameter");if(!Mb){Mb={};Nb={};for(var b=0;65>b;b++)Mb[b]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b),Nb[b]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(b)}for(var b=Nb,c=[],d=0;d<a.length;d+=3){var e=a[d],f=d+1<a.length,g=f?a[d+1]:0,k=d+2<a.length,l=k?a[d+2]:0,m=e>>2,e=(e&3)<<4|g>>4,g=(g&15)<< 2|l>>6,l=l&63;k||(l=64,f||(g=64));c.push(b[m],b[e],b[g],b[l])}a=ac(c.join(""),1840);for(b=0;b<a.length;b++)c=this.la,c.Hb.push({de:this.dd,he:a.length,fd:a[b]}),c.xc&&Wc(c),this.dd++};function Uc(a,b){var c=u(b).length;a.Ha+=c;Bc(a.ea,"bytes_received",c)} function Tc(a,b,c,d){this.Rb=d;this.ia=c;this.Rc=new Pc;this.Hb=[];this.Dc=Math.floor(1E8*Math.random());this.rc=!0;this.uc=Ob();window["pLPCommand"+this.uc]=a;window["pRTLPCB"+this.uc]=b;a=document.createElement("iframe");a.style.display="none";if(document.body){document.body.appendChild(a);try{a.contentWindow.document||K("No IE domain setting required")}catch(e){a.src="javascript:void((function(){document.open();document.domain='"+document.domain+"';document.close();})())"}}else throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready."; a.contentDocument?a.za=a.contentDocument:a.contentWindow?a.za=a.contentWindow.document:a.document&&(a.za=a.document);this.Z=a;a="";this.Z.src&&"javascript:"===this.Z.src.substr(0,11)&&(a='<script>document.domain="'+document.domain+'";\x3c/script>');a="<html><body>"+a+"</body></html>";try{this.Z.za.open(),this.Z.za.write(a),this.Z.za.close()}catch(f){K("frame writing exception"),f.stack&&K(f.stack),K(f)}} Tc.prototype.close=function(){this.xc=!1;if(this.Z){this.Z.za.body.innerHTML="";var a=this;setTimeout(function(){null!==a.Z&&(document.body.removeChild(a.Z),a.Z=null)},Math.floor(0))}var b=this.ia;b&&(this.ia=null,b())}; function Wc(a){if(a.xc&&a.rc&&a.Rc.count()<(0<a.Hb.length?2:1)){a.Dc++;var b={};b.id=a.Ud;b.pw=a.Vd;b.ser=a.Dc;for(var b=a.Rb(b),c="",d=0;0<a.Hb.length;)if(1870>=a.Hb[0].fd.length+30+c.length){var e=a.Hb.shift(),c=c+"&seg"+d+"="+e.de+"&ts"+d+"="+e.he+"&d"+d+"="+e.fd;d++}else break;Zc(a,b+c,a.Dc);return!0}return!1}function Zc(a,b,c){function d(){a.Rc.remove(c);Wc(a)}a.Rc.add(c);var e=setTimeout(d,Math.floor(25E3));Vc(a,b,function(){clearTimeout(e);d()})} function Vc(a,b,c){setTimeout(function(){try{if(a.rc){var d=a.Z.za.createElement("script");d.type="text/javascript";d.async=!0;d.src=b;d.onload=d.onreadystatechange=function(){var a=d.readyState;a&&"loaded"!==a&&"complete"!==a||(d.onload=d.onreadystatechange=null,d.parentNode&&d.parentNode.removeChild(d),c())};d.onerror=function(){K("Long-poll script failed to load: "+b);a.rc=!1;a.close()};a.Z.za.body.appendChild(d)}}catch(e){}},Math.floor(1))};function $c(a){ad(this,a)}var bd=[Qc,Q];function ad(a,b){var c=Q&&Q.isAvailable(),d=c&&!(nb.od||!0===nb.get("previous_websocket_failure"));b.ie&&(c||L("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),d=!0);if(d)a.Ob=[Q];else{var e=a.Ob=[];bc(bd,function(a,b){b&&b.isAvailable()&&e.push(b)})}}function cd(a){if(0<a.Ob.length)return a.Ob[0];throw Error("No transports available");};function dd(a,b,c,d,e,f){this.id=a;this.e=Tb("c:"+this.id+":");this.Pc=c;this.Cb=d;this.S=e;this.Oc=f;this.M=b;this.ic=[];this.cd=0;this.Cd=new $c(b);this.ma=0;this.e("Connection created");ed(this)} function ed(a){var b=cd(a.Cd);a.B=new b("c:"+a.id+":"+a.cd++,a.M);a.Tc=b.responsesRequiredToBeHealthy||0;var c=fd(a,a.B),d=gd(a,a.B);a.Pb=a.B;a.Mb=a.B;a.w=null;a.Na=!1;setTimeout(function(){a.B&&a.B.open(c,d)},Math.floor(0));b=b.healthyTimeout||0;0<b&&(a.Yb=setTimeout(function(){a.Yb=null;a.Na||(a.B&&102400<a.B.Ha?(a.e("Connection exceeded healthy timeout but has received "+a.B.Ha+" bytes. Marking connection healthy."),a.Na=!0,a.B.$b()):a.B&&10240<a.B.Ia?a.e("Connection exceeded healthy timeout but has sent "+ a.B.Ia+" bytes. Leaving connection alive."):(a.e("Closing unhealthy connection after timeout."),a.close()))},Math.floor(b)))}function gd(a,b){return function(c){b===a.B?(a.B=null,c||0!==a.ma?1===a.ma&&a.e("Realtime connection lost."):(a.e("Realtime connection failed."),"s-"===a.M.ga.substr(0,2)&&(nb.remove("host:"+a.M.host),a.M.ga=a.M.host)),a.close()):b===a.w?(a.e("Secondary connection lost."),c=a.w,a.w=null,a.Pb!==c&&a.Mb!==c||a.close()):a.e("closing an old connection")}} function fd(a,b){return function(c){if(2!=a.ma)if(b===a.Mb){var d=$b("t",c);c=$b("d",c);if("c"==d){if(d=$b("t",c),"d"in c)if(c=c.d,"h"===d){var d=c.ts,e=c.v,f=c.h;a.sc=c.s;qb(a.M,f);0==a.ma&&(a.B.start(),hd(a,a.B,d),"5"!==e&&L("Protocol version mismatch detected"),c=a.Cd,(c=1<c.Ob.length?c.Ob[1]:null)&&id(a,c))}else if("n"===d){a.e("recvd end transmission on primary");a.Mb=a.w;for(c=0;c<a.ic.length;++c)a.gc(a.ic[c]);a.ic=[];jd(a)}else"s"===d?(a.e("Connection shutdown command received. Shutting down..."), a.Oc&&(a.Oc(c),a.Oc=null),a.S=null,a.close()):"r"===d?(a.e("Reset packet received. New host: "+c),qb(a.M,c),1===a.ma?a.close():(kd(a),ed(a))):"e"===d?Ub("Server Error: "+c):"o"===d?(a.e("got pong on primary."),ld(a),md(a)):Ub("Unknown control packet command: "+d)}else"d"==d&&a.gc(c)}else if(b===a.w)if(d=$b("t",c),c=$b("d",c),"c"==d)"t"in c&&(c=c.t,"a"===c?nd(a):"r"===c?(a.e("Got a reset on secondary, closing it"),a.w.close(),a.Pb!==a.w&&a.Mb!==a.w||a.close()):"o"===c&&(a.e("got pong on secondary."), a.xd--,nd(a)));else if("d"==d)a.ic.push(c);else throw Error("Unknown protocol layer: "+d);else a.e("message on old connection")}}dd.prototype.yd=function(a){od(this,{t:"d",d:a})};function jd(a){a.Pb===a.w&&a.Mb===a.w&&(a.e("cleaning up and promoting a connection: "+a.w.Cc),a.B=a.w,a.w=null)} function nd(a){0>=a.xd?(a.e("Secondary connection is healthy."),a.Na=!0,a.w.$b(),a.w.start(),a.e("sending client ack on secondary"),a.w.send({t:"c",d:{t:"a",d:{}}}),a.e("Ending transmission on primary"),a.B.send({t:"c",d:{t:"n",d:{}}}),a.Pb=a.w,jd(a)):(a.e("sending ping on secondary."),a.w.send({t:"c",d:{t:"p",d:{}}}))}dd.prototype.gc=function(a){ld(this);this.Pc(a)};function ld(a){a.Na||(a.Tc--,0>=a.Tc&&(a.e("Primary connection is healthy."),a.Na=!0,a.B.$b()))} function id(a,b){a.w=new b("c:"+a.id+":"+a.cd++,a.M,a.sc);a.xd=b.responsesRequiredToBeHealthy||0;a.w.open(fd(a,a.w),gd(a,a.w));setTimeout(function(){a.w&&(a.e("Timed out trying to upgrade."),a.w.close())},Math.floor(6E4))}function hd(a,b,c){a.e("Realtime connection established.");a.B=b;a.ma=1;a.Cb&&(a.Cb(c),a.Cb=null);0===a.Tc?(a.e("Primary connection is healthy."),a.Na=!0):setTimeout(function(){md(a)},Math.floor(5E3))} function md(a){a.Na||1!==a.ma||(a.e("sending ping on primary."),od(a,{t:"c",d:{t:"p",d:{}}}))}function od(a,b){if(1!==a.ma)throw"Connection is not connected";a.Pb.send(b)}dd.prototype.close=function(){2!==this.ma&&(this.e("Closing realtime connection."),this.ma=2,kd(this),this.S&&(this.S(),this.S=null))};function kd(a){a.e("Shutting down all connections");a.B&&(a.B.close(),a.B=null);a.w&&(a.w.close(),a.w=null);a.Yb&&(clearTimeout(a.Yb),a.Yb=null)};function pd(a,b,c,d,e,f){this.id=qd++;this.e=Tb("p:"+this.id+":");this.Sa=!0;this.ha={};this.T=[];this.Eb=0;this.Bb=[];this.R=!1;this.sa=1E3;this.ac=3E5;this.hc=b||ba;this.fc=c||ba;this.Ab=d||ba;this.Qc=e||ba;this.Hc=f||ba;this.M=a;this.Vc=null;this.Lb={};this.ce=0;this.wb=this.Lc=null;rd(this,0);wc.sb().fb("visible",this.Yd,this);-1===a.host.indexOf("fblocal")&&xc.sb().fb("online",this.Xd,this)}var qd=0,sd=0;h=pd.prototype; h.Ea=function(a,b,c){var d=++this.ce;a={r:d,a:a,b:b};this.e(u(a));v(this.R,"sendRequest_ call when we're not connected not allowed.");this.ka.yd(a);c&&(this.Lb[d]=c)};function td(a,b,c){var d=b.toString(),e=b.path().toString();a.ha[e]=a.ha[e]||{};v(!a.ha[e][d],"listen() called twice for same path/queryId.");a.ha[e][d]={hb:b.hb(),D:c};a.R&&ud(a,e,d,b.hb(),c)} function ud(a,b,c,d,e){a.e("Listen on "+b+" for "+c);var f={p:b};d=Ab(d,function(a){return Ka(a)});"{}"!==c&&(f.q=d);f.h=a.Hc(b);a.Ea("l",f,function(d){a.e("listen response",d);d=d.s;"ok"!==d&&vd(a,b,c);e&&e(d)})} h.mb=function(a,b,c){this.Ka={Jd:a,hd:!1,aa:b,Ub:c};this.e("Authenticating using credential: "+this.Ka);wd(this);if(!(b=40==a.length))a:{var d;try{var e=a.split(".");if(3!==e.length){b=!1;break a}var f;b:{try{if("undefined"!==typeof atob){f=atob(e[1]);break b}}catch(g){K("base64DecodeIfNativeSupport failed: ",g)}f=null}null!==f&&(d=ra(f))}catch(k){K("isAdminAuthToken_ failed",k)}b="object"===typeof d&&!0===wa(d,"admin")}b&&(this.e("Admin auth credential detected. Reducing max reconnect time."),this.ac= 3E4)};h.Qb=function(a){delete this.Ka;this.Ab(!1);this.R&&this.Ea("unauth",{},function(b){a(b.s,b.d)})};function wd(a){var b=a.Ka;a.R&&b&&a.Ea("auth",{cred:b.Jd},function(c){var d=c.s;c=c.d||"error";"ok"!==d&&a.Ka===b&&delete a.Ka;a.Ab("ok"===d);b.hd?"ok"!==d&&b.Ub&&b.Ub(d,c):(b.hd=!0,b.aa&&b.aa(d,c))})}function xd(a,b,c,d){b=b.toString();vd(a,b,c)&&a.R&&yd(a,b,c,d)}function yd(a,b,c,d){a.e("Unlisten on "+b+" for "+c);b={p:b};d=Ab(d,function(a){return Ka(a)});"{}"!==c&&(b.q=d);a.Ea("u",b)} function zd(a,b,c,d){a.R?Ad(a,"o",b,c,d):a.Bb.push({Sc:b,action:"o",data:c,D:d})}function Bd(a,b,c,d){a.R?Ad(a,"om",b,c,d):a.Bb.push({Sc:b,action:"om",data:c,D:d})}h.Nc=function(a,b){this.R?Ad(this,"oc",a,null,b):this.Bb.push({Sc:a,action:"oc",data:null,D:b})};function Ad(a,b,c,d,e){c={p:c,d:d};a.e("onDisconnect "+b,c);a.Ea(b,c,function(a){e&&setTimeout(function(){e(a.s,a.d)},Math.floor(0))})}h.put=function(a,b,c,d){Cd(this,"p",a,b,c,d)};function Dd(a,b,c,d){Cd(a,"m",b,c,d,void 0)} function Cd(a,b,c,d,e,f){c={p:c,d:d};n(f)&&(c.h=f);a.T.push({action:b,ud:c,D:e});a.Eb++;b=a.T.length-1;a.R&&Ed(a,b)}function Ed(a,b){var c=a.T[b].action,d=a.T[b].ud,e=a.T[b].D;a.T[b].$d=a.R;a.Ea(c,d,function(d){a.e(c+" response",d);delete a.T[b];a.Eb--;0===a.Eb&&(a.T=[]);e&&e(d.s,d.d)})} h.gc=function(a){if("r"in a){this.e("from server: "+u(a));var b=a.r,c=this.Lb[b];c&&(delete this.Lb[b],c(a.b))}else{if("error"in a)throw"A server-side error has occurred: "+a.error;"a"in a&&(b=a.a,c=a.b,this.e("handleServerMessage",b,c),"d"===b?this.hc(c.p,c.d,!1):"m"===b?this.hc(c.p,c.d,!0):"c"===b?Fd(this,c.p,c.q):"ac"===b?(a=c.s,b=c.d,c=this.Ka,delete this.Ka,c&&c.Ub&&c.Ub(a,b),this.Ab(!1)):"sd"===b?this.Vc?this.Vc(c):"msg"in c&&"undefined"!==typeof console&&console.log("FIREBASE: "+c.msg.replace("\n", "\nFIREBASE: ")):Ub("Unrecognized action received from server: "+u(b)+"\nAre you using the latest client?"))}};h.Cb=function(a){this.e("connection ready");this.R=!0;this.wb=(new Date).getTime();this.Qc({serverTimeOffset:a-(new Date).getTime()});wd(this);for(var b in this.ha)for(var c in this.ha[b])a=this.ha[b][c],ud(this,b,c,a.hb,a.D);for(b=0;b<this.T.length;b++)this.T[b]&&Ed(this,b);for(;this.Bb.length;)b=this.Bb.shift(),Ad(this,b.action,b.Sc,b.data,b.D);this.fc(!0)}; function rd(a,b){v(!a.ka,"Scheduling a connect when we're already connected/ing?");a.Za&&clearTimeout(a.Za);a.Za=setTimeout(function(){a.Za=null;Gd(a)},Math.floor(b))}h.Yd=function(a){a&&!this.lb&&this.sa===this.ac&&(this.e("Window became visible. Reducing delay."),this.sa=1E3,this.ka||rd(this,0));this.lb=a}; h.Xd=function(a){a?(this.e("Browser went online. Reconnecting."),this.sa=1E3,this.Sa=!0,this.ka||rd(this,0)):(this.e("Browser went offline. Killing connection; don't reconnect."),this.Sa=!1,this.ka&&this.ka.close())}; h.qd=function(){this.e("data client disconnected");this.R=!1;this.ka=null;for(var a=0;a<this.T.length;a++){var b=this.T[a];b&&"h"in b.ud&&b.$d&&(b.D&&b.D("disconnect"),delete this.T[a],this.Eb--)}0===this.Eb&&(this.T=[]);if(this.Sa)this.lb?this.wb&&(3E4<(new Date).getTime()-this.wb&&(this.sa=1E3),this.wb=null):(this.e("Window isn't visible. Delaying reconnect."),this.sa=this.ac,this.Lc=(new Date).getTime()),a=Math.max(0,this.sa-((new Date).getTime()-this.Lc)),a*=Math.random(),this.e("Trying to reconnect in "+ a+"ms"),rd(this,a),this.sa=Math.min(this.ac,1.3*this.sa);else for(var c in this.Lb)delete this.Lb[c];this.fc(!1)};function Gd(a){if(a.Sa){a.e("Making a connection attempt");a.Lc=(new Date).getTime();a.wb=null;var b=r(a.gc,a),c=r(a.Cb,a),d=r(a.qd,a),e=a.id+":"+sd++;a.ka=new dd(e,a.M,b,c,d,function(b){L(b+" ("+a.M.toString()+")");a.Sa=!1})}}h.La=function(){this.Sa=!1;this.ka?this.ka.close():(this.Za&&(clearTimeout(this.Za),this.Za=null),this.R&&this.qd())}; h.jb=function(){this.Sa=!0;this.sa=1E3;this.R||rd(this,0)};function Fd(a,b,c){c=c?Ab(c,function(a){return La(a)}).join("$"):"{}";(a=vd(a,b,c))&&a.D&&a.D("permission_denied")}function vd(a,b,c){b=(new F(b)).toString();c||(c="{}");var d=a.ha[b][c];delete a.ha[b][c];return d};function Hd(){this.n=this.F=null}function Id(a,b,c){if(b.f())a.F=c,a.n=null;else if(null!==a.F)a.F=a.F.ya(b,c);else{null==a.n&&(a.n=new Pc);var d=C(b);a.n.contains(d)||a.n.add(d,new Hd);a=a.n.get(d);b=Ma(b);Id(a,b,c)}}function Jd(a,b){if(b.f())return a.F=null,a.n=null,!0;if(null!==a.F){if(a.F.O())return!1;var c=a.F;a.F=null;c.A(function(b,c){Id(a,new F(b),c)});return Jd(a,b)}return null!==a.n?(c=C(b),b=Ma(b),a.n.contains(c)&&Jd(a.n.get(c),b)&&a.n.remove(c),a.n.f()?(a.n=null,!0):!1):!0} function Kd(a,b,c){null!==a.F?c(b,a.F):a.A(function(a,e){var f=new F(b.toString()+"/"+a);Kd(e,f,c)})}Hd.prototype.A=function(a){null!==this.n&&R(this.n,function(b,c){a(b,c)})};function Ld(){this.$=M}function S(a,b){return a.$.K(b)}function T(a,b,c){a.$=a.$.ya(b,c)}Ld.prototype.toString=function(){return this.$.toString()};function Md(){this.ta=new Ld;this.L=new Ld;this.oa=new Ld;this.Gb=new Qa}function Nd(a,b,c){T(a.ta,b,c);return Od(a,b)}function Od(a,b){for(var c=S(a.ta,b),d=S(a.L,b),e=I(a.Gb,b),f=!1,g=e;null!==g;){if(null!==g.j()){f=!0;break}g=g.parent()}if(f)return!1;c=Pd(c,d,e);return c!==d?(T(a.L,b,c),!0):!1}function Pd(a,b,c){if(c.f())return a;if(null!==c.j())return b;a=a||M;c.A(function(d){d=d.name();var e=a.N(d),f=b.N(d),g=I(c,d),e=Pd(e,f,g);a=a.H(d,e)});return a} Md.prototype.set=function(a,b){var c=this,d=[];zb(b,function(a){var b=a.path;a=a.ra;var g=Ob();J(I(c.Gb,b),g);T(c.L,b,a);d.push({path:b,ee:g})});return d};function Qd(a,b){zb(b,function(b){var d=b.ee;b=I(a.Gb,b.path);var e=b.j();v(null!==e,"pendingPut should not be null.");e===d&&J(b,null)})};function Rd(a,b){return a&&"object"===typeof a?(v(".sv"in a,"Unexpected leaf node or priority contents"),b[a[".sv"]]):a}function Sd(a,b){var c=new Hd;Kd(a,new F(""),function(a,e){Id(c,a,Td(e,b))});return c}function Td(a,b){var c=Rd(a.k(),b),d;if(a.O()){var e=Rd(a.j(),b);return e!==a.j()||c!==a.k()?new jc(e,c):a}d=a;c!==a.k()&&(d=d.Ga(c));a.A(function(a,c){var e=Td(c,b);e!==c&&(d=d.H(a,e))});return d};function Ud(){this.$a=[]}function Vd(a,b){if(0!==b.length)for(var c=0;c<b.length;c++)a.$a.push(b[c])}Ud.prototype.Jb=function(){for(var a=0;a<this.$a.length;a++)if(this.$a[a]){var b=this.$a[a];this.$a[a]=null;Wd(b)}this.$a=[]};function Wd(a){var b=a.aa,c=a.zd,d=a.Ib;ic(function(){b(c,d)})};function U(a,b,c,d){this.type=a;this.ua=b;this.ba=c;this.Ib=d};function Xd(a){this.Q=a;this.pa=[];this.Ec=new Ud}function Yd(a,b,c,d,e){a.pa.push({type:b,aa:c,cancel:d,Y:e});d=[];var f=Zd(a.i);a.ub&&f.push(new U("value",a.i));for(var g=0;g<f.length;g++)if(f[g].type===b){var k=new E(a.Q.m,a.Q.path);f[g].ba&&(k=k.G(f[g].ba));d.push({aa:dc(c,e),zd:new P(f[g].ua,k),Ib:f[g].Ib})}Vd(a.Ec,d)}Xd.prototype.lc=function(a,b){b=this.mc(a,b);null!=b&&$d(this,b)}; function $d(a,b){for(var c=[],d=0;d<b.length;d++){var e=b[d],f=e.type,g=new E(a.Q.m,a.Q.path);b[d].ba&&(g=g.G(b[d].ba));g=new P(b[d].ua,g);"value"!==e.type||g.tb()?"value"!==e.type&&(f+=" "+g.name()):f+="("+g.V()+")";K(a.Q.m.u.id+": event:"+a.Q.path+":"+a.Q.Qa()+":"+f);for(f=0;f<a.pa.length;f++){var k=a.pa[f];b[d].type===k.type&&c.push({aa:dc(k.aa,k.Y),zd:g,Ib:e.Ib})}}Vd(a.Ec,c)}Xd.prototype.Jb=function(){this.Ec.Jb()}; function Zd(a){var b=[];if(!a.O()){var c=null;a.A(function(a,e){b.push(new U("child_added",e,a,c));c=a})}return b}function ae(a){a.ub||(a.ub=!0,$d(a,[new U("value",a.i)]))};function be(a,b){Xd.call(this,a);this.i=b}ka(be,Xd);be.prototype.mc=function(a,b){this.i=a;this.ub&&null!=b&&b.push(new U("value",this.i));return b};be.prototype.rb=function(){return{}};function ce(a,b){this.Wb=a;this.Mc=b}function de(a,b,c,d,e){var f=a.K(c),g=b.K(c);d=new ce(d,e);e=ee(d,c,f,g);g=!f.f()&&!g.f()&&f.k()!==g.k();if(e||g)for(f=c,c=e;null!==f.parent();){var k=a.K(f);e=b.K(f);var l=f.parent();if(!d.Wb||I(d.Wb,l).j()){var m=b.K(l),p=[],f=Na(f);k.f()?(k=m.fa(f,e),p.push(new U("child_added",e,f,k))):e.f()?p.push(new U("child_removed",k,f)):(k=m.fa(f,e),g&&p.push(new U("child_moved",e,f,k)),c&&p.push(new U("child_changed",e,f,k)));d.Mc(l,m,p)}g&&(g=!1,c=!0);f=l}} function ee(a,b,c,d){var e,f=[];c===d?e=!1:c.O()&&d.O()?e=c.j()!==d.j():c.O()?(fe(a,b,M,d,f),e=!0):d.O()?(fe(a,b,c,M,f),e=!0):e=fe(a,b,c,d,f);e?a.Mc(b,d,f):c.k()!==d.k()&&a.Mc(b,d,null);return e} function fe(a,b,c,d,e){var f=!1,g=!a.Wb||!I(a.Wb,b).f(),k=[],l=[],m=[],p=[],t={},s={},w,V,G,H;w=c.ab();G=Za(w);V=d.ab();for(H=Za(V);null!==G||null!==H;){c=H;c=null===G?1:null===c?-1:G.key===c.key?0:lc({name:G.key,ja:G.value.k()},{name:c.key,ja:c.value.k()});if(0>c)f=wa(t,G.key),n(f)?(m.push({Gc:G,$c:k[f]}),k[f]=null):(s[G.key]=l.length,l.push(G)),f=!0,G=Za(w);else{if(0<c)f=wa(s,H.key),n(f)?(m.push({Gc:l[f],$c:H}),l[f]=null):(t[H.key]=k.length,k.push(H)),f=!0;else{c=b.G(H.key);if(c=ee(a,c,G.value, H.value))p.push(H),f=!0;G.value.k()!==H.value.k()&&(m.push({Gc:G,$c:H}),f=!0);G=Za(w)}H=Za(V)}if(!g&&f)return!0}for(g=0;g<l.length;g++)if(t=l[g])c=b.G(t.key),ee(a,c,t.value,M),e.push(new U("child_removed",t.value,t.key));for(g=0;g<k.length;g++)if(t=k[g])c=b.G(t.key),l=d.fa(t.key,t.value),ee(a,c,M,t.value),e.push(new U("child_added",t.value,t.key,l));for(g=0;g<m.length;g++)t=m[g].Gc,k=m[g].$c,c=b.G(k.key),l=d.fa(k.key,k.value),e.push(new U("child_moved",k.value,k.key,l)),(c=ee(a,c,t.value,k.value))&& p.push(k);for(g=0;g<p.length;g++)a=p[g],l=d.fa(a.key,a.value),e.push(new U("child_changed",a.value,a.key,l));return f};function ge(){this.X=this.xa=null;this.set={}}ka(ge,Pc);h=ge.prototype;h.setActive=function(a){this.xa=a};function he(a,b,c){a.add(b,c);a.X||(a.X=c.Q.path)}function ie(a){var b=a.xa;a.xa=null;return b}function je(a){return a.contains("default")}function ke(a){return null!=a.xa&&je(a)}h.defaultView=function(){return je(this)?this.get("default"):null};h.path=function(){return this.X};h.toString=function(){return Ab(this.keys(),function(a){return"default"===a?"{}":a}).join("$")}; h.hb=function(){var a=[];R(this,function(b,c){a.push(c.Q)});return a};function le(a,b){Xd.call(this,a);this.i=M;this.mc(b,Zd(b))}ka(le,Xd); le.prototype.mc=function(a,b){if(null===b)return b;var c=[],d=this.Q;n(d.da)&&(n(d.wa)&&null!=d.wa?c.push(function(a,b){var c=Xb(b,d.da);return 0<c||0===c&&0<=Yb(a,d.wa)}):c.push(function(a,b){return 0<=Xb(b,d.da)}));n(d.Aa)&&(n(d.Ya)?c.push(function(a,b){var c=Xb(b,d.Aa);return 0>c||0===c&&0>=Yb(a,d.Ya)}):c.push(function(a,b){return 0>=Xb(b,d.Aa)}));var e=null,f=null;if(n(this.Q.Ca))if(n(this.Q.da)){if(e=me(a,c,this.Q.Ca,!1)){var g=a.N(e).k();c.push(function(a,b){var c=Xb(b,g);return 0>c||0===c&& 0>=Yb(a,e)})}}else if(f=me(a,c,this.Q.Ca,!0)){var k=a.N(f).k();c.push(function(a,b){var c=Xb(b,k);return 0<c||0===c&&0<=Yb(a,f)})}for(var l=[],m=[],p=[],t=[],s=0;s<b.length;s++){var w=b[s].ba,V=b[s].ua;switch(b[s].type){case "child_added":ne(c,w,V)&&(this.i=this.i.H(w,V),m.push(b[s]));break;case "child_removed":this.i.N(w).f()||(this.i=this.i.H(w,null),l.push(b[s]));break;case "child_changed":!this.i.N(w).f()&&ne(c,w,V)&&(this.i=this.i.H(w,V),t.push(b[s]));break;case "child_moved":var G=!this.i.N(w).f(), H=ne(c,w,V);G?H?(this.i=this.i.H(w,V),p.push(b[s])):(l.push(new U("child_removed",this.i.N(w),w)),this.i=this.i.H(w,null)):H&&(this.i=this.i.H(w,V),m.push(b[s]))}}var Xc=e||f;if(Xc){var Yc=(s=null!==f)?this.i.jd():this.i.ld(),hc=!1,ab=!1,bb=this;(s?a.Fc:a.A).call(a,function(a,b){ab||null!==Yc||(ab=!0);if(ab&&hc)return!0;hc?(l.push(new U("child_removed",bb.i.N(a),a)),bb.i=bb.i.H(a,null)):ab&&(m.push(new U("child_added",b,a)),bb.i=bb.i.H(a,b));Yc===a&&(ab=!0);a===Xc&&(hc=!0)})}for(s=0;s<m.length;s++)c= m[s],w=this.i.fa(c.ba,c.ua),l.push(new U("child_added",c.ua,c.ba,w));for(s=0;s<p.length;s++)c=p[s],w=this.i.fa(c.ba,c.ua),l.push(new U("child_moved",c.ua,c.ba,w));for(s=0;s<t.length;s++)c=t[s],w=this.i.fa(c.ba,c.ua),l.push(new U("child_changed",c.ua,c.ba,w));this.ub&&0<l.length&&l.push(new U("value",this.i));return l};function me(a,b,c,d){if(a.O())return null;var e=null;(d?a.Fc:a.A).call(a,function(a,d){if(ne(b,a,d)&&(e=a,c--,0===c))return!0});return e} function ne(a,b,c){for(var d=0;d<a.length;d++)if(!a[d](b,c.k()))return!1;return!0}le.prototype.Ic=function(a){return this.i.N(a)!==M}; le.prototype.rb=function(a,b,c){var d={};this.i.O()||this.i.A(function(a){d[a]=3});var e=this.i;c=S(c,new F(""));var f=new Qa;J(I(f,this.Q.path),!0);b=M.ya(a,b);var g=this;de(c,b,a,f,function(a,b,c){null!==c&&a.toString()===g.Q.path.toString()&&g.mc(b,c)});this.i.O()?cc(d,function(a,b){d[b]=2}):(this.i.A(function(a){A(d,a)||(d[a]=1)}),cc(d,function(a,b){g.i.N(b).f()&&(d[b]=2)}));this.i=e;return d};function oe(a,b){this.u=a;this.g=b;this.ec=b.$;this.na=new Qa}oe.prototype.Sb=function(a,b,c,d,e){var f=a.path,g=I(this.na,f),k=g.j();null===k?(k=new ge,J(g,k)):v(!k.f(),"We shouldn't be storing empty QueryMaps");var l=a.Qa();if(k.contains(l))a=k.get(l),Yd(a,b,c,d,e);else{var m=this.g.$.K(f);a=pe(a,m);qe(this,g,k,l,a);Yd(a,b,c,d,e);(b=(b=Ta(I(this.na,f),function(a){var b;if(b=a.j()&&a.j().defaultView())b=a.j().defaultView().ub;if(b)return!0},!0))||null===this.u&&!S(this.g,f).f())&&ae(a)}a.Jb()}; function re(a,b,c,d,e){var f=a.get(b),g;if(g=f){g=!1;for(var k=f.pa.length-1;0<=k;k--){var l=f.pa[k];if(!(c&&l.type!==c||d&&l.aa!==d||e&&l.Y!==e)&&(f.pa.splice(k,1),g=!0,c&&d))break}}(c=g&&!(0<f.pa.length))&&a.remove(b);return c}function se(a,b,c,d,e){b=b?b.Qa():null;var f=[];b&&"default"!==b?re(a,b,c,d,e)&&f.push(b):zb(a.keys(),function(b){re(a,b,c,d,e)&&f.push(b)});return f}oe.prototype.oc=function(a,b,c,d){var e=I(this.na,a.path).j();return null===e?null:te(this,e,a,b,c,d)}; function te(a,b,c,d,e,f){var g=b.path(),g=I(a.na,g);c=se(b,c,d,e,f);b.f()&&J(g,null);d=ue(g);if(0<c.length&&!d){d=g;e=g.parent();for(c=!1;!c&&e;){if(f=e.j()){v(!ke(f));var k=d.name(),l=!1;R(f,function(a,b){l=b.Ic(k)||l});l&&(c=!0)}d=e;e=e.parent()}d=null;ke(b)||(b=ie(b),d=ve(a,g),b&&b());return c?null:d}return null}function we(a,b,c){Sa(I(a.na,b),function(a){(a=a.j())&&R(a,function(a,b){ae(b)})},c,!0)} function W(a,b,c){function d(a){do{if(g[a.toString()])return!0;a=a.parent()}while(null!==a);return!1}var e=a.ec,f=a.g.$;a.ec=f;for(var g={},k=0;k<c.length;k++)g[c[k].toString()]=!0;de(e,f,b,a.na,function(c,e,f){if(b.contains(c)){var g=d(c);g&&we(a,c,!1);a.lc(c,e,f);g&&we(a,c,!0)}else a.lc(c,e,f)});d(b)&&we(a,b,!0);xe(a,b)}function xe(a,b){var c=I(a.na,b);Sa(c,function(a){(a=a.j())&&R(a,function(a,b){b.Jb()})},!0,!0);Ta(c,function(a){(a=a.j())&&R(a,function(a,b){b.Jb()})},!1)} oe.prototype.lc=function(a,b,c){a=I(this.na,a).j();null!==a&&R(a,function(a,e){e.lc(b,c)})};function ue(a){return Ta(a,function(a){return a.j()&&ke(a.j())})}function qe(a,b,c,d,e){if(ke(c)||ue(b))he(c,d,e);else{var f,g;c.f()||(f=c.toString(),g=c.hb());he(c,d,e);c.setActive(ye(a,c));f&&g&&xd(a.u,c.path(),f,g)}ke(c)&&Sa(b,function(a){if(a=a.j())a.xa&&a.xa(),a.xa=null})} function ve(a,b){function c(b){var f=b.j();if(f&&je(f))d.push(f.path()),null==f.xa&&f.setActive(ye(a,f));else{if(f){null!=f.xa||f.setActive(ye(a,f));var g={};R(f,function(a,b){b.i.A(function(a){A(g,a)||(g[a]=!0,a=f.path().G(a),d.push(a))})})}b.A(c)}}var d=[];c(b);return d} function ye(a,b){if(a.u){var c=a.u,d=b.path(),e=b.toString(),f=b.hb(),g,k=b.keys(),l=je(b);td(a.u,b,function(c){"ok"!==c?(c=fc(c),L("on() or once() for "+b.path().toString()+" failed: "+c.toString()),ze(a,b,c)):g||(l?we(a,b.path(),!0):zb(k,function(a){(a=b.get(a))&&ae(a)}),xe(a,b.path()))});return function(){g=!0;xd(c,d,e,f)}}return ba}function ze(a,b,c){b&&(R(b,function(a,b){for(var f=0;f<b.pa.length;f++){var g=b.pa[f];g.cancel&&dc(g.cancel,g.Y)(c)}}),te(a,b))} function pe(a,b){return"default"===a.Qa()?new be(a,b):new le(a,b)}oe.prototype.rb=function(a,b,c,d){function e(a){cc(a,function(a,b){f[b]=3===a?3:(wa(f,b)||a)===a?a:3})}var f={};R(b,function(b,f){e(f.rb(a,c,d))});c.O()||c.A(function(a){A(f,a)||(f[a]=4)});return f};function Ae(a,b,c,d,e){var f=b.path();b=a.rb(f,b,d,e);var g=M,k=[];cc(b,function(b,m){var p=new F(m);3===b||1===b?g=g.H(m,d.K(p)):(2===b&&k.push({path:f.G(m),ra:M}),k=k.concat(Be(a,d.K(p),I(c,p),e)))});return[{path:f,ra:g}].concat(k)} function Ce(a,b,c,d){var e;a:{var f=I(a.na,b);e=f.parent();for(var g=[];null!==e;){var k=e.j();if(null!==k){if(je(k)){e=[{path:b,ra:c}];break a}k=a.rb(b,k,c,d);f=wa(k,f.name());if(3===f||1===f){e=[{path:b,ra:c}];break a}2===f&&g.push({path:b,ra:M})}f=e;e=e.parent()}e=g}if(1==e.length&&(!e[0].ra.f()||c.f()))return e;g=I(a.na,b);f=g.j();null!==f?je(f)?e.push({path:b,ra:c}):e=e.concat(Ae(a,f,g,c,d)):e=e.concat(Be(a,c,g,d));return e} function Be(a,b,c,d){var e=c.j();if(null!==e)return je(e)?[{path:c.path(),ra:b}]:Ae(a,e,c,b,d);var f=[];c.A(function(c){var e=b.O()?M:b.N(c.name());c=Be(a,e,c,d);f=f.concat(c)});return f};function De(a){this.M=a;this.ea=Gc(a);this.u=new pd(this.M,r(this.hc,this),r(this.fc,this),r(this.Ab,this),r(this.Qc,this),r(this.Hc,this));this.Bd=Hc(a,r(function(){return new Dc(this.ea,this.u)},this));this.Ta=new Qa;this.Fa=new Ld;this.g=new Md;this.I=new oe(this.u,this.g.oa);this.Jc=new Ld;this.Kc=new oe(null,this.Jc);Ee(this,"connected",!1);Ee(this,"authenticated",!1);this.S=new Hd;this.Vb=0}h=De.prototype;h.toString=function(){return(this.M.qc?"https://":"http://")+this.M.host};h.name=function(){return this.M.bc}; function Fe(a){a=S(a.Jc,new F(".info/serverTimeOffset")).V()||0;return(new Date).getTime()+a}function Ge(a){a=a={timestamp:Fe(a)};a.timestamp=a.timestamp||(new Date).getTime();return a} h.hc=function(a,b,c){this.Vb++;this.nd&&(b=this.nd(a,b));var d,e,f=[];9<=a.length&&a.lastIndexOf(".priority")===a.length-9?(d=new F(a.substring(0,a.length-9)),e=S(this.g.ta,d).Ga(b),f.push(d)):c?(d=new F(a),e=S(this.g.ta,d),cc(b,function(a,b){var c=new F(b);".priority"===b?e=e.Ga(a):(e=e.ya(c,O(a)),f.push(d.G(b)))})):(d=new F(a),e=O(b),f.push(d));a=Ce(this.I,d,e,this.g.L);b=!1;for(c=0;c<a.length;++c){var g=a[c];b=Nd(this.g,g.path,g.ra)||b}b&&(d=He(this,d));W(this.I,d,f)}; h.fc=function(a){Ee(this,"connected",a);!1===a&&Ie(this)};h.Qc=function(a){var b=this;bc(a,function(a,d){Ee(b,d,a)})};h.Hc=function(a){a=new F(a);return S(this.g.ta,a).hash()};h.Ab=function(a){Ee(this,"authenticated",a)};function Ee(a,b,c){b=new F("/.info/"+b);T(a.Jc,b,O(c));W(a.Kc,b,[b])} h.mb=function(a,b,c){"firebaseio-demo.com"===this.M.domain&&L("FirebaseRef.auth() not supported on demo (*.firebaseio-demo.com) Firebases. Please use on production (*.firebaseio.com) Firebases only.");this.u.mb(a,function(a,c){X(b,a,c)},function(a,b){L("auth() was canceled: "+b);if(c){var f=Error(b);f.code=a.toUpperCase();c(f)}})};h.Qb=function(a){this.u.Qb(function(b,c){X(a,b,c)})}; h.kb=function(a,b,c,d){this.e("set",{path:a.toString(),value:b,ja:c});var e=Ge(this);b=O(b,c);var e=Td(b,e),e=Ce(this.I,a,e,this.g.L),f=this.g.set(a,e),g=this;this.u.put(a.toString(),b.V(!0),function(b,c){"ok"!==b&&L("set at "+a+" failed: "+b);Qd(g.g,f);Od(g.g,a);var e=He(g,a);W(g.I,e,[]);X(d,b,c)});e=Je(this,a);He(this,e);W(this.I,e,[a])}; h.update=function(a,b,c){this.e("update",{path:a.toString(),value:b});var d=S(this.g.oa,a),e=!0,f=[],g=Ge(this),k=[],l;for(l in b){var e=!1,m=O(b[l]),m=Td(m,g),d=d.H(l,m),p=a.G(l);f.push(p);m=Ce(this.I,p,m,this.g.L);k=k.concat(this.g.set(a,m))}if(e)K("update() called with empty data. Don't do anything."),X(c,"ok");else{var t=this;Dd(this.u,a.toString(),b,function(b,d){"ok"!==b&&L("update at "+a+" failed: "+b);Qd(t.g,k);Od(t.g,a);var e=He(t,a);W(t.I,e,[]);X(c,b,d)});b=Je(this,a);He(this,b);W(t.I, b,f)}};h.Wc=function(a,b,c){this.e("setPriority",{path:a.toString(),ja:b});var d=Ge(this),d=Rd(b,d),d=S(this.g.L,a).Ga(d),d=Ce(this.I,a,d,this.g.L),e=this.g.set(a,d),f=this;this.u.put(a.toString()+"/.priority",b,function(b,d){"permission_denied"===b&&L("setPriority at "+a+" failed: "+b);Qd(f.g,e);Od(f.g,a);var l=He(f,a);W(f.I,l,[]);X(c,b,d)});b=He(this,a);W(f.I,b,[])}; function Ie(a){a.e("onDisconnectEvents");var b=[],c=Ge(a);Kd(Sd(a.S,c),new F(""),function(c,e){var f=Ce(a.I,c,e,a.g.L);b.push.apply(b,a.g.set(c,f));f=Je(a,c);He(a,f);W(a.I,f,[c])});Qd(a.g,b);a.S=new Hd}h.Nc=function(a,b){var c=this;this.u.Nc(a.toString(),function(d,e){"ok"===d&&Jd(c.S,a);X(b,d,e)})};function Ke(a,b,c,d){var e=O(c);zd(a.u,b.toString(),e.V(!0),function(c,g){"ok"===c&&Id(a.S,b,e);X(d,c,g)})} function Le(a,b,c,d,e){var f=O(c,d);zd(a.u,b.toString(),f.V(!0),function(c,d){"ok"===c&&Id(a.S,b,f);X(e,c,d)})}function Me(a,b,c,d){var e=!0,f;for(f in c)e=!1;e?(K("onDisconnect().update() called with empty data. Don't do anything."),X(d,"ok")):Bd(a.u,b.toString(),c,function(e,f){if("ok"===e)for(var l in c){var m=O(c[l]);Id(a.S,b.G(l),m)}X(d,e,f)})}function Ne(a){Bc(a.ea,"deprecated_on_disconnect");a.Bd.Zc.deprecated_on_disconnect=!0} h.Sb=function(a,b,c,d,e){".info"===C(a.path)?this.Kc.Sb(a,b,c,d,e):this.I.Sb(a,b,c,d,e)};h.oc=function(a,b,c,d){if(".info"===C(a.path))this.Kc.oc(a,b,c,d);else{b=this.I.oc(a,b,c,d);if(c=null!==b){c=this.g;d=a.path;for(var e=[],f=0;f<b.length;++f)e[f]=S(c.ta,b[f]);T(c.ta,d,M);for(f=0;f<b.length;++f)T(c.ta,b[f],e[f]);c=Od(c,d)}c&&(v(this.g.oa.$===this.I.ec,"We should have raised any outstanding events by now. Else, we'll blow them away."),T(this.g.oa,a.path,S(this.g.L,a.path)),this.I.ec=this.g.oa.$)}}; h.La=function(){this.u.La()};h.jb=function(){this.u.jb()};h.Xc=function(a){if("undefined"!==typeof console){a?(this.tc||(this.tc=new Cc(this.ea)),a=this.tc.get()):a=this.ea.get();var b=Bb(yc(a),function(a,b){return Math.max(b.length,a)},0),c;for(c in a){for(var d=a[c],e=c.length;e<b+2;e++)c+=" ";console.log(c+d)}}};h.Yc=function(a){Bc(this.ea,a);this.Bd.Zc[a]=!0};h.e=function(){K("r:"+this.u.id+":",arguments)}; function X(a,b,c){a&&ic(function(){if("ok"==b)a(null,c);else{var d=(b||"error").toUpperCase(),e=d;c&&(e+=": "+c);e=Error(e);e.code=d;a(e)}})};function Oe(a,b,c,d,e){function f(){}a.e("transaction on "+b);var g=new E(a,b);g.fb("value",f);c={path:b,update:c,D:d,status:null,rd:Ob(),yc:e,wd:0,vc:function(){g.zb("value",f)},wc:null};a.Fa.$=Pe(a,a.Fa.$,a.g.L.$,a.Ta);d=c.update(S(a.Fa,b).V());if(n(d)){Ba("transaction failed: Data returned ",d);c.status=1;e=I(a.Ta,b);var k=e.j()||[];k.push(c);J(e,k);k="object"===typeof d&&null!==d&&A(d,".priority")?d[".priority"]:S(a.g.L,b).k();e=Ge(a);d=O(d,k);d=Td(d,e);T(a.Fa,b,d);c.yc&&(T(a.g.oa,b,d),W(a.I, b,[b]));Qe(a)}else c.vc(),c.D&&(a=Re(a,b),c.D(null,!1,a))}function Qe(a,b){var c=b||a.Ta;b||Se(a,c);if(null!==c.j()){var d=Te(a,c);v(0<d.length);Cb(d,function(a){return 1===a.status})&&Ue(a,c.path(),d)}else c.tb()&&c.A(function(b){Qe(a,b)})} function Ue(a,b,c){for(var d=0;d<c.length;d++)v(1===c[d].status,"tryToSendTransactionQueue_: items in queue should all be run."),c[d].status=2,c[d].wd++;var e=S(a.g.L,b).hash();T(a.g.L,b,S(a.g.oa,b));for(var f=S(a.Fa,b).V(!0),g=Ob(),k=Ve(c),d=0;d<k.length;d++)J(I(a.g.Gb,k[d]),g);a.u.put(b.toString(),f,function(e){a.e("transaction put response",{path:b.toString(),status:e});for(d=0;d<k.length;d++){var f=I(a.g.Gb,k[d]),p=f.j();v(null!==p,"sendTransactionQueue_: pendingPut should not be null.");p=== g&&(J(f,null),T(a.g.L,k[d],S(a.g.ta,k[d])))}if("ok"===e){e=[];for(d=0;d<c.length;d++)c[d].status=3,c[d].D&&(f=Re(a,c[d].path),e.push(r(c[d].D,null,null,!0,f))),c[d].vc();Se(a,I(a.Ta,b));Qe(a);for(d=0;d<e.length;d++)ic(e[d])}else{if("datastale"===e)for(d=0;d<c.length;d++)c[d].status=4===c[d].status?5:1;else for(L("transaction at "+b+" failed: "+e),d=0;d<c.length;d++)c[d].status=5,c[d].wc=e;e=He(a,b);W(a.I,e,[b])}},e)} function Ve(a){for(var b={},c=0;c<a.length;c++)a[c].yc&&(b[a[c].path.toString()]=a[c].path);a=[];for(var d in b)a.push(b[d]);return a} function He(a,b){var c=We(a,b),d=c.path(),c=Te(a,c);T(a.g.oa,d,S(a.g.L,d));T(a.Fa,d,S(a.g.L,d));if(0!==c.length){for(var e=S(a.g.oa,d),f=e,g=[],k=0;k<c.length;k++){var l=Oa(d,c[k].path),m=!1,p;v(null!==l,"rerunTransactionsUnderNode_: relativePath should not be null.");if(5===c[k].status)m=!0,p=c[k].wc;else if(1===c[k].status)if(25<=c[k].wd)m=!0,p="maxretry";else{var t=e.K(l),s=c[k].update(t.V());if(n(s)){Ba("transaction failed: Data returned ",s);var w=O(s);"object"===typeof s&&null!=s&&A(s,".priority")|| (w=w.Ga(t.k()));e=e.ya(l,w);c[k].yc&&(f=f.ya(l,w))}else m=!0,p="nodata"}m&&(c[k].status=3,setTimeout(c[k].vc,Math.floor(0)),c[k].D&&(m=new E(a,c[k].path),l=new P(e.K(l),m),"nodata"===p?g.push(r(c[k].D,null,null,!1,l)):g.push(r(c[k].D,null,Error(p),!1,l))))}T(a.Fa,d,e);T(a.g.oa,d,f);Se(a,a.Ta);for(k=0;k<g.length;k++)ic(g[k]);Qe(a)}return d}function We(a,b){for(var c,d=a.Ta;null!==(c=C(b))&&null===d.j();)d=I(d,c),b=Ma(b);return d} function Te(a,b){var c=[];Xe(a,b,c);c.sort(function(a,b){return a.rd-b.rd});return c}function Xe(a,b,c){var d=b.j();if(null!==d)for(var e=0;e<d.length;e++)c.push(d[e]);b.A(function(b){Xe(a,b,c)})}function Se(a,b){var c=b.j();if(c){for(var d=0,e=0;e<c.length;e++)3!==c[e].status&&(c[d]=c[e],d++);c.length=d;J(b,0<c.length?c:null)}b.A(function(b){Se(a,b)})}function Je(a,b){var c=We(a,b).path(),d=I(a.Ta,b);Ta(d,function(a){Ye(a)});Ye(d);Sa(d,function(a){Ye(a)});return c} function Ye(a){var b=a.j();if(null!==b){for(var c=[],d=-1,e=0;e<b.length;e++)4!==b[e].status&&(2===b[e].status?(v(d===e-1,"All SENT items should be at beginning of queue."),d=e,b[e].status=4,b[e].wc="set"):(v(1===b[e].status),b[e].vc(),b[e].D&&c.push(r(b[e].D,null,Error("set"),!1,null))));-1===d?J(a,null):b.length=d+1;for(e=0;e<c.length;e++)ic(c[e])}}function Re(a,b){var c=new E(a,b);return new P(S(a.Fa,b),c)} function Pe(a,b,c,d){if(d.f())return c;if(null!=d.j())return b;var e=c;d.A(function(d){var g=d.name(),k=new F(g);d=Pe(a,b.K(k),c.K(k),d);e=e.H(g,d)});return e};function Y(){this.ib={}}ca(Y);Y.prototype.La=function(){for(var a in this.ib)this.ib[a].La()};Y.prototype.interrupt=Y.prototype.La;Y.prototype.jb=function(){for(var a in this.ib)this.ib[a].jb()};Y.prototype.resume=Y.prototype.jb;var Z={Qd:function(a){var b=N.prototype.hash;N.prototype.hash=a;var c=jc.prototype.hash;jc.prototype.hash=a;return function(){N.prototype.hash=b;jc.prototype.hash=c}}};Z.hijackHash=Z.Qd;Z.Qa=function(a){return a.Qa()};Z.queryIdentifier=Z.Qa;Z.Td=function(a){return a.m.u.ha};Z.listens=Z.Td;Z.ae=function(a){return a.m.u.ka};Z.refConnection=Z.ae;Z.Ed=pd;Z.DataConnection=Z.Ed;pd.prototype.sendRequest=pd.prototype.Ea;pd.prototype.interrupt=pd.prototype.La;Z.Fd=dd;Z.RealTimeConnection=Z.Fd; dd.prototype.sendRequest=dd.prototype.yd;dd.prototype.close=dd.prototype.close;Z.Dd=pb;Z.ConnectionTarget=Z.Dd;Z.Nd=function(){Rc=Jc=!0};Z.forceLongPolling=Z.Nd;Z.Od=function(){Sc=!0};Z.forceWebSockets=Z.Od;Z.ge=function(a,b){a.m.u.Vc=b};Z.setSecurityDebugCallback=Z.ge;Z.Xc=function(a,b){a.m.Xc(b)};Z.stats=Z.Xc;Z.Yc=function(a,b){a.m.Yc(b)};Z.statsIncrementCounter=Z.Yc;Z.Vb=function(a){return a.m.Vb};Z.dataUpdateCount=Z.Vb;Z.Rd=function(a,b){a.m.nd=b};Z.interceptServerData=Z.Rd;function $(a,b,c){this.Kb=a;this.X=b;this.Da=c}$.prototype.cancel=function(a){x("Firebase.onDisconnect().cancel",0,1,arguments.length);z("Firebase.onDisconnect().cancel",1,a,!0);this.Kb.Nc(this.X,a)};$.prototype.cancel=$.prototype.cancel;$.prototype.remove=function(a){x("Firebase.onDisconnect().remove",0,1,arguments.length);B("Firebase.onDisconnect().remove",this.X);z("Firebase.onDisconnect().remove",1,a,!0);Ke(this.Kb,this.X,null,a)};$.prototype.remove=$.prototype.remove; $.prototype.set=function(a,b){x("Firebase.onDisconnect().set",1,2,arguments.length);B("Firebase.onDisconnect().set",this.X);Aa("Firebase.onDisconnect().set",a,!1);z("Firebase.onDisconnect().set",2,b,!0);Ke(this.Kb,this.X,a,b)};$.prototype.set=$.prototype.set; $.prototype.kb=function(a,b,c){x("Firebase.onDisconnect().setWithPriority",2,3,arguments.length);B("Firebase.onDisconnect().setWithPriority",this.X);Aa("Firebase.onDisconnect().setWithPriority",a,!1);Fa("Firebase.onDisconnect().setWithPriority",2,b,!1);z("Firebase.onDisconnect().setWithPriority",3,c,!0);if(".length"===this.Da||".keys"===this.Da)throw"Firebase.onDisconnect().setWithPriority failed: "+this.Da+" is a read-only object.";Le(this.Kb,this.X,a,b,c)};$.prototype.setWithPriority=$.prototype.kb; $.prototype.update=function(a,b){x("Firebase.onDisconnect().update",1,2,arguments.length);B("Firebase.onDisconnect().update",this.X);if(ea(a)){for(var c={},d=0;d<a.length;++d)c[""+d]=a[d];a=c;L("Passing an Array to Firebase.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}Ea("Firebase.onDisconnect().update",a);z("Firebase.onDisconnect().update",2,b,!0);Me(this.Kb, this.X,a,b)};$.prototype.update=$.prototype.update;var Ze=function(){var a=0,b=[];return function(c){var d=c===a;a=c;for(var e=Array(8),f=7;0<=f;f--)e[f]="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".charAt(c%64),c=Math.floor(c/64);v(0===c,"Cannot push at time == 0");c=e.join("");if(d){for(f=11;0<=f&&63===b[f];f--)b[f]=0;b[f]++}else for(f=0;12>f;f++)b[f]=Math.floor(64*Math.random());for(f=0;12>f;f++)c+="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".charAt(b[f]);v(20===c.length,"NextPushId: Length should be 20."); return c}}();function E(a,b){var c,d;if(a instanceof De)c=a,d=b;else{x("new Firebase",1,2,arguments.length);var e=arguments[0];d=c="";var f=!0,g="";if(q(e)){var k=e.indexOf("//");if(0<=k)var l=e.substring(0,k-1),e=e.substring(k+2);k=e.indexOf("/");-1===k&&(k=e.length);c=e.substring(0,k);var e=e.substring(k+1),m=c.split(".");if(3==m.length){k=m[2].indexOf(":");f=0<=k?"https"===l||"wss"===l:!0;if("firebase"===m[1])Vb(c+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead");else for(d=m[0], g="",e=("/"+e).split("/"),k=0;k<e.length;k++)if(0<e[k].length){m=e[k];try{m=decodeURIComponent(m.replace(/\+/g," "))}catch(p){}g+="/"+m}d=d.toLowerCase()}else Vb("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com")}f||"undefined"!==typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&L("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().");c=new pb(c,f,d,"ws"===l||"wss"===l);d=new F(g); f=d.toString();!(l=!q(c.host)||0===c.host.length||!za(c.bc))&&(l=0!==f.length)&&(f&&(f=f.replace(/^\/*\.info(\/|$)/,"/")),l=!(q(f)&&0!==f.length&&!ya.test(f)));if(l)throw Error(y("new Firebase",1,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".');if(b)if(b instanceof Y)f=b;else throw Error("Expected a valid Firebase.Context for second argument to new Firebase()");else f=Y.sb();l=c.toString();e=wa(f.ib,l);e||(e=new De(c),f.ib[l]=e);c=e}D.call(this,c,d)} ka(E,D);var $e=E,af=["Firebase"],bf=aa;af[0]in bf||!bf.execScript||bf.execScript("var "+af[0]);for(var cf;af.length&&(cf=af.shift());)!af.length&&n($e)?bf[cf]=$e:bf=bf[cf]?bf[cf]:bf[cf]={};E.prototype.name=function(){x("Firebase.name",0,0,arguments.length);return this.path.f()?null:Na(this.path)};E.prototype.name=E.prototype.name; E.prototype.G=function(a){x("Firebase.child",1,1,arguments.length);if(ga(a))a=String(a);else if(!(a instanceof F))if(null===C(this.path)){var b=a;b&&(b=b.replace(/^\/*\.info(\/|$)/,"/"));Ia("Firebase.child",b)}else Ia("Firebase.child",a);return new E(this.m,this.path.G(a))};E.prototype.child=E.prototype.G;E.prototype.parent=function(){x("Firebase.parent",0,0,arguments.length);var a=this.path.parent();return null===a?null:new E(this.m,a)};E.prototype.parent=E.prototype.parent; E.prototype.root=function(){x("Firebase.ref",0,0,arguments.length);for(var a=this;null!==a.parent();)a=a.parent();return a};E.prototype.root=E.prototype.root;E.prototype.toString=function(){x("Firebase.toString",0,0,arguments.length);var a;if(null===this.parent())a=this.m.toString();else{a=this.parent().toString()+"/";var b=this.name();a+=encodeURIComponent(String(b))}return a};E.prototype.toString=E.prototype.toString; E.prototype.set=function(a,b){x("Firebase.set",1,2,arguments.length);B("Firebase.set",this.path);Aa("Firebase.set",a,!1);z("Firebase.set",2,b,!0);this.m.kb(this.path,a,null,b)};E.prototype.set=E.prototype.set; E.prototype.update=function(a,b){x("Firebase.update",1,2,arguments.length);B("Firebase.update",this.path);if(ea(a)){for(var c={},d=0;d<a.length;++d)c[""+d]=a[d];a=c;L("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}Ea("Firebase.update",a);z("Firebase.update",2,b,!0);if(A(a,".priority"))throw Error("update() does not currently support updating .priority."); this.m.update(this.path,a,b)};E.prototype.update=E.prototype.update;E.prototype.kb=function(a,b,c){x("Firebase.setWithPriority",2,3,arguments.length);B("Firebase.setWithPriority",this.path);Aa("Firebase.setWithPriority",a,!1);Fa("Firebase.setWithPriority",2,b,!1);z("Firebase.setWithPriority",3,c,!0);if(".length"===this.name()||".keys"===this.name())throw"Firebase.setWithPriority failed: "+this.name()+" is a read-only object.";this.m.kb(this.path,a,b,c)};E.prototype.setWithPriority=E.prototype.kb; E.prototype.remove=function(a){x("Firebase.remove",0,1,arguments.length);B("Firebase.remove",this.path);z("Firebase.remove",1,a,!0);this.set(null,a)};E.prototype.remove=E.prototype.remove; E.prototype.transaction=function(a,b,c){x("Firebase.transaction",1,3,arguments.length);B("Firebase.transaction",this.path);z("Firebase.transaction",1,a,!1);z("Firebase.transaction",2,b,!0);if(n(c)&&"boolean"!=typeof c)throw Error(y("Firebase.transaction",3,!0)+"must be a boolean.");if(".length"===this.name()||".keys"===this.name())throw"Firebase.transaction failed: "+this.name()+" is a read-only object.";"undefined"===typeof c&&(c=!0);Oe(this.m,this.path,a,b,c)};E.prototype.transaction=E.prototype.transaction; E.prototype.Wc=function(a,b){x("Firebase.setPriority",1,2,arguments.length);B("Firebase.setPriority",this.path);Fa("Firebase.setPriority",1,a,!1);z("Firebase.setPriority",2,b,!0);this.m.Wc(this.path,a,b)};E.prototype.setPriority=E.prototype.Wc;E.prototype.push=function(a,b){x("Firebase.push",0,2,arguments.length);B("Firebase.push",this.path);Aa("Firebase.push",a,!0);z("Firebase.push",2,b,!0);var c=Fe(this.m),c=Ze(c),c=this.G(c);"undefined"!==typeof a&&null!==a&&c.set(a,b);return c}; E.prototype.push=E.prototype.push;E.prototype.ia=function(){return new $(this.m,this.path,this.name())};E.prototype.onDisconnect=E.prototype.ia;E.prototype.be=function(){L("FirebaseRef.removeOnDisconnect() being deprecated. Please use FirebaseRef.onDisconnect().remove() instead.");this.ia().remove();Ne(this.m)};E.prototype.removeOnDisconnect=E.prototype.be; E.prototype.fe=function(a){L("FirebaseRef.setOnDisconnect(value) being deprecated. Please use FirebaseRef.onDisconnect().set(value) instead.");this.ia().set(a);Ne(this.m)};E.prototype.setOnDisconnect=E.prototype.fe;E.prototype.mb=function(a,b,c){x("Firebase.auth",1,3,arguments.length);if(!q(a))throw Error(y("Firebase.auth",1,!1)+"must be a valid credential (a string).");z("Firebase.auth",2,b,!0);z("Firebase.auth",3,b,!0);this.m.mb(a,b,c)};E.prototype.auth=E.prototype.mb; E.prototype.Qb=function(a){x("Firebase.unauth",0,1,arguments.length);z("Firebase.unauth",1,a,!0);this.m.Qb(a)};E.prototype.unauth=E.prototype.Qb;E.goOffline=function(){x("Firebase.goOffline",0,0,arguments.length);Y.sb().La()};E.goOnline=function(){x("Firebase.goOnline",0,0,arguments.length);Y.sb().jb()}; function Sb(a,b){v(!b||!0===a||!1===a,"Can't turn on custom loggers persistently.");!0===a?("undefined"!==typeof console&&("function"===typeof console.log?Qb=r(console.log,console):"object"===typeof console.log&&(Qb=function(a){console.log(a)})),b&&ob.set("logging_enabled",!0)):a?Qb=a:(Qb=null,ob.remove("logging_enabled"))}E.enableLogging=Sb;E.ServerValue={TIMESTAMP:{".sv":"timestamp"}};E.SDK_VERSION="1.0.21";E.INTERNAL=Z;E.Context=Y;})();
midhunsudhakar/test
demo/bower_components/firebase/firebase.js
JavaScript
mit
81,503
/*- * BSD LICENSE * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include <string.h> #include <stdio.h> #include <stdint.h> #include <sys/types.h> #include <syslog.h> #include <sys/queue.h> #include <rte_memory.h> #include <rte_memzone.h> #include <rte_tailq.h> #include <rte_eal.h> #include <rte_launch.h> #include <rte_per_lcore.h> #include <rte_lcore.h> #include <rte_spinlock.h> #include <rte_log.h> #include "eal_private.h" /* * default log function, used once mempool (hence log history) is * available */ static ssize_t console_log_write(__attribute__((unused)) void *c, const char *buf, size_t size) { char copybuf[BUFSIZ + 1]; ssize_t ret; uint32_t loglevel; /* add this log in history */ rte_log_add_in_history(buf, size); /* write on stdout */ ret = fwrite(buf, 1, size, stdout); fflush(stdout); /* truncate message if too big (should not happen) */ if (size > BUFSIZ) size = BUFSIZ; /* Syslog error levels are from 0 to 7, so subtract 1 to convert */ loglevel = rte_log_cur_msg_loglevel() - 1; memcpy(copybuf, buf, size); copybuf[size] = '\0'; /* write on syslog too */ syslog(loglevel, "%s", copybuf); return ret; } static ssize_t console_log_read(__attribute__((unused)) void *c, __attribute__((unused)) char *buf, __attribute__((unused)) size_t size) { return 0; } static int console_log_seek(__attribute__((unused)) void *c, __attribute__((unused)) off64_t *offset, __attribute__((unused)) int whence) { return -1; } static int console_log_close(__attribute__((unused)) void *c) { return 0; } static cookie_io_functions_t console_log_func = { .read = console_log_read, .write = console_log_write, .seek = console_log_seek, .close = console_log_close }; /* * set the log to default function, called during eal init process, * once memzones are available. */ int rte_eal_log_init(const char *id, int facility) { FILE *log_stream; log_stream = fopencookie(NULL, "w+", console_log_func); if (log_stream == NULL) return -1; openlog(id, LOG_NDELAY | LOG_PID, facility); if (rte_eal_common_log_init(log_stream) < 0) return -1; return 0; } /* early logs */ /* * early log function, used during boot when mempool (hence log * history) is not available */ static ssize_t early_log_write(__attribute__((unused)) void *c, const char *buf, size_t size) { ssize_t ret; ret = fwrite(buf, size, 1, stdout); fflush(stdout); if (ret == 0) return -1; return ret; } static ssize_t early_log_read(__attribute__((unused)) void *c, __attribute__((unused)) char *buf, __attribute__((unused)) size_t size) { return 0; } static int early_log_seek(__attribute__((unused)) void *c, __attribute__((unused)) off64_t *offset, __attribute__((unused)) int whence) { return -1; } static int early_log_close(__attribute__((unused)) void *c) { return 0; } static cookie_io_functions_t early_log_func = { .read = early_log_read, .write = early_log_write, .seek = early_log_seek, .close = early_log_close }; static FILE *early_log_stream; /* * init the log library, called by rte_eal_init() to enable early * logs */ int rte_eal_log_early_init(void) { early_log_stream = fopencookie(NULL, "w+", early_log_func); if (early_log_stream == NULL) { printf("Cannot configure early_log_stream\n"); return -1; } rte_openlog_stream(early_log_stream); return 0; }
duk3luk3/MoonGen
deps/dpdk/lib/librte_eal/linuxapp/eal/eal_log.c
C
mit
5,005
tinyMCE.addI18n({id:{ common:{ edit_confirm:"Gunakan mode WYSIWYG untuk textarea ini?", apply:"Apply", insert:"Insert", update:"Update", cancel:"Cancel", close:"Close", browse:"Browse", class_name:"Class", not_set:"-- Not set --", clipboard_msg:"Copy/Cut/Paste tidak tersedia pada Mozilla dan Firefox.\nButuh info selengkapnya?", clipboard_no_support:"Tidak didukung Browser, gunakan shortcut dari keyboard.", popup_blocked:"Maaf, popup-blocker anda telah menonaktifkan jendela aplikasi yang menyediakan fungsionalitas. Nonaktifkan popup-blocker untuk sepenuhnya memanfaatkan alat ini.", invalid_data:"Error: nilai invalid, ditandai dengan dengan warna merah", more_colors:"More colors" }, contextmenu:{ align:"Alignment", left:"Kiri", center:"Tengah", right:"Kanan", full:"Penuh" }, insertdatetime:{ date_fmt:"%Y-%m-%d", time_fmt:"%H:%M:%S", insertdate_desc:"sisipkan tanggal", inserttime_desc:"sisipkan waktu", months_long:"Januari,Februari,Maren,April,Mei,Juni,Juli,Agustus,September,Oktober,November,Desember", months_short:"Jan,Feb,Mar,Apr,Mei,Jun,Jul,Ags,Sep,Okt,Nov,Des", day_long:"Minggu,Senin,Selasa,Rabu,Kamis,Jumat,Sabtu,Minggu", day_short:"Min,Sen,Sel,Rab,Kam,Jum,Sab,Min" }, print:{ print_desc:"Cetak" }, preview:{ preview_desc:"Preview" }, directionality:{ ltr_desc:"Arah kiri ke kanan", rtl_desc:"Arah kanan ke kiri" }, layer:{ insertlayer_desc:"sisipkan layer Baru", forward_desc:"Pindah ke depan", backward_desc:"Pindah ke belakang", absolute_desc:"Beralih posisi absolut", content:"Layer baru..." }, save:{ save_desc:"Simpan", cancel_desc:"Batalkan semua perubahan" }, nonbreaking:{ nonbreaking_desc:"sisipkan karakter non-breaking space" }, iespell:{ iespell_desc:"Jalankan spell checking", download:"ieSpell tidak terdeteksi. Instal sekarang?" }, advhr:{ advhr_desc:"Horizontal rule" }, emotions:{ emotions_desc:"Emotions" }, searchreplace:{ search_desc:"Cari", replace_desc:"Cari/Ganti" }, advimage:{ image_desc:"sisipkan/Ubah Gambar" }, advlink:{ link_desc:"Sisipkan/Ubah link" }, xhtmlxtras:{ cite_desc:"Kutipan", abbr_desc:"Singkatan/Kependekan Kata", acronym_desc:"Akronim", del_desc:"Penghapusan", ins_desc:"Penyisipan", attribs_desc:"Sisip/Ubah Atribut" }, style:{ desc:"Ubah CSS Style" }, paste:{ paste_text_desc:"Paste as Plain Text", paste_word_desc:"Paste from Word", selectall_desc:"Select All" }, paste_dlg:{ text_title:"Gunakan CTRL+V pada keyboard untuk paste.", text_linebreaks:"Keep linebreaks", word_title:"Gunakan CTRL+V pada keyboard untuk paste." }, table:{ desc:"Sisipkan tabel baru", row_before_desc:"Sisipkan row sebelum", row_after_desc:"Sisipkan row sesudah", delete_row_desc:"Hapus row", col_before_desc:"Sisipkan column sebelum", col_after_desc:"Sisipkan column setelah", delete_col_desc:"Hapus column", split_cells_desc:"Pisahkan cell tabel yang di-merge", merge_cells_desc:"Merge cell tabel", row_desc:"Properti row tabel", cell_desc:"Properti cell tabel", props_desc:"Properti tabel", paste_row_before_desc:"Paste row tabel sebelum", paste_row_after_desc:"Paste row tabel sesudah", cut_row_desc:"Cut row tabel", copy_row_desc:"Copy row tabel", del:"Hapus Tabel", row:"Row", col:"Column", cell:"Cell" }, autosave:{ unload_msg:"Perubahan yang dilakukan akan hilang jika Anda pindah dari halaman ini." }, fullscreen:{ desc:"Toggle fullscreen mode" }, media:{ desc:"Insert / edit embedded media", edit:"Edit embedded media" }, fullpage:{ desc:"Properti Dokumen" }, template:{ desc:"Menyisipkan template standar isi" }, visualchars:{ desc:"Pengendalian visual karakter on/off" }, spellchecker:{ desc:"Toggle spellchecker", menu:"Pengaturan Spellchecker ", ignore_word:"Abaikan kata", ignore_words:"Abaikan semua", langs:"Bahasa", wait:"Harap tunggu...", sug:"Saran", no_sug:"Tidak ada saran", no_mpell:"Tidak ada misspellings ditemukan." }, pagebreak:{ desc:"Sisipkan page break." }}});
tatemae/muck-activities
test/public/javascripts/tiny_mce/langs/id.js
JavaScript
mit
3,985
.skin-green .main-header .navbar{background-color:#00a65a}.skin-green .main-header .navbar .nav>li>a{color:#fff}.skin-green .main-header .navbar .nav>li>a:hover,.skin-green .main-header .navbar .nav>li>a:active,.skin-green .main-header .navbar .nav>li>a:focus,.skin-green .main-header .navbar .nav .open>a,.skin-green .main-header .navbar .nav .open>a:hover,.skin-green .main-header .navbar .nav .open>a:focus{background:rgba(0,0,0,0.1);color:#f6f6f6}.skin-green .main-header .navbar .navbar-custom-menu>.nav{margin-right:10px}.skin-green .main-header .navbar .sidebar-toggle{color:#fff}.skin-green .main-header .navbar .sidebar-toggle:hover{color:#f6f6f6;background:rgba(0,0,0,0.1)}.skin-green .main-header .navbar .sidebar-toggle{color:#fff}.skin-green .main-header .navbar .sidebar-toggle:hover{background-color:#008d4c}@media (max-width:767px){.skin-green .main-header .navbar .dropdown-menu li.divider{background-color:rgba(255,255,255,0.1)}.skin-green .main-header .navbar .dropdown-menu li a{color:#fff}.skin-green .main-header .navbar .dropdown-menu li a:hover{background:#008d4c}}.skin-green .main-header .logo{background-color:#008d4c;color:#fff;border-bottom:0 solid transparent}.skin-green .main-header .logo>a{color:#fff}.skin-green .main-header .logo:hover{background:#008749}.skin-green .main-header li.user-header{background-color:#00a65a}.skin-green .content-header{background:transparent}.skin-green .user-panel>.info,.skin-green .user-panel>.info>a{color:#fff}.skin-green .sidebar-menu>li.header{color:#4b646f;background:#1a2226}.skin-green .sidebar-menu>li>a{border-left:3px solid transparent;margin-right:1px}.skin-green .sidebar-menu>li>a:hover,.skin-green .sidebar-menu>li.active>a{color:#fff;background:#1e282c;border-left-color:#00a65a}.skin-green .sidebar-menu>li>.treeview-menu{margin:0 1px;background:#2c3b41}.skin-green .wrapper,.skin-green .main-sidebar,.skin-green .left-side{background:#222d32}.skin-green .sidebar a{color:#b8c7ce}.skin-green .sidebar a:hover{text-decoration:none}.skin-green .treeview-menu>li>a{color:#8aa4af}.skin-green .treeview-menu>li.active>a,.skin-green .treeview-menu>li>a:hover{color:#fff}.skin-green .sidebar-form{border-radius:3px;border:1px solid #374850;margin:10px 10px}.skin-green .sidebar-form input[type="text"],.skin-green .sidebar-form .btn{box-shadow:none;background-color:#374850;border:1px solid transparent;height:35px;-webkit-transition:all .3s cubic-bezier(.32, 1.25, .375, 1.15);-o-transition:all .3s cubic-bezier(.32, 1.25, .375, 1.15);transition:all .3s cubic-bezier(.32, 1.25, .375, 1.15)}.skin-green .sidebar-form input[type="text"]{color:#666;border-top-left-radius:2px !important;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;border-bottom-left-radius:2px !important}.skin-green .sidebar-form input[type="text"]:focus,.skin-green .sidebar-form input[type="text"]:focus+.input-group-btn .btn{background-color:#fff;color:#666}.skin-green .sidebar-form input[type="text"]:focus+.input-group-btn .btn{border-left-color:#fff}.skin-green .sidebar-form .btn{color:#999;border-top-left-radius:0 !important;border-top-right-radius:2px !important;border-bottom-right-radius:2px !important;border-bottom-left-radius:0 !important}
hreeder/ignition
manager/static/css/skins/skin-green.min.css
CSS
mit
3,230
(function () { 'use strict'; L.TileLayer.Provider = L.TileLayer.extend({ initialize: function (arg, options) { var providers = L.TileLayer.Provider.providers; var parts = arg.split('.'); var providerName = parts[0]; var variantName = parts[1]; if (!providers[providerName]) { throw 'No such provider (' + providerName + ')'; } var provider = { url: providers[providerName].url, options: providers[providerName].options }; // overwrite values in provider from variant. if (variantName && 'variants' in providers[providerName]) { if (!(variantName in providers[providerName].variants)) { throw 'No such variant of ' + providerName + ' (' + variantName + ')'; } var variant = providers[providerName].variants[variantName]; var variantOptions; if (typeof variant === 'string') { variantOptions = { variant: variant }; } else { variantOptions = variant.options; } provider = { url: variant.url || provider.url, options: L.Util.extend({}, provider.options, variantOptions) }; } else if (typeof provider.url === 'function') { provider.url = provider.url(parts.splice(1, parts.length - 1).join('.')); } var forceHTTP = window.location.protocol === 'file:' || provider.options.forceHTTP; if (provider.url.indexOf('//') === 0 && forceHTTP) { provider.url = 'http:' + provider.url; } // replace attribution placeholders with their values from toplevel provider attribution, // recursively var attributionReplacer = function (attr) { if (attr.indexOf('{attribution.') === -1) { return attr; } return attr.replace(/\{attribution.(\w*)\}/, function (match, attributionName) { return attributionReplacer(providers[attributionName].options.attribution); } ); }; provider.options.attribution = attributionReplacer(provider.options.attribution); // Compute final options combining provider options with any user overrides var layerOpts = L.Util.extend({}, provider.options, options); L.TileLayer.prototype.initialize.call(this, provider.url, layerOpts); } }); /** * Definition of providers. * see http://leafletjs.com/reference.html#tilelayer for options in the options map. */ L.TileLayer.Provider.providers = { OpenStreetMap: { url: '//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', options: { attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>' }, variants: { Mapnik: {}, BlackAndWhite: { url: 'http://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png' }, DE: { url: 'http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png' }, HOT: { url: 'http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', options: { attribution: '{attribution.OpenStreetMap}, Tiles courtesy of <a href="http://hot.openstreetmap.org/" target="_blank">Humanitarian OpenStreetMap Team</a>' } } } }, OpenSeaMap: { url: 'http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png', options: { attribution: 'Map data: &copy; <a href="http://www.openseamap.org">OpenSeaMap</a> contributors' } }, Thunderforest: { url: '//{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png', options: { attribution: '&copy; <a href="http://www.opencyclemap.org">OpenCycleMap</a>, {attribution.OpenStreetMap}', variant: 'cycle' }, variants: { OpenCycleMap: 'cycle', Transport: 'transport', TransportDark: 'transport-dark', Landscape: 'landscape', Outdoors: 'outdoors' } }, OpenMapSurfer: { url: 'http://openmapsurfer.uni-hd.de/tiles/{variant}/x={x}&y={y}&z={z}', options: { minZoom: 0, maxZoom: 20, variant: 'roads', attribution: 'Imagery from <a href="http://giscience.uni-hd.de/">GIScience Research Group @ University of Heidelberg</a> &mdash; Map data {attribution.OpenStreetMap}' }, variants: { Roads: 'roads', AdminBounds: { options: { variant: 'adminb', maxZoom: 19 } }, Grayscale: { options: { variant: 'roadsg', maxZoom: 19 } } } }, Hydda: { url: 'http://{s}.tile.openstreetmap.se/hydda/{variant}/{z}/{x}/{y}.png', options: { minZoom: 0, maxZoom: 18, variant: 'full', attribution: 'Tiles courtesy of <a href="http://openstreetmap.se/" target="_blank">OpenStreetMap Sweden</a> &mdash; Map data {attribution.OpenStreetMap}' }, variants: { Full: 'full', Base: 'base', RoadsAndLabels: 'roads_and_labels' } }, MapQuestOpen: { url: 'http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpeg', options: { attribution: 'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> &mdash; ' + 'Map data {attribution.OpenStreetMap}', subdomains: '1234' }, variants: { OSM: {}, Aerial: { url: 'http://oatile{s}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg', options: { attribution: 'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> &mdash; ' + 'Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency' } } } }, MapBox: { url: function (id) { return 'http://{s}.tiles.mapbox.com/v3/' + id + '/{z}/{x}/{y}.png'; }, options: { attribution: 'Imagery from <a href="http://mapbox.com/about/maps/">MapBox</a> &mdash; ' + 'Map data {attribution.OpenStreetMap}', subdomains: 'abcd' } }, Stamen: { url: 'http://{s}.tile.stamen.com/{variant}/{z}/{x}/{y}.png', options: { attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, ' + '<a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; ' + 'Map data {attribution.OpenStreetMap}', subdomains: 'abcd', minZoom: 0, maxZoom: 20, variant: 'toner' }, variants: { Toner: 'toner', TonerBackground: 'toner-background', TonerHybrid: 'toner-hybrid', TonerLines: 'toner-lines', TonerLabels: 'toner-labels', TonerLite: 'toner-lite', Terrain: { options: { variant: 'terrain', minZoom: 4, maxZoom: 18 } }, TerrainBackground: { options: { variant: 'terrain-background', minZoom: 4, maxZoom: 18 } }, Watercolor: { options: { variant: 'watercolor', minZoom: 1, maxZoom: 16 } } } }, Esri: { url: '//server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}', options: { variant: 'World_Street_Map', attribution: 'Tiles &copy; Esri' }, variants: { WorldStreetMap: { options: { attribution: '{attribution.Esri} &mdash; ' + 'Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012' } }, DeLorme: { options: { variant: 'Specialty/DeLorme_World_Base_Map', minZoom: 1, maxZoom: 11, attribution: '{attribution.Esri} &mdash; Copyright: &copy;2012 DeLorme' } }, WorldTopoMap: { options: { variant: 'World_Topo_Map', attribution: '{attribution.Esri} &mdash; ' + 'Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community' } }, WorldImagery: { options: { variant: 'World_Imagery', attribution: '{attribution.Esri} &mdash; ' + 'Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community' } }, WorldTerrain: { options: { variant: 'World_Terrain_Base', maxZoom: 13, attribution: '{attribution.Esri} &mdash; ' + 'Source: USGS, Esri, TANA, DeLorme, and NPS' } }, WorldShadedRelief: { options: { variant: 'World_Shaded_Relief', maxZoom: 13, attribution: '{attribution.Esri} &mdash; Source: Esri' } }, WorldPhysical: { options: { variant: 'World_Physical_Map', maxZoom: 8, attribution: '{attribution.Esri} &mdash; Source: US National Park Service' } }, OceanBasemap: { options: { variant: 'Ocean_Basemap', maxZoom: 13, attribution: '{attribution.Esri} &mdash; Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri' } }, NatGeoWorldMap: { options: { variant: 'NatGeo_World_Map', maxZoom: 16, attribution: '{attribution.Esri} &mdash; National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC' } }, WorldGrayCanvas: { options: { variant: 'Canvas/World_Light_Gray_Base', maxZoom: 16, attribution: '{attribution.Esri} &mdash; Esri, DeLorme, NAVTEQ' } } } }, OpenWeatherMap: { url: 'http://{s}.tile.openweathermap.org/map/{variant}/{z}/{x}/{y}.png', options: { attribution: 'Map data &copy; <a href="http://openweathermap.org">OpenWeatherMap</a>', opacity: 0.5 }, variants: { Clouds: 'clouds', CloudsClassic: 'clouds_cls', Precipitation: 'precipitation', PrecipitationClassic: 'precipitation_cls', Rain: 'rain', RainClassic: 'rain_cls', Pressure: 'pressure', PressureContour: 'pressure_cntr', Wind: 'wind', Temperature: 'temp', Snow: 'snow' } }, HERE: { /* * HERE maps, formerly Nokia maps. * These basemaps are free, but you need an API key. Please sign up at * http://developer.here.com/getting-started * * Note that the base urls contain '.cit' whichs is HERE's * 'Customer Integration Testing' environment. Please remove for production * envirionments. */ url: 'http://{s}.{base}.maps.cit.api.here.com/maptile/2.1/' + 'maptile/{mapID}/{variant}/{z}/{x}/{y}/256/png8?' + 'app_id={app_id}&app_code={app_code}', options: { attribution: 'Map &copy; 1987-2014 <a href="http://developer.here.com">HERE</a>', subdomains: '1234', mapID: 'newest', 'app_id': '<insert your app_id here>', 'app_code': '<insert your app_code here>', base: 'base', variant: 'normal.day', minZoom: 0, maxZoom: 20 }, variants: { normalDay: 'normal.day', normalDayCustom: 'normal.day.custom', normalDayGrey: 'normal.day.grey', normalDayMobile: 'normal.day.mobile', normalDayGreyMobile: 'normal.day.grey.mobile', normalDayTransit: 'normal.day.transit', normalDayTransitMobile: 'normal.day.transit.mobile', normalNight: 'normal.night', normalNightMobile: 'normal.night.mobile', normalNightGrey: 'normal.night.grey', normalNightGreyMobile: 'normal.night.grey.mobile', carnavDayGrey: 'carnav.day.grey', hybridDay: { options: { base: 'aerial', variant: 'hybrid.day' } }, hybridDayMobile: { options: { base: 'aerial', variant: 'hybrid.day.mobile' } }, pedestrianDay: 'pedestrian.day', pedestrianNight: 'pedestrian.night', satelliteDay: { options: { base: 'aerial', variant: 'satellite.day' } }, terrainDay: { options: { base: 'aerial', variant: 'terrain.day' } }, terrainDayMobile: { options: { base: 'aerial', variant: 'terrain.day.mobile' } } } }, Acetate: { url: 'http://a{s}.acetate.geoiq.com/tiles/{variant}/{z}/{x}/{y}.png', options: { attribution: '&copy;2012 Esri & Stamen, Data from OSM and Natural Earth', subdomains: '0123', minZoom: 2, maxZoom: 18, variant: 'acetate-base' }, variants: { basemap: 'acetate-base', terrain: 'terrain', all: 'acetate-hillshading', foreground: 'acetate-fg', roads: 'acetate-roads', labels: 'acetate-labels', hillshading: 'hillshading' } }, FreeMapSK: { url: 'http://{s}.freemap.sk/T/{z}/{x}/{y}.jpeg', options: { minZoom: 8, maxZoom: 16, subdomains: ['t1', 't2', 't3', 't4'], attribution: '{attribution.OpenStreetMap}, vizualization CC-By-SA 2.0 <a href="http://freemap.sk">Freemap.sk</a>' } }, MtbMap: { url: 'http://tile.mtbmap.cz/mtbmap_tiles/{z}/{x}/{y}.png', options: { attribution: '{attribution.OpenStreetMap} &amp; USGS' } }, CartoDB: { url: 'http://{s}.basemaps.cartocdn.com/{variant}/{z}/{x}/{y}.png', options: { attribution: '{attribution.OpenStreetMap} &copy; <a href="http://cartodb.com/attributions">CartoDB</a>', subdomains: 'abcd', minZoom: 0, maxZoom: 18, variant: 'light_all' }, variants: { Positron: 'light_all', PositronNoLabels: 'light_nolabels', DarkMatter: 'dark_all', DarkMatterNoLabels: 'dark_nolabels' } }, HikeBike: { url: 'http://{s}.tiles.wmflabs.org/hikebike/{z}/{x}/{y}.png', options: { attribution: '{attribution.OpenStreetMap}' } }, BasemapAT: { url: '//maps{s}.wien.gv.at/basemap/{variant}/normal/google3857/{z}/{y}/{x}.{format}', options: { attribution: 'Datenquelle: <a href="www.basemap.at">basemap.at</a>', subdomains: ['', '1', '2', '3', '4'], bounds: [[46.358770, 8.782379], [49.037872, 17.189532]] }, variants: { basemap: { options: { variant: 'geolandbasemap', format: 'jpeg' } }, highdpi: { options: { variant: 'bmaphidpi', format: 'jpeg' } }, grau: { options: { variant: 'bmapgrau', format: 'png' } }, overlay: { options: { variant: 'bmapoverlay', format: 'png' } } } }, NASAGIBS: { url: '//map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}{maxZoom}/{z}/{y}/{x}.{format}', options: { attribution: 'Imagery provided by services from the Global Imagery Browse Services (GIBS), operated by the NASA/GSFC/Earth Science Data and Information System ' + '(<a href="https://earthdata.nasa.gov">ESDIS</a>) with funding provided by NASA/HQ.', bounds: [[-85.0511287776, -179.999999975], [85.0511287776, 179.999999975]], minZoom: 1, maxZoom: 9, format: 'jpg', time: '', tilematrixset: 'GoogleMapsCompatible_Level' }, variants: { ModisTerraTrueColorCR: 'MODIS_Terra_CorrectedReflectance_TrueColor', ModisTerraBands367CR: 'MODIS_Terra_CorrectedReflectance_Bands367', ViirsEarthAtNight2012: { options: { variant: 'VIIRS_CityLights_2012', maxZoom: 8 } }, ModisTerraLSTDay: { options: { variant: 'MODIS_Terra_Land_Surface_Temp_Day', format: 'png', maxZoom: 7, opacity: 0.75 } }, ModisTerraSnowCover: { options: { variant: 'MODIS_Terra_Snow_Cover', format: 'png', maxZoom: 8, opacity: 0.75 } }, ModisTerraAOD: { options: { variant: 'MODIS_Terra_Aerosol', format: 'png', maxZoom: 6, opacity: 0.75 } }, ModisTerraChlorophyll: { options: { variant: 'MODIS_Terra_Chlorophyll_A', format: 'png', maxZoom: 7, opacity: 0.75 } } } } }; L.tileLayer.provider = function (provider, options) { return new L.TileLayer.Provider(provider, options); }; }());
dhowe/cdnjs
ajax/libs/leaflet-providers/1.0.20/leaflet-providers.js
JavaScript
mit
15,477
/*! * # Semantic UI 1.11.1 - Sticky * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2014 Contributorss * Released under the MIT license * http://opensource.org/licenses/MIT * */ ;(function ( $, window, document, undefined ) { "use strict"; $.fn.sticky = function(parameters) { var $allModules = $(this), moduleSelector = $allModules.selector || '', time = new Date().getTime(), performance = [], query = arguments[0], methodInvoked = (typeof query == 'string'), queryArguments = [].slice.call(arguments, 1), returnedValue ; $allModules .each(function() { var settings = ( $.isPlainObject(parameters) ) ? $.extend(true, {}, $.fn.sticky.settings, parameters) : $.extend({}, $.fn.sticky.settings), className = settings.className, namespace = settings.namespace, error = settings.error, eventNamespace = '.' + namespace, moduleNamespace = 'module-' + namespace, $module = $(this), $window = $(window), $container = $module.offsetParent(), $scroll = $(settings.scrollContext), $context, selector = $module.selector || '', instance = $module.data(moduleNamespace), requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || function(callback) { setTimeout(callback, 0); }, element = this, observer, module ; module = { initialize: function() { module.determineContext(); module.verbose('Initializing sticky', settings, $container); module.save.positions(); module.checkErrors(); module.bind.events(); if(settings.observeChanges) { module.observeChanges(); } module.instantiate(); }, instantiate: function() { module.verbose('Storing instance of module', module); instance = module; $module .data(moduleNamespace, module) ; }, destroy: function() { module.verbose('Destroying previous module'); module.reset(); if(observer) { observer.disconnect(); } $window.off('resize' + eventNamespace, module.event.resize); $scroll.off('scroll' + eventNamespace, module.event.scroll); $module.removeData(moduleNamespace); }, observeChanges: function() { var context = $context[0] ; if('MutationObserver' in window) { observer = new MutationObserver(function(mutations) { clearTimeout(module.timer); module.timer = setTimeout(function() { module.verbose('DOM tree modified, updating sticky menu'); module.refresh(); }, 20); }); observer.observe(element, { childList : true, subtree : true }); observer.observe(context, { childList : true, subtree : true }); module.debug('Setting up mutation observer', observer); } }, determineContext: function() { if(settings.context) { $context = $(settings.context); } else { $context = $container; } if($context.length === 0) { module.error(error.invalidContext, settings.context, $module); return; } }, checkErrors: function() { if( module.is.hidden() ) { module.error(error.visible, $module); } if(module.cache.element.height > module.cache.context.height) { module.reset(); module.error(error.elementSize, $module); return; } }, bind: { events: function() { $window.on('resize' + eventNamespace, module.event.resize); $scroll.on('scroll' + eventNamespace, module.event.scroll); } }, event: { resize: function() { requestAnimationFrame(function() { module.refresh(); module.stick(); }); }, scroll: function() { requestAnimationFrame(function() { module.stick(); settings.onScroll.call(element); }); } }, refresh: function(hardRefresh) { module.reset(); if(hardRefresh) { $container = $module.offsetParent(); } module.save.positions(); module.stick(); settings.onReposition.call(element); }, supports: { sticky: function() { var $element = $('<div/>'), element = $element.get() ; $element.addClass(className.supported); return($element.css('position').match('sticky')); } }, save: { scroll: function(scroll) { module.lastScroll = scroll; }, positions: function() { var window = { height: $window.height() }, element = { margin: { top : parseInt($module.css('margin-top'), 10), bottom : parseInt($module.css('margin-bottom'), 10), }, offset : $module.offset(), width : $module.outerWidth(), height : $module.outerHeight() }, context = { offset : $context.offset(), height : $context.outerHeight(), bottomPadding : parseInt($context.css('padding-bottom'), 10) } ; module.cache = { fits : ( element.height < window.height ), window: { height: window.height }, element: { margin : element.margin, top : element.offset.top - element.margin.top, left : element.offset.left, width : element.width, height : element.height, bottom : element.offset.top + element.height }, context: { top : context.offset.top, height : context.height, bottomPadding : context.bottomPadding, bottom : context.offset.top + context.height - context.bottomPadding } }; module.set.containerSize(); module.set.size(); module.stick(); module.debug('Caching element positions', module.cache); } }, get: { direction: function(scroll) { var direction = 'down' ; scroll = scroll || $scroll.scrollTop(); if(module.lastScroll !== undefined) { if(module.lastScroll < scroll) { direction = 'down'; } else if(module.lastScroll > scroll) { direction = 'up'; } } return direction; }, scrollChange: function(scroll) { scroll = scroll || $scroll.scrollTop(); return (module.lastScroll) ? (scroll - module.lastScroll) : 0 ; }, currentElementScroll: function() { return ( module.is.top() ) ? Math.abs(parseInt($module.css('top'), 10)) || 0 : Math.abs(parseInt($module.css('bottom'), 10)) || 0 ; }, elementScroll: function(scroll) { scroll = scroll || $scroll.scrollTop(); var element = module.cache.element, window = module.cache.window, delta = module.get.scrollChange(scroll), maxScroll = (element.height - window.height + settings.offset), currentScroll = module.get.currentElementScroll(), possibleScroll = (currentScroll + delta), elementScroll ; if(module.cache.fits || possibleScroll < 0) { elementScroll = 0; } else if (possibleScroll > maxScroll ) { elementScroll = maxScroll; } else { elementScroll = possibleScroll; } return elementScroll; } }, remove: { offset: function() { $module.css('margin-top', ''); } }, set: { offset: function() { module.verbose('Setting offset on element', settings.offset); $module.css('margin-top', settings.offset); }, containerSize: function() { var tagName = $container.get(0).tagName ; if(tagName === 'HTML' || tagName == 'body') { // this can trigger for too many reasons //module.error(error.container, tagName, $module); $container = $module.offsetParent(); } else { module.debug('Settings container size', module.cache.context.height); if( Math.abs($container.height() - module.cache.context.height) > 5) { $container.css({ height: module.cache.context.height }); } } }, scroll: function(scroll) { module.debug('Setting scroll on element', scroll); if( module.is.top() ) { $module .css('bottom', '') .css('top', -scroll) ; } if( module.is.bottom() ) { $module .css('top', '') .css('bottom', scroll) ; } }, size: function() { if(module.cache.element.height !== 0 && module.cache.element.width !== 0) { $module .css({ width : module.cache.element.width, height : module.cache.element.height }) ; } } }, is: { top: function() { return $module.hasClass(className.top); }, bottom: function() { return $module.hasClass(className.bottom); }, initialPosition: function() { return (!module.is.fixed() && !module.is.bound()); }, hidden: function() { return (!$module.is(':visible')); }, bound: function() { return $module.hasClass(className.bound); }, fixed: function() { return $module.hasClass(className.fixed); } }, stick: function() { var cache = module.cache, fits = cache.fits, element = cache.element, window = cache.window, context = cache.context, offset = (module.is.bottom() && settings.pushing) ? settings.bottomOffset : settings.offset, scroll = { top : $scroll.scrollTop() + offset, bottom : $scroll.scrollTop() + offset + window.height }, direction = module.get.direction(scroll.top), elementScroll = module.get.elementScroll(scroll.top), // shorthand doesntFit = !fits, elementVisible = (element.height !== 0) ; // save current scroll for next run module.save.scroll(scroll.top); if(elementVisible) { if( module.is.initialPosition() ) { if(scroll.top >= context.bottom) { console.log(scroll.top, context.bottom); module.debug('Element bottom of container'); module.bindBottom(); } else if(scroll.top >= element.top) { module.debug('Element passed, fixing element to page'); module.fixTop(); } } else if( module.is.fixed() ) { // currently fixed top if( module.is.top() ) { if( scroll.top < element.top ) { module.debug('Fixed element reached top of container'); module.setInitialPosition(); } else if( (element.height + scroll.top - elementScroll) > context.bottom ) { module.debug('Fixed element reached bottom of container'); module.bindBottom(); } // scroll element if larger than screen else if(doesntFit) { module.set.scroll(elementScroll); } } // currently fixed bottom else if(module.is.bottom() ) { // top edge if( (scroll.bottom - element.height) < element.top) { module.debug('Bottom fixed rail has reached top of container'); module.setInitialPosition(); } // bottom edge else if(scroll.bottom > context.bottom) { module.debug('Bottom fixed rail has reached bottom of container'); module.bindBottom(); } // scroll element if larger than screen else if(doesntFit) { module.set.scroll(elementScroll); } } } else if( module.is.bottom() ) { if(settings.pushing) { if(module.is.bound() && scroll.bottom < context.bottom ) { module.debug('Fixing bottom attached element to bottom of browser.'); module.fixBottom(); } } else { if(module.is.bound() && (scroll.top < context.bottom - element.height) ) { module.debug('Fixing bottom attached element to top of browser.'); module.fixTop(); } } } } }, bindTop: function() { module.debug('Binding element to top of parent container'); module.remove.offset(); $module .css('left' , '') .css('top' , '') .css('margin-bottom' , '') .removeClass(className.fixed) .removeClass(className.bottom) .addClass(className.bound) .addClass(className.top) ; settings.onTop.call(element); settings.onUnstick.call(element); }, bindBottom: function() { module.debug('Binding element to bottom of parent container'); module.remove.offset(); $module .css('left' , '') .css('top' , '') .css('margin-bottom' , module.cache.context.bottomPadding) .removeClass(className.fixed) .removeClass(className.top) .addClass(className.bound) .addClass(className.bottom) ; settings.onBottom.call(element); settings.onUnstick.call(element); }, setInitialPosition: function() { module.unfix(); module.unbind(); }, fixTop: function() { module.debug('Fixing element to top of page'); module.set.offset(); $module .css('left', module.cache.element.left) .css('bottom' , '') .removeClass(className.bound) .removeClass(className.bottom) .addClass(className.fixed) .addClass(className.top) ; settings.onStick.call(element); }, fixBottom: function() { module.debug('Sticking element to bottom of page'); module.set.offset(); $module .css('left', module.cache.element.left) .css('bottom' , '') .removeClass(className.bound) .removeClass(className.top) .addClass(className.fixed) .addClass(className.bottom) ; settings.onStick.call(element); }, unbind: function() { module.debug('Removing absolute position on element'); module.remove.offset(); $module .removeClass(className.bound) .removeClass(className.top) .removeClass(className.bottom) ; }, unfix: function() { module.debug('Removing fixed position on element'); module.remove.offset(); $module .removeClass(className.fixed) .removeClass(className.top) .removeClass(className.bottom) ; settings.onUnstick.call(element); }, reset: function() { module.debug('Reseting elements position'); module.unbind(); module.unfix(); module.resetCSS(); }, resetCSS: function() { $module .css({ top : '', bottom : '', width : '', height : '' }) ; $container .css({ height: '' }) ; }, setting: function(name, value) { if( $.isPlainObject(name) ) { $.extend(true, settings, name); } else if(value !== undefined) { settings[name] = value; } else { return settings[name]; } }, internal: function(name, value) { if( $.isPlainObject(name) ) { $.extend(true, module, name); } else if(value !== undefined) { module[name] = value; } else { return module[name]; } }, debug: function() { if(settings.debug) { if(settings.performance) { module.performance.log(arguments); } else { module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':'); module.debug.apply(console, arguments); } } }, verbose: function() { if(settings.verbose && settings.debug) { if(settings.performance) { module.performance.log(arguments); } else { module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':'); module.verbose.apply(console, arguments); } } }, error: function() { module.error = Function.prototype.bind.call(console.error, console, settings.name + ':'); module.error.apply(console, arguments); }, performance: { log: function(message) { var currentTime, executionTime, previousTime ; if(settings.performance) { currentTime = new Date().getTime(); previousTime = time || currentTime; executionTime = currentTime - previousTime; time = currentTime; performance.push({ 'Name' : message[0], 'Arguments' : [].slice.call(message, 1) || '', 'Element' : element, 'Execution Time' : executionTime }); } clearTimeout(module.performance.timer); module.performance.timer = setTimeout(module.performance.display, 0); }, display: function() { var title = settings.name + ':', totalTime = 0 ; time = false; clearTimeout(module.performance.timer); $.each(performance, function(index, data) { totalTime += data['Execution Time']; }); title += ' ' + totalTime + 'ms'; if(moduleSelector) { title += ' \'' + moduleSelector + '\''; } if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) { console.groupCollapsed(title); if(console.table) { console.table(performance); } else { $.each(performance, function(index, data) { console.log(data['Name'] + ': ' + data['Execution Time']+'ms'); }); } console.groupEnd(); } performance = []; } }, invoke: function(query, passedArguments, context) { var object = instance, maxDepth, found, response ; passedArguments = passedArguments || queryArguments; context = element || context; if(typeof query == 'string' && object !== undefined) { query = query.split(/[\. ]/); maxDepth = query.length - 1; $.each(query, function(depth, value) { var camelCaseValue = (depth != maxDepth) ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1) : query ; if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) { object = object[camelCaseValue]; } else if( object[camelCaseValue] !== undefined ) { found = object[camelCaseValue]; return false; } else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) { object = object[value]; } else if( object[value] !== undefined ) { found = object[value]; return false; } else { return false; } }); } if ( $.isFunction( found ) ) { response = found.apply(context, passedArguments); } else if(found !== undefined) { response = found; } if($.isArray(returnedValue)) { returnedValue.push(response); } else if(returnedValue !== undefined) { returnedValue = [returnedValue, response]; } else if(response !== undefined) { returnedValue = response; } return found; } }; if(methodInvoked) { if(instance === undefined) { module.initialize(); } module.invoke(query); } else { if(instance !== undefined) { instance.invoke('destroy'); } module.initialize(); } }) ; return (returnedValue !== undefined) ? returnedValue : this ; }; $.fn.sticky.settings = { name : 'Sticky', namespace : 'sticky', debug : false, verbose : false, performance : false, pushing : false, context : false, scrollContext : window, offset : 0, bottomOffset : 0, observeChanges : true, onReposition : function(){}, onScroll : function(){}, onStick : function(){}, onUnstick : function(){}, onTop : function(){}, onBottom : function(){}, error : { container : 'Sticky element must be inside a relative container', visible : 'Element is hidden, you must call refresh after element becomes visible', method : 'The method you called is not defined.', invalidContext : 'Context specified does not exist', elementSize : 'Sticky element is larger than its container, cannot create sticky.' }, className : { bound : 'bound', fixed : 'fixed', supported : 'native', top : 'top', bottom : 'bottom' } }; })( jQuery, window , document );
tmorin/cdnjs
ajax/libs/semantic-ui/1.11.1/components/sticky.js
JavaScript
mit
24,953
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u200c\u0d1a","\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u200c\u0d1a","\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a","\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u200c\u0d1a","\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u200c\u0d1a","\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u200c\u0d1a","\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u200c\u0d1a"],ERANAMES:["\u0d15\u0d4d\u0d30\u0d3f\u0d38\u0d4d\u200c\u0d24\u0d41\u0d35\u0d3f\u0d28\u0d4d \u0d2e\u0d41\u0d2e\u0d4d\u0d2a\u0d4d","\u0d06\u0d28\u0d4d\u0d28\u0d4b \u0d21\u0d4a\u0d2e\u0d3f\u0d28\u0d3f"],ERAS:["\u0d15\u0d4d\u0d30\u0d3f.\u0d2e\u0d41.","\u0d0e\u0d21\u0d3f"],MONTH:["\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f","\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f","\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d","\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d","\u0d2e\u0d47\u0d2f\u0d4d","\u0d1c\u0d42\u0d7a","\u0d1c\u0d42\u0d32\u0d48","\u0d06\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d","\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c","\u0d12\u0d15\u0d4d\u200c\u0d1f\u0d4b\u0d2c\u0d7c","\u0d28\u0d35\u0d02\u0d2c\u0d7c","\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c"],SHORTDAY:["\u0d1e\u0d3e\u0d2f\u0d7c","\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e","\u0d1a\u0d4a\u0d35\u0d4d\u0d35","\u0d2c\u0d41\u0d27\u0d7b","\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02","\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f","\u0d36\u0d28\u0d3f"],SHORTMONTH:["\u0d1c\u0d28\u0d41","\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41","\u0d2e\u0d3e\u0d7c","\u0d0f\u0d2a\u0d4d\u0d30\u0d3f","\u0d2e\u0d47\u0d2f\u0d4d","\u0d1c\u0d42\u0d7a","\u0d1c\u0d42\u0d32\u0d48","\u0d13\u0d17","\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02","\u0d12\u0d15\u0d4d\u0d1f\u0d4b","\u0d28\u0d35\u0d02","\u0d21\u0d3f\u0d38\u0d02"],fullDate:"y, MMMM d, EEEE",longDate:"y, MMMM d",medium:"y, MMM d h:mm:ss a",mediumDate:"y, MMM d",mediumTime:"h:mm:ss a","short":"dd/MM/yy h:mm a",shortDate:"dd/MM/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"\u20b9",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:2,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"\u00a4-",negSuf:"",posPre:"\u00a4",posSuf:""}]},id:"ml-in",pluralCat:function(d,c){if(d==1){return b.ONE}return b.OTHER}})}]);
calvinf/cdnjs
ajax/libs/angular-i18n/1.3.15/angular-locale_ml-in.min.js
JavaScript
mit
2,527
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["\u0635","\u0645"],DAY:["\u0627\u0644\u0623\u062d\u062f","\u0627\u0644\u0627\u062b\u0646\u064a\u0646","\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062e\u0645\u064a\u0633","\u0627\u0644\u062c\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062a"],ERANAMES:["\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f","\u0645\u064a\u0644\u0627\u062f\u064a"],ERAS:["\u0642.\u0645","\u0645"],MONTH:["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648\u0632","\u063a\u0634\u062a","\u0634\u062a\u0646\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0646\u0628\u0631","\u062f\u062c\u0646\u0628\u0631"],SHORTDAY:["\u0627\u0644\u0623\u062d\u062f","\u0627\u0644\u0627\u062b\u0646\u064a\u0646","\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062e\u0645\u064a\u0633","\u0627\u0644\u062c\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062a"],SHORTMONTH:["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648\u0632","\u063a\u0634\u062a","\u0634\u062a\u0646\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0646\u0628\u0631","\u062f\u062c\u0646\u0628\u0631"],fullDate:"EEEE\u060c d MMMM\u060c y",longDate:"d MMMM\u060c y",medium:"y/MM/dd h:mm:ss a",mediumDate:"y/MM/dd",mediumTime:"h:mm:ss a","short":"y/M/d h:mm a",shortDate:"y/M/d",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"dh",DECIMAL_SEP:",",GROUP_SEP:".",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"\u00a4\u00a0-",negSuf:"",posPre:"\u00a4\u00a0",posSuf:""}]},id:"ar-ma",pluralCat:function(d,c){if(d==0){return b.ZERO}if(d==1){return b.ONE}if(d==2){return b.TWO}if(d%100>=3&&d%100<=10){return b.FEW}if(d%100>=11&&d%100<=99){return b.MANY}return b.OTHER}})}]);
menuka94/cdnjs
ajax/libs/angular-i18n/1.3.20/angular-locale_ar-ma.min.js
JavaScript
mit
2,411