{"version":3,"file":"app/vendors-node_modules_webex_media-helpers_dist_index_js-node_modules_webex_plugin-attachment-a-c518bd.2c14eae5.js","mappings":";;;;;;;;;AAAa;;AAEb,6BAA6B,mBAAO,CAAC,0IAAuD;AAC5F;AACA;AACA,CAAC;AACD,+BAA+B,GAAG,kBAAkB,GAAG,sBAAsB;AAC7E,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA,CAAC,GAAG,GAAG;AACP,qBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA,CAAC,GAAG;AACJ,8BAA8B,+BAA+B;AAC7D;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACvDa;;AAEb,6BAA6B,mBAAO,CAAC,0IAAuD;AAC5F;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;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oC;AAC/E,wCAAwC,mBAAO,CAAC,8GAAyC;AACzF,yDAAyD,mBAAO,CAAC,gJAA0D;AAC3H,8CAA8C,mBAAO,CAAC,0HAA+C;AACrG,8CAA8C,mBAAO,CAAC,0HAA+C;AACrG,yBAAyB,mBAAO,CAAC,mGAA4B;AAC7D,gBAAgB,mBAAO,CAAC,+EAAkB;AAC1C;AACA;AACA;AACA;AACA,yBAAyB,yBAAyB,qCAAqC,0CAA0C,kCAAkC,2DAA2D,0BAA0B;AACxP,4BAA4B,gBAAgB,sBAAsB,OAAO,kDAAkD,sDAAsD,4CAA4C,sJAAsJ,uEAAuE,KAAK;AAC/b,iCAAiC,6DAA6D,yCAAyC,4DAA4D,iCAAiC,iEAAiE,4DAA4D,OAAO,yCAAyC;AACjZ,uCAAuC,yEAAyE,2CAA2C,8CAA8C,MAAM,6EAA6E,IAAI,eAAe,YAAY;AAC3T;AACA;AACA,sCAAsC,uCAAuC;AAC7E;AACA;AACA,CAAC,GAAG,GAAG;AACP,kCAAkC,mCAAmC;AACrE;AACA;AACA,CAAC,GAAG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE,aAAa;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA2E,eAAe;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;AACD,4BAA4B,6BAA6B;AACzD,wBAAwB,yBAAyB;AACjD,6BAA6B,8BAA8B;AAC3D;AACA;AACA,yBAAyB,0BAA0B;AACnD;AACA;AACA,uCAAuC,wCAAwC;AAC/E;AACA;AACA,0BAA0B,2BAA2B;AACrD;AACA;AACA,mCAAmC,oCAAoC;AACvE;AACA;AACA,yBAAyB,0BAA0B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC9OA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,+DAA+D,iBAAiB;AAC5G,0BAA0B,OAAO;AACjC,oCAAoC,MAAM,+BAA+B,YAAY;AACrF,mCAAmC,MAAM,mCAAmC,YAAY;AACxF,gCAAgC;AAChC;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA,gBAAgB,SAAS;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,yDAAyD;;AAEzD;AACA,mCAAmC;;AAEnC;AACA;;AAEA,oBAAoB,QAAQ;AAC5B;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,sHAAsH,qBAAM,mBAAmB,qBAAM;;AAErJ,cAAc;;AAEd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,sBAAsB;AACxC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA,eAAe;AACf;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA,oBAAoB,SAAS;AAC7B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;;AAEA,kCAAkC,QAAQ;AAC1C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,QAAQ;AACR;AACA,uCAAuC,QAAQ;AAC/C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA,SAAS,yBAAyB;AAClC;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,gBAAgB;AAClC;AACA;AACA;AACA;;AAEA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D,YAAY;AAC1E;AACA,8DAA8D,YAAY;AAC1E;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,qCAAqC,YAAY;AACjD;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA,gBAAgB;;AAEhB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,gCAAgC,cAAc;AAC9C;AACA;AACA;AACA;AACA;AACA,2CAA2C,yBAAyB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE,YAAY;AAChF;AACA;AACA;AACA,uDAAuD;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,CAAC;;AAED;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA,CAAC,8BAA8B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,kCAAkC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;;AAED;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD,wCAAwC,uBAAuB;AAC/D;AACA;AACA;AACA,+BAA+B;AAC/B,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,oCAAoC;AACpC,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,uBAAuB;AACvB,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,uBAAuB;AACvB,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;;AAEA;AACA,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,CAAC;;AAED;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA,qCAAqC,MAAM;AAC3C,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,0BAA0B,YAAY,yHAAyH;AAC/J;AACA;AACA,KAAK;AACL,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC,kCAAkC;AACnC;AACA;AACA;AACA;AACA,mEAAmE,OAAO;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA;AACA,CAAC,gDAAgD;AACjD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,UAAU;AAC9D,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA,yBAAyB;AACzB,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,oCAAoC;AACpC,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE,UAAU;AACjF;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE,2BAA2B;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gGAAgG,gBAAgB;AAChH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,uBAAuB;AACvB,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,uBAAuB;AACvB,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,sBAAsB;AACtB,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kHAAkH,oEAAoE;;AAEtL;AACA;AACA;AACA;AACA;AACA,CAAC,gDAAgD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,kDAAkD;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD,yDAAyD,WAAW;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,iCAAiC;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA6D,gBAAgB,gBAAgB,8BAA8B;AAC3H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE,gBAAgB,gBAAgB,8BAA8B;AACnI;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4EAA4E,gBAAgB,gBAAgB,8BAA8B;AAC1I;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,mBAAmB;AAC9B,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;AACA,aAAa,mBAAmB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,kBAAkB;AACtC;AACA,wBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,0BAA0B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,oCAAoC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2GAA2G,OAAO;AAClH;AACA,4BAA4B,eAAe,GAAG,WAAW;AACzD;AACA;AACA;AACA,cAAc,YAAY;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,cAAc;AAChD;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,cAAc;AACpD,8BAA8B,yBAAyB;AACvD,+BAA+B,yBAAyB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,cAAc;AACpD;AACA;AACA;AACA;AACA;AACA,sCAAsC,cAAc;AACpD;AACA;AACA;AACA;AACA;AACA,sCAAsC,cAAc;AACpD;AACA;AACA;AACA;AACA;AACA,sCAAsC,cAAc;AACpD;AACA;AACA;AACA;AACA;AACA,yCA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A;AACA;AACA,eAAe,eAAe;AAC9B,iBAAiB,eAAe;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,eAAe,eAAe;AAC9B,iBAAiB,eAAe;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D,aAAa,oCAAoC,kBAAkB,8BAA8B,GAAG;AAChK;AACA;AACA;AACA,qFAAqF,oCAAoC;AACzH,SAAS;AACT;AACA;AACA;AACA;AACA,eAAe,sBAAsB;AACrC,eAAe,YAAY;AAC3B,eAAe,QAAQ;AACvB,eAAe,iBAAiB;AAChC,iBAAiB,eAAe;AAChC;AACA;AACA;AACA,uCAAuC,0BAA0B;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,iBAAiB,sBAAsB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B,iBAAiB,iBAAiB;AAClC;AACA;AACA;AACA,kBAAkB,QAAQ,iCAAiC;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,mBAAmB,MAAgC;AACnD,4BAA4B,+DAA+D,iBAAiB;AAC5G,0BAA0B,OAAO;AACjC,oCAAoC,MAAM,+BAA+B,YAAY;AACrF,mCAAmC,MAAM,mCAAmC,YAAY;AACxF,gCAAgC;AAChC;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,mBAAmB;AAClC,eAAe,cAAc;AAC7B,iBAAiB,cAAc;AAC/B;AACA;AACA,gBAAgB,sCAAsC;AACtD,gBAAgB,gBAAgB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,aAAa;AAC3C;AACA,gCAAgC,wBAAwB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,WAAW;AACvC;AACA;AACA,gCAAgC,YAAY;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA4D,kBAAkB;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,uBAAuB,8BAA8B;AACzG;AACA,0BAA0B,qBAAqB;AAC/C;AACA,sCAAsC,oCAAoC;AAC1E;AACA,+BAA+B,OAAO;AACtC;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAsE;AACtE;AACA,4GAA4G;AAC5G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,MAAgC;AACnD,4BAA4B,+DAA+D,iBAAiB;AAC5G,0BAA0B,OAAO;AACjC,oCAAoC,MAAM,+BAA+B,YAAY;AACrF,mCAAmC,MAAM,mCAAmC,YAAY;AACxF,gCAAgC;AAChC;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0BAA0B;AAC1B;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,oBAAoB,iBAAiB;AACrC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA,MAAM;;AAEN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,oCAAoC;AAC5D;AACA;AACA;AACA;AACA;AACA,wBAAwB,oCAAoC;AAC5D;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,MAAgC;AACnD,4BAA4B,+DAA+D,iBAAiB;AAC5G,0BAA0B,OAAO;AACjC,oCAAoC,MAAM,+BAA+B,YAAY;AACrF,mCAAmC,MAAM,mCAAmC,YAAY;AACxF,gCAAgC;AAChC;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;;AAGA;AACA,MAAM;;AAEN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,MAAgC;AACnD,4BAA4B,+DAA+D,iBAAiB;AAC5G,0BAA0B,OAAO;AACjC,oCAAoC,MAAM,+BAA+B,YAAY;AACrF,mCAAmC,MAAM,mCAAmC,YAAY;AACxF,gCAAgC;AAChC;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAM;;AAEN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA,iBAAiB,MAAgC;AACjD,4BAA4B,+DAA+D,iBAAiB;AAC5G,0BAA0B,OAAO;AACjC,oCAAoC,MAAM,+BAA+B,YAAY;AACrF,mCAAmC,MAAM,mCAAmC,YAAY;AACxF,gCAAgC;AAChC;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc;;AAEd;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,CAAC;AACD,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,6DAA6D,KAAK;AAClE,4DAA4D,KAAK;AACjE;AACA;AACA,0CAA0C,MAAM;AAChD;AACA,oBAAoB,UAAU,uBAAuB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,KAAK;AACzB;AACA;AACA;AACA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,SAAS,YAAY;AACzC;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,0CAA0C,gCAAgC;AAC1E;AACA;AACA;AACA;AACA,0BAA0B;AAC1B,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,0CAA0C,+BAA+B;AACzE;AACA;AACA;AACA;AACA,0BAA0B;AAC1B,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,+BAA+B,gBAAgB;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB,aAAa,gCAAgC,iBAAiB,oDAAoD,OAAO,iBAAiB,oDAAoD,WAAW,yDAAyD,OAAO,+BAA+B,eAAe,4BAA4B,+DAA+D,8BAA8B,uBAAuB,IAAI,gCAAgC,IAAI,OAAO,GAAG,IAAI,uBAAuB,MAAM,aAAa,uBAAuB,GAAG,+BAA+B,iBAAiB,EAAE,KAAK,oFAAoF,aAAa,iBAAiB,GAAG,KAAK,iGAAiG,MAAM,QAAQ,qCAAqC,GAAG,6BAA6B,MAAM,4BAA4B,QAAQ,0CAA0C,SAAS,KAAK,oFAAoF,WAAW,MAAM,4BAA4B,QAAQ,yCAAyC,YAAY,SAAS,aAAa,OAAO,kBAAkB,qBAAqB,GAAG,GAAG,IAAI,GAAG;;AAE7yC;AACA;AACA;;AAEA;AACA;AACA,oCAAoC,KAAK,GAAG,SAAS;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,4BAA4B,QAAQ;;AAEpC;AACA,YAAY,wBAAwB;AACpC,YAAY,wBAAwB;AACpC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED,sCAAsC,OAAO;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,sCAAsC,OAAO;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,sDAAsD;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,gBAAgB;AAClC;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,qEAAqE,sCAAsC;AAC3G;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,qDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAuE,UAAU;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,yBAAyB;AACzB,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,yBAAyB;AACzB,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAyF,eAAe;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,OAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAsE;AACtE;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,0EAA0E,eAAe;AACzF;AACA,8EAA8E,OAAO,UAAU,MAAM;AACrG;AACA;AACA;AACA,2DAA2D,cAAc;AACzE,6DAA6D,cAAc;AAC3E,qEAAqE,cAAc;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFAAuF,0BAA0B;AACjH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAA0E,0BAA0B;AACpG;AACA;AACA,SAAS;AACT;AACA;AACA,8CAA8C,UAAU;AACxD;AACA;AACA;AACA,sBAAsB;AACtB,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,uBAAuB;AACvB,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,uBAAuB;AACvB,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA8D,eAAe;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEwY;AACxY;;;;;;;;;;;;ACrpHa;;AAEb,6BAA6B,mBAAO,CAAC,0IAAuD;AAC5F,6BAA6B,mBAAO,CAAC,wIAAsD;AAC3F;AACA;AACA,CAAC;AACD,kBAAe;AACf,oCAAoC,mBAAO,CAAC,wHAA8C;AAC1F,wCAAwC,mBAAO,CAAC,0HAA+C;AAC/F,iBAAiB,mBAAO,CAAC,6EAAmB;AAC5C,cAAc,mBAAO,CAAC,qEAAe;AACrC,cAAc,mBAAO,CAAC,mDAAQ;AAC9B;AACA;AACA;;AAEA,YAAY,mBAAO,CAAC,sDAAO;;AAE3B;AACA,aAAa,QAAQ;AACrB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB,eAAe;AACf;AACA;AACA,wEAAwE,aAAa;AACrF;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,kHAAkH,MAAM;AACxH,QAAQ;AACR,sFAAsF,EAAE;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,eAAe;AACf;AACA,yBAAyB,0CAA0C;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,UAAU;AACV,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA,yBAAyB,6BAA6B;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,UAAU;AACV,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA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,mDAAQ;AAC9B,mCAAmC,mBAAO,CAAC,+FAAM;AACjD;AACA;AACA;AACA;AACA;AACA,UAAU,mBAAO,CAAC,8DAAc;AAChC;AACA,0EAA0E;;AAE1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ,OAAO;AAC5B,aAAa,SAAS;AACtB;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,IAAI,OAAO;AACX;AACA;AACA,OAAO;AACP;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,MAAM;AACN;AACA;AACA,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA,MAAM;AACN;AACA;AACA,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,iBAAW;AACtC;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA,KAAK;AACL,GAAG;AACH;AACA,gBAAgB,yBAAyB;AACzC;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,SAAS;AACtB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,oDAAoD;AACpD;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;AACD,eAAe,kBAAe;AAC9B;;;;;;;;;;;;AC5Xa;;AAEb,6BAA6B,mBAAO,CAAC,0IAAuD;AAC5F;AACA;AACA,CAAC;AACD,kBAAe;AACf;AACA;AACA;AACA,eAAe,kBAAe;AAC9B;AACA;AACA,yBAAyB,qCAAqC;AAC9D;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACtBa;;AAEb,6BAA6B,mBAAO,CAAC,0IAAuD;AAC5F,6BAA6B,mBAAO,CAAC,wIAAsD;AAC3F;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,mBAAO,CAAC,qGAA+B;AACvC,iBAAiB,mBAAO,CAAC,6EAAmB;AAC5C,4CAA4C,mBAAO,CAAC,qGAAiB;AACrE,qCAAqC,mBAAO,CAAC,uFAAU;AACvD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,CAAC;AACD;;;;;;;;;;;AChCA,SAAS,mBAAO,CAAC,4FAAM;AACvB,SAAS,mBAAO,CAAC,4FAAM;;AAEvB;AACA;AACA;;AAEA;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA,gBAAgB,SAAS;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;ACzBA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,QAAQ;AAC/B;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;ACjCA,UAAU,mBAAO,CAAC,8GAAW;AAC7B,kBAAkB,mBAAO,CAAC,sHAAmB;;AAE7C;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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;AACrB,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP;AACA,OAAO;AACP;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,SAAS;AACtB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,SAAS;AACtB,aAAa,SAAS;AACtB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,aAAa,OAAO;AACpB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;AACH;AACA;AACA,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,SAAS;AACT;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;AACD,eAAe,kBAAe;AAC9B;;;;;;;;;;;;ACjhBa;;AAEb,6BAA6B,mBAAO,CAAC,0IAAuD;AAC5F,6BAA6B,mBAAO,CAAC,wIAAsD;AAC3F;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,mBAAO,CAAC,qGAA+B;AACvC,iBAAiB,mBAAO,CAAC,6EAAmB;AAC5C,4CAA4C,mBAAO,CAAC,gGAAkB;AACtE,qCAAqC,mBAAO,CAAC,gFAAU;AACvD;AACA;AACA;;AAEA;;AAEA;AACA;AACA,CAAC;AACD;;;;;;;;;;;AChCA,SAAS,mBAAO,CAAC,qFAAM;AACvB,SAAS,mBAAO,CAAC,qFAAM;;AAEvB;AACA;AACA;;AAEA;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA,gBAAgB,SAAS;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;ACzBA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;;AAEA;AACA,u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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAoE,6BAA6B;AACjG;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA,eAAe;AACf;AACA;AACA,yEAAyE,cAAc;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,KAAoD,EAAE,YAMzD;AACT;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA,eAAe;AACf;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,iBAAW;AACnC,aAAa,iBAAW;AACxB;;AAEA;AACA,QAAQ,KAA+B,EAAE,EAEpC;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,SAAS;AACtB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,GAAG;AACH;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,MAAM;AACjB,WAAW,MAAM;AACjB;AACA;AACA;AACA;AACA,aAAa,UAAU;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAY,KAAsF,EAAE,EAE3F;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,gBAAgB,kBAAe;AAC/B;;;;;;;;;;;;AC5ba;;AAEb,6BAA6B,mBAAO,CAAC,0IAAuD;AAC5F;AACA;AACA,CAAC;AACD,kBAAe;AACf;AACA;AACA;AACA,eAAe,kBAAe;AAC9B;AACA;AACA;A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ACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,aAAa,MAAM;AACnB,eAAe;AACf;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,aAAa,QAAQ;AACrB,eAAe;AACf;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,OAAO;AACpB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,eAAe,iBAAiB;AAChC,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,eAAe,SAAS;AACxB,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,MAAM;AACnB,eAAe,SAAS;AACxB,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,MAAM;AACnB,aAAa,MAAM;AACnB,aAAa,SAAS;AACtB,eAAe,SAAS;AACxB,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,MAAM;AACnB,eAAe,SAAS;AACxB,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,cAAc;AAC3B,aAAa,UAAU;AACvB,aAAa,QAAQ;AACrB,eAAe,SAAS;AACxB,cAAc,iBAAiB;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,eAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA,CAAC;AACD,eAAe,kBAAe;AAC9B;;;;;;;;;;;;ACzYa;;AAEb,6BAA6B,mBAAO,CAAC,0IAAuD;AAC5F,6BAA6B,mBAAO,CAAC,wIAAsD;AAC3F;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,iBAAiB,mBAAO,CAAC,6EAAmB;AAC5C,kCAAkC,mBAAO,CAAC,2FAAO;AACjD,qCAAqC,mBAAO,CAAC,iGAAU;AACvD;AACA;AACA,CAAC;AACD;;;;;;;;;;;ACnBA,SAAS,mBAAO,CAAC,8DAAM;AACvB,SAAS,mBAAO,CAAC,8DAAM;;AAEvB;AACA;AACA;;AAEA;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA,gBAAgB,SAAS;AACzB;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;ACzBA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;;AAEA;AACA,uBAAuB,QAAQ;AAC/B;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;ACjCA,UAAU,mBAAO,CAAC,gFAAW;AAC7B,kBAAkB,mBAAO,CAAC,wFAAmB;;AAE7C;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,oCAAoC;AACpC;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,kBAAkB,OAAO;AACzB;AACA;;AAEA;AACA;;AAEA;;;;;;;;;;;AC5GA,UAAU,mBAAO,CAAC,gFAAW;AAC7B,kBAAkB,mBAAO,CAAC,wFAAmB;;AAE7C;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,SAAS;AAC9B;AACA;AACA;;AAEA;AACA;;AAEA","sources":["webpack://@agentx/agentx/../../node_modules/@webex/media-helpers/dist/constants.js","webpack://@agentx/agentx/../../node_modules/@webex/media-helpers/dist/index.js","webpack://@agentx/agentx/../../node_modules/@webex/media-helpers/dist/webrtc-core.js","webpack://@agentx/agentx/../../node_modules/@webex/media-helpers/node_modules/@webex/web-media-effects/dist/esm/index.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-attachment-actions/dist/attachmentActions.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-attachment-actions/dist/index.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-authorization-browser/dist/authorization.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-authorization-browser/dist/config.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-authorization-browser/dist/index.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-authorization-browser/node_modules/uuid/index.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-authorization-browser/node_modules/uuid/lib/bytesToUuid.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-authorization-browser/node_modules/uuid/lib/rng-browser.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-authorization-browser/node_modules/uuid/v1.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-authorization-browser/node_modules/uuid/v4.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-authorization/dist/index.browser.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-device-manager/dist/collection.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-device-manager/dist/config.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-device-manager/dist/constants.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-device-manager/dist/device-manager.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-device-manager/dist/index.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-device-manager/node_modules/uuid/index.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-device-manager/node_modules/uuid/lib/bytesToUuid.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-device-manager/node_modules/uuid/lib/rng-browser.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-device-manager/node_modules/uuid/v1.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-device-manager/node_modules/uuid/v4.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-logger/dist/config.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-logger/dist/index.js","webpack://@agentx/agentx/../../node_modules/@webex/plugin-logger/dist/logger.js","webpack://@agentx/agentx/../../node_modules/webex/node_modules/@webex/internal-plugin-dss/dist/config.js","webpack://@agentx/agentx/../../node_modules/webex/node_modules/@webex/internal-plugin-dss/dist/constants.js","webpack://@agentx/agentx/../../node_modules/webex/node_modules/@webex/internal-plugin-dss/dist/dss-batcher.js","webpack://@agentx/agentx/../../node_modules/webex/node_modules/@webex/internal-plugin-dss/dist/dss-errors.js","webpack://@agentx/agentx/../../node_modules/webex/node_modules/@webex/internal-plugin-dss/dist/dss.js","webpack://@agentx/agentx/../../node_modules/webex/node_modules/@webex/internal-plugin-dss/dist/index.js","webpack://@agentx/agentx/../../node_modules/webex/node_modules/uuid/index.js","webpack://@agentx/agentx/../../node_modules/webex/node_modules/uuid/lib/bytesToUuid.js","webpack://@agentx/agentx/../../node_modules/webex/node_modules/uuid/lib/rng-browser.js","webpack://@agentx/agentx/../../node_modules/webex/node_modules/uuid/v1.js","webpack://@agentx/agentx/../../node_modules/webex/node_modules/uuid/v4.js"],"sourcesContent":["\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.PresetCameraConstraints = exports.FacingMode = exports.DisplaySurface = void 0;\nvar FacingMode = exports.FacingMode = /*#__PURE__*/function (FacingMode) {\n FacingMode[\"user\"] = \"user\";\n FacingMode[\"environment\"] = \"environment\";\n return FacingMode;\n}({}); // can be used later on when we add constraints in create display track\nvar DisplaySurface = exports.DisplaySurface = /*#__PURE__*/function (DisplaySurface) {\n DisplaySurface[\"browser\"] = \"browser\";\n DisplaySurface[\"monitor\"] = \"monitor\";\n DisplaySurface[\"window\"] = \"window\";\n return DisplaySurface;\n}({});\nvar PresetCameraConstraints = exports.PresetCameraConstraints = {\n '1080p': {\n frameRate: 30,\n width: 1920,\n height: 1080\n },\n '720p': {\n frameRate: 30,\n width: 1280,\n height: 720\n },\n '480p': {\n frameRate: 30,\n width: 640,\n height: 480\n },\n '360p': {\n frameRate: 30,\n width: 640,\n height: 360\n },\n '240p': {\n frameRate: 30,\n width: 320,\n height: 240\n },\n '180p': {\n frameRate: 30,\n width: 320,\n height: 180\n },\n '120p': {\n frameRate: 30,\n width: 160,\n height: 120\n }\n};\n//# sourceMappingURL=constants.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\n_Object$defineProperty(exports, \"DisplaySurface\", {\n enumerable: true,\n get: function get() {\n return _constants.DisplaySurface;\n }\n});\n_Object$defineProperty(exports, \"FacingMode\", {\n enumerable: true,\n get: function get() {\n return _constants.FacingMode;\n }\n});\n_Object$defineProperty(exports, \"LocalCameraStream\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.LocalCameraStream;\n }\n});\n_Object$defineProperty(exports, \"LocalCameraStreamEventNames\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.LocalCameraStreamEventNames;\n }\n});\n_Object$defineProperty(exports, \"LocalDisplayStream\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.LocalDisplayStream;\n }\n});\n_Object$defineProperty(exports, \"LocalMicrophoneStream\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.LocalMicrophoneStream;\n }\n});\n_Object$defineProperty(exports, \"LocalMicrophoneStreamEventNames\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.LocalMicrophoneStreamEventNames;\n }\n});\n_Object$defineProperty(exports, \"LocalStream\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.LocalStream;\n }\n});\n_Object$defineProperty(exports, \"LocalStreamEventNames\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.LocalStreamEventNames;\n }\n});\n_Object$defineProperty(exports, \"LocalSystemAudioStream\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.LocalSystemAudioStream;\n }\n});\n_Object$defineProperty(exports, \"NoiseReductionEffect\", {\n enumerable: true,\n get: function get() {\n return _webMediaEffects.NoiseReductionEffect;\n }\n});\n_Object$defineProperty(exports, \"PresetCameraConstraints\", {\n enumerable: true,\n get: function get() {\n return _constants.PresetCameraConstraints;\n }\n});\n_Object$defineProperty(exports, \"RemoteStream\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.RemoteStream;\n }\n});\n_Object$defineProperty(exports, \"RemoteStreamEventNames\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.RemoteStreamEventNames;\n }\n});\n_Object$defineProperty(exports, \"StreamEventNames\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.StreamEventNames;\n }\n});\n_Object$defineProperty(exports, \"VirtualBackgroundEffect\", {\n enumerable: true,\n get: function get() {\n return _webMediaEffects.VirtualBackgroundEffect;\n }\n});\n_Object$defineProperty(exports, \"createCameraAndMicrophoneStreams\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.createCameraAndMicrophoneStreams;\n }\n});\n_Object$defineProperty(exports, \"createCameraStream\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.createCameraStream;\n }\n});\n_Object$defineProperty(exports, \"createDisplayMedia\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.createDisplayMedia;\n }\n});\n_Object$defineProperty(exports, \"createDisplayStream\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.createDisplayStream;\n }\n});\n_Object$defineProperty(exports, \"createDisplayStreamWithAudio\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.createDisplayStreamWithAudio;\n }\n});\n_Object$defineProperty(exports, \"createMicrophoneStream\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.createMicrophoneStream;\n }\n});\n_Object$defineProperty(exports, \"getDevices\", {\n enumerable: true,\n get: function get() {\n return _webrtcCore.getDevices;\n }\n});\nvar _webrtcCore = require(\"./webrtc-core\");\nvar _webMediaEffects = require(\"@webex/web-media-effects\");\nvar _constants = require(\"./constants\");\n//# sourceMappingURL=index.js.map\n","\"use strict\";\n\nvar _Reflect$construct = require(\"@babel/runtime-corejs2/core-js/reflect/construct\");\nvar _Object$keys = require(\"@babel/runtime-corejs2/core-js/object/keys\");\nvar _Object$getOwnPropertySymbols = require(\"@babel/runtime-corejs2/core-js/object/get-own-property-symbols\");\nvar _Object$getOwnPropertyDescriptor = require(\"@babel/runtime-corejs2/core-js/object/get-own-property-descriptor\");\nvar _Object$getOwnPropertyDescriptors = require(\"@babel/runtime-corejs2/core-js/object/get-own-property-descriptors\");\nvar _Object$defineProperties = require(\"@babel/runtime-corejs2/core-js/object/define-properties\");\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\nvar _interopRequireDefault = require(\"@babel/runtime-corejs2/helpers/interopRequireDefault\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.LocalCameraStreamEventNames = exports.LocalCameraStream = void 0;\n_Object$defineProperty(exports, \"LocalDisplayStream\", {\n enumerable: true,\n get: function get() {\n return _internalMediaCore.LocalDisplayStream;\n }\n});\nexports.LocalMicrophoneStreamEventNames = exports.LocalMicrophoneStream = void 0;\n_Object$defineProperty(exports, \"LocalStream\", {\n enumerable: true,\n get: function get() {\n return _internalMediaCore.LocalStream;\n }\n});\n_Object$defineProperty(exports, \"LocalStreamEventNames\", {\n enumerable: true,\n get: function get() {\n return _internalMediaCore.LocalStreamEventNames;\n }\n});\n_Object$defineProperty(exports, \"LocalSystemAudioStream\", {\n enumerable: true,\n get: function get() {\n return _internalMediaCore.LocalSystemAudioStream;\n }\n});\n_Object$defineProperty(exports, \"RemoteStream\", {\n enumerable: true,\n get: function get() {\n return _internalMediaCore.RemoteStream;\n }\n});\n_Object$defineProperty(exports, \"RemoteStreamEventNames\", {\n enumerable: true,\n get: function get() {\n return _internalMediaCore.RemoteStreamEventNames;\n }\n});\n_Object$defineProperty(exports, \"StreamEventNames\", {\n enumerable: true,\n get: function get() {\n return _internalMediaCore.StreamEventNames;\n }\n});\nexports.createMicrophoneStream = exports.createDisplayStreamWithAudio = exports.createDisplayStream = exports.createDisplayMedia = exports.createCameraStream = exports.createCameraAndMicrophoneStreams = void 0;\n_Object$defineProperty(exports, \"getDevices\", {\n enumerable: true,\n get: function get() {\n return _internalMediaCore.getDevices;\n }\n});\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/classCallCheck\"));\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/createClass\"));\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/assertThisInitialized\"));\nvar _get2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/get\"));\nvar _inherits2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/inherits\"));\nvar _possibleConstructorReturn2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/possibleConstructorReturn\"));\nvar _getPrototypeOf2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/getPrototypeOf\"));\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/defineProperty\"));\nvar _internalMediaCore = require(\"@webex/internal-media-core\");\nvar _tsEvents = require(\"@webex/ts-events\");\nvar _LocalMicrophoneStrea, _LocalCameraStreamEve;\n/* eslint-disable @typescript-eslint/no-misused-new */\n/* eslint-disable valid-jsdoc */\n/* eslint-disable require-jsdoc */\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n// server forced the client to be unmuted\n// these events are in addition to WCME events. This will be properly typed once webrtc-core event types inheritance is fixed\nvar LocalMicrophoneStreamEventNames = exports.LocalMicrophoneStreamEventNames = /*#__PURE__*/function (LocalMicrophoneStreamEventNames) {\n LocalMicrophoneStreamEventNames[\"ServerMuted\"] = \"muted:byServer\";\n return LocalMicrophoneStreamEventNames;\n}({}); // these events are in addition to WCME events. This will be properly typed once webrtc-core event types inheritance is fixed\nvar LocalCameraStreamEventNames = exports.LocalCameraStreamEventNames = /*#__PURE__*/function (LocalCameraStreamEventNames) {\n LocalCameraStreamEventNames[\"ServerMuted\"] = \"muted:byServer\";\n return LocalCameraStreamEventNames;\n}({});\n_LocalMicrophoneStrea = LocalMicrophoneStreamEventNames.ServerMuted;\nvar _LocalMicrophoneStream = /*#__PURE__*/function (_WcmeLocalMicrophoneS) {\n (0, _inherits2.default)(_LocalMicrophoneStream, _WcmeLocalMicrophoneS);\n var _super = _createSuper(_LocalMicrophoneStream);\n function _LocalMicrophoneStream() {\n var _this;\n (0, _classCallCheck2.default)(this, _LocalMicrophoneStream);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(args));\n (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), \"unmuteAllowed\", true);\n (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), _LocalMicrophoneStrea, new _tsEvents.TypedEvent());\n return _this;\n }\n (0, _createClass2.default)(_LocalMicrophoneStream, [{\n key: \"setUnmuteAllowed\",\n value:\n /**\n * @internal\n */\n function setUnmuteAllowed(allowed) {\n this.unmuteAllowed = allowed;\n }\n\n /**\n * @returns true if user is allowed to unmute the track, false otherwise\n */\n }, {\n key: \"isUnmuteAllowed\",\n value: function isUnmuteAllowed() {\n return this.unmuteAllowed;\n }\n }, {\n key: \"setUserMuted\",\n value: function setUserMuted(muted) {\n if (!muted) {\n if (!this.isUnmuteAllowed()) {\n throw new Error('Unmute is not allowed');\n }\n }\n return (0, _get2.default)((0, _getPrototypeOf2.default)(_LocalMicrophoneStream.prototype), \"setUserMuted\", this).call(this, muted);\n }\n\n /**\n * @internal\n */\n }, {\n key: \"setServerMuted\",\n value: function setServerMuted(muted, reason) {\n if (muted !== this.userMuted) {\n this.setUserMuted(muted);\n this[LocalMicrophoneStreamEventNames.ServerMuted].emit(muted, reason);\n }\n }\n }]);\n return _LocalMicrophoneStream;\n}(_internalMediaCore.LocalMicrophoneStream);\n_LocalCameraStreamEve = LocalCameraStreamEventNames.ServerMuted;\nvar _LocalCameraStream = /*#__PURE__*/function (_WcmeLocalCameraStrea) {\n (0, _inherits2.default)(_LocalCameraStream, _WcmeLocalCameraStrea);\n var _super2 = _createSuper(_LocalCameraStream);\n function _LocalCameraStream() {\n var _this2;\n (0, _classCallCheck2.default)(this, _LocalCameraStream);\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n _this2 = _super2.call.apply(_super2, [this].concat(args));\n (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), \"unmuteAllowed\", true);\n (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), _LocalCameraStreamEve, new _tsEvents.TypedEvent());\n return _this2;\n }\n (0, _createClass2.default)(_LocalCameraStream, [{\n key: \"setUnmuteAllowed\",\n value:\n /**\n * @internal\n */\n function setUnmuteAllowed(allowed) {\n this.unmuteAllowed = allowed;\n }\n\n /**\n * @returns true if user is allowed to unmute the track, false otherwise\n */\n }, {\n key: \"isUnmuteAllowed\",\n value: function isUnmuteAllowed() {\n return this.unmuteAllowed;\n }\n }, {\n key: \"setUserMuted\",\n value: function setUserMuted(muted) {\n if (!muted) {\n if (!this.isUnmuteAllowed()) {\n throw new Error('Unmute is not allowed');\n }\n }\n return (0, _get2.default)((0, _getPrototypeOf2.default)(_LocalCameraStream.prototype), \"setUserMuted\", this).call(this, muted);\n }\n\n /**\n * @internal\n */\n }, {\n key: \"setServerMuted\",\n value: function setServerMuted(muted, reason) {\n if (muted !== this.userMuted) {\n this.setUserMuted(muted);\n this[LocalCameraStreamEventNames.ServerMuted].emit(muted, reason);\n }\n }\n }]);\n return _LocalCameraStream;\n}(_internalMediaCore.LocalCameraStream);\nvar LocalMicrophoneStream = exports.LocalMicrophoneStream = (0, _tsEvents.AddEvents)(_LocalMicrophoneStream);\nvar LocalCameraStream = exports.LocalCameraStream = (0, _tsEvents.AddEvents)(_LocalCameraStream);\nvar createMicrophoneStream = exports.createMicrophoneStream = function createMicrophoneStream(constraints) {\n return (0, _internalMediaCore.createMicrophoneStream)(LocalMicrophoneStream, constraints);\n};\nvar createCameraStream = exports.createCameraStream = function createCameraStream(constraints) {\n return (0, _internalMediaCore.createCameraStream)(LocalCameraStream, constraints);\n};\nvar createCameraAndMicrophoneStreams = exports.createCameraAndMicrophoneStreams = function createCameraAndMicrophoneStreams(constraints) {\n return (0, _internalMediaCore.createCameraAndMicrophoneStreams)(LocalCameraStream, LocalMicrophoneStream, constraints);\n};\nvar createDisplayStream = exports.createDisplayStream = function createDisplayStream(videoContentHint) {\n return (0, _internalMediaCore.createDisplayStream)(_internalMediaCore.LocalDisplayStream, videoContentHint);\n};\nvar createDisplayStreamWithAudio = exports.createDisplayStreamWithAudio = function createDisplayStreamWithAudio(videoContentHint) {\n return (0, _internalMediaCore.createDisplayStreamWithAudio)(_internalMediaCore.LocalDisplayStream, _internalMediaCore.LocalSystemAudioStream, videoContentHint);\n};\nvar createDisplayMedia = exports.createDisplayMedia = function createDisplayMedia() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n video: {}\n };\n return (0, _internalMediaCore.createDisplayMedia)({\n video: _objectSpread({\n displayStreamConstructor: _internalMediaCore.LocalDisplayStream\n }, options === null || options === void 0 ? void 0 : options.video),\n audio: options !== null && options !== void 0 && options.audio ? _objectSpread({\n systemAudioStreamConstructor: _internalMediaCore.LocalSystemAudioStream\n }, options.audio) : undefined\n });\n};\n//# sourceMappingURL=webrtc-core.js.map\n","/**\n * Copyright (c) 2024 Cisco Systems, Inc. and/or its affiliated entities.\n * \n * Your use of the AI effects in this library (e.g., noise reduction, virtual background, etc.) are subject to the Cisco End User License Agreement located at: https://www.cisco.com/c/dam/en_us/about/doing_business/legal/eula/cisco_end_user_license_agreement-eng.pdf\n */\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __awaiter$6(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\n\n// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nfunction rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}\n\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nfunction unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nconst randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nvar native = {\n randomUUID\n};\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nvar events = {exports: {}};\n\nvar R = typeof Reflect === 'object' ? Reflect : null;\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n };\n\nvar ReflectOwnKeys;\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys;\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n};\n\nfunction EventEmitter$1() {\n EventEmitter$1.init.call(this);\n}\nevents.exports = EventEmitter$1;\nevents.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter$1.EventEmitter = EventEmitter$1;\n\nEventEmitter$1.prototype._events = undefined;\nEventEmitter$1.prototype._eventsCount = 0;\nEventEmitter$1.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter$1, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter$1.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter$1.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter$1.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter$1.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter$1.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter$1.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter$1.prototype.on = EventEmitter$1.prototype.addListener;\n\nEventEmitter$1.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter$1.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter$1.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter$1.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter$1.prototype.off = EventEmitter$1.prototype.removeListener;\n\nEventEmitter$1.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter$1.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter$1.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter$1.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter$1.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter$1.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n }\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n\nclass EventEmitter extends events.exports.EventEmitter {\r\n}\n\nvar logger$1 = {exports: {}};\n\n/*!\r\n * js-logger - http://github.com/jonnyreeves/js-logger\r\n * Jonny Reeves, http://jonnyreeves.co.uk/\r\n * js-logger may be freely distributed under the MIT license.\r\n */\n\n(function (module) {\n(function (global) {\r\n\r\n\t// Top level module for the global, static logger instance.\r\n\tvar Logger = { };\r\n\r\n\t// For those that are at home that are keeping score.\r\n\tLogger.VERSION = \"1.6.1\";\r\n\r\n\t// Function which handles all incoming log messages.\r\n\tvar logHandler;\r\n\r\n\t// Map of ContextualLogger instances by name; used by Logger.get() to return the same named instance.\r\n\tvar contextualLoggersByNameMap = {};\r\n\r\n\t// Polyfill for ES5's Function.bind.\r\n\tvar bind = function(scope, func) {\r\n\t\treturn function() {\r\n\t\t\treturn func.apply(scope, arguments);\r\n\t\t};\r\n\t};\r\n\r\n\t// Super exciting object merger-matron 9000 adding another 100 bytes to your download.\r\n\tvar merge = function () {\r\n\t\tvar args = arguments, target = args[0], key, i;\r\n\t\tfor (i = 1; i < args.length; i++) {\r\n\t\t\tfor (key in args[i]) {\r\n\t\t\t\tif (!(key in target) && args[i].hasOwnProperty(key)) {\r\n\t\t\t\t\ttarget[key] = args[i][key];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn target;\r\n\t};\r\n\r\n\t// Helper to define a logging level object; helps with optimisation.\r\n\tvar defineLogLevel = function(value, name) {\r\n\t\treturn { value: value, name: name };\r\n\t};\r\n\r\n\t// Predefined logging levels.\r\n\tLogger.TRACE = defineLogLevel(1, 'TRACE');\r\n\tLogger.DEBUG = defineLogLevel(2, 'DEBUG');\r\n\tLogger.INFO = defineLogLevel(3, 'INFO');\r\n\tLogger.TIME = defineLogLevel(4, 'TIME');\r\n\tLogger.WARN = defineLogLevel(5, 'WARN');\r\n\tLogger.ERROR = defineLogLevel(8, 'ERROR');\r\n\tLogger.OFF = defineLogLevel(99, 'OFF');\r\n\r\n\t// Inner class which performs the bulk of the work; ContextualLogger instances can be configured independently\r\n\t// of each other.\r\n\tvar ContextualLogger = function(defaultContext) {\r\n\t\tthis.context = defaultContext;\r\n\t\tthis.setLevel(defaultContext.filterLevel);\r\n\t\tthis.log = this.info; // Convenience alias.\r\n\t};\r\n\r\n\tContextualLogger.prototype = {\r\n\t\t// Changes the current logging level for the logging instance.\r\n\t\tsetLevel: function (newLevel) {\r\n\t\t\t// Ensure the supplied Level object looks valid.\r\n\t\t\tif (newLevel && \"value\" in newLevel) {\r\n\t\t\t\tthis.context.filterLevel = newLevel;\r\n\t\t\t}\r\n\t\t},\r\n\t\t\r\n\t\t// Gets the current logging level for the logging instance\r\n\t\tgetLevel: function () {\r\n\t\t\treturn this.context.filterLevel;\r\n\t\t},\r\n\r\n\t\t// Is the logger configured to output messages at the supplied level?\r\n\t\tenabledFor: function (lvl) {\r\n\t\t\tvar filterLevel = this.context.filterLevel;\r\n\t\t\treturn lvl.value >= filterLevel.value;\r\n\t\t},\r\n\r\n\t\ttrace: function () {\r\n\t\t\tthis.invoke(Logger.TRACE, arguments);\r\n\t\t},\r\n\r\n\t\tdebug: function () {\r\n\t\t\tthis.invoke(Logger.DEBUG, arguments);\r\n\t\t},\r\n\r\n\t\tinfo: function () {\r\n\t\t\tthis.invoke(Logger.INFO, arguments);\r\n\t\t},\r\n\r\n\t\twarn: function () {\r\n\t\t\tthis.invoke(Logger.WARN, arguments);\r\n\t\t},\r\n\r\n\t\terror: function () {\r\n\t\t\tthis.invoke(Logger.ERROR, arguments);\r\n\t\t},\r\n\r\n\t\ttime: function (label) {\r\n\t\t\tif (typeof label === 'string' && label.length > 0) {\r\n\t\t\t\tthis.invoke(Logger.TIME, [ label, 'start' ]);\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\ttimeEnd: function (label) {\r\n\t\t\tif (typeof label === 'string' && label.length > 0) {\r\n\t\t\t\tthis.invoke(Logger.TIME, [ label, 'end' ]);\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\t// Invokes the logger callback if it's not being filtered.\r\n\t\tinvoke: function (level, msgArgs) {\r\n\t\t\tif (logHandler && this.enabledFor(level)) {\r\n\t\t\t\tlogHandler(msgArgs, merge({ level: level }, this.context));\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\t// Protected instance which all calls to the to level `Logger` module will be routed through.\r\n\tvar globalLogger = new ContextualLogger({ filterLevel: Logger.OFF });\r\n\r\n\t// Configure the global Logger instance.\r\n\t(function() {\r\n\t\t// Shortcut for optimisers.\r\n\t\tvar L = Logger;\r\n\r\n\t\tL.enabledFor = bind(globalLogger, globalLogger.enabledFor);\r\n\t\tL.trace = bind(globalLogger, globalLogger.trace);\r\n\t\tL.debug = bind(globalLogger, globalLogger.debug);\r\n\t\tL.time = bind(globalLogger, globalLogger.time);\r\n\t\tL.timeEnd = bind(globalLogger, globalLogger.timeEnd);\r\n\t\tL.info = bind(globalLogger, globalLogger.info);\r\n\t\tL.warn = bind(globalLogger, globalLogger.warn);\r\n\t\tL.error = bind(globalLogger, globalLogger.error);\r\n\r\n\t\t// Don't forget the convenience alias!\r\n\t\tL.log = L.info;\r\n\t}());\r\n\r\n\t// Set the global logging handler. The supplied function should expect two arguments, the first being an arguments\r\n\t// object with the supplied log messages and the second being a context object which contains a hash of stateful\r\n\t// parameters which the logging function can consume.\r\n\tLogger.setHandler = function (func) {\r\n\t\tlogHandler = func;\r\n\t};\r\n\r\n\t// Sets the global logging filter level which applies to *all* previously registered, and future Logger instances.\r\n\t// (note that named loggers (retrieved via `Logger.get`) can be configured independently if required).\r\n\tLogger.setLevel = function(level) {\r\n\t\t// Set the globalLogger's level.\r\n\t\tglobalLogger.setLevel(level);\r\n\r\n\t\t// Apply this level to all registered contextual loggers.\r\n\t\tfor (var key in contextualLoggersByNameMap) {\r\n\t\t\tif (contextualLoggersByNameMap.hasOwnProperty(key)) {\r\n\t\t\t\tcontextualLoggersByNameMap[key].setLevel(level);\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\t// Gets the global logging filter level\r\n\tLogger.getLevel = function() {\r\n\t\treturn globalLogger.getLevel();\r\n\t};\r\n\r\n\t// Retrieve a ContextualLogger instance. Note that named loggers automatically inherit the global logger's level,\r\n\t// default context and log handler.\r\n\tLogger.get = function (name) {\r\n\t\t// All logger instances are cached so they can be configured ahead of use.\r\n\t\treturn contextualLoggersByNameMap[name] ||\r\n\t\t\t(contextualLoggersByNameMap[name] = new ContextualLogger(merge({ name: name }, globalLogger.context)));\r\n\t};\r\n\r\n\t// CreateDefaultHandler returns a handler function which can be passed to `Logger.setHandler()` which will\r\n\t// write to the window's console object (if present); the optional options object can be used to customise the\r\n\t// formatter used to format each log message.\r\n\tLogger.createDefaultHandler = function (options) {\r\n\t\toptions = options || {};\r\n\r\n\t\toptions.formatter = options.formatter || function defaultMessageFormatter(messages, context) {\r\n\t\t\t// Prepend the logger's name to the log message for easy identification.\r\n\t\t\tif (context.name) {\r\n\t\t\t\tmessages.unshift(\"[\" + context.name + \"]\");\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// Map of timestamps by timer labels used to track `#time` and `#timeEnd()` invocations in environments\r\n\t\t// that don't offer a native console method.\r\n\t\tvar timerStartTimeByLabelMap = {};\r\n\r\n\t\t// Support for IE8+ (and other, slightly more sane environments)\r\n\t\tvar invokeConsoleMethod = function (hdlr, messages) {\r\n\t\t\tFunction.prototype.apply.call(hdlr, console, messages);\r\n\t\t};\r\n\r\n\t\t// Check for the presence of a logger.\r\n\t\tif (typeof console === \"undefined\") {\r\n\t\t\treturn function () { /* no console */ };\r\n\t\t}\r\n\r\n\t\treturn function(messages, context) {\r\n\t\t\t// Convert arguments object to Array.\r\n\t\t\tmessages = Array.prototype.slice.call(messages);\r\n\r\n\t\t\tvar hdlr = console.log;\r\n\t\t\tvar timerLabel;\r\n\r\n\t\t\tif (context.level === Logger.TIME) {\r\n\t\t\t\ttimerLabel = (context.name ? '[' + context.name + '] ' : '') + messages[0];\r\n\r\n\t\t\t\tif (messages[1] === 'start') {\r\n\t\t\t\t\tif (console.time) {\r\n\t\t\t\t\t\tconsole.time(timerLabel);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\ttimerStartTimeByLabelMap[timerLabel] = new Date().getTime();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (console.timeEnd) {\r\n\t\t\t\t\t\tconsole.timeEnd(timerLabel);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tinvokeConsoleMethod(hdlr, [ timerLabel + ': ' +\r\n\t\t\t\t\t\t\t(new Date().getTime() - timerStartTimeByLabelMap[timerLabel]) + 'ms' ]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Delegate through to custom warn/error loggers if present on the console.\r\n\t\t\t\tif (context.level === Logger.WARN && console.warn) {\r\n\t\t\t\t\thdlr = console.warn;\r\n\t\t\t\t} else if (context.level === Logger.ERROR && console.error) {\r\n\t\t\t\t\thdlr = console.error;\r\n\t\t\t\t} else if (context.level === Logger.INFO && console.info) {\r\n\t\t\t\t\thdlr = console.info;\r\n\t\t\t\t} else if (context.level === Logger.DEBUG && console.debug) {\r\n\t\t\t\t\thdlr = console.debug;\r\n\t\t\t\t} else if (context.level === Logger.TRACE && console.trace) {\r\n\t\t\t\t\thdlr = console.trace;\r\n\t\t\t\t}\r\n\r\n\t\t\t\toptions.formatter(messages, context);\r\n\t\t\t\tinvokeConsoleMethod(hdlr, messages);\r\n\t\t\t}\r\n\t\t};\r\n\t};\r\n\r\n\t// Configure and example a Default implementation which writes to the `window.console` (if present). The\r\n\t// `options` hash can be used to configure the default logLevel and provide a custom message formatter.\r\n\tLogger.useDefaults = function(options) {\r\n\t\tLogger.setLevel(options && options.defaultLevel || Logger.DEBUG);\r\n\t\tLogger.setHandler(Logger.createDefaultHandler(options));\r\n\t};\r\n\r\n\t// Createa an alias to useDefaults to avoid reaking a react-hooks rule.\r\n\tLogger.setDefaults = Logger.useDefaults;\r\n\r\n\t// Export to popular environments boilerplate.\r\n\tif (module.exports) {\r\n\t\tmodule.exports = Logger;\r\n\t}\r\n\telse {\r\n\t\tLogger._prevLogger = global.Logger;\r\n\r\n\t\tLogger.noConflict = function () {\r\n\t\t\tglobal.Logger = Logger._prevLogger;\r\n\t\t\treturn Logger;\r\n\t\t};\r\n\r\n\t\tglobal.Logger = Logger;\r\n\t}\r\n}(commonjsGlobal));\n}(logger$1));\n\nvar Logger = logger$1.exports;\n\nconst logger = Logger.get('web-media-effects');\r\nconst consoleLogHandler = Logger.createDefaultHandler({\r\n formatter: (msg, context) => {\r\n msg.unshift(context.name);\r\n },\r\n});\r\nLogger.setHandler(consoleLogHandler);\n\nvar EffectEnv;\r\n(function (EffectEnv) {\r\n EffectEnv[\"Prod\"] = \"prod\";\r\n EffectEnv[\"Int\"] = \"int\";\r\n})(EffectEnv || (EffectEnv = {}));\r\nvar EffectEvent;\r\n(function (EffectEvent) {\r\n EffectEvent[\"TrackUpdated\"] = \"track-updated\";\r\n EffectEvent[\"Enabled\"] = \"enabled\";\r\n EffectEvent[\"Disabled\"] = \"disabled\";\r\n EffectEvent[\"Disposed\"] = \"disposed\";\r\n})(EffectEvent || (EffectEvent = {}));\r\nclass BaseEffect extends EventEmitter {\r\n get underlyingStream() {\r\n return this.getUnderlyingStream();\r\n }\r\n get inputTrack() {\r\n var _a;\r\n return (_a = this.inputStream) === null || _a === void 0 ? void 0 : _a.getTracks()[0];\r\n }\r\n constructor() {\r\n super();\r\n this.id = v4();\r\n this.isEnabled = false;\r\n const constructor = this.constructor;\r\n if (constructor.kind === undefined) {\r\n throw new Error(\"base effect: derived class must define a static 'kind' property.\");\r\n }\r\n this.kind = constructor.kind;\r\n }\r\n getOutputTrack() {\r\n return this.outputTrack;\r\n }\r\n getOutputStream() {\r\n return this.outputStream;\r\n }\r\n getUnderlyingStream() {\r\n logger.warn('getUnderlyingStream() is deprecated and will be removed in a future major release. Please use getOutputStream() instead.');\r\n return this.getOutputStream();\r\n }\r\n preloadAssets() {\r\n return __awaiter$6(this, void 0, void 0, function* () { });\r\n }\r\n load(input) {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n if (!input) {\r\n throw new Error('base effect: track is a required parameter');\r\n }\r\n if (input instanceof MediaStream) {\r\n return this.loadMediaStream(input);\r\n }\r\n if (input instanceof MediaStreamTrack) {\r\n return this.loadMediaStreamTrack(input);\r\n }\r\n this.isEnabled = false;\r\n throw new Error('base effect: invalid argument type');\r\n });\r\n }\r\n loadMediaStream(input) {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n yield this.loadMedia(input.getTracks()[0], input);\r\n if (!this.outputStream) {\r\n throw new Error('base effect: load failed to create output stream');\r\n }\r\n return this.outputStream;\r\n });\r\n }\r\n loadMediaStreamTrack(input) {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n yield this.loadMedia(input);\r\n if (!this.outputTrack) {\r\n throw new Error('base effect: load failed to create output track');\r\n }\r\n return this.outputTrack;\r\n });\r\n }\r\n loadMedia(inputTrack, inputStream) {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n this.outputTrack = inputTrack;\r\n if (!inputStream) {\r\n this.inputStream = new MediaStream([inputTrack]);\r\n return;\r\n }\r\n this.inputStream = inputStream;\r\n this.outputStream = new MediaStream();\r\n this.outputStream.addTrack(this.outputTrack);\r\n });\r\n }\r\n replaceInputTrack(track) {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n if (!track) {\r\n throw new Error('base effect: track is a required parameter');\r\n }\r\n if (this.inputStream && this.inputTrack) {\r\n this.inputStream.removeTrack(this.inputTrack);\r\n }\r\n if (this.inputStream) {\r\n this.inputStream.addTrack(track);\r\n }\r\n });\r\n }\r\n enable() {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n if (!this.effectTrack) {\r\n throw new Error('base effect: effect track is undefined');\r\n }\r\n this.isEnabled = true;\r\n this.outputTrack = this.effectTrack;\r\n this.emit(EffectEvent.Enabled);\r\n this.emit(EffectEvent.TrackUpdated, this.effectTrack);\r\n });\r\n }\r\n disable() {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n if (!this.inputTrack) {\r\n throw new Error('base effect: input track is undefined');\r\n }\r\n this.isEnabled = false;\r\n this.outputTrack = this.inputTrack;\r\n this.emit(EffectEvent.Disabled);\r\n this.emit(EffectEvent.TrackUpdated, this.inputTrack);\r\n });\r\n }\r\n dispose() {\r\n var _a;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n (_a = this.effectTrack) === null || _a === void 0 ? void 0 : _a.stop();\r\n delete this.outputTrack;\r\n delete this.effectTrack;\r\n this.removeAllListeners();\r\n });\r\n }\r\n setEnabled(enable) {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n if (enable) {\r\n yield this.enable();\r\n }\r\n else {\r\n yield this.disable();\r\n }\r\n });\r\n }\r\n}\r\nconst createEffect = (EffectClass, options = {}, preloadAssets = false) => __awaiter$6(void 0, void 0, void 0, function* () {\r\n const effectInstance = new EffectClass(options);\r\n if (preloadAssets) {\r\n yield effectInstance.preloadAssets().catch((e) => {\r\n logger.error('base effect: effect preload failed:', e);\r\n throw e;\r\n });\r\n }\r\n return effectInstance;\r\n});\n\nclass BaseCameraEffect extends BaseEffect {\r\n}\n\nclass BaseMicrophoneEffect extends BaseEffect {\r\n constructor(audioCtx) {\r\n super();\r\n this.audioContext = audioCtx || new AudioContext();\r\n }\r\n}\n\nconst defaultOptions$2 = {\r\n maxGain: 2,\r\n rampTime: 1,\r\n};\r\nclass GainEffect extends BaseMicrophoneEffect {\r\n constructor(options) {\r\n super(options.audioContext);\r\n this.gainValue = 1;\r\n this.options = Object.assign(Object.assign({}, defaultOptions$2), options);\r\n logger.log('GainEffect init', { options: this.options });\r\n }\r\n loadMediaStream(input) {\r\n const _super = Object.create(null, {\r\n loadMediaStream: { get: () => super.loadMediaStream }\r\n });\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n yield _super.loadMediaStream.call(this, input);\r\n this.outputStream = yield this.createOutputStream();\r\n if (!this.outputStream) {\r\n throw new Error('gain effect: failed to create output stream');\r\n }\r\n this.outputStream.getAudioTracks()[0].enabled = input.getTracks()[0].enabled;\r\n return this.outputStream;\r\n });\r\n }\r\n loadMediaStreamTrack(input) {\r\n const _super = Object.create(null, {\r\n loadMediaStreamTrack: { get: () => super.loadMediaStreamTrack }\r\n });\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n yield _super.loadMediaStreamTrack.call(this, input);\r\n [this.outputTrack] = (yield this.createOutputStream()).getTracks();\r\n if (!this.outputTrack) {\r\n throw new Error('gain effect: failed to create output track');\r\n }\r\n return this.outputTrack;\r\n });\r\n }\r\n createOutputStream() {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n if (!this.inputStream) {\r\n throw new Error('gain effect: failed to create input stream');\r\n }\r\n const source = this.audioContext.createMediaStreamSource(this.inputStream);\r\n this.gainNode = new GainNode(this.audioContext);\r\n source.connect(this.gainNode);\r\n const mediaStreamDestination = this.audioContext.createMediaStreamDestination();\r\n this.gainNode.connect(mediaStreamDestination);\r\n [this.effectTrack] = mediaStreamDestination.stream.getTracks();\r\n return mediaStreamDestination.stream;\r\n });\r\n }\r\n setGainValue(value) {\r\n if (value > this.options.maxGain) {\r\n value = this.options.maxGain;\r\n }\r\n this.gainValue = value;\r\n this.gainNode.gain.linearRampToValueAtTime(value, this.audioContext.currentTime + this.options.rampTime);\r\n }\r\n enable() {\r\n const _super = Object.create(null, {\r\n enable: { get: () => super.enable }\r\n });\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n this.gainNode.gain.linearRampToValueAtTime(this.gainValue, this.audioContext.currentTime + this.options.rampTime);\r\n yield _super.enable.call(this);\r\n });\r\n }\r\n disable() {\r\n const _super = Object.create(null, {\r\n disable: { get: () => super.disable }\r\n });\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n this.gainNode.gain.linearRampToValueAtTime(1, this.audioContext.currentTime + this.options.rampTime);\r\n yield _super.disable.call(this);\r\n });\r\n }\r\n dispose() {\r\n const _super = Object.create(null, {\r\n dispose: { get: () => super.dispose }\r\n });\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n this.gainNode.disconnect();\r\n yield _super.dispose.call(this);\r\n });\r\n }\r\n}\r\nGainEffect.kind = 'gain-effect';\n\nconst appendScript = (url) => __awaiter$6(void 0, void 0, void 0, function* () {\r\n return new Promise((resolve, reject) => {\r\n var _a;\r\n const fs = document.getElementsByTagName('script')[0];\r\n const s = document.createElement('script');\r\n s.type = 'text/javascript';\r\n s.async = true;\r\n s.src = url;\r\n s.onload = resolve;\r\n s.onerror = reject;\r\n (_a = fs.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(s, fs);\r\n });\r\n});\n\nconst fetchUrls = (paths, token, env) => {\r\n const url = (env === EffectEnv.Int\r\n ? \"https://models-auth.us-east-2.int.infra.intelligence.webex.com/generate\"\r\n : \"https://models-auth.intelligence.webex.com/generate\");\r\n const body = { items: Array.isArray(paths) ? paths : [paths] };\r\n const options = {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n Authorization: `Bearer ${token}`,\r\n },\r\n body: JSON.stringify(body),\r\n };\r\n return fetch(url, options).then((resp) => {\r\n if (!resp.ok) {\r\n throw resp;\r\n }\r\n return resp.json();\r\n });\r\n};\r\nconst fetchSignedUrl = (path, token, env) => __awaiter$6(void 0, void 0, void 0, function* () {\r\n return fetchUrls(path, token, env)\r\n .then((resp) => { var _a, _b; return (_b = (_a = resp.items) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url; })\r\n .catch(() => {\r\n throw new Error('Fetching signed url failed. Please check the auth token and try again.');\r\n });\r\n});\r\nconst memoizeBlobUrl = (func) => {\r\n const cache = new Map();\r\n function memoizedFunc(...args) {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n const cacheKey = JSON.stringify(args);\r\n const cachedResult = cache.get(cacheKey);\r\n if (cachedResult !== undefined) {\r\n return cachedResult;\r\n }\r\n const result = yield func.apply(this, args);\r\n const item = yield fetch(result);\r\n const url = URL.createObjectURL(yield item.blob());\r\n cache.set(cacheKey, url);\r\n return url;\r\n });\r\n }\r\n memoizedFunc.clearCache = () => {\r\n cache.clear();\r\n };\r\n return memoizedFunc;\r\n};\r\nconst memoizedFetchSignedUrl = memoizeBlobUrl(fetchSignedUrl);\n\nvar FutureState;\r\n(function (FutureState) {\r\n FutureState[\"Pending\"] = \"pending\";\r\n FutureState[\"Resolved\"] = \"resolved\";\r\n FutureState[\"Rejected\"] = \"rejected\";\r\n})(FutureState || (FutureState = {}));\r\nclass Future {\r\n constructor(promise) {\r\n this.state = FutureState.Pending;\r\n this.promise =\r\n promise !== null && promise !== void 0 ? promise : new Promise((resolve, reject) => {\r\n this.resolve = (arg) => {\r\n this.state = FutureState.Resolved;\r\n resolve(arg);\r\n };\r\n this.reject = (e) => {\r\n this.state = FutureState.Rejected;\r\n reject(e);\r\n };\r\n });\r\n }\r\n}\n\nconst hasSimdSupport = () => __awaiter$6(void 0, void 0, void 0, function* () {\r\n return WebAssembly.validate(new Uint8Array([\r\n 0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253,\r\n 15, 253, 98, 11,\r\n ]));\r\n});\n\nconst omitKey = (key, obj) => Object.fromEntries(Object.entries(obj).filter((i) => i[0] !== key));\n\nvar NoiseReductionMode;\r\n(function (NoiseReductionMode) {\r\n NoiseReductionMode[\"Legacy\"] = \"LEGACY\";\r\n NoiseReductionMode[\"Worklet\"] = \"WORKLET\";\r\n})(NoiseReductionMode || (NoiseReductionMode = {}));\r\nconst defaultOptions$1 = Object.freeze({\r\n mode: NoiseReductionMode.Worklet,\r\n avoidSimd: false,\r\n authToken: '',\r\n env: EffectEnv.Prod,\r\n});\r\nclass NoiseReductionEffect extends BaseMicrophoneEffect {\r\n get isLoaded() {\r\n return !!this.loadFuture;\r\n }\r\n constructor(options) {\r\n super(options === null || options === void 0 ? void 0 : options.audioContext);\r\n this.isReady = false;\r\n this.disableFuture = new Future();\r\n this.enableFuture = new Future();\r\n this.options = Object.assign(Object.assign({}, defaultOptions$1), options);\r\n logger.log('noise reduction: init effect', omitKey('authToken', this.options));\r\n }\r\n fetchUrl(url) {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n let validatedUrl = url;\r\n if (!this.options.authToken) {\r\n throw new Error('noise reduction: auth token is required');\r\n }\r\n if (!this.options.avoidSimd && (yield NoiseReductionEffect.supportsSimd())) {\r\n validatedUrl = url.replace('.js', '.simd.js');\r\n }\r\n return memoizedFetchSignedUrl(validatedUrl, this.options.authToken, this.options.env).catch((e) => {\r\n throw new Error(`noise reduction: ${e.message}`);\r\n });\r\n });\r\n }\r\n loadMediaStream(input) {\r\n const _super = Object.create(null, {\r\n loadMedia: { get: () => super.loadMedia }\r\n });\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n logger.log('noise reduction: load stream', input);\r\n const [audioTrack] = input.getAudioTracks();\r\n if (!audioTrack) {\r\n throw new Error('noise reduction: load stream failed, no audio track found');\r\n }\r\n yield _super.loadMedia.call(this, audioTrack, input);\r\n this.outputStream = yield this.createOutputStream();\r\n if (!this.outputStream) {\r\n throw new Error('noise reduction: failed to create output stream');\r\n }\r\n this.outputStream.getAudioTracks()[0].enabled = audioTrack.enabled;\r\n return this.outputStream;\r\n });\r\n }\r\n loadMediaStreamTrack(input) {\r\n const _super = Object.create(null, {\r\n loadMediaStreamTrack: { get: () => super.loadMediaStreamTrack }\r\n });\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n yield _super.loadMediaStreamTrack.call(this, input);\r\n [this.outputTrack] = (yield this.createOutputStream()).getTracks();\r\n if (!this.outputTrack) {\r\n throw new Error('noise reduction: failed to create output track');\r\n }\r\n return this.outputTrack;\r\n });\r\n }\r\n createOutputStream() {\r\n var _a;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n if (!this.inputStream) {\r\n throw new Error('noise reduction: failed to create input stream');\r\n }\r\n const mediaStreamDestination = this.audioContext.createMediaStreamDestination();\r\n [this.effectTrack] = mediaStreamDestination.stream.getTracks();\r\n if (this.loadFuture) {\r\n return this.loadFuture.promise;\r\n }\r\n this.loadFuture = new Future();\r\n yield ((_a = this.disposeFuture) === null || _a === void 0 ? void 0 : _a.promise);\r\n this.disposeFuture = new Future();\r\n if (this.options.mode === NoiseReductionMode.Legacy) {\r\n return this.loadLegacy(this.inputStream, mediaStreamDestination);\r\n }\r\n return this.loadWorklet(this.inputStream, mediaStreamDestination);\r\n });\r\n }\r\n preloadAssets() {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n const start = performance.now();\r\n if (this.preloadFuture) {\r\n logger.log('noise reduction: waiting for existing preload to complete');\r\n yield this.preloadFuture.promise;\r\n return;\r\n }\r\n this.preloadFuture = new Future();\r\n logger.log('noise reduction: preloading assets', this.options.mode);\r\n try {\r\n if (this.options.mode === NoiseReductionMode.Worklet) {\r\n yield this.fetchAndLoadWorkletProcessor();\r\n }\r\n if (this.options.mode === NoiseReductionMode.Legacy) {\r\n yield this.fetchAndLoadLegacyProcessor();\r\n }\r\n const end = performance.now();\r\n const duration = Math.round(end - start) / 1000;\r\n logger.log(`virtual background: preload completed in ${duration} seconds`);\r\n this.preloadFuture.resolve();\r\n }\r\n catch (error) {\r\n this.preloadFuture.reject(error);\r\n this.preloadFuture = undefined;\r\n }\r\n });\r\n }\r\n fetchAndLoadWorkletProcessor() {\r\n var _a, _b;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n logger.log('noise reduction: fetch worklet processor');\r\n const workletProcessorUrl = this.options.workletProcessorUrl ||\r\n (yield this.fetchUrl(\"denoise/processors/2.4.2/noise-reduction-processor.worklet.js\"));\r\n logger.log('noise reduction: add worklet processor to audio context');\r\n yield ((_b = (_a = this.audioContext) === null || _a === void 0 ? void 0 : _a.audioWorklet) === null || _b === void 0 ? void 0 : _b.addModule(workletProcessorUrl));\r\n });\r\n }\r\n fetchAndLoadLegacyProcessor() {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n logger.log('noise reduction: fetch legacy processor url');\r\n const legacyProcessorUrl = this.options.legacyProcessorUrl ||\r\n (yield this.fetchUrl(\"denoise/processors/2.4.2/noise-reduction-processor.legacy.js\"));\r\n logger.log('noise reduction: append legacy processor to global scope');\r\n yield appendScript(legacyProcessorUrl);\r\n });\r\n }\r\n loadWorklet(stream, destination) {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n if (!this.loadFuture) {\r\n throw new Error('noise reduction: the load future was not initialized correctly');\r\n }\r\n logger.log('noise reduction: load worklet');\r\n try {\r\n yield this.fetchAndLoadWorkletProcessor();\r\n if (!AudioWorkletNode) {\r\n throw new Error('noise reduction: `AudioWorkletNode` unavailable in current scope');\r\n }\r\n logger.log('noise reduction: attach worklet processor');\r\n this.workletNode = new AudioWorkletNode(this.audioContext, 'noise-reduction-worklet-processor');\r\n this.workletNode.port.onmessage = (ev) => {\r\n var _a, _b, _c;\r\n logger.log(`noise reduction: worklet processor ${ev.data.type.toLowerCase()}`);\r\n switch (ev.data.type) {\r\n case NoiseReductionEffect.Events.Ready: {\r\n this.isReady = true;\r\n (_a = this.loadFuture) === null || _a === void 0 ? void 0 : _a.resolve(destination.stream);\r\n break;\r\n }\r\n case NoiseReductionEffect.Events.Disabled: {\r\n this.handleDisabled();\r\n break;\r\n }\r\n case NoiseReductionEffect.Events.Enabled: {\r\n this.handleEnabled();\r\n break;\r\n }\r\n case NoiseReductionEffect.Events.Disposed: {\r\n this.isEnabled = false;\r\n this.isReady = false;\r\n (_b = this.disposeFuture) === null || _b === void 0 ? void 0 : _b.resolve();\r\n this.emit(EffectEvent.Disposed);\r\n break;\r\n }\r\n case NoiseReductionEffect.Events.Error: {\r\n const err = new Error(`noise reduction: worklet processor error, \"${ev.data.payload}\"`);\r\n (_c = this.loadFuture) === null || _c === void 0 ? void 0 : _c.reject(err);\r\n logger.error(err);\r\n break;\r\n }\r\n default:\r\n logger.warn('noise reduction: worklet processor unhandled message', ev.data);\r\n }\r\n };\r\n this.workletNode.connect(destination);\r\n this.sourceNode = this.audioContext.createMediaStreamSource(stream);\r\n this.sourceNode.connect(this.workletNode);\r\n }\r\n catch (e) {\r\n this.loadFuture.reject(new Error('noise reduction: failed to load worklet processor'));\r\n }\r\n return this.loadFuture.promise;\r\n });\r\n }\r\n loadLegacy(stream, destination) {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n if (!this.loadFuture) {\r\n throw new Error('noise reduction: the load future was not initialized correctly');\r\n }\r\n logger.log('noise reduction: load legacy');\r\n try {\r\n yield this.fetchAndLoadLegacyProcessor();\r\n this.legacyProcessor = new window.WebMediaEffects.NoiseReductionLegacyProcessor(this.audioContext.sampleRate);\r\n if (this.legacyProcessor) {\r\n const bufferLengthMap = { 16000: 256, 32000: 512, 48000: 512 };\r\n const bufferLength = bufferLengthMap[this.audioContext.sampleRate];\r\n this.legacyScriptNode = this.audioContext.createScriptProcessor(bufferLength, 1, 1);\r\n this.legacyScriptNode.connect(destination);\r\n this.legacyScriptNode.onaudioprocess = this.legacyProcessor.processAudioChunk;\r\n this.sourceNode = this.audioContext.createMediaStreamSource(stream);\r\n this.sourceNode.connect(this.legacyScriptNode);\r\n this.isReady = true;\r\n this.loadFuture.resolve(destination.stream);\r\n }\r\n }\r\n catch (e) {\r\n this.loadFuture.reject(new Error('noise reduction: failed to load legacy processor'));\r\n }\r\n return this.loadFuture.promise;\r\n });\r\n }\r\n enable() {\r\n var _a, _b;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n logger.log('noise reduction: enable effect');\r\n if (!this.isReady) {\r\n throw new Error('noise reduction: not setup or ready');\r\n }\r\n this.enableFuture = new Future();\r\n (_a = this.workletNode) === null || _a === void 0 ? void 0 : _a.port.postMessage('ENABLE');\r\n (_b = this.legacyProcessor) === null || _b === void 0 ? void 0 : _b.setEnabled(true).then(() => this.handleEnabled());\r\n return this.enableFuture.promise;\r\n });\r\n }\r\n disable() {\r\n var _a, _b;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n logger.log('noise reduction: disable effect');\r\n if (!this.isReady) {\r\n throw new Error('noise reduction: not setup or ready');\r\n }\r\n this.disableFuture = new Future();\r\n (_a = this.workletNode) === null || _a === void 0 ? void 0 : _a.port.postMessage('DISABLE');\r\n (_b = this.legacyProcessor) === null || _b === void 0 ? void 0 : _b.setEnabled(false).then(() => this.handleDisabled());\r\n return this.disableFuture.promise;\r\n });\r\n }\r\n dispose() {\r\n const _super = Object.create(null, {\r\n dispose: { get: () => super.dispose }\r\n });\r\n var _a, _b, _c, _d, _e, _f, _g;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n logger.log('noise reduction: dispose effect');\r\n if (!this.loadFuture) {\r\n return;\r\n }\r\n yield this.loadFuture.promise;\r\n this.loadFuture = undefined;\r\n (_a = this.workletNode) === null || _a === void 0 ? void 0 : _a.port.postMessage('DISPOSE');\r\n (_b = this.legacyProcessor) === null || _b === void 0 ? void 0 : _b.dispose().then((_c = this.disposeFuture) === null || _c === void 0 ? void 0 : _c.resolve);\r\n yield ((_d = this.disposeFuture) === null || _d === void 0 ? void 0 : _d.promise);\r\n (_e = this.workletNode) === null || _e === void 0 ? void 0 : _e.disconnect();\r\n (_f = this.legacyScriptNode) === null || _f === void 0 ? void 0 : _f.disconnect();\r\n (_g = this.sourceNode) === null || _g === void 0 ? void 0 : _g.disconnect();\r\n yield _super.dispose.call(this);\r\n logger.log('noise reduction: effect disposed');\r\n });\r\n }\r\n handleDisabled() {\r\n const _super = Object.create(null, {\r\n disable: { get: () => super.disable }\r\n });\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n yield _super.disable.call(this);\r\n this.disableFuture.resolve();\r\n });\r\n }\r\n handleEnabled() {\r\n const _super = Object.create(null, {\r\n enable: { get: () => super.enable }\r\n });\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n yield _super.enable.call(this);\r\n this.enableFuture.resolve();\r\n });\r\n }\r\n}\r\nNoiseReductionEffect.kind = 'noise-reduction-effect';\r\nNoiseReductionEffect.supportsSimd = hasSimdSupport;\r\nNoiseReductionEffect.Events = {\r\n Ready: 'READY',\r\n Disabled: 'DISABLED',\r\n Disposed: 'DISPOSED',\r\n Enabled: 'ENABLED',\r\n Error: 'ERROR',\r\n};\r\nconst createNoiseReductionEffect = (options, preloadAssets) => __awaiter$6(void 0, void 0, void 0, function* () { return createEffect(NoiseReductionEffect, options, preloadAssets); });\n\nvar RateEstimatorEvent;\r\n(function (RateEstimatorEvent) {\r\n RateEstimatorEvent[\"RateOk\"] = \"rate-ok\";\r\n RateEstimatorEvent[\"RateLow\"] = \"rate-low\";\r\n RateEstimatorEvent[\"RateLagging\"] = \"rate-lagging\";\r\n})(RateEstimatorEvent || (RateEstimatorEvent = {}));\r\nvar RateEstimatorStatus;\r\n(function (RateEstimatorStatus) {\r\n RateEstimatorStatus[\"Idle\"] = \"idle\";\r\n RateEstimatorStatus[\"Init\"] = \"init\";\r\n RateEstimatorStatus[\"Lagging\"] = \"lagging\";\r\n RateEstimatorStatus[\"Low\"] = \"low\";\r\n RateEstimatorStatus[\"Ok\"] = \"ok\";\r\n})(RateEstimatorStatus || (RateEstimatorStatus = {}));\r\nclass RateEstimator extends EventEmitter {\r\n constructor(targetRate, options) {\r\n super();\r\n this.timestamps = [];\r\n this.status = RateEstimatorStatus.Idle;\r\n if (typeof targetRate !== 'number' || targetRate <= 0) {\r\n throw new Error('Invalid target rate: must be a positive number.');\r\n }\r\n const defaults = {\r\n hysteresisMargin: 0.05,\r\n lowDuration: 5,\r\n lowThreshold: targetRate * 0.8,\r\n minSamples: Math.max(30, targetRate),\r\n maxSamples: Math.max(120, targetRate * 4),\r\n };\r\n this.options = Object.assign(Object.assign({}, defaults), options);\r\n logger.log(`rate estimator: init, targetRate = ${targetRate}, options =`, this.options);\r\n this.targetRate = targetRate;\r\n this.status = RateEstimatorStatus.Idle;\r\n }\r\n getEstimatedValues() {\r\n return {\r\n rate: this.estimatedRate,\r\n status: this.status,\r\n threshold: this.options.lowThreshold,\r\n };\r\n }\r\n getOptions() {\r\n return this.options;\r\n }\r\n getTimestamps() {\r\n return this.timestamps;\r\n }\r\n addTimestamp(timestamp) {\r\n if (this.status === RateEstimatorStatus.Idle) {\r\n this.status = RateEstimatorStatus.Init;\r\n }\r\n this.timestamps.unshift(timestamp);\r\n if (this.timestamps.length > this.options.maxSamples) {\r\n this.timestamps.pop();\r\n }\r\n if (this.timestamps.length >= this.options.minSamples) {\r\n this.calculateAndUpdateRate();\r\n this.evaluateRate(timestamp);\r\n }\r\n }\r\n calculateAndUpdateRate() {\r\n const sampleCount = this.timestamps.length - 1;\r\n const timeDifference = (this.timestamps[0] - this.timestamps[sampleCount]) / 1000;\r\n const estimatedRate = sampleCount / timeDifference;\r\n this.estimatedRate = Number(estimatedRate.toFixed(1));\r\n }\r\n evaluateRate(timestamp) {\r\n if (this.isRateLow()) {\r\n this.handleLowRate(timestamp);\r\n return;\r\n }\r\n if (this.lowRateStartTime) {\r\n this.handleReturnToNormalRate();\r\n return;\r\n }\r\n this.status = RateEstimatorStatus.Ok;\r\n }\r\n isRateLow() {\r\n const { hysteresisMargin, lowThreshold } = this.options;\r\n if (!this.estimatedRate) {\r\n return false;\r\n }\r\n const tolerance = lowThreshold * hysteresisMargin;\r\n const lowerBound = lowThreshold - tolerance;\r\n const upperBound = lowThreshold + tolerance;\r\n if (this.status === RateEstimatorStatus.Ok || this.status === RateEstimatorStatus.Init) {\r\n return this.estimatedRate < lowerBound;\r\n }\r\n return this.estimatedRate < upperBound;\r\n }\r\n handleLowRate(timestamp) {\r\n var _a;\r\n if (this.estimatedRate === undefined) {\r\n return;\r\n }\r\n if (this.status === RateEstimatorStatus.Lagging) {\r\n return;\r\n }\r\n if (this.status !== RateEstimatorStatus.Low) {\r\n logger.log(`rate estimator: rate low, target = ${this.targetRate}, estimated = ${this.estimatedRate.toFixed(2)}`);\r\n this.emit(RateEstimatorEvent.RateLow, this.estimatedRate);\r\n this.status = RateEstimatorStatus.Low;\r\n (_a = this.lowRateStartTime) !== null && _a !== void 0 ? _a : (this.lowRateStartTime = timestamp);\r\n return;\r\n }\r\n if (this.status === RateEstimatorStatus.Low) {\r\n const timeElapsed = timestamp - (this.lowRateStartTime || 0);\r\n if (timeElapsed >= this.options.lowDuration * 1000) {\r\n logger.log(`rate estimator: rate lagging, target = ${this.targetRate}, estimated = ${this.estimatedRate.toFixed(2)}`);\r\n this.emit(RateEstimatorEvent.RateLagging, this.estimatedRate);\r\n this.status = RateEstimatorStatus.Lagging;\r\n }\r\n }\r\n }\r\n handleReturnToNormalRate() {\r\n if (this.estimatedRate !== undefined) {\r\n logger.log(`rate estimator: rate returned to normal, target = ${this.targetRate}, estimated = ${this.estimatedRate.toFixed(2)}`);\r\n this.emit(RateEstimatorEvent.RateOk, this.estimatedRate);\r\n this.status = RateEstimatorStatus.Ok;\r\n this.lowRateStartTime = undefined;\r\n }\r\n }\r\n reset() {\r\n this.timestamps = [];\r\n this.estimatedRate = undefined;\r\n this.lowRateStartTime = undefined;\r\n this.status = RateEstimatorStatus.Idle;\r\n }\r\n updateOptions(newOptions) {\r\n this.options = Object.assign(Object.assign({}, this.options), newOptions);\r\n logger.log('rate estimator: options updated', this.options);\r\n }\r\n}\n\nconst toAbsoluteURI = (relativeURL, baseURL) => {\r\n // adapted from - https://github.com/axios/axios/blob/fe7d09bb08fa1c0e414956b7fc760c80459b0a43/lib/helpers/combineURLs.js\r\n if (!baseURL || relativeURL.startsWith('http')) {\r\n return new URL(relativeURL).href;\r\n }\r\n return relativeURL\r\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\r\n : baseURL;\r\n};\r\nfunction compileShader(gl, shader_type, source) {\r\n var _a;\r\n const shader = gl.createShader(shader_type);\r\n if (!shader) {\r\n throw new Error('[ladon-ts] - error creating shader');\r\n }\r\n gl.shaderSource(shader, source);\r\n gl.compileShader(shader);\r\n if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {\r\n const error = (_a = gl.getShaderInfoLog(shader)) !== null && _a !== void 0 ? _a : 'unknown error compiling shader.';\r\n throw new Error('[ladon-ts] - ' + error);\r\n }\r\n return shader;\r\n}\r\nfunction linkProgram(gl, vertex_shader, fragment_shader) {\r\n var _a;\r\n const program = gl.createProgram();\r\n if (!program) {\r\n throw new Error('[ladon-ts] - error creating GPU program');\r\n }\r\n gl.attachShader(program, vertex_shader);\r\n gl.attachShader(program, fragment_shader);\r\n gl.linkProgram(program);\r\n if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {\r\n const error = (_a = gl.getProgramInfoLog(program)) !== null && _a !== void 0 ? _a : 'unknown error linking program.';\r\n throw new Error('[ladon-ts] - ' + error);\r\n }\r\n return program;\r\n}\r\n/**\r\n * Resizes an image from the source dimensions to target dimensions.\r\n *\r\n * @param {Uint8ClampedArray} imageData The source image data in Uint8ClampedArray format.\r\n * @param {number} srcWidth The width of the source image.\r\n * @param {number} srcHeight The height of the source image.\r\n * @param {number} targetWidth The width of the target image.\r\n * @param {number} targetHeight The height of the target image.\r\n *\r\n * @returns {Uint8ClampedArray} The target image data in Uint8ClampedArray format.\r\n *\r\n * @example\r\n * const targetData = resizeImage(sourceData, 800, 600, 400, 300);\r\n *\r\n * @note The function uses a \"nearest neighbor\" algorithm for resizing,\r\n * which is fast but might not provide the best quality for all images.\r\n */\r\nconst resizeImage = (imageData, srcWidth, srcHeight, targetWidth, targetHeight) => {\r\n const targetData = new Uint8ClampedArray(targetWidth * targetHeight * 4);\r\n const xRatio = srcWidth / targetWidth;\r\n const yRatio = srcHeight / targetHeight;\r\n const scaledSrcWidth = srcWidth * 4;\r\n let offset = 0;\r\n for (let y = 0; y < targetHeight; y++) {\r\n const srcY = Math.floor(y * yRatio) * scaledSrcWidth;\r\n for (let x = 0; x < targetWidth; x++) {\r\n const srcOffset = srcY + Math.floor(x * xRatio) * 4;\r\n targetData[offset++] = imageData[srcOffset];\r\n targetData[offset++] = imageData[srcOffset + 1];\r\n targetData[offset++] = imageData[srcOffset + 2];\r\n targetData[offset++] = imageData[srcOffset + 3];\r\n }\r\n }\r\n return targetData;\r\n};\n\nconst LIB_VERSION = '4.3.0';\n\nconst BASE_URL = 'https://models.intelligence.webex.com/ladon';\r\nconst LOCAL_BASE_URL = 'https://localhost';\r\nconst LOCAL_WORKER_URI = '/segmentation.js';\r\nconst LOCAL_PORT = 1235;\r\nconst MODEL_VERSION = '1.0.0';\r\nconst WASM_URI = '/wasm/1.15.1b/';\r\nvar Quality;\r\n(function (Quality) {\r\n Quality[\"TINY\"] = \"TINY\";\r\n Quality[\"LOW\"] = \"LOW\";\r\n Quality[\"MEDIUM\"] = \"MEDIUM\";\r\n Quality[\"HIGH\"] = \"HIGH\";\r\n Quality[\"ULTRA\"] = \"ULTRA\";\r\n})(Quality || (Quality = {}));\r\nvar BlurStrength;\r\n(function (BlurStrength) {\r\n BlurStrength[\"WEAK\"] = \"WEAK\";\r\n BlurStrength[\"MODERATE\"] = \"MODERATE\";\r\n BlurStrength[\"STRONG\"] = \"STRONG\";\r\n BlurStrength[\"STRONGER\"] = \"STRONGER\";\r\n BlurStrength[\"STRONGEST\"] = \"STRONGEST\";\r\n})(BlurStrength || (BlurStrength = {}));\r\nconst getBlurConfig = (blur_strength, horizontal_mirror) => {\r\n let kernel_size = 25;\r\n let sigma = 11;\r\n switch (blur_strength) {\r\n case BlurStrength.WEAK:\r\n kernel_size = 9;\r\n sigma = 2;\r\n break;\r\n case BlurStrength.MODERATE:\r\n kernel_size = 15;\r\n sigma = 6;\r\n break;\r\n case BlurStrength.STRONG:\r\n kernel_size = 25;\r\n sigma = 11;\r\n break;\r\n case BlurStrength.STRONGER:\r\n kernel_size = 37;\r\n sigma = 17;\r\n break;\r\n case BlurStrength.STRONGEST:\r\n kernel_size = 49;\r\n sigma = 23;\r\n break;\r\n }\r\n return {\r\n type: 'blur',\r\n horizontal_mirror,\r\n kernel_size,\r\n sigma,\r\n };\r\n};\r\nconst getPreloadConfig = (quality = Quality.LOW, generator = 'local', model_url_resolver = (model_path) => Promise.resolve(toAbsoluteURI(model_path, BASE_URL)), base_url = BASE_URL, useLocalWorker = false) => {\r\n const model_version = MODEL_VERSION;\r\n const localBaseUrl = `${LOCAL_BASE_URL}:${LOCAL_PORT}`;\r\n const workerBaseUrl = useLocalWorker ? localBaseUrl : base_url;\r\n const workerScriptPath = useLocalWorker\r\n ? LOCAL_WORKER_URI\r\n : `/${LIB_VERSION}/worker/segmentation.js`;\r\n const worker_uri = toAbsoluteURI(workerScriptPath, workerBaseUrl);\r\n const base_config = {\r\n base_url,\r\n wasm_uri: WASM_URI,\r\n mask: {\r\n generation_interval_ms: 48,\r\n generator,\r\n model_url_resolver,\r\n model_uri: `/models/${model_version}/mv2_dlv3plus_dynamic_dev_plus_dual_op11_mn3sm100.onnx`,\r\n worker_uri,\r\n model_rank: 3,\r\n },\r\n };\r\n let mask_quality_config = {};\r\n switch (quality) {\r\n case Quality.TINY:\r\n mask_quality_config = {\r\n generation_interval_ms: 48,\r\n model_uri: `/models/${model_version}/tiny_model.onnx`,\r\n input_size: { height: 144, width: 256 },\r\n output_size: { height: 360, width: 640 },\r\n model_rank: 4,\r\n };\r\n break;\r\n case Quality.LOW:\r\n mask_quality_config = {\r\n generation_interval_ms: 48,\r\n model_uri: `/models/${model_version}/mv2_dlv3plus_dynamic_dev_plus_dual_op11_mn3sm100.onnx`,\r\n };\r\n break;\r\n case Quality.MEDIUM:\r\n mask_quality_config = {\r\n generation_interval_ms: 24,\r\n model_uri: `/models/${model_version}/mv2_dlv3plus_dynamic_dev_plus_dual_op11_mn3sm100.onnx`,\r\n };\r\n break;\r\n case Quality.HIGH:\r\n mask_quality_config = {\r\n generation_interval_ms: 36,\r\n model_uri: `/models/${model_version}/mv2_dlv3plus_dynamic_dev_plus_dual_op11_full_depth_2.onnx`,\r\n };\r\n break;\r\n case Quality.ULTRA:\r\n mask_quality_config = {\r\n generation_interval_ms: 0,\r\n model_uri: `/models/${model_version}/mv2_dlv3plus_dynamic_dev_plus_dual_op11_full_depth_2.onnx`,\r\n };\r\n break;\r\n default:\r\n throw new Error('[ladon-ts] - unknown quality option: ' + quality);\r\n }\r\n return Object.assign(Object.assign({}, base_config), { mask: Object.assign(Object.assign({}, base_config.mask), mask_quality_config) });\r\n};\r\nconst getConfig = (height, width, quality = Quality.LOW, generator = 'local', renderConfig = {\r\n type: 'blur',\r\n horizontal_mirror: false,\r\n kernel_size: 37,\r\n sigma: 17,\r\n}, modelUrlResolver = (model_path) => Promise.resolve(toAbsoluteURI(model_path, BASE_URL)), baseUrl = BASE_URL, useLocalWorker = false) => {\r\n const basePreloadConfig = getPreloadConfig(quality, generator, modelUrlResolver, baseUrl, useLocalWorker);\r\n const maskConfig = basePreloadConfig.mask;\r\n return Object.assign(Object.assign({}, basePreloadConfig), { render: renderConfig, input: { height, width }, mask: Object.assign(Object.assign({}, maskConfig), { \r\n // Need to ensure we don't override the tiny model's input and output sizes.\r\n input_size: maskConfig.input_size || { height, width }, output_size: maskConfig.output_size || { height, width } }) });\r\n};\n\nvar ort_min = {exports: {}};\n\n/*!\n* ONNX Runtime Web v1.15.1\n* Copyright (c) Microsoft Corporation. All rights reserved.\n* Licensed under the MIT License.\n*/\n\n(function (module, exports) {\n!function(e,t){module.exports=t();}(globalThis,(()=>(()=>{var __webpack_modules__={8453:(e,t,n)=>{n.r(t),n.d(t,{InferenceSession:()=>f,Tensor:()=>p,env:()=>a,registerBackend:()=>i});const r={},o=[],i=(e,t,n)=>{if(!t||\"function\"!=typeof t.init||\"function\"!=typeof t.createSessionHandler)throw new TypeError(\"not a valid backend\");{const i=r[e];if(void 0===i)r[e]={backend:t,priority:n};else {if(i.priority>n)return;if(i.priority===n&&i.backend!==t)throw new Error(`cannot register backend \"${e}\" using priority ${n}`)}if(n>=0){const t=o.indexOf(e);-1!==t&&o.splice(t,1);for(let t=0;t{if(!l){l=!0;const e=\"undefined\"!=typeof BigInt64Array&&\"function\"==typeof BigInt64Array.from,t=\"undefined\"!=typeof BigUint64Array&&\"function\"==typeof BigUint64Array.from;e&&(s.set(\"int64\",BigInt64Array),u.set(BigInt64Array,\"int64\")),t&&(s.set(\"uint64\",BigUint64Array),u.set(BigUint64Array,\"uint64\"));}})(),\"string\"==typeof e)if(r=e,i=n,\"string\"===e){if(!Array.isArray(t))throw new TypeError(\"A string tensor's data must be a string array.\");o=t;}else {const n=s.get(e);if(void 0===n)throw new TypeError(`Unsupported tensor type: ${e}.`);if(Array.isArray(t))o=n.from(t);else {if(!(t instanceof n))throw new TypeError(`A ${r} tensor's data must be type of ${n}`);o=t;}}else if(i=t,Array.isArray(e)){if(0===e.length)throw new TypeError(\"Tensor type cannot be inferred from an empty array.\");const t=typeof e[0];if(\"string\"===t)r=\"string\",o=e;else {if(\"boolean\"!==t)throw new TypeError(`Invalid element type of data array: ${t}.`);r=\"bool\",o=Uint8Array.from(e);}}else {const t=u.get(e.constructor);if(void 0===t)throw new TypeError(`Unsupported type for tensor data: ${e.constructor}.`);r=t,o=e;}if(void 0===i)i=[o.length];else if(!Array.isArray(i))throw new TypeError(\"A tensor's dims must be a number array\");const a=(e=>{let t=1;for(let n=0;n{const o=document.createElement(\"canvas\"),i=o.getContext(\"2d\");if(!e||!i)return r();const a=new Image;a.crossOrigin=\"Anonymous\",a.src=e,a.onload=()=>{o.width=a.width,o.height=a.height,i.drawImage(a,0,0,o.width,o.height);const e=i.getImageData(0,0,o.width,o.height);if(void 0!==t){if(void 0!==t.height&&t.height!==o.height)throw new Error(\"Image input config height doesn't match height\");if(s.height=o.height,void 0!==t.width&&t.width!==o.width)throw new Error(\"Image input config width doesn't match width\");s.width=o.width;}else s.height=o.height,s.width=o.width;n(c.bufferToTensor(e.data,s));};}));throw new Error(\"Input data provided is not supported - aborted tensor creation\")}{const n=\"RGBA\";let r,o;if(void 0!==t&&void 0!==t.resizedWidth&&void 0!==t.resizedHeight?(r=t.resizedHeight,o=t.resizedWidth):(r=e.height,o=e.width),void 0!==t){if(s=t,void 0!==t.bitmapFormat&&t.bitmapFormat!==n)throw new Error(\"Image input config format must be RGBA for ImageData\");s.bitmapFormat=\"RGBA\";}else s.bitmapFormat=\"RGBA\";if(s.height=r,s.width=o,void 0!==t){const t=document.createElement(\"canvas\");t.width=o,t.height=r;const n=t.getContext(\"2d\");if(null==n)throw new Error(\"Can not access image data\");n.putImageData(e,0,0),a=n.getImageData(0,0,o,r).data;}else a=e.data;}}if(void 0!==a)return c.bufferToTensor(a,s);throw new Error(\"Input data provided is not supported - aborted tensor creation\")}toDataURL(e){const t=document.createElement(\"canvas\");t.width=this.dims[3],t.height=this.dims[2];const n=t.getContext(\"2d\");if(null!=n){let r,o;void 0!==e?.tensorLayout&&\"NHWC\"===e.tensorLayout?(r=this.dims[2],o=this.dims[3]):(r=this.dims[3],o=this.dims[2]);const i=void 0!==e?.format?e.format:\"RGB\",a=e?.norm;let s,u;void 0===a||void 0===a.mean?s=[255,255,255,255]:\"number\"==typeof a.mean?s=[a.mean,a.mean,a.mean,a.mean]:(s=[a.mean[0],a.mean[1],a.mean[2],0],void 0!==a.mean[3]&&(s[3]=a.mean[3])),void 0===a||void 0===a.bias?u=[0,0,0,0]:\"number\"==typeof a.bias?u=[a.bias,a.bias,a.bias,a.bias]:(u=[a.bias[0],a.bias[1],a.bias[2],0],void 0!==a.bias[3]&&(u[3]=a.bias[3]));const l=o*r;let c=0,p=l,d=2*l,f=-1;\"RGBA\"===i?(c=0,p=l,d=2*l,f=3*l):\"RGB\"===i?(c=0,p=l,d=2*l):\"RBG\"===i&&(c=0,d=l,p=2*l);for(let e=0;e=r.byteLength)throw new RangeError(`'byteOffset' is out of range [0, ${r.byteLength}).`);if(u=e.byteLength-o,\"number\"==typeof n){if(u=n,!Number.isSafeInteger(u))throw new RangeError(\"'byteLength' must be an integer.\");if(u<=0||o+u>r.byteLength)throw new RangeError(`'byteLength' is out of range (0, ${r.byteLength-o}].`);if(\"object\"==typeof i&&null!==i)s=i;else if(void 0!==i)throw new TypeError(\"'options' must be an object.\")}else if(void 0!==n)throw new TypeError(\"'byteLength' must be a number.\")}else if(void 0!==t)throw new TypeError(\"'options' must be an object.\");a=new Uint8Array(r,o,u);}}const u=(s.executionProviders||[]).map((e=>\"string\"==typeof e?e:e.name)),l=await(async e=>{const t=0===e.length?o:e,n=[];for(const e of t){const t=r[e];if(t){if(t.initialized)return t.backend;if(t.aborted)continue;const r=!!t.initPromise;try{return r||(t.initPromise=t.backend.init()),await t.initPromise,t.initialized=!0,t.backend}catch(o){r||n.push({name:e,err:o}),t.aborted=!0;}finally{delete t.initPromise;}}}throw new Error(`no available backend found. ERR: ${n.map((e=>`[${e.name}] ${e.err}`)).join(\", \")}`)})(u),c=await l.createSessionHandler(a,s);return new d(c)}startProfiling(){this.handler.startProfiling();}endProfiling(){this.handler.endProfiling();}get inputNames(){return this.handler.inputNames}get outputNames(){return this.handler.outputNames}}const f=d;},5716:(e,t,n)=>{t.R=void 0;const r=n(6027),o=n(1723);t.R=new class{async init(){}async createSessionHandler(e,t){const n=new r.Session(t);return await n.loadModel(e),new o.OnnxjsSessionHandler(n)}};},2818:(e,t,n)=>{t.c8=t.rX=void 0;const r=n(8453),o=n(5381),i=n(9544),a=n(6640);t.rX=()=>{if((\"number\"!=typeof r.env.wasm.initTimeout||r.env.wasm.initTimeout<0)&&(r.env.wasm.initTimeout=0),\"boolean\"!=typeof r.env.wasm.simd&&(r.env.wasm.simd=!0),\"boolean\"!=typeof r.env.wasm.proxy&&(r.env.wasm.proxy=!1),\"number\"!=typeof r.env.wasm.numThreads||!Number.isInteger(r.env.wasm.numThreads)||r.env.wasm.numThreads<=0){const e=\"undefined\"==typeof navigator?(0, o.cpus)().length:navigator.hardwareConcurrency;r.env.wasm.numThreads=Math.min(4,Math.ceil((e||1)/2));}},t.c8=new class{async init(){(0, t.rX)(),await(0, i.initWasm)();}async createSessionHandler(e,t){const n=new a.OnnxruntimeWebAssemblySessionHandler;return await n.loadModel(e,t),Promise.resolve(n)}};},1057:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!(\"get\"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o);}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n];}),o=this&&this.__exportStar||function(e,t){for(var n in e)\"default\"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n);};Object.defineProperty(t,\"__esModule\",{value:!0}),o(n(8453),t);const i=n(8453);{const e=n(5716).R;(0, i.registerBackend)(\"webgl\",e,-10);}{const e=n(2818).c8;(0, i.registerBackend)(\"cpu\",e,10),(0, i.registerBackend)(\"wasm\",e,10),(0, i.registerBackend)(\"xnnpack\",e,9);}},4910:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createAttributeWithCacheKey=void 0;class n{constructor(e){Object.assign(this,e);}get cacheKey(){return this._cacheKey||(this._cacheKey=Object.getOwnPropertyNames(this).sort().map((e=>`${this[e]}`)).join(\";\")),this._cacheKey}}t.createAttributeWithCacheKey=e=>new n(e);},6874:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.Attribute=void 0;const r=n(1446),o=n(1287),i=n(9240),a=n(7273);var s=o.onnxruntime.experimental.fbs;class u{constructor(e){if(this._attributes=new Map,null!=e){for(const t of e)t instanceof r.onnx.AttributeProto?this._attributes.set(t.name,[u.getValue(t),u.getType(t)]):t instanceof s.Attribute&&this._attributes.set(t.name(),[u.getValue(t),u.getType(t)]);if(this._attributes.sizei.Tensor.fromProto(e)));if(e instanceof s.Attribute)return n.map((e=>i.Tensor.fromOrtTensor(e)))}if(t===r.onnx.AttributeProto.AttributeType.STRING&&e instanceof r.onnx.AttributeProto){const e=n;return (0, a.decodeUtf8String)(e)}return t===r.onnx.AttributeProto.AttributeType.STRINGS&&e instanceof r.onnx.AttributeProto?n.map(a.decodeUtf8String):n}static getValueNoCheck(e){return e instanceof r.onnx.AttributeProto?this.getValueNoCheckFromOnnxFormat(e):this.getValueNoCheckFromOrtFormat(e)}static getValueNoCheckFromOnnxFormat(e){switch(e.type){case r.onnx.AttributeProto.AttributeType.FLOAT:return e.f;case r.onnx.AttributeProto.AttributeType.INT:return e.i;case r.onnx.AttributeProto.AttributeType.STRING:return e.s;case r.onnx.AttributeProto.AttributeType.TENSOR:return e.t;case r.onnx.AttributeProto.AttributeType.GRAPH:return e.g;case r.onnx.AttributeProto.AttributeType.FLOATS:return e.floats;case r.onnx.AttributeProto.AttributeType.INTS:return e.ints;case r.onnx.AttributeProto.AttributeType.STRINGS:return e.strings;case r.onnx.AttributeProto.AttributeType.TENSORS:return e.tensors;case r.onnx.AttributeProto.AttributeType.GRAPHS:return e.graphs;default:throw new Error(`unsupported attribute type: ${r.onnx.AttributeProto.AttributeType[e.type]}`)}}static getValueNoCheckFromOrtFormat(e){switch(e.type()){case s.AttributeType.FLOAT:return e.f();case s.AttributeType.INT:return e.i();case s.AttributeType.STRING:return e.s();case s.AttributeType.TENSOR:return e.t();case s.AttributeType.GRAPH:return e.g();case s.AttributeType.FLOATS:return e.floatsArray();case s.AttributeType.INTS:{const t=[];for(let n=0;n{Object.defineProperty(t,\"__esModule\",{value:!0}),t.resolveBackend=t.backend=void 0;const r=n(4418),o=new Map;async function i(e){const n=t.backend;if(void 0!==n[e]&&function(e){const t=e;return \"initialize\"in t&&\"function\"==typeof t.initialize&&\"createSessionHandler\"in t&&\"function\"==typeof t.createSessionHandler&&\"dispose\"in t&&\"function\"==typeof t.dispose}(n[e])){const t=n[e];let r=t.initialize();if(\"object\"==typeof r&&\"then\"in r&&(r=await r),r)return o.set(e,t),t}}t.backend={webgl:new r.WebGLBackend},t.resolveBackend=async function e(t){if(!t)return e([\"webgl\"]);{const e=\"string\"==typeof t?[t]:t;for(const t of e){const e=o.get(t);if(e)return e;const n=await i(t);if(n)return n}}throw new Error(\"no available backend to use\")};},4418:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.WebGLBackend=void 0;const r=n(8453),o=n(1315),i=n(2171),a=n(3389);t.WebGLBackend=class{get contextId(){return r.env.webgl.contextId}set contextId(e){r.env.webgl.contextId=e;}get matmulMaxBatchSize(){return r.env.webgl.matmulMaxBatchSize}set matmulMaxBatchSize(e){r.env.webgl.matmulMaxBatchSize=e;}get textureCacheMode(){return r.env.webgl.textureCacheMode}set textureCacheMode(e){r.env.webgl.textureCacheMode=e;}get pack(){return r.env.webgl.pack}set pack(e){r.env.webgl.pack=e;}get async(){return r.env.webgl.async}set async(e){r.env.webgl.async=e;}initialize(){try{return this.glContext=(0,a.createWebGLContext)(this.contextId),\"number\"!=typeof this.matmulMaxBatchSize&&(this.matmulMaxBatchSize=16),\"string\"!=typeof this.textureCacheMode&&(this.textureCacheMode=\"full\"),\"boolean\"!=typeof this.pack&&(this.pack=!1),\"boolean\"!=typeof this.async&&(this.async=!1),o.Logger.setWithEnv(r.env),o.Logger.verbose(\"WebGLBackend\",`Created WebGLContext: ${typeof this.glContext} with matmulMaxBatchSize: ${this.matmulMaxBatchSize}; textureCacheMode: ${this.textureCacheMode}; pack: ${this.pack}; async: ${this.async}.`),!0}catch(e){return o.Logger.warning(\"WebGLBackend\",`Unable to initialize WebGLBackend. ${e}`),!1}}createSessionHandler(e){return new i.WebGLSessionHandler(this,e)}dispose(){this.glContext.dispose();}};},6859:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.CoordsGlslLib=void 0;const r=n(7273),o=n(1997),i=n(6757),a=n(7618),s=n(432);class u extends o.GlslLib{constructor(e){super(e);}getFunctions(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.offsetToCoords()),this.coordsToOffset()),this.toVec()),this.valueFrom()),this.getCommonUtilFuncs()),this.getInputsSamplingSnippets()),this.getOutputSamplingSnippet())}getCustomTypes(){return {}}offsetToCoords(){return {offsetToCoords:new o.GlslLibRoutine(\"\\n vec2 offsetToCoords(int offset, int width, int height) {\\n int t = offset / width;\\n int s = offset - t*width;\\n vec2 coords = (vec2(s,t) + vec2(0.5,0.5)) / vec2(width, height);\\n return coords;\\n }\\n \")}}coordsToOffset(){return {coordsToOffset:new o.GlslLibRoutine(\"\\n int coordsToOffset(vec2 coords, int width, int height) {\\n float s = coords.s * float(width);\\n float t = coords.t * float(height);\\n int offset = int(t) * width + int(s);\\n return offset;\\n }\\n \")}}getOutputSamplingSnippet(){const e=this.context.outputTextureLayout;return e.isPacked?this.getPackedOutputSamplingSnippet(e):this.getUnpackedOutputSamplingSnippet(e)}getPackedOutputSamplingSnippet(e){const t=e.unpackedShape,n=[e.width,e.height],r={},a=\"getOutputCoords\";switch(t.length){case 0:r[a]=this.getOutputScalarCoords();break;case 1:r[a]=this.getOutputPacked1DCoords(t,n);break;case 2:r[a]=this.getOutputPacked2DCoords(t,n);break;case 3:r[a]=this.getOutputPacked3DCoords(t,n);break;default:r[a]=this.getOutputPackedNDCoords(t,n);}const s=`\\n void setOutput(vec4 val) {\\n ${(0, i.getGlsl)(this.context.glContext.version).output} = val;\\n }\\n `;return r.floatTextureSetRGBA=new o.GlslLibRoutine(s),r}getUnpackedOutputSamplingSnippet(e){const t=e.unpackedShape,n=[e.width,e.height],r={},a=\"getOutputCoords\";switch(t.length){case 0:r[a]=this.getOutputScalarCoords();break;case 1:r[a]=this.getOutputUnpacked1DCoords(t,n);break;case 2:r[a]=this.getOutputUnpacked2DCoords(t,n);break;case 3:r[a]=this.getOutputUnpacked3DCoords(t,n);break;case 4:r[a]=this.getOutputUnpacked4DCoords(t,n);break;case 5:r[a]=this.getOutputUnpacked5DCoords(t,n);break;case 6:r[a]=this.getOutputUnpacked6DCoords(t,n);break;default:throw new Error(`Unsupported output dimensionality: ${t.length}`)}const s=`\\n void setOutput(float val) {\\n ${(0, i.getGlsl)(this.context.glContext.version).output} = vec4(val, 0, 0, 0);\\n }\\n `;return r.floatTextureSetR=new o.GlslLibRoutine(s),r}getOutputScalarCoords(){return new o.GlslLibRoutine(\"\\n int getOutputCoords() {\\n return 0;\\n }\\n \")}getOutputPacked1DCoords(e,t){const n=t;let r=\"\";return 1===n[0]?(r=`\\n int getOutputCoords() {\\n return 2 * int(TexCoords.y * ${n[1]}.0);\\n }\\n `,new o.GlslLibRoutine(r)):1===n[1]?(r=`\\n int getOutputCoords() {\\n return 2 * int(TexCoords.x * ${n[0]}.0);\\n }\\n `,new o.GlslLibRoutine(r)):(r=`\\n int getOutputCoords() {\\n ivec2 resTexRC = ivec2(TexCoords.xy *\\n vec2(${n[0]}, ${n[1]}));\\n return 2 * (resTexRC.y * ${n[0]} + resTexRC.x);\\n }\\n `,new o.GlslLibRoutine(r))}getOutputPacked2DCoords(e,t){let n=\"\";if(r.ArrayUtil.arraysEqual(e,t))return n=`\\n ivec2 getOutputCoords() {\\n return 2 * ivec2(TexCoords.xy * vec2(${t[0]}, ${t[1]}));\\n }\\n `,new o.GlslLibRoutine(n);const i=t,a=Math.ceil(e[1]/2);return n=`\\n ivec2 getOutputCoords() {\\n ivec2 resTexRC = ivec2(TexCoords.xy *\\n vec2(${i[0]}, ${i[1]}));\\n\\n int index = resTexRC.y * ${i[0]} + resTexRC.x;\\n\\n // reverse r and c order for packed texture\\n int r = imod(index, ${a}) * 2;\\n int c = 2 * (index / ${a});\\n\\n return ivec2(r, c);\\n }\\n `,new o.GlslLibRoutine(n)}getOutputPacked3DCoords(e,t){const n=[t[0],t[1]],r=Math.ceil(e[2]/2),i=r*Math.ceil(e[1]/2),a=`\\n ivec3 getOutputCoords() {\\n ivec2 resTexRC = ivec2(TexCoords.xy *\\n vec2(${n[0]}, ${n[1]}));\\n int index = resTexRC.y * ${n[0]} + resTexRC.x;\\n\\n int b = index / ${i};\\n index -= b * ${i};\\n\\n // reverse r and c order for packed texture\\n int r = imod(index, ${r}) * 2;\\n int c = 2 * (index / ${r});\\n\\n return ivec3(b, r, c);\\n }\\n `;return new o.GlslLibRoutine(a)}getOutputPackedNDCoords(e,t){const n=[t[0],t[1]],r=Math.ceil(e[e.length-1]/2),i=r*Math.ceil(e[e.length-2]/2);let a=i,s=\"\",u=\"b, r, c\";for(let t=2;t=0;--t)i[t]=i[t+1]*e[t+1];const a=[\"r\",\"c\",\"d\"],s=i.map(((e,t)=>`int ${a[t]} = index / ${e}; ${t===i.length-1?`int ${a[t+1]} = index - ${a[t]} * ${e}`:`index -= ${a[t]} * ${e}`};`)).join(\"\");return n=`\\n ivec3 getOutputCoords() {\\n ivec2 resTexRC = ivec2(TexCoords.xy *\\n vec2(${t[0]}, ${t[1]}));\\n int index = resTexRC.y * ${t[0]} + resTexRC.x;\\n ${s}\\n return ivec3(r, c, d);\\n }\\n `,new o.GlslLibRoutine(n)}getOutputUnpacked4DCoords(e,t){let n=\"\";const r=e.length;let i=null;r<2&&(i=[]),i=new Array(r-1),i[r-2]=e[r-1];for(let t=r-3;t>=0;--t)i[t]=i[t+1]*e[t+1];const a=[\"r\",\"c\",\"d\",\"d2\"],s=i.map(((e,t)=>`int ${a[t]} = index / ${e}; ${t===i.length-1?`int ${a[t+1]} = index - ${a[t]} * ${e}`:`index -= ${a[t]} * ${e}`};`)).join(\"\");return n=`\\n ivec4 getOutputCoords() {\\n ivec2 resTexRC = ivec2(TexCoords.xy *\\n vec2(${t[0]}, ${t[1]}));\\n int index = resTexRC.y * ${t[0]} + resTexRC.x;\\n ${s}\\n return ivec4(r, c, d, d2);\\n }\\n `,new o.GlslLibRoutine(n)}getOutputUnpacked5DCoords(e,t){let n=\"\";const r=e.length;let i=null;r<2&&(i=[]),i=new Array(r-1),i[r-2]=e[r-1];for(let t=r-3;t>=0;--t)i[t]=i[t+1]*e[t+1];const a=[\"r\",\"c\",\"d\",\"d2\",\"d3\"],s=i.map(((e,t)=>`int ${a[t]} = index / ${e}; ${t===i.length-1?`int ${a[t+1]} = index - ${a[t]} * ${e}`:`index -= ${a[t]} * ${e}`};`)).join(\"\");return n=`\\n ivec5 getOutputCoords() {\\n ivec2 resTexRC = ivec2(TexCoords.xy *\\n vec2(${t[0]}, ${t[1]}));\\n int index = resTexRC.y * ${t[0]} + resTexRC.x;\\n ${s}\\n return ivec5(r, c, d, d2, d3);\\n }\\n `,new o.GlslLibRoutine(n)}getOutputUnpacked6DCoords(e,t){let n=\"\";const r=e.length;let i=null;r<2&&(i=[]),i=new Array(r-1),i[r-2]=e[r-1];for(let t=r-3;t>=0;--t)i[t]=i[t+1]*e[t+1];const a=[\"r\",\"c\",\"d\",\"d2\",\"d3\",\"d4\"],s=i.map(((e,t)=>`int ${a[t]} = index / ${e}; ${t===i.length-1?`int ${a[t+1]} = index - ${a[t]} * ${e}`:`index -= ${a[t]} * ${e}`};`)).join(\"\");return n=`\\n ivec6 getOutputCoords() {\\n ivec2 resTexRC = ivec2(TexCoords.xy *\\n vec2(${t[0]}, ${t[1]}));\\n int index = resTexRC.y * ${t[0]} + resTexRC.x;\\n ${s}\\n return ivec6(r, c, d, d2, d3, d4);\\n }\\n `,new o.GlslLibRoutine(n)}getCommonUtilFuncs(){const e={};let t=\"uvFromFlat\";e[t]=new o.GlslLibRoutine(\"\\n vec2 uvFromFlat(int texNumR, int texNumC, int index) {\\n int texC = index / texNumR;\\n int texR = index - texC * texNumR;\\n // TODO: swap texR, texC order in following function so row is corresponding to u and column is corresponding to\\n // v.\\n return (vec2(texR, texC) + halfCR) / vec2(texNumR, texNumC);\\n }\\n \"),t=\"packedUVfrom1D\",e[t]=new o.GlslLibRoutine(\"\\n vec2 packedUVfrom1D(int texNumR, int texNumC, int index) {\\n int texelIndex = index / 2;\\n int texR = texelIndex / texNumC;\\n int texC = texelIndex - texR * texNumC;\\n return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\\n }\\n \"),t=\"packedUVfrom2D\",e[t]=new o.GlslLibRoutine(\"\\n vec2 packedUVfrom2D(int texNumR, int texNumC, int texelsInLogicalRow, int row, int col) {\\n int texelIndex = (row / 2) * texelsInLogicalRow + (col / 2);\\n int texR = texelIndex / texNumC;\\n int texC = texelIndex - texR * texNumC;\\n return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\\n }\\n \"),t=\"packedUVfrom3D\",e[t]=new o.GlslLibRoutine(\"\\n vec2 packedUVfrom3D(int texNumR, int texNumC,\\n int texelsInBatch, int texelsInLogicalRow, int b,\\n int row, int col) {\\n int index = b * texelsInBatch + (row / 2) * texelsInLogicalRow + (col / 2);\\n int texR = index / texNumC;\\n int texC = index - texR * texNumC;\\n return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR);\\n }\\n \"),t=\"sampleTexture\";const n=(0, i.getGlsl)(this.context.glContext.version);return e[t]=new o.GlslLibRoutine(`\\n float sampleTexture(sampler2D textureSampler, vec2 uv) {\\n return ${n.texture2D}(textureSampler, uv).r;\\n }`),e}getInputsSamplingSnippets(){const e={},t=this.context.outputTextureLayout;return this.context.programInfo.inputNames.forEach(((n,r)=>{const o=this.context.inputTextureLayouts[r],i=(0, s.generateShaderFuncNameFromInputSamplerName)(n);o.isPacked?e[i]=this.getPackedSamplerFromInput(i,n,o):e[i]=this.getUnpackedSamplerFromInput(i,n,o);const a=(0, s.generateShaderFuncNameFromInputSamplerNameAtOutCoords)(n);o.unpackedShape.length<=t.unpackedShape.length&&(o.isPacked?e[a]=this.getPackedSamplerAtOutputCoords(a,o,t,n):e[a]=this.getUnpackedSamplerAtOutputCoords(a,o,t,n));})),e}getPackedSamplerAtOutputCoords(e,t,n,i){const a=t.unpackedShape,u=n.unpackedShape,l=i,c=(0, s.generateShaderFuncNameFromInputSamplerName)(l),p=a.length,d=u.length,f=r.BroadcastUtil.getBroadcastDims(a,u),h=(0, s.getCoordsDataType)(d),g=d-p;let m;const b=(0, s.getGlChannels)();m=0===p?\"\":d<2&&f.length>=1?\"coords = 0;\":f.map((e=>`coords.${b[e+g]} = 0;`)).join(\"\\n\");let y=\"\";y=d<2&&p>0?\"coords\":a.map(((e,t)=>`coords.${b[t+g]}`)).join(\", \");let w=\"return outputValue;\";const _=1===r.ShapeUtil.size(a),v=1===r.ShapeUtil.size(u);if(1!==p||_||v){if(_&&!v)w=1===d?\"\\n return vec4(outputValue.x, outputValue.x, 0., 0.);\\n \":\"\\n return vec4(outputValue.x);\\n \";else if(f.length){const e=p-2,t=p-1;f.indexOf(e)>-1&&f.indexOf(t)>-1?w=\"return vec4(outputValue.x);\":f.indexOf(e)>-1?w=\"return vec4(outputValue.x, outputValue.y, outputValue.x, outputValue.y);\":f.indexOf(t)>-1&&(w=\"return vec4(outputValue.xx, outputValue.zz);\");}}else w=\"\\n return vec4(outputValue.xy, outputValue.xy);\\n \";const x=`\\n vec4 ${e}() {\\n ${h} coords = getOutputCoords();\\n \\n int lastDim = coords.${b[d-1]};\\n coords.${b[d-1]} = coords.${b[d-2]};\\n coords.${b[d-2]} = lastDim;\\n \\n ${m}\\n vec4 outputValue = ${c}(${y});\\n ${w}\\n }\\n `;return new o.GlslLibRoutine(x,[\"coordinates.getOutputCoords\"])}getUnpackedSamplerAtOutputCoords(e,t,n,i){const a=[n.width,n.height],u=[t.width,t.height],l=t.unpackedShape.length,c=n.unpackedShape.length,p=t.unpackedShape,d=n.unpackedShape,f=(0, s.generateShaderFuncNameFromInputSamplerName)(i);if(l===c&&r.ArrayUtil.arraysEqual(u,a)){const t=`\\n float ${e}() {\\n return sampleTexture(${i}, TexCoords);\\n }\\n `;return new o.GlslLibRoutine(t,[\"coordinates.sampleTexture\"])}const h=(0, s.getCoordsDataType)(c),g=r.BroadcastUtil.getBroadcastDims(p,d),m=c-l;let b;const y=(0, s.getGlChannels)();b=0===l?\"\":c<2&&g.length>=1?\"coords = 0;\":g.map((e=>`coords.${y[e+m]} = 0;`)).join(\"\\n\");let w=\"\";w=c<2&&l>0?\"coords\":t.unpackedShape.map(((e,t)=>`coords.${y[t+m]}`)).join(\", \");const _=`\\n float ${e}() {\\n ${h} coords = getOutputCoords();\\n ${b}\\n return ${f}(${w});\\n }\\n `;return new o.GlslLibRoutine(_,[\"coordinates.getOutputCoords\"])}getPackedSamplerFromInput(e,t,n){switch(n.unpackedShape.length){case 0:return this.getPackedSamplerScalar(e,t);case 1:return this.getPackedSampler1D(e,t,n);case 2:return this.getPackedSampler2D(e,t,n);case 3:return this.getPackedSampler3D(e,t,n);default:return this.getPackedSamplerND(e,t,n)}}getUnpackedSamplerFromInput(e,t,n){const r=n.unpackedShape;switch(r.length){case 0:return this.getUnpackedSamplerScalar(e,t,n);case 1:return this.getUnpackedSampler1D(e,t,n);case 2:return this.getUnpackedSampler2D(e,t,n);case 3:return this.getUnpackedSampler3D(e,t,n);case 4:return this.getUnpackedSampler4D(e,t,n);case 5:return this.getUnpackedSampler5D(e,t,n);case 6:return this.getUnpackedSampler6D(e,t,n);default:throw new Error(`Unsupported dimension ${r.length}-D`)}}getPackedSamplerScalar(e,t){const n=`\\n vec4 ${e}() {\\n return ${(0, i.getGlsl)(this.context.glContext.version).texture2D}(${t}, halfCR);\\n }\\n `;return new o.GlslLibRoutine(n)}getPackedSampler1D(e,t,n){const r=[n.width,n.height],a=[r[1],r[0]],s=(0, i.getGlsl)(this.context.glContext.version),u=`vec4 ${e}(int index) {\\n vec2 uv = packedUVfrom1D(\\n ${a[0]}, ${a[1]}, index);\\n return ${s.texture2D}(${t}, uv);\\n }`;return new o.GlslLibRoutine(u,[\"coordinates.packedUVfrom1D\"])}getPackedSampler2D(e,t,n){const a=n.unpackedShape,s=[n.width,n.height],u=(0, i.getGlsl)(this.context.glContext.version),l=s[0],c=s[1];if(null!=s&&r.ArrayUtil.arraysEqual(a,s)){const n=`vec4 ${e}(int row, int col) {\\n vec2 uv = (vec2(col, row) + halfCR) / vec2(${c}.0, ${l}.0);\\n return ${u.texture2D}(${t}, uv);\\n }`;return new o.GlslLibRoutine(n)}const p=s,d=Math.ceil(a[1]/2),f=`vec4 ${e}(int row, int col) {\\n vec2 uv = packedUVfrom2D(${p[1]}, ${p[0]}, ${d}, row, col);\\n return ${u.texture2D}(${t}, uv);\\n }`;return new o.GlslLibRoutine(f,[\"coordinates.packedUVfrom2D\"])}getPackedSampler3D(e,t,n){const r=n.unpackedShape,a=[n.width,n.height],u=[a[0],a[1]],l=(0, i.getGlsl)(this.context.glContext.version);if(1===r[0]){const i=r.slice(1),a=[1,2],u=(0, s.squeezeInputShape)(r,i),l=[\"b\",\"row\",\"col\"],c=JSON.parse(JSON.stringify(n));c.unpackedShape=u;const p=this.getPackedSamplerFromInput(e,t,c),d=`${p.routineBody}\\n vec4 ${e}(int b, int row, int col) {\\n return ${e}(${(0, s.getSqueezedParams)(l,a)});\\n } `;return new o.GlslLibRoutine(d,p.dependencies)}const c=u[0],p=u[1],d=Math.ceil(r[2]/2),f=`vec4 ${e}(int b, int row, int col) {\\n vec2 uv = packedUVfrom3D(\\n ${p}, ${c}, ${d*Math.ceil(r[1]/2)}, ${d}, b, row, col);\\n return ${l.texture2D}(${t}, uv);}`;return new o.GlslLibRoutine(f,[\"coordinates.packedUVfrom3D\"])}getPackedSamplerND(e,t,n){const r=n.unpackedShape,a=r.length,s=[n.width,n.height],u=(0, i.getGlsl)(this.context.glContext.version),l=[s[0],s[1]],c=l[1],p=l[0],d=Math.ceil(r[a-1]/2);let f=d*Math.ceil(r[a-2]/2),h=\"int b, int row, int col\",g=`b * ${f} + (row / 2) * ${d} + (col / 2)`;for(let e=2;e{const r=this.context.inputTextureLayouts[n],i=(r.unpackedShape.length>0?r.unpackedShape:r.shape).length;let a=`_${t}`;e[a]=new o.GlslLibRoutine(this.getValueFromSingle(t,i,r.width,r.height,!1),[`shapeUtils.indicesToOffset${a}`,\"coordinates.offsetToCoords\",\"fragcolor.getColorAsFloat\"]),a+=\"_T\",e[a]=new o.GlslLibRoutine(this.getValueFromSingle(t,i,r.width,r.height,!0),[`shapeUtils.indicesToOffset${a}`,\"coordinates.offsetToCoords\",\"fragcolor.getColorAsFloat\"]);})),e}getValueFromSingle(e,t,n,r,o){let a=`_${e}`;return o&&(a+=\"_T\"),`\\n float ${a}(int m[${t}]) {\\n int offset = indicesToOffset${a}(m);\\n vec2 coords = offsetToCoords(offset, ${n}, ${r});\\n float value = getColorAsFloat(${(0, i.getGlsl)(this.context.glContext.version).texture2D}(${e}, coords));\\n return value;\\n }\\n `}getPackedValueFrom(e,t,n,r,o){let a=`_${e}_Pack`;return o&&(a+=\"_T\"),`\\n vec4 ${a}(int m[${t}]) {\\n int offset = indicesToOffset_${e}(m);\\n vec2 coords = offsetToCoords(offset, ${n}, ${r});\\n return ${(0, i.getGlsl)(this.context.glContext.version).texture2D}(${e}, coords);\\n }\\n `}}t.CoordsGlslLib=u;},1997:(e,t)=>{var n;Object.defineProperty(t,\"__esModule\",{value:!0}),t.TopologicalSortGlslRoutines=t.GlslLibRoutineNode=t.GlslLibRoutine=t.GlslLib=t.GlslContext=t.FunctionType=void 0,(n=t.FunctionType||(t.FunctionType={}))[n.ValueBased=0]=\"ValueBased\",n[n.Positional=1]=\"Positional\",t.GlslContext=class{constructor(e,t,n,r){this.glContext=e,this.programInfo=t,this.inputTextureLayouts=n,this.outputTextureLayout=r;}},t.GlslLib=class{constructor(e){this.context=e;}},t.GlslLibRoutine=class{constructor(e,t){this.routineBody=e,this.dependencies=t;}},t.GlslLibRoutineNode=class{constructor(e,t,n){this.name=e,this.dependencies=n||[],t&&(this.routineBody=t);}addDependency(e){e&&this.dependencies.push(e);}},t.TopologicalSortGlslRoutines=class{static returnOrderedNodes(e){if(!e||0===e.length)return [];if(1===e.length)return e;const t=new Set,n=new Set,r=new Array;return this.createOrderedNodes(e,t,n,r),r}static createOrderedNodes(e,t,n,r){for(let o=0;o0)for(let e=0;e{Object.defineProperty(t,\"__esModule\",{value:!0}),t.EncodingGlslLib=void 0;const r=n(1997);class o extends r.GlslLib{constructor(e){super(e);}getFunctions(){return Object.assign(Object.assign({},this.encodeFloat32()),this.decodeFloat32())}getCustomTypes(){return {}}encodeFloat32(){return {encode:new r.GlslLibRoutine(\"highp vec4 encode(highp float f) {\\n return vec4(f, 0.0, 0.0, 0.0);\\n }\\n \")}}decodeFloat32(){return {decode:new r.GlslLibRoutine(\"highp float decode(highp vec4 rgba) {\\n return rgba.r;\\n }\\n \")}}encodeUint8(){const e=o.isLittleEndian()?\"rgba.rgba=rgba.abgr;\":\"\";return {encode:new r.GlslLibRoutine(`\\n highp vec4 encode(highp float f) {\\n highp float F = abs(f);\\n highp float Sign = step(0.0,-f);\\n highp float Exponent = floor(log2(F));\\n highp float Mantissa = (exp2(- Exponent) * F);\\n Exponent = floor(log2(F) + 127.0) + floor(log2(Mantissa));\\n highp vec4 rgba;\\n rgba[0] = 128.0 * Sign + floor(Exponent*exp2(-1.0));\\n rgba[1] = 128.0 * mod(Exponent,2.0) + mod(floor(Mantissa*128.0),128.0);\\n rgba[2] = floor(mod(floor(Mantissa*exp2(23.0 -8.0)),exp2(8.0)));\\n rgba[3] = floor(exp2(23.0)*mod(Mantissa,exp2(-15.0)));\\n ${e}\\n rgba = rgba / 255.0; // values need to be normalized to [0,1]\\n return rgba;\\n }\\n `)}}decodeUint8(){const e=o.isLittleEndian()?\"rgba.rgba=rgba.abgr;\":\"\";return {decode:new r.GlslLibRoutine(`\\n highp float decode(highp vec4 rgba) {\\n rgba = rgba * 255.0; // values need to be de-normalized from [0,1] to [0,255]\\n ${e}\\n highp float Sign = 1.0 - step(128.0,rgba[0])*2.0;\\n highp float Exponent = 2.0 * mod(rgba[0],128.0) + step(128.0,rgba[1]) - 127.0;\\n highp float Mantissa = mod(rgba[1],128.0)*65536.0 + rgba[2]*256.0 +rgba[3] + float(0x800000);\\n highp float Result = Sign * exp2(Exponent) * (Mantissa * exp2(-23.0 ));\\n return Result;\\n }\\n `)}}static isLittleEndian(){const e=new ArrayBuffer(4),t=new Uint32Array(e),n=new Uint8Array(e);if(t[0]=3735928559,239===n[0])return !0;if(222===n[0])return !1;throw new Error(\"unknown endianness\")}}t.EncodingGlslLib=o;},2691:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.FragColorGlslLib=void 0;const r=n(1997),o=n(6757);class i extends r.GlslLib{constructor(e){super(e);}getFunctions(){return Object.assign(Object.assign({},this.setFragColor()),this.getColorAsFloat())}getCustomTypes(){return {}}setFragColor(){const e=(0, o.getGlsl)(this.context.glContext.version);return {setFragColor:new r.GlslLibRoutine(`\\n void setFragColor(float value) {\\n ${e.output} = encode(value);\\n }\\n `,[\"encoding.encode\"])}}getColorAsFloat(){return {getColorAsFloat:new r.GlslLibRoutine(\"\\n float getColorAsFloat(vec4 color) {\\n return decode(color);\\n }\\n \",[\"encoding.decode\"])}}}t.FragColorGlslLib=i;},3878:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.replaceInlines=void 0;const n=/@inline[\\s\\n\\r]+(\\w+)[\\s\\n\\r]+([0-9a-zA-Z_]+)\\s*\\(([^)]*)\\)\\s*{(([^}]|[\\n\\r])*)}/gm;t.replaceInlines=function(e){const t={};let r;for(;null!==(r=n.exec(e));){const e=r[3].split(\",\").map((e=>{const t=e.trim().split(\" \");return t&&2===t.length?{type:t[0],name:t[1]}:null})).filter((e=>null!==e));t[r[2]]={params:e,body:r[4]};}for(const n in t){const o=\"(\\\\w+)?\\\\s+([_0-9a-zA-Z]+)\\\\s+=\\\\s+__FUNC__\\\\((.*)\\\\)\\\\s*;\".replace(\"__FUNC__\",n),i=new RegExp(o,\"gm\");for(;null!==(r=i.exec(e));){const o=r[1],i=r[2],a=r[3].split(\",\"),s=o?`${o} ${i};`:\"\";let u=t[n].body,l=\"\";t[n].params.forEach(((e,t)=>{e&&(l+=`${e.type} ${e.name} = ${a[t]};\\n`);})),u=`${l}\\n ${u}`,u=u.replace(\"return\",`${i} = `);const c=`\\n ${s}\\n {\\n ${u}\\n }\\n `;e=e.replace(r[0],c);}}return e.replace(n,\"\")};},8897:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.GlslPreprocessor=void 0;const r=n(1997),o=n(3878),i=n(1248),a=n(6757);t.GlslPreprocessor=class{constructor(e,t,n,o){this.libs={},this.glslLibRoutineDependencyGraph={},this.context=new r.GlslContext(e,t,n,o),Object.keys(i.glslRegistry).forEach((e=>{const t=new i.glslRegistry[e](this.context);this.libs[e]=t;}));const a=this.glslLibRoutineDependencyGraph;for(const e in this.libs){const t=this.libs[e].getFunctions();for(const n in t){const o=e+\".\"+n;let i;a[o]?(i=a[o],i.routineBody=t[n].routineBody):(i=new r.GlslLibRoutineNode(o,t[n].routineBody),a[o]=i);const s=t[n].dependencies;if(s)for(let e=0;e{const r=n.split(\".\")[1];-1!==e.indexOf(r)&&t.push(this.glslLibRoutineDependencyGraph[n]);})),r.TopologicalSortGlslRoutines.returnOrderedNodes(t)}getUniforms(e,t){const n=[];if(e)for(const t of e)n.push(`uniform sampler2D ${t};`);if(t)for(const e of t)n.push(`uniform ${e.type} ${e.name}${e.arrayLength?`[${e.arrayLength}]`:\"\"};`);return n.join(\"\\n\")}};},1248:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.glslRegistry=void 0;const r=n(6859),o=n(1371),i=n(2691),a=n(9183),s=n(9314);t.glslRegistry={encoding:o.EncodingGlslLib,fragcolor:i.FragColorGlslLib,vec:s.VecGlslLib,shapeUtils:a.ShapeUtilsGlslLib,coordinates:r.CoordsGlslLib};},9183:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ShapeUtilsGlslLib=void 0;const r=n(1997);class o extends r.GlslLib{constructor(e){super(e);}getFunctions(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.bcastIndex()),this.bcastMatmulIndex()),this.offsetToIndices()),this.indicesToOffset()),this.incrementIndices())}getCustomTypes(){return {}}bcastIndex(){const e=this.context.outputTextureLayout.shape.length,t={};return this.context.programInfo.inputNames.forEach(((n,o)=>{const i=this.context.inputTextureLayouts[o].unpackedShape;if(i.length<=e){const o=i.length,a=e-o,s=`bcastIndices_${n}`;let u=\"\";for(let e=0;e{const i=this.context.inputTextureLayouts[o].shape;if(!(i.length<2||i.length>e)){const o=i.length,a=e-o,s=`bcastMatmulIndices_${n}`;let u=\"\";for(let e=0;e{const i=this.context.inputTextureLayouts[n].shape,a=this.context.inputTextureLayouts[n].strides,s=i.length;let u=`indicesToOffset_${t}`;e[u]=new r.GlslLibRoutine(o.indexToOffsetSingle(u,s,a)),u=`indicesToOffset_${t}_T`,e[u]=new r.GlslLibRoutine(o.indexToOffsetSingle(u,s,a.slice().reverse()));})),e}static indexToOffsetSingle(e,t,n){let r=\"\";for(let e=t-1;e>=0;--e)r+=`\\n offset += indices[${e}] * ${n[e]};\\n `;return `\\n int ${e}(int indices[${t}]) {\\n int offset = 0;\\n ${r}\\n return offset;\\n }\\n `}offsetToIndices(){const e={};return this.context.programInfo.inputNames.forEach(((t,n)=>{const i=this.context.inputTextureLayouts[n].shape,a=this.context.inputTextureLayouts[n].strides,s=i.length;let u=`offsetToIndices_${t}`;e[u]=new r.GlslLibRoutine(o.offsetToIndicesSingle(u,s,a)),u=`offsetToIndices_${t}_T`,e[u]=new r.GlslLibRoutine(o.offsetToIndicesSingle(u,s,a.slice().reverse()));})),e}static offsetToIndicesSingle(e,t,n){const r=[];for(let e=0;e{const o=this.context.inputTextureLayouts[n].shape,i=o.length,a=`incrementIndices_${t}`;let s=\"\";for(let e=0;e= 0; --i) {\\n if(i > axis) continue;\\n indices[i] += 1;\\n if(indices[i] < shape[i]) {\\n break;\\n }\\n indices[i] = 0;\\n }\\n }\\n `;e[a]=new r.GlslLibRoutine(u);})),e}}t.ShapeUtilsGlslLib=o;},6757:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.getDefaultFragShaderMain=t.getFragShaderPreamble=t.getVertexShaderSource=t.getGlsl=void 0;const n={version:\"\",attribute:\"attribute\",varyingVertex:\"varying\",varyingFrag:\"varying\",texture2D:\"texture2D\",output:\"gl_FragColor\",outputDeclaration:\"\"},r={version:\"#version 300 es\",attribute:\"in\",varyingVertex:\"out\",varyingFrag:\"in\",texture2D:\"texture\",output:\"outputColor\",outputDeclaration:\"out vec4 outputColor;\"};function o(e){return 1===e?n:r}t.getGlsl=o,t.getVertexShaderSource=function(e){const t=o(e);return `${t.version}\\n precision highp float;\\n ${t.attribute} vec3 position;\\n ${t.attribute} vec2 textureCoord;\\n\\n ${t.varyingVertex} vec2 TexCoords;\\n\\n void main()\\n {\\n gl_Position = vec4(position, 1.0);\\n TexCoords = textureCoord;\\n }`},t.getFragShaderPreamble=function(e){const t=o(e);return `${t.version}\\n precision highp float;\\n precision highp int;\\n precision highp sampler2D;\\n ${t.varyingFrag} vec2 TexCoords;\\n ${t.outputDeclaration}\\n const vec2 halfCR = vec2(0.5, 0.5);\\n\\n // Custom vector types to handle higher dimenalities.\\n struct ivec5\\n {\\n int x;\\n int y;\\n int z;\\n int w;\\n int u;\\n };\\n\\n struct ivec6\\n {\\n int x;\\n int y;\\n int z;\\n int w;\\n int u;\\n int v;\\n };\\n\\n int imod(int x, int y) {\\n return x - y * (x / y);\\n }\\n\\n `},t.getDefaultFragShaderMain=function(e,t){return `\\n void main() {\\n int indices[${t}];\\n toVec(TexCoords, indices);\\n vec4 result = vec4(process(indices));\\n ${o(e).output} = result;\\n }\\n `};},9314:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.VecGlslLib=void 0;const r=n(1997);class o extends r.GlslLib{constructor(e){super(e);}getCustomTypes(){return {}}getFunctions(){return Object.assign(Object.assign(Object.assign(Object.assign({},this.binaryVecFunctions()),this.copyVec()),this.setVecItem()),this.getVecItem())}binaryVecFunctions(){const e=this.context.outputTextureLayout.shape.length,t={add:\"+=\",sub:\"-=\",mul:\"*=\",div:\"/=\"},n={};for(const o in t){const i=`${o}Vec`;let a=\"\";for(let n=0;n{Object.defineProperty(t,\"__esModule\",{value:!0}),t.WebGLInferenceHandler=void 0;const r=n(1315),o=n(9240),i=n(7273),a=n(9),s=n(7379),u=n(2488),l=n(540),c=n(3314),p=n(5639);t.WebGLInferenceHandler=class{constructor(e){this.session=e,this.packedTextureDataCache=new Map,this.unpackedTextureDataCache=new Map;}calculateTextureWidthAndHeight(e,t){return (0, c.calculateTextureWidthAndHeight)(this.session.layoutStrategy,e,t)}executeProgram(e,t){if(t.length{const n=t.map((e=>`${e.unpackedShape.join(\",\")};${e.width}x${e.height}`)).join(\"_\");let r=e.name;return e.cacheHint&&(r+=\"[\"+e.cacheHint+\"]\"),r+=\":\"+n,r})(e,n);let o=this.session.programManager.getArtifact(r);const i=o?o.programInfo:\"function\"==typeof e.get?e.get():e,a=(0, c.createTextureLayoutFromTextureType)(this.session.layoutStrategy,i.output.dims,i.output.textureType),s=this.createTextureData(a,i.output.type);return o||(o=this.session.programManager.build(i,n,s),this.session.programManager.setArtifact(r,o)),this.runProgram(o,n,s),s}run(e,t){return this.executeProgram(e,t).tensor}runProgram(e,t,n){for(let n=0;nthis.readTexture(a)),(async e=>this.readTextureAsync(a)),void 0,i),texture:n});return this.setTextureData(a.tensor.dataId,a,e.isPacked),a}getTextureData(e,t=!1){return this.session.isInitializer(e)?this.session.getTextureData(e,t):t?this.packedTextureDataCache.get(e):this.unpackedTextureDataCache.get(e)}setTextureData(e,t,n=!1){this.session.isInitializer(e)?this.session.setTextureData(e,t,n):(n?this.packedTextureDataCache:this.unpackedTextureDataCache).set(e,t);}isTextureLayoutCached(e,t=!1){return !!this.getTextureData(e.dataId,t)}dispose(){this.session.textureManager.clearActiveTextures(),this.packedTextureDataCache.forEach((e=>this.session.textureManager.releaseTexture(e))),this.packedTextureDataCache=new Map,this.unpackedTextureDataCache.forEach((e=>this.session.textureManager.releaseTexture(e))),this.unpackedTextureDataCache=new Map;}readTexture(e){return e.isPacked?this.readTexture(this.unpack(e)):this.session.backend.glContext.isFloat32DownloadSupported?this.session.textureManager.readTexture(e,e.tensor.type,e.channels):this.session.textureManager.readUint8TextureAsFloat((0, u.encodeAsUint8)(this,e))}async readTextureAsync(e){return e.isPacked?this.readTextureAsync(this.unpack(e)):this.session.backend.glContext.isFloat32DownloadSupported?this.session.textureManager.readTextureAsync(e,e.tensor.type,e.channels):this.session.textureManager.readUint8TextureAsFloat((0, u.encodeAsUint8)(this,e))}pack(e){return this.executeProgram((0, a.createPackProgramInfoLoader)(this,e.tensor),[e.tensor])}unpack(e){return this.executeProgram((0, l.createUnpackProgramInfoLoader)(this,e.tensor),[e.tensor])}};},4110:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!(\"get\"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o);}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n];}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,\"__esModule\",{value:!0}),t.WEBGL_OP_RESOLVE_RULES=void 0;const a=n(8817),s=i(n(5194)),u=n(4752),l=n(6668),c=n(9754),p=n(5042),d=n(6742),f=n(4125),h=n(6149),g=n(5378),m=n(6981),b=n(7413),y=n(7006),w=n(8276),_=n(5565),v=n(2834),x=n(1010),T=n(8126),S=n(2801),O=n(565),A=n(2444),E=n(815),I=n(564),$=n(5416),P=n(1240),D=n(5944),k=n(5707),C=i(n(9087)),R=n(7862),M=n(3980);t.WEBGL_OP_RESOLVE_RULES=[[\"Abs\",\"\",\"6+\",C.abs],[\"Acos\",\"\",\"7+\",C.acos],[\"Add\",\"\",\"7+\",s.add],[\"And\",\"\",\"7+\",s.and],[\"Asin\",\"\",\"7+\",C.asin],[\"Atan\",\"\",\"7+\",C.atan],[\"AveragePool\",\"\",\"7+\",v.averagePool,v.parseAveragePoolAttributes],[\"BatchNormalization\",\"\",\"7+\",a.batchNormalization,a.parseBatchNormalizationAttributes],[\"Cast\",\"\",\"6+\",u.cast,u.parseCastAttributes],[\"Ceil\",\"\",\"6+\",C.ceil],[\"Clip\",\"\",\"6-10\",C.clip,C.parseClipAttributes],[\"Clip\",\"\",\"11+\",C.clipV11],[\"Concat\",\"\",\"4+\",l.concat,l.parseConcatAttributes],[\"Conv\",\"\",\"1+\",c.conv,c.parseConvAttributes],[\"ConvTranspose\",\"\",\"1+\",p.convTranspose,p.parseConvTransposeAttributes],[\"Cos\",\"\",\"7+\",C.cos],[\"Div\",\"\",\"7+\",s.div],[\"Dropout\",\"\",\"7+\",C.identity],[\"DepthToSpace\",\"\",\"1+\",d.depthToSpace,d.parseDepthToSpaceAttributes],[\"Equal\",\"\",\"7+\",s.equal],[\"Elu\",\"\",\"6+\",C.elu,C.parseEluAttributes],[\"Exp\",\"\",\"6+\",C.exp],[\"Flatten\",\"\",\"1+\",f.flatten,f.parseFlattenAttributes],[\"Floor\",\"\",\"6+\",C.floor],[\"FusedConv\",\"com.microsoft\",\"1+\",c.conv,c.parseConvAttributes],[\"Gather\",\"\",\"1+\",h.gather,h.parseGatherAttributes],[\"Gemm\",\"\",\"7-10\",g.gemm,g.parseGemmAttributesV7],[\"Gemm\",\"\",\"11+\",g.gemm,g.parseGemmAttributesV11],[\"GlobalAveragePool\",\"\",\"1+\",v.globalAveragePool,v.parseGlobalAveragePoolAttributes],[\"GlobalMaxPool\",\"\",\"1+\",v.globalMaxPool],[\"Greater\",\"\",\"7+\",s.greater],[\"Identity\",\"\",\"1+\",C.identity],[\"ImageScaler\",\"\",\"1+\",m.imageScaler,m.parseImageScalerAttributes],[\"InstanceNormalization\",\"\",\"6+\",b.instanceNormalization,b.parseInstanceNormalizationAttributes],[\"LeakyRelu\",\"\",\"6+\",C.leakyRelu,C.parseLeakyReluAttributes],[\"Less\",\"\",\"7+\",s.less],[\"LRN\",\"\",\"1+\",y.lrn,y.parseLrnAttributes],[\"Log\",\"\",\"6+\",C.log],[\"MatMul\",\"\",\"1+\",w.matMul,w.parseMatMulAttributes],[\"MaxPool\",\"\",\"1+\",v.maxPool,v.parseMaxPoolAttributes],[\"Mul\",\"\",\"7+\",s.mul],[\"Neg\",\"\",\"6+\",C.neg],[\"Not\",\"\",\"1+\",C.not],[\"Or\",\"\",\"7+\",s.or],[\"Pad\",\"\",\"2-10\",_.padV2,_.parsePadAttributesV2],[\"Pad\",\"\",\"11+\",_.padV11,_.parsePadAttributesV11],[\"Pow\",\"\",\"7+\",s.pow],[\"PRelu\",\"\",\"7+\",s.pRelu],[\"ReduceLogSum\",\"\",\"1+\",x.reduceLogSum,x.parseReduceAttributes],[\"ReduceMax\",\"\",\"1+\",x.reduceMax,x.parseReduceAttributes],[\"ReduceMean\",\"\",\"1+\",x.reduceMean,x.parseReduceAttributes],[\"ReduceMin\",\"\",\"1+\",x.reduceMin,x.parseReduceAttributes],[\"ReduceProd\",\"\",\"1+\",x.reduceProd,x.parseReduceAttributes],[\"ReduceSum\",\"\",\"1-12\",x.reduceSum,x.parseReduceAttributes],[\"ReduceSumSquare\",\"\",\"1+\",x.reduceLogSumSquare,x.parseReduceAttributes],[\"Relu\",\"\",\"6+\",C.relu],[\"Reshape\",\"\",\"5+\",T.reshape],[\"Resize\",\"\",\"10\",S.resize,S.parseResizeAttributesV10],[\"Resize\",\"\",\"11+\",S.resize,S.parseResizeAttributesV11],[\"Shape\",\"\",\"1+\",O.shape],[\"Sigmoid\",\"\",\"6+\",C.sigmoid],[\"Sin\",\"\",\"7+\",C.sin],[\"Slice\",\"\",\"10+\",A.sliceV10],[\"Slice\",\"\",\"1-9\",A.slice,A.parseSliceAttributes],[\"Softmax\",\"\",\"1-12\",E.softmax,E.parseSoftmaxAttributes],[\"Softmax\",\"\",\"13+\",E.softmaxV13,E.parseSoftmaxAttributesV13],[\"Split\",\"\",\"2-12\",I.split,I.parseSplitAttributes],[\"Sqrt\",\"\",\"6+\",C.sqrt],[\"Squeeze\",\"\",\"1-12\",$.squeeze,$.parseSqueezeAttributes],[\"Squeeze\",\"\",\"13+\",$.squeezeV13],[\"Sub\",\"\",\"7+\",s.sub],[\"Sum\",\"\",\"6+\",P.sum],[\"Tan\",\"\",\"7+\",C.tan],[\"Tanh\",\"\",\"6+\",C.tanh],[\"Tile\",\"\",\"6+\",D.tile],[\"Transpose\",\"\",\"1+\",k.transpose,k.parseTransposeAttributes],[\"Upsample\",\"\",\"7-8\",M.upsample,M.parseUpsampleAttributesV7],[\"Upsample\",\"\",\"9\",M.upsample,M.parseUpsampleAttributesV9],[\"Unsqueeze\",\"\",\"1-12\",R.unsqueeze,R.parseUnsqueezeAttributes],[\"Unsqueeze\",\"\",\"13+\",R.unsqueezeV13],[\"Xor\",\"\",\"7+\",s.xor]];},8817:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseBatchNormalizationAttributes=t.batchNormalization=void 0;const r=n(4910),o=n(6757),i=n(5639),a={name:\"BatchNormalization\",inputNames:[\"A\",\"Scale\",\"B\",\"Mean\",\"Variance\"],inputTypes:[i.TextureType.unpacked,i.TextureType.unpacked,i.TextureType.unpacked,i.TextureType.unpacked,i.TextureType.unpacked]};t.batchNormalization=(e,t,n)=>(u(t),[e.run(Object.assign(Object.assign({},a),{cacheHint:n.cacheKey,get:()=>s(e,t,n)}),t)]),t.parseBatchNormalizationAttributes=e=>{const t=e.attributes.getFloat(\"epsilon\",1e-5),n=e.attributes.getFloat(\"momentum\",.9),o=e.attributes.getInt(\"spatial\",1);return (0, r.createAttributeWithCacheKey)({epsilon:t,momentum:n,spatial:o})};const s=(e,t,n)=>{const r=(0, o.getGlsl)(e.session.backend.glContext.version),s=t[0].dims.length,[u,l]=e.calculateTextureWidthAndHeight(t[1].dims,i.TextureType.unpacked),c=`\\n float process(int[${s}] indices) {\\n vec2 position = offsetToCoords(indices[1], ${u}, ${l});\\n float scale = getColorAsFloat(${r.texture2D}(Scale, position));\\n float mean = getColorAsFloat(${r.texture2D}(Mean, position));\\n float variance = getColorAsFloat(${r.texture2D}(Variance, position));\\n float b = getColorAsFloat(${r.texture2D}(B, position));\\n\\n return scale * ( (_A(indices) - mean) / sqrt(variance + float(${n.epsilon})) ) + b;\\n }`;return Object.assign(Object.assign({},a),{output:{dims:t[0].dims,type:t[0].type,textureType:i.TextureType.unpacked},shaderSource:c})},u=e=>{if(!e||5!==e.length)throw new Error(\"BatchNormalization requires 5 inputs.\");const t=e[0],n=e[1],r=e[2],o=e[3],i=e[4];if(t.dims.length<3||1!==n.dims.length||1!==r.dims.length||1!==o.dims.length||1!==i.dims.length)throw new Error(\"invalid input shape.\");if(n.dims[0]!==t.dims[1]||r.dims[0]!==t.dims[1]||o.dims[0]!==t.dims[1]||i.dims[0]!==t.dims[1])throw new Error(\"invalid input shape.\");if(\"float32\"!==t.type&&\"float64\"!==t.type||\"float32\"!==n.type&&\"float64\"!==n.type||\"float32\"!==r.type&&\"float64\"!==r.type||\"float32\"!==o.type&&\"float64\"!==o.type||\"float32\"!==i.type&&\"float64\"!==i.type)throw new Error(\"invalid input tensor types.\")};},5194:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.xor=t.sub=t.pRelu=t.pow=t.or=t.mul=t.less=t.greater=t.equal=t.div=t.and=t.add=t.glslPRelu=t.glslPow=t.glslXor=t.glslOr=t.glslAnd=t.glslLess=t.glslGreater=t.glslEqual=t.glslSub=t.glslMul=t.glslDiv=t.glslAdd=void 0;const r=n(7273),o=n(1997),i=n(6757),a=n(5639);function s(){const e=\"add_\";return {body:`\\n float ${e}(float a, float b) {\\n return a + b;\\n }\\n vec4 ${e}(vec4 v1, vec4 v2) {\\n return v1 + v2;\\n }\\n `,name:e,type:o.FunctionType.ValueBased}}function u(){const e=\"div_\";return {body:`\\n float ${e}(float a, float b) {\\n return a / b;\\n }\\n vec4 ${e}(vec4 v1, vec4 v2) {\\n return v1 / v2;\\n }\\n `,name:e,type:o.FunctionType.ValueBased}}function l(){const e=\"mul_\";return {body:`\\n float ${e}(float a, float b) {\\n return a * b;\\n }\\n vec4 ${e}(vec4 v1, vec4 v2) {\\n return v1 * v2;\\n }\\n `,name:e,type:o.FunctionType.ValueBased}}function c(){const e=\"sub_\";return {body:`\\n float ${e}(float a, float b) {\\n return a - b;\\n }\\n vec4 ${e}(vec4 v1, vec4 v2) {\\n return v1 - v2;\\n }\\n `,name:e,type:o.FunctionType.ValueBased}}function p(){const e=\"equal_\";return {body:`\\n float ${e}(float a, float b) {\\n return float(a == b);\\n }\\n vec4 ${e}(vec4 v1, vec4 v2) {\\n return vec4(equal(v1, v2));\\n }\\n `,name:e,type:o.FunctionType.ValueBased}}function d(){const e=\"greater_\";return {body:`\\n float ${e}(float a, float b) {\\n return float(a > b);\\n }\\n vec4 ${e}(vec4 v1, vec4 v2) {\\n return vec4( v1.r > v2.r ,\\n v1.g > v2.g,\\n v1.b > v2.b,\\n v1.a > v2.a );\\n }\\n `,name:e,type:o.FunctionType.ValueBased}}function f(){const e=\"less_\";return {body:`\\n float ${e}(float a, float b) {\\n return float(a < b);\\n }\\n vec4 ${e}(vec4 v1, vec4 v2) {\\n return vec4( v1.r < v2.r ,\\n v1.g < v2.g,\\n v1.b < v2.b,\\n v1.a < v2.a );\\n }\\n `,name:e,type:o.FunctionType.ValueBased}}function h(){const e=\"and_\";return {body:`\\n float ${e}(float a, float b) {\\n return float( bool(a) && bool(b) );\\n }\\n vec4 ${e}(vec4 v1, vec4 v2) {\\n bvec4 b1 = bvec4(v1);\\n bvec4 b2 = bvec4(v2);\\n return vec4( b1.r && b2.r ,\\n b1.g && b2.g,\\n b1.b && b2.b,\\n b1.a && b2.a );\\n }\\n `,name:e,type:o.FunctionType.ValueBased}}function g(){const e=\"or_\";return {body:`\\n float ${e}(float a, float b) {\\n return float( bool(a) || bool(b) );\\n }\\n vec4 ${e}(vec4 v1, vec4 v2) {\\n bvec4 b1 = bvec4(v1);\\n bvec4 b2 = bvec4(v2);\\n return vec4( b1.r || b2.r ,\\n b1.g || b2.g,\\n b1.b || b2.b,\\n b1.a || b2.a );\\n }\\n `,name:e,type:o.FunctionType.ValueBased}}function m(){const e=\"xor_\";return {body:`\\n float ${e}(float a, float b) {\\n return float( bool(a) ^^ bool(b) );\\n }\\n vec4 ${e}(vec4 v1, vec4 v2) {\\n bvec4 b1 = bvec4(v1);\\n bvec4 b2 = bvec4(v2);\\n return vec4( b1.r ^^ b2.r ,\\n b1.g ^^ b2.g,\\n b1.b ^^ b2.b,\\n b1.a ^^ b2.a );\\n }\\n `,name:e,type:o.FunctionType.ValueBased}}function b(){return function(e){const t=`${e}_`;return {body:`\\n float ${t}(float a, float b) {\\n return ${e}(a, b);\\n }\\n vec4 ${t}(vec4 v1, vec4 v2) {\\n return ${e}(v1, v2);\\n }\\n `,name:t,type:o.FunctionType.ValueBased}}(\"pow\")}function y(){const e=\"prelu_\";return {body:`\\n float ${e}(float a, float b) {\\n return a < 0.0 ? a * b: a;\\n }\\n vec4 ${e}(vec4 v1, vec4 v2) {\\n return vec4(\\n v1.r < 0.0 ? v1.r * v2.r: v1.r,\\n v1.g < 0.0 ? v1.g * v2.g: v1.g,\\n v1.b < 0.0 ? v1.b * v2.b: v1.b,\\n v1.a < 0.0 ? v1.a * v2.a: v1.a\\n );\\n }\\n `,name:e,type:o.FunctionType.ValueBased}}t.glslAdd=s,t.glslDiv=u,t.glslMul=l,t.glslSub=c,t.glslEqual=p,t.glslGreater=d,t.glslLess=f,t.glslAnd=h,t.glslOr=g,t.glslXor=m,t.glslPow=b,t.glslPRelu=y;const w=(e,t,n,r=t[0].type,o)=>{const i=e.session.pack?a.TextureType.packed:a.TextureType.unpacked;return {name:n.name,inputNames:[\"A\",\"B\"],inputTypes:[i,i],cacheHint:o,get:()=>_(e,t,n,r)}},_=(e,t,n,o=t[0].type)=>{const s=e.session.pack?a.TextureType.packed:a.TextureType.unpacked,u=!r.ShapeUtil.areEqual(t[0].dims,t[1].dims);let l=t[0].dims;const c=e.session.pack;if(u){const a=r.BroadcastUtil.calcShape(t[0].dims,t[1].dims,!1);if(!a)throw new Error(\"Can't perform binary op on the given tensors\");l=a;const u=l.length,p=0!==t[0].dims.length?t[0].dims.length:1,d=0!==t[1].dims.length?t[1].dims.length:1,f=0!==t[0].dims.length?\"bcastIndices_A(indices, aindices);\":\"aindices[0] = 0;\",h=0!==t[1].dims.length?\"bcastIndices_B(indices, bindices);\":\"bindices[0] = 0;\",g=(0, i.getGlsl)(e.session.backend.glContext.version),m=c?`\\n ${n.body}\\n void main() {\\n vec4 a = getAAtOutCoords();\\n vec4 b = getBAtOutCoords();\\n vec4 result = ${n.name}(a, b);\\n ${g.output} = result;\\n }`:`\\n ${n.body}\\n float process(int indices[${u}]) {\\n int aindices[${p}];\\n int bindices[${d}];\\n ${f}\\n ${h}\\n return ${n.name}(_A(aindices), _B(bindices));\\n }`;return {name:n.name,inputNames:[\"A\",\"B\"],inputTypes:[s,s],output:{dims:l,type:o,textureType:s},shaderSource:m,hasMain:c}}const p=(0, i.getGlsl)(e.session.backend.glContext.version),d=`\\n ${n.body}\\n void main() {\\n vec4 v1 = ${p.texture2D}(A, TexCoords);\\n vec4 v2 = ${p.texture2D}(B, TexCoords);\\n vec4 result = ${n.name}(v1, v2);\\n ${p.output} = result;\\n }\\n `;return {name:n.name,inputNames:[\"A\",\"B\"],inputTypes:[s,s],output:{dims:t[0].dims,type:o,textureType:s},shaderSource:d,hasMain:!0}};t.add=(e,t)=>[e.run(w(e,t,s()),t)],t.and=(e,t)=>[e.run(w(e,t,h(),\"bool\"),t)],t.div=(e,t)=>[e.run(w(e,t,u()),t)],t.equal=(e,t)=>[e.run(w(e,t,p(),\"bool\"),t)],t.greater=(e,t)=>[e.run(w(e,t,d(),\"bool\"),t)],t.less=(e,t)=>[e.run(w(e,t,f(),\"bool\"),t)],t.mul=(e,t)=>[e.run(w(e,t,l()),t)],t.or=(e,t)=>[e.run(w(e,t,g(),\"bool\"),t)],t.pow=(e,t)=>[e.run(w(e,t,b()),t)],t.pRelu=(e,t)=>[e.run(w(e,t,y()),t)],t.sub=(e,t)=>[e.run(w(e,t,c()),t)],t.xor=(e,t)=>[e.run(w(e,t,m(),\"bool\"),t)];},4752:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseCastAttributes=t.cast=void 0;const r=n(7273);t.cast=(e,t,n)=>(o(t),[e.cast(t[0],n)]),t.parseCastAttributes=e=>r.ProtoUtil.tensorDataTypeFromProto(e.attributes.getInt(\"to\"));const o=e=>{if(!e||1!==e.length)throw new Error(\"Cast requires 1 input.\");if(\"string\"===e[0].type)throw new Error(\"Invalid input type.\")};},4595:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createPackedConcatProgramInfoLoader=void 0;const r=n(6757),o=n(5639),i=n(432),a=n(5614);t.createPackedConcatProgramInfoLoader=(e,t,n)=>{const u=(l=t.length,c=n.cacheKey,{name:\"Concat (packed)\",inputNames:Array.from({length:l},((e,t)=>`X${t}`)),inputTypes:Array(l).fill(o.TextureType.packed),cacheHint:c});var l,c;return Object.assign(Object.assign({},u),{get:()=>((e,t,n,u)=>{const l=n[0].dims.slice();if(u>=l.length||u<-1*l.length)throw new Error(\"axis specified for concat doesn't match input dimensionality\");u<0&&(u=l.length+u);const c=l.slice(0);for(let e=1;ee.dims)),m=(0, i.getGlChannels)(p),b=new Array(g.length-1);b[0]=g[0][u];for(let e=1;e= ${b[e-1]}) {\\n return getChannel(\\n getX${e}(${s(m,y,t)}),\\n vec2(${s(w,y,t)}));\\n }`;}const x=b.length,T=b[b.length-1];v+=`\\n return getChannel(\\n getX${x}(${s(m,y,T)}),\\n vec2(${s(w,y,T)}));`;const S=(0, r.getGlsl)(e.session.backend.glContext.version),O=`\\n ${h}\\n float getValue(${m.map((e=>\"int \"+e))}) {\\n ${v}\\n }\\n\\n void main() {\\n ${f} coords = getOutputCoords();\\n int lastDim = coords.${m[p-1]};\\n coords.${m[p-1]} = coords.${m[p-2]};\\n coords.${m[p-2]} = lastDim;\\n\\n vec4 result = vec4(getValue(${d}), 0., 0., 0.);\\n\\n ${d[p-1]} = ${d[p-1]} + 1;\\n if (${d[p-1]} < ${c[p-1]}) {\\n result.g = getValue(${d});\\n }\\n\\n ${d[p-2]} = ${d[p-2]} + 1;\\n if (${d[p-2]} < ${c[p-2]}) {\\n result.a = getValue(${d});\\n }\\n\\n ${d[p-1]} = ${d[p-1]} - 1;\\n if (${d[p-2]} < ${c[p-2]} &&\\n ${d[p-1]} < ${c[p-1]}) {\\n result.b = getValue(${d});\\n }\\n ${S.output} = result;\\n }\\n `;return Object.assign(Object.assign({},t),{output:{dims:c,type:n[0].type,textureType:o.TextureType.packed},shaderSource:O,hasMain:!0})})(e,u,t,n.axis)})};const s=(e,t,n)=>{const r=e.indexOf(t);return e.map(((e,t)=>t===r?`${e} - ${n}`:e)).join()};},6668:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseConcatAttributes=t.concat=void 0;const r=n(4910),o=n(5639),i=n(4595);t.concat=(e,t,n)=>(p(t),e.session.pack&&t[0].dims.length>1?[e.run((0, i.createPackedConcatProgramInfoLoader)(e,t,n),t)]:[e.run(a(e,t,n),t)]);const a=(e,t,n)=>{const r=(i=t.length,a=n.cacheKey,{name:\"Concat\",inputNames:Array.from({length:i},((e,t)=>`X${t}`)),inputTypes:Array(i).fill(o.TextureType.unpacked),cacheHint:a});var i,a;return Object.assign(Object.assign({},r),{get:()=>((e,t,n,r)=>{const i=n[0].dims.slice();if(r>=i.length||r<-1*i.length)throw new Error(\"axis specified for concat doesn't match input dimensionality\");r<0&&(r=i.length+r);const a=i.slice(0);for(let e=1;e`int getTextureWhereDataResides(int index) {\\n ${e.map(((e,t)=>`if(index<${e}) {return ${t};}\\n`)).join(\"\")}\\n }`,u=e=>s(e),l=(e,t)=>{const n=[`float fetchDataFromCorrectTexture(int textureIndex, int indices[${t}]) {`];for(let t=0;t{const t=[\"int getSizeInConcatAxisValueFromIndex(int index) {\"];for(let n=0;n(0, r.createAttributeWithCacheKey)({axis:e.attributes.getInt(\"axis\")});const p=e=>{if(!e||e.length<1)throw new Error(\"too few inputs\");const t=e[0].type,n=e[0].dims.length;if(\"string\"===t)throw new Error(\"string tensor is not supported yet\");for(const r of e){if(r.type!==t)throw new Error(\"input tensors should be one type\");if(r.dims.length!==n)throw new Error(\"input tensors should have the same shape\")}};},7825:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createUnpackedGroupedConvProgramInfoLoader=void 0;const r=n(1315),o=n(6757),i=n(5639),a=n(9754),s=n(2150);t.createUnpackedGroupedConvProgramInfoLoader=(e,t,n)=>{const u=(l=t.length>2,c=n.cacheKey,{name:\"GroupedConv\",inputNames:l?[\"X\",\"W\",\"Bias\"]:[\"X\",\"W\"],inputTypes:l?[i.TextureType.unpacked,i.TextureType.unpacked,i.TextureType.unpacked]:[i.TextureType.unpacked,i.TextureType.unpacked],cacheHint:c});var l,c;return Object.assign(Object.assign({},u),{get:()=>((e,t,n,u)=>{const l=t.length>2?\"value += getBias(output_channel);\":\"\",c=t[0].dims.slice(),p=t[1].dims.slice(),d=p[0]/u.group;r.Logger.verbose(\"GroupedConv\",`autpPad:${u.autoPad}, dilations:${u.dilations}, group:${u.group}, kernelShape:${u.kernelShape}, pads:${u.pads}, strides:${u.strides}`);const f=(0, a.calculateOutputShape)(c,p,u.dilations,u.pads,u.strides),h=(0, o.getGlsl)(e.session.backend.glContext.version),{activationFunction:g,applyActivation:m}=(0, s.getActivationSnippet)(u),b=`\\n const ivec2 strides = ivec2(${u.strides[0]}, ${u.strides[1]});\\n const ivec2 pads = ivec2(${u.pads[0]}, ${u.pads[1]});\\n ${g}\\n void main() {\\n ivec4 coords = getOutputCoords();\\n int batch = coords.x;\\n int output_channel = coords.y;\\n ivec2 xRCCorner = coords.zw * strides - pads;\\n int group_id = output_channel / ${d};\\n\\n float value = 0.0;\\n for (int wInChannel = 0; wInChannel < ${p[1]}; wInChannel++) {\\n int input_channel = group_id * ${p[1]} + wInChannel;\\n for (int wHeight = 0; wHeight < ${p[2]}; wHeight++) {\\n int xHeight = xRCCorner.x + wHeight * ${u.dilations[0]};\\n\\n if (xHeight < 0 || xHeight >= ${c[2]}) {\\n continue;\\n }\\n\\n for (int wWidth = 0; wWidth < ${p[3]}; wWidth++) {\\n int xWidth = xRCCorner.y + wWidth * ${u.dilations[1]};\\n if (xWidth < 0 || xWidth >= ${c[3]}) {\\n continue;\\n }\\n\\n float xVal = getX(batch, input_channel, xWidth, xHeight);\\n float wVal = getW(output_channel, wInChannel, wWidth, wHeight);\\n value += xVal*wVal;\\n }\\n }\\n }\\n ${l}\\n ${m}\\n ${h.output} = vec4(value, .0, .0, .0);\\n }\\n`;return Object.assign(Object.assign({},n),{output:{dims:f,type:t[0].type,textureType:i.TextureType.unpacked},shaderSource:b,hasMain:!0})})(e,t,u,n)})};},7708:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.conv2DPacked=t.conv2DPackedPointwise=void 0;const r=n(9754),o=n(5950),i=n(5632);t.conv2DPackedPointwise=(e,t,n)=>{const o=t[0].dims,a=t[1].dims,s=(0, r.calculateOutputShape)(o,a,n.dilations,n.pads,n.strides),u=e.reshapePacked(t[0],[o[1],o[2]*o[3]]),l=e.reshapePacked(t[1],[a[0],a[1]]),c=t.length>2?[l,u,t[2]]:[l,u],p=e.run((0, i.createPackedMatmulProgramInfoLoader)(e,c,n),c);return e.reshapePacked(p,s)},t.conv2DPacked=(e,t,n)=>{const a=t[0].dims,s=t[1].dims,u=(0, r.calculateOutputShape)(a,s,n.dilations,n.pads,n.strides),l=e.run((0, o.createPackedIm2ColProgramInfoLoader)(e,t[0],t[1],u,n),[t[0]]),c=e.reshapePacked(t[1],[s[0],s[1]*s[2]*s[3]]),p=3===t.length?[c,l,t[2]]:[c,l],d=e.run((0, i.createPackedMatmulProgramInfoLoader)(e,p,n),p);return e.reshapePacked(d,u)};},5042:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseConvTransposeAttributes=t.convTranspose=void 0;const r=n(4910),o=n(6757),i=n(5639),a=n(2150),s=(e,t,n,r,o,i)=>(e-1)*t+n+(r-1)*o+1-i,u=(e,t,n,r,o)=>{const i=Math.floor(e/2);\"SAME_UPPER\"===t?(n[r]=i,n[o]=e-i):\"SAME_LOWER\"===t&&(n[r]=e-i,n[o]=i);};t.convTranspose=(e,t,n)=>(d(t,n),l(e,t,n));const l=(e,t,n)=>{const r=p(n,t);return [c(e,t,r)]},c=(e,t,n)=>e.run(((e,t,n)=>{const r=(s=t.length>2,u=n.cacheKey,{name:\"ConvTranspose\",inputNames:s?[\"X\",\"W\",\"B\"]:[\"X\",\"W\"],inputTypes:s?[i.TextureType.unpacked,i.TextureType.unpacked,i.TextureType.unpacked]:[i.TextureType.unpacked,i.TextureType.unpacked],cacheHint:u});var s,u;return Object.assign(Object.assign({},r),{get:()=>((e,t,n,r)=>{const s=t.length>2?\"getB(output_channel)\":\"0.0\",u=t[0].dims,l=t[1].dims,c=l[1],p=l[0]/r.group,d=[t[0].dims[0],t[1].dims[1]*r.group,...r.outputShape],f=(0, o.getGlsl)(e.session.backend.glContext.version),{activationFunction:h,applyActivation:g}=(0, a.getActivationSnippet)(r),m=`\\n const ivec2 strides = ivec2(${r.strides[0]}, ${r.strides[1]});\\n const ivec2 pads = ivec2(${r.pads[0]}, ${r.pads[1]});\\n ${h}\\n void main() {\\n ivec4 coords = getOutputCoords();\\n int batch = coords.x;\\n int output_channel = coords.y;\\n\\n ivec2 loc = coords.zw + pads;\\n\\n int group_id = output_channel / ${c};\\n int wOutChannel = output_channel - group_id * ${c};\\n\\n float value = ${s};\\n for (int inChannelOffset = 0; inChannelOffset < ${p}; inChannelOffset++) {\\n int input_channel = group_id * ${p} + inChannelOffset;\\n for (int wWOff = 0; wWOff < ${l[2]}; wWOff++) {\\n for (int wHOff = 0; wHOff < ${l[3]}; wHOff++) {\\n ivec2 wOff = ivec2(wWOff * ${r.dilations[0]}, wHOff * ${r.dilations[1]});\\n ivec2 wLoc = loc - wOff;\\n ivec2 wLocIn = wLoc / strides;\\n if (\\n wLocIn * strides == wLoc &&\\n wLocIn.x >= 0 && wLocIn.x < ${u[2]} &&\\n wLocIn.y >= 0 && wLocIn.y < ${u[3]}\\n ) {\\n float xVal = getX(batch, input_channel, wLocIn.y, wLocIn.x);\\n float wVal = getW(input_channel, wOutChannel, wHOff, wWOff);\\n value += xVal * wVal;\\n }\\n }\\n }\\n }\\n ${g}\\n ${f.output} = vec4(value, .0, .0, .0);\\n }\\n`;return Object.assign(Object.assign({},n),{output:{dims:d,type:t[0].type,textureType:i.TextureType.unpacked},shaderSource:m,hasMain:!0})})(e,t,r,n)})})(e,t,n),t),p=(e,t)=>{const n=e.kernelShape.slice();if(0===e.kernelShape.length)for(let e=2;e{const c=e.length-2,p=0===l.length;for(let d=0;d{const t=e.attributes,n=(0, a.parseInternalActivationAttributes)(t),o=t.getString(\"auto_pad\",\"NOTSET\"),i=t.getInts(\"dilations\",[1,1]),s=t.getInt(\"group\",1),u=t.getInts(\"kernel_shape\",[]),l=t.getInts(\"output_padding\",[0,0]),c=t.getInts(\"output_shape\",[]),p=t.getInts(\"pads\",[0,0,0,0]),d=t.getInts(\"strides\",[1,1]);return (0, r.createAttributeWithCacheKey)(Object.assign({autoPad:o,dilations:i,group:s,kernelShape:u,outputPadding:l,outputShape:c,pads:p,strides:d},n))};const d=(e,t)=>{if(!e||2!==e.length&&3!==e.length)throw new Error(\"Conv requires 2 or 3 inputs\");if(4!==e[0].dims.length||4!==e[1].dims.length)throw new Error(\"currently only support 2-dimensional conv\");if(e[0].dims[1]!==e[1].dims[0])throw new Error(\"FILTER_IN_CHANNEL should be equal to DATA_CHANNEL\");const n=e[1].dims[1]*t.group;if(3===e.length&&(1!==e[2].dims.length||e[2].dims[0]!==n))throw new Error(\"invalid bias\");const r=e[0].dims.length-2;if(t.dilations.length!==r)throw new Error(`dilations should be ${r}D`);if(t.strides.length!==r)throw new Error(`strides should be ${r}D`);if(t.pads.length!==2*r)throw new Error(`pads should be ${2*r}D`);if(t.outputPadding.length!==r)throw new Error(`output_padding should be ${r}D`);if(0!==t.kernelShape.length&&t.kernelShape.length!==e[1].dims.length-2)throw new Error(\"invalid kernel shape\");if(0!==t.outputShape.length&&t.outputShape.length!==e[0].dims.length-2)throw new Error(\"invalid output shape\");if(\"float32\"!==e[0].type||\"float32\"!==e[1].type)throw new Error(\"ConvTranspose input(X,W) should be float tensor\");if(3===e.length&&\"float32\"!==e[2].type)throw new Error(\"ConvTranspose input(bias) should be float tensor\")};},9754:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseConvAttributes=t.conv=t.calculateOutputShape=void 0;const r=n(4910),o=n(7273),i=n(7825),a=n(7708),s=n(3281),u=n(2150),l=n(1625),c=n(8276);t.calculateOutputShape=(e,t,n,r,o)=>{const i=e[0],a=e.slice(2),s=a.length,u=t[0],l=t.slice(2).map(((e,t)=>e+(e-1)*(n[t]-1))),c=a.map(((e,t)=>e+r[t]+r[t+s])).map(((e,t)=>Math.floor((e-l[t]+o[t])/o[t])));return [i,u].concat(...c)},t.conv=(e,t,n)=>(g(t,n),p(e,t,n));const p=(e,t,n)=>{const r=h(n,t),o=e.session.pack,s=1===r.kernelShape[0]&&1===r.kernelShape[1];return r.group>1?[e.run((0, i.createUnpackedGroupedConvProgramInfoLoader)(e,t,r),t)]:s&&o?[d(e,t,r)]:o&&4===t[0].dims.length&&1===t[0].dims[0]&&!s?[(0, a.conv2DPacked)(e,t,r)]:[f(e,t,r)]},d=(e,n,r)=>{const o=n[0].dims,i=n[1].dims,a=(0, t.calculateOutputShape)(o,i,r.dilations,r.pads,r.strides),s=e.reshapeUnpacked(n[0],[o[1],o[2]*o[3]]),u=e.reshapeUnpacked(n[1],[i[0],i[1]]),l=n.length>2?[u,s,n[2]]:[u,s],p=e.run((0, c.createMatmulProgramInfoLoader)(l,r),l);return e.reshapeUnpacked(p,a)},f=(e,n,r)=>{const o=n[0].dims,i=n[1].dims,a=(0, t.calculateOutputShape)(o,i,r.dilations,r.pads,r.strides),u=e.run((0, l.createIm2ColProgramInfoLoader)(e,n[0],n[1],a,r),[n[0]]),c=3===n.length?[u,n[1],n[2]]:[u,n[1]];return e.run((0, s.createDotProductProgramInfoLoader)(e,n,a,r),c)},h=(e,t)=>{const n=e.kernelShape.slice();if(0===e.kernelShape.length)for(let e=2;e{const t=e.attributes,n=(0, u.parseInternalActivationAttributes)(t),o=t.getString(\"auto_pad\",\"NOTSET\"),i=t.getInts(\"dilations\",[1,1]),a=t.getInt(\"group\",1),s=t.getInts(\"kernel_shape\",[]),l=t.getInts(\"pads\",[0,0,0,0]),c=t.getInts(\"strides\",[1,1]);return (0, r.createAttributeWithCacheKey)(Object.assign({autoPad:o,dilations:i,group:a,kernelShape:s,pads:l,strides:c},n))};const g=(e,t)=>{if(!e||2!==e.length&&3!==e.length)throw new Error(\"Conv requires 2 or 3 inputs\");if(4!==e[0].dims.length||4!==e[1].dims.length)throw new Error(\"currently only support 2-dimensional conv\");if(e[0].dims[1]!==e[1].dims[1]*t.group)throw new Error(\"FILTER_IN_CHANNEL should be equal to DATA_CHANNEL\");if(3===e.length&&(1!==e[2].dims.length||e[1].dims[0]!==e[2].dims[0]))throw new Error(\"invalid bias\");const n=e[0].dims.length-2;if(t.dilations.length!==n)throw new Error(`dilations should be ${n}D`);if(t.strides.length!==n)throw new Error(`strides should be ${n}D`);if(t.pads.length!==2*n)throw new Error(`pads should be ${2*n}D`);if(0!==t.kernelShape.length&&t.kernelShape.length!==e[1].dims.length-2)throw new Error(\"invalid kernel shape\");if(\"float32\"!==e[0].type||\"float32\"!==e[1].type)throw new Error(\"Conv input(X,W) should be float tensor\");if(3===e.length&&\"float32\"!==e[2].type)throw new Error(\"Conv input(bias) should be float tensor\")};},6742:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseDepthToSpaceAttributes=t.depthToSpace=void 0;const r=n(5707);t.depthToSpace=(e,t,n)=>{o(t);const i=n.blocksize,a=i*i,s=\"DCR\"===n.mode?[0,3,4,1,5,2]:[0,1,4,2,5,3],u=\"DCR\"===n.mode?[t[0].dims[0],i,i,t[0].dims[1]/a,t[0].dims[2],t[0].dims[3]]:[t[0].dims[0],t[0].dims[1]/a,i,i,t[0].dims[2],t[0].dims[3]],l=e.reshapeUnpacked(t[0],u),c={perm:s,cacheKey:`${s}`},[p]=(0, r.transpose)(e,[l],c),d=[t[0].dims[0],t[0].dims[1]/a,t[0].dims[2]*i,t[0].dims[3]*i];return [e.reshapeUnpacked(p,d)]},t.parseDepthToSpaceAttributes=e=>{const t=e.attributes.getInt(\"blocksize\");if(t<1)throw new Error(`blocksize must be >= 1, but got : ${t} for DepthToSpace`);const n=e.attributes.getString(\"mode\",\"DCR\");if(\"DCR\"!==n&&\"CRD\"!==n)throw new Error(`unrecognized mode: ${n} for DepthToSpace`);return {mode:n,blocksize:t}};const o=e=>{if(1!==e.length)throw new Error(`DepthToSpace expect 1 inputs, but got ${e.length}`);if(\"string\"===e[0].type||4!==e[0].dims.length)throw new TypeError(\"DepthToSpace input should be a 4-D numeric tensor\")};},3281:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createDotProductProgramInfoLoader=void 0;const r=n(7273),o=n(6757),i=n(5639),a=n(2150),s=n(1625);t.createDotProductProgramInfoLoader=(e,t,n,u)=>{const l=((e,t)=>({name:\"ConvDotProduct\",inputNames:e?[\"Im2Col\",\"K\",\"B\"]:[\"Im2Col\",\"K\"],inputTypes:e?[i.TextureType.unpacked,i.TextureType.packedLastDimension,i.TextureType.unpacked]:[i.TextureType.unpacked,i.TextureType.packedLastDimension],cacheKey:t.activationCacheKey}))(t.length>2,u);return Object.assign(Object.assign({},l),{get:()=>((e,t,n,u,l)=>{const c=n[0].dims,p=n[1].dims,d=[p[0],Math.ceil(c[1]*p[2]*p[3]/4)],f=(0, s.calculateIm2ColDims)(c,p,u),[h,g]=e.calculateTextureWidthAndHeight(d,i.TextureType.packedLastDimension),m=r.ShapeUtil.computeStrides(f),[b,y]=e.calculateTextureWidthAndHeight(f,i.TextureType.packedLastDimension),w=u.length,_=n.length<3?\"0.0\":\"_B(b)\",v=Math.ceil(c[1]*p[2]*p[3]/4),{activationFunction:x,applyActivation:T}=(0, a.getActivationSnippet)(l),S=(0, o.getGlsl)(e.session.backend.glContext.version),O=`\\n${x}\\nfloat process(int indices[${w}]) {\\n int b[1];\\n b[0] = indices[1];\\n int im2col[4];\\n im2col[0] = indices[0];\\n im2col[1] = indices[2];\\n im2col[2] = indices[3];\\n int im2colOffset = im2col[0] * ${m[0]} + im2col[1] * ${m[1]} + im2col[2] * ${m[2]};\\n int kernelOffset = indices[1] * ${d[1]};\\n float value = ${_};\\n for (int i = 0; i < ${v}; ++i) {\\n vec2 im2colCoords = offsetToCoords(im2colOffset, ${b}, ${y});\\n vec2 kernelCoords = offsetToCoords(kernelOffset, ${h}, ${g});\\n value += dot(${S.texture2D}(Im2Col, im2colCoords), ${S.texture2D}(K, kernelCoords));\\n ++im2colOffset;\\n ++kernelOffset;\\n }\\n ${T}\\n return value;\\n}`;return Object.assign(Object.assign({},t),{output:{dims:u,type:n[0].type,textureType:i.TextureType.unpacked},shaderSource:O})})(e,l,t,n,u)})};},4125:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseFlattenAttributes=t.flatten=void 0;const r=n(7273);t.flatten=(e,t,n)=>{o(t,n);const i=r.ShapeUtil.flattenShape(t[0].dims,n);return [e.reshapeUnpacked(t[0],i)]},t.parseFlattenAttributes=e=>e.attributes.getInt(\"axis\",1);const o=(e,t)=>{if(!e||1!==e.length)throw new Error(\"Flatten requires 1 input.\");const n=e[0].dims.length;if(0===n)throw new Error(\"scalar tensor is not supported.\");if(t<-n||t>n)throw new Error(\"Invalid axis\");if(\"string\"===e[0].type)throw new Error(\"string tensor is not supported.\")};},2150:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseInternalActivationAttributes=t.getActivationSnippet=void 0;const r=n(7273),o=n(9087);t.getActivationSnippet=function(e){let t;switch(e.activation){case\"Relu\":t=(0, o.glslRelu)();break;case\"Sigmoid\":t=(0, o.glslSigmoid)();break;case\"Clip\":t=(0, o.glslClip)(e.clipMin,e.clipMax);break;default:return {activationFunction:\"\",applyActivation:\"\"}}const n=t.name;return {activationFunction:t.body,applyActivation:`value = ${n}_(value);`}},t.parseInternalActivationAttributes=e=>{const t=e.getString(\"activation\",\"\");if(\"Clip\"===t){const[n,o]=e.getFloats(\"activation_params\",[r.MIN_CLIP,r.MAX_CLIP]);return {activation:t,clipMax:o,clipMin:n,activationCacheKey:`${t}:${n},${o}`}}return {activation:t,activationCacheKey:t}};},6149:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseGatherAttributes=t.gather=void 0;const r=n(4910),o=n(6145),i=n(7273),a=n(5639);t.gather=(e,t,n)=>(l(t,n.axis),[e.run(u(e,t,n),t)]),t.parseGatherAttributes=e=>(0, r.createAttributeWithCacheKey)({axis:e.attributes.getInt(\"axis\",0)});const s={name:\"Gather\",inputNames:[\"A\",\"B\"],inputTypes:[a.TextureType.unpacked,a.TextureType.unpacked]},u=(e,t,n)=>{const r=Object.assign(Object.assign({},s),{cacheHint:n.cacheKey});return Object.assign(Object.assign({},r),{get:()=>((e,t,n,r)=>{const o=n[0].dims.slice(),s=n[1].dims.slice(),u=new Array(o.length+s.length-1);r=i.ShapeUtil.normalizeAxis(r,o.length);const l=[];for(let e=0;e{if(!e||2!==e.length)throw new Error(\"Gather requires 2 inputs.\");const n=e[0].dims.length;if(n<1)throw new Error(\"Invalid input shape.\");if(t<-n||t>n-1)throw new Error(\"Invalid axis.\");if(-1===o.NUMBER_TYPES.indexOf(e[0].type))throw new Error(\"Invaid input type.\");if(\"int32\"!==e[1].type&&\"int16\"!==e[1].type)throw new Error(\"Invaid input type.\")};},5378:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseGemmAttributesV11=t.parseGemmAttributesV7=t.gemm=void 0;const r=n(4910),o=n(7273),i=n(5639);t.gemm=(e,t,n)=>(l(t,n),[e.run(s(t,n),t)]);const a=(e,t)=>{const n=0!==e.attributes.getInt(\"transA\",0),o=0!==e.attributes.getInt(\"transB\",0),i=e.attributes.getFloat(\"alpha\",1),a=e.attributes.getFloat(\"beta\",1);return (0, r.createAttributeWithCacheKey)({transA:n,transB:o,alpha:i,beta:a,isOptionalC:t})};t.parseGemmAttributesV7=e=>a(e,!1),t.parseGemmAttributesV11=e=>a(e,!0);const s=(e,t)=>{const n={name:\"Gemm\",inputNames:3===e.length?[\"A\",\"B\",\"C\"]:[\"A\",\"B\"],inputTypes:3===e.length?[i.TextureType.unpacked,i.TextureType.unpacked,i.TextureType.unpacked]:[i.TextureType.unpacked,i.TextureType.unpacked],key:t.cacheKey};return Object.assign(Object.assign({},n),{get:()=>u(n,e,t)})},u=(e,t,n)=>{const r=t[0].dims.slice(),a=t[1].dims.slice(),[s,u]=o.GemmUtil.getShapeOfGemmResult(r,n.transA,a,n.transB,3===t.length?t[2].dims:void 0),l=[s,u];if(!l)throw new Error(\"Can't use gemm on the given tensors\");let c=r[r.length-1],p=\"\";n.transA&&(c=r[0]),n.transA&&n.transB?p=\"value += _A_T(a) * _B_T(b);\":n.transA&&!n.transB?p=\"value += _A_T(a) * _B(b);\":!n.transA&&n.transB?p=\"value += _A(a) * _B_T(b);\":n.transA||n.transB||(p=\"value += _A(a) * _B(b);\");const d=l.length,f=`\\n float process(int indices[${d}]) {\\n int a[${d}];\\n int b[${d}];\\n ${3===t.length?`int c[${t[2].dims.length}];`:\"\"}\\n\\n copyVec(indices, a);\\n copyVec(indices, b);\\n ${3===t.length?\"bcastIndices_C(indices, c);\":\"\"}\\n\\n float value = 0.0;\\n for (int k=0; k<${c}; ++k) {\\n a[${d-1}] = k;\\n b[${d-2}] = k;\\n ${p}\\n }\\n\\n value = value * alpha;\\n ${3===t.length?\"value += beta * _C(c);\":\"\"}\\n return value;\\n }`;return Object.assign(Object.assign({},e),{output:{dims:l,type:t[0].type,textureType:i.TextureType.unpacked},variables:[{name:\"alpha\",type:\"float\",data:n.alpha},{name:\"beta\",type:\"float\",data:n.beta}],shaderSource:f})},l=(e,t)=>{if(!e)throw new Error(\"Input is missing\");if(t.isOptionalC&&(e.length<2||e.length>3))throw new Error(\"Invaid input shape.\");if(!t.isOptionalC&&3!==e.length)throw new Error(\"Gemm requires 3 inputs\");if(3===e.length&&1!==e[2].dims.length&&2!==e[2].dims.length)throw new Error(\"Invalid input shape of C\");if(\"float32\"!==e[0].type&&\"float64\"!==e[0].type||\"float32\"!==e[1].type&&\"float64\"!==e[1].type||3===e.length&&\"float32\"!==e[2].type&&\"float64\"!==e[2].type)throw new Error(\"Invalid input type.\");if(e[0].type!==e[1].type||3===e.length&&e[0].type!==e[2].type)throw new Error(\"Input types are mismatched\")};},5950:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createPackedIm2ColProgramInfoLoader=void 0;const r=n(6757),o=n(5639),i=n(5614);t.createPackedIm2ColProgramInfoLoader=(e,t,n,a,s)=>{const u=(l=s.cacheKey,{name:\"Im2Col (packed)\",inputNames:[\"A\"],inputTypes:[o.TextureType.packed],cacheHint:l});var l;return Object.assign(Object.assign({},u),{get:()=>((e,t,n,a,s,u)=>{const l=n.dims,c=a.dims,p=s.length,d=[c[1]*c[2]*c[3],s[2]*s[3]],f=c[2]*c[3],h=(0, i.unpackFromChannel)(),g=(0, r.getGlsl)(e.session.backend.glContext.version);let m=\"\";for(let e=0;e<=1;e++)for(let t=0;t<=1;t++)m+=`\\n blockIndex = rc.x + ${t};\\n pos = rc.y + ${e};\\n\\n if(blockIndex < ${d[1]} && pos < ${d[0]}) {\\n offsetY = int(blockIndex / (${s[p-1]})) * ${u.strides[0]} -\\n ${u.pads[0]};\\n d0 = offsetY + ${u.dilations[0]} * (imod(pos, ${f}) / ${c[2]});\\n\\n if(d0 < ${l[2]} && d0 >= 0) {\\n offsetX = imod(blockIndex, ${s[p-1]}) * ${u.strides[1]} -\\n ${u.pads[1]};\\n d1 = offsetX + ${u.dilations[1]} * imod(imod(pos, ${f}), ${c[2]});\\n\\n if(d1 < ${l[3]} && d1 >= 0) {\\n\\n ch = int(float(pos)/ ${f}.);\\n innerDims = vec2(d0, d1);\\n result[${2*e+t}] = getChannel(\\n getA(0, ch, int(innerDims.x),\\n int(innerDims.y)), innerDims);\\n }\\n }\\n }\\n\\n `;const b=`\\n ${h}\\n\\n void main() {\\n ivec2 rc = getOutputCoords();\\n vec4 result = vec4(0.0);\\n int blockIndex, pos, offsetY, d0, offsetX, d1, ch;\\n vec2 innerDims;\\n ${m}\\n ${g.output} = result;\\n }\\n `;return Object.assign(Object.assign({},t),{output:{dims:d,type:n.type,textureType:o.TextureType.packed},shaderSource:b,hasMain:!0})})(e,u,t,n,a,s)})};},1625:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.calculateIm2ColDims=t.createIm2ColProgramInfoLoader=void 0;const r=n(5639);t.createIm2ColProgramInfoLoader=(e,n,o,i,a)=>{const s=(u=a.cacheKey,{name:\"Im2Col\",inputNames:[\"X\"],inputTypes:[r.TextureType.unpacked],cacheHint:u});var u;return Object.assign(Object.assign({},s),{get:()=>((e,n,o,i,a,s)=>{const u=o.dims,l=i.dims,c=a.length,p=(0, t.calculateIm2ColDims)(u,l,a,4),d=`\\n const int XC = ${u[1]};\\n const int XH = ${u[2]};\\n const int XW = ${u[3]};\\n const int KH = ${s.kernelShape[0]};\\n const int KW = ${s.kernelShape[1]};\\n const int dilationH = ${s.dilations[0]};\\n const int dilationW = ${s.dilations[1]};\\n const int strideH = ${s.strides[0]};\\n const int strideW = ${s.strides[1]};\\n const int padH = ${s.pads[0]};\\n const int padW = ${s.pads[1]};\\n const int KHKW = KH*KW;\\n const int XCKHKW = XC * KHKW;\\n const int outputChannels = 4;\\n vec4 process(int indices[${c}]) {\\n int b = indices[0]; // batch size\\n int oh = indices[1] * strideH - padH; //output height\\n int ow = indices[2] * strideW - padW; //output width\\n int p = indices[3] * outputChannels; //patch\\n vec4 value = vec4(0.0);\\n for(int i=0; i < outputChannels; ++i) {\\n if(p < XCKHKW) {\\n int patchC = p / KHKW;\\n int patchH = (p - patchC*KHKW) / KW;\\n int patchW = (p - patchC*KHKW) - patchH * KW;\\n int xh2 = oh + patchH * dilationH;\\n int xw2 = ow + patchW * dilationW;\\n int x[${u.length}];\\n x[0] = b;\\n x[1] = patchC;\\n x[2] = xh2;\\n x[3] = xw2;\\n if(xh2 >= 0 &&\\n xh2 < XH &&\\n xw2 >= 0 &&\\n xw2 < XW) {\\n value[i] = _X(x);\\n }\\n }\\n ++p;\\n }\\n return value;\\n }\\n `;return Object.assign(Object.assign({},n),{output:{dims:p,type:o.type,textureType:r.TextureType.packedLastDimension},shaderSource:d})})(0,s,n,o,i,a)})},t.calculateIm2ColDims=(e,t,n,r=4)=>[n[0],n[2],n[3],Math.ceil(e[1]*t[2]*t[3]/r)];},6981:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseImageScalerAttributes=t.imageScaler=void 0;const r=n(4910),o=n(5639);t.imageScaler=(e,t,n)=>(u(t),[e.run(a(e,t,n),t)]),t.parseImageScalerAttributes=e=>{const t=e.attributes.getFloat(\"scale\"),n=e.attributes.getFloats(\"bias\");return (0, r.createAttributeWithCacheKey)({scale:t,bias:n})};const i={name:\"ImageScaler\",inputNames:[\"X\"],inputTypes:[o.TextureType.unpacked]},a=(e,t,n)=>{const r=Object.assign(Object.assign({},i),{cacheHint:n.cacheKey});return Object.assign(Object.assign({},r),{get:()=>((e,t,n,r)=>{const i=n[0].dims.slice(),a=i.length,u=`\\n ${s(r.bias.length)}\\n float process(int indices[${a}]) {\\n return _X(indices) * scale + getBias(bias, indices[1]);\\n }`;return Object.assign(Object.assign({},t),{output:{dims:i,type:n[0].type,textureType:o.TextureType.unpacked},variables:[{name:\"bias\",type:\"float\",arrayLength:r.bias.length,data:r.bias},{name:\"scale\",type:\"float\",data:r.scale}],shaderSource:u})})(0,r,t,n)})},s=e=>{const t=[`float getBias(float bias[${e}], int channel) {`];for(let n=0;n{if(!e||1!==e.length)throw new Error(\"ImageScaler requires 1 input.\");if(4!==e[0].dims.length)throw new Error(\"Invalid input shape.\");if(\"float32\"!==e[0].type&&\"float64\"!==e[0].type)throw new Error(\"Invalid input type.\")};},7413:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseInstanceNormalizationAttributes=t.instanceNormalization=void 0;const r=n(6757),o=n(5639);t.instanceNormalization=(e,t,n)=>{l(t);const r=e.run(a(t[0]),t);return [e.run(u(e,t[0],n,r.dims),[t[0],r,t[1],t[2]])]},t.parseInstanceNormalizationAttributes=e=>e.attributes.getFloat(\"epsilon\",1e-5);const i={name:\"InstanceNormalization_MeanAndVariance\",inputNames:[\"X\"],inputTypes:[o.TextureType.unpacked]},a=e=>Object.assign(Object.assign({},i),{get:()=>((e,t)=>{const n=t.dims.slice(),r=n[1],i=n[2]*n[3],a=[n[0],r],s=`\\n vec4 process(int[2] indices) {\\n vec4 v = vec4(0.0);\\n int a[4];\\n a[0] = indices[0];\\n a[1] = indices[1];\\n float temp = 0.0;\\n for(int a2=0; a2<${n[2]}; a2++) {\\n a[2] = a2;\\n for(int a3=0; a3<${n[3]}; a3++) {\\n a[3] = a3;\\n float x = _X(a);\\n temp += x;\\n }\\n }\\n float mean = temp / float(${i});\\n temp = 0.0;\\n for(int a2=0; a2<${n[2]}; a2++) {\\n a[2] = a2;\\n for(int a3=0; a3<${n[3]}; a3++) {\\n a[3] = a3;\\n float x = _X(a);\\n temp += (x - mean) * (x - mean);\\n }\\n }\\n v.r = mean;\\n v.g = temp / float(${i});\\n\\n return v;\\n }`;return Object.assign(Object.assign({},e),{output:{dims:a,type:t.type,textureType:o.TextureType.packedLastDimension},shaderSource:s})})(i,e)}),s={name:\"InstanceNormalization_ComputeOutput\",inputNames:[\"X\",\"MeanAndVariance\",\"Scale\",\"B\"],inputTypes:[o.TextureType.unpacked,o.TextureType.packedLastDimension,o.TextureType.unpacked,o.TextureType.unpacked]},u=(e,t,n,i)=>{const a=Object.assign(Object.assign({},s),{cacheHint:`${n}`});return Object.assign(Object.assign({},a),{get:()=>((e,t,n,i,a)=>{const s=(0, r.getGlsl)(e.session.backend.glContext.version),[u,l]=e.calculateTextureWidthAndHeight(a,o.TextureType.packedLastDimension),[c,p]=[u/4,l],d=`\\n vec4 get_MeanAndVariance(int[2] mv) {\\n int offset = indicesToOffset_MeanAndVariance(mv);\\n vec2 coords = offsetToCoords(offset, ${c}, ${p});\\n return ${s.texture2D}(MeanAndVariance, coords);\\n }\\n\\n float process(int[4] indices) {\\n int mv[2];\\n mv[0] = indices[0];\\n mv[1] = indices[1];\\n vec4 mean_and_variance = get_MeanAndVariance(mv);\\n float mean = mean_and_variance.r;\\n float variance = mean_and_variance.g;\\n\\n int sb[1];\\n sb[0] = indices[1];\\n float scale = _Scale(sb);\\n float b = _B(sb);\\n\\n return scale * (_X(indices) - mean) / sqrt(variance + epsilon) + b;\\n }`;return Object.assign(Object.assign({},t),{output:{dims:n.dims,type:n.type,textureType:o.TextureType.unpacked},variables:[{name:\"epsilon\",type:\"float\",data:i}],shaderSource:d})})(e,a,t,n,i)})},l=e=>{if(!e||3!==e.length)throw new Error(\"InstanceNormalization requires 3 inputs.\");const t=e[0],n=e[1],r=e[2];if(t.dims.length<3||1!==n.dims.length||1!==r.dims.length)throw new Error(\"Invalid input shape.\");if(n.dims[0]!==t.dims[1]||r.dims[0]!==t.dims[1])throw new Error(\"Input shapes are mismatched.\");if(\"float32\"!==t.type&&\"float64\"!==t.type||\"float32\"!==n.type&&\"float64\"!==n.type||\"float32\"!==r.type&&\"float64\"!==r.type)throw new Error(\"Invalid input type.\");if(4!==e[0].dims.length)throw new Error(\"Only support 4-D input shape.\")};},7006:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createLrnProgramInfoLoader=t.parseLrnAttributes=t.lrn=void 0;const r=n(4910),o=n(5639);t.lrn=(e,t,n)=>(s(t),[e.run(a(t,n),t)]),t.parseLrnAttributes=e=>{const t=e.attributes.getFloat(\"alpha\",1e-4),n=e.attributes.getFloat(\"beta\",.75),o=e.attributes.getFloat(\"bias\",1),i=e.attributes.getInt(\"size\");return (0, r.createAttributeWithCacheKey)({alpha:t,beta:n,bias:o,size:i})};const i={name:\"LRN\",inputNames:[\"X\"],inputTypes:[o.TextureType.unpacked]};function a(e,t){return Object.assign(Object.assign({},i),{cacheHint:t.cacheKey,get:()=>function(e,t){const n=e[0].dims[1],r=e[0].dims.length,a=-Math.floor((t.size-1)/2),s=Math.ceil((t.size-1)/2),u=`float(${t.alpha}) / float(${t.size})`,l=`\\n float process(int indices[${r}]) {\\n int c = indices[1];\\n float x = _X(indices);\\n float square_sum = 0.0;\\n\\n for (int i = ${a}; i <= ${s}; i++) {\\n int idx = c + i;\\n if (c >= 0 && c < ${n}) {\\n indices[1] = idx;\\n float j = _X(indices);\\n square_sum += j * j;\\n }\\n }\\n return x / pow(float(${t.bias}) + ${u} * square_sum, float(${t.beta}));\\n }`;return Object.assign(Object.assign({},i),{cacheHint:t.cacheKey,output:{dims:e[0].dims,type:e[0].type,textureType:o.TextureType.unpacked},shaderSource:l})}(e,t)})}t.createLrnProgramInfoLoader=a;const s=e=>{if(!e||1!==e.length)throw new Error(\"LRN requires 1 input.\");if(4!==e[0].dims.length)throw new Error('currently only support LRN for input with \"NCHW\" format');if(\"float32\"!==e[0].type)throw new Error(\"input should be float type\")};},5632:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createPackedMatmulProgramInfoLoader=void 0;const r=n(7273),o=n(6757),i=n(5639),a=n(432),s=n(2150),u=n(8276);t.createPackedMatmulProgramInfoLoader=(e,t,n)=>{const l=(c=t.length>2,p=n.activationCacheKey,{name:\"MatMul (packed)\",inputNames:c?[\"A\",\"B\",\"Bias\"]:[\"A\",\"B\"],inputTypes:c?[i.TextureType.packed,i.TextureType.packed,i.TextureType.packed]:[i.TextureType.packed,i.TextureType.packed],cacheHint:p});var c,p;return Object.assign(Object.assign({},l),{get:()=>((e,t,n,l)=>{const c=n.length>2,p=c?\"value += getBiasForMatmul();\":\"\",d=n[0].dims,f=n[1].dims,h=r.BroadcastUtil.calcShape(d,f,!0),g=!r.ShapeUtil.areEqual(n[0].dims,n[1].dims);if(!h)throw new Error(\"Can't use matmul on the given tensors\");const m=d[d.length-1],b=Math.ceil(m/2),y=d.length,w=f.length,_=(0, o.getGlsl)(e.session.backend.glContext.version),v=(0, a.getCoordsDataType)(h.length),x=h.length,T=(0, a.getGlChannels)(),{activationFunction:S,applyActivation:O}=(0, s.getActivationSnippet)(l),A=c?`${(0, u.getBiasForMatmul)(v,T,n[2].dims,h,!0)}`:\"\",E=g?`${function(e,t,n,o){let i=[],a=[];const s=n[0].dims,u=n[1].dims,l=s.length,c=u.length,p=o.length,d=p-l,f=p-c;i=s.map(((e,n)=>`coords.${t[n+d]}`)),i[l-1]=\"i*2\",i.join(\", \"),a=u.map(((e,n)=>`coords.${t[n+f]}`)),a[c-2]=\"i*2\",a.join(\", \");const h=r.BroadcastUtil.getBroadcastDims(s,o),g=r.BroadcastUtil.getBroadcastDims(u,o),m=h.map((e=>`coords.${t[e+d]} = 0;`)).join(\"\\n\"),b=g.map((e=>`coords.${t[e+f]} = 0;`)).join(\"\\n\"),y=`int lastDim = coords.${t[p-1]};\\n coords.${t[p-1]} = coords.${t[p-2]};\\n coords.${t[p-2]} = lastDim;`;return `\\nvec4 getAAtOutCoordsMatmul(int i) {\\n ${e} coords = getOutputCoords();\\n ${y}\\n ${m}\\n vec4 outputValue = getA(${i});\\n return outputValue;\\n}\\n\\nvec4 getBAtOutCoordsMatmul(int i) {\\n ${e} coords = getOutputCoords();\\n ${y}\\n ${b}\\n vec4 outputValue = getB(${a});\\n return outputValue;\\n}`}(v,T,n,h)}`:\"\",I=g?\"getAAtOutCoordsMatmul(i)\":`getA(${function(e,t){let n=\"\";for(let r=0;r{Object.defineProperty(t,\"__esModule\",{value:!0}),t.getBiasForMatmul=t.createMatmulProgramInfoLoader=t.parseMatMulAttributes=t.matMul=void 0;const r=n(7273),o=n(5639),i=n(432),a=n(2150),s=n(5632);t.matMul=(e,t,n)=>(c(t),e.session.pack?[e.run((0, s.createPackedMatmulProgramInfoLoader)(e,t,n),t)]:[e.run(l(t,n),t)]),t.parseMatMulAttributes=e=>(0, a.parseInternalActivationAttributes)(e.attributes);const u=(e,t)=>({name:\"MatMul\",inputNames:e?[\"A\",\"B\",\"Bias\"]:[\"A\",\"B\"],inputTypes:e?[o.TextureType.unpacked,o.TextureType.unpacked,o.TextureType.unpacked]:[o.TextureType.unpacked,o.TextureType.unpacked],cacheHint:t});function l(e,t){const n=u(e.length>2,t.activationCacheKey);return Object.assign(Object.assign({},n),{get:()=>function(e,t,n){const s=t[0].dims,u=t[1].dims,l=r.BroadcastUtil.calcShape(s,u,!0);if(!l)throw new Error(\"Can't use matmul on the given tensors\");const c=(0, i.getCoordsDataType)(l.length),d=(0, i.getGlChannels)(),{activationFunction:f,applyActivation:h}=(0, a.getActivationSnippet)(n),g=t.length>2,m=g?\"value += getBiasForMatmul();\":\"\",b=g?`${p(c,d,t[2].dims,l,!1)}`:\"\",y=l.length,w=s.length,_=u.length,v=`\\n ${f}\\n ${b}\\n float process(int indices[${y}]) {\\n int a[${w}];\\n int b[${_}];\\n bcastMatmulIndices_A(indices, a);\\n bcastMatmulIndices_B(indices, b);\\n\\n float value;\\n for (int k=0; k<${s[s.length-1]}; ++k) {\\n a[${w-1}] = k;\\n b[${_-2}] = k;\\n value += _A(a) * _B(b);\\n }\\n ${m}\\n ${h}\\n return value;\\n }`;return Object.assign(Object.assign({},e),{output:{dims:l,type:t[0].type,textureType:o.TextureType.unpacked},shaderSource:v})}(n,e,t)})}t.createMatmulProgramInfoLoader=l;const c=e=>{if(!e||2!==e.length)throw new Error(\"MatMul requires 2 inputs.\");if(e[0].dims[e[0].dims.length-1]!==e[1].dims[e[1].dims.length-2])throw new Error(\"shared dimension does not match.\");if(\"float32\"!==e[0].type&&\"float64\"!==e[0].type||\"float32\"!==e[1].type&&\"float64\"!==e[1].type)throw new Error(\"inputs should be float type\");if(e[0].type!==e[1].type)throw new Error(\"inputs types should match\")};function p(e,t,n,o,i){let a=\"\";const s=n.length,u=o.length,l=u-s;a=u<2&&s>0?\"coords\":n.map(((e,n)=>`coords.${t[n+l]}`)).join(\", \");const c=r.BroadcastUtil.getBroadcastDims(n,o).map((e=>`coords.${t[e+l]} = 0;`)).join(\"\\n\");let p=\"vec4(outputValue.xx, outputValue.yy)\";return 1===r.ShapeUtil.size(n)&&(p=\"vec4(outputValue.x)\"),i?`\\nvec4 getBiasForMatmul() {\\n ${e} coords = getOutputCoords();\\n ${c}\\n vec4 outputValue = getBias(${a});\\n return ${p};\\n}`:`\\nfloat getBiasForMatmul() {\\n ${e} coords = getOutputCoords();\\n ${c}\\n return getBias(coords.x);\\n}`}t.getBiasForMatmul=p;},9:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createPackProgramInfoLoader=void 0;const r=n(6757),o=n(5639),i=n(432),a=n(5614),s={name:\"pack\",inputNames:[\"A\"],inputTypes:[o.TextureType.unpackedReversed]};t.createPackProgramInfoLoader=(e,t)=>Object.assign(Object.assign({},s),{get:()=>((e,t)=>{const n=(0, r.getGlsl)(e.session.backend.glContext.version),u=t.dims,l=u.length,c=t.dims.length,p=(0, i.getCoordsDataType)(c),d=(0, a.getChannels)(\"rc\",c),f=(h=c,g=d,m=u[u.length-2],b=u[u.length-1],0===h||1===h?\"\":`\\n int r = ${g[h-2]};\\n int c = ${g[h-1]};\\n int rp1 = ${g[h-2]} + 1;\\n int cp1 = ${g[h-1]} + 1;\\n bool rEdge = rp1 >= ${b};\\n bool cEdge = cp1 >= ${m};\\n `);var h,g,m,b;let y;y=0===l?[1,1]:1===l?[u[0],1]:[u[c-1],u[c-2]];const w=function(e,t,n){if(0===e)return \"false\";if(1===e)return `rc > ${t[0]}`;let r=\"\";for(let o=e-2;o= ${t[o-e+2]}`,o= ${e[0]} ? 0. : getA(rc + 1),\\n 0, 0`;let r=\"\";if(n>2)for(let e=0;e{Object.defineProperty(t,\"__esModule\",{value:!0}),t.unpackFromChannel=t.getChannels=t.getVecChannels=void 0;const r=n(432);function o(e,t){return (0, r.getGlChannels)(t).map((t=>`${e}.${t}`))}t.getVecChannels=o,t.getChannels=function(e,t){return 1===t?[e]:o(e,t)},t.unpackFromChannel=function(){return \"\\n float getChannel(vec4 frag, int dim) {\\n int modCoord = imod(dim, 2);\\n return modCoord == 0 ? frag.r : frag.g;\\n }\\n\\n float getChannel(vec4 frag, vec2 innerDims) {\\n vec2 modCoord = mod(innerDims, 2.);\\n return modCoord.x == 0. ?\\n (modCoord.y == 0. ? frag.r : frag.g) :\\n (modCoord.y == 0. ? frag.b : frag.a);\\n }\\n \"};},5565:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parsePadAttributesV11=t.padV11=t.parsePadAttributesV2=t.padV2=void 0;const r=n(4910),o=n(7273),i=n(6757),a=n(5639),s={name:\"Pad\",inputNames:[\"A\"],inputTypes:[a.TextureType.unpacked]};t.padV2=(e,t,n)=>(c(t),[e.run(Object.assign(Object.assign({},s),{cacheHint:n.cacheKey,get:()=>l(e,t[0],n)}),t)]),t.parsePadAttributesV2=e=>{const t=e.attributes.getString(\"mode\",\"constant\"),n=e.attributes.getFloat(\"value\",0),o=e.attributes.getInts(\"pads\");return (0, r.createAttributeWithCacheKey)({mode:t,value:n,pads:o})},t.padV11=(e,n,r)=>{p(n);const o=u(e,n,r);return (0, t.padV2)(e,[n[0]],o)},t.parsePadAttributesV11=e=>e.attributes.getString(\"mode\",\"constant\");const u=(e,t,n)=>{if(!e.session.isInitializer(t[1].dataId)||t.length>=3&&!e.session.isInitializer(t[2].dataId))throw new Error(\"dynamic pad attributes are not allowed\");const o=Array.from(t[1].integerData),i=t.length>=3?t[2].floatData[0]:0;return (0, r.createAttributeWithCacheKey)({mode:n,pads:o,value:i})},l=(e,t,n)=>{const r=o.ShapeUtil.padShape(t.dims.slice(),n.pads),i=r.length,s=`\\n ${d(e,t,n)}\\n float process(int[${i}] indices) {\\n return padA(indices);\\n }`;return {name:\"Pad\",inputNames:[\"A\"],inputTypes:[a.TextureType.unpacked],output:{dims:r,type:t.type,textureType:a.TextureType.unpacked},shaderSource:s}},c=e=>{if(!e||1!==e.length)throw new Error(\"Pad requires 1 input\");if(\"float32\"!==e[0].type&&\"float64\"!==e[0].type)throw new Error(\"Invalid input type.\")},p=e=>{if(!e||2!==e.length&&3!==e.length)throw new Error(\"Pad requires 2 or 3 inputs\");if(\"int32\"!==e[1].type)throw new Error(\"Invalid input type.\");if(e.length>=3&&\"string\"===e[2].type)throw new Error(\"Invalid input type.\")},d=(e,t,n)=>{const r=(0, i.getGlsl)(e.session.backend.glContext.version),[s,u]=e.calculateTextureWidthAndHeight(t.dims,a.TextureType.unpacked),l=o.ShapeUtil.computeStrides(t.dims);switch(n.mode){case\"constant\":return f(r,t.dims,l,s,u,n.pads,n.value);case\"reflect\":return h(r,t.dims,l,s,u,n.pads);case\"edge\":return g(r,t.dims,l,s,u,n.pads);default:throw new Error(\"Invalid mode\")}},f=(e,t,n,r,o,i,a)=>{const s=t.length;let u=\"\";for(let e=s-1;e>=0;--e)u+=`\\n k = m[${e}] - ${i[e]};\\n if (k < 0) return constant;\\n if (k >= ${t[e]}) return constant;\\n offset += k * ${n[e]};\\n `;return `\\n float padA(int m[${s}]) {\\n const float constant = float(${a});\\n int offset = 0;\\n int k = 0;\\n ${u}\\n vec2 coords = offsetToCoords(offset, ${r}, ${o});\\n float value = getColorAsFloat(${e.texture2D}(A, coords));\\n return value;\\n }\\n `},h=(e,t,n,r,o,i)=>{const a=t.length;let s=\"\";for(let e=a-1;e>=0;--e)s+=`\\n k = m[${e}] - ${i[e]};\\n if (k < 0) { k = -k; }\\n {\\n const int _2n_1 = ${2*(t[e]-1)};\\n k = int( mod( float(k), float(_2n_1) ) ) ;\\n if(k >= ${t[e]}) { k = _2n_1 - k; }\\n }\\n offset += k * ${n[e]};\\n `;return `\\n float padA(int m[${a}]) {\\n int offset = 0;\\n int k = 0;\\n ${s}\\n vec2 coords = offsetToCoords(offset, ${r}, ${o});\\n float value = getColorAsFloat(${e.texture2D}(A, coords));\\n return value;\\n }\\n `},g=(e,t,n,r,o,i)=>{const a=t.length;let s=\"\";for(let e=a-1;e>=0;--e)s+=`\\n k = m[${e}] - ${i[e]};\\n if (k < 0) k = 0;\\n if (k >= ${t[e]}) k = ${t[e]-1};\\n offset += k * ${n[e]};\\n `;return `\\n float padA(int m[${a}]) {\\n int offset = 0;\\n int k = 0;\\n ${s}\\n vec2 coords = offsetToCoords(offset, ${r}, ${o});\\n float value = getColorAsFloat(${e.texture2D}(A, coords));\\n return value;\\n }\\n `};},2834:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.globalMaxPool=t.parseMaxPoolAttributes=t.maxPool=t.parseGlobalAveragePoolAttributes=t.globalAveragePool=t.parseAveragePoolAttributes=t.averagePool=void 0;const r=n(4910),o=n(7273),i=n(5639);t.averagePool=(e,t,n)=>{p(t);const r={name:\"AveragePool\",inputNames:[\"X\"],inputTypes:[i.TextureType.unpacked],cacheHint:n.cacheKey};return [e.run(Object.assign(Object.assign({},r),{get:()=>a(t,r,!1,n)}),t)]},t.parseAveragePoolAttributes=e=>{const t=e.attributes.getString(\"auto_pad\",\"NOTSET\"),n=e.attributes.getInt(\"ceil_mode\",0),o=0!==e.attributes.getInt(\"count_include_pad\",0),i=e.attributes.getInts(\"kernel_shape\"),a=e.attributes.getInts(\"strides\",[]),s=e.attributes.getInts(\"pads\",[]);if(0!==n)throw new Error(\"using ceil() in shape computation is not yet supported for AveragePool\");return (0, r.createAttributeWithCacheKey)({autoPad:t,ceilMode:n,countIncludePad:o,kernelShape:i,strides:a,pads:s})};const a=(e,t,n,r)=>{const[a,s]=u(e,r,n),l=o.ShapeUtil.size(a.kernelShape);let c=\"\";a.countIncludePad?c+=`value /= float(${l});`:c+=`value /= float(${l} - pad);`;const p=`\\n ${d(e[0].dims,a,\"value += _X(x);\",c,\"0.0\")}\\n `;return Object.assign(Object.assign({},t),{output:{dims:s,type:e[0].type,textureType:i.TextureType.unpacked},shaderSource:p})};t.globalAveragePool=(e,t,n)=>{p(t);const r={name:\"GlobalAveragePool\",inputNames:[\"X\"],inputTypes:[i.TextureType.unpacked],cacheHint:`${n.countIncludePad}`};return [e.run(Object.assign(Object.assign({},r),{get:()=>a(t,r,!0,n)}),t)]},t.parseGlobalAveragePoolAttributes=e=>{const t=0!==e.attributes.getInt(\"count_include_pad\",0);return (0, r.createAttributeWithCacheKey)({autoPad:\"\",ceilMode:0,countIncludePad:t,kernelShape:[],strides:[],pads:[]})},t.maxPool=(e,t,n)=>{p(t);const r={name:\"MaxPool\",inputNames:[\"X\"],inputTypes:[i.TextureType.unpacked],cacheHint:n.cacheKey};return [e.run(Object.assign(Object.assign({},r),{get:()=>s(t,r,!1,n)}),t)]},t.parseMaxPoolAttributes=e=>{const t=e.attributes.getString(\"auto_pad\",\"NOTSET\"),n=e.attributes.getInt(\"ceil_mode\",0),o=e.attributes.getInts(\"kernel_shape\"),i=e.attributes.getInts(\"strides\",[]),a=e.attributes.getInts(\"pads\",[]),s=e.attributes.getInt(\"storage_order\",0),u=e.attributes.getInts(\"dilations\",[]);if(0!==s)throw new Error(\"column major storage order is not yet supported for MaxPool\");if(0!==n)throw new Error(\"using ceil() in shape computation is not yet supported for MaxPool\");return (0, r.createAttributeWithCacheKey)({autoPad:t,ceilMode:n,countIncludePad:!1,kernelShape:o,strides:i,pads:a,storageOrder:s,dilations:u})};const s=(e,t,n,r)=>{const[o,a]=u(e,r,n),s=`\\n ${d(e[0].dims,o,\"\\n value = max(_X(x), value);\\n \",\"\",\"-1e5\")}\\n `;return Object.assign(Object.assign({},t),{output:{dims:a,type:e[0].type,textureType:i.TextureType.unpacked},shaderSource:s})},u=(e,t,n)=>{const r=e[0].dims.slice(),i=Object.hasOwnProperty.call(t,\"dilations\"),a=t.kernelShape.slice(),s=t.strides.slice(),u=i?t.dilations.slice():[],l=t.pads.slice();o.PoolConvUtil.adjustPoolAttributes(n,r,a,s,u,l);const c=o.PoolConvUtil.computePoolOutputShape(n,r,s,u,a,l,t.autoPad),p=Object.assign({},t);return i?Object.assign(p,{kernelShape:a,strides:s,pads:l,dilations:u,cacheKey:t.cacheKey}):Object.assign(p,{kernelShape:a,strides:s,pads:l,cacheKey:t.cacheKey}),[p,c]},l={autoPad:\"\",ceilMode:0,countIncludePad:!1,kernelShape:[],strides:[],pads:[],storageOrder:0,dilations:[],cacheKey:\"\"},c={name:\"GlobalMaxPool\",inputNames:[\"X\"],inputTypes:[i.TextureType.unpacked]};t.globalMaxPool=(e,t)=>(p(t),[e.run(Object.assign(Object.assign({},c),{get:()=>s(t,c,!0,l)}),t)]);const p=e=>{if(!e||1!==e.length)throw new Error(\"Pool ops requires 1 input.\");if(\"float32\"!==e[0].type&&\"float64\"!==e[0].type)throw new Error(\"Invalid input type.\")},d=(e,t,n,r,i)=>{const a=e.length;if(t.kernelShape.length<=2){const o=t.kernelShape[t.kernelShape.length-1],s=t.strides[t.strides.length-1],u=t.pads[t.pads.length/2-1],l=t.pads[t.pads.length-1],c=e[a-1];let p=\"\",d=\"\",f=\"\";if(p=u+l!==0?`\\n for (int i = 0; i < ${o}; i++) {\\n x[${a} - 1] = indices[${a} - 1] * ${s} - ${u} + i;\\n if (x[${a} - 1] < 0 || x[${a} - 1] >= ${c}) {\\n pad++;\\n continue;\\n }\\n ${n}\\n }`:`\\n for (int i = 0; i < ${o}; i++) {\\n x[${a} - 1] = indices[${a} - 1] * ${s} - ${u} + i;\\n ${n}\\n }`,2===t.kernelShape.length){const n=t.kernelShape[t.kernelShape.length-2],r=t.strides[t.strides.length-2],i=t.pads[t.pads.length/2-2],s=t.pads[t.pads.length-2],u=e[a-2];d=i+s!==0?`\\n for (int j = 0; j < ${n}; j++) {\\n x[${a} - 2] = indices[${a} - 2] * ${r} - ${i} + j;\\n if (x[${a} - 2] < 0 || x[${a} - 2] >= ${u}) {\\n pad+= ${o};\\n continue;\\n }\\n `:`\\n for (int j = 0; j < ${n}; j++) {\\n x[${a} - 2] = indices[${a} - 2] * ${r} - ${i} + j;\\n `,f=\"\\n }\\n \";}return `\\n float process(int indices[${a}]) {\\n int x[${a}];\\n copyVec(indices, x);\\n\\n float value = ${i};\\n int pad = 0;\\n ${d}\\n ${p}\\n ${f}\\n ${r}\\n return value;\\n }\\n `}{const s=o.ShapeUtil.size(t.kernelShape),u=o.ShapeUtil.computeStrides(t.kernelShape),l=u.length,c=t.pads.length,p=h(l),d=f(e,\"inputDims\"),g=f(t.pads,\"pads\"),m=f(u,\"kernelStrides\"),b=f(t.strides,\"strides\");let y=\"\";return y=t.pads.reduce(((e,t)=>e+t))?`\\n if (x[j] >= inputDims[j] || x[j] < 0) {\\n pad++;\\n isPad = true;\\n break;\\n }\\n }\\n if (!isPad) {\\n ${n}\\n }`:`\\n }\\n ${n}\\n `,`\\n ${p}\\n float process(int indices[${a}]) {\\n int x[${a}];\\n copyVec(indices, x);\\n int offset[${l}];\\n int pads[${c}];\\n int inputDims[${a}];\\n int kernelStrides[${l}];\\n int strides[${l}];\\n ${g}\\n ${d}\\n ${b}\\n ${m}\\n\\n float value = ${i};\\n int pad = 0;\\n bool isPad = false;\\n for (int i = 0; i < ${s}; i++) {\\n offsetToIndices(i, kernelStrides, offset);\\n isPad = false;\\n for (int j = ${a} - ${l}; j < ${a}; j++) {\\n x[j] = indices[j] * strides[j - ${a} + ${l}]\\n + offset[j - ${a} + ${l}] - pads[j - 2];\\n ${y}\\n }\\n ${r}\\n\\n return value;\\n }\\n `}},f=(e,t)=>{let n=\"\";for(let r=0;r`\\n void offsetToIndices(int offset, int[${e}] strides, out int[${e}] indices) {\\n if (${e} == 0) {\\n return;\\n }\\n for (int i = 0; i < ${e} - 1; ++i) {\\n indices[i] = offset / strides[i];\\n offset -= indices[i] * strides[i];\\n }\\n indices[${e} - 1] = offset;\\n }`;},1010:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.reduceLogSumSquare=t.reduceLogSum=t.reduceProd=t.reduceMin=t.reduceMax=t.reduceMean=t.reduceSum=t.parseReduceAttributes=void 0;const r=n(4910),o=n(6145),i=n(7273),a=n(5639),s=(e,t,n,r,o)=>{l(t);const i={name:r,inputNames:[\"A\"],inputTypes:[a.TextureType.unpacked]};return [e.run(Object.assign(Object.assign({},i),{cacheHint:n.cacheKey,get:()=>u(e,t,n,r,o,i)}),t)]};t.parseReduceAttributes=e=>{const t=e.attributes.getInts(\"axes\",[]),n=1===e.attributes.getInt(\"keepdims\",1);return (0, r.createAttributeWithCacheKey)({axes:t,keepDims:n})};const u=(e,t,n,r,o,s)=>{const u=[],l=t[0].dims.length||1,c=[],p=i.ShapeUtil.normalizeAxes(n.axes,t[0].dims.length),d=o(t,p);let f=d[1];for(let e=0;e=0||0===p.length?(n.keepDims&&u.push(1),f=`\\n for(int j${e} = 0; j${e} < ${t[0].dims[e]}; j${e}++) {\\n inputIdx[${e}] = j${e};\\n ${f}\\n }`):(c.push(`inputIdx[${e}] = outputIdx[${u.length}];`),u.push(t[0].dims[e]));const h=`\\n float process(int outputIdx[${u.length||1}]) {\\n float value; // final result\\n int inputIdx[${l}]; // addressing input data\\n ${c.join(\"\\n\")}\\n ${d[0]} // init ops for reduce max/min\\n ${f}\\n ${d[2]} // final computation for reduce mean\\n return value;\\n }`;return Object.assign(Object.assign({},s),{output:{dims:u,type:t[0].type,textureType:a.TextureType.unpacked},shaderSource:h})},l=e=>{if(!e||1!==e.length)throw new Error(\"Reduce op requires 1 input.\");if(-1===o.NUMBER_TYPES.indexOf(e[0].type))throw new Error(\"Invalid input type.\")};t.reduceSum=(e,t,n)=>s(e,t,n,\"ReduceSum\",(()=>[\"value = 0.0;\",\"value += _A(inputIdx);\",\"\"])),t.reduceMean=(e,t,n)=>s(e,t,n,\"ReduceMean\",((e,t)=>{let n=1;for(let r=0;r=0||0===t.length)&&(n*=e[0].dims[r]);return [\"value = 0.0;\",\"value += _A(inputIdx);\",`value /= ${n}.;`]})),t.reduceMax=(e,t,n)=>s(e,t,n,\"ReduceMax\",((e,t)=>{const n=[];for(let r=0;r=0||0===t.length)&&n.push(`inputIdx[${r}] = 0;`);return [`${n.join(\"\\n\")}\\nvalue = _A(inputIdx);`,\"value = max(value, _A(inputIdx));\",\"\"]})),t.reduceMin=(e,t,n)=>s(e,t,n,\"ReduceMin\",((e,t)=>{const n=[];for(let r=0;r=0||0===t.length)&&n.push(`inputIdx[${r}] = 0;`);return [`${n.join(\"\\n\")}\\nvalue = _A(inputIdx);`,\"value = min(value, _A(inputIdx));\",\"\"]})),t.reduceProd=(e,t,n)=>s(e,t,n,\"ReduceProd\",(()=>[\"value = 1.0;\",\"value *= _A(inputIdx);\",\"\"])),t.reduceLogSum=(e,t,n)=>s(e,t,n,\"ReduceLogSum\",(()=>[\"value = 0.0;\",\"value += _A(inputIdx);\",\"value = log(value);\"])),t.reduceLogSumSquare=(e,t,n)=>s(e,t,n,\"ReduceLogSumSquare\",(()=>[\"float t; value = 0.0;\",\"t = _A(inputIdx); value += t * t;\",\"\"]));},7379:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.isReshapeCheap=t.processDims3D=t.createPackedReshape3DProgramInfoLoader=void 0;const r=n(7273),o=n(6757),i=n(5639),a=n(5614);t.createPackedReshape3DProgramInfoLoader=(e,t,n)=>{const s=(e=>({name:\"Reshape (packed)\",inputTypes:[i.TextureType.packed],inputNames:[\"A\"],cacheHint:`${e}`}))(n);return Object.assign(Object.assign({},s),{get:()=>((e,t,n,s)=>{const u=t.dims,l=s;let c=\"\";for(let e=0;e<4;e++){let t=\"\";switch(e){case 0:t=\"outputCoords = rc;\";break;case 1:t=\"outputCoords = ivec3(rc.x, rc.y+1, rc.z);\";break;case 2:t=\"outputCoords = ivec3(rc.x, rc.y, rc.z+1);\";break;case 3:t=\"outputCoords = ivec3(rc.x, rc.y+1, rc.z+1);\";break;default:throw new Error}c+=`\\n ${t}\\n ${e>0?\"if(outputCoords.y < rows && outputCoords.z < cols){\":\"\"}\\n int flattenedIndex = getFlattenedIndex(outputCoords);\\n\\n ivec3 inputRC = inputCoordsFromReshapedOutCoords(flattenedIndex);\\n vec2 innerDims = vec2(float(inputRC.y),float(inputRC.z));\\n\\n result[${e}] = getChannel(getA(inputRC.x, inputRC.y, inputRC.z), innerDims);\\n\\n ${e>0?\"}\":\"\"}\\n `;}const p=(0, o.getGlsl)(e.session.backend.glContext.version),d=`\\n ${function(e){const t=r.ShapeUtil.computeStrides(e),n=[\"b\",\"r\",\"c\"],o=\"index\";return `\\n ivec3 inputCoordsFromReshapedOutCoords(int index) {\\n ${t.map(((e,r)=>`int ${n[r]} = ${o} / ${e}; ${r===t.length-1?`int ${n[r+1]} = ${o} - ${n[r]} * ${e}`:`index -= ${n[r]} * ${e}`};`)).join(\"\")}\\n return ivec3(b, r, c);\\n }\\n `}(u)}\\n ${function(e){const t=r.ShapeUtil.computeStrides(e);return `\\n int getFlattenedIndex(ivec3 coords) {\\n // reverse y, z order\\n return coords.x * ${t[0]} + coords.z * ${t[1]} + coords.y;\\n }\\n`}(l)}\\n ${(0, a.unpackFromChannel)()}\\n\\n void main() {\\n ivec3 rc = getOutputCoords();\\n\\n vec4 result = vec4(0.0);\\n\\n ivec3 outputCoords;\\n int rows = ${l[2]};\\n int cols = ${l[1]};\\n\\n ${c}\\n ${p.output} = result;\\n }\\n `;return Object.assign(Object.assign({},n),{output:{dims:l,type:t.type,textureType:i.TextureType.packed},shaderSource:d,hasMain:!0})})(e,t,s,n)})},t.processDims3D=function(e){if(0===e.length)return [1,1,1];let t=1;for(let n=0;n1?e[e.length-2]:1,e[e.length-1]]},t.isReshapeCheap=function(e,t){let n=!1;return n=0===e.length||0===t.length||(e.length<2||t.length<2?e[e.length-1]===t[t.length-1]:e[e.length-1]===t[t.length-1]&&e[e.length-2]===t[t.length-2]),n};},8126:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.reshape=void 0;const r=n(7273);t.reshape=(e,t)=>{const n=r.ShapeUtil.calculateReshapedDims(t[0].dims,t[1].integerData);return e.session.pack?[e.reshapePacked(t[0],n)]:[e.reshapeUnpacked(t[0],n)]};},2801:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseResizeAttributesV11=t.parseResizeAttributesV10=t.resize=void 0;const r=n(6757),o=n(5639),i=n(432),a=n(5614),s=n(3980),u={name:\"Resize\",inputNames:[\"A\"],inputTypes:[o.TextureType.packed]};t.resize=(e,t,n)=>((0, s.validateInputs)(t,n),[e.run(Object.assign(Object.assign({},u),{cacheHint:n.cacheKey,get:()=>l(e,t,n)}),t)]),t.parseResizeAttributesV10=e=>(0, s.parseUpsampleAttributes)(e,10),t.parseResizeAttributesV11=e=>(0, s.parseUpsampleAttributes)(e,11);const l=(e,t,n)=>{const s=(0, r.getGlsl)(e.session.backend.glContext.version),[l,p]=c(t,n);if(l.every((e=>1===e))&&\"tf_crop_and_resize\"!==n.coordinateTransformMode)return Object.assign(Object.assign({},u),{output:{dims:p,type:t[0].type,textureType:o.TextureType.packed},hasMain:!0,shaderSource:`void main() {\\n vec4 v = ${s.texture2D}(X, TexCoords);\\n ${s.output} = v;\\n }`});const d=p.length;if(d<2)throw new Error(`output dimension should be at least 2, but got ${d}`);const f=p[d-2],h=p[d-1],g=t[0].dims;if(d!==g.length)throw new Error(`output dimension should match input ${g.length}, but got ${d}`);const m=g[d-2],b=g[d-1],y=l[d-2],w=l[d-1];let _=\"\";if(\"linear\"!==n.mode)throw new Error(`resize (packed) does not support mode: '${n.mode}'`);switch(n.coordinateTransformMode){case\"asymmetric\":_=\"\\n vec4 getSourceFracIndex(ivec4 coords) {\\n return vec4(coords) / scaleWHWH;\\n }\\n \";break;case\"half_pixel\":_=\"\\n vec4 getSourceFracIndex(ivec4 coords) {\\n return (vec4(coords) + 0.5) / scaleWHWH - 0.5;\\n }\\n \";break;case\"pytorch_half_pixel\":_=`\\n vec4 getSourceFracIndex(ivec4 coords) {\\n vec4 fcoords = vec4(coords);\\n return vec4(\\n ${h}.0 > 1.0 ? (fcoords.x + 0.5) / scaleWHWH.x - 0.5 : 0.0,\\n ${f}.0 > 1.0 ? (fcoords.y + 0.5) / scaleWHWH.y - 0.5 : 0.0,\\n ${h}.0 > 1.0 ? (fcoords.z + 0.5) / scaleWHWH.z - 0.5 : 0.0,\\n ${f}.0 > 1.0 ? (fcoords.w + 0.5) / scaleWHWH.w - 0.5 : 0.0\\n );\\n }\\n `;break;case\"align_corners\":_=`\\n vec4 getSourceFracIndex(ivec4 coords) {\\n vec4 resized = vec4(${h}.0 - 1.0, ${f}.0 - 1.0, ${h}.0 - 1.0,\\n ${f}.0 - 1.0);\\n vec4 original = vec4(${b}.0 - 1.0, ${m}.0 - 1.0, ${b}.0 - 1.0,\\n ${m}.0 - 1.0);\\n vec4 new_scale = original / resized;\\n return vec4(coords) * new_scale;\\n }\\n `;break;default:throw new Error(`resize (packed) does not support coordinateTransformMode: '${n.coordinateTransformMode}'`)}const v=(0, i.getCoordsDataType)(d),x=`\\n const vec2 inputWH = vec2(${m}.0, ${b}.0);\\n const vec4 scaleWHWH = vec4(float(${y}), float(${w}), float(${y}), float(${w}));\\n ${(0, a.unpackFromChannel)()}\\n ${_}\\n float getAValue(int x10, int r, int c, int d) {\\n return getChannel(getA(x10, r, c, d), vec2(c, d));\\n }\\n void main() {\\n ${v} rc = getOutputCoords();\\n\\n int batch = rc[0];\\n int depth = rc[1];\\n\\n // retrieve the 4 coordinates that is used in the 4 packed output values.\\n ivec4 coords = ivec4(rc.wz, rc.w + 1, rc.z + 1);\\n\\n // calculate the source index in fraction\\n vec4 sourceFrac = getSourceFracIndex(coords);\\n\\n // get the lower and upper bound of the 4 values that will be packed into one texel.\\n ivec4 x00 = ivec4(max(sourceFrac.xy, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.xy)));\\n ivec4 x01 = ivec4(max(sourceFrac.xw, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.xw)));\\n ivec4 x10 = ivec4(max(sourceFrac.zy, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.zy)));\\n ivec4 x11 = ivec4(max(sourceFrac.zw, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.zw)));\\n\\n bool hasNextRow = rc.w < ${f-1};\\n bool hasNextCol = rc.z < ${h-1};\\n\\n // pack x00, x01, x10, x11's top-left corner into one vec4 structure\\n vec4 topLeft = vec4(\\n getAValue(batch, depth, x00.x, x00.y),\\n hasNextCol ? getAValue(batch, depth, x01.x, x01.y) : 0.0,\\n hasNextRow ? getAValue(batch, depth, x10.x, x10.y) : 0.0,\\n (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.x, x11.y) : 0.0);\\n\\n // pack x00, x01, x10, x11's top-right corner into one vec4 structure\\n vec4 topRight = vec4(\\n getAValue(batch, depth, x00.x, x00.w),\\n hasNextCol ? getAValue(batch, depth, x01.x, x01.w) : 0.0,\\n hasNextRow ? getAValue(batch, depth, x10.x, x10.w) : 0.0,\\n (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.x, x11.w) : 0.0);\\n\\n // pack x00, x01, x10, x11's bottom-left corner into one vec4 structure\\n vec4 bottomLeft = vec4(\\n getAValue(batch, depth, x00.z, x00.y),\\n hasNextCol ? getAValue(batch, depth, x01.z, x01.y) : 0.0,\\n hasNextRow ? getAValue(batch, depth, x10.z, x10.y) : 0.0,\\n (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.z, x11.y) : 0.0);\\n\\n // pack x00, x01, x10, x11's bottom-right corner into one vec4 structure\\n vec4 bottomRight = vec4(\\n getAValue(batch, depth, x00.z, x00.w),\\n hasNextCol ? getAValue(batch, depth, x01.z, x01.w) : 0.0,\\n hasNextRow ? getAValue(batch, depth, x10.z, x10.w) : 0.0,\\n (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.z, x11.w) : 0.0);\\n\\n // calculate the interpolation fraction on u and v direction\\n vec4 frac = vec4(sourceFrac) - floor(sourceFrac);\\n vec4 clampFrac = clamp(frac, vec4(0.0), vec4(1.0));\\n\\n vec4 top = mix(topLeft, topRight, clampFrac.ywyw);\\n vec4 bottom = mix(bottomLeft, bottomRight, clampFrac.ywyw);\\n vec4 newValue = mix(top, bottom, clampFrac.xxzz);\\n\\n ${s.output} = vec4(newValue);\\n }\\n `;return Object.assign(Object.assign({},u),{output:{dims:p,type:t[0].type,textureType:o.TextureType.packed},hasMain:!0,shaderSource:x})},c=(e,t)=>{const n=e[0].dims;let r,o=t.scales;if(0===o.length){const i=e[t.scalesInputIdx];if(i&&0!==i.size){if(e[t.sizesInputIdx])throw new Error(\"Only one of scales or sizes must be provided as input.\");o=p(i,t.mode,t.isResize);}else {const i=e[t.sizesInputIdx];if(!i||0===i.size)throw new Error(\"Either scales or sizes MUST be provided as input.\");r=Array.from(i.integerData),o=d(r,n,t.mode,t.isResize);}}else if(e[t.sizesInputIdx])throw new Error(\"Only one of scales or sizes must be provided as input.\");const i=r||n.map(((e,t)=>Math.floor(e*o[t])));return [o,i]},p=(e,t,n)=>{const r=Array.from(e.floatData);return (0, s.scalesValidation)(r,t,n),r},d=(e,t,n,r)=>{const o=t.length,i=new Array(o);for(let n=0,r=o;n{Object.defineProperty(t,\"__esModule\",{value:!0}),t.shape=void 0;const r=n(9240);t.shape=(e,t)=>(o(t),[new r.Tensor([t[0].dims.length],\"int32\",void 0,void 0,new Int32Array(t[0].dims))]);const o=e=>{if(!e||1!==e.length)throw new Error(\"Shape requires 1 input.\")};},2444:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.sliceV10=t.parseSliceAttributes=t.slice=void 0;const r=n(4910),o=n(6145),i=n(7273),a=n(5639),s={name:\"Slice\",inputNames:[\"A\"],inputTypes:[a.TextureType.unpacked]};t.slice=(e,t,n)=>(l(t),[e.run(Object.assign(Object.assign({},s),{cacheHint:n.cacheKey,get:()=>u(e,t[0],n)}),t)]),t.parseSliceAttributes=e=>{const t=e.attributes.getInts(\"starts\"),n=e.attributes.getInts(\"ends\"),o=e.attributes.getInts(\"axes\",[]);return (0, r.createAttributeWithCacheKey)({starts:t,ends:n,axes:o})};const u=(e,t,n)=>{const r=0===n.axes.length?t.dims.slice(0).map(((e,t)=>t)):n.axes,o=i.ShapeUtil.normalizeAxes(r,t.dims.length),u=n.starts.map(((e,n)=>e>t.dims[o[n]]-1?t.dims[o[n]]:i.ShapeUtil.normalizeAxis(e,t.dims[o[n]]))),l=n.ends.map(((e,n)=>e>t.dims[o[n]]-1?t.dims[o[n]]:i.ShapeUtil.normalizeAxis(e,t.dims[o[n]]))),c=t.dims.slice(),p=[];for(let e=0;e0&&p.push(`outputIdx[${o[e]}] += ${u[e]};`);const d=`\\n float process(int outputIdx[${c.length}]) {\\n ${p.join(\"\\n \")}\\n return _A(outputIdx);\\n }`;return Object.assign(Object.assign({},s),{output:{dims:c,type:t.type,textureType:a.TextureType.unpacked},shaderSource:d})},l=e=>{if(!e||1!==e.length)throw new Error(\"Slice requires 1 input.\");if(-1===o.NUMBER_TYPES.indexOf(e[0].type))throw new Error(\"Invalid input type.\")};t.sliceV10=(e,t)=>{p(t);const n=c(e,t);return [e.run(Object.assign(Object.assign({},s),{cacheHint:n.cacheKey,get:()=>u(e,t[0],n)}),[t[0]])]};const c=(e,t)=>{if(!e.session.isInitializer(t[1].dataId)||!e.session.isInitializer(t[2].dataId)||t.length>=4&&!e.session.isInitializer(t[3].dataId)||t.length>=5&&!e.session.isInitializer(t[4].dataId))throw new Error(\"dynamic slice attributes are not allowed\");if(t.length>=5&&t[4].integerData.some((e=>1!==e)))throw new Error(\"currently non-1 steps is not supported for Slice\");const n=Array.from(t[1].integerData),r=Array.from(t[2].integerData),o=t.length>=4?Array.from(t[3].integerData):[];return {starts:n,ends:r,axes:o,cacheKey:`${o};${n};${r}`}},p=e=>{if(!e||e.length<3||e.length>5)throw new Error(\"Invalid input number.\");if(\"int32\"!==e[1].type||1!==e[1].dims.length)throw new Error(\"Invalid input type.\");if(\"int32\"!==e[2].type||1!==e[2].dims.length)throw new Error(\"Invalid input type.\");if(e.length>=4&&(\"int32\"!==e[3].type||1!==e[3].dims.length))throw new Error(\"Invalid input type.\");if(e.length>=5&&(\"int32\"!==e[4].type||1!==e[4].dims.length))throw new Error(\"Invalid input type.\")};},815:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.softmaxV13=t.parseSoftmaxAttributesV13=t.parseSoftmaxAttributes=t.softmax=void 0;const r=n(4910),o=n(7273),i=n(6757),a=n(5639),s=n(5707),u={name:\"SoftmaxComputeMax\",inputNames:[\"A\"],inputTypes:[a.TextureType.unpacked]},l={name:\"SoftmaxComputeScale\",inputNames:[\"A\",\"Max\"],inputTypes:[a.TextureType.unpacked,a.TextureType.unpacked]},c={name:\"SoftMax\",inputNames:[\"A\",\"Max\",\"Norm\"],inputTypes:[a.TextureType.unpacked,a.TextureType.unpacked,a.TextureType.unpacked]};t.softmax=(e,t,n)=>{g(t);const r=t[0].dims.slice(),i=o.ShapeUtil.normalizeAxis(n.axis,r.length),a=o.ShapeUtil.sizeToDimension(r,i),s=o.ShapeUtil.sizeFromDimension(r,i);return p(e,t,n,a,s)},t.parseSoftmaxAttributes=e=>(0, r.createAttributeWithCacheKey)({axis:e.attributes.getInt(\"axis\",1)}),t.parseSoftmaxAttributesV13=e=>(0, r.createAttributeWithCacheKey)({axis:e.attributes.getInt(\"axis\",-1)}),t.softmaxV13=(e,t,n)=>{g(t);const i=t[0].dims.slice(),a=o.ShapeUtil.normalizeAxis(n.axis,i.length),u=i.length,l=a!==u-1,c=[];let d,f=[],h=[];l&&(f=Array.from({length:u}).map(((e,t)=>t)),f[a]=u-1,f[u-1]=a,f.map((e=>c.push(i[e]))),d=(0, r.createAttributeWithCacheKey)({perm:f}),h=(0, s.transpose)(e,t,d));const m=l?o.ShapeUtil.sizeToDimension(c,u-1):o.ShapeUtil.sizeToDimension(i,u-1),b=l?o.ShapeUtil.sizeFromDimension(c,u-1):o.ShapeUtil.sizeFromDimension(i,u-1),y=p(e,l?h:t,n,m,b);return l?(0, s.transpose)(e,y,d):y};const p=(e,t,n,r,o)=>{const i=d(e,t[0],r,o,[r]),a=e.run(Object.assign(Object.assign({},u),{cacheHint:n.cacheKey,get:()=>i}),t),s=f(e,t[0],r,o,i.output.dims,[r]),p=e.run(Object.assign(Object.assign({},l),{cacheHint:n.cacheKey,get:()=>s}),[t[0],a]),g=h(e,t[0],r,o,i.output.dims,s.output.dims);return [e.run(Object.assign(Object.assign({},c),{cacheHint:n.cacheKey,get:()=>g}),[t[0],a,p])]},d=(e,t,n,r,o)=>{const[s,l]=e.calculateTextureWidthAndHeight(t.dims,a.TextureType.unpacked),c=o.length;if(n<1||r<1)throw new Error(\"Logical row count N and feature count D must be greater than or equal to 1\");if(1!==o.length)throw new Error(\"Dimensionality of the output should be 1\");if(o[0]!==n)throw new Error(\"Shape of the output should be equal to logical row count\");const p=(0, i.getGlsl)(e.session.backend.glContext.version),d=`\\n float process(int[${c}] indices) {\\n int logical_row_start_offset = indices[0] * ${r};\\n\\n float max = getColorAsFloat(${p.texture2D}(A, offsetToCoords(logical_row_start_offset, ${s},\\n ${l} )));\\n for(int i=1; i<${r}; ++i)\\n {\\n float current = getColorAsFloat(${p.texture2D}(A, offsetToCoords(logical_row_start_offset + i,\\n ${s}, ${l})));\\n if(current > max)\\n max = current;\\n }\\n\\n return max;\\n }`;return Object.assign(Object.assign({},u),{output:{dims:o,type:t.type,textureType:a.TextureType.unpacked},shaderSource:d})},f=(e,t,n,r,o,s)=>{const[u,c]=e.calculateTextureWidthAndHeight(t.dims,a.TextureType.unpacked),p=s.length;if(n<1||r<1)throw new Error(\"Logical row count N and feature count D must be greater than or equal to 1\");if(1!==s.length)throw new Error(\"Dimensionality of the output should be 1\");if(s[0]!==n)throw new Error(\"Shape of the output should be equal to logical row count\");if(1!==o.length)throw new Error(\"Dimensionality of the intermediate results should be 1\");if(o[0]!==n)throw new Error(\"Shape of the intermediate results should be equal to logical row count\");const d=`\\n float process(int[${p}] indices) {\\n int logical_row_start_offset = indices[0] * ${r};\\n\\n float norm_factor = 0.0;\\n float max = _Max(indices);\\n for(int i=0; i<${r}; ++i)\\n {\\n norm_factor += exp(getColorAsFloat(${(0, i.getGlsl)(e.session.backend.glContext.version).texture2D}(A, offsetToCoords(logical_row_start_offset + i,\\n ${u}, ${c}))) - max);\\n }\\n\\n return norm_factor;\\n }`;return Object.assign(Object.assign({},l),{output:{dims:s,type:t.type,textureType:a.TextureType.unpacked},shaderSource:d})},h=(e,t,n,r,o,i)=>{const[s,u]=e.calculateTextureWidthAndHeight(t.dims,a.TextureType.unpacked),l=t.dims.length;if(n<1||r<1)throw new Error(\"Logical row count N and feature count D must be greater than or equal to 1\");if(1!==o.length||1!==i.length)throw new Error(\"Dimensionality of the intermediate results should be 1\");if(o[0]!==n||i[0]!==n)throw new Error(\"Shape of the intermediate results should be equal to logical row count\");const p=`\\n float process(int[${l}] indices) {\\n\\n // get offset of current logical tensor index from the 2-D texture coordinates (TexCoords)\\n int offset = coordsToOffset(TexCoords, ${s}, ${u});\\n\\n //determine the logical row for this index\\n int logical_row_index[1];\\n logical_row_index[0] = offset / ${r};\\n\\n float norm_factor = _Norm(logical_row_index);\\n\\n // avoid possible division by 0\\n // if norm_facor is 0, all elements are zero\\n // if so, return 0\\n if(norm_factor == 0.0)\\n return 0.0;\\n\\n return exp(_A(indices) - _Max(logical_row_index)) / norm_factor;\\n }`;return Object.assign(Object.assign({},c),{output:{dims:t.dims,type:t.type,textureType:a.TextureType.unpacked},shaderSource:p})},g=e=>{if(!e||1!==e.length)throw new Error(\"Softmax requires 1 input.\");if(\"float32\"!==e[0].type&&\"float64\"!==e[0].type)throw new Error(\"Invalid input type\")};},564:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseSplitAttributes=t.split=void 0;const r=n(4910),o=n(7273),i=n(5639),a={name:\"Split\",inputNames:[\"A\"],inputTypes:[i.TextureType.unpacked]};t.split=(e,t,n)=>{l(t);const r=o.ShapeUtil.normalizeAxis(n.axis,t[0].dims.length),i=s(e,t,r,n),c=[];for(let o=0;ou(e,t[0],n,r,o)}),t));return c},t.parseSplitAttributes=e=>{const t=e.attributes.getInt(\"axis\",0),n=e.attributes.getInts(\"split\",[]),o=e.outputs.length;return (0, r.createAttributeWithCacheKey)({axis:t,split:n,numOutputs:o})};const s=(e,t,n,r)=>{const[,i]=o.SplitUtil.splitShape(t[0].dims,n,r.split,r.numOutputs);return i.length},u=(e,t,n,r,s)=>{const[u,l]=o.SplitUtil.splitShape(t.dims,r,n.split,n.numOutputs),c=l[s],p=u[s],d=`\\n float process(int indices[${p.length}]) {\\n indices[${r}] += ${c};\\n return _A(indices);\\n }\\n `;return Object.assign(Object.assign({},a),{cacheHint:`${n.cacheKey}:${s}`,output:{dims:p,type:t.type,textureType:i.TextureType.unpacked},shaderSource:d})},l=e=>{if(!e||1!==e.length)throw new Error(\"Split requires one input.\");if(\"int8\"!==e[0].type&&\"uint8\"!==e[0].type&&\"int16\"!==e[0].type&&\"uint16\"!==e[0].type&&\"int32\"!==e[0].type&&\"uint32\"!==e[0].type&&\"float32\"!==e[0].type&&\"float64\"!==e[0].type&&\"bool\"!==e[0].type)throw new Error(\"Invalid input type.\")};},5416:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseSqueezeAttributes=t.squeezeV13=t.squeeze=void 0;const r=n(7273);t.squeeze=(e,t,n)=>{o(t);const i=r.ShapeUtil.squeezeShape(t[0].dims,n);return [e.reshapeUnpacked(t[0],i)]},t.squeezeV13=(e,n)=>(i(n),(0, t.squeeze)(e,[n[0]],Array.from(n[1].integerData))),t.parseSqueezeAttributes=e=>e.attributes.getInts(\"axes\");const o=e=>{if(!e||1!==e.length)throw new Error(\"Squeeze requires 1 input.\");if(\"string\"===e[0].type)throw new Error(\"invalid input tensor types.\")},i=e=>{if(!e||2!==e.length)throw new Error(\"Squeeze requires 2 inputs.\");if(\"int32\"!==e[1].type)throw new Error(\"Invalid input type.\")};},1240:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.sum=void 0;const r=n(6757),o=n(5639);t.sum=(e,t)=>{a(t);const n={name:\"Sum\",inputNames:t.map(((e,t)=>`X${t}`)),inputTypes:new Array(t.length).fill(o.TextureType.unpacked)};return [e.run(Object.assign(Object.assign({},n),{get:()=>i(e,t,n)}),t)]};const i=(e,t,n)=>{const i=(0, r.getGlsl)(e.session.backend.glContext.version),a=t[0].dims.slice(),s=`\\n void main() {\\n vec4 result = ${t.map(((e,t)=>`${i.texture2D}(X${t},TexCoords)`)).join(\" + \")};\\n ${i.output} = result;\\n }\\n `;return Object.assign(Object.assign({},n),{output:{dims:a,type:t[0].type,textureType:o.TextureType.unpacked},hasMain:!0,shaderSource:s})},a=e=>{if(!e||0===e.length)throw new Error(\"Sum requires inputs.\");const t=e[0].dims.length;for(let n=1;n{Object.defineProperty(t,\"__esModule\",{value:!0}),t.tile=void 0;const r=n(6145),o=n(5639);t.tile=(e,t)=>{a(t);const n={name:\"Tile\",inputNames:[\"A\"],inputTypes:[o.TextureType.unpacked]};return [e.run(Object.assign(Object.assign({},n),{get:()=>i(e,t,n)}),t)]};const i=(e,t,n)=>{const r=t[0].dims.slice(),i=new Array(r.length),a=[];for(let e=0;e{if(!e||2!==e.length)throw new Error(\"Tile requires 2 input.\");if(1!==e[1].dims.length)throw new Error(\"The second input shape must 1 dimension.\");if(e[1].dims[0]!==e[0].dims.length)throw new Error(\"Invalid input shape.\");if(-1===r.NUMBER_TYPES.indexOf(e[0].type))throw new Error(\"Invalid input type.\");if(\"int32\"!==e[1].type&&\"int16\"!==e[1].type)throw new Error(\"Invalid repeat type.\")};},5707:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseTransposeAttributes=t.transpose=void 0;const r=n(4910),o=n(7273),i=n(5639),a={name:\"Transpose\",inputNames:[\"A\"],inputTypes:[i.TextureType.unpacked]};t.transpose=(e,t,n)=>(p(t),[e.run(Object.assign(Object.assign({},a),{cacheHint:n.cacheKey,get:()=>s(e,t[0],n.perm)}),t)]),t.parseTransposeAttributes=e=>(0, r.createAttributeWithCacheKey)({perm:e.attributes.getInts(\"perm\",[])});const s=(e,t,n)=>{const r=t.dims;n=u(r,n);const o=l(r,n),s=r.length,p=`\\n ${c(\"perm\",n,s)}\\n float process(int indices[${s}]) {\\n int a[${s}];\\n perm(a, indices);\\n return _A(a);\\n }`;return Object.assign(Object.assign({},a),{output:{dims:o,type:t.type,textureType:i.TextureType.unpacked},shaderSource:p})},u=(e,t)=>(t&&t.length!==e.length&&(t=[...e.keys()].reverse()),t),l=(e,t)=>(t=u(e,t),o.ShapeUtil.sortBasedOnPerm(e,t)),c=(e,t,n)=>{const r=[];r.push(`void ${e}(out int a[${n}], int src[${n}]) {`);for(let e=0;e{if(!e||1!==e.length)throw new Error(\"Transpose requires 1 input.\");if(\"float32\"!==e[0].type&&\"float64\"!==e[0].type)throw new Error(\"input should be float tensor\")};},2488:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.encodeAsUint8=void 0;const r=n(6757),o=n(5639);t.encodeAsUint8=(e,t)=>{const n=t.shape,i=(0, r.getGlsl)(e.session.backend.glContext.version),a=`\\n const float FLOAT_MAX = 1.70141184e38;\\n const float FLOAT_MIN = 1.17549435e-38;\\n\\n bool isNaN(float val) {\\n return (val < 1.0 || 0.0 < val || val == 0.0) ? false : true;\\n }\\n\\n highp vec4 encodeAsUint8(highp float v) {\\n if (isNaN(v)) {\\n return vec4(255, 255, 255, 255);\\n }\\n\\n highp float av = abs(v);\\n\\n if(av < FLOAT_MIN) {\\n return vec4(0.0, 0.0, 0.0, 0.0);\\n } else if(v > FLOAT_MAX) {\\n return vec4(0.0, 0.0, 128.0, 127.0) / 255.0;\\n } else if(v < -FLOAT_MAX) {\\n return vec4(0.0, 0.0, 128.0, 255.0) / 255.0;\\n }\\n\\n highp vec4 c = vec4(0,0,0,0);\\n\\n highp float e = floor(log2(av));\\n highp float m = exp2(fract(log2(av))) - 1.0;\\n\\n c[2] = floor(128.0 * m);\\n m -= c[2] / 128.0;\\n c[1] = floor(32768.0 * m);\\n m -= c[1] / 32768.0;\\n c[0] = floor(8388608.0 * m);\\n\\n highp float ebias = e + 127.0;\\n c[3] = floor(ebias / 2.0);\\n ebias -= c[3] * 2.0;\\n c[2] += floor(ebias) * 128.0;\\n\\n c[3] += 128.0 * step(0.0, -v);\\n\\n return c / 255.0;\\n }\\n\\n void main() {\\n float value = ${i.texture2D}(X,TexCoords).r;\\n ${i.output} = encodeAsUint8(value);\\n }`,s={name:\"Uint8Encode\",inputTypes:[o.TextureType.unpacked],inputNames:[\"X\"],output:{dims:n,type:t.tensor.type,textureType:o.TextureType.downloadUint8AsFloat},shaderSource:a,hasMain:!0};return e.executeProgram(s,[t.tensor])};},9087:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.tanh=t.tan=t.sqrt=t.sin=t.sigmoid=t.relu=t.not=t.neg=t.log=t.parseLeakyReluAttributes=t.leakyRelu=t.identity=t.floor=t.exp=t.parseEluAttributes=t.elu=t.cos=t.ceil=t.clipV11=t.parseClipAttributes=t.clip=t.atan=t.asin=t.acos=t.abs=t.glslTanh=t.glslTan=t.glslSqrt=t.glslSigmoid=t.glslRelu=t.glslSin=t.glslNot=t.glslNeg=t.glslLog=t.glslLeakyRelu=t.glslIdentity=t.glslClip=t.glslFloor=t.glslExp=t.glslElu=t.glslCos=t.glslCeil=t.glslAtan=t.glslAsin=t.glslAcos=t.glslAbs=void 0;const r=n(4910),o=n(7273),i=n(1997),a=n(6757),s=n(5639);function u(){return $(\"abs\")}function l(){return $(\"acos\")}function c(){return $(\"asin\")}function p(){return $(\"atan\")}function d(){return $(\"ceil\")}function f(){return $(\"cos\")}function h(e){const t=\"elu\";return {body:`\\n const float alpha = float(${e});\\n\\n float ${t}_(float a) {\\n return a >= 0.0 ? a: (exp(a) - 1.0) * alpha;\\n }\\n vec4 ${t}_(vec4 v) {\\n return vec4(${t}_(v.x), ${t}_(v.y), ${t}_(v.z), ${t}_(v.w));\\n }\\n `,name:t,type:i.FunctionType.ValueBased}}function g(){return $(\"exp\")}function m(){return $(\"floor\")}function b(e,t){const n=\"clip\";return {body:`\\n const float min = float(${e});\\n const float max = float(${t});\\n\\n float ${n}_(float a) {\\n return clamp(a, min, max);\\n }\\n vec4 ${n}_(vec4 v) {\\n return clamp(v, min, max);\\n }\\n `,name:n,type:i.FunctionType.ValueBased}}function y(){const e=\"indentity\";return {body:`\\n float ${e}_(float a) {\\n return a;\\n }\\n vec4 ${e}_(vec4 v) {\\n return v;\\n }\\n `,name:e,type:i.FunctionType.ValueBased}}function w(e){const t=\"leakyRelu\";return {body:`\\n const float alpha = float(${e});\\n\\n float ${t}_(float a) {\\n return a < 0.0 ? a * alpha : a;\\n }\\n vec4 ${t}_(vec4 v) {\\n return vec4(${t}_(v.x), ${t}_(v.y), ${t}_(v.z), ${t}_(v.w));\\n }\\n `,name:t,type:i.FunctionType.ValueBased}}function _(){return $(\"log\")}function v(){const e=\"neg\";return {body:`\\n float ${e}_(float a) {\\n return -a;\\n }\\n vec4 ${e}_(vec4 v) {\\n return -v;\\n }\\n `,name:e,type:i.FunctionType.ValueBased}}function x(){const e=\"not\";return {body:`\\n float ${e}_(float a) {\\n return float( ! bool(a) );\\n }\\n bool ${e}_(bool a) {\\n return !a;\\n }\\n vec4 ${e}_(vec4 v) {\\n return vec4(!bool(v.x), !bool(v.y), !bool(v.z), !bool(v.w));\\n }\\n bvec4 ${e}_(bvec4 v) {\\n return bvec4(!v.x, !v.y, !v.z, !v.w);\\n }\\n `,name:e,type:i.FunctionType.ValueBased}}function T(){return $(\"sin\")}function S(){const e=\"relu\";return {body:`\\n float ${e}_(float a) {\\n return max( a, 0.0 );\\n }\\n vec4 ${e}_(vec4 v) {\\n return max( v, 0.0 );\\n }\\n `,name:e,type:i.FunctionType.ValueBased}}function O(){const e=\"sigmoid\";return {body:`\\n float ${e}_(float a) {\\n return 1.0 / (1.0 + exp(-a));\\n }\\n vec4 ${e}_(vec4 v) {\\n return 1.0 / (1.0 + exp(-v));\\n }\\n `,name:e,type:i.FunctionType.ValueBased}}function A(){return $(\"sqrt\")}function E(){return $(\"tan\")}function I(){const e=\"tanh\";return {body:`\\n float ${e}_(float a) {\\n a = clamp(a, -10., 10.);\\n a = exp(2.*a);\\n return (a - 1.) / (a + 1.);\\n }\\n vec4 ${e}_(vec4 v) {\\n v = clamp(v, -10., 10.);\\n v = exp(2.*v);\\n return (v - 1.) / (v + 1.);\\n }\\n `,name:e,type:i.FunctionType.ValueBased}}function $(e){return {body:`\\n float ${e}_(float a) {\\n return ${e}(a);\\n }\\n vec4 ${e}_(vec4 v) {\\n return ${e}(v);\\n }\\n `,name:e,type:i.FunctionType.ValueBased}}t.glslAbs=u,t.glslAcos=l,t.glslAsin=c,t.glslAtan=p,t.glslCeil=d,t.glslCos=f,t.glslElu=h,t.glslExp=g,t.glslFloor=m,t.glslClip=b,t.glslIdentity=y,t.glslLeakyRelu=w,t.glslLog=_,t.glslNeg=v,t.glslNot=x,t.glslSin=T,t.glslRelu=S,t.glslSigmoid=O,t.glslSqrt=A,t.glslTan=E,t.glslTanh=I;const P=(e,t,n,r)=>{const o=e.session.pack?s.TextureType.packed:s.TextureType.unpacked,i={name:n.name,inputTypes:[o],inputNames:[\"A\"],cacheHint:r};return Object.assign(Object.assign({},i),{get:()=>((e,t,n,r)=>{const o=e.session.pack?s.TextureType.packed:s.TextureType.unpacked,i=(0, a.getGlsl)(e.session.backend.glContext.version);return Object.assign(Object.assign({},t),{output:{dims:n.dims,type:n.type,textureType:o},shaderSource:`\\n ${r.body}\\n void main() {\\n vec4 v = ${i.texture2D}(A, TexCoords);\\n v = ${r.name}_(v);\\n ${i.output} = v;\\n }\\n `,hasMain:!0})})(e,i,t,n)})};t.abs=(e,t)=>[e.run(P(e,t[0],u()),t)],t.acos=(e,t)=>[e.run(P(e,t[0],l()),t)],t.asin=(e,t)=>[e.run(P(e,t[0],c()),t)],t.atan=(e,t)=>[e.run(P(e,t[0],p()),t)],t.clip=(e,t,n)=>[e.run(P(e,t[0],b(n.min,n.max),n.cacheKey),t)],t.parseClipAttributes=e=>(0, r.createAttributeWithCacheKey)({min:e.attributes.getFloat(\"min\",o.MIN_CLIP),max:e.attributes.getFloat(\"max\",o.MAX_CLIP)}),t.clipV11=(e,n)=>{const r=D(e,n);return (0, t.clip)(e,[n[0]],r)};const D=(e,t)=>{if(t.length>=3&&(!e.session.isInitializer(t[1].dataId)||!e.session.isInitializer(t[2].dataId)))throw new Error(\"dynamic clip attributes are not allowed\");const n=t.length>=3?t[1].numberData[0]:o.MIN_CLIP,i=t.length>=3?t[2].numberData[0]:o.MAX_CLIP;return (0, r.createAttributeWithCacheKey)({min:n,max:i})};t.ceil=(e,t)=>[e.run(P(e,t[0],d()),t)],t.cos=(e,t)=>[e.run(P(e,t[0],f()),t)],t.elu=(e,t,n)=>[e.run(P(e,t[0],h(n.alpha),n.cacheKey),t)],t.parseEluAttributes=e=>(0, r.createAttributeWithCacheKey)({alpha:e.attributes.getFloat(\"alpha\",1)}),t.exp=(e,t)=>[e.run(P(e,t[0],g()),t)],t.floor=(e,t)=>[e.run(P(e,t[0],m()),t)],t.identity=(e,t)=>[e.run(P(e,t[0],y()),t)],t.leakyRelu=(e,t,n)=>[e.run(P(e,t[0],w(n.alpha),n.cacheKey),t)],t.parseLeakyReluAttributes=e=>(0, r.createAttributeWithCacheKey)({alpha:e.attributes.getFloat(\"alpha\",.01)}),t.log=(e,t)=>[e.run(P(e,t[0],_()),t)],t.neg=(e,t)=>[e.run(P(e,t[0],v()),t)],t.not=(e,t)=>[e.run(P(e,t[0],x()),t)],t.relu=(e,t)=>[e.run(P(e,t[0],S()),t)],t.sigmoid=(e,t)=>[e.run(P(e,t[0],O()),t)],t.sin=(e,t)=>[e.run(P(e,t[0],T()),t)],t.sqrt=(e,t)=>[e.run(P(e,t[0],A()),t)],t.tan=(e,t)=>[e.run(P(e,t[0],E()),t)],t.tanh=(e,t)=>[e.run(P(e,t[0],I()),t)];},540:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createUnpackProgramInfoLoader=t.createUnpackProgramInfo=void 0;const r=n(6757),o=n(5639),i=n(432),a=n(5614),s={name:\"unpack\",inputNames:[\"A\"],inputTypes:[o.TextureType.packed]};t.createUnpackProgramInfo=(e,t)=>{const n=t.dims.length,u=(0, a.getChannels)(\"rc\",n),l=u.slice(-2),c=(0, i.getCoordsDataType)(n),p=(0, a.unpackFromChannel)(),d=0===t.dims.length?\"\":function(e,t){if(1===e)return \"rc\";let n=\"\";for(let r=0;rObject.assign(Object.assign({},s),{get:()=>(0, t.createUnpackProgramInfo)(e,n)});},7862:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseUnsqueezeAttributes=t.unsqueezeV13=t.unsqueeze=void 0;const r=n(7273);t.unsqueeze=(e,t,n)=>{o(t);const i=r.ShapeUtil.unsqueezeShape(t[0].dims,n);return [e.reshapeUnpacked(t[0],i)]},t.unsqueezeV13=(e,n)=>(i(n),(0, t.unsqueeze)(e,[n[0]],Array.from(n[1].integerData))),t.parseUnsqueezeAttributes=e=>e.attributes.getInts(\"axes\");const o=e=>{if(!e||1!==e.length)throw new Error(\"Unsqueeze requires 1 input.\");if(\"string\"===e[0].type)throw new Error(\"invalid input tensor types.\")},i=e=>{if(!e||2!==e.length)throw new Error(\"Unsqueeze requires 2 inputs.\");if(\"int32\"!==e[1].type)throw new Error(\"Invalid input type.\")};},3980:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.scalesValidation=t.validateInputs=t.parseUpsampleAttributes=t.parseUpsampleAttributesV9=t.parseUpsampleAttributesV7=t.upsample=void 0;const r=n(4910),o=n(6757),i=n(5639),a={name:\"Upsample\",inputNames:[\"X\"],inputTypes:[i.TextureType.unpacked]};t.upsample=(e,n,r)=>((0, t.validateInputs)(n,r),[e.run(Object.assign(Object.assign({},a),{cacheHint:r.cacheKey,get:()=>s(e,n,r)}),n)]),t.parseUpsampleAttributesV7=e=>(0, t.parseUpsampleAttributes)(e,7),t.parseUpsampleAttributesV9=e=>(0, t.parseUpsampleAttributes)(e,9),t.parseUpsampleAttributes=(e,n)=>{const o=n>=10,i=e.attributes.getString(\"mode\",\"nearest\");if(\"nearest\"!==i&&\"linear\"!==i&&(n<11||\"cubic\"!==i))throw new Error(`unrecognized mode: ${i}`);let a=[];n<9&&(a=e.attributes.getFloats(\"scales\"),(0, t.scalesValidation)(a,i,o));const s=e.attributes.getFloat(\"extrapolation_value\",0),u=n>10?e.attributes.getString(\"coordinate_transformation_mode\",\"half_pixel\"):\"asymmetric\";if(-1===[\"asymmetric\",\"pytorch_half_pixel\",\"tf_half_pixel_for_nn\",\"align_corners\",\"tf_crop_and_resize\",\"half_pixel\"].indexOf(u))throw new Error(`coordinate_transform_mode '${u}' is not supported`);const l=\"tf_crop_and_resize\"===u,c=l,p=\"nearest\"===i&&n>=11?e.attributes.getString(\"nearest_mode\",\"round_prefer_floor\"):\"\";if(-1===[\"round_prefer_floor\",\"round_prefer_ceil\",\"floor\",\"ceil\",\"\"].indexOf(p))throw new Error(`nearest_mode '${p}' is not supported`);const d=e.attributes.getFloat(\"cubic_coeff_a\",-.75),f=0!==e.attributes.getInt(\"exclude_outside\",0);if(f&&\"cubic\"!==i)throw new Error(\"exclude_outside can be set to 1 only when mode is CUBIC.\");const h=n<11||\"nearest\"===i&&\"asymmetric\"===u&&\"floor\"===p;let g=0,m=0,b=0;return n>10?e.inputs.length>2?(g=1,m=2,b=3):(m=1,b=2):9===n&&(m=1),(0, r.createAttributeWithCacheKey)({opset:n,isResize:o,mode:i,scales:a,extrapolationValue:s,coordinateTransformMode:u,useExtrapolation:c,needRoiInput:l,nearestMode:p,cubicCoefficientA:d,excludeOutside:f,useNearest2xOptimization:h,roiInputIdx:g,scalesInputIdx:m,sizesInputIdx:b})};const s=(e,t,n)=>{const r=(0, o.getGlsl)(e.session.backend.glContext.version),[s,u]=e.calculateTextureWidthAndHeight(t[0].dims,i.TextureType.unpacked),l=t[0].dims.map(((e,t)=>Math.floor(e*n.scales[t]))),[c,p]=e.calculateTextureWidthAndHeight(l,i.TextureType.unpacked),d=l.length,f=new Array(d),h=new Array(d);let g=`\\n int output_pitches[${d}];\\n int input_pitches[${d}];\\n `;for(let e=d-1;e>=0;e--)f[e]=e===d-1?1:f[e+1]*l[e+1],h[e]=e===d-1?1:h[e+1]*t[0].dims[e+1],g+=`\\n output_pitches[${e}] = ${f[e]};\\n input_pitches[${e}] = ${h[e]};\\n `;const m=`\\n float getInputFloat(int index) {\\n vec2 coords = offsetToCoords(index, ${s}, ${u});\\n float value = getColorAsFloat(${r.texture2D}(X, coords));\\n return value;\\n }\\n `,b=\"nearest\"===n.mode?`\\n ${m}\\n float process(int indices[${d}]) {\\n int input_index = 0;\\n int output_index = coordsToOffset(TexCoords, ${c}, ${p});\\n\\n ${g}\\n\\n int d, m;\\n for (int dim = 0; dim < ${d}; ++dim) {\\n d = output_index / output_pitches[dim];\\n m = output_index - d * output_pitches[dim];\\n output_index = m;\\n\\n if (scales[dim] != 1 && d > 0) {\\n int d2 = d / scales[dim];\\n m = d - d2 * scales[dim];\\n d = d2;\\n }\\n input_index += input_pitches[dim] * d;\\n }\\n\\n return getInputFloat(input_index);\\n }`:4===d?`\\n ${m}\\n float process(int indices[4]) {\\n int input_index = 0;\\n int output_index = coordsToOffset(TexCoords, ${c}, ${p});\\n\\n ${g}\\n\\n int m;\\n int index_of_dim0, index_of_dim1, index_of_dim2, index_of_dim3;\\n index_of_dim0 = output_index / output_pitches[0];\\n m = output_index - index_of_dim0 * output_pitches[0];\\n index_of_dim1 = m / output_pitches[1];\\n m = m - index_of_dim1 * output_pitches[1];\\n index_of_dim2 = m / output_pitches[2];\\n m = m - index_of_dim2 * output_pitches[2];\\n index_of_dim3 = m;\\n\\n int index_of_input_dim2, index_of_input_dim3, x_offset, y_offset;\\n index_of_input_dim2 = index_of_dim2 / scales[2];\\n y_offset = index_of_dim2 - index_of_input_dim2 * scales[2];\\n index_of_input_dim3 = index_of_dim3 / scales[3];\\n x_offset = index_of_dim3 - index_of_input_dim3 * scales[3];\\n\\n input_index = index_of_dim0 * input_pitches[0] +\\n index_of_dim1 * input_pitches[1] +\\n index_of_input_dim2 * input_pitches[2] +\\n index_of_input_dim3;\\n\\n float x00 = getInputFloat(input_index);\\n float x10, x01, x11;\\n\\n bool end_of_dim2 = false;\\n if (index_of_input_dim2 == (${t[0].dims[2]} - 1)) {\\n // It's the end in dimension 2\\n x01 = x00;\\n end_of_dim2 = true;\\n } else {\\n x01 = getInputFloat(input_index + input_pitches[2]);\\n }\\n\\n if (index_of_input_dim3 == (input_pitches[2] - 1)) {\\n // It's the end in dimension 3\\n x10 = x00;\\n x11 = x01;\\n }\\n else {\\n x10 = getInputFloat(input_index + 1);\\n x11 = end_of_dim2 ? x10 : getInputFloat(input_index + input_pitches[2] + 1);\\n }\\n\\n float y0 = x00 + float(y_offset) * (x01 - x00) / float(scales[2]);\\n float y1 = x10 + float(y_offset) * (x11 - x10) / float(scales[2]);\\n return y0 + float(x_offset) * (y1 - y0) / float(scales[3]);\\n }`:`\\n ${m}\\n float process(int indices[2]) {\\n int input_index = 0;\\n int output_index = coordsToOffset(TexCoords, ${c}, ${p});\\n\\n ${g}\\n\\n int m;\\n int index_of_dim0, index_of_dim1;\\n index_of_dim0 = output_index / output_pitches[0];\\n m = output_index - index_of_dim0 * output_pitches[0];\\n index_of_dim1 = m;\\n\\n int index_of_input_dim0, index_of_input_dim1, x_offset, y_offset;\\n index_of_input_dim0 = index_of_dim0 / scales[0];\\n y_offset = index_of_dim0 - index_of_input_dim0 * scales[0];\\n index_of_input_dim1 = index_of_dim1 / scales[1];\\n x_offset = index_of_dim1 - index_of_input_dim1 * scales[1];\\n\\n input_index = index_of_input_dim0 * input_pitches[0] + index_of_input_dim1;\\n\\n float x00 = getInputFloat(input_index);\\n float x10, x01, x11;\\n\\n bool end_of_dim0 = false;\\n if (index_of_input_dim0 == (${t[0].dims[0]} - 1)) {\\n // It's the end in dimension 0\\n x01 = x00;\\n end_of_dim0 = true;\\n } else {\\n x01 = getInputFloat(input_index + input_pitches[0]);\\n }\\n\\n if (index_of_input_dim1 == (input_pitches[0] - 1)) {\\n // It's the end in dimension 1\\n x10 = x00;\\n x11 = x01;\\n }\\n else {\\n x10 = getInputFloat(input_index + 1);\\n x11 = end_of_dim0 ? x10 : getInputFloat(input_index + input_pitches[0] + 1);\\n }\\n\\n float y0 = x00 + float(y_offset) * (x01 - x00) / float(scales[0]);\\n float y1 = x10 + float(y_offset) * (x11 - x10) / float(scales[0]);\\n return y0 + float(x_offset) * (y1 - y0) / float(scales[1]);\\n }`;return Object.assign(Object.assign({},a),{output:{dims:l,type:t[0].type,textureType:i.TextureType.unpacked},shaderSource:b,variables:[{name:\"scales\",type:\"int\",arrayLength:n.scales.length,data:n.scales.map((e=>Math.ceil(e)))}]})};t.validateInputs=(e,t)=>{if(!e||t.opset<9&&1!==e.length||t.opset>=9&&t.opset<11&&2!==e.length||t.opset>=11&&e.length<2)throw new Error(\"invalid inputs.\");if(t.scales.length>0&&e[0].dims.length!==t.scales.length)throw new Error(\"Invalid input shape.\");if(\"string\"===e[0].type)throw new Error(\"Invalid input tensor types.\")},t.scalesValidation=(e,t,n)=>{if(n){for(const t of e)if(t<=0)throw new Error(\"Scale value should be greater than 0.\")}else for(const t of e)if(t<1)throw new Error(\"Scale value should be greater than or equal to 1.\");if(!(\"linear\"!==t&&\"cubic\"!==t||2===e.length||4===e.length&&1===e[0]&&1===e[1]))throw new Error(`'Linear' mode and 'Cubic' mode only support 2-D inputs ('Bilinear', 'Bicubic') or 4-D inputs with the corresponding outermost 2 scale values being 1 in the ${n?\"Resize\":\"Upsample\"} opeartor.`)};},2757:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ProgramManager=void 0;const r=n(8453),o=n(1315),i=n(8897),a=n(6757);t.ProgramManager=class{constructor(e,t,n){this.profiler=e,this.glContext=t,this.textureLayoutStrategy=n,this.repo=new Map,this.attributesBound=!1;}getArtifact(e){return this.repo.get(e)}setArtifact(e,t){this.repo.set(e,t);}run(e,t,n){var r;this.profiler.event(\"op\",`ProgramManager.run ${null!==(r=e.programInfo.name)&&void 0!==r?r:\"unknown kernel\"}`,(()=>{var r;const i=this.glContext.gl,a=e.program;i.useProgram(a);try{this.bindOutput(n),this.attributesBound||this.bindAttributes(e.attribLocations),this.bindUniforms(e.uniformLocations,null!==(r=e.programInfo.variables)&&void 0!==r?r:[],t);}catch(t){throw o.Logger.error(\"ProgramManager\",e.programInfo.shaderSource),t}this.profiler.event(\"backend\",\"GlContext.draw()\",(()=>{this.glContext.draw();}));}),this.glContext);}dispose(){this.vertexShader&&this.glContext.deleteShader(this.vertexShader),this.repo.forEach((e=>this.glContext.deleteProgram(e.program)));}build(e,t,n){return this.profiler.event(\"backend\",\"ProgramManager.build\",(()=>{const r=new i.GlslPreprocessor(this.glContext,e,t,n),o=r.preprocess(),a=this.compile(o);return {programInfo:e,program:a,uniformLocations:this.getUniformLocations(a,r.context.programInfo.inputNames,r.context.programInfo.variables),attribLocations:this.getAttribLocations(a)}}))}compile(e){if(!this.vertexShader){o.Logger.verbose(\"ProrgramManager\",\"Compiling and caching Vertex shader for the first time\");const e=(0, a.getVertexShaderSource)(this.glContext.version);this.vertexShader=this.glContext.compileShader(e,this.glContext.gl.VERTEX_SHADER);}r.env.debug&&o.Logger.verbose(\"ProrgramManager\",`FragShader:\\n${e}\\n`);const t=this.glContext.compileShader(e,this.glContext.gl.FRAGMENT_SHADER),n=this.glContext.createProgram(this.vertexShader,t);return this.glContext.deleteShader(t),n}bindOutput(e){const t=e.width,n=e.height;o.Logger.verbose(\"ProrgramManager\",`Binding output texture to Framebuffer: w/h=${t}/${n}, shape=${e.shape}, type=${e.tensor.type}`),this.glContext.attachFramebuffer(e.texture,t,n);}bindAttributes(e){const t=e.position,n=e.textureCoord;this.glContext.setVertexAttributes(t,n),this.attributesBound=!0;}bindUniforms(e,t,n){var r;const o=this.glContext.gl;let i=0;for(const{name:a,type:s,location:u,arrayLength:l}of e){const e=null===(r=t.find((e=>e.name===a)))||void 0===r?void 0:r.data;if(\"sampler2D\"!==s&&!e)throw new Error(`variable '${a}' does not have data defined in program info`);switch(s){case\"sampler2D\":this.bindTexture(n[i],u,i),i++;break;case\"float\":l?o.uniform1fv(u,e):o.uniform1f(u,e);break;case\"int\":l?o.uniform1iv(u,e):o.uniform1i(u,e);break;default:throw new Error(`Uniform not implemented: ${s}`)}}}bindTexture(e,t,n){this.glContext.bindTextureToUniform(e.texture,n,t);}getAttribLocations(e){return {position:this.getAttribLocation(e,\"position\"),textureCoord:this.getAttribLocation(e,\"textureCoord\")}}getUniformLocations(e,t,n){const r=[];if(t)for(const n of t)r.push({name:n,type:\"sampler2D\",location:this.getUniformLocation(e,n)});if(n)for(const t of n)r.push(Object.assign(Object.assign({},t),{location:this.getUniformLocation(e,t.name)}));return r}getUniformLocation(e,t){const n=this.glContext.gl.getUniformLocation(e,t);if(null===n)throw new Error(`Uniform ${t} not found.`);return n}getAttribLocation(e,t){return this.glContext.gl.getAttribLocation(e,t)}};},2171:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.WebGLSessionHandler=void 0;const r=n(1315),o=n(5881),i=n(7860),a=n(4110),s=n(2757),u=n(7618),l=n(5243);t.WebGLSessionHandler=class{constructor(e,t){this.backend=e,this.context=t,this.layoutStrategy=new u.PreferLogicalStrategy(e.glContext.maxTextureSize),this.programManager=new s.ProgramManager(this.context.profiler,e.glContext,this.layoutStrategy),this.textureManager=new l.TextureManager(e.glContext,this.layoutStrategy,this.context.profiler,{reuseTextures:\"full\"===e.textureCacheMode}),this.packedTextureDataCache=new Map,this.unpackedTextureDataCache=new Map,this.pack=e.pack,this.pack2unpackMap=new Map,this.unpack2packMap=new Map;}createInferenceHandler(){return new i.WebGLInferenceHandler(this)}onGraphInitialized(e){const t=e.getValues().filter((e=>-1===e.from&&e.tensor)).map((e=>e.tensor.dataId));this.initializers=new Set(t);}isInitializer(e){return !!this.initializers&&this.initializers.has(e)}addInitializer(e){this.initializers.add(e);}getTextureData(e,t){return t?this.packedTextureDataCache.get(e):this.unpackedTextureDataCache.get(e)}setTextureData(e,t,n=!1){r.Logger.verbose(\"WebGLSessionHandler\",\"Storing Texture data in cache\"),n?this.packedTextureDataCache.set(e,t):this.unpackedTextureDataCache.set(e,t);}dispose(){this.programManager.dispose(),this.textureManager.clearActiveTextures(),this.packedTextureDataCache.forEach((e=>this.textureManager.releaseTexture(e,!0))),this.packedTextureDataCache=new Map,this.unpackedTextureDataCache.forEach((e=>this.textureManager.releaseTexture(e,!0))),this.unpackedTextureDataCache=new Map;}resolve(e,t,n){const r=(0, o.resolveOperator)(e,t,a.WEBGL_OP_RESOLVE_RULES);return {impl:r.opImpl,context:r.opInit?r.opInit(e,n):e}}};},9622:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.Uint8DataEncoder=t.RGBAFloatDataEncoder=t.RedFloat32DataEncoder=void 0;const r=n(1315);t.RedFloat32DataEncoder=class{constructor(e,t=1){if(1===t)this.internalFormat=e.R32F,this.format=e.RED,this.textureType=e.FLOAT,this.channelSize=t;else {if(4!==t)throw new Error(`Invalid number of channels: ${t}`);this.internalFormat=e.RGBA32F,this.format=e.RGBA,this.textureType=e.FLOAT,this.channelSize=t;}}encode(e,t){let n,o;return e.constructor!==Float32Array&&(r.Logger.warning(\"Encoder\",\"data was not of type Float32; creating new Float32Array\"),o=new Float32Array(e)),t*this.channelSize>e.length?(r.Logger.warning(\"Encoder\",\"Source data too small. Allocating larger array\"),o=e,n=this.allocate(t*this.channelSize),o.forEach(((e,t)=>n[t]=e))):(o=e,n=o),n}allocate(e){return new Float32Array(4*e)}decode(e,t){return 1===this.channelSize?e.filter(((e,t)=>t%4==0)).subarray(0,t):e.subarray(0,t)}},t.RGBAFloatDataEncoder=class{constructor(e,t=1,n){if(1!==t&&4!==t)throw new Error(`Invalid number of channels: ${t}`);this.internalFormat=e.RGBA,this.format=e.RGBA,this.channelSize=t,this.textureType=n||e.FLOAT;}encode(e,t){let n=e;return 1===this.channelSize&&(r.Logger.verbose(\"Encoder\",\"Exploding into a larger array\"),n=this.allocate(t),e.forEach(((e,t)=>n[4*t]=e))),n}allocate(e){return new Float32Array(4*e)}decode(e,t){return 1===this.channelSize?e.filter(((e,t)=>t%4==0)).subarray(0,t):e.subarray(0,t)}},t.Uint8DataEncoder=class{constructor(e,t=1){if(this.channelSize=4,1===t)this.internalFormat=e.ALPHA,this.format=e.ALPHA,this.textureType=e.UNSIGNED_BYTE,this.channelSize=t;else {if(4!==t)throw new Error(`Invalid number of channels: ${t}`);this.internalFormat=e.RGBA,this.format=e.RGBA,this.textureType=e.UNSIGNED_BYTE,this.channelSize=t;}}encode(e,t){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}allocate(e){return new Uint8Array(e*this.channelSize)}decode(e,t){if(e instanceof Uint8Array)return e.subarray(0,t);throw new Error(`Invalid array type: ${e.constructor}`)}};},7618:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.getBatchDim=t.sizeToSquarishShape=t.getRowsCols=t.sizeFromShape=t.isInt=t.parseAxisParam=t.squeezeShape=t.PreferLogicalStrategy=t.AlwaysKeepOriginalSizeStrategy=void 0;const r=n(1315),o=n(7273);function i(e,t){const n=[],r=[],o=null!=t&&Array.isArray(t)&&0===t.length,i=null==t||o?null:a(t,e).sort();let s=0;for(let t=0;tt)&&1===e[t]&&(n.push(e[t]),r.push(t)),i[s]<=t&&s++;}1!==e[t]&&(n.push(e[t]),r.push(t));}return {newShape:n,keptDims:r}}function a(e,t){const n=t.length;return e=null==e?t.map(((e,t)=>t)):[].concat(e),(0, o.assert)(e.every((e=>e>=-n&&e`All values in axis param must be in range [-${n}, ${n}) but got axis ${e}`)),(0, o.assert)(e.every(s),(()=>`All values in axis param must be integers but got axis ${e}`)),e.map((e=>e<0?n+e:e))}function s(e){return e%1==0}function u(e){if(0===e.length)return 1;let t=e[0];for(let n=1;n=e.length?1:e.slice(t.breakAxis).reduce(((e,t)=>e*t)),i=t.breakAxis<=0?1:e.slice(0,t.breakAxis).reduce(((e,t)=>e*t));if(!(o>n||i>n))return [o,i];r.Logger.verbose(\"TextureLayout\",`Given width/height preferences were unattainable: shape:${e}, breakAxis:${t.breakAxis}`);}const o=e.reduce(((e,t)=>e*t));let i=Math.floor(Math.sqrt(o));for(;i=n||o%i!=0)throw new Error(`The given dimensions are outside this GPU's boundaries: ${e}`);return [i,o/i]}},t.PreferLogicalStrategy=class{constructor(e){this.maxTextureSize=e;}computeTextureWH(e,t){const n=this.computeTexture(e,t);return t&&t.isPacked&&(n[0]/=2,n[1]/=2),t&&t.reverseWH?[n[1],n[0]]:n}computeTexture(e,t){const n=t&&t.isPacked;if(0===e.length)return n?[2,2]:[1,1];let o=this.maxTextureSize;if(t&&void 0!==t.breakAxis){const n=t.breakAxis>=e.length?1:e.slice(t.breakAxis).reduce(((e,t)=>e*t)),i=t.breakAxis<=0?1:e.slice(0,t.breakAxis).reduce(((e,t)=>e*t));if(!(n>o||i>o))return [n,i];r.Logger.verbose(\"TextureLayout\",`Given width/height preferences were unattainable: shape:${e}, breakAxis:${t.breakAxis}`);}let a=e.slice(0);if(n&&(o*=2,a=a.map(((e,t)=>t>=a.length-2?a[t]%2==0?a[t]:a[t]+1:a[t])),1===a.length&&(a=[2,a[0]])),2!==a.length){const e=i(a);a=e.newShape;}const s=u(a);return a.length<=1&&s<=o?[1,s]:2===a.length&&a[0]<=o&&a[1]<=o?a:3===a.length&&a[0]*a[1]<=o&&a[2]<=o?[a[0]*a[1],a[2]]:3===a.length&&a[0]<=o&&a[1]*a[2]<=o?[a[0],a[1]*a[2]]:4===a.length&&a[0]*a[1]*a[2]<=o&&a[3]<=o?[a[0]*a[1]*a[2],a[3]]:4===a.length&&a[0]<=o&&a[1]*a[2]*a[3]<=o?[a[0],a[1]*a[2]*a[3]]:n?l(s/4).map((e=>2*e)):l(s)}},t.squeezeShape=i,t.parseAxisParam=a,t.isInt=s,t.sizeFromShape=u,t.getRowsCols=function(e){if(0===e.length)throw Error(\"Cannot get rows and columns of an empty shape array.\");return [e.length>1?e[e.length-2]:1,e[e.length-1]]},t.sizeToSquarishShape=l,t.getBatchDim=function(e,t=2){return u(e.slice(0,e.length-t))};},3314:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createTextureLayoutFromShape=t.calculateTextureWidthAndHeight=t.createTextureLayoutFromTextureType=void 0;const r=n(7273),o=n(5639);t.createTextureLayoutFromTextureType=(e,n,r)=>{const i=r===o.TextureType.unpacked||r===o.TextureType.unpackedReversed?1:4,a=r===o.TextureType.packed,s=r===o.TextureType.unpackedReversed||r===o.TextureType.packed,u=r===o.TextureType.packedLastDimension?n.length-1:void 0,l=r===o.TextureType.packedLastDimension?n.map(((e,t)=>t===n.length-1?4*e:e)):void 0;return (0, t.createTextureLayoutFromShape)(e,n,i,l,{isPacked:a,reverseWH:s,breakAxis:u})},t.calculateTextureWidthAndHeight=(e,n,r)=>{const o=(0, t.createTextureLayoutFromTextureType)(e,n,r);return [o.width,o.height]},t.createTextureLayoutFromShape=(e,t,n=1,o,i)=>{const a=!(!i||!i.isPacked),[s,u]=e.computeTextureWH(a&&o||t,i),l=t.length;let c=t.slice(0);if(0===l&&(c=[1]),1===n)o=t;else if(a){if(4!==n)throw new Error(\"a packed texture must be 4-channel\");o=t,l>0&&(c[l-1]=Math.ceil(c[l-1]/2)),l>1&&(c[l-2]=Math.ceil(c[l-2]/2));}else if(!o)throw new Error(\"Unpacked shape is needed when using channels > 1\");return {width:s,height:u,channels:n,isPacked:a,shape:c,strides:r.ShapeUtil.computeStrides(c),unpackedShape:o,reversedWH:i&&i.reverseWH}};},5243:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.TextureManager=void 0;const r=n(1315);t.TextureManager=class{constructor(e,t,n,r){this.glContext=e,this.layoutStrategy=t,this.profiler=n,this.config=r,this.pendingRead=new Map,r.reuseTextures&&(this.inUseTextures=new Map,this.idleTextures=new Map,this.textureLookup=new Map);}createTextureFromLayout(e,t,n,o){const i=this.toEncoderType(e),a=this.glContext.getEncoder(i,t.channels||1,o);if(t.isPacked&&1===o)throw new Error(\"not implemented\");const s=t.width,u=t.height;let l,c;if(this.config.reuseTextures){l=`${s}x${u}_${a.format}_${a.internalFormat}_${a.textureType}`,c=this.inUseTextures.get(l),c||(c=[],this.inUseTextures.set(l,c));const t=this.idleTextures.get(l);if(t&&t.length>0){const r=t.pop();return c.push(r),1===o&&this.glContext.updateTexture(r,s,u,a,this.toTextureData(e,n)),r}}r.Logger.verbose(\"TextureManager\",`Creating new texture of size ${t.width}x${t.height}`);const p=this.glContext.allocateTexture(s,u,a,this.toTextureData(e,n));return this.config.reuseTextures&&(c.push(p),this.textureLookup.set(p,l)),p}readTexture(e,t,n){return n||(n=1),this.profiler.event(\"backend\",\"TextureManager.readTexture\",(()=>{const r=e.shape.reduce(((e,t)=>e*t))*n,o=this.glContext.readTexture(e.texture,e.width,e.height,r,this.toEncoderType(t),n);return this.toTensorData(t,o)}))}async readTextureAsync(e,t,n){const r=e.tensor.dataId;if(n||(n=1),this.pendingRead.has(r)){const e=this.pendingRead.get(r);return new Promise((t=>null==e?void 0:e.push(t)))}return this.profiler.event(\"backend\",\"TextureManager.readTextureAsync\",(async()=>{this.pendingRead.set(r,[]);const o=e.shape.reduce(((e,t)=>e*t))*n;await this.glContext.createAndWaitForFence();const i=this.glContext.readTexture(e.texture,e.width,e.height,o,this.toEncoderType(t),n),a=this.toTensorData(t,i),s=this.pendingRead.get(r);return this.pendingRead.delete(r),null==s||s.forEach((e=>e(a))),a}))}readUint8TextureAsFloat(e){return this.profiler.event(\"backend\",\"TextureManager.readUint8TextureAsFloat\",(()=>{const t=e.shape.reduce(((e,t)=>e*t)),n=this.glContext.readTexture(e.texture,e.width,e.height,4*t,\"byte\",4);return new Float32Array(n.buffer,n.byteOffset,t)}))}releaseTexture(e,t){let n;if(this.config.reuseTextures&&(n=this.textureLookup.get(e.texture),n)){t&&this.textureLookup.delete(n);const r=this.inUseTextures.get(n);if(r){const t=r.indexOf(e.texture);if(-1!==t){r.splice(t,1);let o=this.idleTextures.get(n);o||(o=[],this.idleTextures.set(n,o)),o.push(e.texture);}}}n&&!t||(r.Logger.verbose(\"TextureManager\",`Deleting texture of size ${e.width}x${e.height}`),this.glContext.deleteTexture(e.texture));}toTensorData(e,t){switch(e){case\"int16\":return t instanceof Int16Array?t:Int16Array.from(t);case\"int32\":return t instanceof Int32Array?t:Int32Array.from(t);case\"int8\":return t instanceof Int8Array?t:Int8Array.from(t);case\"uint16\":return t instanceof Uint16Array?t:Uint16Array.from(t);case\"uint32\":return t instanceof Uint32Array?t:Uint32Array.from(t);case\"uint8\":case\"bool\":return t instanceof Uint8Array?t:Uint8Array.from(t);case\"float32\":return t instanceof Float32Array?t:Float32Array.from(t);case\"float64\":return t instanceof Float64Array?t:Float64Array.from(t);default:throw new Error(`TensorData type ${e} is not supported`)}}toTextureData(e,t){if(t)return t instanceof Float32Array?t:new Float32Array(t)}toEncoderType(e){return \"float\"}clearActiveTextures(){this.glContext.clearActiveTextures();}};},5639:(e,t)=>{var n;Object.defineProperty(t,\"__esModule\",{value:!0}),t.TextureType=void 0,(n=t.TextureType||(t.TextureType={}))[n.unpacked=0]=\"unpacked\",n[n.unpackedReversed=1]=\"unpackedReversed\",n[n.packed=2]=\"packed\",n[n.downloadUint8AsFloat=3]=\"downloadUint8AsFloat\",n[n.packedLastDimension=4]=\"packedLastDimension\";},432:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.getGlChannels=t.getCoordsDataType=t.getSqueezedParams=t.squeezeInputShape=t.generateShaderFuncNameFromInputSamplerNameAtOutCoords=t.generateShaderFuncNameFromInputSamplerName=t.repeatedTry=t.getPackedShape=void 0;const r=n(7273);t.getPackedShape=function(e){const t=e.length;return e.slice(0,t-1).concat(e[t-1]/4)},t.repeatedTry=async function(e,t=(e=>0),n){return new Promise(((r,o)=>{let i=0;const a=()=>{if(e())return void r();i++;const s=t(i);null!=n&&i>=n?o():setTimeout(a,s);};a();}))},t.generateShaderFuncNameFromInputSamplerName=function(e){return (0, r.assert)(void 0!==e&&0!==e.length,(()=>\"empty string found for sampler name\")),\"get\"+e.charAt(0).toUpperCase()+e.slice(1)},t.generateShaderFuncNameFromInputSamplerNameAtOutCoords=function(e){return (0, r.assert)(void 0!==e&&0!==e.length,(()=>\"empty string found for sampler name\")),\"get\"+e.charAt(0).toUpperCase()+e.slice(1)+\"AtOutCoords\"},t.squeezeInputShape=function(e,t){let n=JSON.parse(JSON.stringify(e));return n=t,n},t.getSqueezedParams=function(e,t){return t.map((t=>e[t])).join(\", \")},t.getCoordsDataType=function(e){if(e<=1)return \"int\";if(2===e)return \"ivec2\";if(3===e)return \"ivec3\";if(4===e)return \"ivec4\";if(5===e)return \"ivec5\";if(6===e)return \"ivec6\";throw Error(`GPU for rank ${e} is not yet supported`)},t.getGlChannels=function(e=6){return [\"x\",\"y\",\"z\",\"w\",\"u\",\"v\"].slice(0,e)};},3389:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createNewWebGLContext=t.createWebGLContext=void 0;const r=n(1315),o=n(3524),i={};function a(e){const t=function(){if(\"undefined\"==typeof document){if(\"undefined\"==typeof OffscreenCanvas)throw new TypeError(\"failed to create canvas: OffscreenCanvas is not supported\");return new OffscreenCanvas(1,1)}const e=document.createElement(\"canvas\");return e.width=1,e.height=1,e}();let n;const i={alpha:!1,depth:!1,antialias:!1,stencil:!1,preserveDrawingBuffer:!1,premultipliedAlpha:!1,failIfMajorPerformanceCaveat:!1};if((!e||\"webgl2\"===e)&&(n=t.getContext(\"webgl2\",i),n))try{return new o.WebGLContext(n,2)}catch(e){r.Logger.warning(\"GlContextFactory\",`failed to create WebGLContext using contextId 'webgl2'. Error: ${e}`);}if((!e||\"webgl\"===e)&&(n=t.getContext(\"webgl\",i)||t.getContext(\"experimental-webgl\",i),n))try{return new o.WebGLContext(n,1)}catch(e){r.Logger.warning(\"GlContextFactory\",`failed to create WebGLContext using contextId 'webgl' or 'experimental-webgl'. Error: ${e}`);}throw new Error(\"WebGL is not supported\")}t.createWebGLContext=function e(t){let n;t&&\"webgl2\"!==t||!(\"webgl2\"in i)?t&&\"webgl\"!==t||!(\"webgl\"in i)||(n=i.webgl):n=i.webgl2,n=n||a(t),t=t||1===n.version?\"webgl\":\"webgl2\";const r=n.gl;return i[t]=n,r.isContextLost()?(delete i[t],e(t)):(r.disable(r.DEPTH_TEST),r.disable(r.STENCIL_TEST),r.disable(r.BLEND),r.disable(r.DITHER),r.disable(r.POLYGON_OFFSET_FILL),r.disable(r.SAMPLE_COVERAGE),r.enable(r.SCISSOR_TEST),r.enable(r.CULL_FACE),r.cullFace(r.BACK),n)},t.createNewWebGLContext=a;},3524:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!(\"get\"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o);}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n];}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,\"__esModule\",{value:!0}),t.WebGLContext=t.linearSearchLastTrue=void 0;const a=n(8453),s=i(n(9622)),u=n(432);function l(e){let t=0;for(;tthis.isTimerResultAvailable(e))),this.getTimerResult(e)}async createAndWaitForFence(){const e=this.createFence(this.gl);return this.pollFence(e)}createFence(e){let t;const n=e,r=n.fenceSync(n.SYNC_GPU_COMMANDS_COMPLETE,0);return e.flush(),t=null===r?()=>!0:()=>{const e=n.clientWaitSync(r,0,0);return e===n.ALREADY_SIGNALED||e===n.CONDITION_SATISFIED},{query:r,isFencePassed:t}}async pollFence(e){return new Promise((t=>{this.addItemToPoll((()=>e.isFencePassed()),(()=>t()));}))}pollItems(){const e=l(this.itemsToPoll.map((e=>e.isDoneFn)));for(let t=0;t<=e;++t){const{resolveFn:e}=this.itemsToPoll[t];e();}this.itemsToPoll=this.itemsToPoll.slice(e+1);}async addItemToPoll(e,t){this.itemsToPoll.push({isDoneFn:e,resolveFn:t}),this.itemsToPoll.length>1||await(0, u.repeatedTry)((()=>(this.pollItems(),0===this.itemsToPoll.length)));}};},6496:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ExecutionPlan=void 0;const r=n(1315);class o{constructor(e,t){this.op=e,this.node=t;}}t.ExecutionPlan=class{constructor(e,t,n){this.graph=e,this.profiler=n,this.initialize(t);}initialize(e){this.profiler.event(\"session\",\"ExecutionPlan.initialize\",(()=>{const t=this.graph.getNodes();if(t.length!==e.length)throw new Error(\"The size of nodes and OPs do not match.\");this._ops=e.map(((e,n)=>new o(e,t[n]))),this.reset(),this._starter=[],this._ops.forEach(((e,t)=>{let n=!0;for(const t of e.node.inputs)if(!this._values[t]&&-1===this.graph.getInputIndices().indexOf(t)){n=!1;break}n&&this._starter.push(t);}));}));}reset(){this._values=this.graph.getValues().map((e=>e.tensor));}async execute(e,t){return this.profiler.event(\"session\",\"ExecutionPlan.execute\",(async()=>{this.reset();const n=e.createInferenceHandler(),o=this.graph.getInputIndices();if(t.length!==o.length)throw new Error(`number of input tensors don't match the number of inputs to the model: actual: ${t.length} expected: ${o.length}`);t.forEach(((e,t)=>{const n=o[t];this._values[n]=e;}));const i=this._starter.slice(0),a=this.graph.getValues(),s=this.graph.getNodes();let u=0;for(;uthis._values[e]));if(-1!==o.indexOf(void 0))throw new Error(`unresolved input detected: op: ${t.node}`);const l=o;r.Logger.verbose(\"ExecPlan\",`Runing op:${t.node.name} (${l.map(((e,n)=>`'${t.node.inputs[n]}': ${e.type}[${e.dims.join(\",\")}]`)).join(\", \")})`);const c=await this.profiler.event(\"node\",t.node.name,(async()=>t.op.impl(n,l,t.op.context)));if(c.length!==t.node.outputs.length)throw new Error(\"the size of output does not match model definition.\");c.forEach(((e,n)=>{const r=t.node.outputs[n];if(this._values[r])throw new Error(`output [${r}] already has value: op:${t.node.name}`);this._values[r]=e;}));const p=new Set;c.forEach(((e,n)=>{const r=t.node.outputs[n];for(const e of a[r].to){const t=s[e];let n=!0;for(const e of t.inputs)if(!this._values[e]){n=!1;break}n&&p.add(e);}})),i.push(...p);}const l=[];for(let e=0;e{Object.defineProperty(t,\"__esModule\",{value:!0}),t.Graph=void 0;const r=n(1446),o=n(6874),i=n(1287),a=n(9240),s=n(7273);var u=i.onnxruntime.experimental.fbs;t.Graph={from:(e,t)=>new p(e,t)};class l{constructor(e){this._from=void 0,this._to=[],this.tensor=void 0,this.type=void 0,e&&(this.type=s.ProtoUtil.tensorValueTypeFromProto(e.type.tensorType));}get from(){return this._from}get to(){return this._to}}class c{constructor(e,t){e instanceof r.onnx.NodeProto?(this.name=e.name,this.opType=e.opType,this.attributes=new o.Attribute(e.attribute)):e instanceof u.Node&&(this.name=null!=t?t:e.name(),this.opType=e.opType(),this.attributes=new o.Attribute(s.ProtoUtil.tensorAttributesFromORTFormat(e))),this.inputs=[],this.outputs=[],this.executeNode=!0;}}class p{constructor(e,t){if(!e)throw new TypeError(\"graph is empty\");this.buildGraph(e),this.transformGraph(t),this.checkIsAcyclic();}getInputIndices(){return this._allInputIndices}getInputNames(){return this._allInputNames}getOutputIndices(){return this._allOutputIndices}getOutputNames(){return this._allOutputNames}getValues(){return this._allData}getNodes(){return this._nodes}buildGraph(e){if(e instanceof r.onnx.GraphProto)this.buildGraphFromOnnxFormat(e);else {if(!(e instanceof u.Graph))throw new TypeError(\"Graph type is not supported.\");this.buildGraphFromOrtFormat(e);}}buildGraphFromOnnxFormat(e){const t=new Map;this._allData=[],this._allInputIndices=[],this._allInputNames=[],this._allOutputIndices=[],this._allOutputNames=[],this._nodes=[];const n=new Map;if(!e.input)throw new Error(\"missing information in graph: input\");const r=[];for(const n of e.input){if(t.has(n.name))throw new Error(`duplicated input name: ${n.name}`);const e=this._allData.push(new l(n))-1;t.set(n.name,e),r.push(n.name);}if(!e.initializer)throw new Error(\"missing information in graph: initializer\");for(const n of e.initializer){let e=t.get(n.name);if(void 0===e){const r=new l;r.type={shape:{dims:s.ProtoUtil.tensorDimsFromProto(n.dims)},tensorType:s.ProtoUtil.tensorDataTypeFromProto(n.dataType)},e=this._allData.push(r)-1,t.set(n.name,e);}this._allData[e]._from=-1,this._allData[e].tensor=a.Tensor.fromProto(n);}for(let e=0;e{this._allData[t]._to.forEach((t=>{e.add(t);}));}));const t=Array.from(e),n=new Array(this._nodes.length).fill(\"white\");for(;t.length>0;){const e=t.pop();\"gray\"===n[e]?n[e]=\"black\":(t.push(e),n[e]=\"gray\",this._nodes[e].outputs.forEach((r=>{const o=this._allData[r];if(void 0!==o.tensor)throw new Error(\"node outputs should not be initialized\");if(o._from!==e)throw new Error(\"from property of the Value object doesn't match index of Node being processed\");o._to.forEach((e=>{if(\"gray\"===n[e])throw new Error(\"model graph is cyclic\");\"white\"===n[e]&&t.push(e);}));})));}}transformGraph(e){this.removeAllIdentityNodes(),this.removeAllDropoutNodes(),this.fuseConvActivationNodes(),e&&e.transformGraph(this),this.finalizeGraph();}finalizeGraph(){let e=0;const t=new Array(this._nodes.length,0);let n=0;for(let e=0;e{this._allData[e]._from=-2;}));this._nodes.splice(n,this._nodes.length-n);for(let e=0;e=0))throw new Error(\"Trying to update a removed node\");n._to[e]=t[n._to[e]];}}e=0;for(let t=0;t0){let n=-1;void 0!==this._allData[t].from&&-1!==this._allData[t].from?(n=this._nodes[this._allData[t].from].outputs.indexOf(t+e),-1!==n&&(this._nodes[this._allData[t].from].outputs[n]=t)):(n=this._allInputIndices.indexOf(t+e),-1!==n&&(this._allInputIndices[n]=t)),this._allData[t].to.forEach((r=>{n=this._nodes[r].inputs.indexOf(t+e),-1!==n&&(this._nodes[r].inputs[n]=t);})),0===this._allData[t].to.length&&(n=this._allOutputIndices.indexOf(t+e),-1!==n&&(this._allOutputIndices[n]=t));}}else e++,this._allData.splice(t,1),t--;}deleteNode(e){const t=this._nodes[e];if(t.outputs.length>1)for(let e=1;e0)throw new Error(\"Node deletion with more than one output connected to other nodes is not supported. \");t.executeNode=!1;const n=t.inputs[0],r=t.outputs[0],o=this._allData[r].to;for(let n=0;n0)for(const e of o){const t=this._nodes[e].inputs.indexOf(r);if(-1===t)throw new Error(\"The Node object doesn't have the output Value in it's 'inputs' property \");this._nodes[e].inputs[t]=n,this._allData[n].to.push(e);}}removeAllDropoutNodes(){let e=0;for(const t of this._nodes){if(\"Dropout\"===t.opType){if(1!==t.inputs.length)throw new Error(\"Dropout nodes should only contain one input. \");if(1!==t.outputs.length&&2!==t.outputs.length)throw new Error(\"Dropout nodes should contain either 1 or 2 output(s)\");if(2===t.outputs.length&&0!==this._allData[t.outputs[1]]._to.length)throw new Error(\"Dropout nodes's second output should not be referenced by other nodes\");this.deleteNode(e);}e++;}}removeAllIdentityNodes(){let e=0;for(const t of this._nodes)\"Identity\"===t.opType&&this.deleteNode(e),e++;}isActivation(e){switch(e.opType){case\"Relu\":case\"Sigmoid\":case\"Clip\":return !0;default:return !1}}fuseConvActivationNodes(){for(const e of this._nodes)if(\"Conv\"===e.opType){const t=this._allData[e.outputs[0]]._to;if(1===t.length&&this.isActivation(this._nodes[t[0]])){const n=this._nodes[t[0]];if(\"Clip\"===n.opType)if(1===n.inputs.length)try{e.attributes.set(\"activation_params\",\"floats\",[n.attributes.getFloat(\"min\"),n.attributes.getFloat(\"max\")]);}catch(t){e.attributes.set(\"activation_params\",\"floats\",[s.MIN_CLIP,s.MAX_CLIP]);}else {if(!(n.inputs.length>=3&&void 0!==this._allData[n.inputs[1]].tensor&&void 0!==this._allData[n.inputs[2]].tensor))continue;e.attributes.set(\"activation_params\",\"floats\",[this._allData[n.inputs[1]].tensor.floatData[0],this._allData[n.inputs[2]].tensor.floatData[0]]);}e.attributes.set(\"activation\",\"string\",n.opType),this.deleteNode(t[0]);}}}}},1315:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.now=t.Profiler=t.Logger=void 0;const n={verbose:1e3,info:2e3,warning:4e3,error:5e3,fatal:6e3},r={none:new class{log(e,t,n){}},console:new class{log(e,t,n){console.log(`${this.color(e)} ${n?\"\u001b[35m\"+n+\"\u001b[0m \":\"\"}${t}`);}color(e){switch(e){case\"verbose\":return \"\u001b[34;40mv\u001b[0m\";case\"info\":return \"\u001b[32mi\u001b[0m\";case\"warning\":return \"\u001b[30;43mw\u001b[0m\";case\"error\":return \"\u001b[31;40me\u001b[0m\";case\"fatal\":return \"\u001b[101mf\u001b[0m\";default:throw new Error(`unsupported severity: ${e}`)}}}},o={provider:\"console\",minimalSeverity:\"warning\",logDateTime:!0,logSourceLocation:!1};let i={\"\":o};function a(e,t,n,r){if(void 0===t)return o=e,{verbose:a.verbose.bind(null,o),info:a.info.bind(null,o),warning:a.warning.bind(null,o),error:a.error.bind(null,o),fatal:a.fatal.bind(null,o)};if(void 0===n)s(e,t);else if(\"number\"==typeof n&&void 0===r)s(e,t);else if(\"string\"==typeof n&&void 0===r)s(e,n,0,t);else {if(\"string\"!=typeof n||\"number\"!=typeof r)throw new TypeError(\"input is valid\");s(e,n,0,t);}var o;}function s(e,t,o,a){const s=i[a||\"\"]||i[\"\"];n[e]{a.then((async t=>{o&&await o.end(),e(t);}),(async e=>{o&&await o.end(),t(e);}));}));if(!i&&o){const e=o.end();if(e&&\"function\"==typeof e.then)return new Promise(((t,n)=>{e.then((()=>{t(a);}),(e=>{n(e);}));}))}return a}begin(e,n,r){if(!this._started)throw new Error(\"profiler is not started yet\");if(void 0===r){const r=(0, t.now)();return this.flush(r),new u(e,n,r,(e=>this.endSync(e)))}{const t=r.beginTimer();return new u(e,n,0,(async e=>this.end(e)),t,r)}}async end(e){const t=await e.checkTimer();this._timingEvents.length=this._flushBatchSize||e-this._flushTime>=this._flushIntervalInMilliseconds){for(const e=this._flushPointer;this._flushPointerperformance.now():Date.now;},1745:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.Model=void 0;const r=n(5686),o=n(1446),i=n(4662),a=n(1287),s=n(7273);var u=a.onnxruntime.experimental.fbs;t.Model=class{constructor(){}load(e,t,n){if(!n)try{return void this.loadFromOnnxFormat(e,t)}catch(e){if(void 0!==n)throw e}this.loadFromOrtFormat(e,t);}loadFromOnnxFormat(e,t){const n=o.onnx.ModelProto.decode(e);if(s.LongUtil.longToNumber(n.irVersion)<3)throw new Error(\"only support ONNX model with IR_VERSION>=3\");this._opsets=n.opsetImport.map((e=>({domain:e.domain,version:s.LongUtil.longToNumber(e.version)}))),this._graph=i.Graph.from(n.graph,t);}loadFromOrtFormat(e,t){const n=new r.flatbuffers.ByteBuffer(e),o=u.InferenceSession.getRootAsInferenceSession(n).model();if(s.LongUtil.longToNumber(o.irVersion())<3)throw new Error(\"only support ONNX model with IR_VERSION>=3\");this._opsets=[];for(let e=0;e{Object.defineProperty(t,\"__esModule\",{value:!0}),t.FLOAT_TYPES=t.INT_TYPES=t.NUMBER_TYPES=void 0,t.NUMBER_TYPES=[\"float32\",\"float64\",\"int32\",\"int16\",\"int8\",\"uint16\",\"uint32\",\"uint8\"],t.INT_TYPES=[\"int32\",\"int16\",\"int8\",\"uint16\",\"uint32\",\"uint8\"],t.FLOAT_TYPES=[\"float32\",\"float64\"];},5881:(e,t)=>{function n(e,t){if(t.endsWith(\"+\")){const n=Number.parseInt(t.substring(0,t.length-1),10);return !isNaN(n)&&n<=e}if(2===t.split(\"-\").length){const n=t.split(\"-\"),r=Number.parseInt(n[0],10),o=Number.parseInt(n[1],10);return !isNaN(r)&&!isNaN(o)&&r<=e&&e<=o}return Number.parseInt(t,10)===e}Object.defineProperty(t,\"__esModule\",{value:!0}),t.resolveOperator=void 0,t.resolveOperator=function(e,t,r){for(const o of r){const r=o[0],i=o[1],a=o[2],s=o[3],u=o[4];if(e.opType===r)for(const e of t)if((e.domain===i||\"ai.onnx\"===e.domain&&\"\"===i)&&n(e.version,a))return {opImpl:s,opInit:u}}throw new TypeError(`cannot resolve operator '${e.opType}' with opsets: ${t.map((e=>`${e.domain||\"ai.onnx\"} v${e.version}`)).join(\", \")}`)};},1287:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.onnxruntime=void 0;const r=n(5686);var o,i;o=t.onnxruntime||(t.onnxruntime={}),function(e){!function(e){e[e.UNDEFINED=0]=\"UNDEFINED\",e[e.FLOAT=1]=\"FLOAT\",e[e.INT=2]=\"INT\",e[e.STRING=3]=\"STRING\",e[e.TENSOR=4]=\"TENSOR\",e[e.GRAPH=5]=\"GRAPH\",e[e.FLOATS=6]=\"FLOATS\",e[e.INTS=7]=\"INTS\",e[e.STRINGS=8]=\"STRINGS\",e[e.TENSORS=9]=\"TENSORS\",e[e.GRAPHS=10]=\"GRAPHS\",e[e.SPARSE_TENSOR=11]=\"SPARSE_TENSOR\",e[e.SPARSE_TENSORS=12]=\"SPARSE_TENSORS\";}(e.AttributeType||(e.AttributeType={}));}((i=o.experimental||(o.experimental={})).fbs||(i.fbs={})),function(e){!function(e){!function(e){!function(e){e[e.UNKNOWN=0]=\"UNKNOWN\",e[e.VALUE=1]=\"VALUE\",e[e.PARAM=2]=\"PARAM\";}(e.DimensionValueType||(e.DimensionValueType={}));}(e.fbs||(e.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(e){!function(e){!function(e){e[e.UNDEFINED=0]=\"UNDEFINED\",e[e.FLOAT=1]=\"FLOAT\",e[e.UINT8=2]=\"UINT8\",e[e.INT8=3]=\"INT8\",e[e.UINT16=4]=\"UINT16\",e[e.INT16=5]=\"INT16\",e[e.INT32=6]=\"INT32\",e[e.INT64=7]=\"INT64\",e[e.STRING=8]=\"STRING\",e[e.BOOL=9]=\"BOOL\",e[e.FLOAT16=10]=\"FLOAT16\",e[e.DOUBLE=11]=\"DOUBLE\",e[e.UINT32=12]=\"UINT32\",e[e.UINT64=13]=\"UINT64\",e[e.COMPLEX64=14]=\"COMPLEX64\",e[e.COMPLEX128=15]=\"COMPLEX128\",e[e.BFLOAT16=16]=\"BFLOAT16\";}(e.TensorDataType||(e.TensorDataType={}));}(e.fbs||(e.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(e){!function(e){!function(e){e[e.Primitive=0]=\"Primitive\",e[e.Fused=1]=\"Fused\";}(e.NodeType||(e.NodeType={}));}(e.fbs||(e.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(e){!function(e){!function(e){e[e.NONE=0]=\"NONE\",e[e.tensor_type=1]=\"tensor_type\",e[e.sequence_type=2]=\"sequence_type\",e[e.map_type=3]=\"map_type\";}(e.TypeInfoValue||(e.TypeInfoValue={}));}(e.fbs||(e.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsShape(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsShape(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}dim(t,n){let r=this.bb.__offset(this.bb_pos,4);return r?(n||new e.experimental.fbs.Dimension).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}dimLength(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__vector_len(this.bb_pos+e):0}static startShape(e){e.startObject(1);}static addDim(e,t){e.addFieldOffset(0,t,0);}static createDimVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startDimVector(e,t){e.startVector(4,t,4);}static endShape(e){return e.endObject()}static createShape(e,t){return n.startShape(e),n.addDim(e,t),n.endShape(e)}}t.Shape=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDimension(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDimension(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}value(t){let n=this.bb.__offset(this.bb_pos,4);return n?(t||new e.experimental.fbs.DimensionValue).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}denotation(e){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startDimension(e){e.startObject(2);}static addValue(e,t){e.addFieldOffset(0,t,0);}static addDenotation(e,t){e.addFieldOffset(1,t,0);}static endDimension(e){return e.endObject()}static createDimension(e,t,r){return n.startDimension(e),n.addValue(e,t),n.addDenotation(e,r),n.endDimension(e)}}t.Dimension=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDimensionValue(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDimensionValue(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}dimType(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt8(this.bb_pos+t):e.experimental.fbs.DimensionValueType.UNKNOWN}dimValue(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}dimParam(e){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__string(this.bb_pos+t,e):null}static startDimensionValue(e){e.startObject(3);}static addDimType(t,n){t.addFieldInt8(0,n,e.experimental.fbs.DimensionValueType.UNKNOWN);}static addDimValue(e,t){e.addFieldInt64(1,t,e.createLong(0,0));}static addDimParam(e,t){e.addFieldOffset(2,t,0);}static endDimensionValue(e){return e.endObject()}static createDimensionValue(e,t,r,o){return n.startDimensionValue(e),n.addDimType(e,t),n.addDimValue(e,r),n.addDimParam(e,o),n.endDimensionValue(e)}}t.DimensionValue=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTensorTypeAndShape(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTensorTypeAndShape(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}elemType(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):e.experimental.fbs.TensorDataType.UNDEFINED}shape(t){let n=this.bb.__offset(this.bb_pos,6);return n?(t||new e.experimental.fbs.Shape).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}static startTensorTypeAndShape(e){e.startObject(2);}static addElemType(t,n){t.addFieldInt32(0,n,e.experimental.fbs.TensorDataType.UNDEFINED);}static addShape(e,t){e.addFieldOffset(1,t,0);}static endTensorTypeAndShape(e){return e.endObject()}static createTensorTypeAndShape(e,t,r){return n.startTensorTypeAndShape(e),n.addElemType(e,t),n.addShape(e,r),n.endTensorTypeAndShape(e)}}t.TensorTypeAndShape=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMapType(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMapType(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}keyType(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):e.experimental.fbs.TensorDataType.UNDEFINED}valueType(t){let n=this.bb.__offset(this.bb_pos,6);return n?(t||new e.experimental.fbs.TypeInfo).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}static startMapType(e){e.startObject(2);}static addKeyType(t,n){t.addFieldInt32(0,n,e.experimental.fbs.TensorDataType.UNDEFINED);}static addValueType(e,t){e.addFieldOffset(1,t,0);}static endMapType(e){return e.endObject()}static createMapType(e,t,r){return n.startMapType(e),n.addKeyType(e,t),n.addValueType(e,r),n.endMapType(e)}}t.MapType=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSequenceType(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSequenceType(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}elemType(t){let n=this.bb.__offset(this.bb_pos,4);return n?(t||new e.experimental.fbs.TypeInfo).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}static startSequenceType(e){e.startObject(1);}static addElemType(e,t){e.addFieldOffset(0,t,0);}static endSequenceType(e){return e.endObject()}static createSequenceType(e,t){return n.startSequenceType(e),n.addElemType(e,t),n.endSequenceType(e)}}t.SequenceType=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(e){(e.fbs||(e.fbs={})).EdgeEnd=class{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}nodeIndex(){return this.bb.readUint32(this.bb_pos)}srcArgIndex(){return this.bb.readInt32(this.bb_pos+4)}dstArgIndex(){return this.bb.readInt32(this.bb_pos+8)}static createEdgeEnd(e,t,n,r){return e.prep(4,12),e.writeInt32(r),e.writeInt32(n),e.writeInt32(t),e.offset()}};}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsNodeEdge(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNodeEdge(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}nodeIndex(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readUint32(this.bb_pos+e):0}inputEdges(t,n){let r=this.bb.__offset(this.bb_pos,6);return r?(n||new e.experimental.fbs.EdgeEnd).__init(this.bb.__vector(this.bb_pos+r)+12*t,this.bb):null}inputEdgesLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}outputEdges(t,n){let r=this.bb.__offset(this.bb_pos,8);return r?(n||new e.experimental.fbs.EdgeEnd).__init(this.bb.__vector(this.bb_pos+r)+12*t,this.bb):null}outputEdgesLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}static startNodeEdge(e){e.startObject(3);}static addNodeIndex(e,t){e.addFieldInt32(0,t,0);}static addInputEdges(e,t){e.addFieldOffset(1,t,0);}static startInputEdgesVector(e,t){e.startVector(12,t,4);}static addOutputEdges(e,t){e.addFieldOffset(2,t,0);}static startOutputEdgesVector(e,t){e.startVector(12,t,4);}static endNodeEdge(e){return e.endObject()}static createNodeEdge(e,t,r,o){return n.startNodeEdge(e),n.addNodeIndex(e,t),n.addInputEdges(e,r),n.addOutputEdges(e,o),n.endNodeEdge(e)}}t.NodeEdge=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsNode(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNode(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}name(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}docString(e){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}domain(e){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__string(this.bb_pos+t,e):null}sinceVersion(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt32(this.bb_pos+e):0}index(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.readUint32(this.bb_pos+e):0}opType(e){let t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__string(this.bb_pos+t,e):null}type(){let t=this.bb.__offset(this.bb_pos,16);return t?this.bb.readInt32(this.bb_pos+t):e.experimental.fbs.NodeType.Primitive}executionProviderType(e){let t=this.bb.__offset(this.bb_pos,18);return t?this.bb.__string(this.bb_pos+t,e):null}inputs(e,t){let n=this.bb.__offset(this.bb_pos,20);return n?this.bb.__string(this.bb.__vector(this.bb_pos+n)+4*e,t):null}inputsLength(){let e=this.bb.__offset(this.bb_pos,20);return e?this.bb.__vector_len(this.bb_pos+e):0}outputs(e,t){let n=this.bb.__offset(this.bb_pos,22);return n?this.bb.__string(this.bb.__vector(this.bb_pos+n)+4*e,t):null}outputsLength(){let e=this.bb.__offset(this.bb_pos,22);return e?this.bb.__vector_len(this.bb_pos+e):0}attributes(t,n){let r=this.bb.__offset(this.bb_pos,24);return r?(n||new e.experimental.fbs.Attribute).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}attributesLength(){let e=this.bb.__offset(this.bb_pos,24);return e?this.bb.__vector_len(this.bb_pos+e):0}inputArgCounts(e){let t=this.bb.__offset(this.bb_pos,26);return t?this.bb.readInt32(this.bb.__vector(this.bb_pos+t)+4*e):0}inputArgCountsLength(){let e=this.bb.__offset(this.bb_pos,26);return e?this.bb.__vector_len(this.bb_pos+e):0}inputArgCountsArray(){let e=this.bb.__offset(this.bb_pos,26);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}implicitInputs(e,t){let n=this.bb.__offset(this.bb_pos,28);return n?this.bb.__string(this.bb.__vector(this.bb_pos+n)+4*e,t):null}implicitInputsLength(){let e=this.bb.__offset(this.bb_pos,28);return e?this.bb.__vector_len(this.bb_pos+e):0}static startNode(e){e.startObject(13);}static addName(e,t){e.addFieldOffset(0,t,0);}static addDocString(e,t){e.addFieldOffset(1,t,0);}static addDomain(e,t){e.addFieldOffset(2,t,0);}static addSinceVersion(e,t){e.addFieldInt32(3,t,0);}static addIndex(e,t){e.addFieldInt32(4,t,0);}static addOpType(e,t){e.addFieldOffset(5,t,0);}static addType(t,n){t.addFieldInt32(6,n,e.experimental.fbs.NodeType.Primitive);}static addExecutionProviderType(e,t){e.addFieldOffset(7,t,0);}static addInputs(e,t){e.addFieldOffset(8,t,0);}static createInputsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startInputsVector(e,t){e.startVector(4,t,4);}static addOutputs(e,t){e.addFieldOffset(9,t,0);}static createOutputsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startOutputsVector(e,t){e.startVector(4,t,4);}static addAttributes(e,t){e.addFieldOffset(10,t,0);}static createAttributesVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startAttributesVector(e,t){e.startVector(4,t,4);}static addInputArgCounts(e,t){e.addFieldOffset(11,t,0);}static createInputArgCountsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addInt32(t[n]);return e.endVector()}static startInputArgCountsVector(e,t){e.startVector(4,t,4);}static addImplicitInputs(e,t){e.addFieldOffset(12,t,0);}static createImplicitInputsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startImplicitInputsVector(e,t){e.startVector(4,t,4);}static endNode(e){return e.endObject()}static createNode(e,t,r,o,i,a,s,u,l,c,p,d,f,h){return n.startNode(e),n.addName(e,t),n.addDocString(e,r),n.addDomain(e,o),n.addSinceVersion(e,i),n.addIndex(e,a),n.addOpType(e,s),n.addType(e,u),n.addExecutionProviderType(e,l),n.addInputs(e,c),n.addOutputs(e,p),n.addAttributes(e,d),n.addInputArgCounts(e,f),n.addImplicitInputs(e,h),n.endNode(e)}}t.Node=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsValueInfo(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsValueInfo(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}name(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}docString(e){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}type(t){let n=this.bb.__offset(this.bb_pos,8);return n?(t||new e.experimental.fbs.TypeInfo).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}static startValueInfo(e){e.startObject(3);}static addName(e,t){e.addFieldOffset(0,t,0);}static addDocString(e,t){e.addFieldOffset(1,t,0);}static addType(e,t){e.addFieldOffset(2,t,0);}static endValueInfo(e){return e.endObject()}static createValueInfo(e,t,r,o){return n.startValueInfo(e),n.addName(e,t),n.addDocString(e,r),n.addType(e,o),n.endValueInfo(e)}}t.ValueInfo=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTypeInfo(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTypeInfo(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}denotation(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}valueType(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint8(this.bb_pos+t):e.experimental.fbs.TypeInfoValue.NONE}value(e){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}static startTypeInfo(e){e.startObject(3);}static addDenotation(e,t){e.addFieldOffset(0,t,0);}static addValueType(t,n){t.addFieldInt8(1,n,e.experimental.fbs.TypeInfoValue.NONE);}static addValue(e,t){e.addFieldOffset(2,t,0);}static endTypeInfo(e){return e.endObject()}static createTypeInfo(e,t,r,o){return n.startTypeInfo(e),n.addDenotation(e,t),n.addValueType(e,r),n.addValue(e,o),n.endTypeInfo(e)}}t.TypeInfo=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(e){!function(e){class t{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsOperatorSetId(e,n){return (n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsOperatorSetId(e,n){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}domain(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}version(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}static startOperatorSetId(e){e.startObject(2);}static addDomain(e,t){e.addFieldOffset(0,t,0);}static addVersion(e,t){e.addFieldInt64(1,t,e.createLong(0,0));}static endOperatorSetId(e){return e.endObject()}static createOperatorSetId(e,n,r){return t.startOperatorSetId(e),t.addDomain(e,n),t.addVersion(e,r),t.endOperatorSetId(e)}}e.OperatorSetId=t;}(e.fbs||(e.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTensor(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTensor(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}name(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}docString(e){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}dims(e){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+8*e):this.bb.createLong(0,0)}dimsLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}dataType(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt32(this.bb_pos+t):e.experimental.fbs.TensorDataType.UNDEFINED}rawData(e){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.readUint8(this.bb.__vector(this.bb_pos+t)+e):0}rawDataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}rawDataArray(){let e=this.bb.__offset(this.bb_pos,12);return e?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}stringData(e,t){let n=this.bb.__offset(this.bb_pos,14);return n?this.bb.__string(this.bb.__vector(this.bb_pos+n)+4*e,t):null}stringDataLength(){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}static startTensor(e){e.startObject(6);}static addName(e,t){e.addFieldOffset(0,t,0);}static addDocString(e,t){e.addFieldOffset(1,t,0);}static addDims(e,t){e.addFieldOffset(2,t,0);}static createDimsVector(e,t){e.startVector(8,t.length,8);for(let n=t.length-1;n>=0;n--)e.addInt64(t[n]);return e.endVector()}static startDimsVector(e,t){e.startVector(8,t,8);}static addDataType(t,n){t.addFieldInt32(3,n,e.experimental.fbs.TensorDataType.UNDEFINED);}static addRawData(e,t){e.addFieldOffset(4,t,0);}static createRawDataVector(e,t){e.startVector(1,t.length,1);for(let n=t.length-1;n>=0;n--)e.addInt8(t[n]);return e.endVector()}static startRawDataVector(e,t){e.startVector(1,t,1);}static addStringData(e,t){e.addFieldOffset(5,t,0);}static createStringDataVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startStringDataVector(e,t){e.startVector(4,t,4);}static endTensor(e){return e.endObject()}static createTensor(e,t,r,o,i,a,s){return n.startTensor(e),n.addName(e,t),n.addDocString(e,r),n.addDims(e,o),n.addDataType(e,i),n.addRawData(e,a),n.addStringData(e,s),n.endTensor(e)}}t.Tensor=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSparseTensor(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSparseTensor(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}values(t){let n=this.bb.__offset(this.bb_pos,4);return n?(t||new e.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}indices(t){let n=this.bb.__offset(this.bb_pos,6);return n?(t||new e.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}dims(e){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+8*e):this.bb.createLong(0,0)}dimsLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSparseTensor(e){e.startObject(3);}static addValues(e,t){e.addFieldOffset(0,t,0);}static addIndices(e,t){e.addFieldOffset(1,t,0);}static addDims(e,t){e.addFieldOffset(2,t,0);}static createDimsVector(e,t){e.startVector(8,t.length,8);for(let n=t.length-1;n>=0;n--)e.addInt64(t[n]);return e.endVector()}static startDimsVector(e,t){e.startVector(8,t,8);}static endSparseTensor(e){return e.endObject()}static createSparseTensor(e,t,r,o){return n.startSparseTensor(e),n.addValues(e,t),n.addIndices(e,r),n.addDims(e,o),n.endSparseTensor(e)}}t.SparseTensor=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsAttribute(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsAttribute(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}name(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}docString(e){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}type(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt32(this.bb_pos+t):e.experimental.fbs.AttributeType.UNDEFINED}f(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readFloat32(this.bb_pos+e):0}i(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}s(e){let t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__string(this.bb_pos+t,e):null}t(t){let n=this.bb.__offset(this.bb_pos,16);return n?(t||new e.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}g(t){let n=this.bb.__offset(this.bb_pos,18);return n?(t||new e.experimental.fbs.Graph).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}floats(e){let t=this.bb.__offset(this.bb_pos,20);return t?this.bb.readFloat32(this.bb.__vector(this.bb_pos+t)+4*e):0}floatsLength(){let e=this.bb.__offset(this.bb_pos,20);return e?this.bb.__vector_len(this.bb_pos+e):0}floatsArray(){let e=this.bb.__offset(this.bb_pos,20);return e?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}ints(e){let t=this.bb.__offset(this.bb_pos,22);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+8*e):this.bb.createLong(0,0)}intsLength(){let e=this.bb.__offset(this.bb_pos,22);return e?this.bb.__vector_len(this.bb_pos+e):0}strings(e,t){let n=this.bb.__offset(this.bb_pos,24);return n?this.bb.__string(this.bb.__vector(this.bb_pos+n)+4*e,t):null}stringsLength(){let e=this.bb.__offset(this.bb_pos,24);return e?this.bb.__vector_len(this.bb_pos+e):0}tensors(t,n){let r=this.bb.__offset(this.bb_pos,26);return r?(n||new e.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}tensorsLength(){let e=this.bb.__offset(this.bb_pos,26);return e?this.bb.__vector_len(this.bb_pos+e):0}graphs(t,n){let r=this.bb.__offset(this.bb_pos,28);return r?(n||new e.experimental.fbs.Graph).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}graphsLength(){let e=this.bb.__offset(this.bb_pos,28);return e?this.bb.__vector_len(this.bb_pos+e):0}static startAttribute(e){e.startObject(13);}static addName(e,t){e.addFieldOffset(0,t,0);}static addDocString(e,t){e.addFieldOffset(1,t,0);}static addType(t,n){t.addFieldInt32(2,n,e.experimental.fbs.AttributeType.UNDEFINED);}static addF(e,t){e.addFieldFloat32(3,t,0);}static addI(e,t){e.addFieldInt64(4,t,e.createLong(0,0));}static addS(e,t){e.addFieldOffset(5,t,0);}static addT(e,t){e.addFieldOffset(6,t,0);}static addG(e,t){e.addFieldOffset(7,t,0);}static addFloats(e,t){e.addFieldOffset(8,t,0);}static createFloatsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addFloat32(t[n]);return e.endVector()}static startFloatsVector(e,t){e.startVector(4,t,4);}static addInts(e,t){e.addFieldOffset(9,t,0);}static createIntsVector(e,t){e.startVector(8,t.length,8);for(let n=t.length-1;n>=0;n--)e.addInt64(t[n]);return e.endVector()}static startIntsVector(e,t){e.startVector(8,t,8);}static addStrings(e,t){e.addFieldOffset(10,t,0);}static createStringsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startStringsVector(e,t){e.startVector(4,t,4);}static addTensors(e,t){e.addFieldOffset(11,t,0);}static createTensorsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startTensorsVector(e,t){e.startVector(4,t,4);}static addGraphs(e,t){e.addFieldOffset(12,t,0);}static createGraphsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startGraphsVector(e,t){e.startVector(4,t,4);}static endAttribute(e){return e.endObject()}static createAttribute(e,t,r,o,i,a,s,u,l,c,p,d,f,h){return n.startAttribute(e),n.addName(e,t),n.addDocString(e,r),n.addType(e,o),n.addF(e,i),n.addI(e,a),n.addS(e,s),n.addT(e,u),n.addG(e,l),n.addFloats(e,c),n.addInts(e,p),n.addStrings(e,d),n.addTensors(e,f),n.addGraphs(e,h),n.endAttribute(e)}}t.Attribute=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsGraph(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsGraph(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}initializers(t,n){let r=this.bb.__offset(this.bb_pos,4);return r?(n||new e.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}initializersLength(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__vector_len(this.bb_pos+e):0}nodeArgs(t,n){let r=this.bb.__offset(this.bb_pos,6);return r?(n||new e.experimental.fbs.ValueInfo).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}nodeArgsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}nodes(t,n){let r=this.bb.__offset(this.bb_pos,8);return r?(n||new e.experimental.fbs.Node).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}nodesLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}maxNodeIndex(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readUint32(this.bb_pos+e):0}nodeEdges(t,n){let r=this.bb.__offset(this.bb_pos,12);return r?(n||new e.experimental.fbs.NodeEdge).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}nodeEdgesLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}inputs(e,t){let n=this.bb.__offset(this.bb_pos,14);return n?this.bb.__string(this.bb.__vector(this.bb_pos+n)+4*e,t):null}inputsLength(){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}outputs(e,t){let n=this.bb.__offset(this.bb_pos,16);return n?this.bb.__string(this.bb.__vector(this.bb_pos+n)+4*e,t):null}outputsLength(){let e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}sparseInitializers(t,n){let r=this.bb.__offset(this.bb_pos,18);return r?(n||new e.experimental.fbs.SparseTensor).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}sparseInitializersLength(){let e=this.bb.__offset(this.bb_pos,18);return e?this.bb.__vector_len(this.bb_pos+e):0}static startGraph(e){e.startObject(8);}static addInitializers(e,t){e.addFieldOffset(0,t,0);}static createInitializersVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startInitializersVector(e,t){e.startVector(4,t,4);}static addNodeArgs(e,t){e.addFieldOffset(1,t,0);}static createNodeArgsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startNodeArgsVector(e,t){e.startVector(4,t,4);}static addNodes(e,t){e.addFieldOffset(2,t,0);}static createNodesVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startNodesVector(e,t){e.startVector(4,t,4);}static addMaxNodeIndex(e,t){e.addFieldInt32(3,t,0);}static addNodeEdges(e,t){e.addFieldOffset(4,t,0);}static createNodeEdgesVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startNodeEdgesVector(e,t){e.startVector(4,t,4);}static addInputs(e,t){e.addFieldOffset(5,t,0);}static createInputsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startInputsVector(e,t){e.startVector(4,t,4);}static addOutputs(e,t){e.addFieldOffset(6,t,0);}static createOutputsVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startOutputsVector(e,t){e.startVector(4,t,4);}static addSparseInitializers(e,t){e.addFieldOffset(7,t,0);}static createSparseInitializersVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startSparseInitializersVector(e,t){e.startVector(4,t,4);}static endGraph(e){return e.endObject()}static createGraph(e,t,r,o,i,a,s,u,l){return n.startGraph(e),n.addInitializers(e,t),n.addNodeArgs(e,r),n.addNodes(e,o),n.addMaxNodeIndex(e,i),n.addNodeEdges(e,a),n.addInputs(e,s),n.addOutputs(e,u),n.addSparseInitializers(e,l),n.endGraph(e)}}t.Graph=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsModel(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsModel(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}irVersion(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}opsetImport(t,n){let r=this.bb.__offset(this.bb_pos,6);return r?(n||new e.experimental.fbs.OperatorSetId).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}opsetImportLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}producerName(e){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__string(this.bb_pos+t,e):null}producerVersion(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__string(this.bb_pos+t,e):null}domain(e){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__string(this.bb_pos+t,e):null}modelVersion(){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}docString(e){let t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__string(this.bb_pos+t,e):null}graph(t){let n=this.bb.__offset(this.bb_pos,18);return n?(t||new e.experimental.fbs.Graph).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}graphDocString(e){let t=this.bb.__offset(this.bb_pos,20);return t?this.bb.__string(this.bb_pos+t,e):null}static startModel(e){e.startObject(9);}static addIrVersion(e,t){e.addFieldInt64(0,t,e.createLong(0,0));}static addOpsetImport(e,t){e.addFieldOffset(1,t,0);}static createOpsetImportVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startOpsetImportVector(e,t){e.startVector(4,t,4);}static addProducerName(e,t){e.addFieldOffset(2,t,0);}static addProducerVersion(e,t){e.addFieldOffset(3,t,0);}static addDomain(e,t){e.addFieldOffset(4,t,0);}static addModelVersion(e,t){e.addFieldInt64(5,t,e.createLong(0,0));}static addDocString(e,t){e.addFieldOffset(6,t,0);}static addGraph(e,t){e.addFieldOffset(7,t,0);}static addGraphDocString(e,t){e.addFieldOffset(8,t,0);}static endModel(e){return e.endObject()}static createModel(e,t,r,o,i,a,s,u,l,c){return n.startModel(e),n.addIrVersion(e,t),n.addOpsetImport(e,r),n.addProducerName(e,o),n.addProducerVersion(e,i),n.addDomain(e,a),n.addModelVersion(e,s),n.addDocString(e,u),n.addGraph(e,l),n.addGraphDocString(e,c),n.endModel(e)}}t.Model=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(e){!function(e){class t{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsKernelCreateInfos(e,n){return (n||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKernelCreateInfos(e,n){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(n||new t).__init(e.readInt32(e.position())+e.position(),e)}nodeIndices(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readUint32(this.bb.__vector(this.bb_pos+t)+4*e):0}nodeIndicesLength(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__vector_len(this.bb_pos+e):0}nodeIndicesArray(){let e=this.bb.__offset(this.bb_pos,4);return e?new Uint32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}kernelDefHashes(e){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint64(this.bb.__vector(this.bb_pos+t)+8*e):this.bb.createLong(0,0)}kernelDefHashesLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}static startKernelCreateInfos(e){e.startObject(2);}static addNodeIndices(e,t){e.addFieldOffset(0,t,0);}static createNodeIndicesVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addInt32(t[n]);return e.endVector()}static startNodeIndicesVector(e,t){e.startVector(4,t,4);}static addKernelDefHashes(e,t){e.addFieldOffset(1,t,0);}static createKernelDefHashesVector(e,t){e.startVector(8,t.length,8);for(let n=t.length-1;n>=0;n--)e.addInt64(t[n]);return e.endVector()}static startKernelDefHashesVector(e,t){e.startVector(8,t,8);}static endKernelCreateInfos(e){return e.endObject()}static createKernelCreateInfos(e,n,r){return t.startKernelCreateInfos(e),t.addNodeIndices(e,n),t.addKernelDefHashes(e,r),t.endKernelCreateInfos(e)}}e.KernelCreateInfos=t;}(e.fbs||(e.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSubGraphSessionState(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSubGraphSessionState(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}graphId(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}sessionState(t){let n=this.bb.__offset(this.bb_pos,6);return n?(t||new e.experimental.fbs.SessionState).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}static startSubGraphSessionState(e){e.startObject(2);}static addGraphId(e,t){e.addFieldOffset(0,t,0);}static addSessionState(e,t){e.addFieldOffset(1,t,0);}static endSubGraphSessionState(e){let t=e.endObject();return e.requiredField(t,4),t}static createSubGraphSessionState(e,t,r){return n.startSubGraphSessionState(e),n.addGraphId(e,t),n.addSessionState(e,r),n.endSubGraphSessionState(e)}}t.SubGraphSessionState=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSessionState(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSessionState(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}kernels(t){let n=this.bb.__offset(this.bb_pos,4);return n?(t||new e.experimental.fbs.KernelCreateInfos).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}subGraphSessionStates(t,n){let r=this.bb.__offset(this.bb_pos,6);return r?(n||new e.experimental.fbs.SubGraphSessionState).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}subGraphSessionStatesLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSessionState(e){e.startObject(2);}static addKernels(e,t){e.addFieldOffset(0,t,0);}static addSubGraphSessionStates(e,t){e.addFieldOffset(1,t,0);}static createSubGraphSessionStatesVector(e,t){e.startVector(4,t.length,4);for(let n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}static startSubGraphSessionStatesVector(e,t){e.startVector(4,t,4);}static endSessionState(e){return e.endObject()}static createSessionState(e,t,r){return n.startSessionState(e),n.addKernels(e,t),n.addSubGraphSessionStates(e,r),n.endSessionState(e)}}t.SessionState=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={})),function(e){!function(t){!function(t){class n{constructor(){this.bb=null,this.bb_pos=0;}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInferenceSession(e,t){return (t||new n).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInferenceSession(e,t){return e.setPosition(e.position()+r.flatbuffers.SIZE_PREFIX_LENGTH),(t||new n).__init(e.readInt32(e.position())+e.position(),e)}static bufferHasIdentifier(e){return e.__has_identifier(\"ORTM\")}ortVersion(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}model(t){let n=this.bb.__offset(this.bb_pos,6);return n?(t||new e.experimental.fbs.Model).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}sessionState(t){let n=this.bb.__offset(this.bb_pos,8);return n?(t||new e.experimental.fbs.SessionState).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}static startInferenceSession(e){e.startObject(3);}static addOrtVersion(e,t){e.addFieldOffset(0,t,0);}static addModel(e,t){e.addFieldOffset(1,t,0);}static addSessionState(e,t){e.addFieldOffset(2,t,0);}static endInferenceSession(e){return e.endObject()}static finishInferenceSessionBuffer(e,t){e.finish(t,\"ORTM\");}static finishSizePrefixedInferenceSessionBuffer(e,t){e.finish(t,\"ORTM\",!0);}static createInferenceSession(e,t,r,o){return n.startInferenceSession(e),n.addOrtVersion(e,t),n.addModel(e,r),n.addSessionState(e,o),n.endInferenceSession(e)}}t.InferenceSession=n;}(t.fbs||(t.fbs={}));}(e.experimental||(e.experimental={}));}(t.onnxruntime||(t.onnxruntime={}));},1723:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.OnnxjsSessionHandler=void 0;const r=n(8453),o=n(9240);t.OnnxjsSessionHandler=class{constructor(e){this.session=e,this.inputNames=this.session.inputNames,this.outputNames=this.session.outputNames;}async dispose(){}async run(e,t,n){const i=new Map;for(const t in e)if(Object.hasOwnProperty.call(e,t)){const n=e[t];i.set(t,new o.Tensor(n.dims,n.type,void 0,void 0,n.data));}const a=await this.session.run(i),s={};return a.forEach(((e,t)=>{s[t]=new r.Tensor(e.type,e.data,e.dims);})),s}startProfiling(){this.session.startProfiling();}endProfiling(){this.session.endProfiling();}};},6027:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.Session=void 0;const r=n(7067),o=n(1296),i=n(1975),a=n(6496),s=n(1315),u=n(1745);t.Session=class{constructor(e={}){this._initialized=!1,this.backendHint=e.backendHint,this.profiler=s.Profiler.create(e.profiler),this.context={profiler:this.profiler,graphInputTypes:[],graphInputDims:[]};}get inputNames(){return this._model.graph.getInputNames()}get outputNames(){return this._model.graph.getOutputNames()}startProfiling(){this.profiler.start();}endProfiling(){this.profiler.stop();}async loadModel(e,t,n){await this.profiler.event(\"session\",\"Session.loadModel\",(async()=>{const a=await(0, i.resolveBackend)(this.backendHint);if(this.sessionHandler=a.createSessionHandler(this.context),this._model=new u.Model,\"string\"==typeof e){const t=e.endsWith(\".ort\");if(\"undefined\"==typeof fetch){const n=await(0, o.promisify)(r.readFile)(e);this.initialize(n,t);}else {const n=await fetch(e),r=await n.arrayBuffer();this.initialize(new Uint8Array(r),t);}}else if(ArrayBuffer.isView(e))this.initialize(e);else {const r=new Uint8Array(e,t||0,n||e.byteLength);this.initialize(r);}}));}initialize(e,t){if(this._initialized)throw new Error(\"already initialized\");this.profiler.event(\"session\",\"Session.initialize\",(()=>{const n=this.sessionHandler.transformGraph?this.sessionHandler:void 0;this._model.load(e,n,t),this.sessionHandler.onGraphInitialized&&this.sessionHandler.onGraphInitialized(this._model.graph),this.initializeOps(this._model.graph),this._executionPlan=new a.ExecutionPlan(this._model.graph,this._ops,this.profiler);})),this._initialized=!0;}async run(e){if(!this._initialized)throw new Error(\"session not initialized yet\");return this.profiler.event(\"session\",\"Session.run\",(async()=>{const t=this.normalizeAndValidateInputs(e),n=await this._executionPlan.execute(this.sessionHandler,t);return this.createOutput(n)}))}normalizeAndValidateInputs(e){const t=this._model.graph.getInputNames();if(Array.isArray(e)){if(e.length!==t.length)throw new Error(`incorrect input array length: expected ${t.length} but got ${e.length}`)}else {if(e.size!==t.length)throw new Error(`incorrect input map size: expected ${t.length} but got ${e.size}`);const n=new Array(e.size);let r=0;for(let o=0;o\"string\"==typeof e))))throw new TypeError(\"cache should be a string array\");l&&(this.cache=new Array(s));}else {if(void 0!==i){const e=d(t);if(!(i instanceof e))throw new TypeError(`cache should be type ${e.name}`)}if(l){const e=new ArrayBuffer(s*function(e){switch(e){case\"bool\":case\"int8\":case\"uint8\":return 1;case\"int16\":case\"uint16\":return 2;case\"int32\":case\"uint32\":case\"float32\":return 4;case\"float64\":return 8;default:throw new Error(`cannot calculate sizeof() on type ${e}`)}}(t));this.cache=function(e,t){return new(d(t))(e)}(e,t);}}}static fromProto(e){if(!e)throw new Error(\"cannot construct Value from an empty tensor\");const t=u.ProtoUtil.tensorDataTypeFromProto(e.dataType),n=u.ProtoUtil.tensorDimsFromProto(e.dims),r=new c(n,t);if(\"string\"===t)e.stringData.forEach(((e,t)=>{r.data[t]=(0, u.decodeUtf8String)(e);}));else if(e.rawData&&\"number\"==typeof e.rawData.byteLength&&e.rawData.byteLength>0){const t=r.data,n=new DataView(e.rawData.buffer,e.rawData.byteOffset,e.rawData.byteLength),o=p(e.dataType),i=e.rawData.byteLength/o;if(e.rawData.byteLength%o!=0)throw new Error(\"invalid buffer length\");if(t.length!==i)throw new Error(\"buffer length mismatch\");for(let r=0;r0){const t=r.data,n=new DataView(e.rawDataArray().buffer,e.rawDataArray().byteOffset,e.rawDataLength()),o=p(e.dataType()),i=e.rawDataLength()/o;if(e.rawDataLength()%o!=0)throw new Error(\"invalid buffer length\");if(t.length!==i)throw new Error(\"buffer length mismatch\");for(let r=0;r1&&u>1)return;a[i-s]=Math.max(n,u);}return a}static index(e,t){const n=new Array(t.length);return l.fillIndex(e,t,n),n}static fillIndex(e,t,n){const r=e.length-t.length;for(let o=0;o=0;e--)r[e]=c%i[e],c=Math.floor(c/i[e]);f||(l.fillIndex(r,e.dims,o),p=e.get(o)),h||(l.fillIndex(r,t.dims,s),d=t.get(s)),u.set(r,n(p,d));}}return u}}static isValidBroadcast(e,t){const n=e.length,r=t.length;if(n>r)return !1;for(let o=1;o<=n;o++)if(1!==e[n-o]&&e[n-o]!==t[r-o])return !1;return !0}static getBroadcastDims(e,t){const n=e.length,r=[];for(let o=0;o1&&1===a&&r.unshift(i);}return r}}t.BroadcastUtil=l,t.arrayCopyHelper=function(e,t,n,r,o){if(r<0||r>=t.length)throw new Error(\"sourceIndex out of bounds\");if(n<0||n>=e.length)throw new Error(\"targetIndex out of bounds\");if(r+o>t.length)throw new Error(\"source indices to be copied are outside bounds\");if(n+o>e.length)throw new Error(\"target array is too small to hold result\");for(let i=0;ii.default.isLong(e)?e.toNumber():e))}static tensorValueTypeFromProto(e){return {tensorType:c.tensorDataTypeFromProto(e.elemType),shape:{dims:c.tensorDimsFromProto(e.shape.dim.map((e=>e.dimValue)))}}}static tensorDimsFromORTFormat(e){const t=[];for(let n=0;ne.length)throw new Error(`invalid dimension of ${t} for sizeFromDimension as Tensor has ${e.length} dimensions.`);return d.getSizeFromDimensionRange(e,t,e.length)}static sizeToDimension(e,t){if(t<0||t>e.length)throw new Error(`invalid dimension of ${t} for sizeToDimension as Tensor has ${e.length} dimensions.`);return d.getSizeFromDimensionRange(e,0,t)}static getSizeFromDimensionRange(e,t,n){let r=1;for(let o=t;o=0;--r)n[r]=n[r+1]*e[r+1];return n}static transpose(e){return e.slice().reverse()}static indicesToOffset(e,t,n){void 0===n&&(n=e.length);let r=0;for(let o=0;o=t)throw new Error(\"unsupported axis for this operation.\");return e<0?e+t:e}static normalizeAxes(e,t){return e.map((e=>this.normalizeAxis(e,t)))}static incrementIndex(e,t,n){if(0===t.length||0===e.length)throw new Error(\"Index incrementing unsupported for scalar Tensor\");if(void 0===n)n=t.length;else if(n<=0||n>t.length)throw new Error(\"Incorrect axis to increment on\");for(let r=n-1;r>=0&&(e[r]++,!(e[r]=e.length)throw new Error(\"the dimension with value zero exceeds the dimension size of the input tensor\");r[a]=e[a];}else r[a]=t[a];i*=r[a];}}const a=d.size(e);if(-1!==o){if(a%i!=0)throw new Error(`the input tensor cannot be reshaped to the requested shape. Input shape: [${e}] Output shape: [${t}]`);r[o]=a/i;}else if(i!==a)throw new Error(\"reshapedDims and originalDims don't have matching sizes\");return r}static sortBasedOnPerm(e,t){return t?t.map((t=>e[t])):e.slice().reverse()}static padShape(e,t){const n=e.length;return e.map(((e,r)=>e+t[r]+t[r+n]))}static areEqual(e,t){return e.length===t.length&&e.every(((e,n)=>e===t[n]))}static validateDimsAndCalcSize(e){if(e.length>6)throw new TypeError(\"Only rank 0 to 6 is supported for tensor shape.\");let t=1;for(const n of e){if(!Number.isInteger(n))throw new TypeError(`Invalid shape: ${n} is not an integer`);if(n<0||n>2147483647)throw new TypeError(`Invalid shape: length ${n} is not allowed`);t*=n;}return t}static flattenShape(e,t){t<0&&(t+=e.length);const n=e.reduce(((e,t)=>e*t),1),r=e.slice(t).reduce(((e,t)=>e*t),1);return [n/r,r]}static squeezeShape(e,t){const n=new Array;t=d.normalizeAxes(t,e.length);for(let r=0;r=0;if(o&&1!==e[r])throw new Error(\"squeeze an axis of size different than 1\");(0===t.length&&e[r]>1||t.length>0&&!o)&&n.push(e[r]);}return n}static unsqueezeShape(e,t){const n=new Array(e.length+t.length);n.fill(0);for(let e=0;e=n.length)throw new Error(\"'axes' has an out of range axis\");if(0!==n[r])throw new Error(\"'axes' has a duplicate axis\");n[r]=1;}let r=0;for(let t=0;t=t.length)throw new Error(\"sourceIndex out of bounds\");if(n<0||n>=e.length)throw new Error(\"targetIndex out of bounds\");if(r+o>t.length)throw new Error(\"source indices to be copied are outside bounds\");if(n+o>e.length)throw new Error(\"target array is too small to hold result\");for(let i=0;i=t.length)throw new Error(\"sourceIndex out of bounds\");if(n<0||n>=e.length)throw new Error(\"targetIndex out of bounds\");if(r+o>t.length)throw new Error(\"source indices to be copied are outside bounds\");if(n+o>e.length)throw new Error(\"target array is too small to hold result\");for(let a=0;a=t.length)throw new Error(\"sourceIndex out of bounds\");if(n<0||n>=e.length)throw new Error(\"targetIndex out of bounds\");if(r+o>t.length)throw new Error(\"source indices to be copied are outside bounds\");if(n+o>e.length)throw new Error(\"target array is too small to hold result\");for(let a=0;a=t.length)throw new Error(\"sourceIndex out of bounds\");if(n<0||n>=e.length)throw new Error(\"targetIndex out of bounds\");if(r+o>t.length)throw new Error(\"source indices to be copied are outside bounds\");if(n+o>e.length)throw new Error(\"target array is too small to hold result\");for(let i=0;it.push(n)));const a=h.calcReduceShape(i,t,!0),u=d.size(a),c=new s.Tensor(a,e.type),p=d.computeStrides(a),f=d.computeStrides(i),g=new Array(i.length);for(let n=0;n=t.length)return i(e[o]);const u=t[r],l=u>=n.length?1:d.size(n.slice(u+1));for(let c=0;c0!==e))}}t.ReduceUtil=h;class g{static adjustPoolAttributes(e,t,n,r,o,i){if(!e&&n.length!==t.length-2)throw new Error(\"length of specified kernel shapes should be 2 less than length of input dimensions\");if(e)for(let e=0;e=n.length?n.push(t[e+2]):n[e]=t[e+2];for(let e=0;e=n[e]||i[e+n.length]>=n[e])throw new Error(\"pads should be smaller than kernel\")}}static adjustPadsBasedOnAutoPad(e,t,n,r,o,i){if(i){if(o.length!==2*(e.length-2))throw new Error(\"length of pads should be twice the length of data dimensions\");if(t.length!==e.length-2)throw new Error(\"length of strides should be the length of data dimensions\");if(r.length!==e.length-2)throw new Error(\"length of kernel shapes should be the length of data dimensions\");for(let a=0;a{Object.defineProperty(t,\"__esModule\",{value:!0}),t.WebGpuBackend=void 0;const r=n(8453),o=n(4955),i=n(7771),a=n(8510),s=n(8305);t.WebGpuBackend=class{constructor(){this.currentKernelId=null,this.commandEncoder=null,this.computePassEncoder=null,this.pendingDispatchNumber=0,this.profilingEnabled=!1;}get currentKernelCustomData(){if(null===this.currentKernelId)throw new Error(\"currentKernelCustomData(): currentKernelId is null. (should not happen)\");let e=this.kernelCustomData.get(this.currentKernelId);return e||(e={},this.kernelCustomData.set(this.currentKernelId,e)),e}async initialize(){if(!navigator.gpu)throw new Error(\"WebGpuBackend: WebGPU is not available.\");const e=await navigator.gpu.requestAdapter();if(!e)throw new Error(\"WebGpuBackend: Failed to get GPU adapter.\");const t={requiredLimits:{maxComputeWorkgroupStorageSize:e.limits.maxComputeWorkgroupStorageSize,maxComputeWorkgroupsPerDimension:e.limits.maxComputeWorkgroupsPerDimension,maxStorageBufferBindingSize:e.limits.maxStorageBufferBindingSize}};e.features.has(\"timestamp-query-inside-passes\")&&\"default\"===r.env.webgpu.profilingMode&&(this.profilingEnabled=!0,t.requiredFeatures=[\"timestamp-query-inside-passes\"]),this.device=await e.requestDevice(t),this.gpuDataManager=(0, i.createGpuDataManager)(this),this.programManager=new s.ProgramManager(this),this.kernels=new Map,this.kernelPersistentData=new Map,this.kernelCustomData=new Map,this.device.onuncapturederror=e=>{e.error instanceof GPUValidationError&&console.error(`An uncaught WebGPU validation error was raised: ${e.error.message}`);},this.profilingEnabled&&(this.profilingQuerySet=this.device.createQuerySet({type:\"timestamp\",count:2}));}dispose(){}getCommandEncoder(){return this.commandEncoder||(this.commandEncoder=this.device.createCommandEncoder()),this.commandEncoder}getComputePassEncoder(){return this.computePassEncoder||(this.computePassEncoder=this.getCommandEncoder().beginComputePass()),this.computePassEncoder}endComputePass(){this.computePassEncoder&&(this.computePassEncoder.end(),this.computePassEncoder=null);}flush(){this.endComputePass(),this.device.queue.submit([this.getCommandEncoder().finish()]),this.gpuDataManager.refreshPendingBuffers(),this.commandEncoder=null,this.pendingDispatchNumber=0;}run(e,t,n,r,i){if(t.length!==e.inputTypes.length)throw new Error(`Input size must be equal to ${e.inputTypes.length}.`);const a=[];for(let e=0;e{const r=t.map((e=>`${e.join(\",\")}`)).join(\"_\"),o=n.join(\"_\");let i=e.name;return e.cacheHint&&(i+=\"[\"+e.cacheHint+\"]\"),i+=\":\"+r+\";\"+o,i})(e,t.map((e=>e.dims)),a.map((e=>e.type)));let u=this.programManager.getArtifact(s);const l=u?u.programInfo:\"function\"==typeof e.get?e.get():e,c=0===n.length?l.outputs.map(((e,t)=>t)):n;if(c.length!==l.outputs.length)throw new Error(`Output size ${c.length} must be equal to ${l.outputs.length}.`);const p=[],d=[];for(let e=0;e=l.outputs.length)throw new Error(`Invalid output index: ${c[e]}`);const t=-1===c[e],n=-2===c[e],o=t||n?i(l.outputs[e].dataType,l.outputs[e].dims):r(c[e],l.outputs[e].dataType,l.outputs[e].dims),a=this.gpuDataManager.get(o.data);if(!a)throw new Error(`no GPU data for output: ${o.data}`);if(t&&this.temporaryData.push(a),n){let e=this.kernelPersistentData.get(this.currentKernelId);e||(e=[],this.kernelPersistentData.set(this.currentKernelId,e)),e.push(a);}p.push(o),d.push(a);}const f=this.programManager.normalizeDispatchGroupSize(l.dispatchGroup(t));return u||(u=this.programManager.build(l,f),this.programManager.setArtifact(s,u)),(0, o.LOG_DEBUG)(\"info\",(()=>`[ProgramManager] run \"${l.name}\" (key=${s}) with ${f[0]}x${f[1]}x${f[2]}`)),this.programManager.run(u,a,d,f),p}upload(e,t){this.gpuDataManager.upload(e,t);}memcpy(e,t){this.gpuDataManager.memcpy(e,t);}async download(e,t){const n=await this.gpuDataManager.download(e);t().set(new Uint8Array(n));}alloc(e){return this.gpuDataManager.create(e).id}free(e){return this.gpuDataManager.release(e)}createKernel(e,t,n){const r=a.WEBGPU_OP_RESOLVE_RULES.get(e);if(!r)throw new Error(`kernel not implemented: ${e}`);this.kernels.set(t,[e,r[0],[r[1],n]]);}releaseKernel(e){const t=this.kernelPersistentData.get(e);if(t){for(const e of t)this.gpuDataManager.release(e.id);this.kernelPersistentData.delete(e);}this.kernelCustomData.delete(e),this.kernels.delete(e);}computeKernel(e,t){const n=this.kernels.get(e);if(!n)throw new Error(`kernel not created: ${e}`);const[r,i,a]=n;if(null!==this.currentKernelId)throw new Error(`kernel \"${r}\" is not allowed to be called recursively`);this.currentKernelId=e,a[0]&&(a[1]=a[0](a[1]),a[0]=void 0),(0, o.LOG_DEBUG)(\"info\",(()=>`[WebGPU] Start to run kernel \"${r}\"...`)),this.temporaryData=[];try{return i(t,a[1]),0}catch(e){return (0, o.LOG_DEBUG)(\"warning\",`[WebGPU] Kernel \"${r}\" failed. Error: ${e}`),1}finally{for(const e of this.temporaryData)this.gpuDataManager.release(e.id);this.temporaryData=[],this.currentKernelId=null;}}};},7675:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.init=void 0;const r=n(7917),o=n(3838),i=n(4955),a=n(6952);class s{constructor(e,t,n,r){this.module=e,this.dataType=t,this.data=n,this.dims=r;}getFloat32Array(){return new Float32Array(this.module.HEAP8.buffer,this.data,a.ShapeUtil.size(this.dims))}reshape(e){if(a.ShapeUtil.size(e)!==a.ShapeUtil.size(this.dims))throw new Error(\"Invalid new shape\");return new s(this.module,this.dataType,this.data,e)}}class u{get customData(){return this.backend.currentKernelCustomData}constructor(e,t,n){this.module=e,this.backend=t;const r=e.HEAPU32;let o=n>>2;this.opKernelContext=r[o++];const i=r[o++],a=[];for(let t=0;t\"number\"==typeof e?this.inputs[e]:e)))&&void 0!==o?o:this.inputs,l=null!==(i=null==t?void 0:t.outputs)&&void 0!==i?i:[];return this.backend.run(e,u,l,((e,t,n)=>new s(this.module,t,this.output(e,n),n)),((e,t)=>{const n=(0, r.getTensorElementSize)(e);if(!n)throw new Error(`Unsupported data type: ${e}`);const o=n*a.ShapeUtil.size(t);return new s(this.module,e,this.backend.gpuDataManager.create(o).id,t)}))}output(e,t){const n=this.module.stackSave();try{const n=this.module.stackAlloc(4*(1+t.length));let r=n>>2;this.module.HEAPU32[r++]=t.length;for(let e=0;e{const t=e.jsepInit;if(t&&navigator.gpu){const n=new o.WebGpuBackend;await n.initialize(),t({backend:n},(e=>n.alloc(e)),(e=>n.free(e)),((t,r,o,a=!1)=>{if(a)(0, i.LOG_DEBUG)(\"verbose\",(()=>`[WebGPU] jsepCopyGpuToGpu: src=${t}, dst=${r}, size=${o}`)),n.memcpy(t,r);else {(0, i.LOG_DEBUG)(\"verbose\",(()=>`[WebGPU] jsepCopyCpuToGpu: dataOffset=${t}, gpuDataId=${r}, size=${o}`));const a=e.HEAPU8.subarray(t,t+o);n.upload(r,a);}}),(async(t,r,o)=>{(0, i.LOG_DEBUG)(\"verbose\",(()=>`[WebGPU] jsepCopyGpuToCpu: gpuDataId=${t}, dataOffset=${r}, size=${o}`)),await n.download(t,(()=>e.HEAPU8.subarray(r,r+o)));}),((e,t,r)=>n.createKernel(e,t,r)),(e=>n.releaseKernel(e)),((t,r)=>{(0, i.LOG_DEBUG)(\"verbose\",(()=>`[WebGPU] jsepRun: kernel=${t}, contextDataOffset=${r}`));const o=new u(e,n,r);return n.computeKernel(t,o)}));}};},4955:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.LOG_DEBUG=t.LOG=void 0;const r=n(8453),o=n(7917),i=[\"V\",\"I\",\"W\",\"E\",\"F\"];t.LOG=(e,t)=>{const n=(0, o.logLevelStringToEnum)(e);var a,s;n>=(0, o.logLevelStringToEnum)(r.env.logLevel)&&(a=n,s=\"function\"==typeof t?t():t,console.log(`[${i[a]},${(new Date).toISOString()}]${s}`));},t.LOG_DEBUG=(...e)=>{r.env.debug&&(0, t.LOG)(...e);};},6952:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.MAX_CLIP=t.MIN_CLIP=t.GemmUtil=t.PoolConvUtil=t.ShapeUtil=t.BroadcastUtil=t.MatMulUtil=void 0;class n{static calcMatMulShape(e,t){return e[1]!==t[0]?void 0:[e[0],t[1]]}}t.MatMulUtil=n;class r{static calcShape(e,t,r=!1){const o=e.length,i=t.length;if(0===o)return t;if(0===i)return e;const a=Math.max(e.length,t.length),s=new Array(a);if(r){if(o<2||i<2)return;const r=n.calcMatMulShape([e[o-2],e[o-1]],[t[i-2],t[i-1]]);if(void 0===r)return;[s[a-2],s[a-1]]=r;}for(let n=r?3:1;n<=a;n++){const r=o-n<0?1:e[o-n],u=i-n<0?1:t[i-n];if(r!==u&&r>1&&u>1)return;s[a-n]=Math.max(r,u);}return s}static isValidBroadcast(e,t){const n=e.length,r=t.length;if(n>r)return !1;for(let o=1;o<=n;o++)if(1!==e[n-o]&&e[n-o]!==t[r-o])return !1;return !0}}t.BroadcastUtil=r;class o{static size(e){return o.getSizeFromDimensionRange(e,0,e.length)}static sizeFromDimension(e,t){if(t<0||t>e.length)throw new Error(`invalid dimension of ${t} for sizeFromDimension as Tensor has ${e.length} dimensions.`);return o.getSizeFromDimensionRange(e,t,e.length)}static sizeToDimension(e,t){if(t<0||t>e.length)throw new Error(`invalid dimension of ${t} for sizeToDimension as Tensor has ${e.length} dimensions.`);return o.getSizeFromDimensionRange(e,0,t)}static getSizeFromDimensionRange(e,t,n){let r=1;for(let o=t;o=0;--r)n[r]=n[r+1]*e[r+1];return n}static normalizeAxis(e,t){if(e<-t&&e>=t)throw new Error(\"unsupported axis for this operation.\");return e<0?e+t:e}static normalizeAxes(e,t){return e.map((n=>this.normalizeAxis(n,null!=t?t:e.length)))}static sortBasedOnPerm(e,t){return t?t.map((t=>e[t])):e.slice().reverse()}static padShape(e,t){const n=e.length;return e.map(((e,r)=>e+t[r]+t[r+n]))}static areEqual(e,t){return e.length===t.length&&e.every(((e,n)=>e===t[n]))}}t.ShapeUtil=o;class i{static adjustPoolAttributes(e,t,n,r,o,i){if(!e&&n.length!==t.length-2)throw new Error(\"length of specified kernel shapes should be 2 less than length of input dimensions\");if(e)for(let e=0;e=n.length?n.push(t[e+2]):n[e]=t[e+2];for(let e=0;e=n[e]||i[e+n.length]>=n[e])throw new Error(\"pads should be smaller than kernel\")}}static adjustPadsBasedOnAutoPad(e,t,n,r,o,a,s){if(s){if(o.length!==2*(e.length-2))throw new Error(\"length of pads should be twice the length of data dimensions\");if(t.length!==e.length-2)throw new Error(\"length of strides should be the length of data dimensions\");if(r.length!==e.length-2)throw new Error(\"length of kernel shapes should be the length of data dimensions\");for(let u=0;u{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createAttributeWithCacheKey=void 0;class n{constructor(e){Object.assign(this,e);}get cacheKey(){return this._cacheKey||(this._cacheKey=Object.getOwnPropertyNames(this).sort().map((e=>`${this[e]}`)).join(\";\")),this._cacheKey}}t.createAttributeWithCacheKey=e=>new n(e);},7771:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createGpuDataManager=void 0;const r=n(4955),o=n(1163),i=e=>16*Math.ceil(e/16);let a=0;class s{constructor(e){this.backend=e,this.storageCache=new Map,this.downloadCache=new Map,this.buffersForUploadingPending=[],this.buffersPending=[];}upload(e,t){const n=t.buffer,o=t.byteOffset,a=t.byteLength,s=i(a),u=this.storageCache.get(e);if(!u)throw new Error(\"gpu data for uploading does not exist\");if(u.originalSize!==a)throw new Error(`inconsistent data size. gpu data size=${u.originalSize}, data size=${a}`);const l=this.backend.device.createBuffer({mappedAtCreation:!0,size:s,usage:GPUBufferUsage.MAP_WRITE|GPUBufferUsage.COPY_SRC}),c=l.getMappedRange();new Uint8Array(c).set(new Uint8Array(n,o,a)),l.unmap();const p=this.backend.getCommandEncoder();this.backend.endComputePass(),p.copyBufferToBuffer(l,0,u.gpuData.buffer,0,s),(0, r.LOG_DEBUG)(\"verbose\",(()=>`[WebGPU] GpuDataManager.upload(id=${e})`)),this.buffersForUploadingPending.push(l);}memcpy(e,t){const n=this.storageCache.get(e);if(!n)throw new Error(\"source gpu data for memcpy does not exist\");const r=this.storageCache.get(t);if(!r)throw new Error(\"destination gpu data for memcpy does not exist\");if(n.originalSize!==r.originalSize)throw new Error(\"inconsistent source and destination gpu data size\");const o=i(n.originalSize);this.backend.getCommandEncoder().copyBufferToBuffer(n.gpuData.buffer,0,r.gpuData.buffer,0,o);}create(e,t=GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_SRC|GPUBufferUsage.COPY_DST){const n=i(e),s=this.backend.device.createBuffer({size:n,usage:t}),u={id:a++,type:o.GpuDataType.default,buffer:s};return this.storageCache.set(u.id,{gpuData:u,originalSize:e}),(0, r.LOG_DEBUG)(\"verbose\",(()=>`[WebGPU] GpuDataManager.create(size=${e}) => id=${u.id}`)),u}get(e){var t;return null===(t=this.storageCache.get(e))||void 0===t?void 0:t.gpuData}release(e){const t=this.storageCache.get(e);if(!t)throw new Error(\"releasing data does not exist\");return (0, r.LOG_DEBUG)(\"verbose\",(()=>`[WebGPU] GpuDataManager.release(id=${e}), gpuDataId=${t.gpuData.id}`)),this.storageCache.delete(e),this.buffersPending.push(t.gpuData.buffer),this.downloadCache.get(e)&&this.downloadCache.delete(e),t.originalSize}async download(e){const t=this.downloadCache.get(e);if(t)return t.data;const n=this.storageCache.get(e);if(!n)throw new Error(\"data does not exist\");const r=this.backend.getCommandEncoder();this.backend.endComputePass();const o=this.backend.device.createBuffer({size:n.originalSize,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ});r.copyBufferToBuffer(n.gpuData.buffer,0,o,0,n.originalSize),this.backend.flush();const i=new Promise((e=>{o.mapAsync(GPUMapMode.READ).then((()=>{const t=o.getMappedRange().slice(0);o.destroy(),e(t);}));}));return this.downloadCache.set(e,{data:i}),i}refreshPendingBuffers(){for(const e of this.buffersForUploadingPending)e.destroy();for(const e of this.buffersPending)e.destroy();}}t.createGpuDataManager=(...e)=>new s(...e);},8510:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!(\"get\"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o);}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n];}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,\"__esModule\",{value:!0}),t.WEBGPU_OP_RESOLVE_RULES=void 0;const a=i(n(504)),s=n(9770),u=n(4271),l=n(1522),c=i(n(5262)),p=n(2625),d=i(n(9302));t.WEBGPU_OP_RESOLVE_RULES=new Map([[\"Abs\",[d.abs]],[\"Acos\",[d.acos]],[\"Acosh\",[d.acosh]],[\"Add\",[a.add]],[\"Asin\",[d.asin]],[\"Asinh\",[d.asinh]],[\"Atan\",[d.atan]],[\"Atanh\",[d.atanh]],[\"AveragePool\",[c.averagePool,c.parseAveragePoolAttributes]],[\"Ceil\",[d.ceil]],[\"ClipV10\",[d.clipV10]],[\"Clip\",[d.clip]],[\"Conv\",[s.conv,s.parseConvAttributes]],[\"Cos\",[d.cos]],[\"Cosh\",[d.cosh]],[\"Div\",[a.div]],[\"Elu\",[d.elu,d.parseAlphaAttributes]],[\"Erf\",[d.erf]],[\"Exp\",[d.exp]],[\"Floor\",[d.floor]],[\"Gemm\",[u.gemm,u.parseGemmAttributes]],[\"GlobalAveragePool\",[c.globalAveragePool,c.parseGlobalAveragePoolAttributes]],[\"GlobalMaxPool\",[c.globalMaxPool,c.parseGlobalMaxPoolAttributes]],[\"LeakyRelu\",[d.leakyRelu,d.parseAlphaAttributes]],[\"MatMul\",[l.matMul]],[\"MaxPool\",[c.maxPool,c.parseMaxPoolAttributes]],[\"Mul\",[a.mul]],[\"Neg\",[d.neg]],[\"Pow\",[a.pow]],[\"Reciprocal\",[d.reciprocal]],[\"Relu\",[d.relu]],[\"Sigmoid\",[d.sigmoid]],[\"Sin\",[d.sin]],[\"Sinh\",[d.sinh]],[\"Sqrt\",[d.sqrt]],[\"Sub\",[a.sub]],[\"Tan\",[d.tan]],[\"Tanh\",[d.tanh]],[\"ThresholdedRelu\",[d.thresholdedRelu,d.parseAlphaAttributes]],[\"Transpose\",[p.transpose,p.parseTransposeAttributes]]]);},1427:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.biasActivationSnippet=t.activationFnSnippet=t.typeSnippet=void 0,t.typeSnippet=e=>{switch(e){case 1:return \"f32\";case 2:return \"vec2\";case 3:return \"vec3\";case 4:return \"vec4\";default:throw new Error(`${e}-component is not supported.`)}},t.activationFnSnippet=(e,t=!1,n=!1,r=3)=>\"\",t.biasActivationSnippet=(e,t)=>`\\n ${e?\"value = value + getBiasByOutputCoords(coords);\":\"\"}\\n ${t?\"value = activation(value, coords);\":\"\"}\\n `;},9456:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createConv2DMatMulProgramInfo=void 0;const r=n(4955),o=n(6952),i=n(1163),a=n(1427),s=n(4085),u=n(158);t.createConv2DMatMulProgramInfo=(e,t,n,l,c,p,d,f,h)=>{const g=\"NHWC\"===n.format,m=g?e[0].dims[3]:e[0].dims[1],b=l[0],y=g?l[2]:l[3],w=g?l[1]:l[2],_=g?l[3]:l[1],v=((m%4==0||m%3==0)&&g||y%4==0&&!g)&&_%4==0,x=g?_:y*w,T=g?y*w:_,S=v?[8,8,1]:[x<=4?4:16,x>4&&T<=4?4:16,1],O=v?[4,4,1]:[x<=4?1:2,x>4&&T<=4?1:2,1],A=[Math.ceil(x/S[0]/O[0]),Math.ceil(T/S[1]/O[1]),Math.ceil(b/S[2]/O[1])];(0, r.LOG_DEBUG)(\"verbose\",(()=>`[conv2d_mm_webgpu] dispatch = ${A}`));const E=v?g&&m%4!=0?3:4:O[0],I=S[1]*O[1],$=S[0]*O[0],P=Math.max(S[0]*E,S[1]),D=c%I==0,k=p%$==0,C=d%P==0,R=v?[E,4,4]:[1,1,1],M=[`@group(0) @binding(0) var x: array<${v&&4===E?\"vec4\":\"f32\"}>;`,`@group(0) @binding(1) var w: array<${v?\"vec4\":\"f32\"}>;`];let N=`\\n fn setOutputAtIndex(flatIndex : i32, value : ${v?\"vec4\":\"f32\"}) {\\n result[flatIndex] = ${v?\"vec4\":\"f32\"}(value);\\n }\\n fn setOutputAtCoords(d0 : i32, d1 : i32, d2 : i32, d3 : i32, value : ${v?\"vec4\":\"f32\"}) {\\n let flatIndex = getOutputIndexFromCoords(vec4(d0, d1, d2, d3));\\n setOutputAtIndex(flatIndex ${v?\"/ 4\":\"\"}, value);\\n }`;return f&&(M.push(`@group(0) @binding(2) var bias: array<${v?\"vec4\":\"f32\"}>;`),N+=`\\n fn getBiasByOutputCoords(coords : vec4) -> ${v?\"vec4\":\"f32\"} {\\n return bias[coords.${g?\"w\":\"y\"}${v?\"/ 4\":\"\"}];\\n }`),Object.assign(Object.assign({},t),{outputs:[{dims:l,dataType:e[0].dataType,gpuDataType:i.GpuDataType.default}],dispatchGroup:()=>({x:A[0],y:A[1],z:A[2]}),getShaderSource:()=>`\\n ${s.utilFunctions}\\n //struct Uniforms { xShape : vec4, wShape : vec4, outShape : vec4,\\n // outShapeStrides: vec3, filterDims : vec2, pad : vec2, stride : vec2,\\n // dilation : vec2, dimAOuter : i32, dimBOuter : i32, dimInner : i32 };\\n ${M.join(\"\")}\\n @group(0) @binding(${M.length}) var result: array<${v?\"vec4\":\"f32\"}>;\\n //@group(0) @binding(${M.length+1}) var uniforms: Uniforms;\\n\\n const xShape : vec4 = vec4(${e[0].dims.join(\",\")});\\n const wShape : vec4 = vec4(${e[1].dims.join(\",\")});\\n const outShape : vec4 = vec4(${l.join(\",\")});\\n const outShapeStrides : vec3 = vec3(${o.ShapeUtil.computeStrides(l).slice(0,3).join(\",\")});\\n const filterDims : vec2 = vec2(${n.kernelShape[0]}, ${n.kernelShape[1]});\\n const pad : vec2 = vec2(${n.pads[0]}, ${n.pads[1]});\\n const stride : vec2 = vec2(${n.strides[0]}, ${n.strides[1]});\\n const dilation : vec2 = vec2(${n.dilations[0]}, ${n.dilations[1]});\\n const dimAOuter : i32 = ${c};\\n const dimBOuter : i32 = ${p};\\n const dimInner : i32 = ${d};\\n ${N}\\n ${((e,t,n,r,o=!1,i,s=!1,u=4,l=4,c=4)=>{const p=e?\"\\n let coord = vec4(batch, xRow, xCol, xCh);\\n \":\"\\n let coord = vec4(batch, xCh, xRow, xCol);\\n \",d=e?\"\\n let coords = vec4(\\n batch,\\n row / outWidth,\\n row % outWidth,\\n col);\\n \":\"\\n let coords = vec4(\\n batch,\\n row,\\n col / outWidth,\\n col % outWidth);\\n \",f=e?\"xShape[1]\":\"xShape[2]\",h=e?\"xShape[2]\":\"xShape[3]\",g=e?\"row\":\"col\",m=e?\"col\":\"row\",b=`\\n let inChannels = wShape[2];\\n let outWidth = ${e?\"outShape[2]\":\"outShape[3]\"};\\n let outRow = ${g} / outWidth;\\n let outCol = ${g} % outWidth;\\n\\n let WRow = ${m} / (filterDims[1] * inChannels);\\n let WCol = ${m} / inChannels % filterDims[1];\\n let xRow = outRow * stride[0] + dilation[0] * WRow - pad[0];\\n let xCol = outCol * stride[1] + dilation[1] * WCol - pad[1];\\n let xCh = ${m} % inChannels;\\n var resData = ${(0, a.typeSnippet)(u)}(0.0);\\n // The bounds checking is always needed since we use it to pad zero for\\n // the 'same' padding type.\\n if (xRow >= 0 && xRow < ${f} && xCol >= 0 && xCol < ${h}) {\\n ${p}\\n let xIndex = getIndexFromCoords4D(coord, xShape);\\n ${(e=>{switch(e){case 1:return \"resData = x[xIndex];\";case 3:return \"resData = vec3(x[xIndex], x[xIndex + 1], x[xIndex + 2]);\";case 4:return \"resData = x[xIndex / 4];\";default:throw new Error(`innerElementSize ${e} is not supported.`)}})(u)}\\n }\\n return resData;`,y=e?t&&r?`\\n let col = colIn * ${u};\\n ${b}`:`\\n let col = colIn * ${u};\\n if (row < dimAOuter && col < dimInner) {\\n ${b}\\n }\\n return ${(0, a.typeSnippet)(u)}(0.0);`:r&&n?`\\n let col = colIn * ${u};\\n ${b}`:`\\n let col = colIn * ${u};\\n if (row < dimInner && col < dimBOuter) {\\n ${b}\\n }\\n return ${(0, a.typeSnippet)(u)}(0.0);`,w=`${(e=>{switch(e){case 1:return \"return w[row * wShape[3] + colIn];\";case 4:return \"return w[row * wShape[3] / 4 + colIn];\";default:throw new Error(`innerElementSize ${e} is not supported.`)}})(l)}`,_=(0, a.typeSnippet)(c),v=e?(0, a.typeSnippet)(u):(0, a.typeSnippet)(l),x=e?(0, a.typeSnippet)(l):(0, a.typeSnippet)(u);return `\\n ${(0, a.activationFnSnippet)(i,s,4===c,4)}\\n fn mm_readA(batch: i32, row : i32, colIn : i32) -> ${v} {\\n ${e?y:w}\\n }\\n\\n fn mm_readB(batch: i32, row : i32, colIn : i32) -> ${x} {\\n ${e?w:y}\\n }\\n\\n fn mm_write(batch: i32, row : i32, colIn : i32, valueIn : ${_}) {\\n let col = colIn * ${c};\\n if (row < dimAOuter && col < dimBOuter)\\n {\\n var value = valueIn;\\n let outWidth = ${e?\"outShape[2]\":\"outShape[3]\"};\\n ${d}\\n ${(0, a.biasActivationSnippet)(o,i)}\\n setOutputAtCoords(coords[0], coords[1], coords[2], coords[3], value);\\n }\\n }`})(g,D,k,C,f,void 0,!1,R[0],R[1],R[2])}\\n ${v?(0, u.makeMatMulPackedVec4Source)(O,S,!g,P):(0, u.makeMatMulPackedSource)(O,S,!g,P,!1,void 0,h)}`})};},4085:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.utilFunctions=void 0,t.utilFunctions=\"\\nfn getIndexFromCoords4D(coords : vec4, shape : vec4) -> i32 {\\n return dot(coords, vec4(\\n shape.y * shape.z * shape.w, shape.z * shape.w, shape.w, 1));\\n}\\nfn getOutputIndexFromCoords(coords : vec4) -> i32 {\\n return dot(coords, vec4(\\n outShapeStrides.x, outShapeStrides.y, outShapeStrides.z, 1));\\n}\\n\";},158:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.makeMatMulPackedSource=t.makeMatMulPackedVec4Source=void 0,t.makeMatMulPackedVec4Source=(e,t,n=!1,r=32,o=!1,i=32,a=!1)=>{const s=t[1]*e[1],u=t[0]*e[0],l=n?s:r,c=n?r:s,p=l/t[0],d=r/t[1];if((!n||4!==p||4!==e[1])&&(n||3!==p&&4!==p)||l%t[0]!=0||r%t[1]!=0||4!==e[0])throw new Error(`If transposeA ${n} is true, innerElementSize ${p} and workPerThread[1] ${e[1]} must be 4.\\n Otherwise, innerElementSize ${p} must be 3 or 4.\\n tileAWidth ${l} must be divisible by workgroupSize[0]${t[0]}. tileInner ${r} must be divisible by workgroupSize[1] ${t[1]}. colPerThread ${e[0]} must be 4.`);return `\\nvar mm_Asub : array, ${l/p}>, ${c}>;\\nvar mm_Bsub : array, ${u/e[0]}>, ${r}>;\\n\\nconst rowPerThread = ${e[1]};\\nconst colPerThread = ${e[0]};\\nconst innerElementSize = ${p};\\nconst tileInner = ${r};\\n\\n@compute @workgroup_size(${t[0]}, ${t[1]}, ${t[2]})\\nfn main(@builtin(local_invocation_id) localId : vec3,\\n @builtin(global_invocation_id) globalId : vec3,\\n @builtin(workgroup_id) workgroupId : vec3) {\\n let localRow = i32(localId.y);\\n let tileRow = ${a?\"0\":\"localRow * rowPerThread\"};\\n let tileCol = i32(localId.x);\\n\\n let globalRow = ${a?\"0\":\"i32(globalId.y) * rowPerThread\"};\\n let globalCol = i32(globalId.x);\\n let batch = ${o?\"0\":\"i32(globalId.z)\"};\\n let globalRowStart = i32(workgroupId.y) * ${s};\\n\\n let numTiles = ${o?`${Math.ceil(i/r)}`:\"(dimInner - 1) / tileInner + 1\"};\\n var kStart = ${o?`i32(globalId.z) * ${i}`:\"0\"};\\n\\n var acc: array, rowPerThread>;\\n\\n // Loop over shared dimension.\\n let tileRowB = localRow * ${d};\\n for (var t = 0; t < numTiles; t = t + 1) {\\n // Load one tile of A into local memory.\\n for (var innerRow = 0; innerRow < rowPerThread; innerRow = innerRow + 1) {\\n let inputRow = tileRow + innerRow;\\n let inputCol = tileCol;\\n ${f=n,f?\"\\n mm_Asub[inputRow][inputCol] = mm_readA(batch,\\n kStart + inputRow,\\n globalRowStart / innerElementSize + inputCol);\\n \":\"\\n mm_Asub[inputRow][inputCol] = mm_readA(batch,\\n globalRow + innerRow,\\n kStart / innerElementSize + inputCol);\\n \"}\\n }\\n\\n // Load one tile of B into local memory.\\n for (var innerRow = 0; innerRow < ${d}; innerRow = innerRow + 1) {\\n let inputRow = tileRowB + innerRow;\\n let inputCol = tileCol;\\n mm_Bsub[inputRow][inputCol] = mm_readB(batch, kStart + inputRow, globalCol);\\n }\\n kStart = kStart + tileInner;\\n workgroupBarrier();\\n\\n // Compute acc values for a single thread.\\n for (var k = 0; k < tileInner / innerElementSize; k = k + 1) {\\n let BCached0 = mm_Bsub[k * innerElementSize][tileCol];\\n let BCached1 = mm_Bsub[k * innerElementSize + 1][tileCol];\\n let BCached2 = mm_Bsub[k * innerElementSize + 2][tileCol];\\n ${3===p?\"\":\"let BCached3 = mm_Bsub[k * innerElementSize + 3][tileCol];\"}\\n\\n ${((e,t)=>e?`\\n let ACached0 = mm_Asub[k * innerElementSize][localRow];\\n let ACached1 = mm_Asub[k * innerElementSize + 1][localRow];\\n let ACached2 = mm_Asub[k * innerElementSize + 2][localRow];\\n ${3===t?\"\":\"let ACached3 = mm_Asub[k * innerElementSize + 3][localRow];\"}\\n for (var i = 0; i < rowPerThread; i = i + 1) {\\n acc[i] = BCached0 * ACached0[i] + acc[i];\\n acc[i] = BCached1 * ACached1[i] + acc[i];\\n acc[i] = BCached2 * ACached2[i] + acc[i];\\n ${3===t?\"\":\"acc[i] = BCached3 * ACached3[i] + acc[i];\"}\\n }`:`\\n for (var i = 0; i < rowPerThread; i = i + 1) {\\n let ACached = mm_Asub[tileRow + i][k];\\n acc[i] = BCached0 * ACached.x + acc[i];\\n acc[i] = BCached1 * ACached.y + acc[i];\\n acc[i] = BCached2 * ACached.z + acc[i];\\n ${3===t?\"\":\"acc[i] = BCached3 * ACached.w + acc[i];\"}\\n }`)(n,p)}\\n }\\n\\n workgroupBarrier();\\n }\\n\\n for (var innerRow = 0; innerRow < rowPerThread; innerRow = innerRow + 1) {\\n mm_write(batch, globalRow + innerRow, globalCol, acc[innerRow]);\\n }\\n}`;var f;};const n=e=>e?\"\\n mm_Asub[inputRow][inputCol] = mm_readA(batch,\\n kStart + inputRow,\\n globalRowStart + inputCol);\\n \":\"\\n mm_Asub[inputRow][inputCol] = mm_readA(batch,\\n globalRowStart + inputRow,\\n kStart + inputCol);\\n \";t.makeMatMulPackedSource=(e,t,r=!1,o=32,i=!1,a=32,s=!1)=>{const u=e[1]*t[1],l=e[0]*t[0],c=r?u:o,p=r?o:u;if(p%t[1]!=0||c%t[0]!=0||o%t[1]!=0)throw new Error(`tileAHight ${p} must be divisible by workgroupSize[1]${t[1]}, tileAWidth ${c} must be divisible by workgroupSize[0]${t[0]}, tileInner ${o} must be divisible by workgroupSize[1]${t[1]}`);const d=p/t[1],f=c/t[0],h=o/t[1],g=s?`\\n let localRow = i32(localId.y);\\n let localCol = i32(localId.x);\\n let globalRowStart = i32(workgroupId.y) * ${u};\\n let globalColStart = i32(workgroupId.x) * ${l};\\n\\n // Loop over shared dimension.\\n for (var t = 0; t < numTiles; t = t + 1) {\\n // Load one tile of A into local memory.\\n for (var inputRow = localRow; inputRow < ${p}; inputRow = inputRow + ${t[1]}) {\\n for (var inputCol = localCol; inputCol < ${c}; inputCol = inputCol + ${t[0]}) {\\n ${n(r)}\\n }\\n }\\n // Load one tile of B into local memory.\\n for (var inputRow = localRow; inputRow < ${o}; inputRow = inputRow + ${t[1]}) {\\n for (var inputCol = localCol; inputCol < ${l}; inputCol = inputCol + ${t[0]}) {\\n mm_Bsub[inputRow][inputCol] = mm_readB(batch,\\n kStart + inputRow,\\n globalColStart + inputCol);\\n }\\n }\\n kStart = kStart + tileInner;\\n workgroupBarrier();\\n\\n // Compute acc values for a single thread.\\n var BCached : array;\\n for (var k = 0; k < tileInner; k = k + 1) {\\n for (var inner = 0; inner < colPerThread; inner = inner + 1) {\\n BCached[inner] = mm_Bsub[k][localCol + inner * ${t[0]}];\\n }\\n for (var innerRow = 0; innerRow < rowPerThread; innerRow = innerRow + 1) {\\n let ACached = ${r?`mm_Asub[k][localRow + innerRow * ${t[1]}];`:`mm_Asub[localRow + innerRow * ${t[1]}][k];`}\\n for (var innerCol = 0; innerCol < colPerThread; innerCol = innerCol + 1) {\\n acc[innerRow][innerCol] = acc[innerRow][innerCol] +\\n ACached * BCached[innerCol];\\n }\\n }\\n }\\n workgroupBarrier();\\n }\\n for (var innerRow = 0; innerRow < rowPerThread; innerRow = innerRow + 1) {\\n let gRow = globalRowStart + localRow + innerRow * ${t[1]};\\n for (var innerCol = 0; innerCol < colPerThread; innerCol = innerCol + 1) {\\n let gCol = globalColStart + localCol + innerCol * ${t[0]};\\n mm_write(batch, gRow, gCol, acc[innerRow][innerCol]);\\n }\\n }\\n `:`\\nlet tileRow = i32(localId.y) * rowPerThread;\\nlet tileCol = i32(localId.x) * colPerThread;\\n\\nlet globalRow = i32(globalId.y) * rowPerThread;\\nlet globalCol = i32(globalId.x) * colPerThread;\\nlet globalRowStart = i32(workgroupId.y) * ${u};\\n\\nlet tileRowA = i32(localId.y) * ${d};\\nlet tileColA = i32(localId.x) * ${f};\\nlet tileRowB = i32(localId.y) * ${h};\\n// Loop over shared dimension.\\nfor (var t = 0; t < numTiles; t = t + 1) {\\n // Load one tile of A into local memory.\\n for (var innerRow = 0; innerRow < ${d}; innerRow = innerRow + 1) {\\n for (var innerCol = 0; innerCol < ${f}; innerCol = innerCol + 1) {\\n let inputRow = tileRowA + innerRow;\\n let inputCol = tileColA + innerCol;\\n ${n(r)}\\n }\\n }\\n\\n // Load one tile of B into local memory.\\n for (var innerRow = 0; innerRow < ${h}; innerRow = innerRow + 1) {\\n for (var innerCol = 0; innerCol < colPerThread; innerCol = innerCol + 1) {\\n let inputRow = tileRowB + innerRow;\\n let inputCol = tileCol + innerCol;\\n mm_Bsub[inputRow][inputCol] = mm_readB(batch,\\n kStart + inputRow,\\n globalCol + innerCol);\\n }\\n }\\n kStart = kStart + tileInner;\\n workgroupBarrier();\\n\\n // Compute acc values for a single thread.\\n var BCached : array;\\n for (var k = 0; k < tileInner; k = k + 1) {\\n for (var inner = 0; inner < colPerThread; inner = inner + 1) {\\n BCached[inner] = mm_Bsub[k][tileCol + inner];\\n }\\n\\n for (var innerRow = 0; innerRow < rowPerThread; innerRow = innerRow + 1) {\\n ${(e=>e?\"let ACached = mm_Asub[k][tileRow + innerRow];\":\"let ACached = mm_Asub[tileRow + innerRow][k];\")(r)}\\n for (var innerCol = 0; innerCol < colPerThread; innerCol = innerCol + 1) {\\n acc[innerRow][innerCol] = acc[innerRow][innerCol] + ACached * BCached[innerCol];\\n }\\n }\\n }\\n\\n workgroupBarrier();\\n}\\n\\nfor (var innerRow = 0; innerRow < rowPerThread; innerRow = innerRow + 1) {\\n for (var innerCol = 0; innerCol < colPerThread; innerCol = innerCol + 1) {\\n mm_write(batch, globalRow + innerRow, globalCol + innerCol,\\n acc[innerRow][innerCol]);\\n }\\n}\\n`;return `\\n var mm_Asub : array, ${p}>;\\n var mm_Bsub : array, ${o}>;\\n const rowPerThread = ${e[1]};\\n const colPerThread = ${e[0]};\\n const tileInner = ${o};\\n\\n@compute @workgroup_size(${t[0]}, ${t[1]}, ${t[2]})\\nfn main(@builtin(local_invocation_id) localId : vec3,\\n @builtin(global_invocation_id) globalId : vec3,\\n @builtin(workgroup_id) workgroupId : vec3) {\\n let batch = ${i?\"0\":\"i32(globalId.z)\"};\\n let numTiles = ${i?`${Math.ceil(a/o)}`:\"(dimInner - 1) / tileInner + 1\"};\\n var kStart = ${i?`i32(globalId.z) * ${a}`:\"0\"};\\n\\n var acc : array, rowPerThread>;\\n\\n // Without this initialization strange values show up in acc.\\n for (var innerRow = 0; innerRow < rowPerThread; innerRow = innerRow + 1) {\\n for (var innerCol = 0; innerCol < colPerThread; innerCol = innerCol + 1) {\\n acc[innerRow][innerCol] = 0.0;\\n }\\n }\\n ${g}\\n }\\n`};},504:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.sub=t.pow=t.mul=t.div=t.add=void 0;const r=n(6952),o=n(1163),i=n(2075),a=(e,t,n,a,s)=>{const u={name:t,inputTypes:[o.GpuDataType.default,o.GpuDataType.default],cacheHint:s};return Object.assign(Object.assign({},u),{get:()=>((e,t,n,a,s,u=t.dataType)=>{var l,c;const p=!r.ShapeUtil.areEqual(t.dims,n.dims);let d=t.dims,f=r.ShapeUtil.size(t.dims),h=!1;if(p){const e=r.BroadcastUtil.calcShape(t.dims,n.dims,!1);if(!e)throw new Error(\"Can't perform binary op on the given tensors\");d=e,f=r.ShapeUtil.size(d);let o=1;for(let e=0;e((e,t,n,o,a,s,u,l,c=\"f32\",p=\"f32\",d=\"f32\")=>{const f=r.ShapeUtil.size(o),h=Math.ceil(f/4);let g,m;\"string\"==typeof u?g=m=(e,t)=>`${u}((${e}),(${t}))`:\"function\"==typeof u?g=m=u:(g=u.scalar,m=u.vector);let b=\"\";const y=(0, i.createIndicesHelper)(\"output\",o);if(s){const e=e=>{const t=r.ShapeUtil.computeStrides(e),n=[];for(let r=e.length-1;r>=0;r--){const i=0===o.length?\"0u\":1===o.length?\"(*outputIndices)\":`(*outputIndices)[${r+o.length-e.length}]`;n.push(`${t[r]}u * (${i} % ${e[r]}u)`);}return n.length>0?n.join(\"+\"):\"0u\"};b=`\\n ${y.o2iImpl}\\n\\n fn calcOffsetA(outputIndices: ptr) -> u32 {\\n return ${e(t)};\\n }\\n\\n fn calcOffsetB(outputIndices: ptr) -> u32 {\\n return ${e(n)};\\n }\\n `;}let w;if(a)w=s?`\\n ${y.indicesVariableDeclaration(\"outputIndices\")}\\n ${y.o2iCall(\"global_idx * 4u\",\"outputIndices\")}\\n let offsetA = calcOffsetA(&outputIndices);\\n let offsetB = calcOffsetB(&outputIndices);\\n outputData[global_idx] = ${m(\"aData[offsetA / 4u]\",\"bData[offsetB / 4u]\")};`:`outputData[global_idx] = ${m(\"aData[global_idx]\",\"bData[global_idx]\")};`;else {if(!s)throw new Error(\"no necessary to use scalar implementation for element-wise binary op implementation.\");const e=e=>{const t=`aData[indexA${e}][componentA${e}]`,n=`bData[indexB${e}][componentB${e}]`;return `\\n ${y.o2iCall(`global_idx * 4u + ${e}u`,\"outputIndices\")}\\n let offsetA${e} = calcOffsetA(&outputIndices);\\n let offsetB${e} = calcOffsetB(&outputIndices);\\n let indexA${e} = offsetA${e} / 4u;\\n let indexB${e} = offsetB${e} / 4u;\\n let componentA${e} = offsetA${e} % 4u;\\n let componentB${e} = offsetB${e} % 4u;\\n outputData[global_idx][${e}] = ${g(t,n)};`};w=`\\n ${y.indicesVariableDeclaration(\"outputIndices\")}\\n ${e(0)}\\n ${e(1)}\\n ${e(2)}\\n ${e(3)}`;}return `\\n @group(0) @binding(0) var aData : array>;\\n @group(0) @binding(1) var bData : array>;\\n @group(0) @binding(2) var outputData : array>;\\n\\n ${null!=l?l:\"\"}\\n ${b}\\n\\n ${e.mainStart()}\\n ${e.guardAgainstOutOfBoundsWorkgroupSizes(h)}\\n ${w}\\n }`})(e,t.dims,n.dims,d,h,p,a,s),outputs:[{dims:d,dataType:u,gpuDataType:o.GpuDataType.default}],dispatchGroup:()=>({x:Math.ceil(f/64/(h?4:1))})})})(u,e[0],e[1],n,a)})};t.add=e=>{e.compute(a(e.inputs,\"Add\",((e,t)=>`${e}+${t}`)));},t.div=e=>{e.compute(a(e.inputs,\"Div\",((e,t)=>`${e}/${t}`)));},t.mul=e=>{e.compute(a(e.inputs,\"Mul\",((e,t)=>`${e}*${t}`)));},t.pow=e=>{e.compute(a(e.inputs,\"Pow\",{scalar:(e,t)=>`pow_f32(${e},${t})`,vector:(e,t)=>`pow_vf32(${e},${t})`},\"\\n fn pow_f32(a : f32, b : f32) -> f32 {\\n if (b == 0.0) {\\n return 1.0;\\n } else if (a < 0.0 && b != floor(b)) {\\n return pow(a, b); // NaN\\n }\\n return select(sign(a), 1.0, round(abs(b) % 2.0) != 1.0) * pow(abs(a), b);\\n }\\n fn pow_vf32(a : vec4, b : vec4) -> vec4 {\\n // TODO: implement vectorized pow\\n return vec4(pow_f32(a.x, b.x), pow_f32(a.y, b.y), pow_f32(a.z, b.z), pow_f32(a.w, b.w));\\n }\\n \"));},t.sub=e=>{e.compute(a(e.inputs,\"Sub\",((e,t)=>`${e}-${t}`)));};},2075:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createShaderHelper=t.createIndicesHelper=t.WORKGROUP_SIZE=void 0;const r=n(6952);t.WORKGROUP_SIZE=64,t.createIndicesHelper=(e,t)=>{const n=t.length<2?\"u32\":`array`,o=r.ShapeUtil.computeStrides(t);let i=\"\";for(let e=0;e) {\\n var current = offset;\\n ${i}\\n }`,s=[];if(0===t.length)s.push(\"0u\");else if(t.length<2)s.push(\"(*indices)\");else for(let e=t.length-1;e>=0;e--)s.push(`${o[e]}u * ((*indices)[${e}])`);return {o2iImpl:a,o2iCall:(n,r)=>t.length<2?`${r}=${n};`:`ih_o2i_${e}(${n}, &${r});`,i2oImpl:t.length<2?\"\":`\\n fn ih_i2o_${e}(indices: ptr) -> u32 {\\n return ${s.join(\"+\")};\\n }`,i2oExpression:(n,r)=>t.length<2?`(${r?\"*\":\"\"}${n})`:`ih_i2o_${e}(${r?\"\":\"&\"}${n})`,indicesVariableDeclaration:(e,t)=>`var ${e}:${n}${t?`=${n}(${t.join(\",\")})`:\"\"};`,iType:n}};class o{constructor(e){this.normalizedDispatchGroup=e;}guardAgainstOutOfBoundsWorkgroupSizes(e){return `if (global_idx >= ${\"number\"==typeof e?`${e}u`:e}) { return; }`}mainStart(e=t.WORKGROUP_SIZE){const n=\"number\"==typeof e?e:e[0],r=\"number\"==typeof e?1:e[1],o=\"number\"==typeof e?1:e[2],i=1===this.normalizedDispatchGroup[1]&&1===this.normalizedDispatchGroup[2];return `@compute @workgroup_size(${n}, ${r}, ${o})\\n fn main(${i?\"@builtin(global_invocation_id) global_id : vec3\":\"@builtin(local_invocation_index) local_index : u32,\\n @builtin(workgroup_id) workgroup_id : vec3\"}) {\\n ${i?\"let global_idx = global_id.x;\":`let global_idx = (workgroup_id.z * ${this.normalizedDispatchGroup[0]*this.normalizedDispatchGroup[1]}u +\\n workgroup_id.y * ${this.normalizedDispatchGroup[0]}u + workgroup_id.x) * ${n*r*o}u + local_index;`}\\n `}}t.createShaderHelper=e=>new o(e);},9192:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createGroupedConvProgramInfoLoader=void 0;const r=n(6952),o=n(1163),i=n(2075),a=n(9770),s=n(3997);t.createGroupedConvProgramInfoLoader=(e,t,n)=>{const u=(l=e.length>2,c=t.cacheKey,{name:\"GroupedConv\",inputTypes:l?[o.GpuDataType.default,o.GpuDataType.default,o.GpuDataType.default]:[o.GpuDataType.default,o.GpuDataType.default],cacheHint:c});var l,c;return Object.assign(Object.assign({},u),{get:()=>((e,t,n,u)=>{const l=e.length>2,c=l?\"value += b[output_channel];\":\"\",p=e[0].dims,d=e[1].dims,f=d[0]/n.group,h=\"f32\",{activationFunction:g,applyActivation:m}=(0, s.getActicationSnippet)(n),b=[`@group(0) @binding(0) var x : array<${h}>;`,`@group(0) @binding(1) var w : array<${h}>;`];l&&b.push(`@group(0) @binding(2) var b : array<${h}>;`);const y=\"NHWC\"===n.format,w=(0, a.calculateOutputShape)(p,d,n.dilations,n.pads,n.strides,y),_=r.ShapeUtil.size(w),v=(0, i.createIndicesHelper)(\"output\",w),x=(0, i.createIndicesHelper)(\"x\",p),T=(0, i.createIndicesHelper)(\"w\",d);return Object.assign(Object.assign({},t),{outputs:[{dims:u?u(w):w,dataType:e[0].dataType,gpuDataType:o.GpuDataType.default}],getShaderSource:e=>`\\n const strides: vec2 = vec2(${n.strides[0]}u, ${n.strides[1]}u);\\n const pads: vec2 = vec2(${n.pads[0]}u, ${n.pads[1]}u);\\n\\n ${b.join(\"\\n\")}\\n @group(0) @binding(${b.length}) var output : array<${h}>;\\n\\n ${g}\\n ${v.o2iImpl}\\n ${x.i2oImpl}\\n ${T.i2oImpl}\\n\\n ${e.mainStart()}\\n ${e.guardAgainstOutOfBoundsWorkgroupSizes(_)}\\n\\n ${v.indicesVariableDeclaration(\"outputIndices\")}\\n ${v.o2iCall(\"global_idx\",\"outputIndices\")}\\n let batch: u32 = outputIndices[0];\\n let output_channel: u32 = outputIndices[${y?3:1}];\\n let xRCCorner: vec2 = vec2(outputIndices[${y?1:2}], outputIndices[${y?2:3}]) * strides - pads;\\n let group_id: u32 = output_channel / ${f}u;\\n\\n var value: ${h} = ${h}(0);\\n for (var wInChannel: u32 = 0u; wInChannel < ${d[1]}u; wInChannel++) {\\n let input_channel = group_id * ${d[1]}u + wInChannel;\\n for (var wHeight: u32 = 0u; wHeight < ${d[2]}u; wHeight++) {\\n let xHeight = xRCCorner.x + wHeight * ${n.dilations[0]}u;\\n\\n if (xHeight < 0u || xHeight >= ${p[y?1:2]}u) {\\n continue;\\n }\\n\\n for (var wWidth: u32 = 0u; wWidth < ${d[3]}u; wWidth++) {\\n let xWidth = xRCCorner.y + wWidth * ${n.dilations[1]}u;\\n if (xWidth < 0u || xWidth >= ${p[y?2:3]}u) {\\n continue;\\n }\\n\\n ${x.indicesVariableDeclaration(\"xIndices\",y?[\"batch\",\"xHeight\",\"xWidth\",\"input_channel\"]:[\"batch\",\"input_channel\",\"xHeight\",\"xWidth\"])}\\n let xVal = x[${x.i2oExpression(\"xIndices\")}];\\n ${T.indicesVariableDeclaration(\"wIndices\",[\"output_channel\",\"wInChannel\",\"wHeight\",\"wWidth\"])}\\n let wVal = w[${T.i2oExpression(\"wIndices\")}];\\n value += xVal*wVal;\\n }\\n }\\n }\\n ${c}\\n ${m}\\n output[global_idx] = value;\\n }`,dispatchGroup:()=>({x:Math.ceil(_/64)})})})(e,u,t,n)})};},9770:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.conv=t.parseConvAttributes=t.calculateOutputShape=void 0;const r=n(6952),o=n(387),i=n(9192),a=n(3822),s=n(3997),u=n(2625);t.calculateOutputShape=(e,t,n,r,o,i)=>{const a=e[0],s=e.slice(i?1:2,i?3:4),u=s.length,l=t[0],c=t.slice(2).map(((e,t)=>e+(e-1)*(n[t]-1))),p=s.map(((e,t)=>e+r[t]+r[t+u])).map(((e,t)=>Math.floor((e-c[t]+o[t])/o[t])));return p.splice(0,0,a),p.splice(i?3:1,0,l),p};const l=(0, o.createAttributeWithCacheKey)({perm:[2,3,1,0]}),c=(e,t)=>{const n=e.kernelShape.slice();for(let e=2;e{const t=(0, s.parseInternalActivationAttributes)(e),n=e.format,r=[\"NOTSET\",\"VALID\",\"SAME_UPPER\",\"SAME_LOWER\"][e.auto_pad],i=e.dilations,a=e.group,u=e.kernel_shape,l=e.pads,c=e.strides,p=e.w_is_const();return (0, o.createAttributeWithCacheKey)(Object.assign({autoPad:r,format:n,dilations:i,group:a,kernelShape:u,pads:l,strides:c,wIsConst:p},t))},t.conv=(e,n)=>{((e,t)=>{if(!e||2!==e.length&&3!==e.length)throw new Error(\"Conv requires 2 or 3 inputs\");if(4!==e[0].dims.length&&3!==e[0].dims.length)throw new Error(\"currently only support conv 1D and 2D\");if(e[0].dims.length!==e[1].dims.length)throw new Error(\"filter does not have same dimension as input\");if(e[0].dims[\"NHWC\"===t.format?e[0].dims.length-1:1]!==e[1].dims[1]*t.group)throw new Error(\"FILTER_IN_CHANNEL should be equal to DATA_CHANNEL\");if(3===e.length&&(1!==e[2].dims.length||e[1].dims[0]!==e[2].dims[0]))throw new Error(\"invalid bias\");const n=e[0].dims.length-2;if(t.dilations.length!==n)throw new Error(`dilations should be ${n}D`);if(t.strides.length!==n)throw new Error(`strides should be ${n}D`);if(t.pads.length!==2*n)throw new Error(`pads should be ${2*n}D`);if(0!==t.kernelShape.length&&t.kernelShape.length!==e[1].dims.length-2)throw new Error(\"invalid kernel shape\");if(1!==e[0].dataType||1!==e[1].dataType)throw new Error(\"Conv input(X,W) should be float tensor\");if(3===e.length&&1!==e[2].dataType)throw new Error(\"Conv input(bias) should be float tensor\")})(e.inputs,n),3===e.inputs[0].dims.length?((e,t)=>{const n=\"NHWC\"===t.format,r=[e.inputs[0].reshape(n?[e.inputs[0].dims[0],1,e.inputs[0].dims[1],e.inputs[0].dims[2]]:[e.inputs[0].dims[0],e.inputs[0].dims[1],1,e.inputs[0].dims[2]]),e.inputs[1].reshape([e.inputs[1].dims[0],e.inputs[1].dims[1],1,e.inputs[1].dims[2]])];3===e.inputs.length&&r.push(e.inputs[2]);const o=[0,t.pads[0],0,t.pads[1]],a=[1].concat(t.strides),s=[1].concat(t.dilations),u=[1].concat(t.kernelShape),l=c(Object.assign(Object.assign({},t),{pads:o,strides:a,dilations:s,kernelShape:u}),r);e.compute((0, i.createGroupedConvProgramInfoLoader)(r,l,(e=>n?[e[0],e[2],e[3]]:[])));})(e,n):((e,n,r)=>{var o;const s=c(r,n),p=3===n.length,d=\"NHWC\"===r.format,f=n[0].dims[d?1:2],h=n[0].dims[d?2:3],g=n[0].dims[d?3:1],m=n[1].dims[2],b=n[1].dims[3],y=(0, t.calculateOutputShape)(n[0].dims,n[1].dims,r.dilations,s.pads,r.strides,d),w=y[d?1:2],_=y[d?2:3],v=y[d?3:1];if(d&&m===f&&b===h&&\"VALID\"===r.autoPad||1===m&&1===b&&1===r.dilations[0]&&1===r.dilations[1]&&1===r.strides[0]&&1===r.strides[1]&&(\"SAME_UPPER\"===r.autoPad||\"SAME_LOWER\"===r.autoPad||\"VALID\"===r.autoPad))return void e.compute((0, i.createGroupedConvProgramInfoLoader)(n,s));if(!d||1!==r.group)return void e.compute((0, i.createGroupedConvProgramInfoLoader)(n,s));const x=d?w*_:v,T=d?v:w*_,S=m*b*g,O=null!==(o=e.customData.wT)&&void 0!==o?o:e.compute(Object.assign(Object.assign({},u.transposeProgramMetadata),{cacheHint:l.cacheKey,get:()=>(0, u.createTransposeProgramInfo)(n[1],l.perm)}),{inputs:[1],outputs:[r.wIsConst?-2:-1]})[0];r.wIsConst&&!e.customData.wT&&(e.customData.wT=O);const A=[n[0],O];p&&(d||1!==n[2].dims.length?A.push(n[2]):A.push(n[2].reshape([n[2].dims[0],1,1]))),e.compute((0, a.createConv2DMatMulProgramInfoLoader)(A,s,y,x,T,S,p,!0),{inputs:A});})(e,e.inputs,n);};},3822:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createConv2DMatMulProgramInfoLoader=void 0;const r=n(1163),o=n(9456);t.createConv2DMatMulProgramInfoLoader=(e,t,n,i,a,s,u,l)=>{const c=((e,t)=>({name:\"Conv2DMatMul\",inputTypes:e?[r.GpuDataType.default,r.GpuDataType.default,r.GpuDataType.default]:[r.GpuDataType.default,r.GpuDataType.default],cacheHint:t}))(u,t.cacheKey);return Object.assign(Object.assign({},c),{get:()=>(0, o.createConv2DMatMulProgramInfo)(e,c,t,n,i,a,s,u,l)})};},3997:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseInternalActivationAttributes=t.getActicationSnippet=void 0;const r=n(6952);t.getActicationSnippet=e=>{switch(e.activation){case\"Relu\":return {activationFunction:\"\",applyActivation:\"value = max(value, 0.0);\"};case\"Sigmoid\":return {activationFunction:\"\",applyActivation:\"value = (1.0 / (1.0 + exp(-value)));\"};case\"Clip\":return {activationFunction:`const clip_min_=f32(${e.clipMin});const clip_max_=f32(${e.clipMax});`,applyActivation:\"value = clamp(value, clip_min_, clip_max_);\"};default:return {activationFunction:\"\",applyActivation:\"\"}}},t.parseInternalActivationAttributes=e=>{const t=(null==e?void 0:e.activation)||\"\";if(\"Clip\"===t){const[n,o]=(null==e?void 0:e.activation_params)||[r.MIN_CLIP,r.MAX_CLIP];return {activation:t,clipMax:o,clipMin:n,activationCacheKey:`${t}:${n},${o}`}}return {activation:t,activationCacheKey:t}};},4271:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseGemmAttributes=t.gemm=void 0;const r=n(6952),o=n(387),i=n(1163);t.gemm=(e,t)=>{(e=>{if(!e)throw new Error(\"Input is missing\");if(e.length<2||e.length>3)throw new Error(\"Invaid input number.\");if(3===e.length&&e[2].dims.length>2)throw new Error(\"Invalid input shape of C\");if(1!==e[0].dataType||1!==e[1].dataType||3===e.length&&1!==e[2].dataType)throw new Error(\"Invalid input type.\");if(e[0].dataType!==e[1].dataType||3===e.length&&e[0].dataType!==e[2].dataType)throw new Error(\"Input types are mismatched\")})(e.inputs),e.compute(((e,t)=>{const n={name:\"Gemm\",inputTypes:3===e.length?[i.GpuDataType.default,i.GpuDataType.default,i.GpuDataType.default]:[i.GpuDataType.default,i.GpuDataType.default],cacheHint:t.cacheKey};return Object.assign(Object.assign({},n),{get:()=>((e,t,n)=>{const o=t[0].dims.slice(),a=t[1].dims.slice(),[s,u,l]=r.GemmUtil.getShapeOfGemmResult(o,n.transA,a,n.transB,3===t.length?t[2].dims:void 0),c=[s,u];if(!c)throw new Error(\"Can't use gemm on the given tensors\");const p=r.ShapeUtil.size(c);let d=\"\";n.transA&&n.transB?d=\"value += a[k * M + m] * b[n * K + k];\":n.transA&&!n.transB?d=\"value += a[k * M + m] * b[k * N + n];\":!n.transA&&n.transB?d=\"value += a[m * K + k] * b[n * K + k];\":n.transA||n.transB||(d=\"value += a[m * K + k] * b[k * N + n];\");const f=\"f32\",h=1===n.alpha?\"\":\"value *= alpha;\",g=3===t.length?`value += beta * c[${((e,t,n)=>{if(0===n.length)return \"0u\";const r=1===n.length&&1!==e||2===n.length&&n[0]!==e,o=n[n.length-1]!==t;let i=\"0u\";return r||(i+=`+ m * ${n[n.length-1]}u`),o||(i+=\"+n\"),i})(s,u,t[2].dims)}];`:\"\",m=[`@group(0) @binding(0) var a : array<${f}>;`,`@group(0) @binding(1) var b : array<${f}>;`];return 3===t.length&&m.push(`@group(0) @binding(2) var c : array<${f}>;`),Object.assign(Object.assign({},e),{outputs:[{dims:c,dataType:t[0].dataType,gpuDataType:i.GpuDataType.default}],getShaderSource:e=>`\\n const M: u32 = ${s}u;\\n const N: u32 = ${u}u;\\n const K: u32 = ${l}u;\\n const alpha = ${f}(${n.alpha});\\n const beta = ${f}(${n.beta});\\n\\n ${m.join(\"\\n\")}\\n @group(0) @binding(${t.length}) var output : array<${f}>;\\n\\n ${e.mainStart()}\\n ${e.guardAgainstOutOfBoundsWorkgroupSizes(p)}\\n\\n let m = global_id.x / N;\\n let n = global_id.x % N;\\n\\n var value = ${f}(0);\\n for (var k: u32 = 0u; k<${l}u; k++) {\\n ${d}\\n }\\n\\n ${h}\\n ${g}\\n output[global_id.x] = value;\\n\\n }`,dispatchGroup:()=>({x:Math.ceil(p/64)})})})(n,e,t)})})(e.inputs,t));},t.parseGemmAttributes=e=>(0, o.createAttributeWithCacheKey)(e);},1522:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.matMul=t.createMatmulProgramInfoLoader=void 0;const r=n(6952),o=n(1163),i=n(3997);t.createMatmulProgramInfoLoader=(e,t)=>{const n=(a=e.length>2,s=t.activationCacheKey,{name:\"MatMul\",inputTypes:a?[o.GpuDataType.default,o.GpuDataType.default,o.GpuDataType.default]:[o.GpuDataType.default,o.GpuDataType.default],cacheHint:s});var a,s;return Object.assign(Object.assign({},n),{get:()=>((e,t,n)=>{const a=t[0].dims,s=t[1].dims,u=r.BroadcastUtil.calcShape(a,s,!0);if(!u)throw new Error(\"Can't use matmul on the given tensors\");const l=r.ShapeUtil.size(u),c=\"f32\",{activationFunction:p,applyActivation:d}=(0, i.getActicationSnippet)(n),f=u[u.length-2],h=a[a.length-1],g=u[u.length-1];return Object.assign(Object.assign({},e),{outputs:[{dims:u,dataType:t[0].dataType,gpuDataType:o.GpuDataType.default}],getShaderSource:e=>`\\n const M: u32 = ${f}u;\\n const N: u32 = ${g}u;\\n const K: u32 = ${h}u;\\n\\n @group(0) @binding(0) var a : array<${c}>;\\n @group(0) @binding(1) var b : array<${c}>;\\n @group(0) @binding(2) var output : array<${c}>;\\n\\n ${p}\\n\\n ${e.mainStart()}\\n ${e.guardAgainstOutOfBoundsWorkgroupSizes(l)}\\n\\n let stack = global_idx / (M * N);\\n let mn = global_idx % (M * N);\\n let n = global_idx % N;\\n let m = mn / N;\\n\\n let offsetA = stack * (M * K);\\n let offsetB = stack * (K * N);\\n\\n var value = ${c}(0);\\n for (var k: u32 = 0u; k<${h}u; k++) {\\n value += a[offsetA + m * K + k] * b[offsetB + k * N + n];\\n }\\n ${d}\\n output[global_idx] = value;\\n }`,dispatchGroup:()=>({x:Math.ceil(l/64)})})})(n,e,t)})},t.matMul=e=>{(e=>{if(!e||2!==e.length)throw new Error(\"MatMul requires 2 inputs.\");if(e[0].dims[e[0].dims.length-1]!==e[1].dims[e[1].dims.length-2])throw new Error(\"shared dimension does not match.\");if(1!==e[0].dataType||1!==e[1].dataType)throw new Error(\"inputs should be float type\")})(e.inputs),e.compute((0, t.createMatmulProgramInfoLoader)(e.inputs,{activation:\"\",activationCacheKey:\"\"}));};},5262:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.globalMaxPool=t.parseGlobalMaxPoolAttributes=t.parseMaxPoolAttributes=t.maxPool=t.globalAveragePool=t.parseGlobalAveragePoolAttributes=t.averagePool=t.parseAveragePoolAttributes=void 0;const r=n(6952),o=n(387),i=n(1163),a=n(2075),s=e=>{if(!e||1!==e.length)throw new Error(\"Pool ops requires 1 input.\");if(4!==e[0].dims.length)throw new Error(\"Pool ops supports 2-D inputs only for now.\");if(1!==e[0].dataType)throw new Error(\"Invalid input type.\")},u=(e,t,n)=>{const o=\"NHWC\"===t.format,i=o?[e[0].dims[0],e[0].dims[3],e[0].dims[1],e[0].dims[2]]:e[0].dims.slice(),a=Object.hasOwnProperty.call(t,\"dilations\"),s=t.kernelShape.slice(),u=t.strides.slice(),l=a?t.dilations.slice():[],c=t.pads.slice();r.PoolConvUtil.adjustPoolAttributes(n,i,s,u,l,c);const p=r.PoolConvUtil.computePoolOutputShape(n,i,u,l,s,c,t.autoPad),d=Object.assign({},t);return a?Object.assign(d,{kernelShape:s,strides:u,pads:c,dilations:l,cacheKey:t.cacheKey}):Object.assign(d,{kernelShape:s,strides:u,pads:c,cacheKey:t.cacheKey}),[d,o?[p[0],p[2],p[3],p[1]]:p]},l=(e,t,n,o,i,s,u,l)=>{const c=\"NHWC\"===o.format,p=t.length,d=r.ShapeUtil.size(n),f=(0, a.createIndicesHelper)(\"output\",n),h=(0, a.createIndicesHelper)(\"x\",t);if(o.kernelShape.length<=2){const n=o.kernelShape[o.kernelShape.length-1],r=o.strides[o.strides.length-1],a=o.pads[o.pads.length/2-1],g=p-(c?2:1);let m=\"\",b=\"\",y=\"\";if(m=a+o.pads[o.pads.length-1]!==0?`\\n for (var i: u32 = 0u; i < ${n}u; i++) {\\n xIndices[${g}] = indices[${g}] * ${r} - ${a} + i;\\n if (xIndices[${g}] < 0 || xIndices[${g}] >= ${t[g]}) {\\n pad++;\\n continue;\\n }\\n let x_val = x[${h.i2oExpression(\"xIndices\")}];\\n ${i}\\n }`:`\\n for (var i: u32 = 0u; i < ${n}u; i++) {\\n xIndices[${g}] = indices[${g}] * ${r} - ${a} + i;\\n let x_val = x[${h.i2oExpression(\"xIndices\")}];\\n ${i}\\n }`,2===o.kernelShape.length){const e=o.kernelShape[o.kernelShape.length-2],r=o.strides[o.strides.length-2],i=o.pads[o.pads.length/2-2],a=o.pads[o.pads.length-2],s=p-(c?3:2),u=t[s];b=i+a!==0?`\\n for (var j: u32 = 0u; j < ${e}u; j++) {\\n xIndices[${s}] = indices[${s}] * ${r} - ${i} + j;\\n if (xIndices[${s}] < 0 || xIndices[${s}] >= ${u}) {\\n pad+= ${n};\\n continue;\\n }\\n `:`\\n for (var j: u32 = 0u; j < ${e}u; j++) {\\n xIndices[${s}] = indices[${s}] * ${r} - ${i} + j;\\n `,y=\"\\n }\\n \";}return `\\n @group(0) @binding(0) var x : array<${u}>;\\n @group(0) @binding(1) var output : array<${u}>;\\n\\n ${f.o2iImpl}\\n ${h.i2oImpl}\\n\\n ${e.mainStart()}\\n ${e.guardAgainstOutOfBoundsWorkgroupSizes(d)}\\n\\n ${f.indicesVariableDeclaration(\"indices\")}\\n ${f.o2iCall(\"global_idx\",\"indices\")}\\n ${f.indicesVariableDeclaration(\"xIndices\")}\\n ${f.o2iCall(\"global_idx\",\"xIndices\")}\\n\\n var value: ${u} = ${u}(${l});\\n var pad = 0;\\n ${b}\\n ${m}\\n ${y}\\n ${s}\\n\\n output[global_idx] = value;\\n }`}{if(c)throw new Error(\"Pooling with kernelShape.length > 2 is not supported for NHWC format.\");const n=r.ShapeUtil.size(o.kernelShape),a=r.ShapeUtil.computeStrides(o.kernelShape),g=a.length,m=o.pads.length;let b=\"\";return b=o.pads.reduce(((e,t)=>e+t))?`\\n if (xIndices[j] >= inputDims[j]) {\\n pad++;\\n isPad = true;\\n break;\\n }\\n }\\n if (!isPad) {\\n let x_val = x[${h.i2oExpression(\"xIndices\")}];\\n ${i}\\n }`:`\\n }\\n let x_val = x[${h.i2oExpression(\"xIndices\")}];\\n ${i}\\n `,`\\n @group(0) @binding(0) var x : array<${u}>;\\n @group(0) @binding(1) var output : array<${u}>;\\n\\n ${f.o2iImpl}\\n ${h.i2oImpl}\\n\\n const pads = array(${o.pads.map((e=>`${e}u`)).join(\",\")});\\n const inputDims = array(${t.map((e=>`${e}u`)).join(\",\")});\\n const kernelStrides = array(${a.map((e=>`${e}u`)).join(\",\")});\\n const strides = array(${o.strides.map((e=>`${e}u`)).join(\",\")});\\n\\n ${e.mainStart()}\\n ${e.guardAgainstOutOfBoundsWorkgroupSizes(d)}\\n\\n ${f.indicesVariableDeclaration(\"indices\")}\\n ${f.o2iCall(\"global_idx\",\"indices\")}\\n ${f.indicesVariableDeclaration(\"xIndices\")}\\n ${f.o2iCall(\"global_idx\",\"xIndices\")}\\n\\n var offsets: array;\\n\\n var value = ${u}(${l});\\n var pad = 0;\\n var isPad = false;\\n\\n for (var i: u32 = 0u; i < ${n}u; i++) {\\n var offset = i;\\n for (var j = 0u; j < ${g-1}u; j++) {\\n offsets[j] = offset / kernelStrides[j];\\n offset -= offsets[j] * kernelStrides[j];\\n }\\n offsets[${g-1}] = offset;\\n\\n isPad = false;\\n for (var j = ${p-g}u; j < ${p}u; j++) {\\n xIndices[j] = indices[j] * strides[j - ${p-g}u]\\n + offsets[j - ${p-g}u] - pads[j - 2u];\\n ${b}\\n }\\n ${s}\\n\\n output[global_idx] = value;\\n }`}},c=e=>({format:e.format,autoPad:[\"NOTSET\",\"VALID\",\"SAME_UPPER\",\"SAME_LOWER\"][e.auto_pad],ceilMode:e.ceil_mode,kernelShape:e.kernel_shape,strides:e.strides,pads:e.pads}),p=(e,t,n,o)=>{const[a,s]=u(e,o,n),c=r.ShapeUtil.size(a.kernelShape),p=\"f32\";let d=\"\";return a.countIncludePad?d+=`value /= ${p}(${c});`:d+=`value /= ${p}(${c} - pad);`,Object.assign(Object.assign({},t),{outputs:[{dims:s,dataType:e[0].dataType,gpuDataType:i.GpuDataType.default}],getShaderSource:t=>l(t,e[0].dims,s,a,\"value += x_val;\",d,p,\"0.0\"),dispatchGroup:()=>({x:Math.ceil(r.ShapeUtil.size(s)/64)})})};t.parseAveragePoolAttributes=e=>{const t=0!==e.count_include_pad,n=c(e);if(0!==n.ceilMode)throw new Error(\"using ceil() in shape computation is not yet supported for AveragePool\");return (0, o.createAttributeWithCacheKey)(Object.assign({countIncludePad:t},n))},t.averagePool=(e,t)=>{s(e.inputs);const n={name:\"AveragePool\",inputTypes:[i.GpuDataType.default],cacheHint:t.cacheKey};e.compute(Object.assign(Object.assign({},n),{get:()=>p(e.inputs,n,!1,t)}));};const d={autoPad:\"\",ceilMode:0,countIncludePad:!1,kernelShape:[],strides:[],pads:[],storageOrder:0,dilations:[],cacheKey:\"\"};t.parseGlobalAveragePoolAttributes=e=>{const t=e.format;return Object.assign(Object.assign({format:t},d),{cacheKey:t})},t.globalAveragePool=(e,t)=>{s(e.inputs);const n={name:\"GlobalAveragePool\",inputTypes:[i.GpuDataType.default],cacheHint:t.cacheKey};e.compute(Object.assign(Object.assign({},n),{get:()=>p(e.inputs,n,!0,t)}));};const f=(e,t,n,o)=>{const[a,s]=u(e,o,n);return Object.assign(Object.assign({},t),{outputs:[{dims:s,dataType:e[0].dataType,gpuDataType:i.GpuDataType.default}],getShaderSource:t=>l(t,e[0].dims,s,a,\"\\n value = max(x_val, value);\\n \",\"\",\"f32\",\"-1e5\"),dispatchGroup:()=>({x:Math.ceil(r.ShapeUtil.size(s)/64)})})};t.maxPool=(e,t)=>{s(e.inputs);const n={name:\"MaxPool\",inputTypes:[i.GpuDataType.default],cacheHint:t.cacheKey};e.compute(Object.assign(Object.assign({},n),{get:()=>f(e.inputs,n,!1,t)}));},t.parseMaxPoolAttributes=e=>{const t=e.storage_order,n=e.dilations,r=c(e);if(0!==t)throw new Error(\"column major storage order is not yet supported for MaxPool\");if(0!==r.ceilMode)throw new Error(\"using ceil() in shape computation is not yet supported for MaxPool\");return (0, o.createAttributeWithCacheKey)(Object.assign({storageOrder:t,dilations:n},r))},t.parseGlobalMaxPoolAttributes=e=>{const t=e.format;return Object.assign(Object.assign({format:t},d),{cacheKey:t})},t.globalMaxPool=(e,t)=>{s(e.inputs);const n={name:\"GlobalMaxPool\",inputTypes:[i.GpuDataType.default],cacheHint:t.cacheKey};e.compute(Object.assign(Object.assign({},n),{get:()=>f(e.inputs,n,!0,t)}));};},2625:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.parseTransposeAttributes=t.transpose=t.createTransposeProgramInfo=t.transposeProgramMetadata=void 0;const r=n(6952),o=n(387),i=n(1163),a=n(2075);t.transposeProgramMetadata={name:\"Transpose\",inputTypes:[i.GpuDataType.default]};const s=(e,t)=>t&&t.length!==e.length?[...e.keys()].reverse():t;t.createTransposeProgramInfo=(e,n)=>{const o=e.dims,u=s(o,n),l=((e,t)=>r.ShapeUtil.sortBasedOnPerm(e,s(e,t)))(o,u),c=o.length,p=r.ShapeUtil.size(l),d=(0, a.createIndicesHelper)(\"output\",l),f=(0, a.createIndicesHelper)(\"a\",o);return Object.assign(Object.assign({},t.transposeProgramMetadata),{outputs:[{dims:l,dataType:e.dataType,gpuDataType:i.GpuDataType.default}],getShaderSource:e=>`\\n @group(0) @binding(0) var a : array;\\n @group(0) @binding(1) var output : array;\\n\\n ${((e,t)=>{const n=[];n.push(`fn perm(a: ptr>, i: ptr>) {`);for(let r=0;r({x:Math.ceil(p/64)})})},t.transpose=(e,n)=>{(e=>{if(!e||1!==e.length)throw new Error(\"Transpose requires 1 input.\");if(1!==e[0].dataType)throw new Error(\"input should be float tensor\")})(e.inputs),e.compute(Object.assign(Object.assign({},t.transposeProgramMetadata),{cacheHint:n.cacheKey,get:()=>(0, t.createTransposeProgramInfo)(e.inputs[0],n.perm)}));},t.parseTransposeAttributes=e=>(0, o.createAttributeWithCacheKey)({perm:e.perm});},9302:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.thresholdedRelu=t.tanh=t.tan=t.sqrt=t.sinh=t.sin=t.sigmoid=t.relu=t.reciprocal=t.neg=t.leakyRelu=t.floor=t.exp=t.erf=t.elu=t.parseAlphaAttributes=t.cosh=t.cos=t.ceil=t.clip=t.clipV10=t.atanh=t.atan=t.asinh=t.asin=t.acosh=t.acos=t.abs=void 0;const r=n(6952),o=n(387),i=n(1163),a=(e,t,n,o,a)=>{const s={name:t,inputTypes:[i.GpuDataType.default],cacheHint:a};return Object.assign(Object.assign({},s),{get:()=>((e,t,n,o)=>Object.assign(Object.assign({},e),{getShaderSource:e=>((e,t,n,r)=>{const o=Math.ceil(t/4);let i=\"\";return i=\"string\"==typeof n?`${n}(a)`:n(\"a\"),`\\n @group(0) @binding(0) var inputData : array>;\\n @group(0) @binding(1) var outputData : array>;\\n\\n ${null!=r?r:\"\"}\\n\\n ${e.mainStart()}\\n ${e.guardAgainstOutOfBoundsWorkgroupSizes(o)}\\n\\n let a = inputData[global_idx];\\n outputData[global_idx] = ${i};\\n }`})(e,r.ShapeUtil.size(t.dims),n,o),outputs:[{dims:t.dims,dataType:t.dataType,gpuDataType:i.GpuDataType.default}],dispatchGroup:e=>({x:Math.ceil(r.ShapeUtil.size(e[0].dims)/64/4)})}))(s,e,n,o)})};t.abs=e=>{e.compute(a(e.inputs[0],\"Abs\",\"abs\"));},t.acos=e=>{e.compute(a(e.inputs[0],\"Acos\",\"acos\"));},t.acosh=e=>{e.compute(a(e.inputs[0],\"Acosh\",\"acosh\"));},t.asin=e=>{e.compute(a(e.inputs[0],\"Asin\",\"asin\"));},t.asinh=e=>{e.compute(a(e.inputs[0],\"Asinh\",\"asinh\"));},t.atan=e=>{e.compute(a(e.inputs[0],\"Atan\",\"atan\"));},t.atanh=e=>{e.compute(a(e.inputs[0],\"Atanh\",\"atanh\"));},t.clipV10=(e,t)=>{e.compute(a(e.inputs[0],\"Clip\",(e=>`clamp(${e}, clip_min_, clip_max_)`),`\\n const clip_min_: vec4 = vec4(f32(${t.min}));\\n const clip_max_: vec4 = vec4(f32(${t.max}));\\n`,t.cacheKey),{inputs:[0]});},t.clip=e=>{const n=(e=>{const t=e.length>=2?e[1].getFloat32Array()[0]:r.MIN_CLIP,n=e.length>=3?e[2].getFloat32Array()[0]:r.MAX_CLIP;return (0, o.createAttributeWithCacheKey)({min:t,max:n})})(e.inputs);(0, t.clipV10)(e,n);},t.ceil=e=>{e.compute(a(e.inputs[0],\"Ceil\",\"ceil\"));},t.cos=e=>{e.compute(a(e.inputs[0],\"Cos\",\"cos\"));},t.cosh=e=>{e.compute(a(e.inputs[0],\"Cosh\",\"cosh\"));},t.parseAlphaAttributes=e=>(0, o.createAttributeWithCacheKey)(e),t.elu=(e,t)=>{e.compute(a(e.inputs[0],\"Elu\",(e=>`elu_vf32(${e})`),`\\n const elu_alpha_: f32 = f32(${t.alpha});\\n\\n fn elu_f32(a: f32) -> f32 {\\n return select((exp(a) - 1.0) * elu_alpha_, a, a >= 0.0);\\n }\\n\\n fn elu_vf32(v: vec4) -> vec4 {\\n return vec4(elu_f32(v.x), elu_f32(v.y), elu_f32(v.z), elu_f32(v.w));\\n }`,t.cacheKey));},t.erf=e=>{e.compute(a(e.inputs[0],\"Erf\",(e=>`erf_vf32(${e})`),\"\\n const r0: f32 = 0.3275911;\\n const r1: f32 = 0.254829592;\\n const r2: f32 = -0.284496736;\\n const r3: f32 = 1.421413741;\\n const r4: f32 = -1.453152027;\\n const r5: f32 = 1.061405429;\\n\\n fn erf_vf32(v: vec4) -> vec4 {\\n let absv = abs(v);\\n let x = 1.0 / (1.0 + r0 * absv);\\n return sign(v) * (1.0 - ((((r5 * x + r4) * x + r3) * x + r2) * x + r1) * x * exp(-absv * absv));\\n }\"));},t.exp=e=>{e.compute(a(e.inputs[0],\"Exp\",\"exp\"));},t.floor=e=>{e.compute(a(e.inputs[0],\"Floor\",\"floor\"));},t.leakyRelu=(e,t)=>{e.compute(a(e.inputs[0],\"LeakyRelu\",(e=>`select(leaky_relu_alpha_ * ${e}, ${e}, ${e} >= vec4(0.0))`),`const leaky_relu_alpha_: f32 = f32(${t.alpha});`,t.cacheKey));},t.neg=e=>{e.compute(a(e.inputs[0],\"Neg\",(e=>`-${e}`)));},t.reciprocal=e=>{e.compute(a(e.inputs[0],\"Reciprocal\",(e=>`1.0/${e}`)));},t.relu=e=>{e.compute(a(e.inputs[0],\"Relu\",(e=>`select(vec4(0.0), ${e}, ${e} > vec4(0.0))`)));},t.sigmoid=e=>{e.compute(a(e.inputs[0],\"Sigmoid\",(e=>`(1.0 / (1.0 + exp(-${e})))`)));},t.sin=e=>{e.compute(a(e.inputs[0],\"Sin\",\"sin\"));},t.sinh=e=>{e.compute(a(e.inputs[0],\"Sinh\",\"sinh\"));},t.sqrt=e=>{e.compute(a(e.inputs[0],\"Sqrt\",\"sqrt\"));},t.tan=e=>{e.compute(a(e.inputs[0],\"Tan\",\"tan\"));},t.tanh=e=>{e.compute(a(e.inputs[0],\"Tanh\",\"tanh\"));},t.thresholdedRelu=(e,t)=>(e.compute(a(e.inputs[0],\"ThresholdedRelu\",(e=>`select(vec4(0.0), ${e}, ${e} > thresholded_relu_alpha_)`),`const thresholded_relu_alpha_: vec4 = vec4(${t.alpha});`,t.cacheKey)),0);},8305:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ProgramManager=void 0;const r=n(4955),o=n(2075);t.ProgramManager=class{constructor(e){this.backend=e,this.repo=new Map,this.attributesBound=!1;}getArtifact(e){return this.repo.get(e)}setArtifact(e,t){this.repo.set(e,t);}run(e,t,n,r){const o=this.backend.device,i=this.backend.getComputePassEncoder();this.backend.profilingEnabled&&i.writeTimestamp(this.backend.profilingQuerySet,0),i.setPipeline(e.computePipeline);const a=[];for(const e of t)a.push({binding:a.length,resource:{buffer:e.buffer}});for(const e of n)a.push({binding:a.length,resource:{buffer:e.buffer}});const s=o.createBindGroup({layout:e.computePipeline.getBindGroupLayout(0),entries:a});if(i.setBindGroup(0,s),i.dispatchWorkgroups(...r),this.backend.pendingDispatchNumber++,this.backend.profilingEnabled){i.writeTimestamp(this.backend.profilingQuerySet,1);const e=this.backend.gpuDataManager.create(16,GPUBufferUsage.COPY_SRC|GPUBufferUsage.QUERY_RESOLVE),t=this.backend.gpuDataManager.create(16,GPUBufferUsage.MAP_READ|GPUBufferUsage.COPY_DST);this.backend.endComputePass(),this.backend.getCommandEncoder().resolveQuerySet(this.backend.profilingQuerySet,0,2,e.buffer,0),this.backend.getCommandEncoder().copyBufferToBuffer(e.buffer,0,t.buffer,0,16),this.backend.flush();const n=this.backend.currentKernelId,r=this.backend.kernels.get(n)[0];t.buffer.mapAsync(GPUMapMode.READ).then((()=>{const o=new BigUint64Array(t.buffer.getMappedRange()),i=o[0],a=o[1];t.buffer.unmap(),void 0===this.backend.profilingTimeBase&&(this.backend.profilingTimeBase=i);const s=Number(i-this.backend.profilingTimeBase),u=Number(a-this.backend.profilingTimeBase);if(!Number.isSafeInteger(s)||!Number.isSafeInteger(u))throw new RangeError(\"incorrect timestamp range\");this.backend.gpuDataManager.release(e.id),this.backend.gpuDataManager.release(t.id),console.log(`[profiling] kernel \"${n}|${r}\" execution time: ${u-s} ns`);}));}this.backend.pendingDispatchNumber>=16&&this.backend.flush();}dispose(){}build(e,t){const n=this.backend.device,i=e.getShaderSource((0, o.createShaderHelper)(t)),a=n.createShaderModule({code:i});return (0, r.LOG_DEBUG)(\"verbose\",(()=>`[WebGPU] shader code: ${i}`)),{programInfo:e,computePipeline:n.createComputePipeline({compute:{module:a,entryPoint:\"main\"},layout:\"auto\"})}}normalizeDispatchGroupSize(e){const t=\"number\"==typeof e?e:e.x,n=\"number\"==typeof e?1:e.y||1,r=\"number\"==typeof e?1:e.z||1,o=this.backend.device.limits.maxComputeWorkgroupsPerDimension;if(t<=o&&n<=o&&r<=o)return [t,n,r];const i=t*n*r;let a=Math.ceil(Math.sqrt(i));if(a>o){if(a=Math.ceil(Math.cbrt(i)),a>o)throw new Error(\"Total dispatch size exceeds WebGPU maximum.\");return [a,a,a]}return [a,a,1]}};},1163:(e,t)=>{var n;Object.defineProperty(t,\"__esModule\",{value:!0}),t.GpuDataType=void 0,(n=t.GpuDataType||(t.GpuDataType={}))[n.default=0]=\"default\",n[n.upload=1]=\"upload\",n[n.profile=2]=\"profile\";},3899:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.iterateExtraOptions=void 0,t.iterateExtraOptions=(e,n,r,o)=>{if(\"object\"==typeof e&&null!==e){if(r.has(e))throw new Error(\"Circular reference in options\");r.add(e);}Object.entries(e).forEach((([e,i])=>{const a=n?n+e:e;if(\"object\"==typeof i)(0, t.iterateExtraOptions)(i,a+\".\",r,o);else if(\"string\"==typeof i||\"number\"==typeof i)o(a,i.toString());else {if(\"boolean\"!=typeof i)throw new Error(\"Can't handle extra config type: \"+typeof i);o(a,i?\"1\":\"0\");}}));};},9544:function(e,t,n){var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!(\"get\"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o);}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n];}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,\"__esModule\",{value:!0}),t.endProfiling=t.run=t.releaseSession=t.createSession=t.createSessionFinalize=t.createSessionAllocate=t.initOrt=t.initWasm=void 0;const s=n(8453),u=n(7675),l=a(n(1259)),c=n(263),p=()=>!!s.env.wasm.proxy&&\"undefined\"!=typeof document;let d,f,h,g=!1,m=!1,b=!1;const y=[],w=[],_=[],v=[],x=[],T=[],S=()=>{if(g||!m||b||!d)throw new Error(\"worker not ready\")},O=e=>{switch(e.data.type){case\"init-wasm\":g=!1,e.data.err?(b=!0,f[1](e.data.err)):(m=!0,f[0]());break;case\"init-ort\":e.data.err?h[1](e.data.err):h[0]();break;case\"create_allocate\":e.data.err?y.shift()[1](e.data.err):y.shift()[0](e.data.out);break;case\"create_finalize\":e.data.err?w.shift()[1](e.data.err):w.shift()[0](e.data.out);break;case\"create\":e.data.err?_.shift()[1](e.data.err):_.shift()[0](e.data.out);break;case\"release\":e.data.err?v.shift()[1](e.data.err):v.shift()[0]();break;case\"run\":e.data.err?x.shift()[1](e.data.err):x.shift()[0](e.data.out);break;case\"end-profiling\":e.data.err?T.shift()[1](e.data.err):T.shift()[0]();}},A=\"undefined\"!=typeof document?null===(r=null===document||void 0===document?void 0:document.currentScript)||void 0===r?void 0:r.src:void 0;t.initWasm=async()=>{if(p()){if(m)return;if(g)throw new Error(\"multiple calls to 'initWasm()' detected.\");if(b)throw new Error(\"previous call to 'initWasm()' failed.\");return g=!0,void 0===s.env.wasm.wasmPaths&&A&&0!==A.indexOf(\"blob:\")&&(s.env.wasm.wasmPaths=A.substr(0,+A.lastIndexOf(\"/\")+1)),new Promise(((e,t)=>{null==d||d.terminate(),d=n(8050).Z(),d.onmessage=O,f=[e,t];const r={type:\"init-wasm\",in:s.env.wasm};d.postMessage(r);}))}return (0, c.initializeWebAssembly)(s.env.wasm)},t.initOrt=async(e,t)=>{if(p())return S(),new Promise(((n,r)=>{h=[n,r];const o={type:\"init-ort\",in:{numThreads:e,loggingLevel:t}};d.postMessage(o);}));l.initOrt(e,t),await(0, u.init)((0, c.getInstance)());},t.createSessionAllocate=async e=>p()?(S(),new Promise(((t,n)=>{y.push([t,n]);const r={type:\"create_allocate\",in:{model:e}};d.postMessage(r,[e.buffer]);}))):l.createSessionAllocate(e),t.createSessionFinalize=async(e,t)=>p()?(S(),new Promise(((n,r)=>{w.push([n,r]);const o={type:\"create_finalize\",in:{modeldata:e,options:t}};d.postMessage(o);}))):l.createSessionFinalize(e,t),t.createSession=async(e,t)=>p()?(S(),new Promise(((n,r)=>{_.push([n,r]);const o={type:\"create\",in:{model:e,options:t}};d.postMessage(o,[e.buffer]);}))):l.createSession(e,t),t.releaseSession=async e=>{if(p())return S(),new Promise(((t,n)=>{v.push([t,n]);const r={type:\"release\",in:e};d.postMessage(r);}));l.releaseSession(e);},t.run=async(e,t,n,r,o)=>p()?(S(),new Promise(((i,a)=>{x.push([i,a]);const s={type:\"run\",in:{sessionId:e,inputIndices:t,inputs:n,outputIndices:r,options:o}};d.postMessage(s,l.extractTransferableBuffers(n));}))):l.run(e,t,n,r,o),t.endProfiling=async e=>{if(p())return S(),new Promise(((t,n)=>{T.push([t,n]);const r={type:\"end-profiling\",in:e};d.postMessage(r);}));l.endProfiling(e);};},7918:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.setRunOptions=void 0;const r=n(3899),o=n(9444),i=n(263);t.setRunOptions=e=>{const t=(0, i.getInstance)();let n=0;const a=[],s=e||{};try{if(void 0===(null==e?void 0:e.logSeverityLevel))s.logSeverityLevel=2;else if(\"number\"!=typeof e.logSeverityLevel||!Number.isInteger(e.logSeverityLevel)||e.logSeverityLevel<0||e.logSeverityLevel>4)throw new Error(`log serverity level is not valid: ${e.logSeverityLevel}`);if(void 0===(null==e?void 0:e.logVerbosityLevel))s.logVerbosityLevel=0;else if(\"number\"!=typeof e.logVerbosityLevel||!Number.isInteger(e.logVerbosityLevel))throw new Error(`log verbosity level is not valid: ${e.logVerbosityLevel}`);void 0===(null==e?void 0:e.terminate)&&(s.terminate=!1);let i=0;if(void 0!==(null==e?void 0:e.tag)&&(i=(0,o.allocWasmString)(e.tag,a)),n=t._OrtCreateRunOptions(s.logSeverityLevel,s.logVerbosityLevel,!!s.terminate,i),0===n)throw new Error(\"Can't create run options\");return void 0!==(null==e?void 0:e.extra)&&(0,r.iterateExtraOptions)(e.extra,\"\",new WeakSet,((e,r)=>{const i=(0,o.allocWasmString)(e,a),s=(0,o.allocWasmString)(r,a);if(0!==t._OrtAddRunConfigEntry(n,i,s))throw new Error(`Can't set a run config entry: ${e} - ${r}`)})),[n,a]}catch(e){throw 0!==n&&t._OrtReleaseRunOptions(n),a.forEach(t._free),e}};},6640:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.OnnxruntimeWebAssemblySessionHandler=void 0;const r=n(2806),o=n(8453),i=n(2850),a=n(9544),s=n(7917);let u;t.OnnxruntimeWebAssemblySessionHandler=class{async createSessionAllocate(e){const t=await fetch(e),n=await t.arrayBuffer();return (0, a.createSessionAllocate)(new Uint8Array(n))}async loadModel(e,t){if(u||(await(0, a.initOrt)(o.env.wasm.numThreads,(0, s.logLevelStringToEnum)(o.env.logLevel)),u=!0),\"string\"==typeof e)if(\"undefined\"==typeof fetch){const n=await(0, i.promisify)(r.readFile)(e);[this.sessionId,this.inputNames,this.outputNames]=await(0, a.createSession)(n,t);}else {const n=await this.createSessionAllocate(e);[this.sessionId,this.inputNames,this.outputNames]=await(0, a.createSessionFinalize)(n,t);}else [this.sessionId,this.inputNames,this.outputNames]=await(0, a.createSession)(e,t);}async dispose(){return (0, a.releaseSession)(this.sessionId)}async run(e,t,n){const r=[],i=[];Object.entries(e).forEach((e=>{const t=e[0],n=e[1],o=this.inputNames.indexOf(t);if(-1===o)throw new Error(`invalid input '${t}'`);r.push(n),i.push(o);}));const s=[];Object.entries(t).forEach((e=>{const t=e[0],n=this.outputNames.indexOf(t);if(-1===n)throw new Error(`invalid output '${t}'`);s.push(n);}));const u=await(0, a.run)(this.sessionId,i,r.map((e=>[e.type,e.dims,e.data])),s,n),l={};for(let e=0;e{Object.defineProperty(t,\"__esModule\",{value:!0}),t.setSessionOptions=void 0;const r=n(3899),o=n(9444),i=n(263);t.setSessionOptions=e=>{var t,n,a,s;const u=(0, i.getInstance)();let l=0;const c=[],p=e||{};(e=>{e.extra||(e.extra={}),e.extra.session||(e.extra.session={});const t=e.extra.session;t.use_ort_model_bytes_directly||(t.use_ort_model_bytes_directly=\"1\"),e.executionProviders&&e.executionProviders.some((e=>\"webgpu\"===(\"string\"==typeof e?e:e.name)))&&(e.enableMemPattern=!1);})(p);try{const e=(e=>{switch(e){case\"disabled\":return 0;case\"basic\":return 1;case\"extended\":return 2;case\"all\":return 99;default:throw new Error(`unsupported graph optimization level: ${e}`)}})(null!==(t=p.graphOptimizationLevel)&&void 0!==t?t:\"all\"),d=(e=>{switch(e){case\"sequential\":return 0;case\"parallel\":return 1;default:throw new Error(`unsupported execution mode: ${e}`)}})(null!==(n=p.executionMode)&&void 0!==n?n:\"sequential\"),f=\"string\"==typeof p.logId?(0,o.allocWasmString)(p.logId,c):0,h=null!==(a=p.logSeverityLevel)&&void 0!==a?a:2;if(!Number.isInteger(h)||h<0||h>4)throw new Error(`log serverity level is not valid: ${h}`);const g=null!==(s=p.logVerbosityLevel)&&void 0!==s?s:0;if(!Number.isInteger(g)||g<0||g>4)throw new Error(`log verbosity level is not valid: ${g}`);const m=\"string\"==typeof p.optimizedModelFilePath?(0,o.allocWasmString)(p.optimizedModelFilePath,c):0;if(l=u._OrtCreateSessionOptions(e,!!p.enableCpuMemArena,!!p.enableMemPattern,d,!!p.enableProfiling,0,f,h,g,m),0===l)throw new Error(\"Can't create session options\");return p.executionProviders&&((e,t,n)=>{for(const r of t){let t=\"string\"==typeof r?r:r.name;switch(t){case\"xnnpack\":t=\"XNNPACK\";break;case\"webgpu\":t=\"JS\";break;case\"wasm\":case\"cpu\":continue;default:throw new Error(`not supported EP: ${t}`)}const a=(0,o.allocWasmString)(t,n);if(0!==(0,i.getInstance)()._OrtAppendExecutionProvider(e,a))throw new Error(`Can't append execution provider: ${t}`)}})(l,p.executionProviders,c),void 0!==p.extra&&(0,r.iterateExtraOptions)(p.extra,\"\",new WeakSet,((e,t)=>{const n=(0,o.allocWasmString)(e,c),r=(0,o.allocWasmString)(t,c);if(0!==u._OrtAddSessionConfigEntry(l,n,r))throw new Error(`Can't set a session config entry: ${e} - ${t}`)})),[l,c]}catch(e){throw 0!==l&&u._OrtReleaseSessionOptions(l),c.forEach(u._free),e}};},9444:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.allocWasmString=void 0;const r=n(263);t.allocWasmString=(e,t)=>{const n=(0, r.getInstance)(),o=n.lengthBytesUTF8(e)+1,i=n._malloc(o);return n.stringToUTF8(e,i,o),t.push(i),i};},7917:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.logLevelStringToEnum=t.tensorTypeToTypedArrayConstructor=t.getTensorElementSize=t.tensorDataTypeEnumToString=t.tensorDataTypeStringToEnum=void 0,t.tensorDataTypeStringToEnum=e=>{switch(e){case\"int8\":return 3;case\"uint8\":return 2;case\"bool\":return 9;case\"int16\":return 5;case\"uint16\":return 4;case\"int32\":return 6;case\"uint32\":return 12;case\"float32\":return 1;case\"float64\":return 11;case\"string\":return 8;case\"int64\":return 7;case\"uint64\":return 13;default:throw new Error(`unsupported data type: ${e}`)}},t.tensorDataTypeEnumToString=e=>{switch(e){case 3:return \"int8\";case 2:return \"uint8\";case 9:return \"bool\";case 5:return \"int16\";case 4:return \"uint16\";case 6:return \"int32\";case 12:return \"uint32\";case 1:return \"float32\";case 11:return \"float64\";case 8:return \"string\";case 7:return \"int64\";case 13:return \"uint64\";default:throw new Error(`unsupported data type: ${e}`)}},t.getTensorElementSize=e=>[void 0,4,1,1,2,2,4,8,void 0,1,2,8,4,8,void 0,void 0,void 0][e],t.tensorTypeToTypedArrayConstructor=e=>{switch(e){case\"float32\":return Float32Array;case\"uint8\":case\"bool\":return Uint8Array;case\"int8\":return Int8Array;case\"uint16\":return Uint16Array;case\"int16\":return Int16Array;case\"int32\":return Int32Array;case\"float64\":return Float64Array;case\"uint32\":return Uint32Array;case\"int64\":return BigInt64Array;case\"uint64\":return BigUint64Array;default:throw new Error(`unsupported type: ${e}`)}},t.logLevelStringToEnum=e=>{switch(e){case\"verbose\":return 0;case\"info\":return 1;case\"warning\":return 2;case\"error\":return 3;case\"fatal\":return 4;default:throw new Error(`unsupported logging level: ${e}`)}};},1259:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.extractTransferableBuffers=t.endProfiling=t.run=t.releaseSession=t.createSession=t.createSessionFinalize=t.createSessionAllocate=t.initOrt=void 0;const r=n(7918),o=n(7622),i=n(9444),a=n(7917),s=n(263);t.initOrt=(e,t)=>{const n=(0, s.getInstance)()._OrtInit(e,t);if(0!==n)throw new Error(`Can't initialize onnxruntime. error code = ${n}`)};const u=new Map;t.createSessionAllocate=e=>{const t=(0, s.getInstance)(),n=t._malloc(e.byteLength);return t.HEAPU8.set(e,n),[n,e.byteLength]},t.createSessionFinalize=(e,t)=>{const n=(0, s.getInstance)();let r=0,i=0,a=[];try{if([i,a]=(0,o.setSessionOptions)(t),r=n._OrtCreateSession(e[0],e[1],i),0===r)throw new Error(\"Can't create a session\")}finally{n._free(e[0]),0!==i&&n._OrtReleaseSessionOptions(i),a.forEach(n._free);}const l=n._OrtGetInputCount(r),c=n._OrtGetOutputCount(r),p=[],d=[],f=[],h=[];for(let e=0;e{const r=(0, t.createSessionAllocate)(e);return (0, t.createSessionFinalize)(r,n)},t.releaseSession=e=>{const t=(0, s.getInstance)(),n=u.get(e);if(!n)throw new Error(\"invalid session id\");const r=n[0],o=n[1],i=n[2];o.forEach(t._OrtFree),i.forEach(t._OrtFree),t._OrtReleaseSession(r),u.delete(e);},t.run=async(e,t,n,o,l)=>{const c=(0, s.getInstance)(),p=u.get(e);if(!p)throw new Error(\"invalid session id\");const d=p[0],f=p[1],h=p[2],g=t.length,m=o.length;let b=0,y=[];const w=[],_=[];try{[b,y]=(0,r.setRunOptions)(l);for(let e=0;ec.HEAP32[e++]=t));const n=c._OrtCreateTensor((0,a.tensorDataTypeStringToEnum)(t),s,u,p,r.length);if(0===n)throw new Error(\"Can't create a tensor\");w.push(n);}finally{c.stackRestore(l);}}const e=c.stackSave(),s=c.stackAlloc(4*g),u=c.stackAlloc(4*g),p=c.stackAlloc(4*m),v=c.stackAlloc(4*m);try{let e=s/4,n=u/4,r=p/4,i=v/4;for(let r=0;re*t));if(o=(0,a.tensorDataTypeEnumToString)(n),\"string\"===o){const e=[];let t=i/4;for(let n=0;n{const t=(0, s.getInstance)(),n=u.get(e);if(!n)throw new Error(\"invalid session id\");const r=n[0],o=t._OrtEndProfiling(r);if(0===o)throw new Error(\"Can't get an profile file name\");t._OrtFree(o);},t.extractTransferableBuffers=e=>{const t=[];for(const n of e){const e=n[2];!Array.isArray(e)&&e.buffer&&t.push(e.buffer);}return t};},263:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!(\"get\"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o);}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n];}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,\"__esModule\",{value:!0}),t.dispose=t.getInstance=t.initializeWebAssembly=void 0;const a=i(n(6449)),s=n(932),u=n(3474);let l,c=!1,p=!1,d=!1;t.initializeWebAssembly=async e=>{if(c)return Promise.resolve();if(p)throw new Error(\"multiple calls to 'initializeWebAssembly()' detected.\");if(d)throw new Error(\"previous call to 'initializeWebAssembly()' failed.\");p=!0;const t=e.initTimeout,r=e.numThreads,o=e.simd,i=r>1&&(()=>{try{return \"undefined\"!=typeof SharedArrayBuffer&&(\"undefined\"!=typeof MessageChannel&&(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11])))}catch(e){return !1}})(),f=o&&(()=>{try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,30,1,28,0,65,0,253,15,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,253,186,1,26,11]))}catch(e){return !1}})(),h=e.wasmPaths,g=\"string\"==typeof h?h:void 0,m=((e,t)=>t?e?\"ort-wasm-simd-threaded.wasm\":\"ort-wasm-threaded.wasm\":e?\"ort-wasm-simd.wasm\":\"ort-wasm.wasm\")(f,i),b=\"object\"==typeof h?h[m]:void 0;let y=!1;const w=[];if(t>0&&w.push(new Promise((e=>{setTimeout((()=>{y=!0,e();}),t);}))),w.push(new Promise(((e,t)=>{const r=i?u:s,o={locateFile:(e,t)=>i&&e.endsWith(\".worker.js\")&&\"undefined\"!=typeof Blob?URL.createObjectURL(new Blob([n(4154)],{type:\"text/javascript\"})):e.endsWith(\".wasm\")?b||(null!=g?g:t)+m:t+e};if(i)if(\"undefined\"==typeof Blob)o.mainScriptUrlOrBlob=a.join(\"/\",\"ort-wasm-threaded.js\");else {const e=`var ortWasmThreaded=(function(){var _scriptDir;return ${r.toString()}})();`;o.mainScriptUrlOrBlob=new Blob([e],{type:\"text/javascript\"});}r(o).then((t=>{p=!1,c=!0,l=t,e();}),(e=>{p=!1,d=!0,t(e);}));}))),await Promise.race(w),y)throw new Error(`WebAssembly backend initializing failed due to timeout: ${t}ms`)},t.getInstance=()=>{if(c&&l)return l;throw new Error(\"WebAssembly is not initialized yet.\")},t.dispose=()=>{var e;!c||p||d||(p=!0,null===(e=l.PThread)||void 0===e||e.terminateAllThreads(),l=void 0,p=!1,c=!1,d=!0);};},8050:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(6614),o=n.n(r);function i(){return o()('/*!\\n* ONNX Runtime Web v1.15.1\\n* Copyright (c) Microsoft Corporation. All rights reserved.\\n* Licensed under the MIT License.\\n*/\\n(()=>{var e={899:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.iterateExtraOptions=void 0,t.iterateExtraOptions=(e,n,r,a)=>{if(\"object\"==typeof e&&null!==e){if(r.has(e))throw new Error(\"Circular reference in options\");r.add(e)}Object.entries(e).forEach((([e,o])=>{const i=n?n+e:e;if(\"object\"==typeof o)(0,t.iterateExtraOptions)(o,i+\".\",r,a);else if(\"string\"==typeof o||\"number\"==typeof o)a(i,o.toString());else{if(\"boolean\"!=typeof o)throw new Error(\"Can\\'t handle extra config type: \"+typeof o);a(i,o?\"1\":\"0\")}}))}},918:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.setRunOptions=void 0;const r=n(899),a=n(444),o=n(263);t.setRunOptions=e=>{const t=(0,o.getInstance)();let n=0;const i=[],s=e||{};try{if(void 0===(null==e?void 0:e.logSeverityLevel))s.logSeverityLevel=2;else if(\"number\"!=typeof e.logSeverityLevel||!Number.isInteger(e.logSeverityLevel)||e.logSeverityLevel<0||e.logSeverityLevel>4)throw new Error(`log serverity level is not valid: ${e.logSeverityLevel}`);if(void 0===(null==e?void 0:e.logVerbosityLevel))s.logVerbosityLevel=0;else if(\"number\"!=typeof e.logVerbosityLevel||!Number.isInteger(e.logVerbosityLevel))throw new Error(`log verbosity level is not valid: ${e.logVerbosityLevel}`);void 0===(null==e?void 0:e.terminate)&&(s.terminate=!1);let o=0;if(void 0!==(null==e?void 0:e.tag)&&(o=(0,a.allocWasmString)(e.tag,i)),n=t._OrtCreateRunOptions(s.logSeverityLevel,s.logVerbosityLevel,!!s.terminate,o),0===n)throw new Error(\"Can\\'t create run options\");return void 0!==(null==e?void 0:e.extra)&&(0,r.iterateExtraOptions)(e.extra,\"\",new WeakSet,((e,r)=>{const o=(0,a.allocWasmString)(e,i),s=(0,a.allocWasmString)(r,i);if(0!==t._OrtAddRunConfigEntry(n,o,s))throw new Error(`Can\\'t set a run config entry: ${e} - ${r}`)})),[n,i]}catch(e){throw 0!==n&&t._OrtReleaseRunOptions(n),i.forEach(t._free),e}}},622:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.setSessionOptions=void 0;const r=n(899),a=n(444),o=n(263);t.setSessionOptions=e=>{var t,n,i,s;const u=(0,o.getInstance)();let c=0;const l=[],f=e||{};(e=>{e.extra||(e.extra={}),e.extra.session||(e.extra.session={});const t=e.extra.session;t.use_ort_model_bytes_directly||(t.use_ort_model_bytes_directly=\"1\"),e.executionProviders&&e.executionProviders.some((e=>\"webgpu\"===(\"string\"==typeof e?e:e.name)))&&(e.enableMemPattern=!1)})(f);try{const e=(e=>{switch(e){case\"disabled\":return 0;case\"basic\":return 1;case\"extended\":return 2;case\"all\":return 99;default:throw new Error(`unsupported graph optimization level: ${e}`)}})(null!==(t=f.graphOptimizationLevel)&&void 0!==t?t:\"all\"),p=(e=>{switch(e){case\"sequential\":return 0;case\"parallel\":return 1;default:throw new Error(`unsupported execution mode: ${e}`)}})(null!==(n=f.executionMode)&&void 0!==n?n:\"sequential\"),d=\"string\"==typeof f.logId?(0,a.allocWasmString)(f.logId,l):0,m=null!==(i=f.logSeverityLevel)&&void 0!==i?i:2;if(!Number.isInteger(m)||m<0||m>4)throw new Error(`log serverity level is not valid: ${m}`);const g=null!==(s=f.logVerbosityLevel)&&void 0!==s?s:0;if(!Number.isInteger(g)||g<0||g>4)throw new Error(`log verbosity level is not valid: ${g}`);const h=\"string\"==typeof f.optimizedModelFilePath?(0,a.allocWasmString)(f.optimizedModelFilePath,l):0;if(c=u._OrtCreateSessionOptions(e,!!f.enableCpuMemArena,!!f.enableMemPattern,p,!!f.enableProfiling,0,d,m,g,h),0===c)throw new Error(\"Can\\'t create session options\");return f.executionProviders&&((e,t,n)=>{for(const r of t){let t=\"string\"==typeof r?r:r.name;switch(t){case\"xnnpack\":t=\"XNNPACK\";break;case\"webgpu\":t=\"JS\";break;case\"wasm\":case\"cpu\":continue;default:throw new Error(`not supported EP: ${t}`)}const i=(0,a.allocWasmString)(t,n);if(0!==(0,o.getInstance)()._OrtAppendExecutionProvider(e,i))throw new Error(`Can\\'t append execution provider: ${t}`)}})(c,f.executionProviders,l),void 0!==f.extra&&(0,r.iterateExtraOptions)(f.extra,\"\",new WeakSet,((e,t)=>{const n=(0,a.allocWasmString)(e,l),r=(0,a.allocWasmString)(t,l);if(0!==u._OrtAddSessionConfigEntry(c,n,r))throw new Error(`Can\\'t set a session config entry: ${e} - ${t}`)})),[c,l]}catch(e){throw 0!==c&&u._OrtReleaseSessionOptions(c),l.forEach(u._free),e}}},444:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.allocWasmString=void 0;const r=n(263);t.allocWasmString=(e,t)=>{const n=(0,r.getInstance)(),a=n.lengthBytesUTF8(e)+1,o=n._malloc(a);return n.stringToUTF8(e,o,a),t.push(o),o}},917:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.logLevelStringToEnum=t.tensorTypeToTypedArrayConstructor=t.getTensorElementSize=t.tensorDataTypeEnumToString=t.tensorDataTypeStringToEnum=void 0,t.tensorDataTypeStringToEnum=e=>{switch(e){case\"int8\":return 3;case\"uint8\":return 2;case\"bool\":return 9;case\"int16\":return 5;case\"uint16\":return 4;case\"int32\":return 6;case\"uint32\":return 12;case\"float32\":return 1;case\"float64\":return 11;case\"string\":return 8;case\"int64\":return 7;case\"uint64\":return 13;default:throw new Error(`unsupported data type: ${e}`)}},t.tensorDataTypeEnumToString=e=>{switch(e){case 3:return\"int8\";case 2:return\"uint8\";case 9:return\"bool\";case 5:return\"int16\";case 4:return\"uint16\";case 6:return\"int32\";case 12:return\"uint32\";case 1:return\"float32\";case 11:return\"float64\";case 8:return\"string\";case 7:return\"int64\";case 13:return\"uint64\";default:throw new Error(`unsupported data type: ${e}`)}},t.getTensorElementSize=e=>[void 0,4,1,1,2,2,4,8,void 0,1,2,8,4,8,void 0,void 0,void 0][e],t.tensorTypeToTypedArrayConstructor=e=>{switch(e){case\"float32\":return Float32Array;case\"uint8\":case\"bool\":return Uint8Array;case\"int8\":return Int8Array;case\"uint16\":return Uint16Array;case\"int16\":return Int16Array;case\"int32\":return Int32Array;case\"float64\":return Float64Array;case\"uint32\":return Uint32Array;case\"int64\":return BigInt64Array;case\"uint64\":return BigUint64Array;default:throw new Error(`unsupported type: ${e}`)}},t.logLevelStringToEnum=e=>{switch(e){case\"verbose\":return 0;case\"info\":return 1;case\"warning\":return 2;case\"error\":return 3;case\"fatal\":return 4;default:throw new Error(`unsupported logging level: ${e}`)}}},259:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.extractTransferableBuffers=t.endProfiling=t.run=t.releaseSession=t.createSession=t.createSessionFinalize=t.createSessionAllocate=t.initOrt=void 0;const r=n(918),a=n(622),o=n(444),i=n(917),s=n(263);t.initOrt=(e,t)=>{const n=(0,s.getInstance)()._OrtInit(e,t);if(0!==n)throw new Error(`Can\\'t initialize onnxruntime. error code = ${n}`)};const u=new Map;t.createSessionAllocate=e=>{const t=(0,s.getInstance)(),n=t._malloc(e.byteLength);return t.HEAPU8.set(e,n),[n,e.byteLength]},t.createSessionFinalize=(e,t)=>{const n=(0,s.getInstance)();let r=0,o=0,i=[];try{if([o,i]=(0,a.setSessionOptions)(t),r=n._OrtCreateSession(e[0],e[1],o),0===r)throw new Error(\"Can\\'t create a session\")}finally{n._free(e[0]),0!==o&&n._OrtReleaseSessionOptions(o),i.forEach(n._free)}const c=n._OrtGetInputCount(r),l=n._OrtGetOutputCount(r),f=[],p=[],d=[],m=[];for(let e=0;e{const r=(0,t.createSessionAllocate)(e);return(0,t.createSessionFinalize)(r,n)},t.releaseSession=e=>{const t=(0,s.getInstance)(),n=u.get(e);if(!n)throw new Error(\"invalid session id\");const r=n[0],a=n[1],o=n[2];a.forEach(t._OrtFree),o.forEach(t._OrtFree),t._OrtReleaseSession(r),u.delete(e)},t.run=async(e,t,n,a,c)=>{const l=(0,s.getInstance)(),f=u.get(e);if(!f)throw new Error(\"invalid session id\");const p=f[0],d=f[1],m=f[2],g=t.length,h=a.length;let y=0,v=[];const b=[],w=[];try{[y,v]=(0,r.setRunOptions)(c);for(let e=0;el.HEAP32[e++]=t));const n=l._OrtCreateTensor((0,i.tensorDataTypeStringToEnum)(t),s,u,f,r.length);if(0===n)throw new Error(\"Can\\'t create a tensor\");b.push(n)}finally{l.stackRestore(c)}}const e=l.stackSave(),s=l.stackAlloc(4*g),u=l.stackAlloc(4*g),f=l.stackAlloc(4*h),_=l.stackAlloc(4*h);try{let e=s/4,n=u/4,r=f/4,o=_/4;for(let r=0;re*t));if(a=(0,i.tensorDataTypeEnumToString)(n),\"string\"===a){const e=[];let t=o/4;for(let n=0;n{const t=(0,s.getInstance)(),n=u.get(e);if(!n)throw new Error(\"invalid session id\");const r=n[0],a=t._OrtEndProfiling(r);if(0===a)throw new Error(\"Can\\'t get an profile file name\");t._OrtFree(a)},t.extractTransferableBuffers=e=>{const t=[];for(const n of e){const e=n[2];!Array.isArray(e)&&e.buffer&&t.push(e.buffer)}return t}},263:function(e,t,n){\"use strict\";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!(\"get\"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,\"default\",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)\"default\"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,\"__esModule\",{value:!0}),t.dispose=t.getInstance=t.initializeWebAssembly=void 0;const i=o(n(449)),s=n(932),u=n(474);let c,l=!1,f=!1,p=!1;t.initializeWebAssembly=async e=>{if(l)return Promise.resolve();if(f)throw new Error(\"multiple calls to \\'initializeWebAssembly()\\' detected.\");if(p)throw new Error(\"previous call to \\'initializeWebAssembly()\\' failed.\");f=!0;const t=e.initTimeout,r=e.numThreads,a=e.simd,o=r>1&&(()=>{try{return\"undefined\"!=typeof SharedArrayBuffer&&(\"undefined\"!=typeof MessageChannel&&(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11])))}catch(e){return!1}})(),d=a&&(()=>{try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,30,1,28,0,65,0,253,15,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,253,186,1,26,11]))}catch(e){return!1}})(),m=e.wasmPaths,g=\"string\"==typeof m?m:void 0,h=((e,t)=>t?e?\"ort-wasm-simd-threaded.wasm\":\"ort-wasm-threaded.wasm\":e?\"ort-wasm-simd.wasm\":\"ort-wasm.wasm\")(d,o),y=\"object\"==typeof m?m[h]:void 0;let v=!1;const b=[];if(t>0&&b.push(new Promise((e=>{setTimeout((()=>{v=!0,e()}),t)}))),b.push(new Promise(((e,t)=>{const r=o?u:s,a={locateFile:(e,t)=>o&&e.endsWith(\".worker.js\")&&\"undefined\"!=typeof Blob?URL.createObjectURL(new Blob([n(154)],{type:\"text/javascript\"})):e.endsWith(\".wasm\")?y||(null!=g?g:t)+h:t+e};if(o)if(\"undefined\"==typeof Blob)a.mainScriptUrlOrBlob=i.join(\"/\",\"ort-wasm-threaded.js\");else{const e=`var ortWasmThreaded=(function(){var _scriptDir;return ${r.toString()}})();`;a.mainScriptUrlOrBlob=new Blob([e],{type:\"text/javascript\"})}r(a).then((t=>{f=!1,l=!0,c=t,e()}),(e=>{f=!1,p=!0,t(e)}))}))),await Promise.race(b),v)throw new Error(`WebAssembly backend initializing failed due to timeout: ${t}ms`)},t.getInstance=()=>{if(l&&c)return c;throw new Error(\"WebAssembly is not initialized yet.\")},t.dispose=()=>{var e;!l||f||p||(f=!0,null===(e=c.PThread)||void 0===e||e.terminateAllThreads(),c=void 0,f=!1,l=!1,p=!0)}},474:(e,t,n)=>{var _scriptDir,r=(_scriptDir=(_scriptDir=\"undefined\"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||\"/index.js\",function(e){function t(){return P.buffer!=D&&G(P.buffer),F}function r(){return P.buffer!=D&&G(P.buffer),U}function a(){return P.buffer!=D&&G(P.buffer),I}function o(){return P.buffer!=D&&G(P.buffer),W}function i(){return P.buffer!=D&&G(P.buffer),j}var s,u,c;e=e||{},s||(s=void 0!==e?e:{}),s.ready=new Promise((function(e,t){u=e,c=t}));var l,f,p,d,m,g,h=Object.assign({},s),y=\"./this.program\",v=(e,t)=>{throw t},b=\"object\"==typeof window,w=\"function\"==typeof importScripts,_=\"object\"==typeof process&&\"object\"==typeof process.versions&&\"string\"==typeof process.versions.node,O=s.ENVIRONMENT_IS_PTHREAD||!1,S=\"\";function T(e){return s.locateFile?s.locateFile(e,S):S+e}if(_){let t;S=w?n(908).dirname(S)+\"/\":\"//\",g=()=>{m||(d=n(384),m=n(908))},l=function(e,t){return g(),e=m.normalize(e),d.readFileSync(e,t?void 0:\"utf8\")},p=e=>((e=l(e,!0)).buffer||(e=new Uint8Array(e)),e),f=(e,t,n)=>{g(),e=m.normalize(e),d.readFile(e,(function(e,r){e?n(e):t(r.buffer)}))},1{if(C)throw process.exitCode=e,t;t instanceof ie||x(\"exiting due to exception: \"+t),process.exit(e)},s.inspect=function(){return\"[Emscripten Module object]\"};try{t=n(925)}catch(e){throw console.error(\\'The \"worker_threads\" module is not supported in this node.js build - perhaps a newer version is needed?\\'),e}n.g.Worker=t.Worker}else(b||w)&&(w?S=globalThis.location.href:\"undefined\"!=typeof document&&document.currentScript&&(S=document.currentScript.src),_scriptDir&&(S=_scriptDir),S=0!==S.indexOf(\"blob:\")?S.substr(0,S.replace(/[?#].*/,\"\").lastIndexOf(\"/\")+1):\"\",_||(l=e=>{var t=new XMLHttpRequest;return t.open(\"GET\",e,!1),t.send(null),t.responseText},w&&(p=e=>{var t=new XMLHttpRequest;return t.open(\"GET\",e,!1),t.responseType=\"arraybuffer\",t.send(null),new Uint8Array(t.response)}),f=(e,t,n)=>{var r=new XMLHttpRequest;r.open(\"GET\",e,!0),r.responseType=\"arraybuffer\",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)}));_&&\"undefined\"==typeof performance&&(n.g.performance=n(953).performance);var A=console.log.bind(console),E=console.warn.bind(console);_&&(g(),A=e=>d.writeSync(1,e+\"\\\\n\"),E=e=>d.writeSync(2,e+\"\\\\n\"));var M,R=s.print||A,x=s.printErr||E;Object.assign(s,h),h=null,s.thisProgram&&(y=s.thisProgram),s.quit&&(v=s.quit),s.wasmBinary&&(M=s.wasmBinary);var C=s.noExitRuntime||!0;\"object\"!=typeof WebAssembly&&ne(\"no native wasm support detected\");var P,k,D,F,U,I,W,j,H=!1,L=\"undefined\"!=typeof TextDecoder?new TextDecoder(\"utf8\"):void 0;function Y(e,t,n){var r=(t>>>=0)+n;for(n=t;e[n]&&!(n>=r);)++n;if(16(a=224==(240&a)?(15&a)<<12|o<<6|i:(7&a)<<18|o<<12|i<<6|63&e[t++])?r+=String.fromCharCode(a):(a-=65536,r+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else r+=String.fromCharCode(a)}return r}function z(e,t){return(e>>>=0)?Y(r(),e,t):\"\"}function B(e,t,n,r){if(!(0>>=0;r=n+r-1;for(var o=0;o=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++o)),127>=i){if(n>=r)break;t[n++>>>0]=i}else{if(2047>=i){if(n+1>=r)break;t[n++>>>0]=192|i>>6}else{if(65535>=i){if(n+2>=r)break;t[n++>>>0]=224|i>>12}else{if(n+3>=r)break;t[n++>>>0]=240|i>>18,t[n++>>>0]=128|i>>12&63}t[n++>>>0]=128|i>>6&63}t[n++>>>0]=128|63&i}}return t[n>>>0]=0,n-a}function N(e){for(var t=0,n=0;n=r?t++:2047>=r?t+=2:55296<=r&&57343>=r?(t+=4,++n):t+=3}return t}function G(e){D=e,s.HEAP8=F=new Int8Array(e),s.HEAP16=new Int16Array(e),s.HEAP32=I=new Int32Array(e),s.HEAPU8=U=new Uint8Array(e),s.HEAPU16=new Uint16Array(e),s.HEAPU32=W=new Uint32Array(e),s.HEAPF32=new Float32Array(e),s.HEAPF64=j=new Float64Array(e)}O&&(D=s.buffer);var q=s.INITIAL_MEMORY||16777216;if(O)P=s.wasmMemory,D=s.buffer;else if(s.wasmMemory)P=s.wasmMemory;else if(!((P=new WebAssembly.Memory({initial:q/65536,maximum:65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw x(\"requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag\"),_&&console.log(\"(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and also use a recent version)\"),Error(\"bad memory\");P&&(D=P.buffer),q=D.byteLength,G(D);var $,V=[],J=[],Q=[];function X(){var e=s.preRun.shift();V.unshift(e)}var K,Z=0,ee=null,te=null;function ne(e){throw O?postMessage({cmd:\"onAbort\",arg:e}):s.onAbort&&s.onAbort(e),x(e=\"Aborted(\"+e+\")\"),H=!0,e=new WebAssembly.RuntimeError(e+\". Build with -sASSERTIONS for more info.\"),c(e),e}function re(){return K.startsWith(\"data:application/octet-stream;base64,\")}function ae(){var e=K;try{if(e==K&&M)return new Uint8Array(M);if(p)return p(e);throw\"both async and sync fetching of the wasm failed\"}catch(e){ne(e)}}K=\"ort-wasm-threaded.wasm\",re()||(K=T(K));var oe={};function ie(e){this.name=\"ExitStatus\",this.message=\"Program terminated with exit(\"+e+\")\",this.status=e}function se(e){(e=fe.La[e])||ne(),fe.Xa(e)}function ue(e){var t=fe.lb();if(!t)return 6;fe.Ra.push(t),fe.La[e.Ka]=t,t.Ka=e.Ka;var n={cmd:\"run\",start_routine:e.pb,arg:e.ib,pthread_ptr:e.Ka};return t.Qa=()=>{n.time=performance.now(),t.postMessage(n,e.vb)},t.loaded&&(t.Qa(),delete t.Qa),0}function ce(e){if(O)return He(1,1,e);C||(fe.qb(),s.onExit&&s.onExit(e),H=!0),v(e,new ie(e))}function le(e,t){if(!t&&O)throw de(e),\"unwind\";ce(e)}var fe={Oa:[],Ra:[],$a:[],La:{},Ua:function(){O&&fe.mb()},xb:function(){},mb:function(){fe.receiveObjectTransfer=fe.ob,fe.threadInitTLS=fe.Za,fe.setExitStatus=fe.Ya,C=!1},Ya:function(){},qb:function(){for(var e of Object.values(fe.La))fe.Xa(e);for(e of fe.Oa)e.terminate();fe.Oa=[]},Xa:function(e){var t=e.Ka;delete fe.La[t],fe.Oa.push(e),fe.Ra.splice(fe.Ra.indexOf(e),1),e.Ka=0,ct(t)},ob:function(){},Za:function(){fe.$a.forEach((e=>e()))},nb:function(e,t){e.onmessage=n=>{var r=(n=n.data).cmd;if(e.Ka&&(fe.kb=e.Ka),n.targetThread&&n.targetThread!=rt()){var a=fe.La[n.yb];a?a.postMessage(n,n.transferList):x(\\'Internal error! Worker sent a message \"\\'+r+\\'\" to target pthread \\'+n.targetThread+\", but that thread no longer exists!\")}else\"processProxyingQueue\"===r?De(n.queue):\"spawnThread\"===r?ue(n):\"cleanupThread\"===r?se(n.thread):\"killThread\"===r?(n=n.thread,r=fe.La[n],delete fe.La[n],r.terminate(),ct(n),fe.Ra.splice(fe.Ra.indexOf(r),1),r.Ka=0):\"cancelThread\"===r?fe.La[n.thread].postMessage({cmd:\"cancel\"}):\"loaded\"===r?(e.loaded=!0,t&&t(e),e.Qa&&(e.Qa(),delete e.Qa)):\"print\"===r?R(\"Thread \"+n.threadId+\": \"+n.text):\"printErr\"===r?x(\"Thread \"+n.threadId+\": \"+n.text):\"alert\"===r?alert(\"Thread \"+n.threadId+\": \"+n.text):\"setimmediate\"===n.target?e.postMessage(n):\"onAbort\"===r?s.onAbort&&s.onAbort(n.arg):r&&x(\"worker sent an unknown command \"+r);fe.kb=void 0},e.onerror=e=>{throw x(\"worker sent an error! \"+e.filename+\":\"+e.lineno+\": \"+e.message),e},_&&(e.on(\"message\",(function(t){e.onmessage({data:t})})),e.on(\"error\",(function(t){e.onerror(t)})),e.on(\"detachedExit\",(function(){}))),e.postMessage({cmd:\"load\",urlOrBlob:s.mainScriptUrlOrBlob||_scriptDir,wasmMemory:P,wasmModule:k})},hb:function(){var e=T(\"ort-wasm-threaded.worker.js\");fe.Oa.push(new Worker(e))},lb:function(){return 0==fe.Oa.length&&(fe.hb(),fe.nb(fe.Oa[0])),fe.Oa.pop()}};function pe(e){for(;0>2>>>0];e=a()[e+48>>2>>>0],ft(t,t-e),dt(t)};var me,ge,he=[];function ye(e){this.Pa=e-24,this.gb=function(e){o()[this.Pa+4>>2>>>0]=e},this.cb=function(e){o()[this.Pa+8>>2>>>0]=e},this.eb=function(){a()[this.Pa>>2>>>0]=0},this.bb=function(){t()[this.Pa+12>>0>>>0]=0},this.fb=function(){t()[this.Pa+13>>0>>>0]=0},this.Ua=function(e,t){this.ab(),this.gb(e),this.cb(t),this.eb(),this.bb(),this.fb()},this.ab=function(){o()[this.Pa+16>>2>>>0]=0}}function ve(e,t,n,r){return O?He(3,1,e,t,n,r):be(e,t,n,r)}function be(e,t,n,r){if(\"undefined\"==typeof SharedArrayBuffer)return x(\"Current environment does not support SharedArrayBuffer, pthreads are not available!\"),6;var a=[];return O&&0===a.length?ve(e,t,n,r):(e={pb:n,Ka:e,ib:r,vb:a},O?(e.wb=\"spawnThread\",postMessage(e,a),0):ue(e))}function we(e,t,n){return O?He(4,1,e,t,n):0}function _e(e,t){if(O)return He(5,1,e,t)}function Oe(e,t){if(O)return He(6,1,e,t)}function Se(e,t,n){if(O)return He(7,1,e,t,n)}function Te(e,t,n){return O?He(8,1,e,t,n):0}function Ae(e,t){if(O)return He(9,1,e,t)}function Ee(e,t,n){if(O)return He(10,1,e,t,n)}function Me(e,t,n,r){if(O)return He(11,1,e,t,n,r)}function Re(e,t,n,r){if(O)return He(12,1,e,t,n,r)}function xe(e,t,n,r){if(O)return He(13,1,e,t,n,r)}function Ce(e){if(O)return He(14,1,e)}function Pe(e,t){if(O)return He(15,1,e,t)}function ke(e,t,n){if(O)return He(16,1,e,t,n)}function De(e){Atomics.store(a(),e>>2,1),rt()&&ut(e),Atomics.compareExchange(a(),e>>2,1,0)}function Fe(e){return o()[e>>>2]+4294967296*a()[e+4>>>2]}function Ue(e,t,n,r,a,o){return O?He(17,1,e,t,n,r,a,o):-52}function Ie(e,t,n,r,a,o){if(O)return He(18,1,e,t,n,r,a,o)}function We(e){var n=N(e)+1,r=at(n);return r&&B(e,t(),r,n),r}function je(e,t,n){function r(e){return(e=e.toTimeString().match(/\\\\(([A-Za-z ]+)\\\\)$/))?e[1]:\"GMT\"}if(O)return He(19,1,e,t,n);var i=(new Date).getFullYear(),s=new Date(i,0,1),u=new Date(i,6,1);i=s.getTimezoneOffset();var c=u.getTimezoneOffset(),l=Math.max(i,c);a()[e>>2>>>0]=60*l,a()[t>>2>>>0]=Number(i!=c),e=r(s),t=r(u),e=We(e),t=We(t),c>2>>>0]=e,o()[n+4>>2>>>0]=t):(o()[n>>2>>>0]=t,o()[n+4>>2>>>0]=e)}function He(e,t){var n=arguments.length-2,r=arguments;return function(e){var t=pt();return e=e(),dt(t),e}((()=>{for(var a=mt(8*n),o=a>>3,s=0;s>>0]=u}return st(e,n,a,t)}))}s.invokeEntryPoint=function(e,t){var n=he[e];n||(e>=he.length&&(he.length=e+1),he[e]=n=$.get(e)),e=n(t),C?fe.Ya(e):lt(e)},s.executeNotifiedProxyingQueue=De,ge=_?()=>{var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:O?()=>performance.now()-s.__performance_now_clock_drift:()=>performance.now();var Le,Ye=[],ze={};function Be(){if(!Le){var e,t={USER:\"web_user\",LOGNAME:\"web_user\",PATH:\"/\",PWD:\"/\",HOME:\"/home/web_user\",LANG:(\"object\"==typeof navigator&&navigator.languages&&navigator.languages[0]||\"C\").replace(\"-\",\"_\")+\".UTF-8\",_:y||\"./this.program\"};for(e in ze)void 0===ze[e]?delete t[e]:t[e]=ze[e];var n=[];for(e in t)n.push(e+\"=\"+t[e]);Le=n}return Le}function Ne(e,n){if(O)return He(20,1,e,n);var r=0;return Be().forEach((function(a,i){var s=n+r;for(i=o()[e+4*i>>2>>>0]=s,s=0;s>0>>>0]=a.charCodeAt(s);t()[i>>0>>>0]=0,r+=a.length+1})),0}function Ge(e,t){if(O)return He(21,1,e,t);var n=Be();o()[e>>2>>>0]=n.length;var r=0;return n.forEach((function(e){r+=e.length+1})),o()[t>>2>>>0]=r,0}function qe(e){return O?He(22,1,e):52}function $e(e,t,n,r){return O?He(23,1,e,t,n,r):52}function Ve(e,t,n,r,a){return O?He(24,1,e,t,n,r,a):70}var Je=[null,[],[]];function Qe(e,t,n,a){if(O)return He(25,1,e,t,n,a);for(var i=0,s=0;s>2>>>0],c=o()[t+4>>2>>>0];t+=8;for(var l=0;l>>0],p=Je[e];0===f||10===f?((1===e?R:x)(Y(p,0)),p.length=0):p.push(f)}i+=c}return o()[a>>2>>>0]=i,0}function Xe(e){return 0==e%4&&(0!=e%100||0==e%400)}var Ke=[31,29,31,30,31,30,31,31,30,31,30,31],Ze=[31,28,31,30,31,30,31,31,30,31,30,31];function et(e,n,r,o){function i(e,t,n){for(e=\"number\"==typeof e?e.toString():e||\"\";e.lengthe?-1:0r-e.getDate())){e.setDate(e.getDate()+t);break}t-=r-e.getDate()+1,e.setDate(1),11>n?e.setMonth(n+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return n=new Date(e.getFullYear()+1,0,4),t=c(new Date(e.getFullYear(),0,4)),n=c(n),0>=u(t,e)?0>=u(n,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var f=a()[o+40>>2>>>0];for(var p in o={tb:a()[o>>2>>>0],sb:a()[o+4>>2>>>0],Sa:a()[o+8>>2>>>0],Va:a()[o+12>>2>>>0],Ta:a()[o+16>>2>>>0],Na:a()[o+20>>2>>>0],Ja:a()[o+24>>2>>>0],Ma:a()[o+28>>2>>>0],zb:a()[o+32>>2>>>0],rb:a()[o+36>>2>>>0],ub:f?z(f):\"\"},r=z(r),f={\"%c\":\"%a %b %d %H:%M:%S %Y\",\"%D\":\"%m/%d/%y\",\"%F\":\"%Y-%m-%d\",\"%h\":\"%b\",\"%r\":\"%I:%M:%S %p\",\"%R\":\"%H:%M\",\"%T\":\"%H:%M:%S\",\"%x\":\"%m/%d/%y\",\"%X\":\"%H:%M:%S\",\"%Ec\":\"%c\",\"%EC\":\"%C\",\"%Ex\":\"%m/%d/%y\",\"%EX\":\"%H:%M:%S\",\"%Ey\":\"%y\",\"%EY\":\"%Y\",\"%Od\":\"%d\",\"%Oe\":\"%e\",\"%OH\":\"%H\",\"%OI\":\"%I\",\"%Om\":\"%m\",\"%OM\":\"%M\",\"%OS\":\"%S\",\"%Ou\":\"%u\",\"%OU\":\"%U\",\"%OV\":\"%V\",\"%Ow\":\"%w\",\"%OW\":\"%W\",\"%Oy\":\"%y\"})r=r.replace(new RegExp(p,\"g\"),f[p]);var d=\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),m=\"January February March April May June July August September October November December\".split(\" \");for(p in f={\"%a\":function(e){return d[e.Ja].substring(0,3)},\"%A\":function(e){return d[e.Ja]},\"%b\":function(e){return m[e.Ta].substring(0,3)},\"%B\":function(e){return m[e.Ta]},\"%C\":function(e){return s((e.Na+1900)/100|0,2)},\"%d\":function(e){return s(e.Va,2)},\"%e\":function(e){return i(e.Va,2,\" \")},\"%g\":function(e){return l(e).toString().substring(2)},\"%G\":function(e){return l(e)},\"%H\":function(e){return s(e.Sa,2)},\"%I\":function(e){return 0==(e=e.Sa)?e=12:12e.Sa?\"AM\":\"PM\"},\"%S\":function(e){return s(e.tb,2)},\"%t\":function(){return\"\\\\t\"},\"%u\":function(e){return e.Ja||7},\"%U\":function(e){return s(Math.floor((e.Ma+7-e.Ja)/7),2)},\"%V\":function(e){var t=Math.floor((e.Ma+7-(e.Ja+6)%7)/7);if(2>=(e.Ja+371-e.Ma-2)%7&&t++,t)53==t&&(4==(n=(e.Ja+371-e.Ma)%7)||3==n&&Xe(e.Na)||(t=1));else{t=52;var n=(e.Ja+7-e.Ma-1)%7;(4==n||5==n&&Xe(e.Na%400-1))&&t++}return s(t,2)},\"%w\":function(e){return e.Ja},\"%W\":function(e){return s(Math.floor((e.Ma+7-(e.Ja+6)%7)/7),2)},\"%y\":function(e){return(e.Na+1900).toString().substring(2)},\"%Y\":function(e){return e.Na+1900},\"%z\":function(e){var t=0<=(e=e.rb);return e=Math.abs(e)/60,(t?\"+\":\"-\")+String(\"0000\"+(e/60*100+e%60)).slice(-4)},\"%Z\":function(e){return e.ub},\"%%\":function(){return\"%\"}},r=r.replace(/%%/g,\"\\\\0\\\\0\"),f)r.includes(p)&&(r=r.replace(new RegExp(p,\"g\"),f[p](o)));return p=function(e){var t=Array(N(e)+1);return B(e,t,0,t.length),t}(r=r.replace(/\\\\0\\\\0/g,\"%\")),p.length>n?0:(function(e,n){t().set(e,n>>>0)}(p,e),p.length-1)}fe.Ua();var tt=[null,ce,de,ve,we,_e,Oe,Se,Te,Ae,Ee,Me,Re,xe,Ce,Pe,ke,Ue,Ie,je,Ne,Ge,qe,$e,Ve,Qe],nt={b:function(e){return at(e+24)+24},c:function(e,t,n){throw new ye(e).Ua(t,n),e},L:function(e){ot(e,!w,1,!b),fe.Za()},l:function(e){O?postMessage({cmd:\"cleanupThread\",thread:e}):se(e)},D:be,i:we,R:_e,z:Oe,B:Se,T:Te,P:Ae,I:Ee,O:Me,p:Re,A:xe,x:Ce,Q:Pe,y:ke,r:function(){},j:function(){ne(\"To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking\")},s:function(){ne(\"To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking\")},q:function(){return Date.now()},E:function(){return 2097152},V:function(){return!0},F:function(e,t,n,r){if(e==t)setTimeout((()=>De(r)));else if(O)postMessage({targetThread:e,cmd:\"processProxyingQueue\",queue:r});else{if(!(e=fe.La[e]))return;e.postMessage({cmd:\"processProxyingQueue\",queue:r})}return 1},K:function(){return-1},W:function(e,t){e=new Date(1e3*Fe(e)),a()[t>>2>>>0]=e.getUTCSeconds(),a()[t+4>>2>>>0]=e.getUTCMinutes(),a()[t+8>>2>>>0]=e.getUTCHours(),a()[t+12>>2>>>0]=e.getUTCDate(),a()[t+16>>2>>>0]=e.getUTCMonth(),a()[t+20>>2>>>0]=e.getUTCFullYear()-1900,a()[t+24>>2>>>0]=e.getUTCDay(),e=(e.getTime()-Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0,a()[t+28>>2>>>0]=e},X:function(e,t){e=new Date(1e3*Fe(e)),a()[t>>2>>>0]=e.getSeconds(),a()[t+4>>2>>>0]=e.getMinutes(),a()[t+8>>2>>>0]=e.getHours(),a()[t+12>>2>>>0]=e.getDate(),a()[t+16>>2>>>0]=e.getMonth(),a()[t+20>>2>>>0]=e.getFullYear()-1900,a()[t+24>>2>>>0]=e.getDay();var n=new Date(e.getFullYear(),0,1),r=(e.getTime()-n.getTime())/864e5|0;a()[t+28>>2>>>0]=r,a()[t+36>>2>>>0]=-60*e.getTimezoneOffset(),r=new Date(e.getFullYear(),6,1).getTimezoneOffset(),e=0|(r!=(n=n.getTimezoneOffset())&&e.getTimezoneOffset()==Math.min(n,r)),a()[t+32>>2>>>0]=e},Y:function(e){var t=new Date(a()[e+20>>2>>>0]+1900,a()[e+16>>2>>>0],a()[e+12>>2>>>0],a()[e+8>>2>>>0],a()[e+4>>2>>>0],a()[e>>2>>>0],0),n=a()[e+32>>2>>>0],r=t.getTimezoneOffset(),o=new Date(t.getFullYear(),0,1),i=new Date(t.getFullYear(),6,1).getTimezoneOffset(),s=o.getTimezoneOffset(),u=Math.min(s,i);return 0>n?a()[e+32>>2>>>0]=Number(i!=s&&u==r):0>2>>>0]=t.getDay(),n=(t.getTime()-o.getTime())/864e5|0,a()[e+28>>2>>>0]=n,a()[e>>2>>>0]=t.getSeconds(),a()[e+4>>2>>>0]=t.getMinutes(),a()[e+8>>2>>>0]=t.getHours(),a()[e+12>>2>>>0]=t.getDate(),a()[e+16>>2>>>0]=t.getMonth(),t.getTime()/1e3|0},G:Ue,H:Ie,Z:function e(t,n,r){e.jb||(e.jb=!0,je(t,n,r))},d:function(){ne(\"\")},m:function(){if(!_&&!w){var e=\"Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread\";me||(me={}),me[e]||(me[e]=1,_&&(e=\"warning: \"+e),x(e))}},w:function(){return 4294901760},f:ge,S:function(e,t,n){r().copyWithin(e>>>0,t>>>0,t+n>>>0)},g:function(){return _?n(993).cpus().length:navigator.hardwareConcurrency},J:function(e,t,n){Ye.length=t,n>>=3;for(var r=0;r>>0];return(0>e?oe[-e-1]:tt[e]).apply(null,Ye)},v:function(e){var t=r().length;if((e>>>=0)<=t||4294901760=n;n*=2){var a=t*(1+.2/n);a=Math.min(a,e+100663296);var o=Math;a=Math.max(e,a),o=o.min.call(o,4294901760,a+(65536-a%65536)%65536);e:{try{P.grow(o-D.byteLength+65535>>>16),G(P.buffer);var i=1;break e}catch(e){}i=void 0}if(i)return!0}return!1},U:function(){throw\"unwind\"},M:Ne,N:Ge,k:le,h:qe,o:$e,t:Ve,n:Qe,u:function e(r,a){e.Wa||(e.Wa=function(){if(\"object\"==typeof crypto&&\"function\"==typeof crypto.getRandomValues){var e=new Uint8Array(1);return()=>(crypto.getRandomValues(e),e[0])}if(_)try{var t=n(760);return()=>t.randomBytes(1)[0]}catch(e){}return()=>ne(\"randomDevice\")}());for(var o=0;o>0>>>0]=e.Wa();return 0},a:P||s.wasmMemory,C:et,e:function(e,t,n,r){return et(e,t,n,r)}};!function(){function e(e,t){s.asm=e.exports,fe.$a.push(s.asm.wa),$=s.asm.za,J.unshift(s.asm._),k=t,O||(Z--,s.monitorRunDependencies&&s.monitorRunDependencies(Z),0==Z&&(null!==ee&&(clearInterval(ee),ee=null),te&&(e=te,te=null,e())))}function t(t){e(t.instance,t.module)}function n(e){return function(){if(!M&&(b||w)){if(\"function\"==typeof fetch&&!K.startsWith(\"file://\"))return fetch(K,{credentials:\"same-origin\"}).then((function(e){if(!e.ok)throw\"failed to load wasm binary file at \\'\"+K+\"\\'\";return e.arrayBuffer()})).catch((function(){return ae()}));if(f)return new Promise((function(e,t){f(K,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return ae()}))}().then((function(e){return WebAssembly.instantiate(e,r)})).then((function(e){return e})).then(e,(function(e){x(\"failed to asynchronously prepare wasm: \"+e),ne(e)}))}var r={a:nt};if(O||(Z++,s.monitorRunDependencies&&s.monitorRunDependencies(Z)),s.instantiateWasm)try{return s.instantiateWasm(r,e)}catch(e){return x(\"Module.instantiateWasm callback failed with error: \"+e),!1}(M||\"function\"!=typeof WebAssembly.instantiateStreaming||re()||K.startsWith(\"file://\")||_||\"function\"!=typeof fetch?n(t):fetch(K,{credentials:\"same-origin\"}).then((function(e){return WebAssembly.instantiateStreaming(e,r).then(t,(function(e){return x(\"wasm streaming compile failed: \"+e),x(\"falling back to ArrayBuffer instantiation\"),n(t)}))}))).catch(c)}(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm._).apply(null,arguments)},s._OrtInit=function(){return(s._OrtInit=s.asm.$).apply(null,arguments)},s._OrtCreateSessionOptions=function(){return(s._OrtCreateSessionOptions=s.asm.aa).apply(null,arguments)},s._OrtAppendExecutionProvider=function(){return(s._OrtAppendExecutionProvider=s.asm.ba).apply(null,arguments)},s._OrtAddSessionConfigEntry=function(){return(s._OrtAddSessionConfigEntry=s.asm.ca).apply(null,arguments)},s._OrtReleaseSessionOptions=function(){return(s._OrtReleaseSessionOptions=s.asm.da).apply(null,arguments)},s._OrtCreateSession=function(){return(s._OrtCreateSession=s.asm.ea).apply(null,arguments)},s._OrtReleaseSession=function(){return(s._OrtReleaseSession=s.asm.fa).apply(null,arguments)},s._OrtGetInputCount=function(){return(s._OrtGetInputCount=s.asm.ga).apply(null,arguments)},s._OrtGetOutputCount=function(){return(s._OrtGetOutputCount=s.asm.ha).apply(null,arguments)},s._OrtGetInputName=function(){return(s._OrtGetInputName=s.asm.ia).apply(null,arguments)},s._OrtGetOutputName=function(){return(s._OrtGetOutputName=s.asm.ja).apply(null,arguments)},s._OrtFree=function(){return(s._OrtFree=s.asm.ka).apply(null,arguments)},s._OrtCreateTensor=function(){return(s._OrtCreateTensor=s.asm.la).apply(null,arguments)},s._OrtGetTensorData=function(){return(s._OrtGetTensorData=s.asm.ma).apply(null,arguments)},s._OrtReleaseTensor=function(){return(s._OrtReleaseTensor=s.asm.na).apply(null,arguments)},s._OrtCreateRunOptions=function(){return(s._OrtCreateRunOptions=s.asm.oa).apply(null,arguments)},s._OrtAddRunConfigEntry=function(){return(s._OrtAddRunConfigEntry=s.asm.pa).apply(null,arguments)},s._OrtReleaseRunOptions=function(){return(s._OrtReleaseRunOptions=s.asm.qa).apply(null,arguments)},s._OrtRun=function(){return(s._OrtRun=s.asm.ra).apply(null,arguments)},s._OrtEndProfiling=function(){return(s._OrtEndProfiling=s.asm.sa).apply(null,arguments)};var rt=s._pthread_self=function(){return(rt=s._pthread_self=s.asm.ta).apply(null,arguments)},at=s._malloc=function(){return(at=s._malloc=s.asm.ua).apply(null,arguments)};s._free=function(){return(s._free=s.asm.va).apply(null,arguments)},s.__emscripten_tls_init=function(){return(s.__emscripten_tls_init=s.asm.wa).apply(null,arguments)};var ot=s.__emscripten_thread_init=function(){return(ot=s.__emscripten_thread_init=s.asm.xa).apply(null,arguments)};s.__emscripten_thread_crashed=function(){return(s.__emscripten_thread_crashed=s.asm.ya).apply(null,arguments)};var it,st=s._emscripten_run_in_main_runtime_thread_js=function(){return(st=s._emscripten_run_in_main_runtime_thread_js=s.asm.Aa).apply(null,arguments)},ut=s.__emscripten_proxy_execute_task_queue=function(){return(ut=s.__emscripten_proxy_execute_task_queue=s.asm.Ba).apply(null,arguments)},ct=s.__emscripten_thread_free_data=function(){return(ct=s.__emscripten_thread_free_data=s.asm.Ca).apply(null,arguments)},lt=s.__emscripten_thread_exit=function(){return(lt=s.__emscripten_thread_exit=s.asm.Da).apply(null,arguments)},ft=s._emscripten_stack_set_limits=function(){return(ft=s._emscripten_stack_set_limits=s.asm.Ea).apply(null,arguments)},pt=s.stackSave=function(){return(pt=s.stackSave=s.asm.Fa).apply(null,arguments)},dt=s.stackRestore=function(){return(dt=s.stackRestore=s.asm.Ga).apply(null,arguments)},mt=s.stackAlloc=function(){return(mt=s.stackAlloc=s.asm.Ha).apply(null,arguments)};function gt(){function e(){if(!it&&(it=!0,s.calledRun=!0,!H)&&(O||pe(J),u(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),!O)){if(s.postRun)for(\"function\"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;){var e=s.postRun.shift();Q.unshift(e)}pe(Q)}}if(!(0{var _scriptDir,r=(_scriptDir=(_scriptDir=\"undefined\"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||\"/index.js\",function(e){var t,r,a;e=e||{},t||(t=void 0!==e?e:{}),t.ready=new Promise((function(e,t){r=e,a=t}));var o,i,s,u,c,l,f=Object.assign({},t),p=\"./this.program\",d=(e,t)=>{throw t},m=\"object\"==typeof window,g=\"function\"==typeof importScripts,h=\"object\"==typeof process&&\"object\"==typeof process.versions&&\"string\"==typeof process.versions.node,y=\"\";h?(y=g?n(908).dirname(y)+\"/\":\"//\",l=()=>{c||(u=n(384),c=n(908))},o=function(e,t){return l(),e=c.normalize(e),u.readFileSync(e,t?void 0:\"utf8\")},s=e=>((e=o(e,!0)).buffer||(e=new Uint8Array(e)),e),i=(e,t,n)=>{l(),e=c.normalize(e),u.readFile(e,(function(e,r){e?n(e):t(r.buffer)}))},1{if(_)throw process.exitCode=e,t;t instanceof $||w(\"exiting due to exception: \"+t),process.exit(e)},t.inspect=function(){return\"[Emscripten Module object]\"}):(m||g)&&(g?y=globalThis.location.href:\"undefined\"!=typeof document&&document.currentScript&&(y=document.currentScript.src),_scriptDir&&(y=_scriptDir),y=0!==y.indexOf(\"blob:\")?y.substr(0,y.replace(/[?#].*/,\"\").lastIndexOf(\"/\")+1):\"\",o=e=>{var t=new XMLHttpRequest;return t.open(\"GET\",e,!1),t.send(null),t.responseText},g&&(s=e=>{var t=new XMLHttpRequest;return t.open(\"GET\",e,!1),t.responseType=\"arraybuffer\",t.send(null),new Uint8Array(t.response)}),i=(e,t,n)=>{var r=new XMLHttpRequest;r.open(\"GET\",e,!0),r.responseType=\"arraybuffer\",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)});var v,b=t.print||console.log.bind(console),w=t.printErr||console.warn.bind(console);Object.assign(t,f),f=null,t.thisProgram&&(p=t.thisProgram),t.quit&&(d=t.quit),t.wasmBinary&&(v=t.wasmBinary);var _=t.noExitRuntime||!0;\"object\"!=typeof WebAssembly&&B(\"no native wasm support detected\");var O,S,T,A,E,M,R=!1,x=\"undefined\"!=typeof TextDecoder?new TextDecoder(\"utf8\"):void 0;function C(e,t,n){var r=(t>>>=0)+n;for(n=t;e[n]&&!(n>=r);)++n;if(16(a=224==(240&a)?(15&a)<<12|o<<6|i:(7&a)<<18|o<<12|i<<6|63&e[t++])?r+=String.fromCharCode(a):(a-=65536,r+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else r+=String.fromCharCode(a)}return r}function P(e,t){return(e>>>=0)?C(A,e,t):\"\"}function k(e,t,n,r){if(!(0>>=0;r=n+r-1;for(var o=0;o=i&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++o)),127>=i){if(n>=r)break;t[n++>>>0]=i}else{if(2047>=i){if(n+1>=r)break;t[n++>>>0]=192|i>>6}else{if(65535>=i){if(n+2>=r)break;t[n++>>>0]=224|i>>12}else{if(n+3>=r)break;t[n++>>>0]=240|i>>18,t[n++>>>0]=128|i>>12&63}t[n++>>>0]=128|i>>6&63}t[n++>>>0]=128|63&i}}return t[n>>>0]=0,n-a}function D(e){for(var t=0,n=0;n=r?t++:2047>=r?t+=2:55296<=r&&57343>=r?(t+=4,++n):t+=3}return t}function F(){var e=O.buffer;S=e,t.HEAP8=T=new Int8Array(e),t.HEAP16=new Int16Array(e),t.HEAP32=E=new Int32Array(e),t.HEAPU8=A=new Uint8Array(e),t.HEAPU16=new Uint16Array(e),t.HEAPU32=M=new Uint32Array(e),t.HEAPF32=new Float32Array(e),t.HEAPF64=new Float64Array(e)}var U=[],I=[],W=[];function j(){var e=t.preRun.shift();U.unshift(e)}var H,L=0,Y=null,z=null;function B(e){throw t.onAbort&&t.onAbort(e),w(e=\"Aborted(\"+e+\")\"),R=!0,e=new WebAssembly.RuntimeError(e+\". Build with -sASSERTIONS for more info.\"),a(e),e}function N(){return H.startsWith(\"data:application/octet-stream;base64,\")}if(H=\"ort-wasm.wasm\",!N()){var G=H;H=t.locateFile?t.locateFile(G,y):y+G}function q(){var e=H;try{if(e==H&&v)return new Uint8Array(v);if(s)return s(e);throw\"both async and sync fetching of the wasm failed\"}catch(e){B(e)}}function $(e){this.name=\"ExitStatus\",this.message=\"Program terminated with exit(\"+e+\")\",this.status=e}function V(e){for(;0>2>>>0]=e},this.Ba=function(e){M[this.sa+8>>2>>>0]=e},this.Ga=function(){E[this.sa>>2>>>0]=0},this.Aa=function(){T[this.sa+12>>0>>>0]=0},this.Ha=function(){T[this.sa+13>>0>>>0]=0},this.ya=function(e,t){this.za(),this.Ia(e),this.Ba(t),this.Ga(),this.Aa(),this.Ha()},this.za=function(){M[this.sa+16>>2>>>0]=0}}function Q(e){var t=D(e)+1,n=ie(t);return n&&k(e,T,n,t),n}var X={};function K(){if(!Z){var e,t={USER:\"web_user\",LOGNAME:\"web_user\",PATH:\"/\",PWD:\"/\",HOME:\"/home/web_user\",LANG:(\"object\"==typeof navigator&&navigator.languages&&navigator.languages[0]||\"C\").replace(\"-\",\"_\")+\".UTF-8\",_:p||\"./this.program\"};for(e in X)void 0===X[e]?delete t[e]:t[e]=X[e];var n=[];for(e in t)n.push(e+\"=\"+t[e]);Z=n}return Z}var Z,ee=[null,[],[]];function te(e){return 0==e%4&&(0!=e%100||0==e%400)}var ne=[31,29,31,30,31,30,31,31,30,31,30,31],re=[31,28,31,30,31,30,31,31,30,31,30,31];function ae(e,t,n,r){function a(e,t,n){for(e=\"number\"==typeof e?e.toString():e||\"\";e.lengthe?-1:0r-e.getDate())){e.setDate(e.getDate()+t);break}t-=r-e.getDate()+1,e.setDate(1),11>n?e.setMonth(n+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return n=new Date(e.getFullYear()+1,0,4),t=s(new Date(e.getFullYear(),0,4)),n=s(n),0>=i(t,e)?0>=i(n,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var c=E[r+40>>2>>>0];for(var l in r={Ea:E[r>>2>>>0],Da:E[r+4>>2>>>0],ta:E[r+8>>2>>>0],va:E[r+12>>2>>>0],ua:E[r+16>>2>>>0],ra:E[r+20>>2>>>0],la:E[r+24>>2>>>0],qa:E[r+28>>2>>>0],Ja:E[r+32>>2>>>0],Ca:E[r+36>>2>>>0],Fa:c?P(c):\"\"},n=P(n),c={\"%c\":\"%a %b %d %H:%M:%S %Y\",\"%D\":\"%m/%d/%y\",\"%F\":\"%Y-%m-%d\",\"%h\":\"%b\",\"%r\":\"%I:%M:%S %p\",\"%R\":\"%H:%M\",\"%T\":\"%H:%M:%S\",\"%x\":\"%m/%d/%y\",\"%X\":\"%H:%M:%S\",\"%Ec\":\"%c\",\"%EC\":\"%C\",\"%Ex\":\"%m/%d/%y\",\"%EX\":\"%H:%M:%S\",\"%Ey\":\"%y\",\"%EY\":\"%Y\",\"%Od\":\"%d\",\"%Oe\":\"%e\",\"%OH\":\"%H\",\"%OI\":\"%I\",\"%Om\":\"%m\",\"%OM\":\"%M\",\"%OS\":\"%S\",\"%Ou\":\"%u\",\"%OU\":\"%U\",\"%OV\":\"%V\",\"%Ow\":\"%w\",\"%OW\":\"%W\",\"%Oy\":\"%y\"})n=n.replace(new RegExp(l,\"g\"),c[l]);var f=\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),p=\"January February March April May June July August September October November December\".split(\" \");for(l in c={\"%a\":function(e){return f[e.la].substring(0,3)},\"%A\":function(e){return f[e.la]},\"%b\":function(e){return p[e.ua].substring(0,3)},\"%B\":function(e){return p[e.ua]},\"%C\":function(e){return o((e.ra+1900)/100|0,2)},\"%d\":function(e){return o(e.va,2)},\"%e\":function(e){return a(e.va,2,\" \")},\"%g\":function(e){return u(e).toString().substring(2)},\"%G\":function(e){return u(e)},\"%H\":function(e){return o(e.ta,2)},\"%I\":function(e){return 0==(e=e.ta)?e=12:12e.ta?\"AM\":\"PM\"},\"%S\":function(e){return o(e.Ea,2)},\"%t\":function(){return\"\\\\t\"},\"%u\":function(e){return e.la||7},\"%U\":function(e){return o(Math.floor((e.qa+7-e.la)/7),2)},\"%V\":function(e){var t=Math.floor((e.qa+7-(e.la+6)%7)/7);if(2>=(e.la+371-e.qa-2)%7&&t++,t)53==t&&(4==(n=(e.la+371-e.qa)%7)||3==n&&te(e.ra)||(t=1));else{t=52;var n=(e.la+7-e.qa-1)%7;(4==n||5==n&&te(e.ra%400-1))&&t++}return o(t,2)},\"%w\":function(e){return e.la},\"%W\":function(e){return o(Math.floor((e.qa+7-(e.la+6)%7)/7),2)},\"%y\":function(e){return(e.ra+1900).toString().substring(2)},\"%Y\":function(e){return e.ra+1900},\"%z\":function(e){var t=0<=(e=e.Ca);return e=Math.abs(e)/60,(t?\"+\":\"-\")+String(\"0000\"+(e/60*100+e%60)).slice(-4)},\"%Z\":function(e){return e.Fa},\"%%\":function(){return\"%\"}},n=n.replace(/%%/g,\"\\\\0\\\\0\"),c)n.includes(l)&&(n=n.replace(new RegExp(l,\"g\"),c[l](r)));return l=function(e){var t=Array(D(e)+1);return k(e,t,0,t.length),t}(n=n.replace(/\\\\0\\\\0/g,\"%\")),l.length>t?0:(T.set(l,e>>>0),l.length-1)}var oe={a:function(e){return ie(e+24)+24},b:function(e,t,n){throw new J(e).ya(t,n),e},g:function(){return 0},I:function(){},w:function(){},y:function(){},K:function(){return 0},G:function(){},C:function(){},F:function(){},k:function(){},x:function(){},u:function(){},H:function(){},v:function(){},n:function(){},p:function(){B(\"To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking\")},o:function(){B(\"To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking\")},l:function(){return Date.now()},L:function(){return!0},M:function(e,t){e=new Date(1e3*(M[e>>>2]+4294967296*E[e+4>>>2])),E[t>>2>>>0]=e.getUTCSeconds(),E[t+4>>2>>>0]=e.getUTCMinutes(),E[t+8>>2>>>0]=e.getUTCHours(),E[t+12>>2>>>0]=e.getUTCDate(),E[t+16>>2>>>0]=e.getUTCMonth(),E[t+20>>2>>>0]=e.getUTCFullYear()-1900,E[t+24>>2>>>0]=e.getUTCDay(),E[t+28>>2>>>0]=(e.getTime()-Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},N:function(e,t){e=new Date(1e3*(M[e>>>2]+4294967296*E[e+4>>>2])),E[t>>2>>>0]=e.getSeconds(),E[t+4>>2>>>0]=e.getMinutes(),E[t+8>>2>>>0]=e.getHours(),E[t+12>>2>>>0]=e.getDate(),E[t+16>>2>>>0]=e.getMonth(),E[t+20>>2>>>0]=e.getFullYear()-1900,E[t+24>>2>>>0]=e.getDay();var n=new Date(e.getFullYear(),0,1);E[t+28>>2>>>0]=(e.getTime()-n.getTime())/864e5|0,E[t+36>>2>>>0]=-60*e.getTimezoneOffset();var r=new Date(e.getFullYear(),6,1).getTimezoneOffset();n=n.getTimezoneOffset(),E[t+32>>2>>>0]=0|(r!=n&&e.getTimezoneOffset()==Math.min(n,r))},O:function(e){var t=new Date(E[e+20>>2>>>0]+1900,E[e+16>>2>>>0],E[e+12>>2>>>0],E[e+8>>2>>>0],E[e+4>>2>>>0],E[e>>2>>>0],0),n=E[e+32>>2>>>0],r=t.getTimezoneOffset(),a=new Date(t.getFullYear(),0,1),o=new Date(t.getFullYear(),6,1).getTimezoneOffset(),i=a.getTimezoneOffset(),s=Math.min(i,o);return 0>n?E[e+32>>2>>>0]=Number(o!=i&&s==r):0>2>>>0]=t.getDay(),E[e+28>>2>>>0]=(t.getTime()-a.getTime())/864e5|0,E[e>>2>>>0]=t.getSeconds(),E[e+4>>2>>>0]=t.getMinutes(),E[e+8>>2>>>0]=t.getHours(),E[e+12>>2>>>0]=t.getDate(),E[e+16>>2>>>0]=t.getMonth(),t.getTime()/1e3|0},z:function(){return-52},B:function(){},m:function e(t,n,r){e.xa||(e.xa=!0,function(e,t,n){function r(e){return(e=e.toTimeString().match(/\\\\(([A-Za-z ]+)\\\\)$/))?e[1]:\"GMT\"}var a=(new Date).getFullYear(),o=new Date(a,0,1),i=new Date(a,6,1);a=o.getTimezoneOffset();var s=i.getTimezoneOffset();E[e>>2>>>0]=60*Math.max(a,s),E[t>>2>>>0]=Number(a!=s),e=r(o),t=r(i),e=Q(e),t=Q(t),s>2>>>0]=e,M[n+4>>2>>>0]=t):(M[n>>2>>>0]=t,M[n+4>>2>>>0]=e)}(t,n,r))},d:function(){B(\"\")},t:function(){return 4294901760},h:h?()=>{var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:()=>performance.now(),J:function(e,t,n){A.copyWithin(e>>>0,t>>>0,t+n>>>0)},f:function(e){var t=A.length;if(4294901760<(e>>>=0))return!1;for(var n=1;4>=n;n*=2){var r=t*(1+.2/n);r=Math.min(r,e+100663296);var a=Math;r=Math.max(e,r),a=a.min.call(a,4294901760,r+(65536-r%65536)%65536);e:{try{O.grow(a-S.byteLength+65535>>>16),F();var o=1;break e}catch(e){}o=void 0}if(o)return!0}return!1},D:function(e,t){var n=0;return K().forEach((function(r,a){var o=t+n;for(a=M[e+4*a>>2>>>0]=o,o=0;o>0>>>0]=r.charCodeAt(o);T[a>>0>>>0]=0,n+=r.length+1})),0},E:function(e,t){var n=K();M[e>>2>>>0]=n.length;var r=0;return n.forEach((function(e){r+=e.length+1})),M[t>>2>>>0]=r,0},r:function(e){_||(t.onExit&&t.onExit(e),R=!0),d(e,new $(e))},e:function(){return 52},j:function(){return 52},q:function(){return 70},i:function(e,t,n,r){for(var a=0,o=0;o>2>>>0],s=M[t+4>>2>>>0];t+=8;for(var u=0;u>>0],l=ee[e];0===c||10===c?((1===e?b:w)(C(l,0)),l.length=0):l.push(c)}a+=s}return M[r>>2>>>0]=a,0},s:function e(t,r){e.wa||(e.wa=function(){if(\"object\"==typeof crypto&&\"function\"==typeof crypto.getRandomValues){var e=new Uint8Array(1);return()=>(crypto.getRandomValues(e),e[0])}if(h)try{var t=n(760);return()=>t.randomBytes(1)[0]}catch(e){}return()=>B(\"randomDevice\")}());for(var a=0;a>0>>>0]=e.wa();return 0},A:ae,c:function(e,t,n,r){return ae(e,t,n,r)}};!function(){function e(e){t.asm=e.exports,O=t.asm.P,F(),I.unshift(t.asm.Q),L--,t.monitorRunDependencies&&t.monitorRunDependencies(L),0==L&&(null!==Y&&(clearInterval(Y),Y=null),z&&(e=z,z=null,e()))}function n(t){e(t.instance)}function r(e){return function(){if(!v&&(m||g)){if(\"function\"==typeof fetch&&!H.startsWith(\"file://\"))return fetch(H,{credentials:\"same-origin\"}).then((function(e){if(!e.ok)throw\"failed to load wasm binary file at \\'\"+H+\"\\'\";return e.arrayBuffer()})).catch((function(){return q()}));if(i)return new Promise((function(e,t){i(H,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return q()}))}().then((function(e){return WebAssembly.instantiate(e,o)})).then((function(e){return e})).then(e,(function(e){w(\"failed to asynchronously prepare wasm: \"+e),B(e)}))}var o={a:oe};if(L++,t.monitorRunDependencies&&t.monitorRunDependencies(L),t.instantiateWasm)try{return t.instantiateWasm(o,e)}catch(e){return w(\"Module.instantiateWasm callback failed with error: \"+e),!1}(v||\"function\"!=typeof WebAssembly.instantiateStreaming||N()||H.startsWith(\"file://\")||h||\"function\"!=typeof fetch?r(n):fetch(H,{credentials:\"same-origin\"}).then((function(e){return WebAssembly.instantiateStreaming(e,o).then(n,(function(e){return w(\"wasm streaming compile failed: \"+e),w(\"falling back to ArrayBuffer instantiation\"),r(n)}))}))).catch(a)}(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.Q).apply(null,arguments)},t._OrtInit=function(){return(t._OrtInit=t.asm.R).apply(null,arguments)},t._OrtCreateSessionOptions=function(){return(t._OrtCreateSessionOptions=t.asm.S).apply(null,arguments)},t._OrtAppendExecutionProvider=function(){return(t._OrtAppendExecutionProvider=t.asm.T).apply(null,arguments)},t._OrtAddSessionConfigEntry=function(){return(t._OrtAddSessionConfigEntry=t.asm.U).apply(null,arguments)},t._OrtReleaseSessionOptions=function(){return(t._OrtReleaseSessionOptions=t.asm.V).apply(null,arguments)},t._OrtCreateSession=function(){return(t._OrtCreateSession=t.asm.W).apply(null,arguments)},t._OrtReleaseSession=function(){return(t._OrtReleaseSession=t.asm.X).apply(null,arguments)},t._OrtGetInputCount=function(){return(t._OrtGetInputCount=t.asm.Y).apply(null,arguments)},t._OrtGetOutputCount=function(){return(t._OrtGetOutputCount=t.asm.Z).apply(null,arguments)},t._OrtGetInputName=function(){return(t._OrtGetInputName=t.asm._).apply(null,arguments)},t._OrtGetOutputName=function(){return(t._OrtGetOutputName=t.asm.$).apply(null,arguments)},t._OrtFree=function(){return(t._OrtFree=t.asm.aa).apply(null,arguments)},t._OrtCreateTensor=function(){return(t._OrtCreateTensor=t.asm.ba).apply(null,arguments)},t._OrtGetTensorData=function(){return(t._OrtGetTensorData=t.asm.ca).apply(null,arguments)},t._OrtReleaseTensor=function(){return(t._OrtReleaseTensor=t.asm.da).apply(null,arguments)},t._OrtCreateRunOptions=function(){return(t._OrtCreateRunOptions=t.asm.ea).apply(null,arguments)},t._OrtAddRunConfigEntry=function(){return(t._OrtAddRunConfigEntry=t.asm.fa).apply(null,arguments)},t._OrtReleaseRunOptions=function(){return(t._OrtReleaseRunOptions=t.asm.ga).apply(null,arguments)},t._OrtRun=function(){return(t._OrtRun=t.asm.ha).apply(null,arguments)},t._OrtEndProfiling=function(){return(t._OrtEndProfiling=t.asm.ia).apply(null,arguments)};var ie=t._malloc=function(){return(ie=t._malloc=t.asm.ja).apply(null,arguments)};t._free=function(){return(t._free=t.asm.ka).apply(null,arguments)};var se,ue=t.stackSave=function(){return(ue=t.stackSave=t.asm.ma).apply(null,arguments)},ce=t.stackRestore=function(){return(ce=t.stackRestore=t.asm.na).apply(null,arguments)},le=t.stackAlloc=function(){return(le=t.stackAlloc=t.asm.oa).apply(null,arguments)};function fe(){function e(){if(!se&&(se=!0,t.calledRun=!0,!R)){if(V(I),r(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for(\"function\"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;){var e=t.postRun.shift();W.unshift(e)}V(W)}}if(!(0{\"use strict\";e.exports=\\'\"use strict\";var e={},t=\"object\"==typeof process&&\"object\"==typeof process.versions&&\"string\"==typeof process.versions.node;if(t){var r=require(\"worker_threads\"),a=r.parentPort;a.on(\"message\",(e=>onmessage({data:e})));var o=require(\"fs\");Object.assign(global,{globalThis:global,require:require,Module:e,location:{href:__filename},Worker:r.Worker,importScripts:function(e){(0,eval)(o.readFileSync(e,\"utf8\"))},postMessage:function(e){a.postMessage(e)},performance:global.performance||{now:function(){return Date.now()}}})}var s=!1,n=[],i=function(){var e=Array.prototype.slice.call(arguments).join(\" \");t?o.writeSync(2,e+\"\\\\\\\\n\"):console.error(e)};globalThis.alert=function(){var t=Array.prototype.slice.call(arguments).join(\" \");postMessage({cmd:\"alert\",text:t,threadId:e._pthread_self()})},e.instantiateWasm=(t,r)=>{var a=new WebAssembly.Instance(e.wasmModule,t);return r(a),e.wasmModule=null,a.exports},globalThis.onunhandledrejection=e=>{throw e.reason??e},globalThis.onmessage=t=>{try{if(\"load\"===t.data.cmd){if(e.wasmModule=t.data.wasmModule,e.wasmMemory=t.data.wasmMemory,e.buffer=e.wasmMemory.buffer,e.ENVIRONMENT_IS_PTHREAD=!0,\"string\"==typeof t.data.urlOrBlob)importScripts(t.data.urlOrBlob);else{var r=URL.createObjectURL(t.data.urlOrBlob);importScripts(r),URL.revokeObjectURL(r)}ortWasmThreaded(e).then((function(t){e=t}))}else if(\"run\"===t.data.cmd){e.__performance_now_clock_drift=performance.now()-t.data.time,e.__emscripten_thread_init(t.data.pthread_ptr,0,0,1),e.establishStackSpace(),e.PThread.receiveObjectTransfer(t.data),e.PThread.threadInitTLS(),s||(n.forEach((t=>{e.executeNotifiedProxyingQueue(t)})),n=[],s=!0);try{e.invokeEntryPoint(t.data.start_routine,t.data.arg)}catch(t){if(\"unwind\"!=t){if(!(t instanceof e.ExitStatus))throw t;e.keepRuntimeAlive()||e.__emscripten_thread_exit(t.status)}}}else\"cancel\"===t.data.cmd?e._pthread_self()&&e.__emscripten_thread_exit(-1):\"setimmediate\"===t.data.target||(\"processProxyingQueue\"===t.data.cmd?s?e.executeNotifiedProxyingQueue(t.data.queue):n.push(t.data.queue):(i(\"worker.js received unknown command \"+t.data.cmd),i(t.data)))}catch(t){throw i(\"worker.js onmessage() captured an uncaught exception: \"+t),t&&t.stack&&i(t.stack),e.__emscripten_thread_crashed&&e.__emscripten_thread_crashed(),t}};\\\\n\\'},760:()=>{},384:()=>{},993:()=>{},908:()=>{},953:()=>{},925:()=>{},449:()=>{}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),(()=>{\"use strict\";const e=n(259),t=n(263);globalThis.onmessage=n=>{switch(n.data.type){case\"init-wasm\":(0,t.initializeWebAssembly)(n.data.in).then((()=>postMessage({type:\"init-wasm\"})),(e=>postMessage({type:\"init-wasm\",err:e})));break;case\"init-ort\":try{const{numThreads:t,loggingLevel:r}=n.data.in;(0,e.initOrt)(t,r),postMessage({type:\"init-ort\"})}catch(e){postMessage({type:\"init-ort\",err:e})}break;case\"create_allocate\":try{const{model:t}=n.data.in,r=(0,e.createSessionAllocate)(t);postMessage({type:\"create_allocate\",out:r})}catch(e){postMessage({type:\"create_allocate\",err:e})}break;case\"create_finalize\":try{const{modeldata:t,options:r}=n.data.in,a=(0,e.createSessionFinalize)(t,r);postMessage({type:\"create_finalize\",out:a})}catch(e){postMessage({type:\"create_finalize\",err:e})}break;case\"create\":try{const{model:t,options:r}=n.data.in,a=(0,e.createSession)(t,r);postMessage({type:\"create\",out:a})}catch(e){postMessage({type:\"create\",err:e})}break;case\"release\":try{const t=n.data.in;(0,e.releaseSession)(t),postMessage({type:\"release\"})}catch(e){postMessage({type:\"release\",err:e})}break;case\"run\":try{const{sessionId:t,inputIndices:r,inputs:a,outputIndices:o,options:i}=n.data.in;(0,e.run)(t,r,a,o,i).then((t=>{postMessage({type:\"run\",out:t},(0,e.extractTransferableBuffers)(t))}),(e=>{postMessage({type:\"run\",err:e})}))}catch(e){postMessage({type:\"run\",err:e})}break;case\"end-profiling\":try{const t=n.data.in;(0,e.endProfiling)(t),postMessage({type:\"end-profiling\"})}catch(e){postMessage({type:\"end-profiling\",err:e})}}}})()})();\\n',\"Worker\",void 0,void 0)}},6614:e=>{e.exports=function(e,t,n,r){var o=globalThis||window;try{try{var i;try{i=new o.Blob([e]);}catch(t){(i=new(o.BlobBuilder||o.WebKitBlobBuilder||o.MozBlobBuilder||o.MSBlobBuilder)).append(e),i=i.getBlob();}var a=o.URL||o.webkitURL,s=a.createObjectURL(i),u=new o[t](s,n);return a.revokeObjectURL(s),u}catch(r){return new o[t](\"data:application/javascript,\".concat(encodeURIComponent(e)),n)}}catch(e){if(!r)throw Error(\"Inline worker is not supported\");return new o[t](r,n)}};},3474:(e,t,n)=>{var _scriptDir,r=(_scriptDir=(_scriptDir=\"undefined\"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||\"/index.js\",function(e){function t(){return D.buffer!=C&&H(D.buffer),R}function r(){return D.buffer!=C&&H(D.buffer),M}function o(){return D.buffer!=C&&H(D.buffer),N}function i(){return D.buffer!=C&&H(D.buffer),F}function a(){return D.buffer!=C&&H(D.buffer),L}var s,u,l;e=e||{},s||(s=void 0!==e?e:{}),s.ready=new Promise((function(e,t){u=e,l=t;}));var c,p,d,f,h,g,m=Object.assign({},s),b=\"./this.program\",y=(e,t)=>{throw t},w=\"object\"==typeof window,_=\"function\"==typeof importScripts,v=\"object\"==typeof process&&\"object\"==typeof process.versions&&\"string\"==typeof process.versions.node,x=s.ENVIRONMENT_IS_PTHREAD||!1,T=\"\";function S(e){return s.locateFile?s.locateFile(e,T):T+e}if(v){let t;T=_?n(908).dirname(T)+\"/\":\"//\",g=()=>{h||(f=n(1384),h=n(908));},c=function(e,t){return g(),e=h.normalize(e),f.readFileSync(e,t?void 0:\"utf8\")},d=e=>((e=c(e,!0)).buffer||(e=new Uint8Array(e)),e),p=(e,t,n)=>{g(),e=h.normalize(e),f.readFile(e,(function(e,r){e?n(e):t(r.buffer);}));},1{if(P)throw process.exitCode=e,t;t instanceof ae||$(\"exiting due to exception: \"+t),process.exit(e);},s.inspect=function(){return \"[Emscripten Module object]\"};try{t=n(9925);}catch(e){throw console.error('The \"worker_threads\" module is not supported in this node.js build - perhaps a newer version is needed?'),e}n.g.Worker=t.Worker;}else (w||_)&&(_?T=globalThis.location.href:\"undefined\"!=typeof document&&document.currentScript&&(T=document.currentScript.src),_scriptDir&&(T=_scriptDir),T=0!==T.indexOf(\"blob:\")?T.substr(0,T.replace(/[?#].*/,\"\").lastIndexOf(\"/\")+1):\"\",v||(c=e=>{var t=new XMLHttpRequest;return t.open(\"GET\",e,!1),t.send(null),t.responseText},_&&(d=e=>{var t=new XMLHttpRequest;return t.open(\"GET\",e,!1),t.responseType=\"arraybuffer\",t.send(null),new Uint8Array(t.response)}),p=(e,t,n)=>{var r=new XMLHttpRequest;r.open(\"GET\",e,!0),r.responseType=\"arraybuffer\",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):n();},r.onerror=n,r.send(null);}));v&&\"undefined\"==typeof performance&&(n.g.performance=n(6953).performance);var O=console.log.bind(console),A=console.warn.bind(console);v&&(g(),O=e=>f.writeSync(1,e+\"\\n\"),A=e=>f.writeSync(2,e+\"\\n\"));var E,I=s.print||O,$=s.printErr||A;Object.assign(s,m),m=null,s.thisProgram&&(b=s.thisProgram),s.quit&&(y=s.quit),s.wasmBinary&&(E=s.wasmBinary);var P=s.noExitRuntime||!0;\"object\"!=typeof WebAssembly&&ne(\"no native wasm support detected\");var D,k,C,R,M,N,F,L,j=!1,U=\"undefined\"!=typeof TextDecoder?new TextDecoder(\"utf8\"):void 0;function B(e,t,n){var r=(t>>>=0)+n;for(n=t;e[n]&&!(n>=r);)++n;if(16(o=224==(240&o)?(15&o)<<12|i<<6|a:(7&o)<<18|i<<12|a<<6|63&e[t++])?r+=String.fromCharCode(o):(o-=65536,r+=String.fromCharCode(55296|o>>10,56320|1023&o));}}else r+=String.fromCharCode(o);}return r}function G(e,t){return (e>>>=0)?B(r(),e,t):\"\"}function V(e,t,n,r){if(!(0>>=0;r=n+r-1;for(var i=0;i=a&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i)),127>=a){if(n>=r)break;t[n++>>>0]=a;}else {if(2047>=a){if(n+1>=r)break;t[n++>>>0]=192|a>>6;}else {if(65535>=a){if(n+2>=r)break;t[n++>>>0]=224|a>>12;}else {if(n+3>=r)break;t[n++>>>0]=240|a>>18,t[n++>>>0]=128|a>>12&63;}t[n++>>>0]=128|a>>6&63;}t[n++>>>0]=128|63&a;}}return t[n>>>0]=0,n-o}function z(e){for(var t=0,n=0;n=r?t++:2047>=r?t+=2:55296<=r&&57343>=r?(t+=4,++n):t+=3;}return t}function H(e){C=e,s.HEAP8=R=new Int8Array(e),s.HEAP16=new Int16Array(e),s.HEAP32=N=new Int32Array(e),s.HEAPU8=M=new Uint8Array(e),s.HEAPU16=new Uint16Array(e),s.HEAPU32=F=new Uint32Array(e),s.HEAPF32=new Float32Array(e),s.HEAPF64=L=new Float64Array(e);}x&&(C=s.buffer);var W=s.INITIAL_MEMORY||16777216;if(x)D=s.wasmMemory,C=s.buffer;else if(s.wasmMemory)D=s.wasmMemory;else if(!((D=new WebAssembly.Memory({initial:W/65536,maximum:65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw $(\"requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag\"),v&&console.log(\"(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and also use a recent version)\"),Error(\"bad memory\");D&&(C=D.buffer),W=C.byteLength,H(C);var q,K=[],X=[],Y=[];function J(){var e=s.preRun.shift();K.unshift(e);}var Z,Q=0,te=null;function ne(e){throw x?postMessage({cmd:\"onAbort\",arg:e}):s.onAbort&&s.onAbort(e),$(e=\"Aborted(\"+e+\")\"),j=!0,e=new WebAssembly.RuntimeError(e+\". Build with -sASSERTIONS for more info.\"),l(e),e}function re(){return Z.startsWith(\"data:application/octet-stream;base64,\")}function oe(){var e=Z;try{if(e==Z&&E)return new Uint8Array(E);if(d)return d(e);throw \"both async and sync fetching of the wasm failed\"}catch(e){ne(e);}}Z=\"ort-wasm-threaded.wasm\",re()||(Z=S(Z));var ie={};function ae(e){this.name=\"ExitStatus\",this.message=\"Program terminated with exit(\"+e+\")\",this.status=e;}function se(e){(e=pe.La[e])||ne(),pe.Xa(e);}function ue(e){var t=pe.lb();if(!t)return 6;pe.Ra.push(t),pe.La[e.Ka]=t,t.Ka=e.Ka;var n={cmd:\"run\",start_routine:e.pb,arg:e.ib,pthread_ptr:e.Ka};return t.Qa=()=>{n.time=performance.now(),t.postMessage(n,e.vb);},t.loaded&&(t.Qa(),delete t.Qa),0}function le(e){if(x)return je(1,1,e);P||(pe.qb(),s.onExit&&s.onExit(e),j=!0),y(e,new ae(e));}function ce(e,t){if(!t&&x)throw fe(e),\"unwind\";le(e);}var pe={Oa:[],Ra:[],$a:[],La:{},Ua:function(){x&&pe.mb();},xb:function(){},mb:function(){pe.receiveObjectTransfer=pe.ob,pe.threadInitTLS=pe.Za,pe.setExitStatus=pe.Ya,P=!1;},Ya:function(){},qb:function(){for(var e of Object.values(pe.La))pe.Xa(e);for(e of pe.Oa)e.terminate();pe.Oa=[];},Xa:function(e){var t=e.Ka;delete pe.La[t],pe.Oa.push(e),pe.Ra.splice(pe.Ra.indexOf(e),1),e.Ka=0,lt(t);},ob:function(){},Za:function(){pe.$a.forEach((e=>e()));},nb:function(e,t){e.onmessage=n=>{var r=(n=n.data).cmd;if(e.Ka&&(pe.kb=e.Ka),n.targetThread&&n.targetThread!=rt()){var o=pe.La[n.yb];o?o.postMessage(n,n.transferList):$('Internal error! Worker sent a message \"'+r+'\" to target pthread '+n.targetThread+\", but that thread no longer exists!\");}else \"processProxyingQueue\"===r?Ce(n.queue):\"spawnThread\"===r?ue(n):\"cleanupThread\"===r?se(n.thread):\"killThread\"===r?(n=n.thread,r=pe.La[n],delete pe.La[n],r.terminate(),lt(n),pe.Ra.splice(pe.Ra.indexOf(r),1),r.Ka=0):\"cancelThread\"===r?pe.La[n.thread].postMessage({cmd:\"cancel\"}):\"loaded\"===r?(e.loaded=!0,t&&t(e),e.Qa&&(e.Qa(),delete e.Qa)):\"print\"===r?I(\"Thread \"+n.threadId+\": \"+n.text):\"printErr\"===r?$(\"Thread \"+n.threadId+\": \"+n.text):\"alert\"===r?alert(\"Thread \"+n.threadId+\": \"+n.text):\"setimmediate\"===n.target?e.postMessage(n):\"onAbort\"===r?s.onAbort&&s.onAbort(n.arg):r&&$(\"worker sent an unknown command \"+r);pe.kb=void 0;},e.onerror=e=>{throw $(\"worker sent an error! \"+e.filename+\":\"+e.lineno+\": \"+e.message),e},v&&(e.on(\"message\",(function(t){e.onmessage({data:t});})),e.on(\"error\",(function(t){e.onerror(t);})),e.on(\"detachedExit\",(function(){}))),e.postMessage({cmd:\"load\",urlOrBlob:s.mainScriptUrlOrBlob||_scriptDir,wasmMemory:D,wasmModule:k});},hb:function(){var e=S(\"ort-wasm-threaded.worker.js\");pe.Oa.push(new Worker(e));},lb:function(){return 0==pe.Oa.length&&(pe.hb(),pe.nb(pe.Oa[0])),pe.Oa.pop()}};function de(e){for(;0>2>>>0];e=o()[e+48>>2>>>0],pt(t,t-e),ft(t);};var he,ge,me=[];function be(e){this.Pa=e-24,this.gb=function(e){i()[this.Pa+4>>2>>>0]=e;},this.cb=function(e){i()[this.Pa+8>>2>>>0]=e;},this.eb=function(){o()[this.Pa>>2>>>0]=0;},this.bb=function(){t()[this.Pa+12>>0>>>0]=0;},this.fb=function(){t()[this.Pa+13>>0>>>0]=0;},this.Ua=function(e,t){this.ab(),this.gb(e),this.cb(t),this.eb(),this.bb(),this.fb();},this.ab=function(){i()[this.Pa+16>>2>>>0]=0;};}function ye(e,t,n,r){return x?je(3,1,e,t,n,r):we(e,t,n,r)}function we(e,t,n,r){if(\"undefined\"==typeof SharedArrayBuffer)return $(\"Current environment does not support SharedArrayBuffer, pthreads are not available!\"),6;var o=[];return x&&0===o.length?ye(e,t,n,r):(e={pb:n,Ka:e,ib:r,vb:o},x?(e.wb=\"spawnThread\",postMessage(e,o),0):ue(e))}function _e(e,t,n){return x?je(4,1,e,t,n):0}function ve(e,t){if(x)return je(5,1,e,t)}function xe(e,t){if(x)return je(6,1,e,t)}function Te(e,t,n){if(x)return je(7,1,e,t,n)}function Se(e,t,n){return x?je(8,1,e,t,n):0}function Oe(e,t){if(x)return je(9,1,e,t)}function Ae(e,t,n){if(x)return je(10,1,e,t,n)}function Ee(e,t,n,r){if(x)return je(11,1,e,t,n,r)}function Ie(e,t,n,r){if(x)return je(12,1,e,t,n,r)}function $e(e,t,n,r){if(x)return je(13,1,e,t,n,r)}function Pe(e){if(x)return je(14,1,e)}function De(e,t){if(x)return je(15,1,e,t)}function ke(e,t,n){if(x)return je(16,1,e,t,n)}function Ce(e){Atomics.store(o(),e>>2,1),rt()&&ut(e),Atomics.compareExchange(o(),e>>2,1,0);}function Re(e){return i()[e>>>2]+4294967296*o()[e+4>>>2]}function Me(e,t,n,r,o,i){return x?je(17,1,e,t,n,r,o,i):-52}function Ne(e,t,n,r,o,i){if(x)return je(18,1,e,t,n,r,o,i)}function Fe(e){var n=z(e)+1,r=ot(n);return r&&V(e,t(),r,n),r}function Le(e,t,n){function r(e){return (e=e.toTimeString().match(/\\(([A-Za-z ]+)\\)$/))?e[1]:\"GMT\"}if(x)return je(19,1,e,t,n);var a=(new Date).getFullYear(),s=new Date(a,0,1),u=new Date(a,6,1);a=s.getTimezoneOffset();var l=u.getTimezoneOffset(),c=Math.max(a,l);o()[e>>2>>>0]=60*c,o()[t>>2>>>0]=Number(a!=l),e=r(s),t=r(u),e=Fe(e),t=Fe(t),l>2>>>0]=e,i()[n+4>>2>>>0]=t):(i()[n>>2>>>0]=t,i()[n+4>>2>>>0]=e);}function je(e,t){var n=arguments.length-2,r=arguments;return function(e){var t=dt();return e=e(),ft(t),e}((()=>{for(var o=ht(8*n),i=o>>3,s=0;s>>0]=u;}return st(e,n,o,t)}))}s.invokeEntryPoint=function(e,t){var n=me[e];n||(e>=me.length&&(me.length=e+1),me[e]=n=q.get(e)),e=n(t),P?pe.Ya(e):ct(e);},s.executeNotifiedProxyingQueue=Ce,ge=v?()=>{var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:x?()=>performance.now()-s.__performance_now_clock_drift:()=>performance.now();var Ue,Be=[],Ge={};function Ve(){if(!Ue){var e,t={USER:\"web_user\",LOGNAME:\"web_user\",PATH:\"/\",PWD:\"/\",HOME:\"/home/web_user\",LANG:(\"object\"==typeof navigator&&navigator.languages&&navigator.languages[0]||\"C\").replace(\"-\",\"_\")+\".UTF-8\",_:b||\"./this.program\"};for(e in Ge)void 0===Ge[e]?delete t[e]:t[e]=Ge[e];var n=[];for(e in t)n.push(e+\"=\"+t[e]);Ue=n;}return Ue}function ze(e,n){if(x)return je(20,1,e,n);var r=0;return Ve().forEach((function(o,a){var s=n+r;for(a=i()[e+4*a>>2>>>0]=s,s=0;s>0>>>0]=o.charCodeAt(s);t()[a>>0>>>0]=0,r+=o.length+1;})),0}function He(e,t){if(x)return je(21,1,e,t);var n=Ve();i()[e>>2>>>0]=n.length;var r=0;return n.forEach((function(e){r+=e.length+1;})),i()[t>>2>>>0]=r,0}function We(e){return x?je(22,1,e):52}function qe(e,t,n,r){return x?je(23,1,e,t,n,r):52}function Ke(e,t,n,r,o){return x?je(24,1,e,t,n,r,o):70}var Xe=[null,[],[]];function Ye(e,t,n,o){if(x)return je(25,1,e,t,n,o);for(var a=0,s=0;s>2>>>0],l=i()[t+4>>2>>>0];t+=8;for(var c=0;c>>0],d=Xe[e];0===p||10===p?((1===e?I:$)(B(d,0)),d.length=0):d.push(p);}a+=l;}return i()[o>>2>>>0]=a,0}function Je(e){return 0==e%4&&(0!=e%100||0==e%400)}var Ze=[31,29,31,30,31,30,31,31,30,31,30,31],Qe=[31,28,31,30,31,30,31,31,30,31,30,31];function et(e,n,r,i){function a(e,t,n){for(e=\"number\"==typeof e?e.toString():e||\"\";e.lengthe?-1:0r-e.getDate())){e.setDate(e.getDate()+t);break}t-=r-e.getDate()+1,e.setDate(1),11>n?e.setMonth(n+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1));}return n=new Date(e.getFullYear()+1,0,4),t=l(new Date(e.getFullYear(),0,4)),n=l(n),0>=u(t,e)?0>=u(n,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var p=o()[i+40>>2>>>0];for(var d in i={tb:o()[i>>2>>>0],sb:o()[i+4>>2>>>0],Sa:o()[i+8>>2>>>0],Va:o()[i+12>>2>>>0],Ta:o()[i+16>>2>>>0],Na:o()[i+20>>2>>>0],Ja:o()[i+24>>2>>>0],Ma:o()[i+28>>2>>>0],zb:o()[i+32>>2>>>0],rb:o()[i+36>>2>>>0],ub:p?G(p):\"\"},r=G(r),p={\"%c\":\"%a %b %d %H:%M:%S %Y\",\"%D\":\"%m/%d/%y\",\"%F\":\"%Y-%m-%d\",\"%h\":\"%b\",\"%r\":\"%I:%M:%S %p\",\"%R\":\"%H:%M\",\"%T\":\"%H:%M:%S\",\"%x\":\"%m/%d/%y\",\"%X\":\"%H:%M:%S\",\"%Ec\":\"%c\",\"%EC\":\"%C\",\"%Ex\":\"%m/%d/%y\",\"%EX\":\"%H:%M:%S\",\"%Ey\":\"%y\",\"%EY\":\"%Y\",\"%Od\":\"%d\",\"%Oe\":\"%e\",\"%OH\":\"%H\",\"%OI\":\"%I\",\"%Om\":\"%m\",\"%OM\":\"%M\",\"%OS\":\"%S\",\"%Ou\":\"%u\",\"%OU\":\"%U\",\"%OV\":\"%V\",\"%Ow\":\"%w\",\"%OW\":\"%W\",\"%Oy\":\"%y\"})r=r.replace(new RegExp(d,\"g\"),p[d]);var f=\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),h=\"January February March April May June July August September October November December\".split(\" \");for(d in p={\"%a\":function(e){return f[e.Ja].substring(0,3)},\"%A\":function(e){return f[e.Ja]},\"%b\":function(e){return h[e.Ta].substring(0,3)},\"%B\":function(e){return h[e.Ta]},\"%C\":function(e){return s((e.Na+1900)/100|0,2)},\"%d\":function(e){return s(e.Va,2)},\"%e\":function(e){return a(e.Va,2,\" \")},\"%g\":function(e){return c(e).toString().substring(2)},\"%G\":function(e){return c(e)},\"%H\":function(e){return s(e.Sa,2)},\"%I\":function(e){return 0==(e=e.Sa)?e=12:12e.Sa?\"AM\":\"PM\"},\"%S\":function(e){return s(e.tb,2)},\"%t\":function(){return \"\\t\"},\"%u\":function(e){return e.Ja||7},\"%U\":function(e){return s(Math.floor((e.Ma+7-e.Ja)/7),2)},\"%V\":function(e){var t=Math.floor((e.Ma+7-(e.Ja+6)%7)/7);if(2>=(e.Ja+371-e.Ma-2)%7&&t++,t)53==t&&(4==(n=(e.Ja+371-e.Ma)%7)||3==n&&Je(e.Na)||(t=1));else {t=52;var n=(e.Ja+7-e.Ma-1)%7;(4==n||5==n&&Je(e.Na%400-1))&&t++;}return s(t,2)},\"%w\":function(e){return e.Ja},\"%W\":function(e){return s(Math.floor((e.Ma+7-(e.Ja+6)%7)/7),2)},\"%y\":function(e){return (e.Na+1900).toString().substring(2)},\"%Y\":function(e){return e.Na+1900},\"%z\":function(e){var t=0<=(e=e.rb);return e=Math.abs(e)/60,(t?\"+\":\"-\")+String(\"0000\"+(e/60*100+e%60)).slice(-4)},\"%Z\":function(e){return e.ub},\"%%\":function(){return \"%\"}},r=r.replace(/%%/g,\"\\0\\0\"),p)r.includes(d)&&(r=r.replace(new RegExp(d,\"g\"),p[d](i)));return d=function(e){var t=Array(z(e)+1);return V(e,t,0,t.length),t}(r=r.replace(/\\0\\0/g,\"%\")),d.length>n?0:(function(e,n){t().set(e,n>>>0);}(d,e),d.length-1)}pe.Ua();var tt=[null,le,fe,ye,_e,ve,xe,Te,Se,Oe,Ae,Ee,Ie,$e,Pe,De,ke,Me,Ne,Le,ze,He,We,qe,Ke,Ye],nt={b:function(e){return ot(e+24)+24},c:function(e,t,n){throw new be(e).Ua(t,n),e},L:function(e){it(e,!_,1,!w),pe.Za();},l:function(e){x?postMessage({cmd:\"cleanupThread\",thread:e}):se(e);},D:we,i:_e,R:ve,z:xe,B:Te,T:Se,P:Oe,I:Ae,O:Ee,p:Ie,A:$e,x:Pe,Q:De,y:ke,r:function(){},j:function(){ne(\"To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking\");},s:function(){ne(\"To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking\");},q:function(){return Date.now()},E:function(){return 2097152},V:function(){return !0},F:function(e,t,n,r){if(e==t)setTimeout((()=>Ce(r)));else if(x)postMessage({targetThread:e,cmd:\"processProxyingQueue\",queue:r});else {if(!(e=pe.La[e]))return;e.postMessage({cmd:\"processProxyingQueue\",queue:r});}return 1},K:function(){return -1},W:function(e,t){e=new Date(1e3*Re(e)),o()[t>>2>>>0]=e.getUTCSeconds(),o()[t+4>>2>>>0]=e.getUTCMinutes(),o()[t+8>>2>>>0]=e.getUTCHours(),o()[t+12>>2>>>0]=e.getUTCDate(),o()[t+16>>2>>>0]=e.getUTCMonth(),o()[t+20>>2>>>0]=e.getUTCFullYear()-1900,o()[t+24>>2>>>0]=e.getUTCDay(),e=(e.getTime()-Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0,o()[t+28>>2>>>0]=e;},X:function(e,t){e=new Date(1e3*Re(e)),o()[t>>2>>>0]=e.getSeconds(),o()[t+4>>2>>>0]=e.getMinutes(),o()[t+8>>2>>>0]=e.getHours(),o()[t+12>>2>>>0]=e.getDate(),o()[t+16>>2>>>0]=e.getMonth(),o()[t+20>>2>>>0]=e.getFullYear()-1900,o()[t+24>>2>>>0]=e.getDay();var n=new Date(e.getFullYear(),0,1),r=(e.getTime()-n.getTime())/864e5|0;o()[t+28>>2>>>0]=r,o()[t+36>>2>>>0]=-60*e.getTimezoneOffset(),r=new Date(e.getFullYear(),6,1).getTimezoneOffset(),e=0|(r!=(n=n.getTimezoneOffset())&&e.getTimezoneOffset()==Math.min(n,r)),o()[t+32>>2>>>0]=e;},Y:function(e){var t=new Date(o()[e+20>>2>>>0]+1900,o()[e+16>>2>>>0],o()[e+12>>2>>>0],o()[e+8>>2>>>0],o()[e+4>>2>>>0],o()[e>>2>>>0],0),n=o()[e+32>>2>>>0],r=t.getTimezoneOffset(),i=new Date(t.getFullYear(),0,1),a=new Date(t.getFullYear(),6,1).getTimezoneOffset(),s=i.getTimezoneOffset(),u=Math.min(s,a);return 0>n?o()[e+32>>2>>>0]=Number(a!=s&&u==r):0>2>>>0]=t.getDay(),n=(t.getTime()-i.getTime())/864e5|0,o()[e+28>>2>>>0]=n,o()[e>>2>>>0]=t.getSeconds(),o()[e+4>>2>>>0]=t.getMinutes(),o()[e+8>>2>>>0]=t.getHours(),o()[e+12>>2>>>0]=t.getDate(),o()[e+16>>2>>>0]=t.getMonth(),t.getTime()/1e3|0},G:Me,H:Ne,Z:function e(t,n,r){e.jb||(e.jb=!0,Le(t,n,r));},d:function(){ne(\"\");},m:function(){if(!v&&!_){var e=\"Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread\";he||(he={}),he[e]||(he[e]=1,v&&(e=\"warning: \"+e),$(e));}},w:function(){return 4294901760},f:ge,S:function(e,t,n){r().copyWithin(e>>>0,t>>>0,t+n>>>0);},g:function(){return v?n(3993).cpus().length:navigator.hardwareConcurrency},J:function(e,t,n){Be.length=t,n>>=3;for(var r=0;r>>0];return (0>e?ie[-e-1]:tt[e]).apply(null,Be)},v:function(e){var t=r().length;if((e>>>=0)<=t||4294901760=n;n*=2){var o=t*(1+.2/n);o=Math.min(o,e+100663296);var i=Math;o=Math.max(e,o),i=i.min.call(i,4294901760,o+(65536-o%65536)%65536);e:{try{D.grow(i-C.byteLength+65535>>>16),H(D.buffer);var a=1;break e}catch(e){}a=void 0;}if(a)return !0}return !1},U:function(){throw \"unwind\"},M:ze,N:He,k:ce,h:We,o:qe,t:Ke,n:Ye,u:function e(r,o){e.Wa||(e.Wa=function(){if(\"object\"==typeof crypto&&\"function\"==typeof crypto.getRandomValues){var e=new Uint8Array(1);return ()=>(crypto.getRandomValues(e),e[0])}if(v)try{var t=n(760);return ()=>t.randomBytes(1)[0]}catch(e){}return ()=>ne(\"randomDevice\")}());for(var i=0;i>0>>>0]=e.Wa();return 0},a:D||s.wasmMemory,C:et,e:function(e,t,n,r){return et(e,t,n,r)}};!function(){function e(e,t){s.asm=e.exports,pe.$a.push(s.asm.wa),q=s.asm.za,X.unshift(s.asm._),k=t,x||(Q--,s.monitorRunDependencies&&s.monitorRunDependencies(Q),0==Q&&(te&&(e=te,te=null,e())));}function t(t){e(t.instance,t.module);}function n(e){return function(){if(!E&&(w||_)){if(\"function\"==typeof fetch&&!Z.startsWith(\"file://\"))return fetch(Z,{credentials:\"same-origin\"}).then((function(e){if(!e.ok)throw \"failed to load wasm binary file at '\"+Z+\"'\";return e.arrayBuffer()})).catch((function(){return oe()}));if(p)return new Promise((function(e,t){p(Z,(function(t){e(new Uint8Array(t));}),t);}))}return Promise.resolve().then((function(){return oe()}))}().then((function(e){return WebAssembly.instantiate(e,r)})).then((function(e){return e})).then(e,(function(e){$(\"failed to asynchronously prepare wasm: \"+e),ne(e);}))}var r={a:nt};if(x||(Q++,s.monitorRunDependencies&&s.monitorRunDependencies(Q)),s.instantiateWasm)try{return s.instantiateWasm(r,e)}catch(e){return $(\"Module.instantiateWasm callback failed with error: \"+e),!1}(E||\"function\"!=typeof WebAssembly.instantiateStreaming||re()||Z.startsWith(\"file://\")||v||\"function\"!=typeof fetch?n(t):fetch(Z,{credentials:\"same-origin\"}).then((function(e){return WebAssembly.instantiateStreaming(e,r).then(t,(function(e){return $(\"wasm streaming compile failed: \"+e),$(\"falling back to ArrayBuffer instantiation\"),n(t)}))}))).catch(l);}(),s.___wasm_call_ctors=function(){return (s.___wasm_call_ctors=s.asm._).apply(null,arguments)},s._OrtInit=function(){return (s._OrtInit=s.asm.$).apply(null,arguments)},s._OrtCreateSessionOptions=function(){return (s._OrtCreateSessionOptions=s.asm.aa).apply(null,arguments)},s._OrtAppendExecutionProvider=function(){return (s._OrtAppendExecutionProvider=s.asm.ba).apply(null,arguments)},s._OrtAddSessionConfigEntry=function(){return (s._OrtAddSessionConfigEntry=s.asm.ca).apply(null,arguments)},s._OrtReleaseSessionOptions=function(){return (s._OrtReleaseSessionOptions=s.asm.da).apply(null,arguments)},s._OrtCreateSession=function(){return (s._OrtCreateSession=s.asm.ea).apply(null,arguments)},s._OrtReleaseSession=function(){return (s._OrtReleaseSession=s.asm.fa).apply(null,arguments)},s._OrtGetInputCount=function(){return (s._OrtGetInputCount=s.asm.ga).apply(null,arguments)},s._OrtGetOutputCount=function(){return (s._OrtGetOutputCount=s.asm.ha).apply(null,arguments)},s._OrtGetInputName=function(){return (s._OrtGetInputName=s.asm.ia).apply(null,arguments)},s._OrtGetOutputName=function(){return (s._OrtGetOutputName=s.asm.ja).apply(null,arguments)},s._OrtFree=function(){return (s._OrtFree=s.asm.ka).apply(null,arguments)},s._OrtCreateTensor=function(){return (s._OrtCreateTensor=s.asm.la).apply(null,arguments)},s._OrtGetTensorData=function(){return (s._OrtGetTensorData=s.asm.ma).apply(null,arguments)},s._OrtReleaseTensor=function(){return (s._OrtReleaseTensor=s.asm.na).apply(null,arguments)},s._OrtCreateRunOptions=function(){return (s._OrtCreateRunOptions=s.asm.oa).apply(null,arguments)},s._OrtAddRunConfigEntry=function(){return (s._OrtAddRunConfigEntry=s.asm.pa).apply(null,arguments)},s._OrtReleaseRunOptions=function(){return (s._OrtReleaseRunOptions=s.asm.qa).apply(null,arguments)},s._OrtRun=function(){return (s._OrtRun=s.asm.ra).apply(null,arguments)},s._OrtEndProfiling=function(){return (s._OrtEndProfiling=s.asm.sa).apply(null,arguments)};var rt=s._pthread_self=function(){return (rt=s._pthread_self=s.asm.ta).apply(null,arguments)},ot=s._malloc=function(){return (ot=s._malloc=s.asm.ua).apply(null,arguments)};s._free=function(){return (s._free=s.asm.va).apply(null,arguments)},s.__emscripten_tls_init=function(){return (s.__emscripten_tls_init=s.asm.wa).apply(null,arguments)};var it=s.__emscripten_thread_init=function(){return (it=s.__emscripten_thread_init=s.asm.xa).apply(null,arguments)};s.__emscripten_thread_crashed=function(){return (s.__emscripten_thread_crashed=s.asm.ya).apply(null,arguments)};var at,st=s._emscripten_run_in_main_runtime_thread_js=function(){return (st=s._emscripten_run_in_main_runtime_thread_js=s.asm.Aa).apply(null,arguments)},ut=s.__emscripten_proxy_execute_task_queue=function(){return (ut=s.__emscripten_proxy_execute_task_queue=s.asm.Ba).apply(null,arguments)},lt=s.__emscripten_thread_free_data=function(){return (lt=s.__emscripten_thread_free_data=s.asm.Ca).apply(null,arguments)},ct=s.__emscripten_thread_exit=function(){return (ct=s.__emscripten_thread_exit=s.asm.Da).apply(null,arguments)},pt=s._emscripten_stack_set_limits=function(){return (pt=s._emscripten_stack_set_limits=s.asm.Ea).apply(null,arguments)},dt=s.stackSave=function(){return (dt=s.stackSave=s.asm.Fa).apply(null,arguments)},ft=s.stackRestore=function(){return (ft=s.stackRestore=s.asm.Ga).apply(null,arguments)},ht=s.stackAlloc=function(){return (ht=s.stackAlloc=s.asm.Ha).apply(null,arguments)};function gt(){function e(){if(!at&&(at=!0,s.calledRun=!0,!j)&&(x||de(X),u(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),!x)){if(s.postRun)for(\"function\"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;){var e=s.postRun.shift();Y.unshift(e);}de(Y);}}if(!(0{var _scriptDir,r=(_scriptDir=(_scriptDir=\"undefined\"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||\"/index.js\",function(e){var t,r,o;e=e||{},t||(t=void 0!==e?e:{}),t.ready=new Promise((function(e,t){r=e,o=t;}));var i,a,s,u,l,c,p=Object.assign({},t),d=\"./this.program\",f=(e,t)=>{throw t},h=\"object\"==typeof window,g=\"function\"==typeof importScripts,m=\"object\"==typeof process&&\"object\"==typeof process.versions&&\"string\"==typeof process.versions.node,b=\"\";m?(b=g?n(908).dirname(b)+\"/\":\"//\",c=()=>{l||(u=n(1384),l=n(908));},i=function(e,t){return c(),e=l.normalize(e),u.readFileSync(e,t?void 0:\"utf8\")},s=e=>((e=i(e,!0)).buffer||(e=new Uint8Array(e)),e),a=(e,t,n)=>{c(),e=l.normalize(e),u.readFile(e,(function(e,r){e?n(e):t(r.buffer);}));},1{if(v)throw process.exitCode=e,t;t instanceof q||_(\"exiting due to exception: \"+t),process.exit(e);},t.inspect=function(){return \"[Emscripten Module object]\"}):(h||g)&&(g?b=globalThis.location.href:\"undefined\"!=typeof document&&document.currentScript&&(b=document.currentScript.src),_scriptDir&&(b=_scriptDir),b=0!==b.indexOf(\"blob:\")?b.substr(0,b.replace(/[?#].*/,\"\").lastIndexOf(\"/\")+1):\"\",i=e=>{var t=new XMLHttpRequest;return t.open(\"GET\",e,!1),t.send(null),t.responseText},g&&(s=e=>{var t=new XMLHttpRequest;return t.open(\"GET\",e,!1),t.responseType=\"arraybuffer\",t.send(null),new Uint8Array(t.response)}),a=(e,t,n)=>{var r=new XMLHttpRequest;r.open(\"GET\",e,!0),r.responseType=\"arraybuffer\",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):n();},r.onerror=n,r.send(null);});var y,w=t.print||console.log.bind(console),_=t.printErr||console.warn.bind(console);Object.assign(t,p),p=null,t.thisProgram&&(d=t.thisProgram),t.quit&&(f=t.quit),t.wasmBinary&&(y=t.wasmBinary);var v=t.noExitRuntime||!0;\"object\"!=typeof WebAssembly&&V(\"no native wasm support detected\");var x,T,S,O,A,E,I=!1,$=\"undefined\"!=typeof TextDecoder?new TextDecoder(\"utf8\"):void 0;function P(e,t,n){var r=(t>>>=0)+n;for(n=t;e[n]&&!(n>=r);)++n;if(16(o=224==(240&o)?(15&o)<<12|i<<6|a:(7&o)<<18|i<<12|a<<6|63&e[t++])?r+=String.fromCharCode(o):(o-=65536,r+=String.fromCharCode(55296|o>>10,56320|1023&o));}}else r+=String.fromCharCode(o);}return r}function D(e,t){return (e>>>=0)?P(O,e,t):\"\"}function k(e,t,n,r){if(!(0>>=0;r=n+r-1;for(var i=0;i=a&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i)),127>=a){if(n>=r)break;t[n++>>>0]=a;}else {if(2047>=a){if(n+1>=r)break;t[n++>>>0]=192|a>>6;}else {if(65535>=a){if(n+2>=r)break;t[n++>>>0]=224|a>>12;}else {if(n+3>=r)break;t[n++>>>0]=240|a>>18,t[n++>>>0]=128|a>>12&63;}t[n++>>>0]=128|a>>6&63;}t[n++>>>0]=128|63&a;}}return t[n>>>0]=0,n-o}function C(e){for(var t=0,n=0;n=r?t++:2047>=r?t+=2:55296<=r&&57343>=r?(t+=4,++n):t+=3;}return t}function R(){var e=x.buffer;T=e,t.HEAP8=S=new Int8Array(e),t.HEAP16=new Int16Array(e),t.HEAP32=A=new Int32Array(e),t.HEAPU8=O=new Uint8Array(e),t.HEAPU16=new Uint16Array(e),t.HEAPU32=E=new Uint32Array(e),t.HEAPF32=new Float32Array(e),t.HEAPF64=new Float64Array(e);}var M=[],N=[],F=[];function L(){var e=t.preRun.shift();M.unshift(e);}var j,U=0,G=null;function V(e){throw t.onAbort&&t.onAbort(e),_(e=\"Aborted(\"+e+\")\"),I=!0,e=new WebAssembly.RuntimeError(e+\". Build with -sASSERTIONS for more info.\"),o(e),e}function z(){return j.startsWith(\"data:application/octet-stream;base64,\")}if(j=\"ort-wasm.wasm\",!z()){var H=j;j=t.locateFile?t.locateFile(H,b):b+H;}function W(){var e=j;try{if(e==j&&y)return new Uint8Array(y);if(s)return s(e);throw \"both async and sync fetching of the wasm failed\"}catch(e){V(e);}}function q(e){this.name=\"ExitStatus\",this.message=\"Program terminated with exit(\"+e+\")\",this.status=e;}function K(e){for(;0>2>>>0]=e;},this.Ba=function(e){E[this.sa+8>>2>>>0]=e;},this.Ga=function(){A[this.sa>>2>>>0]=0;},this.Aa=function(){S[this.sa+12>>0>>>0]=0;},this.Ha=function(){S[this.sa+13>>0>>>0]=0;},this.ya=function(e,t){this.za(),this.Ia(e),this.Ba(t),this.Ga(),this.Aa(),this.Ha();},this.za=function(){E[this.sa+16>>2>>>0]=0;};}function Y(e){var t=C(e)+1,n=ae(t);return n&&k(e,S,n,t),n}var J={};function Z(){if(!Q){var e,t={USER:\"web_user\",LOGNAME:\"web_user\",PATH:\"/\",PWD:\"/\",HOME:\"/home/web_user\",LANG:(\"object\"==typeof navigator&&navigator.languages&&navigator.languages[0]||\"C\").replace(\"-\",\"_\")+\".UTF-8\",_:d||\"./this.program\"};for(e in J)void 0===J[e]?delete t[e]:t[e]=J[e];var n=[];for(e in t)n.push(e+\"=\"+t[e]);Q=n;}return Q}var Q,ee=[null,[],[]];function te(e){return 0==e%4&&(0!=e%100||0==e%400)}var ne=[31,29,31,30,31,30,31,31,30,31,30,31],re=[31,28,31,30,31,30,31,31,30,31,30,31];function oe(e,t,n,r){function o(e,t,n){for(e=\"number\"==typeof e?e.toString():e||\"\";e.lengthe?-1:0r-e.getDate())){e.setDate(e.getDate()+t);break}t-=r-e.getDate()+1,e.setDate(1),11>n?e.setMonth(n+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1));}return n=new Date(e.getFullYear()+1,0,4),t=s(new Date(e.getFullYear(),0,4)),n=s(n),0>=a(t,e)?0>=a(n,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var l=A[r+40>>2>>>0];for(var c in r={Ea:A[r>>2>>>0],Da:A[r+4>>2>>>0],ta:A[r+8>>2>>>0],va:A[r+12>>2>>>0],ua:A[r+16>>2>>>0],ra:A[r+20>>2>>>0],la:A[r+24>>2>>>0],qa:A[r+28>>2>>>0],Ja:A[r+32>>2>>>0],Ca:A[r+36>>2>>>0],Fa:l?D(l):\"\"},n=D(n),l={\"%c\":\"%a %b %d %H:%M:%S %Y\",\"%D\":\"%m/%d/%y\",\"%F\":\"%Y-%m-%d\",\"%h\":\"%b\",\"%r\":\"%I:%M:%S %p\",\"%R\":\"%H:%M\",\"%T\":\"%H:%M:%S\",\"%x\":\"%m/%d/%y\",\"%X\":\"%H:%M:%S\",\"%Ec\":\"%c\",\"%EC\":\"%C\",\"%Ex\":\"%m/%d/%y\",\"%EX\":\"%H:%M:%S\",\"%Ey\":\"%y\",\"%EY\":\"%Y\",\"%Od\":\"%d\",\"%Oe\":\"%e\",\"%OH\":\"%H\",\"%OI\":\"%I\",\"%Om\":\"%m\",\"%OM\":\"%M\",\"%OS\":\"%S\",\"%Ou\":\"%u\",\"%OU\":\"%U\",\"%OV\":\"%V\",\"%Ow\":\"%w\",\"%OW\":\"%W\",\"%Oy\":\"%y\"})n=n.replace(new RegExp(c,\"g\"),l[c]);var p=\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),d=\"January February March April May June July August September October November December\".split(\" \");for(c in l={\"%a\":function(e){return p[e.la].substring(0,3)},\"%A\":function(e){return p[e.la]},\"%b\":function(e){return d[e.ua].substring(0,3)},\"%B\":function(e){return d[e.ua]},\"%C\":function(e){return i((e.ra+1900)/100|0,2)},\"%d\":function(e){return i(e.va,2)},\"%e\":function(e){return o(e.va,2,\" \")},\"%g\":function(e){return u(e).toString().substring(2)},\"%G\":function(e){return u(e)},\"%H\":function(e){return i(e.ta,2)},\"%I\":function(e){return 0==(e=e.ta)?e=12:12e.ta?\"AM\":\"PM\"},\"%S\":function(e){return i(e.Ea,2)},\"%t\":function(){return \"\\t\"},\"%u\":function(e){return e.la||7},\"%U\":function(e){return i(Math.floor((e.qa+7-e.la)/7),2)},\"%V\":function(e){var t=Math.floor((e.qa+7-(e.la+6)%7)/7);if(2>=(e.la+371-e.qa-2)%7&&t++,t)53==t&&(4==(n=(e.la+371-e.qa)%7)||3==n&&te(e.ra)||(t=1));else {t=52;var n=(e.la+7-e.qa-1)%7;(4==n||5==n&&te(e.ra%400-1))&&t++;}return i(t,2)},\"%w\":function(e){return e.la},\"%W\":function(e){return i(Math.floor((e.qa+7-(e.la+6)%7)/7),2)},\"%y\":function(e){return (e.ra+1900).toString().substring(2)},\"%Y\":function(e){return e.ra+1900},\"%z\":function(e){var t=0<=(e=e.Ca);return e=Math.abs(e)/60,(t?\"+\":\"-\")+String(\"0000\"+(e/60*100+e%60)).slice(-4)},\"%Z\":function(e){return e.Fa},\"%%\":function(){return \"%\"}},n=n.replace(/%%/g,\"\\0\\0\"),l)n.includes(c)&&(n=n.replace(new RegExp(c,\"g\"),l[c](r)));return c=function(e){var t=Array(C(e)+1);return k(e,t,0,t.length),t}(n=n.replace(/\\0\\0/g,\"%\")),c.length>t?0:(S.set(c,e>>>0),c.length-1)}var ie={a:function(e){return ae(e+24)+24},b:function(e,t,n){throw new X(e).ya(t,n),e},g:function(){return 0},I:function(){},w:function(){},y:function(){},K:function(){return 0},G:function(){},C:function(){},F:function(){},k:function(){},x:function(){},u:function(){},H:function(){},v:function(){},n:function(){},p:function(){V(\"To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking\");},o:function(){V(\"To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking\");},l:function(){return Date.now()},L:function(){return !0},M:function(e,t){e=new Date(1e3*(E[e>>>2]+4294967296*A[e+4>>>2])),A[t>>2>>>0]=e.getUTCSeconds(),A[t+4>>2>>>0]=e.getUTCMinutes(),A[t+8>>2>>>0]=e.getUTCHours(),A[t+12>>2>>>0]=e.getUTCDate(),A[t+16>>2>>>0]=e.getUTCMonth(),A[t+20>>2>>>0]=e.getUTCFullYear()-1900,A[t+24>>2>>>0]=e.getUTCDay(),A[t+28>>2>>>0]=(e.getTime()-Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0;},N:function(e,t){e=new Date(1e3*(E[e>>>2]+4294967296*A[e+4>>>2])),A[t>>2>>>0]=e.getSeconds(),A[t+4>>2>>>0]=e.getMinutes(),A[t+8>>2>>>0]=e.getHours(),A[t+12>>2>>>0]=e.getDate(),A[t+16>>2>>>0]=e.getMonth(),A[t+20>>2>>>0]=e.getFullYear()-1900,A[t+24>>2>>>0]=e.getDay();var n=new Date(e.getFullYear(),0,1);A[t+28>>2>>>0]=(e.getTime()-n.getTime())/864e5|0,A[t+36>>2>>>0]=-60*e.getTimezoneOffset();var r=new Date(e.getFullYear(),6,1).getTimezoneOffset();n=n.getTimezoneOffset(),A[t+32>>2>>>0]=0|(r!=n&&e.getTimezoneOffset()==Math.min(n,r));},O:function(e){var t=new Date(A[e+20>>2>>>0]+1900,A[e+16>>2>>>0],A[e+12>>2>>>0],A[e+8>>2>>>0],A[e+4>>2>>>0],A[e>>2>>>0],0),n=A[e+32>>2>>>0],r=t.getTimezoneOffset(),o=new Date(t.getFullYear(),0,1),i=new Date(t.getFullYear(),6,1).getTimezoneOffset(),a=o.getTimezoneOffset(),s=Math.min(a,i);return 0>n?A[e+32>>2>>>0]=Number(i!=a&&s==r):0>2>>>0]=t.getDay(),A[e+28>>2>>>0]=(t.getTime()-o.getTime())/864e5|0,A[e>>2>>>0]=t.getSeconds(),A[e+4>>2>>>0]=t.getMinutes(),A[e+8>>2>>>0]=t.getHours(),A[e+12>>2>>>0]=t.getDate(),A[e+16>>2>>>0]=t.getMonth(),t.getTime()/1e3|0},z:function(){return -52},B:function(){},m:function e(t,n,r){e.xa||(e.xa=!0,function(e,t,n){function r(e){return (e=e.toTimeString().match(/\\(([A-Za-z ]+)\\)$/))?e[1]:\"GMT\"}var o=(new Date).getFullYear(),i=new Date(o,0,1),a=new Date(o,6,1);o=i.getTimezoneOffset();var s=a.getTimezoneOffset();A[e>>2>>>0]=60*Math.max(o,s),A[t>>2>>>0]=Number(o!=s),e=r(i),t=r(a),e=Y(e),t=Y(t),s>2>>>0]=e,E[n+4>>2>>>0]=t):(E[n>>2>>>0]=t,E[n+4>>2>>>0]=e);}(t,n,r));},d:function(){V(\"\");},t:function(){return 4294901760},h:m?()=>{var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:()=>performance.now(),J:function(e,t,n){O.copyWithin(e>>>0,t>>>0,t+n>>>0);},f:function(e){var t=O.length;if(4294901760<(e>>>=0))return !1;for(var n=1;4>=n;n*=2){var r=t*(1+.2/n);r=Math.min(r,e+100663296);var o=Math;r=Math.max(e,r),o=o.min.call(o,4294901760,r+(65536-r%65536)%65536);e:{try{x.grow(o-T.byteLength+65535>>>16),R();var i=1;break e}catch(e){}i=void 0;}if(i)return !0}return !1},D:function(e,t){var n=0;return Z().forEach((function(r,o){var i=t+n;for(o=E[e+4*o>>2>>>0]=i,i=0;i>0>>>0]=r.charCodeAt(i);S[o>>0>>>0]=0,n+=r.length+1;})),0},E:function(e,t){var n=Z();E[e>>2>>>0]=n.length;var r=0;return n.forEach((function(e){r+=e.length+1;})),E[t>>2>>>0]=r,0},r:function(e){v||(t.onExit&&t.onExit(e),I=!0),f(e,new q(e));},e:function(){return 52},j:function(){return 52},q:function(){return 70},i:function(e,t,n,r){for(var o=0,i=0;i>2>>>0],s=E[t+4>>2>>>0];t+=8;for(var u=0;u>>0],c=ee[e];0===l||10===l?((1===e?w:_)(P(c,0)),c.length=0):c.push(l);}o+=s;}return E[r>>2>>>0]=o,0},s:function e(t,r){e.wa||(e.wa=function(){if(\"object\"==typeof crypto&&\"function\"==typeof crypto.getRandomValues){var e=new Uint8Array(1);return ()=>(crypto.getRandomValues(e),e[0])}if(m)try{var t=n(760);return ()=>t.randomBytes(1)[0]}catch(e){}return ()=>V(\"randomDevice\")}());for(var o=0;o>0>>>0]=e.wa();return 0},A:oe,c:function(e,t,n,r){return oe(e,t,n,r)}};!function(){function e(e){t.asm=e.exports,x=t.asm.P,R(),N.unshift(t.asm.Q),U--,t.monitorRunDependencies&&t.monitorRunDependencies(U),0==U&&(G&&(e=G,G=null,e()));}function n(t){e(t.instance);}function r(e){return function(){if(!y&&(h||g)){if(\"function\"==typeof fetch&&!j.startsWith(\"file://\"))return fetch(j,{credentials:\"same-origin\"}).then((function(e){if(!e.ok)throw \"failed to load wasm binary file at '\"+j+\"'\";return e.arrayBuffer()})).catch((function(){return W()}));if(a)return new Promise((function(e,t){a(j,(function(t){e(new Uint8Array(t));}),t);}))}return Promise.resolve().then((function(){return W()}))}().then((function(e){return WebAssembly.instantiate(e,i)})).then((function(e){return e})).then(e,(function(e){_(\"failed to asynchronously prepare wasm: \"+e),V(e);}))}var i={a:ie};if(U++,t.monitorRunDependencies&&t.monitorRunDependencies(U),t.instantiateWasm)try{return t.instantiateWasm(i,e)}catch(e){return _(\"Module.instantiateWasm callback failed with error: \"+e),!1}(y||\"function\"!=typeof WebAssembly.instantiateStreaming||z()||j.startsWith(\"file://\")||m||\"function\"!=typeof fetch?r(n):fetch(j,{credentials:\"same-origin\"}).then((function(e){return WebAssembly.instantiateStreaming(e,i).then(n,(function(e){return _(\"wasm streaming compile failed: \"+e),_(\"falling back to ArrayBuffer instantiation\"),r(n)}))}))).catch(o);}(),t.___wasm_call_ctors=function(){return (t.___wasm_call_ctors=t.asm.Q).apply(null,arguments)},t._OrtInit=function(){return (t._OrtInit=t.asm.R).apply(null,arguments)},t._OrtCreateSessionOptions=function(){return (t._OrtCreateSessionOptions=t.asm.S).apply(null,arguments)},t._OrtAppendExecutionProvider=function(){return (t._OrtAppendExecutionProvider=t.asm.T).apply(null,arguments)},t._OrtAddSessionConfigEntry=function(){return (t._OrtAddSessionConfigEntry=t.asm.U).apply(null,arguments)},t._OrtReleaseSessionOptions=function(){return (t._OrtReleaseSessionOptions=t.asm.V).apply(null,arguments)},t._OrtCreateSession=function(){return (t._OrtCreateSession=t.asm.W).apply(null,arguments)},t._OrtReleaseSession=function(){return (t._OrtReleaseSession=t.asm.X).apply(null,arguments)},t._OrtGetInputCount=function(){return (t._OrtGetInputCount=t.asm.Y).apply(null,arguments)},t._OrtGetOutputCount=function(){return (t._OrtGetOutputCount=t.asm.Z).apply(null,arguments)},t._OrtGetInputName=function(){return (t._OrtGetInputName=t.asm._).apply(null,arguments)},t._OrtGetOutputName=function(){return (t._OrtGetOutputName=t.asm.$).apply(null,arguments)},t._OrtFree=function(){return (t._OrtFree=t.asm.aa).apply(null,arguments)},t._OrtCreateTensor=function(){return (t._OrtCreateTensor=t.asm.ba).apply(null,arguments)},t._OrtGetTensorData=function(){return (t._OrtGetTensorData=t.asm.ca).apply(null,arguments)},t._OrtReleaseTensor=function(){return (t._OrtReleaseTensor=t.asm.da).apply(null,arguments)},t._OrtCreateRunOptions=function(){return (t._OrtCreateRunOptions=t.asm.ea).apply(null,arguments)},t._OrtAddRunConfigEntry=function(){return (t._OrtAddRunConfigEntry=t.asm.fa).apply(null,arguments)},t._OrtReleaseRunOptions=function(){return (t._OrtReleaseRunOptions=t.asm.ga).apply(null,arguments)},t._OrtRun=function(){return (t._OrtRun=t.asm.ha).apply(null,arguments)},t._OrtEndProfiling=function(){return (t._OrtEndProfiling=t.asm.ia).apply(null,arguments)};var ae=t._malloc=function(){return (ae=t._malloc=t.asm.ja).apply(null,arguments)};t._free=function(){return (t._free=t.asm.ka).apply(null,arguments)};var se,ue=t.stackSave=function(){return (ue=t.stackSave=t.asm.ma).apply(null,arguments)},le=t.stackRestore=function(){return (le=t.stackRestore=t.asm.na).apply(null,arguments)},ce=t.stackAlloc=function(){return (ce=t.stackAlloc=t.asm.oa).apply(null,arguments)};function pe(){function e(){if(!se&&(se=!0,t.calledRun=!0,!I)){if(K(N),r(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for(\"function\"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;){var e=t.postRun.shift();F.unshift(e);}K(F);}}if(!(0{e.exports=function(e,t){for(var n=new Array(arguments.length-1),r=0,o=2,i=!0;o{var n=t;n.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&\"=\"===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var r=new Array(64),o=new Array(123),i=0;i<64;)o[r[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;n.encode=function(e,t,n){for(var o,i=null,a=[],s=0,u=0;t>2],o=(3&l)<<4,u=1;break;case 1:a[s++]=r[o|l>>4],o=(15&l)<<2,u=2;break;case 2:a[s++]=r[o|l>>6],a[s++]=r[63&l],u=0;}s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,a)),s=0);}return u&&(a[s++]=r[o],a[s++]=61,1===u&&(a[s++]=61)),i?(s&&i.push(String.fromCharCode.apply(String,a.slice(0,s))),i.join(\"\")):String.fromCharCode.apply(String,a.slice(0,s))};var a=\"invalid encoding\";n.decode=function(e,t,n){for(var r,i=n,s=0,u=0;u1)break;if(void 0===(l=o[l]))throw Error(a);switch(s){case 0:r=l,s=1;break;case 1:t[n++]=r<<2|(48&l)>>4,r=l,s=2;break;case 2:t[n++]=(15&r)<<4|(60&l)>>2,r=l,s=3;break;case 3:t[n++]=(3&r)<<6|l,s=0;}}if(1===s)throw Error(a);return n-i},n.test=function(e){return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)};},9211:e=>{function t(){this._listeners={};}e.exports=t,t.prototype.on=function(e,t,n){return (this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r{function t(e){return \"undefined\"!=typeof Float32Array?function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),r=128===n[3];function o(e,r,o){t[0]=e,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3];}function i(e,r,o){t[0]=e,r[o]=n[3],r[o+1]=n[2],r[o+2]=n[1],r[o+3]=n[0];}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t[0]}function s(e,r){return n[3]=e[r],n[2]=e[r+1],n[1]=e[r+2],n[0]=e[r+3],t[0]}e.writeFloatLE=r?o:i,e.writeFloatBE=r?i:o,e.readFloatLE=r?a:s,e.readFloatBE=r?s:a;}():function(){function t(e,t,n,r){var o=t<0?1:0;if(o&&(t=-t),0===t)e(1/t>0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else {var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,n,r);}}function a(e,t,n){var r=e(t,n),o=2*(r>>31)+1,i=r>>>23&255,a=8388607&r;return 255===i?a?NaN:o*(1/0):0===i?1401298464324817e-60*o*a:o*Math.pow(2,i-150)*(a+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,r),e.readFloatLE=a.bind(null,o),e.readFloatBE=a.bind(null,i);}(),\"undefined\"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function o(e,r,o){t[0]=e,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3],r[o+4]=n[4],r[o+5]=n[5],r[o+6]=n[6],r[o+7]=n[7];}function i(e,r,o){t[0]=e,r[o]=n[7],r[o+1]=n[6],r[o+2]=n[5],r[o+3]=n[4],r[o+4]=n[3],r[o+5]=n[2],r[o+6]=n[1],r[o+7]=n[0];}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?o:i,e.writeDoubleBE=r?i:o,e.readDoubleLE=r?a:s,e.readDoubleBE=r?s:a;}():function(){function t(e,t,n,r,o,i){var a=r<0?1:0;if(a&&(r=-r),0===r)e(0,o,i+t),e(1/r>0?0:2147483648,o,i+n);else if(isNaN(r))e(0,o,i+t),e(2146959360,o,i+n);else if(r>17976931348623157e292)e(0,o,i+t),e((a<<31|2146435072)>>>0,o,i+n);else {var s;if(r<22250738585072014e-324)e((s=r/5e-324)>>>0,o,i+t),e((a<<31|s/4294967296)>>>0,o,i+n);else {var u=Math.floor(Math.log(r)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(s=r*Math.pow(2,-u))>>>0,o,i+t),e((a<<31|u+1023<<20|1048576*s&1048575)>>>0,o,i+n);}}}function a(e,t,n,r,o){var i=e(r,o+t),a=e(r,o+n),s=2*(a>>31)+1,u=a>>>20&2047,l=4294967296*(1048575&a)+i;return 2047===u?l?NaN:s*(1/0):0===u?5e-324*s*l:s*Math.pow(2,u-1075)*(l+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=a.bind(null,o,0,4),e.readDoubleBE=a.bind(null,i,4,0);}(),e}function n(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24;}function r(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e;}function o(e,t){return (e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return (e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t);},7199:module=>{function inquire(moduleName){try{var mod=eval(\"quire\".replace(/^/,\"re\"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire;},6662:e=>{e.exports=function(e,t,n){var r=n||8192,o=r>>>1,i=null,a=r;return function(n){if(n<1||n>o)return e(n);a+n>r&&(i=e(r),a=0);var s=t.call(i,a,a+=n);return 7&a&&(a=1+(7|a)),s}};},4997:(e,t)=>{var n=t;n.length=function(e){for(var t=0,n=0,r=0;r191&&r<224?i[a++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[a++]=55296+(r>>10),i[a++]=56320+(1023&r)):i[a++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),a=0);return o?(a&&o.push(String.fromCharCode.apply(String,i.slice(0,a))),o.join(\"\")):String.fromCharCode.apply(String,i.slice(0,a))},n.write=function(e,t,n){for(var r,o,i=n,a=0;a>6|192,t[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(o=e.charCodeAt(a+1)))?(r=65536+((1023&r)<<10)+(1023&o),++a,t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128);return n-i};},3442:(e,t)=>{t.__esModule=!0;var n=function(){function e(t){if(!t)throw new TypeError(\"Invalid argument; `value` has no value.\");this.value=e.EMPTY,t&&e.isGuid(t)&&(this.value=t);}return e.isGuid=function(t){var n=t.toString();return t&&(t instanceof e||e.validator.test(n))},e.create=function(){return new e([e.gen(2),e.gen(1),e.gen(1),e.gen(1),e.gen(3)].join(\"-\"))},e.createEmpty=function(){return new e(\"emptyguid\")},e.parse=function(t){return new e(t)},e.raw=function(){return [e.gen(2),e.gen(1),e.gen(1),e.gen(1),e.gen(3)].join(\"-\")},e.gen=function(e){for(var t=\"\",n=0;n{e.exports=n;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports;}catch(e){}function n(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n;}function r(e){return !0===(e&&e.__isLong__)}n.prototype.__isLong__,Object.defineProperty(n.prototype,\"__isLong__\",{value:!0}),n.isLong=r;var o={},i={};function a(e,t){var n,r,a;return t?(a=0<=(e>>>=0)&&e<256)&&(r=i[e])?r:(n=u(e,(0|e)<0?-1:0,!0),a&&(i[e]=n),n):(a=-128<=(e|=0)&&e<128)&&(r=o[e])?r:(n=u(e,e<0?-1:0,!1),a&&(o[e]=n),n)}function s(e,t){if(isNaN(e))return t?b:m;if(t){if(e<0)return b;if(e>=f)return x}else {if(e<=-h)return T;if(e+1>=h)return v}return e<0?s(-e,t).neg():u(e%d|0,e/d|0,t)}function u(e,t,r){return new n(e,t,r)}n.fromInt=a,n.fromNumber=s,n.fromBits=u;var l=Math.pow;function c(e,t,n){if(0===e.length)throw Error(\"empty string\");if(\"NaN\"===e||\"Infinity\"===e||\"+Infinity\"===e||\"-Infinity\"===e)return m;if(\"number\"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||360)throw Error(\"interior hyphen\");if(0===r)return c(e.substring(1),t,n).neg();for(var o=s(l(n,8)),i=m,a=0;a>>0:this.low},S.toNumber=function(){return this.unsigned?(this.high>>>0)*d+(this.low>>>0):this.high*d+(this.low>>>0)},S.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((i=u).isZero())return c+a;for(;c.length<6;)c=\"0\"+c;a=\"\"+c+a;}},S.getHighBits=function(){return this.high},S.getHighBitsUnsigned=function(){return this.high>>>0},S.getLowBits=function(){return this.low},S.getLowBitsUnsigned=function(){return this.low>>>0},S.getNumBitsAbs=function(){if(this.isNegative())return this.eq(T)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<=0},S.isOdd=function(){return 1==(1&this.low)},S.isEven=function(){return 0==(1&this.low)},S.equals=function(e){return r(e)||(e=p(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},S.eq=S.equals,S.notEquals=function(e){return !this.eq(e)},S.neq=S.notEquals,S.ne=S.notEquals,S.lessThan=function(e){return this.comp(e)<0},S.lt=S.lessThan,S.lessThanOrEqual=function(e){return this.comp(e)<=0},S.lte=S.lessThanOrEqual,S.le=S.lessThanOrEqual,S.greaterThan=function(e){return this.comp(e)>0},S.gt=S.greaterThan,S.greaterThanOrEqual=function(e){return this.comp(e)>=0},S.gte=S.greaterThanOrEqual,S.ge=S.greaterThanOrEqual,S.compare=function(e){if(r(e)||(e=p(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},S.comp=S.compare,S.negate=function(){return !this.unsigned&&this.eq(T)?T:this.not().add(y)},S.neg=S.negate,S.add=function(e){r(e)||(e=p(e));var t=this.high>>>16,n=65535&this.high,o=this.low>>>16,i=65535&this.low,a=e.high>>>16,s=65535&e.high,l=e.low>>>16,c=0,d=0,f=0,h=0;return f+=(h+=i+(65535&e.low))>>>16,d+=(f+=o+l)>>>16,c+=(d+=n+s)>>>16,c+=t+a,u((f&=65535)<<16|(h&=65535),(c&=65535)<<16|(d&=65535),this.unsigned)},S.subtract=function(e){return r(e)||(e=p(e)),this.add(e.neg())},S.sub=S.subtract,S.multiply=function(e){if(this.isZero())return m;if(r(e)||(e=p(e)),t)return u(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return m;if(this.eq(T))return e.isOdd()?T:m;if(e.eq(T))return this.isOdd()?T:m;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(g)&&e.lt(g))return s(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,o=65535&this.high,i=this.low>>>16,a=65535&this.low,l=e.high>>>16,c=65535&e.high,d=e.low>>>16,f=65535&e.low,h=0,b=0,y=0,w=0;return y+=(w+=a*f)>>>16,b+=(y+=i*f)>>>16,y&=65535,b+=(y+=a*d)>>>16,h+=(b+=o*f)>>>16,b&=65535,h+=(b+=i*d)>>>16,b&=65535,h+=(b+=a*c)>>>16,h+=n*f+o*d+i*c+a*l,u((y&=65535)<<16|(w&=65535),(h&=65535)<<16|(b&=65535),this.unsigned)},S.mul=S.multiply,S.divide=function(e){if(r(e)||(e=p(e)),e.isZero())throw Error(\"division by zero\");var n,o,i;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?u((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?b:m;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return b;if(e.gt(this.shru(1)))return w;i=b;}else {if(this.eq(T))return e.eq(y)||e.eq(_)?T:e.eq(T)?y:(n=this.shr(1).div(e).shl(1)).eq(m)?e.isNegative()?y:_:(o=this.sub(e.mul(n)),i=n.add(o.div(e)));if(e.eq(T))return this.unsigned?b:m;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();i=m;}for(o=this;o.gte(e);){n=Math.max(1,Math.floor(o.toNumber()/e.toNumber()));for(var a=Math.ceil(Math.log(n)/Math.LN2),c=a<=48?1:l(2,a-48),d=s(n),f=d.mul(e);f.isNegative()||f.gt(o);)f=(d=s(n-=c,this.unsigned)).mul(e);d.isZero()&&(d=y),i=i.add(d),o=o.sub(f);}return i},S.div=S.divide,S.modulo=function(e){return r(e)||(e=p(e)),t?u((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},S.mod=S.modulo,S.rem=S.modulo,S.not=function(){return u(~this.low,~this.high,this.unsigned)},S.and=function(e){return r(e)||(e=p(e)),u(this.low&e.low,this.high&e.high,this.unsigned)},S.or=function(e){return r(e)||(e=p(e)),u(this.low|e.low,this.high|e.high,this.unsigned)},S.xor=function(e){return r(e)||(e=p(e)),u(this.low^e.low,this.high^e.high,this.unsigned)},S.shiftLeft=function(e){return r(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low<>>32-e,this.unsigned):u(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):u(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},S.shr=S.shiftRight,S.shiftRightUnsigned=function(e){if(r(e)&&(e=e.toInt()),0==(e&=63))return this;var t=this.high;return e<32?u(this.low>>>e|t<<32-e,t>>>e,this.unsigned):u(32===e?t:t>>>e-32,0,this.unsigned)},S.shru=S.shiftRightUnsigned,S.shr_u=S.shiftRightUnsigned,S.toSigned=function(){return this.unsigned?u(this.low,this.high,!1):this},S.toUnsigned=function(){return this.unsigned?this:u(this.low,this.high,!0)},S.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},S.toBytesLE=function(){var e=this.high,t=this.low;return [255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},S.toBytesBE=function(){var e=this.high,t=this.low;return [e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},n.fromBytes=function(e,t,r){return r?n.fromBytesLE(e,t):n.fromBytesBE(e,t)},n.fromBytesLE=function(e,t){return new n(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},n.fromBytesBE=function(e,t){return new n(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)};},1446:(e,t,n)=>{var r,o,i,a=n(2100),s=a.Reader,u=a.Writer,l=a.util,c=a.roots.default||(a.roots.default={});c.onnx=((i={}).Version=(r={},(o=Object.create(r))[r[0]=\"_START_VERSION\"]=0,o[r[1]=\"IR_VERSION_2017_10_10\"]=1,o[r[2]=\"IR_VERSION_2017_10_30\"]=2,o[r[3]=\"IR_VERSION_2017_11_3\"]=3,o[r[4]=\"IR_VERSION_2019_1_22\"]=4,o[r[5]=\"IR_VERSION\"]=5,o),i.AttributeProto=function(){function e(e){if(this.floats=[],this.ints=[],this.strings=[],this.tensors=[],this.graphs=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.name=e.string();break;case 21:r.refAttrName=e.string();break;case 13:r.docString=e.string();break;case 20:r.type=e.int32();break;case 2:r.f=e.float();break;case 3:r.i=e.int64();break;case 4:r.s=e.bytes();break;case 5:r.t=c.onnx.TensorProto.decode(e,e.uint32());break;case 6:r.g=c.onnx.GraphProto.decode(e,e.uint32());break;case 7:if(r.floats&&r.floats.length||(r.floats=[]),2==(7&o))for(var i=e.uint32()+e.pos;e.pos>>0,e.i.high>>>0).toNumber())),null!=e.s&&(\"string\"==typeof e.s?l.base64.decode(e.s,t.s=l.newBuffer(l.base64.length(e.s)),0):e.s.length&&(t.s=e.s)),null!=e.t){if(\"object\"!=typeof e.t)throw TypeError(\".onnx.AttributeProto.t: object expected\");t.t=c.onnx.TensorProto.fromObject(e.t);}if(null!=e.g){if(\"object\"!=typeof e.g)throw TypeError(\".onnx.AttributeProto.g: object expected\");t.g=c.onnx.GraphProto.fromObject(e.g);}if(e.floats){if(!Array.isArray(e.floats))throw TypeError(\".onnx.AttributeProto.floats: array expected\");t.floats=[];for(var n=0;n>>0,e.ints[n].high>>>0).toNumber());}if(e.strings){if(!Array.isArray(e.strings))throw TypeError(\".onnx.AttributeProto.strings: array expected\");for(t.strings=[],n=0;n>>0,e.i.high>>>0).toNumber():e.i),null!=e.s&&e.hasOwnProperty(\"s\")&&(n.s=t.bytes===String?l.base64.encode(e.s,0,e.s.length):t.bytes===Array?Array.prototype.slice.call(e.s):e.s),null!=e.t&&e.hasOwnProperty(\"t\")&&(n.t=c.onnx.TensorProto.toObject(e.t,t)),null!=e.g&&e.hasOwnProperty(\"g\")&&(n.g=c.onnx.GraphProto.toObject(e.g,t)),e.floats&&e.floats.length){n.floats=[];for(var o=0;o>>0,e.ints[o].high>>>0).toNumber():e.ints[o];if(e.strings&&e.strings.length)for(n.strings=[],o=0;o>>3){case 1:r.name=e.string();break;case 2:r.type=c.onnx.TypeProto.decode(e,e.uint32());break;case 3:r.docString=e.string();break;default:e.skipType(7&o);}}return r},e.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},e.verify=function(e){if(\"object\"!=typeof e||null===e)return \"object expected\";if(null!=e.name&&e.hasOwnProperty(\"name\")&&!l.isString(e.name))return \"name: string expected\";if(null!=e.type&&e.hasOwnProperty(\"type\")){var t=c.onnx.TypeProto.verify(e.type);if(t)return \"type.\"+t}return null!=e.docString&&e.hasOwnProperty(\"docString\")&&!l.isString(e.docString)?\"docString: string expected\":null},e.fromObject=function(e){if(e instanceof c.onnx.ValueInfoProto)return e;var t=new c.onnx.ValueInfoProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.type){if(\"object\"!=typeof e.type)throw TypeError(\".onnx.ValueInfoProto.type: object expected\");t.type=c.onnx.TypeProto.fromObject(e.type);}return null!=e.docString&&(t.docString=String(e.docString)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.name=\"\",n.type=null,n.docString=\"\"),null!=e.name&&e.hasOwnProperty(\"name\")&&(n.name=e.name),null!=e.type&&e.hasOwnProperty(\"type\")&&(n.type=c.onnx.TypeProto.toObject(e.type,t)),null!=e.docString&&e.hasOwnProperty(\"docString\")&&(n.docString=e.docString),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e}(),i.NodeProto=function(){function e(e){if(this.input=[],this.output=[],this.attribute=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.input&&r.input.length||(r.input=[]),r.input.push(e.string());break;case 2:r.output&&r.output.length||(r.output=[]),r.output.push(e.string());break;case 3:r.name=e.string();break;case 4:r.opType=e.string();break;case 7:r.domain=e.string();break;case 5:r.attribute&&r.attribute.length||(r.attribute=[]),r.attribute.push(c.onnx.AttributeProto.decode(e,e.uint32()));break;case 6:r.docString=e.string();break;default:e.skipType(7&o);}}return r},e.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},e.verify=function(e){if(\"object\"!=typeof e||null===e)return \"object expected\";if(null!=e.input&&e.hasOwnProperty(\"input\")){if(!Array.isArray(e.input))return \"input: array expected\";for(var t=0;t>>3){case 1:r.irVersion=e.int64();break;case 8:r.opsetImport&&r.opsetImport.length||(r.opsetImport=[]),r.opsetImport.push(c.onnx.OperatorSetIdProto.decode(e,e.uint32()));break;case 2:r.producerName=e.string();break;case 3:r.producerVersion=e.string();break;case 4:r.domain=e.string();break;case 5:r.modelVersion=e.int64();break;case 6:r.docString=e.string();break;case 7:r.graph=c.onnx.GraphProto.decode(e,e.uint32());break;case 14:r.metadataProps&&r.metadataProps.length||(r.metadataProps=[]),r.metadataProps.push(c.onnx.StringStringEntryProto.decode(e,e.uint32()));break;default:e.skipType(7&o);}}return r},e.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},e.verify=function(e){if(\"object\"!=typeof e||null===e)return \"object expected\";if(null!=e.irVersion&&e.hasOwnProperty(\"irVersion\")&&!(l.isInteger(e.irVersion)||e.irVersion&&l.isInteger(e.irVersion.low)&&l.isInteger(e.irVersion.high)))return \"irVersion: integer|Long expected\";if(null!=e.opsetImport&&e.hasOwnProperty(\"opsetImport\")){if(!Array.isArray(e.opsetImport))return \"opsetImport: array expected\";for(var t=0;t>>0,e.irVersion.high>>>0).toNumber())),e.opsetImport){if(!Array.isArray(e.opsetImport))throw TypeError(\".onnx.ModelProto.opsetImport: array expected\");t.opsetImport=[];for(var n=0;n>>0,e.modelVersion.high>>>0).toNumber())),null!=e.docString&&(t.docString=String(e.docString)),null!=e.graph){if(\"object\"!=typeof e.graph)throw TypeError(\".onnx.ModelProto.graph: object expected\");t.graph=c.onnx.GraphProto.fromObject(e.graph);}if(e.metadataProps){if(!Array.isArray(e.metadataProps))throw TypeError(\".onnx.ModelProto.metadataProps: array expected\");for(t.metadataProps=[],n=0;n>>0,e.irVersion.high>>>0).toNumber():e.irVersion),null!=e.producerName&&e.hasOwnProperty(\"producerName\")&&(n.producerName=e.producerName),null!=e.producerVersion&&e.hasOwnProperty(\"producerVersion\")&&(n.producerVersion=e.producerVersion),null!=e.domain&&e.hasOwnProperty(\"domain\")&&(n.domain=e.domain),null!=e.modelVersion&&e.hasOwnProperty(\"modelVersion\")&&(\"number\"==typeof e.modelVersion?n.modelVersion=t.longs===String?String(e.modelVersion):e.modelVersion:n.modelVersion=t.longs===String?l.Long.prototype.toString.call(e.modelVersion):t.longs===Number?new l.LongBits(e.modelVersion.low>>>0,e.modelVersion.high>>>0).toNumber():e.modelVersion),null!=e.docString&&e.hasOwnProperty(\"docString\")&&(n.docString=e.docString),null!=e.graph&&e.hasOwnProperty(\"graph\")&&(n.graph=c.onnx.GraphProto.toObject(e.graph,t)),e.opsetImport&&e.opsetImport.length){n.opsetImport=[];for(var o=0;o>>3){case 1:r.key=e.string();break;case 2:r.value=e.string();break;default:e.skipType(7&o);}}return r},e.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},e.verify=function(e){return \"object\"!=typeof e||null===e?\"object expected\":null!=e.key&&e.hasOwnProperty(\"key\")&&!l.isString(e.key)?\"key: string expected\":null!=e.value&&e.hasOwnProperty(\"value\")&&!l.isString(e.value)?\"value: string expected\":null},e.fromObject=function(e){if(e instanceof c.onnx.StringStringEntryProto)return e;var t=new c.onnx.StringStringEntryProto;return null!=e.key&&(t.key=String(e.key)),null!=e.value&&(t.value=String(e.value)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.key=\"\",n.value=\"\"),null!=e.key&&e.hasOwnProperty(\"key\")&&(n.key=e.key),null!=e.value&&e.hasOwnProperty(\"value\")&&(n.value=e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e}(),i.TensorAnnotation=function(){function e(e){if(this.quantParameterTensorNames=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.tensorName=e.string();break;case 2:r.quantParameterTensorNames&&r.quantParameterTensorNames.length||(r.quantParameterTensorNames=[]),r.quantParameterTensorNames.push(c.onnx.StringStringEntryProto.decode(e,e.uint32()));break;default:e.skipType(7&o);}}return r},e.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},e.verify=function(e){if(\"object\"!=typeof e||null===e)return \"object expected\";if(null!=e.tensorName&&e.hasOwnProperty(\"tensorName\")&&!l.isString(e.tensorName))return \"tensorName: string expected\";if(null!=e.quantParameterTensorNames&&e.hasOwnProperty(\"quantParameterTensorNames\")){if(!Array.isArray(e.quantParameterTensorNames))return \"quantParameterTensorNames: array expected\";for(var t=0;t>>3){case 1:r.node&&r.node.length||(r.node=[]),r.node.push(c.onnx.NodeProto.decode(e,e.uint32()));break;case 2:r.name=e.string();break;case 5:r.initializer&&r.initializer.length||(r.initializer=[]),r.initializer.push(c.onnx.TensorProto.decode(e,e.uint32()));break;case 10:r.docString=e.string();break;case 11:r.input&&r.input.length||(r.input=[]),r.input.push(c.onnx.ValueInfoProto.decode(e,e.uint32()));break;case 12:r.output&&r.output.length||(r.output=[]),r.output.push(c.onnx.ValueInfoProto.decode(e,e.uint32()));break;case 13:r.valueInfo&&r.valueInfo.length||(r.valueInfo=[]),r.valueInfo.push(c.onnx.ValueInfoProto.decode(e,e.uint32()));break;case 14:r.quantizationAnnotation&&r.quantizationAnnotation.length||(r.quantizationAnnotation=[]),r.quantizationAnnotation.push(c.onnx.TensorAnnotation.decode(e,e.uint32()));break;default:e.skipType(7&o);}}return r},e.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},e.verify=function(e){if(\"object\"!=typeof e||null===e)return \"object expected\";if(null!=e.node&&e.hasOwnProperty(\"node\")){if(!Array.isArray(e.node))return \"node: array expected\";for(var t=0;t>>3){case 1:if(r.dims&&r.dims.length||(r.dims=[]),2==(7&o))for(var i=e.uint32()+e.pos;e.pos>>0,e.dims[n].high>>>0).toNumber());}if(null!=e.dataType&&(t.dataType=0|e.dataType),null!=e.segment){if(\"object\"!=typeof e.segment)throw TypeError(\".onnx.TensorProto.segment: object expected\");t.segment=c.onnx.TensorProto.Segment.fromObject(e.segment);}if(e.floatData){if(!Array.isArray(e.floatData))throw TypeError(\".onnx.TensorProto.floatData: array expected\");for(t.floatData=[],n=0;n>>0,e.int64Data[n].high>>>0).toNumber());}if(null!=e.name&&(t.name=String(e.name)),null!=e.docString&&(t.docString=String(e.docString)),null!=e.rawData&&(\"string\"==typeof e.rawData?l.base64.decode(e.rawData,t.rawData=l.newBuffer(l.base64.length(e.rawData)),0):e.rawData.length&&(t.rawData=e.rawData)),e.externalData){if(!Array.isArray(e.externalData))throw TypeError(\".onnx.TensorProto.externalData: array expected\");for(t.externalData=[],n=0;n>>0,e.uint64Data[n].high>>>0).toNumber(!0));}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.dims=[],n.floatData=[],n.int32Data=[],n.stringData=[],n.int64Data=[],n.doubleData=[],n.uint64Data=[],n.externalData=[]),t.defaults&&(n.dataType=0,n.segment=null,n.name=\"\",t.bytes===String?n.rawData=\"\":(n.rawData=[],t.bytes!==Array&&(n.rawData=l.newBuffer(n.rawData))),n.docString=\"\",n.dataLocation=t.enums===String?\"DEFAULT\":0),e.dims&&e.dims.length){n.dims=[];for(var r=0;r>>0,e.dims[r].high>>>0).toNumber():e.dims[r];}if(null!=e.dataType&&e.hasOwnProperty(\"dataType\")&&(n.dataType=e.dataType),null!=e.segment&&e.hasOwnProperty(\"segment\")&&(n.segment=c.onnx.TensorProto.Segment.toObject(e.segment,t)),e.floatData&&e.floatData.length)for(n.floatData=[],r=0;r>>0,e.int64Data[r].high>>>0).toNumber():e.int64Data[r];if(null!=e.name&&e.hasOwnProperty(\"name\")&&(n.name=e.name),null!=e.rawData&&e.hasOwnProperty(\"rawData\")&&(n.rawData=t.bytes===String?l.base64.encode(e.rawData,0,e.rawData.length):t.bytes===Array?Array.prototype.slice.call(e.rawData):e.rawData),e.doubleData&&e.doubleData.length)for(n.doubleData=[],r=0;r>>0,e.uint64Data[r].high>>>0).toNumber(!0):e.uint64Data[r];if(null!=e.docString&&e.hasOwnProperty(\"docString\")&&(n.docString=e.docString),e.externalData&&e.externalData.length)for(n.externalData=[],r=0;r>>3){case 1:r.begin=e.int64();break;case 2:r.end=e.int64();break;default:e.skipType(7&o);}}return r},e.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},e.verify=function(e){return \"object\"!=typeof e||null===e?\"object expected\":null!=e.begin&&e.hasOwnProperty(\"begin\")&&!(l.isInteger(e.begin)||e.begin&&l.isInteger(e.begin.low)&&l.isInteger(e.begin.high))?\"begin: integer|Long expected\":null!=e.end&&e.hasOwnProperty(\"end\")&&!(l.isInteger(e.end)||e.end&&l.isInteger(e.end.low)&&l.isInteger(e.end.high))?\"end: integer|Long expected\":null},e.fromObject=function(e){if(e instanceof c.onnx.TensorProto.Segment)return e;var t=new c.onnx.TensorProto.Segment;return null!=e.begin&&(l.Long?(t.begin=l.Long.fromValue(e.begin)).unsigned=!1:\"string\"==typeof e.begin?t.begin=parseInt(e.begin,10):\"number\"==typeof e.begin?t.begin=e.begin:\"object\"==typeof e.begin&&(t.begin=new l.LongBits(e.begin.low>>>0,e.begin.high>>>0).toNumber())),null!=e.end&&(l.Long?(t.end=l.Long.fromValue(e.end)).unsigned=!1:\"string\"==typeof e.end?t.end=parseInt(e.end,10):\"number\"==typeof e.end?t.end=e.end:\"object\"==typeof e.end&&(t.end=new l.LongBits(e.end.low>>>0,e.end.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(l.Long){var r=new l.Long(0,0,!1);n.begin=t.longs===String?r.toString():t.longs===Number?r.toNumber():r;}else n.begin=t.longs===String?\"0\":0;l.Long?(r=new l.Long(0,0,!1),n.end=t.longs===String?r.toString():t.longs===Number?r.toNumber():r):n.end=t.longs===String?\"0\":0;}return null!=e.begin&&e.hasOwnProperty(\"begin\")&&(\"number\"==typeof e.begin?n.begin=t.longs===String?String(e.begin):e.begin:n.begin=t.longs===String?l.Long.prototype.toString.call(e.begin):t.longs===Number?new l.LongBits(e.begin.low>>>0,e.begin.high>>>0).toNumber():e.begin),null!=e.end&&e.hasOwnProperty(\"end\")&&(\"number\"==typeof e.end?n.end=t.longs===String?String(e.end):e.end:n.end=t.longs===String?l.Long.prototype.toString.call(e.end):t.longs===Number?new l.LongBits(e.end.low>>>0,e.end.high>>>0).toNumber():e.end),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e}(),e.DataLocation=function(){var e={},t=Object.create(e);return t[e[0]=\"DEFAULT\"]=0,t[e[1]=\"EXTERNAL\"]=1,t}(),e}(),i.TensorShapeProto=function(){function e(e){if(this.dim=[],e)for(var t=Object.keys(e),n=0;n>>3==1?(r.dim&&r.dim.length||(r.dim=[]),r.dim.push(c.onnx.TensorShapeProto.Dimension.decode(e,e.uint32()))):e.skipType(7&o);}return r},e.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},e.verify=function(e){if(\"object\"!=typeof e||null===e)return \"object expected\";if(null!=e.dim&&e.hasOwnProperty(\"dim\")){if(!Array.isArray(e.dim))return \"dim: array expected\";for(var t=0;t>>3){case 1:r.dimValue=e.int64();break;case 2:r.dimParam=e.string();break;case 3:r.denotation=e.string();break;default:e.skipType(7&o);}}return r},e.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},e.verify=function(e){if(\"object\"!=typeof e||null===e)return \"object expected\";var t={};if(null!=e.dimValue&&e.hasOwnProperty(\"dimValue\")&&(t.value=1,!(l.isInteger(e.dimValue)||e.dimValue&&l.isInteger(e.dimValue.low)&&l.isInteger(e.dimValue.high))))return \"dimValue: integer|Long expected\";if(null!=e.dimParam&&e.hasOwnProperty(\"dimParam\")){if(1===t.value)return \"value: multiple values\";if(t.value=1,!l.isString(e.dimParam))return \"dimParam: string expected\"}return null!=e.denotation&&e.hasOwnProperty(\"denotation\")&&!l.isString(e.denotation)?\"denotation: string expected\":null},e.fromObject=function(e){if(e instanceof c.onnx.TensorShapeProto.Dimension)return e;var t=new c.onnx.TensorShapeProto.Dimension;return null!=e.dimValue&&(l.Long?(t.dimValue=l.Long.fromValue(e.dimValue)).unsigned=!1:\"string\"==typeof e.dimValue?t.dimValue=parseInt(e.dimValue,10):\"number\"==typeof e.dimValue?t.dimValue=e.dimValue:\"object\"==typeof e.dimValue&&(t.dimValue=new l.LongBits(e.dimValue.low>>>0,e.dimValue.high>>>0).toNumber())),null!=e.dimParam&&(t.dimParam=String(e.dimParam)),null!=e.denotation&&(t.denotation=String(e.denotation)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.denotation=\"\"),null!=e.dimValue&&e.hasOwnProperty(\"dimValue\")&&(\"number\"==typeof e.dimValue?n.dimValue=t.longs===String?String(e.dimValue):e.dimValue:n.dimValue=t.longs===String?l.Long.prototype.toString.call(e.dimValue):t.longs===Number?new l.LongBits(e.dimValue.low>>>0,e.dimValue.high>>>0).toNumber():e.dimValue,t.oneofs&&(n.value=\"dimValue\")),null!=e.dimParam&&e.hasOwnProperty(\"dimParam\")&&(n.dimParam=e.dimParam,t.oneofs&&(n.value=\"dimParam\")),null!=e.denotation&&e.hasOwnProperty(\"denotation\")&&(n.denotation=e.denotation),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e}(),e}(),i.TypeProto=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.tensorType=c.onnx.TypeProto.Tensor.decode(e,e.uint32());break;case 6:r.denotation=e.string();break;default:e.skipType(7&o);}}return r},e.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},e.verify=function(e){if(\"object\"!=typeof e||null===e)return \"object expected\";if(null!=e.tensorType&&e.hasOwnProperty(\"tensorType\")){var t=c.onnx.TypeProto.Tensor.verify(e.tensorType);if(t)return \"tensorType.\"+t}return null!=e.denotation&&e.hasOwnProperty(\"denotation\")&&!l.isString(e.denotation)?\"denotation: string expected\":null},e.fromObject=function(e){if(e instanceof c.onnx.TypeProto)return e;var t=new c.onnx.TypeProto;if(null!=e.tensorType){if(\"object\"!=typeof e.tensorType)throw TypeError(\".onnx.TypeProto.tensorType: object expected\");t.tensorType=c.onnx.TypeProto.Tensor.fromObject(e.tensorType);}return null!=e.denotation&&(t.denotation=String(e.denotation)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.denotation=\"\"),null!=e.tensorType&&e.hasOwnProperty(\"tensorType\")&&(n.tensorType=c.onnx.TypeProto.Tensor.toObject(e.tensorType,t),t.oneofs&&(n.value=\"tensorType\")),null!=e.denotation&&e.hasOwnProperty(\"denotation\")&&(n.denotation=e.denotation),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e.Tensor=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.elemType=e.int32();break;case 2:r.shape=c.onnx.TensorShapeProto.decode(e,e.uint32());break;default:e.skipType(7&o);}}return r},e.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},e.verify=function(e){if(\"object\"!=typeof e||null===e)return \"object expected\";if(null!=e.elemType&&e.hasOwnProperty(\"elemType\")&&!l.isInteger(e.elemType))return \"elemType: integer expected\";if(null!=e.shape&&e.hasOwnProperty(\"shape\")){var t=c.onnx.TensorShapeProto.verify(e.shape);if(t)return \"shape.\"+t}return null},e.fromObject=function(e){if(e instanceof c.onnx.TypeProto.Tensor)return e;var t=new c.onnx.TypeProto.Tensor;if(null!=e.elemType&&(t.elemType=0|e.elemType),null!=e.shape){if(\"object\"!=typeof e.shape)throw TypeError(\".onnx.TypeProto.Tensor.shape: object expected\");t.shape=c.onnx.TensorShapeProto.fromObject(e.shape);}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.elemType=0,n.shape=null),null!=e.elemType&&e.hasOwnProperty(\"elemType\")&&(n.elemType=e.elemType),null!=e.shape&&e.hasOwnProperty(\"shape\")&&(n.shape=c.onnx.TensorShapeProto.toObject(e.shape,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e}(),e}(),i.OperatorSetIdProto=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.domain=e.string();break;case 2:r.version=e.int64();break;default:e.skipType(7&o);}}return r},e.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},e.verify=function(e){return \"object\"!=typeof e||null===e?\"object expected\":null!=e.domain&&e.hasOwnProperty(\"domain\")&&!l.isString(e.domain)?\"domain: string expected\":null!=e.version&&e.hasOwnProperty(\"version\")&&!(l.isInteger(e.version)||e.version&&l.isInteger(e.version.low)&&l.isInteger(e.version.high))?\"version: integer|Long expected\":null},e.fromObject=function(e){if(e instanceof c.onnx.OperatorSetIdProto)return e;var t=new c.onnx.OperatorSetIdProto;return null!=e.domain&&(t.domain=String(e.domain)),null!=e.version&&(l.Long?(t.version=l.Long.fromValue(e.version)).unsigned=!1:\"string\"==typeof e.version?t.version=parseInt(e.version,10):\"number\"==typeof e.version?t.version=e.version:\"object\"==typeof e.version&&(t.version=new l.LongBits(e.version.low>>>0,e.version.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults)if(n.domain=\"\",l.Long){var r=new l.Long(0,0,!1);n.version=t.longs===String?r.toString():t.longs===Number?r.toNumber():r;}else n.version=t.longs===String?\"0\":0;return null!=e.domain&&e.hasOwnProperty(\"domain\")&&(n.domain=e.domain),null!=e.version&&e.hasOwnProperty(\"version\")&&(\"number\"==typeof e.version?n.version=t.longs===String?String(e.version):e.version:n.version=t.longs===String?l.Long.prototype.toString.call(e.version):t.longs===Number?new l.LongBits(e.version.low>>>0,e.version.high>>>0).toNumber():e.version),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},e}(),i),e.exports=c;},2100:(e,t,n)=>{e.exports=n(9482);},9482:(e,t,n)=>{var r=t;function o(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader);}r.build=\"minimal\",r.Writer=n(1173),r.BufferWriter=n(3155),r.Reader=n(1408),r.BufferReader=n(593),r.util=n(9693),r.rpc=n(5994),r.roots=n(5054),r.configure=o,o();},1408:(e,t,n)=>{e.exports=u;var r,o=n(9693),i=o.LongBits,a=o.utf8;function s(e,t){return RangeError(\"index out of range: \"+e.pos+\" + \"+(t||1)+\" > \"+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length;}var l,c=\"undefined\"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error(\"illegal buffer\")}:function(e){if(Array.isArray(e))return new u(e);throw Error(\"illegal buffer\")},p=function(){return o.Buffer?function(e){return (u.create=function(e){return o.Buffer.isBuffer(e)?new r(e):c(e)})(e)}:c};function d(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error(\"invalid varint encoding\")}function f(e,t){return (e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw s(this,8);return new i(f(this.buf,this.pos+=4),f(this.buf,this.pos+=4))}u.create=p(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(l=4294967295,function(){if(l=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return l;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return l}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return f(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|f(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},u.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},u.prototype.skip=function(e){if(\"number\"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e;}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error(\"invalid wire type \"+e+\" at offset \"+this.pos)}return this},u._configure=function(e){r=e,u.create=p(),r._configure();var t=o.Long?\"toLong\":\"toNumber\";o.merge(u.prototype,{int64:function(){return d.call(this)[t](!1)},uint64:function(){return d.call(this)[t](!0)},sint64:function(){return d.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}});};},593:(e,t,n)=>{e.exports=i;var r=n(1408);(i.prototype=Object.create(r.prototype)).constructor=i;var o=n(9693);function i(e){r.call(this,e);}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice);},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString(\"utf-8\",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure();},5054:e=>{e.exports={};},5994:(e,t,n)=>{t.Service=n(7948);},7948:(e,t,n)=>{e.exports=o;var r=n(9693);function o(e,t,n){if(\"function\"!=typeof e)throw TypeError(\"rpcImpl must be a function\");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n);}(o.prototype=Object.create(r.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function e(t,n,o,i,a){if(!i)throw TypeError(\"request must be specified\");var s=this;if(!a)return r.asPromise(e,s,t,n,o,i);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?\"encodeDelimited\":\"encode\"](i).finish(),(function(e,n){if(e)return s.emit(\"error\",e,t),a(e);if(null!==n){if(!(n instanceof o))try{n=o[s.responseDelimited?\"decodeDelimited\":\"decode\"](n);}catch(e){return s.emit(\"error\",e,t),a(e)}return s.emit(\"data\",n,t),a(null,n)}s.end(!0);}))}catch(e){return s.emit(\"error\",e,t),void setTimeout((function(){a(e);}),0)}else setTimeout((function(){a(Error(\"already ended\"));}),0);},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit(\"end\").off()),this};},1945:(e,t,n)=>{e.exports=o;var r=n(9693);function o(e,t){this.lo=e>>>0,this.hi=t>>>0;}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var a=o.zeroHash=\"\\0\\0\\0\\0\\0\\0\\0\\0\";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new o(n,r)},o.from=function(e){if(\"number\"==typeof e)return o.fromNumber(e);if(r.isString(e)){if(!r.Long)return o.fromNumber(parseInt(e,10));e=r.Long.fromString(e);}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;o.fromHash=function(e){return e===a?i:new o((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10};},9693:function(e,t,n){var r=t;function o(e,t,n){for(var r=Object.keys(t),o=0;o0)},r.Buffer=function(){try{var e=r.inquire(\"buffer\").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return \"number\"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):\"undefined\"==typeof Uint8Array?e:new Uint8Array(e)},r.Array=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire(\"long\"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\\\x00-\\\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=o,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=i,r.ProtocolError=i(\"ProtocolError\"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n{e.exports=p;var r,o=n(9693),i=o.LongBits,a=o.base64,s=o.utf8;function u(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n;}function l(){}function c(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states;}function p(){this.len=0,this.head=new u(l,0,0),this.tail=this.head,this.states=null;}var d=function(){return o.Buffer?function(){return (p.create=function(){return new r})()}:function(){return new p}};function f(e,t,n){t[n]=255&e;}function h(e,t){this.len=e,this.next=void 0,this.val=t;}function g(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo;}function m(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24;}p.create=d(),p.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(p.alloc=o.pool(p.alloc,o.Array.prototype.subarray)),p.prototype._push=function(e,t,n){return this.tail=this.tail.next=new u(e,t,n),this.len+=t,this},h.prototype=Object.create(u.prototype),h.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e;},p.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new h((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},p.prototype.int32=function(e){return e<0?this._push(g,10,i.fromNumber(e)):this.uint32(e)},p.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},p.prototype.uint64=function(e){var t=i.from(e);return this._push(g,t.length(),t)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(g,t.length(),t)},p.prototype.bool=function(e){return this._push(f,1,e?1:0)},p.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(e){var t=i.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},p.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var b=o.Array.prototype.set?function(e,t,n){t.set(e,n);}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(f,1,0);if(o.isString(e)){var n=p.alloc(t=a.length(e));a.decode(e,n,0),e=n;}return this.uint32(t)._push(b,t,e)},p.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(f,1,0)},p.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new u(l,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(l,0,0),this.len=0),this},p.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},p.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},p._configure=function(e){r=e,p.create=d(),r._configure();};},3155:(e,t,n)=>{e.exports=i;var r=n(1173);(i.prototype=Object.create(r.prototype)).constructor=i;var o=n(9693);function i(){r.call(this);}function a(e,t,n){e.length<40?o.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n);}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&\"set\"===o.Buffer.prototype.set.name?function(e,t,n){t.set(e,n);}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},i._configure();},4154:e=>{e.exports='\"use strict\";var e={},t=\"object\"==typeof process&&\"object\"==typeof process.versions&&\"string\"==typeof process.versions.node;if(t){var r=require(\"worker_threads\"),a=r.parentPort;a.on(\"message\",(e=>onmessage({data:e})));var o=require(\"fs\");Object.assign(global,{globalThis:global,require:require,Module:e,location:{href:__filename},Worker:r.Worker,importScripts:function(e){(0,eval)(o.readFileSync(e,\"utf8\"))},postMessage:function(e){a.postMessage(e)},performance:global.performance||{now:function(){return Date.now()}}})}var s=!1,n=[],i=function(){var e=Array.prototype.slice.call(arguments).join(\" \");t?o.writeSync(2,e+\"\\\\n\"):console.error(e)};globalThis.alert=function(){var t=Array.prototype.slice.call(arguments).join(\" \");postMessage({cmd:\"alert\",text:t,threadId:e._pthread_self()})},e.instantiateWasm=(t,r)=>{var a=new WebAssembly.Instance(e.wasmModule,t);return r(a),e.wasmModule=null,a.exports},globalThis.onunhandledrejection=e=>{throw e.reason??e},globalThis.onmessage=t=>{try{if(\"load\"===t.data.cmd){if(e.wasmModule=t.data.wasmModule,e.wasmMemory=t.data.wasmMemory,e.buffer=e.wasmMemory.buffer,e.ENVIRONMENT_IS_PTHREAD=!0,\"string\"==typeof t.data.urlOrBlob)importScripts(t.data.urlOrBlob);else{var r=URL.createObjectURL(t.data.urlOrBlob);importScripts(r),URL.revokeObjectURL(r)}ortWasmThreaded(e).then((function(t){e=t}))}else if(\"run\"===t.data.cmd){e.__performance_now_clock_drift=performance.now()-t.data.time,e.__emscripten_thread_init(t.data.pthread_ptr,0,0,1),e.establishStackSpace(),e.PThread.receiveObjectTransfer(t.data),e.PThread.threadInitTLS(),s||(n.forEach((t=>{e.executeNotifiedProxyingQueue(t)})),n=[],s=!0);try{e.invokeEntryPoint(t.data.start_routine,t.data.arg)}catch(t){if(\"unwind\"!=t){if(!(t instanceof e.ExitStatus))throw t;e.keepRuntimeAlive()||e.__emscripten_thread_exit(t.status)}}}else\"cancel\"===t.data.cmd?e._pthread_self()&&e.__emscripten_thread_exit(-1):\"setimmediate\"===t.data.target||(\"processProxyingQueue\"===t.data.cmd?s?e.executeNotifiedProxyingQueue(t.data.queue):n.push(t.data.queue):(i(\"worker.js received unknown command \"+t.data.cmd),i(t.data)))}catch(t){throw i(\"worker.js onmessage() captured an uncaught exception: \"+t),t&&t.stack&&i(t.stack),e.__emscripten_thread_crashed&&e.__emscripten_thread_crashed(),t}};\\n';},7067:()=>{},1296:()=>{},760:()=>{},1384:()=>{},3993:()=>{},908:()=>{},6953:()=>{},9925:()=>{},2806:()=>{},6449:()=>{},2850:()=>{},5381:()=>{},5686:(e,t,n)=>{n.r(t),n.d(t,{flatbuffers:()=>r});var r={};r.Offset,r.Table,r.SIZEOF_SHORT=2,r.SIZEOF_INT=4,r.FILE_IDENTIFIER_LENGTH=4,r.SIZE_PREFIX_LENGTH=4,r.Encoding={UTF8_BYTES:1,UTF16_STRING:2},r.int32=new Int32Array(2),r.float32=new Float32Array(r.int32.buffer),r.float64=new Float64Array(r.int32.buffer),r.isLittleEndian=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0],r.Long=function(e,t){this.low=0|e,this.high=0|t;},r.Long.create=function(e,t){return 0==e&&0==t?r.Long.ZERO:new r.Long(e,t)},r.Long.prototype.toFloat64=function(){return (this.low>>>0)+4294967296*this.high},r.Long.prototype.equals=function(e){return this.low==e.low&&this.high==e.high},r.Long.ZERO=new r.Long(0,0),r.Builder=function(e){if(e)t=e;else var t=1024;this.bb=r.ByteBuffer.allocate(t),this.space=t,this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1;},r.Builder.prototype.clear=function(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1;},r.Builder.prototype.forceDefaults=function(e){this.force_defaults=e;},r.Builder.prototype.dataBuffer=function(){return this.bb},r.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())},r.Builder.prototype.prep=function(e,t){e>this.minalign&&(this.minalign=e);for(var n=1+~(this.bb.capacity()-this.space+t)&e-1;this.space=0&&0==this.vtable[t];t--);for(var n=t+1;t>=0;t--)this.addInt16(0!=this.vtable[t]?e-this.vtable[t]:0);this.addInt16(e-this.object_start);var o=(n+2)*r.SIZEOF_SHORT;this.addInt16(o);var i=0,a=this.space;e:for(t=0;t=0;a--)this.writeInt8(i.charCodeAt(a));}this.prep(this.minalign,r.SIZEOF_INT+o),this.addOffset(e),o&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space);},r.Builder.prototype.finishSizePrefixed=function(e,t){this.finish(e,t,!0);},r.Builder.prototype.requiredField=function(e,t){var n=this.bb.capacity()-e,r=n-this.bb.readInt32(n);if(0==this.bb.readInt16(r+t))throw new Error(\"FlatBuffers: field \"+t+\" must be set\")},r.Builder.prototype.startVector=function(e,t,n){this.notNested(),this.vector_num_elems=t,this.prep(r.SIZEOF_INT,e*t),this.prep(n,e*t);},r.Builder.prototype.endVector=function(){return this.writeInt32(this.vector_num_elems),this.offset()},r.Builder.prototype.createString=function(e){if(e instanceof Uint8Array)var t=e;else {t=[];for(var n=0;n=56320?o:(o<<10)+e.charCodeAt(n++)+-56613888)<128?t.push(r):(r<2048?t.push(r>>6&31|192):(r<65536?t.push(r>>12&15|224):t.push(r>>18&7|240,r>>12&63|128),t.push(r>>6&63|128)),t.push(63&r|128));}}this.addInt8(0),this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length),n=0;for(var i=this.space,a=this.bb.bytes();n>24},r.ByteBuffer.prototype.readUint8=function(e){return this.bytes_[e]},r.ByteBuffer.prototype.readInt16=function(e){return this.readUint16(e)<<16>>16},r.ByteBuffer.prototype.readUint16=function(e){return this.bytes_[e]|this.bytes_[e+1]<<8},r.ByteBuffer.prototype.readInt32=function(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24},r.ByteBuffer.prototype.readUint32=function(e){return this.readInt32(e)>>>0},r.ByteBuffer.prototype.readInt64=function(e){return new r.Long(this.readInt32(e),this.readInt32(e+4))},r.ByteBuffer.prototype.readUint64=function(e){return new r.Long(this.readUint32(e),this.readUint32(e+4))},r.ByteBuffer.prototype.readFloat32=function(e){return r.int32[0]=this.readInt32(e),r.float32[0]},r.ByteBuffer.prototype.readFloat64=function(e){return r.int32[r.isLittleEndian?0:1]=this.readInt32(e),r.int32[r.isLittleEndian?1:0]=this.readInt32(e+4),r.float64[0]},r.ByteBuffer.prototype.writeInt8=function(e,t){this.bytes_[e]=t;},r.ByteBuffer.prototype.writeUint8=function(e,t){this.bytes_[e]=t;},r.ByteBuffer.prototype.writeInt16=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8;},r.ByteBuffer.prototype.writeUint16=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8;},r.ByteBuffer.prototype.writeInt32=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24;},r.ByteBuffer.prototype.writeUint32=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24;},r.ByteBuffer.prototype.writeInt64=function(e,t){this.writeInt32(e,t.low),this.writeInt32(e+4,t.high);},r.ByteBuffer.prototype.writeUint64=function(e,t){this.writeUint32(e,t.low),this.writeUint32(e+4,t.high);},r.ByteBuffer.prototype.writeFloat32=function(e,t){r.float32[0]=t,this.writeInt32(e,r.int32[0]);},r.ByteBuffer.prototype.writeFloat64=function(e,t){r.float64[0]=t,this.writeInt32(e,r.int32[r.isLittleEndian?0:1]),this.writeInt32(e+4,r.int32[r.isLittleEndian?1:0]);},r.ByteBuffer.prototype.getBufferIdentifier=function(){if(this.bytes_.length>10),56320+(1023&a)));}return o},r.ByteBuffer.prototype.__indirect=function(e){return e+this.readInt32(e)},r.ByteBuffer.prototype.__vector=function(e){return e+this.readInt32(e)+r.SIZEOF_INT},r.ByteBuffer.prototype.__vector_len=function(e){return this.readInt32(e+this.readInt32(e))},r.ByteBuffer.prototype.__has_identifier=function(e){if(e.length!=r.FILE_IDENTIFIER_LENGTH)throw new Error(\"FlatBuffers: file identifier must be length \"+r.FILE_IDENTIFIER_LENGTH);for(var t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]});},__webpack_require__.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0});};var __webpack_exports__=__webpack_require__(1057);return __webpack_exports__})()));\n\n}(ort_min));\n\nvar __awaiter$5 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\n/**\r\n * Shared resource manager used to preload and share resources across different pipelines.\r\n * This is useful when multiple pipelines are using the same model or when the model needs\r\n * to be preloaded before the pipeline is created.\r\n */\r\nclass SharedResourceManager {\r\n constructor() {\r\n this.modelSessions = {};\r\n }\r\n /**\r\n * Initialize the worker using the provided configuration.\r\n *\r\n * @param {PreloadConfig} config The configuration object.\r\n * @returns {Promise} A promise that resolves when the worker is initialized.\r\n * @example\r\n * await initializeWorker(config);\r\n */\r\n initializeWorker(config) {\r\n return __awaiter$5(this, void 0, void 0, function* () {\r\n if (typeof Worker === 'undefined') {\r\n throw new Error('[ladon-ts] web workers are not supported in this environment');\r\n }\r\n const crossOriginScriptUrl = config.mask.worker_uri;\r\n const content = yield (yield fetch(crossOriginScriptUrl, { cache: 'force-cache' })).text();\r\n this.workerUrl = URL.createObjectURL(new Blob([content], { type: 'text/javascript' }));\r\n this.worker = new Worker(this.workerUrl, { type: 'module' });\r\n return this.worker;\r\n });\r\n }\r\n /**\r\n * Terminate the worker.\r\n */\r\n terminateWorker() {\r\n if (this.worker) {\r\n this.worker.terminate();\r\n this.worker = undefined;\r\n }\r\n }\r\n /**\r\n * Preload the model using the provided configuration.\r\n *\r\n * @param {PreloadConfig} config The configuration object.\r\n * @returns {Promise} A promise that resolves when the model is preloaded.\r\n * @example\r\n * await preloadModel(config);\r\n */\r\n preloadModel(config) {\r\n var _a;\r\n var _b;\r\n return __awaiter$5(this, void 0, void 0, function* () {\r\n if (config.wasm_uri) {\r\n ort_min.exports.env.wasm.wasmPaths = toAbsoluteURI(config.wasm_uri, config.base_url);\r\n }\r\n ort_min.exports.env.wasm.numThreads = 1;\r\n // Resolve the model URL based on the configuration.\r\n const modelUrl = yield this.getModelUrl(config);\r\n // Use the model session cache to avoid creating multiple sessions for the same model.\r\n (_a = (_b = this.modelSessions)[modelUrl]) !== null && _a !== void 0 ? _a : (_b[modelUrl] = yield ort_min.exports.InferenceSession.create(modelUrl, {\r\n executionProviders: ['wasm'],\r\n }));\r\n // Warmup the model with a dummy input to avoid latency when running the model for the first time.\r\n yield this.warmupModel(this.modelSessions[modelUrl], config.mask.input_size, config.mask.model_rank);\r\n return this.modelSessions[modelUrl];\r\n });\r\n }\r\n /**\r\n * Preload the worker using the provided configuration.\r\n *\r\n * @param {PreloadConfig} config The configuration object.\r\n * @returns {Promise} A promise that resolves when the worker is preloaded.\r\n * @example\r\n * await preloadWorker(config);\r\n */\r\n preloadWorker(config) {\r\n var _a;\r\n return __awaiter$5(this, void 0, void 0, function* () {\r\n // If the model URL resolver is a function, We can't send the function to the worker so\r\n // we resolve the model URL here and send the resolved URL to the worker.\r\n const modelUrl = yield this.getModelUrl(config);\r\n const newConfig = Object.assign(Object.assign({}, config), { mask: Object.assign(Object.assign({}, config.mask), { model_url_resolver: modelUrl }) });\r\n // Initialize the worker.\r\n yield this.initializeWorker(newConfig);\r\n // Send the preload message to the worker.\r\n (_a = this.worker) === null || _a === void 0 ? void 0 : _a.postMessage({ type: 'preload', config: newConfig });\r\n });\r\n }\r\n /**\r\n * Warmup the model session with a dummy input to avoid latency when running the model for the first time.\r\n *\r\n * @param {ort.InferenceSession} session The model session.\r\n * @param {SizeConfig} inputSize The input size of the model.\r\n * @param {number} inputChannels The number of input channels (e.g., RGB is 3).\r\n * @param {ort.Tensor.Type} inputType The input tensor type.\r\n * @returns {Promise} A promise that resolves when the model is warmed up.\r\n * @example\r\n * await warmupModel(session, inputSize, inputChannels, inputType);\r\n */\r\n warmupModel(session, inputSize = { width: 1280, height: 720 }, inputChannels = 3, inputType = 'float32') {\r\n return __awaiter$5(this, void 0, void 0, function* () {\r\n const numPixels = inputSize.height * inputSize.width;\r\n const dummyInputData = new Float32Array(inputChannels * numPixels).fill(0);\r\n const dummyInput = new ort_min.exports.Tensor(inputType, dummyInputData, [\r\n 1,\r\n inputChannels,\r\n inputSize.height,\r\n inputSize.width,\r\n ]);\r\n const feed = { [session.inputNames[0]]: dummyInput };\r\n // Use an additional dummy tensor if the model expects a previous mask.\r\n if (inputChannels === 3) {\r\n const dummyMaskData = new Float32Array(numPixels).fill(0);\r\n const prevMaskTensor = new ort_min.exports.Tensor(inputType, dummyMaskData, [\r\n 1,\r\n 1,\r\n inputSize.height,\r\n inputSize.width,\r\n ]);\r\n feed[session.inputNames[1]] = prevMaskTensor;\r\n }\r\n // Run the model with the dummy input to warm it up.\r\n yield session.run(feed);\r\n });\r\n }\r\n /**\r\n * Get the model session for the provided model URL.\r\n *\r\n * @param {string} modelUrl The model URL.\r\n * @returns {ort.InferenceSession} The model session.\r\n * @example\r\n * const session = getModelSession(modelUrl);\r\n */\r\n getModelSession(modelUrl) {\r\n return this.modelSessions[modelUrl];\r\n }\r\n /**\r\n * Resolves the model URL based on the configuration.\r\n *\r\n * @param {PipelineConfig} config The configuration object.\r\n * @returns {Promise} The resolved model URL.\r\n * @example\r\n * const modelUrl = await getModelUrl(config);\r\n */\r\n getModelUrl({ mask: { model_url_resolver, model_uri } }) {\r\n return __awaiter$5(this, void 0, void 0, function* () {\r\n let modelUrl;\r\n if (typeof model_url_resolver === 'string') {\r\n modelUrl = model_url_resolver;\r\n }\r\n else {\r\n modelUrl = yield model_url_resolver(model_uri);\r\n }\r\n return modelUrl;\r\n });\r\n }\r\n getWorker() {\r\n return this.worker;\r\n }\r\n getWorkerUrl() {\r\n return this.workerUrl;\r\n }\r\n}\r\n// Global instance of the shared resource manager.\r\nconst sharedResourceManager = new SharedResourceManager();\r\n/**\r\n * Preload the resources using the provided configuration. This function is used to preload the model\r\n * and the worker before creating the pipeline.\r\n *\r\n * @param config - The configuration object.\r\n */\r\nconst preload = (config) => __awaiter$5(void 0, void 0, void 0, function* () {\r\n if (config.mask.generator === 'worker') {\r\n yield sharedResourceManager.preloadWorker(config);\r\n }\r\n else {\r\n yield sharedResourceManager.preloadModel(config);\r\n }\r\n});\n\nvar __awaiter$4 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nclass LocalGenerator {\r\n constructor(config) {\r\n this.config = config;\r\n this.last_mask_generation = 0;\r\n this.last_mask = new ort_min.exports.Tensor('float32', new Float32Array(this.config.mask.output_size.height * this.config.mask.output_size.width), [1, 1, this.config.mask.output_size.height, this.config.mask.output_size.width]);\r\n }\r\n /**\r\n * This method preprocesses an input Uint8ClampedArray to a Float32Array\r\n * while maintaining memory efficiency by reusing a class-scoped output buffer.\r\n * If the model rank is 4 (e.g., newer tiny model), it sets an alpha channel value.\r\n *\r\n * @param {Uint8ClampedArray} input - The input data to be preprocessed\r\n * @param {Float32Array} alpha - The alpha channel data\r\n * @returns {Float32Array} - The processed data\r\n */\r\n preprocess(input, alpha) {\r\n const { model_rank, input_size, output_size } = this.config.mask;\r\n const { height, width } = input_size;\r\n const numImagePixels = height * width;\r\n if (!this.output) {\r\n this.output = new Float32Array(numImagePixels * model_rank);\r\n }\r\n // In-place modification of class-scoped output buffer\r\n const channelFlipOffset = model_rank === 4 ? 2 : 0;\r\n const numInputPixels = input.length / 4;\r\n // Loop over all color channels in the image\r\n for (let channel = 0; channel < 3; channel++) {\r\n // For each pixel in the input image...\r\n for (let pixel = 0; pixel < numInputPixels; pixel++) {\r\n // ...copy the color channel value from input to output, potentially\r\n // potentially flipping the color channel order for the tiny.\r\n this.output[pixel + channel * numImagePixels] =\r\n input[pixel * 4 + Math.abs(channelFlipOffset - channel)];\r\n }\r\n }\r\n // If the model_rank is 4, an additional alpha channel needs to be set\r\n if (model_rank === 4) {\r\n // Scaling factors for width and height based on the ratio of output to input sizes\r\n const widthScale = output_size.width / width;\r\n const heightScale = output_size.height / height;\r\n // Iterate over each pixel in the width of the input image\r\n for (let x = 0; x < width; x++) {\r\n const nearestNeighborX = Math.floor(x * widthScale);\r\n // Iterate over each pixel in the height of the input image\r\n for (let y = 0; y < height; y++) {\r\n const nearestNeighborY = Math.floor(y * heightScale);\r\n const maskIdx = nearestNeighborX + nearestNeighborY * output_size.width;\r\n const outputIdx = x + y * width + 3 * numImagePixels;\r\n // Normalize the alpha value to range between 0 and 1, and scale it to the range of 0-255\r\n const normalizedValue = Math.min(Math.max(alpha[maskIdx], 0), 1) * 255;\r\n // Assign the normalized value to the output at the computed index\r\n this.output[outputIdx] = normalizedValue;\r\n }\r\n }\r\n }\r\n return this.output;\r\n }\r\n getMask(input) {\r\n return __awaiter$4(this, void 0, void 0, function* () {\r\n if (!this.mask_model) {\r\n throw new Error('[ladon-ts] - mask model not loaded.');\r\n }\r\n const mask_generation_timeout = Date.now() - this.last_mask_generation > this.config.mask.generation_interval_ms;\r\n if (!mask_generation_timeout) {\r\n return {\r\n data: this.last_mask.data,\r\n warm: false,\r\n };\r\n }\r\n this.last_mask_generation = Date.now();\r\n const image_tns = new ort_min.exports.Tensor('float32', this.preprocess(input, this.last_mask.data), [\r\n 1,\r\n this.config.mask.model_rank,\r\n this.config.mask.input_size.height,\r\n this.config.mask.input_size.width,\r\n ]);\r\n if (this.config.mask.model_rank === 4) {\r\n // This feed uses the new model input params for the tiny model.\r\n const results = yield this.mask_model.run({ input: image_tns });\r\n this.last_mask = results.segmentation;\r\n }\r\n else {\r\n const results = yield this.mask_model.run({\r\n input_image: image_tns,\r\n prev_mask: this.last_mask,\r\n });\r\n this.last_mask = results.output_mask;\r\n }\r\n return {\r\n data: this.last_mask.data,\r\n warm: true,\r\n };\r\n });\r\n }\r\n load() {\r\n var _a;\r\n return __awaiter$4(this, void 0, void 0, function* () {\r\n const modelUrl = yield sharedResourceManager.getModelUrl(this.config);\r\n // Attempt to retrieve a preloaded InferenceSession from the shared resource manager.\r\n this.mask_model = sharedResourceManager.getModelSession(modelUrl);\r\n // If the model is not preloaded, load it from the provided model URL.\r\n (_a = this.mask_model) !== null && _a !== void 0 ? _a : (this.mask_model = yield sharedResourceManager.preloadModel(this.config));\r\n if (!this.mask_model) {\r\n throw new Error('Failed to load the ONNX model.');\r\n }\r\n });\r\n }\r\n isLoaded() {\r\n return !!this.mask_model;\r\n }\r\n /* eslint-disable-next-line @typescript-eslint/no-unused-vars */\r\n postRender(_) {\r\n return __awaiter$4(this, void 0, void 0, function* () {\r\n // empty for local generator\r\n });\r\n }\r\n destroy() {\r\n // empty for local generator\r\n }\r\n}\r\nclass NullGenerator {\r\n constructor(config) {\r\n this.config = config;\r\n this.last_mask = new Float32Array(this.config.mask.output_size.height * this.config.mask.output_size.width);\r\n }\r\n /* eslint-disable-next-line @typescript-eslint/no-unused-vars */\r\n getMask(_) {\r\n return __awaiter$4(this, void 0, void 0, function* () {\r\n return {\r\n data: this.last_mask,\r\n warm: false,\r\n };\r\n });\r\n }\r\n load() {\r\n return __awaiter$4(this, void 0, void 0, function* () {\r\n // empty for null generator\r\n });\r\n }\r\n isLoaded() {\r\n return true;\r\n }\r\n /* eslint-disable-next-line @typescript-eslint/no-unused-vars */\r\n postRender(_) {\r\n return __awaiter$4(this, void 0, void 0, function* () {\r\n // empty for null generator\r\n });\r\n }\r\n destroy() {\r\n // empty for null generator\r\n }\r\n}\r\nclass WorkerGenerator {\r\n constructor(config) {\r\n this.config = config;\r\n this.new_mask = true;\r\n this.last_mask = new Float32Array(this.config.mask.output_size.height * this.config.mask.output_size.width);\r\n }\r\n /* eslint-disable-next-line @typescript-eslint/no-unused-vars */\r\n getMask(_) {\r\n return __awaiter$4(this, void 0, void 0, function* () {\r\n const toReturn = {\r\n data: this.last_mask,\r\n warm: this.new_mask,\r\n };\r\n this.new_mask = false;\r\n return toReturn;\r\n });\r\n }\r\n load() {\r\n var _a;\r\n return __awaiter$4(this, void 0, void 0, function* () {\r\n this.worker = sharedResourceManager.getWorker();\r\n (_a = this.worker) !== null && _a !== void 0 ? _a : (this.worker = yield sharedResourceManager.initializeWorker(this.config));\r\n if (!this.worker) {\r\n throw new Error('[ladon-ts] - worker is not defined.');\r\n }\r\n const modelUrl = yield sharedResourceManager.getModelUrl(this.config);\r\n const workerConfig = {\r\n base_url: this.config.base_url,\r\n input: this.config.input,\r\n mask: Object.assign(Object.assign({}, this.config.mask), { model_url_resolver: modelUrl }),\r\n wasm_uri: this.config.wasm_uri,\r\n render: { type: 'passthrough' },\r\n };\r\n this.worker.postMessage({ type: 'init', config: workerConfig });\r\n let resolutionCb;\r\n const result = new Promise((resolve) => {\r\n resolutionCb = resolve;\r\n });\r\n this.worker.onmessage = (event) => {\r\n if (event.data.mask) {\r\n this.last_mask = event.data.mask;\r\n this.new_mask = true;\r\n }\r\n else {\r\n const workerUrl = sharedResourceManager.getWorkerUrl();\r\n if (workerUrl) {\r\n URL.revokeObjectURL(workerUrl);\r\n }\r\n resolutionCb === null || resolutionCb === void 0 ? void 0 : resolutionCb();\r\n }\r\n };\r\n return result;\r\n });\r\n }\r\n isLoaded() {\r\n return !!this.worker;\r\n }\r\n postRender(input) {\r\n return __awaiter$4(this, void 0, void 0, function* () {\r\n // claim ownership of the input tensor's buffer and forward to worker\r\n if (!this.worker) {\r\n throw new Error('[ladon-ts] - worker is not defined.');\r\n }\r\n this.worker.postMessage({\r\n type: 'generate',\r\n image: input,\r\n }, [input.buffer]);\r\n });\r\n }\r\n destroy() {\r\n sharedResourceManager.terminateWorker();\r\n }\r\n}\n\nclass WebGLRenderer {\r\n constructor(output_canvas, config) {\r\n this.output_canvas = output_canvas;\r\n this.config = config;\r\n this.verts = new Float32Array([\r\n -1.0, -1.0, 0.0, -1.0, 1.0, 0.0, 1.0, 1.0, 0.0,\r\n 1.0, 1.0, 0.0, 1.0, -1.0, 0.0, -1.0, -1.0, 0.0,\r\n ]);\r\n this.vertex_shader_src = `#version 300 es\n\nin vec4 position;\n\nvoid main() {\n gl_Position = position;\n}\n`;\r\n const gl = this.output_canvas.getContext('webgl2');\r\n if (!gl) {\r\n const output_2d = this.output_canvas.getContext('2d');\r\n if (!output_2d) {\r\n throw new Error('[ladon-ts] - output canvas context must be webgl2 or 2d');\r\n }\r\n this.output_canvas_2d = output_2d;\r\n this.intermediate_canvas = document.createElement('canvas');\r\n this.intermediate_canvas.height = this.config.input.height;\r\n this.intermediate_canvas.width = this.config.input.width;\r\n const gl_intermediate = this.intermediate_canvas.getContext('webgl2');\r\n if (!gl_intermediate) {\r\n throw new Error('[ladon-ts] - error getting output context webgl');\r\n }\r\n this.gl = gl_intermediate;\r\n }\r\n else {\r\n this.gl = gl;\r\n }\r\n // Input image texture.\r\n const image_texture = this.gl.createTexture();\r\n if (!image_texture) {\r\n throw new Error('[ladon-ts] - error creating input texture');\r\n }\r\n this.image_texture = image_texture;\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, this.image_texture);\r\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_MIN_FILTER, this.gl.LINEAR);\r\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_WRAP_S, this.gl.CLAMP_TO_EDGE);\r\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_WRAP_T, this.gl.CLAMP_TO_EDGE);\r\n this.gl.texImage2D(this.gl.TEXTURE_2D, 0, this.gl.RGBA, this.config.input.width, this.config.input.height, 0, this.gl.RGBA, this.gl.UNSIGNED_BYTE, null);\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, null);\r\n const mask_texture = this.gl.createTexture();\r\n if (!mask_texture) {\r\n throw new Error('[ladon-ts] - error creating mask texture');\r\n }\r\n // Mask texture.\r\n this.mask_texture = mask_texture;\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, this.mask_texture);\r\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_MAG_FILTER, this.gl.NEAREST);\r\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_MIN_FILTER, this.gl.NEAREST);\r\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_WRAP_S, this.gl.CLAMP_TO_EDGE);\r\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_WRAP_T, this.gl.CLAMP_TO_EDGE);\r\n this.gl.texImage2D(this.gl.TEXTURE_2D, 0, this.gl.R32F, this.config.mask.output_size.width, this.config.mask.output_size.height, 0, this.gl.RED, this.gl.FLOAT, null);\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, null);\r\n const vertex_array = this.gl.createVertexArray();\r\n if (!vertex_array) {\r\n throw new Error('[ladon-ts] - error creating vertex array');\r\n }\r\n this.gl.bindVertexArray(vertex_array);\r\n const buffer = this.gl.createBuffer();\r\n if (!buffer) {\r\n throw new Error('[ladon-ts] - error creating buffer');\r\n }\r\n this.gl.bindBuffer(this.gl.ARRAY_BUFFER, buffer);\r\n this.gl.bufferData(this.gl.ARRAY_BUFFER, this.verts, this.gl.STATIC_DRAW);\r\n this.gl.vertexAttribPointer(0, 3, this.gl.FLOAT, false, 0, 0);\r\n this.gl.enableVertexAttribArray(0);\r\n this.gl.viewport(0, 0, this.config.input.width, this.config.input.height);\r\n }\r\n getUVCalculation() {\r\n if (this.config.render.horizontal_mirror) {\r\n return `vec2 st = -(gl_FragCoord.xy / u_resolution) + 1.0;`;\r\n }\r\n return `vec2 st = vec2((gl_FragCoord.x / u_resolution.x), -(gl_FragCoord.y / u_resolution.y) + 1.0);`;\r\n }\r\n setSharedUniforms(program) {\r\n const u_resolution = this.gl.getUniformLocation(program, 'u_resolution');\r\n if (!u_resolution) {\r\n throw new Error('[ladon-ts] - error finding \"u_resolution\" uniform');\r\n }\r\n this.gl.uniform2f(u_resolution, this.config.input.width, this.config.input.height);\r\n const u_image = this.gl.getUniformLocation(program, 'u_image');\r\n if (!u_image) {\r\n throw new Error('[ladon-ts] - error finding \"u_image\" uniform');\r\n }\r\n this.gl.activeTexture(this.gl.TEXTURE0);\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, this.image_texture);\r\n this.gl.uniform1i(u_image, 0);\r\n const u_mask = this.gl.getUniformLocation(program, 'u_mask');\r\n if (u_mask) {\r\n this.gl.activeTexture(this.gl.TEXTURE1);\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, this.mask_texture);\r\n this.gl.uniform1i(u_mask, 1);\r\n }\r\n }\r\n uploadVideoStream(input) {\r\n this.gl.activeTexture(this.gl.TEXTURE0);\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, this.image_texture);\r\n this.gl.texImage2D(this.gl.TEXTURE_2D, 0, this.gl.RGBA, this.config.input.width, this.config.input.height, 0, this.gl.RGBA, this.gl.UNSIGNED_BYTE, input);\r\n }\r\n postDraw() {\r\n if (this.output_canvas_2d && this.intermediate_canvas) {\r\n this.output_canvas_2d.drawImage(this.intermediate_canvas, 0, 0, this.config.input.width, this.config.input.height);\r\n }\r\n }\r\n}\n\nvar __awaiter$3 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nclass BlurRenderer extends WebGLRenderer {\r\n constructor(output_canvas, config) {\r\n super(output_canvas, config);\r\n this.output_canvas = output_canvas;\r\n this.config = config;\r\n this.fragment_shader_common = `#version 300 es\nprecision highp float;\n\n#define KERNEL_SIZE ${this.config.render.kernel_size}\n#define HORIZONTAL vec2(1.0, 0.0)\n#define VERTICAL vec2(0.0, 1.0)\n#define EPSILON 0.00001\n\nout vec4 outColor;\n\nuniform sampler2D u_image;\nuniform float u_kernel[KERNEL_SIZE];\nuniform sampler2D u_mask;\nuniform vec2 u_resolution;\n\n\nfloat get_mask(vec2 st) {\n return clamp(texture(u_mask, st).r, 0.0, 1.0);\n}\n\nfloat get_inv_mask(vec2 st) {\n return 1.0 - get_mask(st);\n}\n\nvec4 get_offset_mul(sampler2D src, vec2 uv, float weight) {\n if (uv.x < 0.0 || uv.x > 1.0 || uv.y < 0.0 || uv.y > 1.0) {\n return vec4(vec3(0.0), weight);\n }\n\n // 4th channel is masked weight value\n return vec4(vec3(texture(src, uv).rgb * get_inv_mask(uv) * weight), get_mask(uv) * weight);\n}\n\nvec3 blur(sampler2D src, vec2 uv, vec2 direction) {\n vec4 result = vec4(0.0);\n\n vec2 step = (direction / u_resolution);\n int offset = (KERNEL_SIZE - 1) / 2;\n\n for (int i = 0; i < KERNEL_SIZE; i++) {\n vec2 offset = step * float(i - offset);\n result += get_offset_mul(src, uv + offset, u_kernel[i]);\n }\n\n if (abs(result.a - 1.0) < EPSILON) {\n return vec3(0.0);\n }\n\n // redistribute weights from masked areas\n return result.rgb * (1.0 + (result.a / (1.0 - result.a)));\n}\n`;\r\n this.fragment_shader_pass_1_src = this.fragment_shader_common +\r\n `\nvoid main() {\n vec2 st = gl_FragCoord.xy / u_resolution;\n\n outColor = vec4(blur(u_image, st, HORIZONTAL) * get_inv_mask(st), 1.0);\n}\n`;\r\n this.fragment_shader_pass_2_src = this.fragment_shader_common +\r\n `\nuniform sampler2D u_blur;\n\n\nvoid main() {\n ${this.getUVCalculation()}\n\n vec3 blurred = blur(u_blur, st, VERTICAL);\n vec3 image = texture(u_image, st).rgb;\n float mask = texture(u_mask, st).r;\n\n outColor = vec4(blurred * (1.0 - mask) + image * mask, 1.0);\n}\n`;\r\n if (this.config.render.kernel_size % 2 === 0) {\r\n throw new Error('[ladon-ts] - kernel_size must be odd');\r\n }\r\n // program pass 1 setup\r\n {\r\n const vertex_shader = compileShader(this.gl, this.gl.VERTEX_SHADER, this.vertex_shader_src);\r\n const fragment_shader = compileShader(this.gl, this.gl.FRAGMENT_SHADER, this.fragment_shader_pass_1_src);\r\n this.program_1 = linkProgram(this.gl, vertex_shader, fragment_shader);\r\n this.gl.useProgram(this.program_1);\r\n const framebuffer = this.gl.createFramebuffer();\r\n if (!framebuffer) {\r\n throw new Error('[ladon-ts] - error creating framebuffer');\r\n }\r\n this.framebuffer = framebuffer;\r\n const transfer_texture = this.gl.createTexture();\r\n if (!transfer_texture) {\r\n throw new Error('[ladon-ts] - error creating output texture');\r\n }\r\n this.transfer_texture = transfer_texture;\r\n this.gl.bindFramebuffer(this.gl.FRAMEBUFFER, this.framebuffer);\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, this.transfer_texture);\r\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_MIN_FILTER, this.gl.LINEAR);\r\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_WRAP_S, this.gl.CLAMP_TO_EDGE);\r\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_WRAP_T, this.gl.CLAMP_TO_EDGE);\r\n this.gl.texImage2D(this.gl.TEXTURE_2D, 0, this.gl.RGBA, this.config.input.width, this.config.input.height, 0, this.gl.RGBA, this.gl.UNSIGNED_BYTE, null);\r\n this.gl.framebufferTexture2D(this.gl.FRAMEBUFFER, this.gl.COLOR_ATTACHMENT0, this.gl.TEXTURE_2D, this.transfer_texture, 0);\r\n this.gl.bindFramebuffer(this.gl.FRAMEBUFFER, null);\r\n this.setSharedUniforms(this.program_1);\r\n const u_kernel = this.gl.getUniformLocation(this.program_1, 'u_kernel');\r\n if (!u_kernel) {\r\n throw new Error('[ladon-ts] - error finding \"u_kernel\" uniform');\r\n }\r\n this.gl.uniform1fv(u_kernel, this.getBlurKernel());\r\n }\r\n // program pass 2 setup\r\n {\r\n const vertex_shader = compileShader(this.gl, this.gl.VERTEX_SHADER, this.vertex_shader_src);\r\n const fragment_shader = compileShader(this.gl, this.gl.FRAGMENT_SHADER, this.fragment_shader_pass_2_src);\r\n this.program_2 = linkProgram(this.gl, vertex_shader, fragment_shader);\r\n this.gl.useProgram(this.program_2);\r\n const u_blur = this.gl.getUniformLocation(this.program_2, 'u_blur');\r\n if (!u_blur) {\r\n throw new Error('[ladon-ts] - error finding \"u_blur\" uniform');\r\n }\r\n this.u_blur = u_blur;\r\n this.gl.activeTexture(this.gl.TEXTURE2);\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, this.transfer_texture);\r\n this.gl.uniform1i(this.u_blur, 2);\r\n this.setSharedUniforms(this.program_2);\r\n const u_kernel = this.gl.getUniformLocation(this.program_2, 'u_kernel');\r\n if (!u_kernel) {\r\n throw new Error('[ladon-ts] - error finding \"u_kernel\" uniform');\r\n }\r\n this.gl.uniform1fv(u_kernel, this.getBlurKernel());\r\n }\r\n }\r\n render(input, mask) {\r\n return __awaiter$3(this, void 0, void 0, function* () {\r\n this.uploadVideoStream(input);\r\n if (mask.warm) {\r\n this.gl.activeTexture(this.gl.TEXTURE1);\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, this.mask_texture);\r\n this.gl.texImage2D(this.gl.TEXTURE_2D, 0, this.gl.R32F, this.config.mask.output_size.width, this.config.mask.output_size.height, 0, this.gl.RED, this.gl.FLOAT, mask.data);\r\n }\r\n // program pass 1 - blur in one direction & output to framebuffer\r\n this.gl.useProgram(this.program_1);\r\n this.gl.bindFramebuffer(this.gl.FRAMEBUFFER, this.framebuffer);\r\n this.gl.drawArrays(this.gl.TRIANGLES, 0, this.verts.length / 3);\r\n this.gl.bindFramebuffer(this.gl.FRAMEBUFFER, null);\r\n // program pass 2 - blur in other direction & draw to screen\r\n this.gl.useProgram(this.program_2);\r\n this.gl.drawArrays(this.gl.TRIANGLES, 0, this.verts.length / 3);\r\n this.postDraw();\r\n });\r\n }\r\n load() {\r\n return __awaiter$3(this, void 0, void 0, function* () {\r\n // empty\r\n });\r\n }\r\n destroy() {\r\n // empty\r\n }\r\n getBlurKernel() {\r\n const kernel = [];\r\n let sum = 0;\r\n for (let i = 0; i < this.config.render.kernel_size; i++) {\r\n let w = i - (this.config.render.kernel_size - 1) / 2;\r\n w = Math.exp(-(Math.pow(w, 2)) / Math.pow(this.config.render.sigma, 2));\r\n kernel.push(w);\r\n sum += w;\r\n }\r\n for (let i = 0; i < this.config.render.kernel_size; i++) {\r\n kernel[i] = kernel[i] / sum;\r\n }\r\n return new Float32Array(kernel);\r\n }\r\n}\n\nvar __awaiter$2 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nclass PassthroughRenderer extends WebGLRenderer {\r\n constructor(output_canvas, config) {\r\n super(output_canvas, config);\r\n this.output_canvas = output_canvas;\r\n this.config = config;\r\n this.fragment_shader = `#version 300 es\nprecision highp float;\n\nout vec4 outColor;\n\nuniform sampler2D u_image;\nuniform vec2 u_resolution;\n\n\nvoid main() {\n ${this.getUVCalculation()}\n\n outColor = vec4(texture(u_image, st).rgb, 1.0);\n}\n`;\r\n const vertex_shader = compileShader(this.gl, this.gl.VERTEX_SHADER, this.vertex_shader_src);\r\n const fragment_shader = compileShader(this.gl, this.gl.FRAGMENT_SHADER, this.fragment_shader);\r\n this.program = linkProgram(this.gl, vertex_shader, fragment_shader);\r\n this.gl.useProgram(this.program);\r\n this.setSharedUniforms(this.program);\r\n }\r\n render(input, \r\n /* eslint-disable-next-line @typescript-eslint/no-unused-vars */\r\n _) {\r\n return __awaiter$2(this, void 0, void 0, function* () {\r\n this.uploadVideoStream(input);\r\n this.gl.useProgram(this.program);\r\n this.gl.drawArrays(this.gl.TRIANGLES, 0, this.verts.length / 3);\r\n this.postDraw();\r\n });\r\n }\r\n load() {\r\n return __awaiter$2(this, void 0, void 0, function* () {\r\n // empty\r\n });\r\n }\r\n destroy() {\r\n // empty\r\n }\r\n}\n\nvar __awaiter$1 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nclass ReplacementRenderer extends WebGLRenderer {\r\n constructor(output_canvas, config) {\r\n super(output_canvas, config);\r\n this.output_canvas = output_canvas;\r\n this.config = config;\r\n this.fragment_shader = `#version 300 es\nprecision highp float;\n\nout vec4 outColor;\n\nuniform sampler2D u_background;\nuniform sampler2D u_image;\nuniform sampler2D u_mask;\nuniform vec2 u_resolution;\n\n\nfloat get_mask(vec2 st) {\n return clamp(texture(u_mask, st).r, 0.0, 1.0);\n}\n\nfloat get_inv_mask(vec2 st) {\n return 1.0 - get_mask(st);\n}\n\nvoid main() {\n ${this.getUVCalculation()}\n\n outColor = vec4(texture(u_background, st).rgb * get_inv_mask(st) + texture(u_image, st).rgb * get_mask(st), 1.0);\n}\n`;\r\n const background_canvas_ctx = this.config.render.background.getContext('2d');\r\n if (!background_canvas_ctx) {\r\n throw new Error('[ladon-ts] - could not get background canvas context 2d');\r\n }\r\n this.background_canvas_ctx = background_canvas_ctx;\r\n const background_data = this.background_canvas_ctx.getImageData(0, 0, this.config.render.background.width, this.config.render.background.height).data;\r\n if (this.config.render.kernel_size % 2 === 0) {\r\n throw new Error('[ladon-ts] - kernel_size must be odd');\r\n }\r\n const vertex_shader = compileShader(this.gl, this.gl.VERTEX_SHADER, this.vertex_shader_src);\r\n const fragment_shader = compileShader(this.gl, this.gl.FRAGMENT_SHADER, this.fragment_shader);\r\n this.program = linkProgram(this.gl, vertex_shader, fragment_shader);\r\n this.gl.useProgram(this.program);\r\n this.setSharedUniforms(this.program);\r\n const background_texture = this.gl.createTexture();\r\n if (!background_texture) {\r\n throw new Error('[ladon-ts] - error creating input texture');\r\n }\r\n this.background_texture = background_texture;\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, this.background_texture);\r\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_MIN_FILTER, this.gl.LINEAR);\r\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_WRAP_S, this.gl.CLAMP_TO_EDGE);\r\n this.gl.texParameteri(this.gl.TEXTURE_2D, this.gl.TEXTURE_WRAP_T, this.gl.CLAMP_TO_EDGE);\r\n this.gl.texImage2D(this.gl.TEXTURE_2D, 0, this.gl.RGBA, this.config.render.background.width, this.config.render.background.height, 0, this.gl.RGBA, this.gl.UNSIGNED_BYTE, background_data);\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, null);\r\n const u_background = this.gl.getUniformLocation(this.program, 'u_background');\r\n if (!u_background) {\r\n throw new Error('[ladon-ts] - error finding \"u_background\" uniform');\r\n }\r\n this.gl.activeTexture(this.gl.TEXTURE2);\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, this.background_texture);\r\n this.gl.uniform1i(u_background, 2);\r\n }\r\n render(input, mask) {\r\n return __awaiter$1(this, void 0, void 0, function* () {\r\n this.uploadVideoStream(input);\r\n if (mask.warm) {\r\n this.gl.activeTexture(this.gl.TEXTURE1);\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, this.mask_texture);\r\n this.gl.texImage2D(this.gl.TEXTURE_2D, 0, this.gl.R32F, this.config.mask.output_size.width, this.config.mask.output_size.height, 0, this.gl.RED, this.gl.FLOAT, mask.data);\r\n }\r\n if (!this.config.render.static) {\r\n const background_data = this.background_canvas_ctx.getImageData(0, 0, this.config.render.background.width, this.config.render.background.height).data;\r\n this.gl.activeTexture(this.gl.TEXTURE2);\r\n this.gl.bindTexture(this.gl.TEXTURE_2D, this.background_texture);\r\n this.gl.texImage2D(this.gl.TEXTURE_2D, 0, this.gl.RGBA, this.config.input.width, this.config.input.height, 0, this.gl.RGBA, this.gl.UNSIGNED_BYTE, background_data);\r\n }\r\n this.gl.useProgram(this.program);\r\n this.gl.drawArrays(this.gl.TRIANGLES, 0, this.verts.length / 3);\r\n this.postDraw();\r\n });\r\n }\r\n load() {\r\n return __awaiter$1(this, void 0, void 0, function* () {\r\n // empty\r\n });\r\n }\r\n destroy() {\r\n // empty\r\n }\r\n}\n\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nclass Pipeline {\r\n constructor(input_canvas, output_canvas, config) {\r\n this.input_canvas = input_canvas;\r\n this.output_canvas = output_canvas;\r\n this.config = config;\r\n this.loaded = false;\r\n const input_ctx = this.input_canvas.getContext('2d', {\r\n alpha: false,\r\n willReadFrequently: true,\r\n });\r\n if (!input_ctx) {\r\n throw new Error('[ladon-ts] - error getting input context 2d');\r\n }\r\n this.input_ctx = input_ctx;\r\n }\r\n onFrame() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n if (!this.generator || !this.renderer) {\r\n throw new Error('[ladon-ts] - pipeline is not loaded.');\r\n }\r\n const rawImageData = this.input_ctx.getImageData(0, 0, this.config.input.width, this.config.input.height).data;\r\n let maskImageData = rawImageData;\r\n // Resize the image data if the model expects a fixed size input (e.g., tiny model).\r\n if (this.config.mask.input_size.width !== this.config.input.width) {\r\n maskImageData = resizeImage(rawImageData, this.config.input.width, this.config.input.height, this.config.mask.input_size.width, this.config.mask.input_size.height);\r\n }\r\n const mask = yield this.generator.getMask(maskImageData);\r\n // Render the full size video image in the background with the mask on top.\r\n yield this.renderer.render(rawImageData, mask);\r\n // Cleanup the mask data.\r\n yield this.generator.postRender(maskImageData);\r\n });\r\n }\r\n isLoaded() {\r\n return this.loaded;\r\n }\r\n load() {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n switch (this.config.render.type) {\r\n case 'blur':\r\n this.renderer = new BlurRenderer(this.output_canvas, this.config);\r\n break;\r\n case 'passthrough':\r\n this.renderer = new PassthroughRenderer(this.output_canvas, this.config);\r\n break;\r\n case 'replacement':\r\n this.renderer = new ReplacementRenderer(this.output_canvas, this.config);\r\n break;\r\n default:\r\n throw new Error('[ladon-ts] - renderer not implemented.');\r\n }\r\n yield this.renderer.load();\r\n if (this.config.render.type === 'passthrough') {\r\n // automatically disable model evaluation when the renderer is set to passthrough\r\n // Note: this may change when gestures are detected (model eval will be a dependency for more than rendering)\r\n this.generator = new NullGenerator(this.config);\r\n }\r\n else {\r\n switch (this.config.mask.generator) {\r\n case 'local':\r\n this.generator = new LocalGenerator(this.config);\r\n break;\r\n case 'worker':\r\n this.generator = new WorkerGenerator(this.config);\r\n break;\r\n default:\r\n throw new Error('[ladon-ts] - generator not implemented.');\r\n }\r\n }\r\n yield this.generator.load();\r\n this.loaded = true;\r\n });\r\n }\r\n destroy() {\r\n var _a, _b;\r\n (_a = this.generator) === null || _a === void 0 ? void 0 : _a.destroy();\r\n (_b = this.renderer) === null || _b === void 0 ? void 0 : _b.destroy();\r\n }\r\n}\n\nvar bundle = {exports: {}};\n\n(function (module, exports) {\n(function (global, factory) {\n factory(exports) ;\n})(commonjsGlobal, (function (exports) {\n var createAddUniqueNumber = function createAddUniqueNumber(generateUniqueNumber) {\n return function (set) {\n var number = generateUniqueNumber(set);\n set.add(number);\n return number;\n };\n };\n\n var createCache = function createCache(lastNumberWeakMap) {\n return function (collection, nextNumber) {\n lastNumberWeakMap.set(collection, nextNumber);\n return nextNumber;\n };\n };\n\n /*\n * The value of the constant Number.MAX_SAFE_INTEGER equals (2 ** 53 - 1) but it\n * is fairly new.\n */\n var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER === undefined ? 9007199254740991 : Number.MAX_SAFE_INTEGER;\n var TWO_TO_THE_POWER_OF_TWENTY_NINE = 536870912;\n var TWO_TO_THE_POWER_OF_THIRTY = TWO_TO_THE_POWER_OF_TWENTY_NINE * 2;\n var createGenerateUniqueNumber = function createGenerateUniqueNumber(cache, lastNumberWeakMap) {\n return function (collection) {\n var lastNumber = lastNumberWeakMap.get(collection);\n /*\n * Let's try the cheapest algorithm first. It might fail to produce a new\n * number, but it is so cheap that it is okay to take the risk. Just\n * increase the last number by one or reset it to 0 if we reached the upper\n * bound of SMIs (which stands for small integers). When the last number is\n * unknown it is assumed that the collection contains zero based consecutive\n * numbers.\n */\n var nextNumber = lastNumber === undefined ? collection.size : lastNumber < TWO_TO_THE_POWER_OF_THIRTY ? lastNumber + 1 : 0;\n if (!collection.has(nextNumber)) {\n return cache(collection, nextNumber);\n }\n /*\n * If there are less than half of 2 ** 30 numbers stored in the collection,\n * the chance to generate a new random number in the range from 0 to 2 ** 30\n * is at least 50%. It's benifitial to use only SMIs because they perform\n * much better in any environment based on V8.\n */\n if (collection.size < TWO_TO_THE_POWER_OF_TWENTY_NINE) {\n while (collection.has(nextNumber)) {\n nextNumber = Math.floor(Math.random() * TWO_TO_THE_POWER_OF_THIRTY);\n }\n return cache(collection, nextNumber);\n }\n // Quickly check if there is a theoretical chance to generate a new number.\n if (collection.size > MAX_SAFE_INTEGER) {\n throw new Error('Congratulations, you created a collection of unique numbers which uses all available integers!');\n }\n // Otherwise use the full scale of safely usable integers.\n while (collection.has(nextNumber)) {\n nextNumber = Math.floor(Math.random() * MAX_SAFE_INTEGER);\n }\n return cache(collection, nextNumber);\n };\n };\n\n var LAST_NUMBER_WEAK_MAP = new WeakMap();\n var cache = createCache(LAST_NUMBER_WEAK_MAP);\n var generateUniqueNumber = createGenerateUniqueNumber(cache, LAST_NUMBER_WEAK_MAP);\n var addUniqueNumber = createAddUniqueNumber(generateUniqueNumber);\n\n exports.addUniqueNumber = addUniqueNumber;\n exports.generateUniqueNumber = generateUniqueNumber;\n\n}));\n}(bundle, bundle.exports));\n\nconst isCallNotification = (message) => {\n return message.method !== undefined && message.method === 'call';\n};\n\nconst isClearResponse = (message) => {\n return typeof message.id === 'number' && typeof message.result === 'boolean';\n};\n\nconst load = (url) => {\n // Prefilling the Maps with a function indexed by zero is necessary to be compliant with the specification.\n const scheduledIntervalFunctions = new Map([[0, () => { }]]); // tslint:disable-line no-empty\n const scheduledTimeoutFunctions = new Map([[0, () => { }]]); // tslint:disable-line no-empty\n const unrespondedRequests = new Map();\n const worker = new Worker(url);\n worker.addEventListener('message', ({ data }) => {\n if (isCallNotification(data)) {\n const { params: { timerId, timerType } } = data;\n if (timerType === 'interval') {\n const idOrFunc = scheduledIntervalFunctions.get(timerId);\n if (typeof idOrFunc === undefined) {\n throw new Error('The timer is in an undefined state.');\n }\n if (typeof idOrFunc === 'number') {\n const timerIdAndTimerType = unrespondedRequests.get(idOrFunc);\n if (timerIdAndTimerType === undefined ||\n timerIdAndTimerType.timerId !== timerId ||\n timerIdAndTimerType.timerType !== timerType) {\n throw new Error('The timer is in an undefined state.');\n }\n }\n else if (typeof idOrFunc === 'function') {\n idOrFunc();\n }\n }\n else if (timerType === 'timeout') {\n const idOrFunc = scheduledTimeoutFunctions.get(timerId);\n if (typeof idOrFunc === undefined) {\n throw new Error('The timer is in an undefined state.');\n }\n if (typeof idOrFunc === 'number') {\n const timerIdAndTimerType = unrespondedRequests.get(idOrFunc);\n if (timerIdAndTimerType === undefined ||\n timerIdAndTimerType.timerId !== timerId ||\n timerIdAndTimerType.timerType !== timerType) {\n throw new Error('The timer is in an undefined state.');\n }\n }\n else if (typeof idOrFunc === 'function') {\n idOrFunc();\n // A timeout can be savely deleted because it is only called once.\n scheduledTimeoutFunctions.delete(timerId);\n }\n }\n }\n else if (isClearResponse(data)) {\n const { id } = data;\n const timerIdAndTimerType = unrespondedRequests.get(id);\n if (timerIdAndTimerType === undefined) {\n throw new Error('The timer is in an undefined state.');\n }\n const { timerId, timerType } = timerIdAndTimerType;\n unrespondedRequests.delete(id);\n if (timerType === 'interval') {\n scheduledIntervalFunctions.delete(timerId);\n }\n else {\n scheduledTimeoutFunctions.delete(timerId);\n }\n }\n else {\n const { error: { message } } = data;\n throw new Error(message);\n }\n });\n const clearInterval = (timerId) => {\n if (typeof scheduledIntervalFunctions.get(timerId) === 'function') {\n const id = bundle.exports.generateUniqueNumber(unrespondedRequests);\n unrespondedRequests.set(id, { timerId, timerType: 'interval' });\n scheduledIntervalFunctions.set(timerId, id);\n worker.postMessage({\n id,\n method: 'clear',\n params: { timerId, timerType: 'interval' }\n });\n }\n };\n const clearTimeout = (timerId) => {\n if (typeof scheduledTimeoutFunctions.get(timerId) === 'function') {\n const id = bundle.exports.generateUniqueNumber(unrespondedRequests);\n unrespondedRequests.set(id, { timerId, timerType: 'timeout' });\n scheduledTimeoutFunctions.set(timerId, id);\n worker.postMessage({\n id,\n method: 'clear',\n params: { timerId, timerType: 'timeout' }\n });\n }\n };\n const setInterval = (func, delay = 0) => {\n const timerId = bundle.exports.generateUniqueNumber(scheduledIntervalFunctions);\n scheduledIntervalFunctions.set(timerId, () => {\n func();\n // Doublecheck if the interval should still be rescheduled because it could have been cleared inside of func().\n if (typeof scheduledIntervalFunctions.get(timerId) === 'function') {\n worker.postMessage({\n id: null,\n method: 'set',\n params: {\n delay,\n now: performance.timeOrigin + performance.now(),\n timerId,\n timerType: 'interval'\n }\n });\n }\n });\n worker.postMessage({\n id: null,\n method: 'set',\n params: {\n delay,\n now: performance.timeOrigin + performance.now(),\n timerId,\n timerType: 'interval'\n }\n });\n return timerId;\n };\n const setTimeout = (func, delay = 0) => {\n const timerId = bundle.exports.generateUniqueNumber(scheduledTimeoutFunctions);\n scheduledTimeoutFunctions.set(timerId, func);\n worker.postMessage({\n id: null,\n method: 'set',\n params: {\n delay,\n now: performance.timeOrigin + performance.now(),\n timerId,\n timerType: 'timeout'\n }\n });\n return timerId;\n };\n return {\n clearInterval,\n clearTimeout,\n setInterval,\n setTimeout\n };\n};\n\nconst createLoadOrReturnBroker = (loadBroker, worker) => {\n let broker = null;\n return () => {\n if (broker !== null) {\n return broker;\n }\n const blob = new Blob([worker], { type: 'application/javascript; charset=utf-8' });\n const url = URL.createObjectURL(blob);\n broker = loadBroker(url);\n // Bug #1: Edge up until v18 didn't like the URL to be revoked directly.\n setTimeout(() => URL.revokeObjectURL(url));\n return broker;\n };\n};\n\n// This is the minified and stringified code of the worker-timers-worker package.\nconst worker = `(()=>{\"use strict\";const e=new Map,t=new Map,r=t=>{const r=e.get(t);return void 0!==r&&(clearTimeout(r),e.delete(t),!0)},s=e=>{const r=t.get(e);return void 0!==r&&(clearTimeout(r),t.delete(e),!0)},o=(e,t)=>{const r=performance.now(),s=e+t-r-performance.timeOrigin;return{expected:r+s,remainingDelay:s}},i=(e,t,r,s)=>{const o=r-performance.now();o>0?e.set(t,setTimeout(i,o,e,t,r,s)):(e.delete(t),postMessage({id:null,method:\"call\",params:{timerId:t,timerType:s}}))};addEventListener(\"message\",(n=>{let{data:a}=n;try{if(\"clear\"===a.method){const{id:e,params:{timerId:t,timerType:o}}=a;if(\"interval\"===o)postMessage({id:e,result:r(t)});else{if(\"timeout\"!==o)throw new Error('The given type \"'.concat(o,'\" is not supported'));postMessage({id:e,result:s(t)})}}else{if(\"set\"!==a.method)throw new Error('The given method \"'.concat(a.method,'\" is not supported'));{const{params:{delay:r,now:s,timerId:n,timerType:m}}=a;if(\"interval\"===m)((t,r,s)=>{const{expected:n,remainingDelay:a}=o(t,s);e.set(r,setTimeout(i,a,e,r,n,\"interval\"))})(r,n,s);else{if(\"timeout\"!==m)throw new Error('The given type \"'.concat(m,'\" is not supported'));((e,r,s)=>{const{expected:n,remainingDelay:a}=o(e,s);t.set(r,setTimeout(i,a,t,r,n,\"timeout\"))})(r,n,s)}}}}catch(e){postMessage({error:{message:e.message},id:a.id,result:null})}}))})();`; // tslint:disable-line:max-line-length\n\nconst loadOrReturnBroker = createLoadOrReturnBroker(load, worker);\nconst clearTimeout = (timerId) => loadOrReturnBroker().clearTimeout(timerId);\nconst setTimeout$1 = (...args) => loadOrReturnBroker().setTimeout(...args);\n\nconst generateUuid = () => String(Math.random() * 1e17);\r\nconst getOrCreateEl = (kind, height, width, uniqueId = generateUuid(), addToDom = false) => {\r\n const id = `web-media-effects-${kind}-${uniqueId}`;\r\n let el = document.getElementById(id);\r\n if (!el) {\r\n el = document.createElement(kind);\r\n el.id = id;\r\n el.style.bottom = '0';\r\n el.style.opacity = '0';\r\n el.style.position = 'fixed';\r\n el.style.zIndex = '-2147483647';\r\n el.style.height = '0px';\r\n el.style.width = '0px';\r\n el.setAttribute('height', height.toString());\r\n el.setAttribute('width', width.toString());\r\n if (addToDom) {\r\n document.body.appendChild(el);\r\n }\r\n }\r\n return el;\r\n};\r\nconst getCanvasEl = (height, width, uniqueId, showInDom) => getOrCreateEl('canvas', height, width, uniqueId, showInDom);\r\nconst getVideoEl = (height, width, uniqueId) => getOrCreateEl('video', height, width, uniqueId);\n\nconst isIos = () => {\r\n var _a, _b, _c;\r\n return Boolean(['iPad Simulator', 'iPhone Simulator', 'iPod Simulator', 'iPad', 'iPhone', 'iPod'].includes((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _a === void 0 ? void 0 : _a.platform) ||\r\n (((_c = (_b = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _b === void 0 ? void 0 : _b.userAgent) === null || _c === void 0 ? void 0 : _c.includes('Mac')) && 'ontouchend' in (globalThis === null || globalThis === void 0 ? void 0 : globalThis.document)));\r\n};\r\nconst portraitMql = () => { var _a; return (_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.matchMedia) === null || _a === void 0 ? void 0 : _a.call(globalThis, '(orientation: portrait)'); };\n\nconst drawImage = (srcEl, destEl) => {\r\n const { height: sh, width: sw } = srcEl;\r\n const { height: dh, width: dw } = destEl;\r\n const ctx = destEl.getContext('2d');\r\n ctx === null || ctx === void 0 ? void 0 : ctx.clearRect(0, 0, dw, dh);\r\n ctx === null || ctx === void 0 ? void 0 : ctx.drawImage(srcEl, 0, 0, sw, sh, 0, 0, dw, dh);\r\n};\n\nconst getBackgroundConfig = (backgroundEl, video = false, mirror = false) => ({\r\n type: 'replacement',\r\n horizontal_mirror: mirror,\r\n background: backgroundEl,\r\n static: !video,\r\n});\n\nconst loadImageFromUrl = (url) => new Promise((resolve, reject) => {\r\n const image = new Image();\r\n image.onload = () => {\r\n resolve(image);\r\n };\r\n image.onerror = (e) => reject(e);\r\n image.src = url;\r\n image.crossOrigin = 'anonymous';\r\n});\r\nconst loadVideoFromUrl = (url) => new Promise((resolve, reject) => {\r\n const video = getOrCreateEl('video', 0, 0, undefined, true);\r\n video.onloadeddata = () => {\r\n video.height = video.videoHeight;\r\n video.width = video.videoWidth;\r\n resolve(video);\r\n };\r\n video.onerror = () => reject();\r\n video.autoplay = true;\r\n video.playsInline = true;\r\n video.loop = true;\r\n video.muted = true;\r\n video.src = url;\r\n video.crossOrigin = 'anonymous';\r\n});\n\nconst DEFAULT_FRAME_RATE = 24;\r\nvar VirtualBackgroundMode;\r\n(function (VirtualBackgroundMode) {\r\n VirtualBackgroundMode[\"Blur\"] = \"BLUR\";\r\n VirtualBackgroundMode[\"Image\"] = \"IMAGE\";\r\n VirtualBackgroundMode[\"Video\"] = \"VIDEO\";\r\n})(VirtualBackgroundMode || (VirtualBackgroundMode = {}));\r\nconst defaultOptions = Object.freeze({\r\n mode: VirtualBackgroundMode.Blur,\r\n blurStrength: BlurStrength.STRONG,\r\n generator: 'worker',\r\n quality: Quality.LOW,\r\n authToken: '',\r\n mirror: false,\r\n});\r\nconst omitAuthToken = (obj) => omitKey('authToken', obj);\r\nclass VirtualBackgroundEffect extends BaseCameraEffect {\r\n get isReady() {\r\n var _a;\r\n return !!((_a = this.model) === null || _a === void 0 ? void 0 : _a.isLoaded());\r\n }\r\n get isLoaded() {\r\n return !!this.loadFuture;\r\n }\r\n get frameRate() {\r\n var _a, _b, _c;\r\n return (_c = (_a = this.options.frameRate) !== null && _a !== void 0 ? _a : (_b = this.trackSettings) === null || _b === void 0 ? void 0 : _b.frameRate) !== null && _c !== void 0 ? _c : DEFAULT_FRAME_RATE;\r\n }\r\n constructor(options) {\r\n super();\r\n this.defaultOptions = defaultOptions;\r\n this.uniqueId = Date.now();\r\n this.lastFrameTime = 0;\r\n this.frameInterval = 1000 / DEFAULT_FRAME_RATE;\r\n this.restoreEffectOnTrackEnable = false;\r\n this.handleOrientationChange = (mql) => {\r\n const isPortrait = mql.matches;\r\n if (!this.trackSettings) {\r\n throw new Error(`virtual background: unable to determine input track settings`);\r\n }\r\n let { height, width } = this.trackSettings;\r\n if (!height || !width) {\r\n logger.log(`virtual background: orientation change detected but unknown height or width`, {\r\n height,\r\n width,\r\n });\r\n return;\r\n }\r\n logger.log(`virtual background: orientation change detected`, {\r\n height,\r\n width,\r\n });\r\n if ((isPortrait && height < width) || (!isPortrait && height > width)) {\r\n [height, width] = [width, height];\r\n }\r\n logger.log(`virtual background: orientation changed to ${isPortrait ? 'portrait' : 'landscape'}`, {\r\n height,\r\n width,\r\n });\r\n [this.videoEl, this.inputEl, this.outputEl, this.backgroundEl].forEach((el) => {\r\n if (height) {\r\n el === null || el === void 0 ? void 0 : el.setAttribute('height', height.toString());\r\n }\r\n if (width) {\r\n el === null || el === void 0 ? void 0 : el.setAttribute('width', width.toString());\r\n }\r\n });\r\n };\r\n this.options = Object.assign(Object.assign({}, defaultOptions), options);\r\n logger.log('virtual background: init effect', omitAuthToken(this.options));\r\n this.loadModel = this.loadModel.bind(this);\r\n this.handleFrame = this.handleFrame.bind(this);\r\n this.handleOrientationChange = this.handleOrientationChange.bind(this);\r\n this.handleVideoLoadedMetadata = this.handleVideoLoadedMetadata.bind(this);\r\n this.handleVideoResize = this.handleVideoResize.bind(this);\r\n this.handleModelResolver = this.handleModelResolver.bind(this);\r\n this.handleVisibilityChange = this.handleVisibilityChange.bind(this);\r\n }\r\n preloadAssets() {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n const start = performance.now();\r\n if (this.preloadFuture) {\r\n yield this.preloadFuture.promise;\r\n return;\r\n }\r\n this.preloadFuture = new Future();\r\n logger.log('virtual background: preloading assets');\r\n try {\r\n const preloadConfig = getPreloadConfig(this.options.quality, this.options.generator, this.handleModelResolver, \"https://models.intelligence.webex.com/ladon\", \"false\" === 'true');\r\n yield preload(preloadConfig);\r\n const end = performance.now();\r\n const duration = Math.round(end - start) / 1000;\r\n logger.log(`virtual background: preload completed in ${duration} seconds`);\r\n this.preloadFuture.resolve();\r\n }\r\n catch (error) {\r\n this.preloadFuture.reject(error);\r\n this.preloadFuture = undefined;\r\n throw error;\r\n }\r\n });\r\n }\r\n loadMediaStream(input) {\r\n const _super = Object.create(null, {\r\n loadMedia: { get: () => super.loadMedia }\r\n });\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n logger.log('virtual background: load stream', input);\r\n const [videoTrack] = input.getVideoTracks();\r\n if (!videoTrack) {\r\n throw new Error('virtual background: load stream failed, no video track found');\r\n }\r\n yield _super.loadMedia.call(this, videoTrack, input);\r\n yield this.loadDomAndModel();\r\n if (!this.outputStream) {\r\n throw new Error('virtual background: failed to create output stream');\r\n }\r\n logger.log('virtual background: setting new track enabled state', videoTrack.enabled);\r\n this.outputStream.getVideoTracks()[0].enabled = videoTrack.enabled;\r\n return this.outputStream;\r\n });\r\n }\r\n loadMediaStreamTrack(input) {\r\n const _super = Object.create(null, {\r\n loadMedia: { get: () => super.loadMedia }\r\n });\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n logger.log('virtual background: load track', input);\r\n _super.loadMedia.call(this, input);\r\n yield this.loadDomAndModel();\r\n if (!this.outputTrack) {\r\n throw new Error('virtual background: failed to create output track');\r\n }\r\n return this.outputTrack;\r\n });\r\n }\r\n loadDomAndModel() {\r\n var _a, _b, _c, _d;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n if (!this.inputStream) {\r\n throw new Error('virtual background: failed to create input stream');\r\n }\r\n if (!this.loadFuture) {\r\n this.loadFuture = new Future();\r\n yield ((_a = this.disposeFuture) === null || _a === void 0 ? void 0 : _a.promise);\r\n this.disposeFuture = new Future();\r\n this.trackSettings = (_b = this.inputTrack) === null || _b === void 0 ? void 0 : _b.getSettings();\r\n if (!this.trackSettings) {\r\n throw new Error('virtual background: unable to determine input track settings');\r\n }\r\n this.setupDom(this.trackSettings.height, this.trackSettings.width);\r\n this.detectQuirks();\r\n yield this.preloadAssets();\r\n yield this.loadModel();\r\n if (!this.videoEl) {\r\n throw new Error('virtual background: unable to create input video element');\r\n }\r\n this.videoEl.srcObject = this.inputStream;\r\n logger.log(`virtual background: capturing output stream at frameRate = ${this.frameRate}`);\r\n const effectStream = (_c = this.outputEl) === null || _c === void 0 ? void 0 : _c.captureStream(this.frameRate);\r\n this.effectTrack = effectStream === null || effectStream === void 0 ? void 0 : effectStream.getVideoTracks()[0];\r\n this.frameInterval = 1000 / this.frameRate;\r\n this.requestFrame =\r\n document.visibilityState === 'visible'\r\n ? this.requestAnimationFrameWrapper\r\n : this.setTimeoutWrapper;\r\n this.setupVisibilityChange();\r\n try {\r\n this.lastFrameTime = performance.now();\r\n (_d = this.requestFrame) === null || _d === void 0 ? void 0 : _d.call(this);\r\n this.loadFuture.resolve();\r\n }\r\n catch (error) {\r\n this.loadFuture.reject(error);\r\n throw error;\r\n }\r\n }\r\n return this.loadFuture.promise;\r\n });\r\n }\r\n setupVisibilityChange() {\r\n if (this.options.preventBackgroundThrottling) {\r\n logger.log('virtual background: adding visibility change listener to prevent throttling');\r\n document.addEventListener('visibilitychange', this.handleVisibilityChange);\r\n }\r\n }\r\n handleVisibilityChange() {\r\n this.clearTimers();\r\n this.requestFrame =\r\n document.visibilityState === 'visible'\r\n ? this.requestAnimationFrameWrapper\r\n : this.setTimeoutWrapper;\r\n this.requestFrame();\r\n }\r\n requestAnimationFrameWrapper() {\r\n if (this.timerId) {\r\n cancelAnimationFrame(this.timerId);\r\n }\r\n this.timerId = requestAnimationFrame(this.handleFrame);\r\n }\r\n setTimeoutWrapper() {\r\n if (this.timerId) {\r\n clearTimeout(this.timerId);\r\n }\r\n this.timerId = setTimeout$1(this.handleFrame, this.frameInterval);\r\n }\r\n clearTimers() {\r\n if (this.timerId) {\r\n cancelAnimationFrame(this.timerId);\r\n clearTimeout(this.timerId);\r\n }\r\n }\r\n createPipeline(renderConfig) {\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n logger.log('virtual background: creating pipeline', renderConfig);\r\n return new Promise((resolve) => {\r\n if (!this.outputEl || !this.inputEl) {\r\n throw new Error('virtual background: unable to create pipeline');\r\n }\r\n const config = getConfig(this.outputEl.height, this.outputEl.width, this.options.quality, this.options.generator, renderConfig, this.handleModelResolver, \"https://models.intelligence.webex.com/ladon\", \"false\" === 'true');\r\n logger.log('virtual background: pipeline created', config);\r\n resolve(new Pipeline(this.inputEl, this.outputEl, config));\r\n });\r\n });\r\n }\r\n loadModel() {\r\n var _a, _b;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n let config;\r\n logger.log('virtual background: loading model with mode:', this.options.mode);\r\n switch (this.options.mode) {\r\n case VirtualBackgroundMode.Blur: {\r\n if (!this.options.blurStrength) {\r\n throw new Error('virtual background: missing `blurStrength` option');\r\n }\r\n config = getBlurConfig(this.options.blurStrength, this.options.mirror);\r\n break;\r\n }\r\n case VirtualBackgroundMode.Image: {\r\n if (!this.options.bgImageUrl) {\r\n throw new Error('virtual background: missing `bgImageUrl` option');\r\n }\r\n if (!this.backgroundEl) {\r\n throw new Error('virtual background: missing hidden background element');\r\n }\r\n const image = yield loadImageFromUrl(this.options.bgImageUrl);\r\n config = getBackgroundConfig(this.backgroundEl, false, this.options.mirror);\r\n drawImage(image, this.backgroundEl);\r\n break;\r\n }\r\n case VirtualBackgroundMode.Video: {\r\n if (!this.options.bgVideoUrl) {\r\n throw new Error('virtual background: missing `bgVideoUrl` option');\r\n }\r\n if (!this.backgroundEl) {\r\n throw new Error('virtual background: missing hidden background element');\r\n }\r\n config = getBackgroundConfig(this.backgroundEl, true, this.options.mirror);\r\n this.virtualVideoEl = yield loadVideoFromUrl(this.options.bgVideoUrl);\r\n break;\r\n }\r\n default:\r\n throw new Error('virtual background: invalid options supplied to the effect');\r\n }\r\n yield ((_a = this.model) === null || _a === void 0 ? void 0 : _a.destroy());\r\n this.model = yield this.createPipeline(config);\r\n return (_b = this.model) === null || _b === void 0 ? void 0 : _b.load();\r\n });\r\n }\r\n handleFrame(timestamp = performance.now()) {\r\n var _a, _b, _c, _d;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n const elapsedSinceLastFrame = timestamp - this.lastFrameTime;\r\n if (elapsedSinceLastFrame < this.frameInterval) {\r\n (_a = this.requestFrame) === null || _a === void 0 ? void 0 : _a.call(this);\r\n return;\r\n }\r\n this.lastFrameTime += this.frameInterval;\r\n try {\r\n if (!this.videoEl) {\r\n throw new Error('virtual background: missing hidden video element');\r\n }\r\n if (!this.inputEl) {\r\n throw new Error('virtual background: missing input canvas element');\r\n }\r\n if (!this.isReady) {\r\n return;\r\n }\r\n yield this.manageEffectRestoration();\r\n if (!this.isEnabled) {\r\n return;\r\n }\r\n drawImage(this.videoEl, this.inputEl);\r\n if (this.options.mode === VirtualBackgroundMode.Video) {\r\n if (!this.virtualVideoEl) {\r\n throw new Error('virtual background: no background video element');\r\n }\r\n if (!this.backgroundEl) {\r\n throw new Error('virtual background: no background element');\r\n }\r\n drawImage(this.virtualVideoEl, this.backgroundEl);\r\n }\r\n yield ((_b = this.model) === null || _b === void 0 ? void 0 : _b.onFrame());\r\n try {\r\n (_c = this.onFrameProcessedCallback) === null || _c === void 0 ? void 0 : _c.call(this, timestamp);\r\n }\r\n catch (e) {\r\n logger.log('virtual background: issue invoking callback', e);\r\n }\r\n }\r\n catch (e) {\r\n logger.log('virtual background: issue rendering frame');\r\n }\r\n (_d = this.requestFrame) === null || _d === void 0 ? void 0 : _d.call(this);\r\n });\r\n }\r\n manageEffectRestoration() {\r\n var _a, _b, _c, _d;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n const inputTrackEnabled = ((_a = this.inputTrack) === null || _a === void 0 ? void 0 : _a.enabled) && !((_b = this.inputTrack) === null || _b === void 0 ? void 0 : _b.muted);\r\n if (this.restoreEffectOnTrackEnable && !inputTrackEnabled) {\r\n (_c = this.requestFrame) === null || _c === void 0 ? void 0 : _c.call(this);\r\n return;\r\n }\r\n if (this.restoreEffectOnTrackEnable && inputTrackEnabled) {\r\n logger.log('virtual background: re-enabling effect as the track is now enabled');\r\n this.restoreEffectOnTrackEnable = false;\r\n yield this.enable();\r\n return;\r\n }\r\n if (this.isEnabled && !inputTrackEnabled) {\r\n logger.log('virtual background: input track disabled; disabling effect');\r\n this.restoreEffectOnTrackEnable = true;\r\n yield this.disable();\r\n (_d = this.requestFrame) === null || _d === void 0 ? void 0 : _d.call(this);\r\n }\r\n });\r\n }\r\n setupDom(height, width) {\r\n logger.log('virtual background: setting up dom with dimension', { height, width });\r\n if (!height || !width) {\r\n throw new Error(`virtual background: missing dimensions: height=${height}, width=${width})`);\r\n }\r\n this.uniqueId = Date.now();\r\n this.videoEl = getVideoEl(height, width, this.uniqueId.toString());\r\n this.inputEl = getCanvasEl(height, width, `input-${this.uniqueId}`);\r\n this.outputEl = getCanvasEl(height, width, `output-${this.uniqueId}`, true);\r\n this.backgroundEl = getCanvasEl(height, width, `background-${this.uniqueId}`);\r\n this.videoEl.setAttribute('autoplay', '');\r\n this.videoEl.setAttribute('playsinline', '');\r\n this.videoEl.setAttribute('muted', '');\r\n this.videoEl.addEventListener('loadedmetadata', this.handleVideoLoadedMetadata);\r\n this.videoEl.addEventListener('resize', this.handleVideoResize, false);\r\n }\r\n detectQuirks() {\r\n var _a, _b;\r\n (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.getContext('2d', { willReadFrequently: true });\r\n (_b = this.outputEl) === null || _b === void 0 ? void 0 : _b.getContext('webgl2');\r\n if (isIos()) {\r\n const mql = portraitMql();\r\n this.handleOrientationChange(mql);\r\n mql === null || mql === void 0 ? void 0 : mql.addEventListener('change', this.handleOrientationChange);\r\n }\r\n }\r\n handleVideoLoadedMetadata() {\r\n var _a;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n yield ((_a = this.videoEl) === null || _a === void 0 ? void 0 : _a.play());\r\n });\r\n }\r\n handleVideoResize() {\r\n var _a, _b;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n yield ((_a = this.loadFuture) === null || _a === void 0 ? void 0 : _a.promise);\r\n const oldSettings = this.trackSettings;\r\n const newSettings = (_b = this.inputTrack) === null || _b === void 0 ? void 0 : _b.getSettings();\r\n if (((newSettings === null || newSettings === void 0 ? void 0 : newSettings.width) && (oldSettings === null || oldSettings === void 0 ? void 0 : oldSettings.width) && (newSettings === null || newSettings === void 0 ? void 0 : newSettings.width) !== (oldSettings === null || oldSettings === void 0 ? void 0 : oldSettings.width)) ||\r\n ((newSettings === null || newSettings === void 0 ? void 0 : newSettings.height) && (oldSettings === null || oldSettings === void 0 ? void 0 : oldSettings.height) && (newSettings === null || newSettings === void 0 ? void 0 : newSettings.height) !== (oldSettings === null || oldSettings === void 0 ? void 0 : oldSettings.height))) {\r\n logger.log('virtual background: video resize detected', { oldSettings, newSettings });\r\n yield this.updateSize(newSettings.width, newSettings.height);\r\n }\r\n });\r\n }\r\n handleModelResolver(modelPath) {\r\n return memoizedFetchSignedUrl(`ladon${modelPath}`, this.options.authToken, this.options.env);\r\n }\r\n enable() {\r\n const _super = Object.create(null, {\r\n enable: { get: () => super.enable }\r\n });\r\n var _a, _b, _c, _d, _e, _f;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n if (((_a = this.loadFuture) === null || _a === void 0 ? void 0 : _a.state) === FutureState.Rejected) {\r\n logger.warn('virtual background: model load failed, cannot enable effect');\r\n return false;\r\n }\r\n if (((_b = this.loadFuture) === null || _b === void 0 ? void 0 : _b.state) === FutureState.Pending) {\r\n yield ((_c = this.loadFuture) === null || _c === void 0 ? void 0 : _c.promise);\r\n }\r\n logger.log('virtual background: enabling effect');\r\n if (this.isReady && this.effectTrack && this.inputTrack) {\r\n try {\r\n yield _super.enable.call(this);\r\n (_d = this.outputStream) === null || _d === void 0 ? void 0 : _d.removeTrack(this.inputTrack);\r\n (_e = this.outputStream) === null || _e === void 0 ? void 0 : _e.addTrack(this.effectTrack);\r\n (_f = this.requestFrame) === null || _f === void 0 ? void 0 : _f.call(this);\r\n return true;\r\n }\r\n catch (e) {\r\n this.isEnabled = false;\r\n throw e;\r\n }\r\n }\r\n return false;\r\n });\r\n }\r\n disable() {\r\n const _super = Object.create(null, {\r\n disable: { get: () => super.disable }\r\n });\r\n var _a, _b, _c, _d, _e;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n if (((_a = this.loadFuture) === null || _a === void 0 ? void 0 : _a.state) === FutureState.Rejected) {\r\n logger.warn('virtual background: model load failed, disabling effect anyway');\r\n }\r\n if (((_b = this.loadFuture) === null || _b === void 0 ? void 0 : _b.state) === FutureState.Pending) {\r\n yield ((_c = this.loadFuture) === null || _c === void 0 ? void 0 : _c.promise);\r\n }\r\n logger.log('virtual background: disabling effect');\r\n if (this.isReady && this.effectTrack && this.inputTrack) {\r\n try {\r\n yield _super.disable.call(this);\r\n this.clearTimers();\r\n (_d = this.outputStream) === null || _d === void 0 ? void 0 : _d.removeTrack(this.effectTrack);\r\n (_e = this.outputStream) === null || _e === void 0 ? void 0 : _e.addTrack(this.inputTrack);\r\n return true;\r\n }\r\n catch (e) {\r\n this.isEnabled = true;\r\n throw e;\r\n }\r\n }\r\n return false;\r\n });\r\n }\r\n dispose() {\r\n const _super = Object.create(null, {\r\n dispose: { get: () => super.dispose }\r\n });\r\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n logger.log('virtual background: disposing effect');\r\n if (((_a = this.loadFuture) === null || _a === void 0 ? void 0 : _a.state) === FutureState.Rejected) {\r\n logger.warn('virtual background: model load failed, cleaning up resources');\r\n }\r\n else if (((_b = this.loadFuture) === null || _b === void 0 ? void 0 : _b.state) === FutureState.Pending) {\r\n this.loadFuture.reject(new Error('virtual background: loading interrupted by dispose'));\r\n }\r\n else if (((_c = this.loadFuture) === null || _c === void 0 ? void 0 : _c.state) === FutureState.Resolved) {\r\n yield this.loadFuture.promise;\r\n this.emit(EffectEvent.Disposed);\r\n }\r\n yield this.disable();\r\n yield ((_d = this.model) === null || _d === void 0 ? void 0 : _d.destroy());\r\n (_e = portraitMql()) === null || _e === void 0 ? void 0 : _e.removeEventListener('change', this.handleOrientationChange);\r\n (_f = this.videoEl) === null || _f === void 0 ? void 0 : _f.removeEventListener('loadedmetadata', this.handleVideoLoadedMetadata);\r\n (_g = this.videoEl) === null || _g === void 0 ? void 0 : _g.removeEventListener('resize', this.handleVideoResize);\r\n document.removeEventListener('visibilitychange', this.handleVisibilityChange);\r\n (_h = this.inputEl) === null || _h === void 0 ? void 0 : _h.remove();\r\n (_j = this.outputEl) === null || _j === void 0 ? void 0 : _j.remove();\r\n (_k = this.videoEl) === null || _k === void 0 ? void 0 : _k.remove();\r\n (_l = this.backgroundEl) === null || _l === void 0 ? void 0 : _l.remove();\r\n (_m = this.virtualVideoEl) === null || _m === void 0 ? void 0 : _m.remove();\r\n delete this.requestFrame;\r\n delete this.model;\r\n delete this.inputEl;\r\n delete this.outputEl;\r\n delete this.videoEl;\r\n delete this.backgroundEl;\r\n delete this.virtualVideoEl;\r\n try {\r\n yield _super.dispose.call(this);\r\n (_o = this.disposeFuture) === null || _o === void 0 ? void 0 : _o.resolve();\r\n }\r\n catch (error) {\r\n (_p = this.disposeFuture) === null || _p === void 0 ? void 0 : _p.reject(error);\r\n throw error;\r\n }\r\n this.loadFuture = undefined;\r\n });\r\n }\r\n setOnFrameProcessedCallback(callback) {\r\n this.onFrameProcessedCallback = callback;\r\n }\r\n updateOptions(options) {\r\n var _a, _b;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n if (((_a = this.loadFuture) === null || _a === void 0 ? void 0 : _a.state) === FutureState.Pending) {\r\n try {\r\n yield this.loadFuture.promise;\r\n }\r\n catch (error) {\r\n logger.warn('virtual background: previous loading failed, continuing with update', error);\r\n }\r\n }\r\n Object.keys(options).forEach((key) => {\r\n var _a;\r\n this.options[key] = (_a = options[key]) !== null && _a !== void 0 ? _a : this.options[key];\r\n });\r\n if (typeof this.options.preventBackgroundThrottling !== 'undefined') {\r\n document.removeEventListener('visibilitychange', this.handleVisibilityChange);\r\n this.setupVisibilityChange();\r\n }\r\n logger.log('virtual background: reloading effect with options', omitAuthToken(this.options));\r\n this.loadFuture = new Future();\r\n try {\r\n yield this.loadModel();\r\n this.loadFuture.resolve();\r\n (_b = this.requestFrame) === null || _b === void 0 ? void 0 : _b.call(this);\r\n }\r\n catch (error) {\r\n this.loadFuture.reject(error);\r\n throw error;\r\n }\r\n });\r\n }\r\n updateSize(width, height) {\r\n var _a, _b;\r\n return __awaiter$6(this, void 0, void 0, function* () {\r\n if (((_a = this.loadFuture) === null || _a === void 0 ? void 0 : _a.state) === FutureState.Pending) {\r\n try {\r\n yield this.loadFuture.promise;\r\n }\r\n catch (error) {\r\n logger.warn('virtual background: previous loading failed, continuing with size update', error);\r\n }\r\n }\r\n if (this.videoEl) {\r\n this.videoEl.width = width;\r\n this.videoEl.height = height;\r\n }\r\n if (this.inputEl) {\r\n this.inputEl.width = width;\r\n this.inputEl.height = height;\r\n }\r\n if (this.outputEl) {\r\n this.outputEl.width = width;\r\n this.outputEl.height = height;\r\n }\r\n if (this.backgroundEl) {\r\n this.backgroundEl.width = width;\r\n this.backgroundEl.height = height;\r\n }\r\n if (this.trackSettings) {\r\n this.trackSettings.width = width;\r\n this.trackSettings.height = height;\r\n }\r\n logger.log('virtual background: updating size', { width, height });\r\n this.loadFuture = new Future();\r\n try {\r\n yield this.loadModel();\r\n this.loadFuture.resolve();\r\n (_b = this.requestFrame) === null || _b === void 0 ? void 0 : _b.call(this);\r\n }\r\n catch (error) {\r\n this.loadFuture.reject(error);\r\n throw error;\r\n }\r\n });\r\n }\r\n}\r\nVirtualBackgroundEffect.kind = 'virtual-background-effect';\r\nVirtualBackgroundEffect.BlurStrength = BlurStrength;\r\nVirtualBackgroundEffect.Quality = Quality;\r\nconst createVirtualBackgroundEffect = (options, preloadAssets) => createEffect(VirtualBackgroundEffect, options, preloadAssets);\n\nexport { BaseCameraEffect, BaseEffect, BaseMicrophoneEffect, BlurStrength, DEFAULT_FRAME_RATE, EffectEnv, EffectEvent, GainEffect, Logger, NoiseReductionEffect, NoiseReductionMode, Quality, RateEstimator, RateEstimatorEvent, RateEstimatorStatus, VirtualBackgroundEffect, VirtualBackgroundMode, createEffect, createNoiseReductionEffect, createVirtualBackgroundEffect, defaultOptions, logger };\n//# sourceMappingURL=index.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\nvar _interopRequireDefault = require(\"@babel/runtime-corejs2/helpers/interopRequireDefault\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _apply = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/reflect/apply\"));\nvar _stringify = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/json/stringify\"));\nvar _webexCore = require(\"@webex/webex-core\");\nvar _common = require(\"@webex/common\");\nvar _lodash = require(\"lodash\");\n/*!\n * Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.\n */\n\nvar debug = require('debug')('attachmentActions');\n\n/**\n * @typedef {Object} AttachmentActionObject\n * @property {string} id - (server generated) Unique identifier for the attachment action\n * @property {string} messageId - The ID of the message in which attachment action is to be performed\n * @property {string} type - The type of attachment action eg., submit\n * @property {Object} inputs - The inputs for form fields in attachment message\n * @property {string} personId - (server generated) The ID for the author of the attachment action\n * @property {string} roomId - (server generated) The ID for the room of the message\n * @property {isoDate} created - (server generated) The date and time that the message was created\n */\n\n/**\n * AttachmentActions are events that communicate information when a user clicks on an\n * Action.Submit button in a card displayed in Webex\n * Information conveyed in an AttachmentAction includes details about the user that\n * clicked the button along with any card specific inputs. See the\n * {@link https://developer.webex.com/docs/api/v1/attachment-actions|Attachments Actions API Documentation}\n * for more details\n * @class\n */\nvar AttachmentActions = _webexCore.WebexPlugin.extend({\n /**\n * Initializer used to generate AttachmentActions\n * as a plugin wrapped around the provided arguments.\n * @private\n * @see WebexPlugin.initialize\n * @param {...any} args\n * @returns {undefined}\n */\n initialize: function initialize() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n (0, _apply.default)(_webexCore.WebexPlugin.prototype.initialize, this, args);\n },\n /**\n * Register to listen for incoming attachmentAction events\n * This is an alternate approach to registering for attachmentAction webhooks.\n * The events passed to any registered handlers will be similar to the webhook JSON,\n * but will omit webhook specific fields such as name, secret, url, etc.\n * The attachmentActions.listen() event objects can also include additional fields not\n * available in the webhook's JSON payload, specifically: `inputs`.\n * To utilize the `listen()` method, the authorization token used\n * will need to have `spark:all` and `spark:kms` scopes enabled.\n * Note that by configuring your application to enable or disable `spark:all`\n * via its configuration page will also enable or disable `spark:kms`.\n * See the Sample App\n * for more details.\n * @instance\n * @memberof Messages\n * @returns {Promise}\n * @example\n * webex.attachmentActions.listen()\n * .then(() => {\n * console.log('listening to attachmentActions events');\n * webex.attachmentActions.on('created', (event) => console.log(`Got an attachmentActions:created event:\\n${event}`));\n * })\n * .catch((e) => console.error(`Unable to register for attachmentAction events: ${e}`));\n * // Some app logic...\n * // WHen it is time to cleanup\n * webex.attachmentActions.stopListening();\n * webex.attachmentActions.off('created');\n */\n listen: function listen() {\n var _this = this;\n // Create a common envelope that we will wrap all events in\n return (0, _common.createEventEnvelope)(this.webex, _common.SDK_EVENT.EXTERNAL.RESOURCE.ATTACHMENT_ACTIONS).then(function (envelope) {\n _this.eventEnvelope = envelope;\n\n // Register to listen to events\n return _this.webex.internal.mercury.connect().then(function () {\n _this.listenTo(_this.webex.internal.mercury, _common.SDK_EVENT.INTERNAL.WEBEX_ACTIVITY, function (event) {\n return _this.onWebexApiEvent(event);\n });\n });\n });\n },\n /**\n * Post a new attachment action for a message with attachment.\n * @instance\n * @memberof AttachmentActions\n * @param {AttachmentActionObject} attachmentAction\n * @returns {Promise}\n * @example\n * webex.rooms.create({title: 'Create Message with card Example'})\n * .then(function(room) {\n * return webex.messages.create({\n * text: 'Howdy!',\n * roomId: room.id,\n * attachments:[ {\n * contentType: 'application/vnd.microsoft.card.adaptive',\n * content: {\n * type: 'AdaptiveCard',\n * version: '1.0',\n * body: [\n * {\n * type: 'TextBlock',\n * text: '',\n * size: 'large'\n * },\n * {\n * type: 'TextBlock',\n * text: 'Adaptive Cards',\n * separation: 'none'\n * }\n * {\n * type: 'Input.Date',\n * id: 'dueDate'\n * }\n * ],\n * actions: [\n * {\n * type: 'Action.Submit',\n * title: 'Due Date'\n * }\n * ]\n * }\n * }]\n * });\n * })\n * .then(function(message) {\n * return webex.attachmentActions.create({\n * type: 'submit',\n * messageId: message.id,\n * inputs:{\n * dueDate: '26/06/1995'\n * }\n * })\n * .then(function(attachmentAction)){\n * var assert = require('assert');\n * assert(attachmentAction.id);\n * assert(attachmentAction.type);\n * assert(attachmentAction.personId);\n * assert(attachmentAction.inputs);\n * assert(attachmentAction.messageId);\n * assert(attachmentAction.roomId);\n * assert(attachmentAction.created);\n * return 'success';\n * }\n * });\n * // => success\n */\n create: function create(attachmentAction) {\n return this.request({\n method: 'POST',\n service: 'hydra',\n resource: 'attachment/actions',\n body: attachmentAction\n }).then(function (res) {\n return res.body;\n });\n },\n /**\n * Returns a single attachment action.\n * @instance\n * @memberof AttachmentActions\n * @param {string} attachmentAction\n * @returns {Promise}\n * @example\n * var attachmentAction;\n * webex.rooms.create({title: 'Get Message Example'})\n * .then(function(room) {\n * return webex.messages.create({\n * text: 'Howdy!',\n * roomId: room.id,\n * attachments:[ {\n * contentType: 'application/vnd.microsoft.card.adaptive',\n * content: {\n * type: 'AdaptiveCard',\n * version: '1.0',\n * body: [\n * {\n * type: 'TextBlock',\n * text: '',\n * size: 'large'\n * },\n * {\n * type: 'TextBlock',\n * text: 'Adaptive Cards',\n * separation: 'none'\n * },\n * {\n * type: 'Input.Date',\n * id: 'dueDate'\n * }\n * ],\n * actions: [\n * {\n * type: 'Action.Submit',\n * title: 'Due Date'\n * }\n * ]\n * }\n * }]\n * });\n * })\n * .then(function(message) {\n * return webex.attachmentActions.create({\n * type: 'submit',\n * messageId: message.id,\n * inputs:{\n * dueDate: '26/06/1995'\n * });\n * })\n * .then(function(attachmentAction) {\n * return webex.attachmentActions.get(attachmentAction.id)\n * })\n * .then(function(attachmentAction){\n * var assert = require('assert');\n * assert.deepEqual(attachmentAction, attachmentAction);\n * return 'success';\n * })\n * // => success\n */\n get: function get(attachmentAction) {\n var id = attachmentAction.id || attachmentAction;\n return this.request({\n service: 'hydra',\n resource: \"attachment/actions/\".concat(id)\n }).then(function (res) {\n return res.body.items || res.body;\n });\n },\n /**\n * This function is called when an internal mercury events fires,\n * if the user registered for these events with the listen() function.\n * External users of the SDK should not call this function\n * @private\n * @memberof AttachmentAction\n * @param {Object} event\n * @returns {void}\n */\n onWebexApiEvent: function onWebexApiEvent(event) {\n var activity = event.data.activity;\n\n /* eslint-disable no-case-declarations */\n switch (activity.verb) {\n case _common.SDK_EVENT.INTERNAL.ACTIVITY_VERB.CARD_ACTION:\n var createdEvent = this.getattachmentActionEvent(activity, _common.SDK_EVENT.EXTERNAL.EVENT_TYPE.CREATED);\n if (createdEvent) {\n debug(\"attachmentAction \\\"created\\\" payload: \".concat((0, _stringify.default)(createdEvent)));\n this.trigger(_common.SDK_EVENT.EXTERNAL.EVENT_TYPE.CREATED, createdEvent);\n }\n break;\n default:\n {\n break;\n }\n }\n },\n /**\n * Constructs the data object for an event on the attachmentAction resource,\n * adhering to Hydra's Webhook data structure messages.\n * External users of the SDK should not call this function\n * @private\n * @memberof AttachmentAction\n * @param {Object} activity from mercury\n * @param {Object} event type of \"webhook\" event\n * @returns {Object} constructed event\n */\n getattachmentActionEvent: function getattachmentActionEvent(activity, event) {\n try {\n var sdkEvent = (0, _lodash.cloneDeep)(this.eventEnvelope);\n var cluster = (0, _common.getHydraClusterString)(this.webex, activity.target.url);\n sdkEvent.event = event;\n sdkEvent.data.created = activity.published;\n sdkEvent.actorId = (0, _common.constructHydraId)(_common.hydraTypes.PEOPLE, activity.actor.entryUUID, cluster);\n sdkEvent.data.roomId = (0, _common.constructHydraId)(_common.hydraTypes.ROOM, activity.target.id, cluster);\n sdkEvent.data.messageId = (0, _common.constructHydraId)(_common.hydraTypes.MESSAGE, activity.parent.id, cluster);\n sdkEvent.data.personId = (0, _common.constructHydraId)(_common.hydraTypes.PEOPLE, activity.actor.entryUUID, cluster);\n // Seems like it would be nice to have this, but its not in the hydra webhook\n // sdkEvent.data.personEmail =\n // activity.actor.emailAddress || activity.actor.entryEmail;\n\n sdkEvent.data.id = (0, _common.constructHydraId)(_common.hydraTypes.ATTACHMENT_ACTION, activity.id, cluster);\n if (activity.object.inputs) {\n sdkEvent.data.inputs = activity.object.inputs;\n }\n sdkEvent.data.type = activity.object.objectType;\n return sdkEvent;\n } catch (e) {\n this.webex.logger.error(\"Unable to generate SDK event from mercury 'socket activity for attachmentAction:\".concat(event, \" event: \").concat(e.message));\n return null;\n }\n },\n version: \"3.7.0-web-workers-keepalive.1\"\n});\nvar _default = exports.default = AttachmentActions;\n//# sourceMappingURL=attachmentActions.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\nvar _interopRequireDefault = require(\"@babel/runtime-corejs2/helpers/interopRequireDefault\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nrequire(\"@webex/internal-plugin-conversation\");\nrequire(\"@webex/internal-plugin-mercury\");\nvar _webexCore = require(\"@webex/webex-core\");\nvar _attachmentActions = _interopRequireDefault(require(\"./attachmentActions\"));\n/*!\n * Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.\n */\n\n// decrypt mercury activities\n\n(0, _webexCore.registerPlugin)('attachmentActions', _attachmentActions.default);\nvar _default = exports.default = _attachmentActions.default;\n//# sourceMappingURL=index.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\nvar _interopRequireDefault = require(\"@babel/runtime-corejs2/helpers/interopRequireDefault\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _regenerator = _interopRequireDefault(require(\"@babel/runtime-corejs2/regenerator\"));\nvar _asyncToGenerator2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/asyncToGenerator\"));\nvar _applyDecoratedDescriptor2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/applyDecoratedDescriptor\"));\nvar _stringify = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/json/stringify\"));\nvar _apply = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/reflect/apply\"));\nvar _assign = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/object/assign\"));\nvar _promise = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/promise\"));\nvar _deleteProperty = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/reflect/delete-property\"));\nvar _parseInt2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/parse-int\"));\nvar _getOwnPropertyDescriptor = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/object/get-own-property-descriptor\"));\nvar _querystring = _interopRequireDefault(require(\"querystring\"));\nvar _url = _interopRequireDefault(require(\"url\"));\nvar _common = require(\"@webex/common\");\nvar _webexCore = require(\"@webex/webex-core\");\nvar _lodash = require(\"lodash\");\nvar _uuid = _interopRequireDefault(require(\"uuid\"));\nvar _dec, _dec2, _obj;\n/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n/* eslint camelcase: [0] */\nvar jwt = require('jsonwebtoken');\nvar OAUTH2_CSRF_TOKEN = 'oauth2-csrf-token';\nvar EMPTY_OBJECT_STRING = _common.base64.encode((0, _stringify.default)({}));\n\n/**\n * Browser support for OAuth2. Automatically parses the URL hash for an access\n * token\n * @class\n * @name AuthorizationBrowser\n */\nvar Authorization = _webexCore.WebexPlugin.extend((_dec = (0, _common.whileInFlight)('isAuthorizing'), _dec2 = (0, _common.whileInFlight)('isAuthorizing'), (_obj = {\n derived: {\n /**\n * Alias of {@link AuthorizationBrowser#isAuthorizing}\n * @instance\n * @memberof AuthorizationBrowser\n * @type {boolean}\n */\n isAuthenticating: {\n deps: ['isAuthorizing'],\n fn: function fn() {\n return this.isAuthorizing;\n }\n }\n },\n session: {\n /**\n * Indicates if an Authorization Code exchange is inflight\n * @instance\n * @memberof AuthorizationBrowser\n * @type {boolean}\n */\n isAuthorizing: {\n default: false,\n type: 'boolean'\n },\n ready: {\n default: false,\n type: 'boolean'\n }\n },\n namespace: 'Credentials',\n /**\n * Initializer\n * @instance\n * @memberof AuthorizationBrowser\n * @param {Object} attrs {@link AmpersandState}\n * @param {boolean} attrs.parse Controls whether or not the the url should get\n * parsed for an access token\n * @private\n * @returns {Authorization}\n */\n // eslint-disable-next-line complexity\n initialize: function initialize(attrs, options) {\n var _this = this;\n var ret = (0, _apply.default)(_webexCore.WebexPlugin.prototype.initialize, this, [attrs, options]);\n\n // Reminder, we can't do parse based on config, because config is not\n // available until nextTick and we want to be able to throw errors found in\n // the url.\n if (attrs.parse === false) {\n this.ready = true;\n return ret;\n }\n var location = _url.default.parse(this.webex.getWindow().location.href, true);\n this._checkForErrors(location);\n var hash = location.hash;\n if (!hash) {\n this.ready = true;\n return ret;\n }\n if (hash.includes('#')) {\n hash = hash.substr(1);\n }\n location.hash = _querystring.default.parse(hash);\n if (location.hash.state) {\n location.hash.state = JSON.parse(_common.base64.decode(location.hash.state));\n }\n var tokenData = this._parseHash(location);\n if (!tokenData) {\n return ret;\n }\n this._cleanUrl(location);\n\n // Wait until nextTick in case `credentials` hasn't initialized yet\n process.nextTick(function () {\n _this.webex.credentials.set({\n supertoken: tokenData\n });\n _this.ready = true;\n });\n return ret;\n },\n /**\n * Kicks off an oauth flow\n * @instance\n * @memberof AuthorizationBrowser\n * @param {Object} options\n * @returns {Promise}\n */\n initiateLogin: function initiateLogin() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n options.state = options.state || {};\n options.state.csrf_token = this._generateSecurityToken();\n\n // If we're not explicitly a confidential client, assume we're a public\n // client\n if (this.config.clientType === 'confidential') {\n return this.initiateAuthorizationCodeGrant(options);\n }\n return this.initiateImplicitGrant(options);\n },\n /**\n * Kicks off the Authorization Code grant flow. Typically called via\n * {@link AuthorizationBrowser#initiateLogin}\n * @instance\n * @memberof AuthorizationBrowser\n * @param {Object} options\n * @returns {Promise}\n */\n initiateImplicitGrant: function initiateImplicitGrant(options) {\n this.logger.info('authorization: initiating implicit grant flow');\n this.webex.getWindow().location = this.webex.credentials.buildLoginUrl((0, _assign.default)({\n response_type: 'token'\n }, options));\n return _promise.default.resolve();\n },\n /**\n * Kicks off the Implicit Code grant flow. Typically called via\n * {@link AuthorizationBrowser#initiateLogin}\n * @instance\n * @memberof AuthorizationBrowser\n * @param {Object} options\n * @returns {Promise}\n */\n initiateAuthorizationCodeGrant: function initiateAuthorizationCodeGrant(options) {\n this.logger.info('authorization: initiating authorization code grant flow');\n this.webex.getWindow().location = this.webex.credentials.buildLoginUrl((0, _assign.default)({\n response_type: 'code'\n }, options));\n return _promise.default.resolve();\n },\n /**\n * Requests a Webex access token for a user already authenticated into\n * your product.\n *\n * Note: You'll need to supply a jwtRefreshCallback of the form\n * `Promise = jwtRefreshCallback(webex)` for automatic token refresh to\n * work.\n *\n * @instance\n * @memberof AuthorizationBrowser\n * @param {Object} options\n * @param {Object} options.jwt This is a jwt generated by your backend that\n * identifies a user in your system\n * @returns {Promise}\n */\n requestAccessTokenFromJwt: function requestAccessTokenFromJwt(_ref) {\n var _this2 = this;\n var jwt = _ref.jwt;\n var hydraUri = this.webex.internal.services.get('hydra', true);\n if (hydraUri && hydraUri.slice(-1) !== '/') {\n // add a `/` to hydra's uri from the services catalog so that\n // it matches the current env service format.\n hydraUri += '/';\n }\n hydraUri = hydraUri || process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1/';\n return this.webex.request({\n method: 'POST',\n uri: \"\".concat(hydraUri, \"jwt/login\"),\n headers: {\n authorization: jwt\n }\n }).then(function (_ref2) {\n var body = _ref2.body;\n return {\n access_token: body.token,\n token_type: 'Bearer',\n expires_in: body.expiresIn\n };\n }).then(function (token) {\n _this2.webex.credentials.set({\n supertoken: token\n });\n }).then(function () {\n return _this2.webex.internal.services.initServiceCatalogs();\n });\n },\n /**\n * Called by {@link WebexCore#logout()}. Redirects to the logout page\n * @instance\n * @memberof AuthorizationBrowser\n * @param {Object} options\n * @param {boolean} options.noRedirect if true, does not redirect\n * @returns {Promise}\n */\n logout: function logout() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (!options.noRedirect) {\n this.webex.getWindow().location = this.webex.credentials.buildLogoutUrl(options);\n }\n },\n /**\n * Creates a jwt user token\n * @param {object} options\n * @param {String} options.issuer Guest Issuer ID\n * @param {String} options.secretId Guest Secret ID\n * @param {String} options.displayName Guest Display Name | optional\n * @param {String} options.expiresIn\n * @returns {Promise}\n */\n createJwt: function createJwt(_ref3) {\n return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n var issuer, secretId, displayName, expiresIn, secret, payload, alg, jwtToken;\n return _regenerator.default.wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n issuer = _ref3.issuer, secretId = _ref3.secretId, displayName = _ref3.displayName, expiresIn = _ref3.expiresIn;\n secret = Buffer.from(secretId, 'base64');\n payload = {\n \"sub\": \"guest-user-\".concat((0, _uuid.default)()),\n \"iss\": issuer,\n \"name\": displayName || \"Guest User - \".concat((0, _uuid.default)())\n };\n alg = 'HS256';\n _context.prev = 4;\n jwtToken = jwt.sign(payload, secret, {\n expiresIn: expiresIn\n });\n return _context.abrupt(\"return\", _promise.default.resolve({\n jwt: jwtToken\n }));\n case 9:\n _context.prev = 9;\n _context.t0 = _context[\"catch\"](4);\n return _context.abrupt(\"return\", _promise.default.reject(_context.t0));\n case 12:\n case \"end\":\n return _context.stop();\n }\n }, _callee, null, [[4, 9]]);\n }))();\n },\n /**\n * Checks if the result of the login redirect contains an error string\n * @instance\n * @memberof AuthorizationBrowser\n * @param {Object} location\n * @private\n * @returns {Promise}\n */\n _checkForErrors: function _checkForErrors(location) {\n var query = location.query;\n if (query && query.error) {\n var ErrorConstructor = _webexCore.grantErrors.select(query.error);\n throw new ErrorConstructor(query);\n }\n },\n /**\n * Removes no-longer needed values from the url (access token, csrf token, etc)\n * @instance\n * @memberof AuthorizationBrowser\n * @param {Object} location\n * @private\n * @returns {Promise}\n */\n _cleanUrl: function _cleanUrl(location) {\n location = (0, _lodash.cloneDeep)(location);\n if (this.webex.getWindow().history && this.webex.getWindow().history.replaceState) {\n ['access_token', 'token_type', 'expires_in', 'refresh_token', 'refresh_token_expires_in'].forEach(function (key) {\n return (0, _deleteProperty.default)(location.hash, key);\n });\n if (!(0, _lodash.isEmpty)(location.hash.state)) {\n location.hash.state = _common.base64.encode((0, _stringify.default)((0, _lodash.omit)(location.hash.state, 'csrf_token')));\n if (location.hash.state === EMPTY_OBJECT_STRING) {\n (0, _deleteProperty.default)(location.hash, 'state');\n }\n } else {\n (0, _deleteProperty.default)(location.hash, 'state');\n }\n location.hash = _querystring.default.stringify(location.hash);\n this.webex.getWindow().history.replaceState({}, null, _url.default.format(location));\n }\n },\n /**\n * Generates a CSRF token and sticks in in sessionStorage\n * @instance\n * @memberof AuthorizationBrowser\n * @private\n * @returns {Promise}\n */\n _generateSecurityToken: function _generateSecurityToken() {\n this.logger.info('authorization: generating csrf token');\n var token = _uuid.default.v4();\n this.webex.getWindow().sessionStorage.setItem('oauth2-csrf-token', token);\n return token;\n },\n /**\n * Parses the url hash into an access token object\n * @instance\n * @memberof AuthorizationBrowser\n * @param {Object} location\n * @private\n * @returns {Object}\n */\n _parseHash: function _parseHash(location) {\n var hash = (0, _lodash.cloneDeep)(location.hash);\n if (hash) {\n this._verifySecurityToken(hash);\n }\n if (!hash.access_token) {\n this.ready = true;\n return undefined;\n }\n if (hash.expires_in) {\n hash.expires_in = (0, _parseInt2.default)(hash.expires_in, 10);\n }\n if (hash.refresh_token_expires_in) {\n hash.refresh_token_expires_in = (0, _parseInt2.default)(hash.refresh_token_expires_in, 10);\n }\n return hash;\n },\n /**\n * Checks if the CSRF token in sessionStorage is the same as the one returned\n * in the url.\n * @instance\n * @memberof AuthorizationBrowser\n * @param {Object} hash\n * @private\n * @returns {Promise}\n */\n _verifySecurityToken: function _verifySecurityToken(hash) {\n var sessionToken = this.webex.getWindow().sessionStorage.getItem(OAUTH2_CSRF_TOKEN);\n this.webex.getWindow().sessionStorage.removeItem(OAUTH2_CSRF_TOKEN);\n if (!sessionToken) {\n return;\n }\n if (!hash.state) {\n throw new Error(\"Expected CSRF token \".concat(sessionToken, \", but not found in redirect hash\"));\n }\n if (!hash.state.csrf_token) {\n throw new Error(\"Expected CSRF token \".concat(sessionToken, \", but not found in redirect hash\"));\n }\n var token = hash.state.csrf_token;\n if (token !== sessionToken) {\n throw new Error(\"CSRF token \".concat(token, \" does not match stored token \").concat(sessionToken));\n }\n },\n version: \"3.7.0-web-workers-keepalive.1\"\n}, ((0, _applyDecoratedDescriptor2.default)(_obj, \"initiateImplicitGrant\", [_dec], (0, _getOwnPropertyDescriptor.default)(_obj, \"initiateImplicitGrant\"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, \"initiateAuthorizationCodeGrant\", [_dec2], (0, _getOwnPropertyDescriptor.default)(_obj, \"initiateAuthorizationCodeGrant\"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, \"requestAccessTokenFromJwt\", [_common.oneFlight], (0, _getOwnPropertyDescriptor.default)(_obj, \"requestAccessTokenFromJwt\"), _obj)), _obj)));\nvar _default = exports.default = Authorization;\n//# sourceMappingURL=authorization.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\nvar _default = exports.default = {\n credentials: {\n /**\n * Controls whether {@link Authorization#initiateLogin()} requests a token\n * or an auth code. Anything other than 'confidential' will be treated as\n * 'public'\n * @private\n * @type {string}\n */\n clientType: 'public'\n }\n};\n//# sourceMappingURL=config.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\nvar _interopRequireDefault = require(\"@babel/runtime-corejs2/helpers/interopRequireDefault\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\n_Object$defineProperty(exports, \"config\", {\n enumerable: true,\n get: function get() {\n return _config.default;\n }\n});\n_Object$defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _authorization.default;\n }\n});\nrequire(\"@webex/internal-plugin-device\");\nvar _webexCore = require(\"@webex/webex-core\");\nvar _authorization = _interopRequireDefault(require(\"./authorization\"));\nvar _config = _interopRequireDefault(require(\"./config\"));\n/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nvar proxies = ['isAuthorizing', 'isAuthenticating'];\n(0, _webexCore.registerPlugin)('authorization', _authorization.default, {\n config: _config.default,\n proxies: proxies\n});\n//# sourceMappingURL=index.js.map\n","var v1 = require('./v1');\nvar v4 = require('./v4');\n\nvar uuid = v4;\nuuid.v1 = v1;\nuuid.v4 = v4;\n\nmodule.exports = uuid;\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n","// Unique ID creation requires a high quality random # generator. In the\n// browser this is a little complicated due to unknown quality of Math.random()\n// and inconsistent support for the `crypto` API. We do the best we can via\n// feature-detection\n\n// getRandomValues needs to be invoked in a context where \"this\" is a Crypto\n// implementation. Also, find the complete implementation of crypto on IE11.\nvar getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||\n (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));\n\nif (getRandomValues) {\n // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto\n var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef\n\n module.exports = function whatwgRNG() {\n getRandomValues(rnds8);\n return rnds8;\n };\n} else {\n // Math.random()-based (RNG)\n //\n // If all else fails, use Math.random(). It's fast, but is of unspecified\n // quality.\n var rnds = new Array(16);\n\n module.exports = function mathRNG() {\n for (var i = 0, r; i < 16; i++) {\n if ((i & 0x03) === 0) r = Math.random() * 0x100000000;\n rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;\n }\n\n return rnds;\n };\n}\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\n// **`v1()` - Generate time-based UUID**\n//\n// Inspired by https://github.com/LiosK/UUID.js\n// and http://docs.python.org/library/uuid.html\n\nvar _nodeId;\nvar _clockseq;\n\n// Previous uuid creation time\nvar _lastMSecs = 0;\nvar _lastNSecs = 0;\n\n// See https://github.com/uuidjs/uuid for API details\nfunction v1(options, buf, offset) {\n var i = buf && offset || 0;\n var b = buf || [];\n\n options = options || {};\n var node = options.node || _nodeId;\n var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;\n\n // node and clockseq need to be initialized to random values if they're not\n // specified. We do this lazily to minimize issues related to insufficient\n // system entropy. See #189\n if (node == null || clockseq == null) {\n var seedBytes = rng();\n if (node == null) {\n // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\n node = _nodeId = [\n seedBytes[0] | 0x01,\n seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]\n ];\n }\n if (clockseq == null) {\n // Per 4.2.2, randomize (14 bit) clockseq\n clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;\n }\n }\n\n // UUID timestamps are 100 nano-second units since the Gregorian epoch,\n // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so\n // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\n // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\n var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();\n\n // Per 4.2.1.2, use count of uuid's generated during the current clock\n // cycle to simulate higher resolution clock\n var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;\n\n // Time since last uuid creation (in msecs)\n var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;\n\n // Per 4.2.1.2, Bump clockseq on clock regression\n if (dt < 0 && options.clockseq === undefined) {\n clockseq = clockseq + 1 & 0x3fff;\n }\n\n // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\n // time interval\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {\n nsecs = 0;\n }\n\n // Per 4.2.1.2 Throw error if too many uuids are requested\n if (nsecs >= 10000) {\n throw new Error('uuid.v1(): Can\\'t create more than 10M uuids/sec');\n }\n\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq;\n\n // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\n msecs += 12219292800000;\n\n // `time_low`\n var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\n b[i++] = tl >>> 24 & 0xff;\n b[i++] = tl >>> 16 & 0xff;\n b[i++] = tl >>> 8 & 0xff;\n b[i++] = tl & 0xff;\n\n // `time_mid`\n var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;\n b[i++] = tmh >>> 8 & 0xff;\n b[i++] = tmh & 0xff;\n\n // `time_high_and_version`\n b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\n b[i++] = tmh >>> 16 & 0xff;\n\n // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\n b[i++] = clockseq >>> 8 | 0x80;\n\n // `clock_seq_low`\n b[i++] = clockseq & 0xff;\n\n // `node`\n for (var n = 0; n < 6; ++n) {\n b[i + n] = node[n];\n }\n\n return buf ? buf : bytesToUuid(b);\n}\n\nmodule.exports = v1;\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n","\"use strict\";\n\nvar _typeof = require(\"@babel/runtime-corejs2/helpers/typeof\");\nvar _WeakMap = require(\"@babel/runtime-corejs2/core-js/weak-map\");\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\nvar _Object$getOwnPropertyDescriptor = require(\"@babel/runtime-corejs2/core-js/object/get-own-property-descriptor\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\n_Object$defineProperty(exports, \"config\", {\n enumerable: true,\n get: function get() {\n return _pluginAuthorizationBrowser.config;\n }\n});\n_Object$defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _pluginAuthorizationBrowser.default;\n }\n});\nvar _pluginAuthorizationBrowser = _interopRequireWildcard(require(\"@webex/plugin-authorization-browser\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n//# sourceMappingURL=index.browser.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\nvar _interopRequireDefault = require(\"@babel/runtime-corejs2/helpers/interopRequireDefault\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _values = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/object/values\"));\nvar _lodash = require(\"lodash\");\nvar DeviceCollection = {\n devices: {},\n get: function get(deviceId) {\n return this.devices[deviceId];\n },\n set: function set(device) {\n var deviceId = device.id || device.identity && device.identity.id;\n // check if the device is already existing, if so then merge else add\n var existingDevice = this.devices[deviceId];\n if (existingDevice) {\n // already existing, merge for any new binding information\n (0, _lodash.merge)(existingDevice, device);\n } else {\n this.devices[deviceId] = device;\n }\n },\n reset: function reset() {\n this.devices = {};\n },\n getAll: function getAll() {\n return (0, _values.default)(this.devices);\n }\n};\nvar _default = exports.default = DeviceCollection;\n//# sourceMappingURL=collection.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _default = exports.default = {};\n//# sourceMappingURL=config.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.UC_CLOUD = exports.LYRA_SPACE = exports.DEFAULT_PRODUCT_NAME = void 0;\nvar LYRA_SPACE = exports.LYRA_SPACE = 'LYRA_SPACE';\nvar UC_CLOUD = exports.UC_CLOUD = 'uc-cloud';\nvar DEFAULT_PRODUCT_NAME = exports.DEFAULT_PRODUCT_NAME = 'default';\n//# sourceMappingURL=constants.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\nvar _interopRequireDefault = require(\"@babel/runtime-corejs2/helpers/interopRequireDefault\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _promise = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/promise\"));\nvar _lodash = require(\"lodash\");\nrequire(\"@webex/internal-plugin-lyra\");\nrequire(\"@webex/internal-plugin-search\");\nvar _webexCore = require(\"@webex/webex-core\");\nvar _uuid = _interopRequireDefault(require(\"uuid\"));\nvar _constants = require(\"./constants\");\nvar _collection = _interopRequireDefault(require(\"./collection\"));\n/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nvar DeviceManager = _webexCore.WebexPlugin.extend({\n namespace: 'DeviceManager',\n _devicePendingPinChallenge: null,\n _pairedDevice: null,\n _boundSpace: null,\n initialize: function initialize() {\n var _this = this;\n // Lyra mercury events listener\n this.webex.internal.mercury.on('event:lyra.space_updated', function (_ref) {\n var data = _ref.data;\n _this._receiveDeviceUpdates(data);\n });\n },\n /**\n * Gets a list of all recent devices associated with the user\n * the device list gets populated from Redis\n * @returns {Promise}\n */\n getAll: function getAll() {\n return _collection.default.getAll();\n },\n /**\n * Gets a list of all recent devices associated with the user\n * the device list gets populated from Redis\n * @returns {Promise}\n */\n refresh: function refresh() {\n var _this2 = this;\n _collection.default.reset();\n return this.webex.request({\n api: 'wdm',\n resource: 'devices/auxiliary'\n }).then(function (res) {\n if (!res.body) {\n return _promise.default.reject();\n }\n return _this2._updateDeviceMetadata(res.body.items).then(function (devices) {\n /* eslint-disable consistent-return */\n devices.forEach(function (device) {\n if (device.deviceInfo && device.deviceInfo.machineType === _constants.LYRA_SPACE) {\n return _this2.webex.internal.lyra.space.get(device.deviceInfo).catch(function (err) {\n _this2.logger.error('DeviceManager#refresh: failed to receive device info', err);\n });\n }\n });\n /* eslint-enable consistent-return */\n res.body.items.forEach(function (device) {\n _collection.default.set(device);\n });\n return _this2.getAll();\n });\n }).catch(function (err) {\n _this2.logger.error('DeviceManager#refresh: failed to fetch recent devices', err);\n });\n },\n /**\n * Search for a device by name\n * @param {Object} options\n * @param {string} options.searchQuery\n * @returns {Promise}\n */\n search: function search(options) {\n var _this3 = this;\n if (!options || !options.searchQuery) {\n this.logger.error('DeviceManager#search: options.searchQuery is required');\n return _promise.default.reject(new Error('DeviceManager#search: options.searchQuery is required'));\n }\n return this.webex.internal.search.people({\n searchId: _uuid.default.v4(),\n searchType: 'DEVICE_SEARCH',\n searchEntity: 'device',\n includePeople: false,\n includeRooms: true,\n queryString: options.searchQuery\n }).catch(function (err) {\n _this3.logger.error('DeviceManager#search: failed to search a device', err);\n throw err;\n });\n },\n /**\n * Caches the device info and also registers to Redis for subsequent fetches\n * @param {Object} device\n * @param {string} device.id\n * @returns {deviceInfo}\n */\n upsert: function upsert(device) {\n var _this4 = this;\n var deviceId = device.id || device.identity && device.identity.id;\n if (!deviceId) {\n this.logger.error('DeviceManager#upsert: device.id is required');\n return _promise.default.reject(new Error('DeviceManager#upsert: device.id is required'));\n }\n this._pairedDevice = this._devicePendingPinChallenge;\n this._devicePendingPinChallenge = null;\n // check if the device is already existing, if so then merge else add\n var existingDevice = _collection.default.get(deviceId);\n if (existingDevice) {\n _collection.default.set(device);\n return _promise.default.resolve(_collection.default.get(deviceId));\n }\n\n // new device requested, add to wdm for subsequent retreivals\n return this.webex.request({\n api: 'wdm',\n method: 'PUT',\n resource: \"devices/auxiliary/Room/\".concat(deviceId)\n }).then(function (res) {\n var auxDevice = res.body;\n return _this4._decryptDeviceName(auxDevice);\n })\n // eslint-disable-next-line no-shadow\n .then(function (device) {\n _collection.default.set(device);\n return _promise.default.resolve(_collection.default.get(deviceId));\n }).catch(function (err) {\n _this4.logger.error('DeviceManager#upsert: failed to add/update a device', err);\n return _promise.default.reject(err);\n });\n },\n /**\n * Retreives device info of a particular device\n * @param {string} token\n * @returns {Promise}\n */\n get: function get(token) {\n var _this5 = this;\n if (!token) {\n this.logger.error('DeviceManager#get: token is required');\n return _promise.default.reject(new Error('DeviceManager#get: token is required'));\n }\n var deviceInfo;\n return this.webex.internal.lyra.getAdvertisedEndpoint(token).then(function (res) {\n deviceInfo = res;\n return _this5.webex.internal.lyra.space.get({\n id: res.advertiser.id\n });\n }).then(function (result) {\n // the deviceInfo doesn't have proper displayName, hence update\n // displayName on deviceInfo for search to work\n if (result && result.identity && result.identity.displayName) {\n deviceInfo.advertiser.displayName = result.identity.displayName;\n }\n return deviceInfo;\n }).catch(function (err) {\n _this5.logger.error('DeviceManager#get: failed to get device info', err);\n return _promise.default.reject(err);\n });\n },\n /**\n * Unregisters the device from Redis, will not fetch in subsequent loads,\n * similar to space.deleteBinding()\n * @param {string} deviceId\n * @returns {Promise}\n */\n remove: function remove(deviceId) {\n var _this6 = this;\n if (!deviceId) {\n this.logger.error('DeviceManager#remove: deviceId is required');\n return _promise.default.reject(new Error('DeviceManager#remove: deviceId is required'));\n }\n return this.webex.request({\n method: 'delete',\n api: 'wdm',\n resource: \"devices/auxiliary/\".concat(deviceId)\n }).catch(function (error) {\n _this6.logger.error('DeviceManager#remove: failed to remove the device', error);\n return _promise.default.reject(error);\n });\n },\n /**\n * Requests to display PIN on the device\n * @param {object} device\n * @param {object} options\n * @param {object} options.data\n * @returns {Promise}\n */\n requestPin: function requestPin(device) {\n var _this7 = this;\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var deviceId = device.id || device.identity && device.identity.id;\n if (!deviceId) {\n this.logger.error('DeviceManager#requestPin: device.id is required');\n return _promise.default.reject(new Error('DeviceManager#requestPin: device.id is required'));\n }\n var space = {\n id: deviceId,\n url: \"/spaces/\".concat(deviceId)\n };\n return this.webex.internal.lyra.space.get(space).then(function (dev) {\n // check if the space is pinChallenge capable\n if (dev && dev.occupants && dev.occupants.pinChallenge) {\n _this7.logger.info('DeviceManager#requestPin: space is PIN challenge capable');\n return _this7.webex.internal.lyra.space.join(space, {\n passType: 'MANUAL',\n verificationInitiation: 'PIN',\n data: options.data\n }).then(function () {\n _this7._devicePendingPinChallenge = dev;\n\n // return the actual device so that it can be upserted on successful\n // PIN exchange\n return dev;\n });\n }\n // pairs with the space if it's not PIN challenge capable\n _this7.logger.info('DeviceManager#requestPin: space is not PIN challenge capable, probably already occupied, will still return device info');\n return _this7.webex.internal.lyra.space.get(space).then(function () {\n return _promise.default.resolve(dev);\n });\n }).catch(function (err) {\n _this7.logger.error('DeviceManager#requestPin: device failed PIN challenge request', err);\n return _promise.default.reject(err);\n });\n },\n /**\n * pairs the device with the user (manual pairing), also adds it to\n * user's recents list for subsequent fetches.\n * similar to space.join()\n * @param {object} options\n * @param {number} options.pin\n * @returns {Promise}\n */\n pair: function pair() {\n var _this8 = this;\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (!options.pin) {\n this.logger.error('DeviceManager#pair: options.pin is required');\n return _promise.default.reject(new Error('DeviceManager#pair: options.pin is required'));\n }\n if (this._devicePendingPinChallenge) {\n var space = {\n id: this._devicePendingPinChallenge.identity.id,\n url: \"/spaces/\".concat(this._devicePendingPinChallenge.identity.id)\n };\n return this.webex.internal.lyra.space.join(space, {\n passType: 'PIN_ANSWER',\n data: options.pin\n }).catch(function (err) {\n _this8.logger.error('DeviceManager#pair: incorrect PIN, unable to pair ', err);\n return _promise.default.reject(err);\n }).then(function () {\n return _this8.upsert(_this8._devicePendingPinChallenge);\n });\n }\n this.logger.error('DeviceManager#pair: no device to pair');\n return _promise.default.reject(new Error('DeviceManager#pair: no device to pair'));\n },\n /**\n * unpairs the device with the user (manual/ultrasonic pairing), but still\n * keeps in the recents list/does not remove from Redis\n * options.removeAllDevices will remove all associated devices to user\n * similar to space.leave()\n * @param {object} options\n * @param {boolean} options.removeAllDevices\n * @returns {Promise}\n */\n unpair: function unpair() {\n var _this9 = this;\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (!this._pairedDevice) {\n this.logger.error('DeviceManager#unpair: no device to unpair');\n return _promise.default.reject(new Error('DeviceManager#unpair: no device to unpair'));\n }\n var space = {\n url: \"/spaces/\".concat(this._pairedDevice.identity.id)\n };\n return this.webex.internal.lyra.space.leave(space, options).catch(function (err) {\n _this9.logger.error('DeviceManager#unpair: failed to remove device from Lyra', err);\n return _promise.default.reject(err);\n });\n },\n /**\n * binds the space to the paired device (if supported)\n * similar to space.bindConversation()\n * @param {object} options\n * @param {boolean} options.url, conversation url\n * @param {boolean} options.kmsResourceObjectUrl of the convo\n * @returns {Promise}\n */\n bindSpace: function bindSpace() {\n var _this10 = this;\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (!options.url) {\n this.logger.error('DeviceManager#pair: options.url is required');\n return _promise.default.reject(new Error('DeviceManager#bindSpace: options.url is required'));\n }\n if (!options.kmsResourceObjectUrl) {\n this.logger.error('DeviceManager#bindSpace: options.kmsResourceObjectUrl is required');\n return _promise.default.reject(new Error('DeviceManager#bindSpace: options.kmsResourceObjectUrl is required'));\n }\n if (!this._pairedDevice) {\n this.logger.error('DeviceManager#bindSpace: No device paired currently');\n return _promise.default.reject(new Error('DeviceManager#bindSpace: No device paired currently'));\n }\n var space = {\n url: \"/spaces/\".concat(this._pairedDevice.identity.id),\n id: this._pairedDevice.identity.id\n };\n this._boundSpace = {\n kmsResourceObjectUrl: options.kmsResourceObjectUrl,\n url: options.url\n };\n return this.webex.internal.lyra.space.bindConversation(space, this._boundSpace).catch(function (err) {\n _this10.logger.error('DeviceManager#bindSpace: failed to bind device to Space');\n return _promise.default.reject(err);\n });\n },\n /**\n * unbinds the space to the paired device (if supported)\n * similar to space.unbindConversation()\n * @returns {Promise}\n */\n unbindSpace: function unbindSpace() {\n var _this11 = this;\n if (!this._pairedDevice || !this._boundSpace) {\n this.logger.error('DeviceManager#unbindSpace: No space currently bound to the device');\n return _promise.default.reject(new Error('DeviceManager#unbindSpace: No space currently bound to the device'));\n }\n var space = {\n url: \"/spaces/\".concat(this._pairedDevice.identity.id),\n id: this._pairedDevice.identity.id\n };\n return this.webex.internal.lyra.space.unbindConversation(space, this._boundSpace).then(function (res) {\n _this11._boundSpace = null;\n return _promise.default.resolve(res);\n }).catch(function (err) {\n _this11.logger.error('DeviceManager#unbindSpace: failed to unbind Space to device');\n return _promise.default.reject(err);\n });\n },\n /**\n * Gets the audio state of the paired device\n * similar to device.getAudioState()\n * @returns {Promise}\n */\n getAudioState: function getAudioState() {\n if (!this._pairedDevice) {\n this.logger.error('DeviceManager#getAudioState: Currently no device is paired');\n return _promise.default.reject(new Error('DeviceManager#getAudioState: Currently no device is paired'));\n }\n return this.webex.internal.lyra.device.getAudioState(this._pairedDevice);\n },\n /**\n * Updates audio state of the paired device, should be called every 10 minutes\n * or when mic or volume state is changed\n * similar to device.putAudioState()\n * @param {object} space\n * @param {object} audioState\n * @returns {Promise}\n */\n putAudioState: function putAudioState(space) {\n var audioState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return this.webex.internal.lyra.device.putAudioState(space, audioState);\n },\n /**\n * Mutes paired device\n * similar to device.mute()\n * @returns {Promise}\n */\n mute: function mute() {\n if (!this._pairedDevice) {\n this.logger.error('DeviceManager#mute: Currently no device is paired');\n return _promise.default.reject(new Error('DeviceManager#mute: Currently no device is paired'));\n }\n return this.webex.internal.lyra.device.mute(this._pairedDevice);\n },\n /**\n * Unmutes paired device\n * similar to device.unmute()\n * @returns {Promise}\n */\n unmute: function unmute() {\n if (!this._pairedDevice) {\n this.logger.error('DeviceManager#unmute: Currently no device is paired');\n return _promise.default.reject(new Error('DeviceManager#unmute: Currently no device is paired'));\n }\n return this.webex.internal.lyra.device.unmute(this._pairedDevice);\n },\n /**\n * Increases paired device's volume\n * similar to device.increaseVolume()\n * @returns {Promise}\n */\n increaseVolume: function increaseVolume() {\n if (!this._pairedDevice) {\n this.logger.error('DeviceManager#increaseVolume: Currently no device is paired');\n return _promise.default.reject(new Error('DeviceManager#increaseVolume: Currently no device is paired'));\n }\n return this.webex.internal.lyra.device.increaseVolume(this._pairedDevice);\n },\n /**\n * Decreases paired device's volume\n * similar to device.decreaseVolume()\n * @returns {Promise}\n */\n decreaseVolume: function decreaseVolume() {\n if (!this._pairedDevice) {\n this.logger.error('DeviceManager#decreaseVolume: Currently no device is paired');\n return _promise.default.reject(new Error('DeviceManager#decreaseVolume: Currently no device is paired'));\n }\n return this.webex.internal.lyra.device.decreaseVolume(this._pairedDevice);\n },\n /**\n * Sets paired device's volume but should use increase and decrease api instead\n * similar to device.setVolume()\n * @param {number} level\n * @returns {Promise}\n */\n setVolume: function setVolume() {\n var level = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n if (!this._pairedDevice) {\n this.logger.error('DeviceManager#setVolume: Currently no device is paired');\n return _promise.default.reject(new Error('DeviceManager#setVolume: Currently no device is paired'));\n }\n return this.webex.internal.lyra.device.setVolume(this._pairedDevice, level);\n },\n /**\n * Utility function to update decrypted device name on device object\n * @param {Array} deviceArray\n * @returns {device}\n */\n _updateDeviceMetadata: function _updateDeviceMetadata() {\n var _this12 = this;\n var deviceArray = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n if (!deviceArray.length) {\n return _promise.default.resolve(deviceArray);\n }\n var devices = (0, _lodash.cloneDeep)(deviceArray);\n return _promise.default.all(devices.map(function (device, index) {\n return _this12.webex.internal.services.waitForCatalog('postauth').then(function () {\n if (device.deviceClass === _constants.UC_CLOUD) {\n device.id = \"\".concat(_this12.webex.internal.services.get('wdm'), \"/\").concat(device.id);\n }\n return _this12._decryptDeviceName(device);\n }).then(function (updatedDevice) {\n devices[index] = updatedDevice;\n return _promise.default.resolve();\n });\n })).then(function () {\n return _promise.default.resolve(devices);\n });\n },\n /**\n * Utility function to update decrypted device name on device object\n * @param {object} inDevice\n * @returns {device}\n */\n _decryptDeviceName: function _decryptDeviceName() {\n var _this13 = this;\n var inDevice = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var device = (0, _lodash.cloneDeep)(inDevice);\n if (device.metadata && device.metadata.encryptedUserAssignedName && device.metadata.encryptionKeyUrl) {\n return this.webex.internal.encryption.decryptText(device.metadata.encryptionKeyUrl, device.metadata.encryptedUserAssignedName).then(function (decryptedDeviceName) {\n // set userAssignedName as the decypted value, unset encryptedUserAssignedName since it's not needed\n device.metadata.encryptedUserAssignedName = undefined;\n device.metadata.userAssignedName = decryptedDeviceName;\n return _promise.default.resolve(device);\n }).catch(function (err) {\n // unset encryptedUserAssignedName if failed to decrypt\n device.metadata.encryptedUserAssignedName = undefined;\n _this13.logger.error('DeviceCollection#_decryptDeviceName: failed to decrypt device name', err);\n });\n }\n return _promise.default.resolve(device);\n },\n /**\n * Utility function to update device info on mercury updates\n * @param {object} device\n * @returns {device}\n */\n _receiveDeviceUpdates: function _receiveDeviceUpdates(device) {\n var _this14 = this;\n // we care only the updates are for the registered devices\n if (device && device.spaceUrl) {\n var deviceId = device.spaceUrl.substring(device.spaceUrl.lastIndexOf('/') + 1);\n var existingDevice = _collection.default.get(deviceId);\n if (existingDevice) {\n return this.webex.internal.lyra.space.get({\n id: deviceId\n }).then(function (space) {\n // eslint-disable-next-line no-shadow\n var device = _collection.default.get(deviceId);\n if (device && space.occupants && (!space.occupants.self || !space.occupants.self.verified)) {\n device.productName = space.devices && space.devices[0] && space.devices[0].productName || _constants.DEFAULT_PRODUCT_NAME;\n // pin challenge is not verified reset _pairedDevice if ids\n // match\n var pairedDeviceId = _this14._pairedDevice && (_this14._pairedDevice.id || _this14._pairedDevice.identity.id);\n if (pairedDeviceId === deviceId) {\n _this14._pairedDevice = null;\n _this14.logger.info(\"DeviceManager#_receiveDeviceUpdates: device \".concat(deviceId, \" lost pairing\"));\n return _promise.default.resolve();\n }\n // we do not want to reset the device pending PIN challenge\n if (_this14._devicePendingPinChallenge.identity.id !== deviceId) {\n return _this14.upsert(device);\n }\n return _promise.default.resolve();\n }\n return _promise.default.resolve();\n }).catch(function (err) {\n _this14.logger.error('DeviceManager#_receiveDeviceUpdates: failed to receive updates for Lyra space', err);\n });\n }\n }\n return _promise.default.resolve();\n },\n version: \"3.7.0-web-workers-keepalive.1\"\n});\nvar _default = exports.default = DeviceManager;\n//# sourceMappingURL=device-manager.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\nvar _interopRequireDefault = require(\"@babel/runtime-corejs2/helpers/interopRequireDefault\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\n_Object$defineProperty(exports, \"config\", {\n enumerable: true,\n get: function get() {\n return _config.default;\n }\n});\n_Object$defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _deviceManager.default;\n }\n});\nrequire(\"@webex/internal-plugin-device\");\nvar _webexCore = require(\"@webex/webex-core\");\nvar _deviceManager = _interopRequireDefault(require(\"./device-manager\"));\nvar _config = _interopRequireDefault(require(\"./config\"));\n/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/* globals */\n\n(0, _webexCore.registerPlugin)('devicemanager', _deviceManager.default, {\n config: _config.default\n});\n//# sourceMappingURL=index.js.map\n","var v1 = require('./v1');\nvar v4 = require('./v4');\n\nvar uuid = v4;\nuuid.v1 = v1;\nuuid.v4 = v4;\n\nmodule.exports = uuid;\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n","// Unique ID creation requires a high quality random # generator. In the\n// browser this is a little complicated due to unknown quality of Math.random()\n// and inconsistent support for the `crypto` API. We do the best we can via\n// feature-detection\n\n// getRandomValues needs to be invoked in a context where \"this\" is a Crypto\n// implementation. Also, find the complete implementation of crypto on IE11.\nvar getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||\n (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));\n\nif (getRandomValues) {\n // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto\n var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef\n\n module.exports = function whatwgRNG() {\n getRandomValues(rnds8);\n return rnds8;\n };\n} else {\n // Math.random()-based (RNG)\n //\n // If all else fails, use Math.random(). It's fast, but is of unspecified\n // quality.\n var rnds = new Array(16);\n\n module.exports = function mathRNG() {\n for (var i = 0, r; i < 16; i++) {\n if ((i & 0x03) === 0) r = Math.random() * 0x100000000;\n rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;\n }\n\n return rnds;\n };\n}\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\n// **`v1()` - Generate time-based UUID**\n//\n// Inspired by https://github.com/LiosK/UUID.js\n// and http://docs.python.org/library/uuid.html\n\nvar _nodeId;\nvar _clockseq;\n\n// Previous uuid creation time\nvar _lastMSecs = 0;\nvar _lastNSecs = 0;\n\n// See https://github.com/uuidjs/uuid for API details\nfunction v1(options, buf, offset) {\n var i = buf && offset || 0;\n var b = buf || [];\n\n options = options || {};\n var node = options.node || _nodeId;\n var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;\n\n // node and clockseq need to be initialized to random values if they're not\n // specified. We do this lazily to minimize issues related to insufficient\n // system entropy. See #189\n if (node == null || clockseq == null) {\n var seedBytes = rng();\n if (node == null) {\n // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\n node = _nodeId = [\n seedBytes[0] | 0x01,\n seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]\n ];\n }\n if (clockseq == null) {\n // Per 4.2.2, randomize (14 bit) clockseq\n clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;\n }\n }\n\n // UUID timestamps are 100 nano-second units since the Gregorian epoch,\n // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so\n // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\n // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\n var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();\n\n // Per 4.2.1.2, use count of uuid's generated during the current clock\n // cycle to simulate higher resolution clock\n var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;\n\n // Time since last uuid creation (in msecs)\n var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;\n\n // Per 4.2.1.2, Bump clockseq on clock regression\n if (dt < 0 && options.clockseq === undefined) {\n clockseq = clockseq + 1 & 0x3fff;\n }\n\n // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\n // time interval\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {\n nsecs = 0;\n }\n\n // Per 4.2.1.2 Throw error if too many uuids are requested\n if (nsecs >= 10000) {\n throw new Error('uuid.v1(): Can\\'t create more than 10M uuids/sec');\n }\n\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq;\n\n // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\n msecs += 12219292800000;\n\n // `time_low`\n var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\n b[i++] = tl >>> 24 & 0xff;\n b[i++] = tl >>> 16 & 0xff;\n b[i++] = tl >>> 8 & 0xff;\n b[i++] = tl & 0xff;\n\n // `time_mid`\n var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;\n b[i++] = tmh >>> 8 & 0xff;\n b[i++] = tmh & 0xff;\n\n // `time_high_and_version`\n b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\n b[i++] = tmh >>> 16 & 0xff;\n\n // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\n b[i++] = clockseq >>> 8 | 0x80;\n\n // `clock_seq_low`\n b[i++] = clockseq & 0xff;\n\n // `node`\n for (var n = 0; n < 6; ++n) {\n b[i + n] = node[n];\n }\n\n return buf ? buf : bytesToUuid(b);\n}\n\nmodule.exports = v1;\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n/**\n * @typedef {Object} LoggerConfig\n * @property {string} [level=process.env.WEBEX_LOG_LEVEL] - Maximum log level that\n * should be printed to the console. One of\n * silent|error|warn|log|info|debug|trace\n * @property {number} [historyLength=1000] - Maximum number of entries to store in the log buffer.\n * @example\n * {\n * level: process.env.WEBEX_LOG_LEVEL,\n * historyLength: 1000\n * }\n */\nvar _default = exports.default = {\n logger: {\n level: process.env.WEBEX_LOG_LEVEL,\n historyLength: 10000\n }\n};\n//# sourceMappingURL=config.js.map\n","\"use strict\";\n\nvar _typeof = require(\"@babel/runtime-corejs2/helpers/typeof\");\nvar _WeakMap = require(\"@babel/runtime-corejs2/core-js/weak-map\");\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\nvar _Object$getOwnPropertyDescriptor = require(\"@babel/runtime-corejs2/core-js/object/get-own-property-descriptor\");\nvar _interopRequireDefault = require(\"@babel/runtime-corejs2/helpers/interopRequireDefault\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\n_Object$defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _logger.default;\n }\n});\n_Object$defineProperty(exports, \"levels\", {\n enumerable: true,\n get: function get() {\n return _logger.levels;\n }\n});\nvar _webexCore = require(\"@webex/webex-core\");\nvar _logger = _interopRequireWildcard(require(\"./logger\"));\nvar _config = _interopRequireDefault(require(\"./config\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n(0, _webexCore.registerPlugin)('logger', _logger.default, {\n config: _config.default,\n replace: true\n});\n//# sourceMappingURL=index.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\nvar _interopRequireDefault = require(\"@babel/runtime-corejs2/helpers/interopRequireDefault\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.levels = exports.default = void 0;\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/typeof\"));\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/toConsumableArray\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/slicedToArray\"));\nvar _keys = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/object/keys\"));\nvar _entries = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/object/entries\"));\nvar _deleteProperty = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/reflect/delete-property\"));\nvar _stringify = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/json/stringify\"));\nvar _common = require(\"@webex/common\");\nvar _webexCore = require(\"@webex/webex-core\");\nvar _lodash = require(\"lodash\");\n/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nvar precedence = {\n silent: 0,\n group: 1,\n groupEnd: 2,\n error: 3,\n warn: 4,\n log: 5,\n info: 6,\n debug: 7,\n trace: 8\n};\nvar levels = exports.levels = (0, _keys.default)(precedence).filter(function (level) {\n return level !== 'silent';\n});\nvar fallbacks = {\n error: ['log'],\n warn: ['error', 'log'],\n info: ['log'],\n debug: ['info', 'log'],\n trace: ['debug', 'info', 'log']\n};\nvar LOG_TYPES = {\n SDK: 'sdk',\n CLIENT: 'client'\n};\nvar SDK_LOG_TYPE_NAME = 'wx-js-sdk';\nvar authTokenKeyPattern = /[Aa]uthorization/;\n\n/**\n * Recursively strips \"authorization\" fields from the specified object\n * @param {Object} object\n * @param {Array} [visited]\n * @private\n * @returns {Object}\n */\nfunction walkAndFilter(object) {\n var visited = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n if (visited.includes(object)) {\n // Prevent circular references\n return object;\n }\n visited.push(object);\n if ((0, _lodash.isArray)(object)) {\n return object.map(function (o) {\n return walkAndFilter(o, visited);\n });\n }\n if (!(0, _lodash.isObject)(object)) {\n if ((0, _lodash.isString)(object)) {\n if (_common.patterns.containsEmails.test(object)) {\n return object.replace(_common.patterns.containsEmails, '[REDACTED]');\n }\n if (_common.patterns.containsMTID.test(object)) {\n return object.replace(_common.patterns.containsMTID, '$1[REDACTED]');\n }\n }\n return object;\n }\n for (var _i = 0, _Object$entries = (0, _entries.default)(object); _i < _Object$entries.length; _i++) {\n var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i], 2),\n key = _Object$entries$_i[0],\n value = _Object$entries$_i[1];\n if (authTokenKeyPattern.test(key)) {\n (0, _deleteProperty.default)(object, key);\n } else {\n object[key] = walkAndFilter(value, visited);\n }\n }\n return object;\n}\n\n/**\n * @class\n */\nvar Logger = _webexCore.WebexPlugin.extend({\n namespace: 'Logger',\n derived: {\n level: {\n cache: false,\n fn: function fn() {\n return this.getCurrentLevel();\n }\n },\n client_level: {\n cache: false,\n fn: function fn() {\n return this.getCurrentClientLevel();\n }\n }\n },\n session: {\n // for when configured to use single buffer\n buffer: {\n type: 'object',\n default: function _default() {\n return {\n buffer: [],\n nextIndex: 0\n };\n }\n },\n groupLevel: {\n type: 'number',\n default: function _default() {\n return 0;\n }\n },\n // for when configured to use separate buffers\n sdkBuffer: {\n type: 'object',\n default: function _default() {\n return {\n buffer: [],\n nextIndex: 0\n };\n }\n },\n clientBuffer: {\n type: 'object',\n default: function _default() {\n return {\n buffer: [],\n nextIndex: 0\n };\n }\n }\n },\n /**\n * Ensures auth headers don't get printed in logs\n * @param {Array} args\n * @private\n * @memberof Logger\n * @returns {Array}\n */\n filter: function filter() {\n for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {\n args[_key2] = arguments[_key2];\n }\n return args.map(function (arg) {\n // WebexHttpError already ensures auth tokens don't get printed, so, no\n // need to alter it here.\n if (arg instanceof Error) {\n // karma logs won't print subclassed errors correctly, so we need\n // explicitly call their tostring methods.\n if (process.env.NODE_ENV === 'test' && _common.inBrowser) {\n var ret = arg.toString();\n ret += 'BEGIN STACK';\n ret += arg.stack;\n ret += 'END STACK';\n return ret;\n }\n return arg;\n }\n arg = (0, _lodash.cloneDeep)(arg);\n return walkAndFilter(arg);\n });\n },\n /**\n * Determines if the current level allows logs at the specified level to be\n * printed\n * @param {string} level\n * @param {string} type type of log, SDK or client\n * @private\n * @memberof Logger\n * @returns {boolean}\n */\n shouldPrint: function shouldPrint(level) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : LOG_TYPES.SDK;\n return precedence[level] <= precedence[type === LOG_TYPES.SDK ? this.getCurrentLevel() : this.getCurrentClientLevel()];\n },\n /**\n * Determines if the current level allows logs at the specified level to be\n * put into the log buffer. We're configuring it omit trace and debug logs\n * because there are *a lot* of debug logs that really don't provide value at\n * runtime (they're helpful for debugging locally, but really just pollute the\n * uploaded logs and push useful info out).\n * @param {string} level\n * @param {string} type type of log, SDK or client\n * @private\n * @memberof Logger\n * @returns {boolean}\n */\n shouldBuffer: function shouldBuffer(level) {\n return precedence[level] <= (this.config.bufferLogLevel ? precedence[this.config.bufferLogLevel] : precedence.info);\n },\n /**\n * Indicates the current SDK log level based on env vars, feature toggles, and\n * user type.\n * @instance\n * @memberof Logger\n * @private\n * @memberof Logger\n * @returns {string}\n */\n // eslint-disable-next-line complexity\n getCurrentLevel: function getCurrentLevel() {\n // If a level has been explicitly set via config, alway use it.\n if (this.config.level) {\n return this.config.level;\n }\n if (levels.includes(process.env.WEBEX_LOG_LEVEL)) {\n return process.env.WEBEX_LOG_LEVEL;\n }\n\n // Always use debug-level logging in test mode;\n if (process.env.NODE_ENV === 'test') {\n return 'trace';\n }\n\n // Use server-side-feature toggles to configure log levels\n var level = this.webex.internal.device && this.webex.internal.device.features.developer.get('log-level');\n if (level) {\n if (levels.includes(level)) {\n return level;\n }\n }\n return 'error';\n },\n /**\n * Indicates the current client log level based on config, defaults to SDK level\n * @instance\n * @memberof Logger\n * @private\n * @memberof Logger\n * @returns {string}\n */\n getCurrentClientLevel: function getCurrentClientLevel() {\n // If a client log level has been explicitly set via config, alway use it.\n if (this.config.clientLevel) {\n return this.config.clientLevel;\n }\n\n // otherwise default to SDK level\n return this.getCurrentLevel();\n },\n /**\n * Format logs (for upload)\n *\n * If separate client, SDK buffers is configured, merge the buffers, if configured\n *\n * @instance\n * @memberof Logger\n * @public\n * @memberof Logger\n * @param {Object} options\n * @param {boolean} options.diff whether to only format the diff from last call to formatLogs(), false by default\n * @returns {string} formatted buffer\n */\n formatLogs: function formatLogs() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n function getDate(log) {\n return log[1];\n }\n var _options$diff = options.diff,\n diff = _options$diff === void 0 ? false : _options$diff;\n var buffer = [];\n var clientIndex = diff ? this.clientBuffer.nextIndex : 0;\n var sdkIndex = diff ? this.sdkBuffer.nextIndex : 0;\n if (this.config.separateLogBuffers) {\n // merge the client and sdk buffers\n // while we have entries in either buffer\n while (clientIndex < this.clientBuffer.buffer.length || sdkIndex < this.sdkBuffer.buffer.length) {\n // if we have remaining entries in the SDK buffer\n if (sdkIndex < this.sdkBuffer.buffer.length && (\n // and we haven't exhausted all the client buffer entries, or SDK date is before client date\n clientIndex >= this.clientBuffer.buffer.length || new Date(getDate(this.sdkBuffer.buffer[sdkIndex])) <= new Date(getDate(this.clientBuffer.buffer[clientIndex])))) {\n // then add to the SDK buffer\n buffer.push(this.sdkBuffer.buffer[sdkIndex]);\n sdkIndex += 1;\n }\n // otherwise if we haven't exhausted all the client buffer entries, add client entry, whether it was because\n // it was the only remaining entries or date was later (the above if)\n else if (clientIndex < this.clientBuffer.buffer.length) {\n buffer.push(this.clientBuffer.buffer[clientIndex]);\n clientIndex += 1;\n }\n }\n if (diff) {\n this.clientBuffer.nextIndex = clientIndex;\n this.sdkBuffer.nextIndex = sdkIndex;\n }\n } else if (diff) {\n buffer = this.buffer.buffer.slice(this.buffer.nextIndex);\n this.buffer.nextIndex = this.buffer.buffer.length;\n } else {\n buffer = this.buffer.buffer;\n }\n return buffer.join('\\n');\n },\n version: \"3.7.0-web-workers-keepalive.1\"\n});\n\n/**\n * Creates a logger method\n *\n *\n * @param {string} level level to create (info, error, warn, etc.)\n * @param {string} impl the level to use when writing to console\n * @param {string} type type of log, SDK or client\n * @param {bool} neverPrint function never prints to console\n * @param {bool} alwaysBuffer function always logs to log buffer\n * @instance\n * @memberof Logger\n * @private\n * @memberof Logger\n * @returns {function} logger method with specified params\n */\nfunction makeLoggerMethod(level, impl, type) {\n var neverPrint = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var alwaysBuffer = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n // Much of the complexity in the following function is due to a test-mode-only\n // helper\n return function wrappedConsoleMethod() {\n // it would be easier to just pass in the name and buffer here, but the config isn't completely initialized\n // in Ampersand, even if the initialize method is used to set this up. so we keep the type to achieve\n // a sort of late binding to allow retrieving a name from config.\n var logType = type;\n var clientName = logType === LOG_TYPES.SDK ? SDK_LOG_TYPE_NAME : this.config.clientName || logType;\n var bufferRef;\n var historyLength;\n if (this.config.separateLogBuffers) {\n historyLength = this.config.clientHistoryLength ? this.config.clientHistoryLength : this.config.historyLength;\n bufferRef = logType === LOG_TYPES.SDK ? this.sdkBuffer : this.clientBuffer;\n } else {\n bufferRef = this.buffer;\n historyLength = this.config.historyLength;\n }\n try {\n var shouldPrint = !neverPrint && this.shouldPrint(level, logType);\n var shouldBuffer = alwaysBuffer || this.shouldBuffer(level);\n if (!shouldBuffer && !shouldPrint) {\n return;\n }\n var filtered = [clientName].concat((0, _toConsumableArray2.default)(this.filter.apply(this, arguments)));\n var stringified = filtered.map(function (item) {\n if (item instanceof Error) {\n return item.toString();\n }\n if ((0, _typeof2.default)(item) === 'object') {\n var cache = [];\n var returnItem;\n try {\n returnItem = (0, _stringify.default)(item, function (_key, value) {\n if ((0, _typeof2.default)(value) === 'object' && value !== null) {\n if (cache.includes(value)) {\n // Circular reference found, discard key\n return undefined;\n }\n // Store value in our collection\n cache.push(value);\n }\n return value;\n });\n } catch (e) {\n returnItem = \"Failed to stringify: \".concat(item);\n }\n cache = null;\n return returnItem;\n }\n return item;\n });\n if (shouldPrint) {\n var _console;\n // when logging an object in browsers, we tend to get a dynamic\n // reference, thus going back to look at the logged value doesn't\n // necessarily show the state at log time, thus we print the stringified\n // value.\n var toPrint = _common.inBrowser ? stringified : filtered;\n\n /* istanbul ignore if */\n if (process.env.NODE_ENV === 'test' && (0, _lodash.has)(this, 'webex.internal.device.url')) {\n toPrint.unshift(this.webex.internal.device.url.slice(-3));\n }\n // eslint-disable-next-line no-console\n (_console = console)[impl].apply(_console, (0, _toConsumableArray2.default)(toPrint));\n }\n if (shouldBuffer) {\n var logDate = new Date();\n stringified.unshift(logDate.toISOString());\n stringified.unshift('| '.repeat(this.groupLevel));\n bufferRef.buffer.push(stringified);\n if (bufferRef.buffer.length > historyLength) {\n // we've gone over the buffer limit, trim it down\n var deleteCount = bufferRef.buffer.length - historyLength;\n bufferRef.buffer.splice(0, deleteCount);\n\n // and adjust the corresponding buffer index used for log diff uploads\n bufferRef.nextIndex -= deleteCount;\n if (bufferRef.nextIndex < 0) {\n bufferRef.nextIndex = 0;\n }\n }\n if (level === 'group') this.groupLevel += 1;\n if (level === 'groupEnd' && this.groupLevel > 0) this.groupLevel -= 1;\n }\n } catch (reason) {\n if (!neverPrint) {\n /* istanbul ignore next */\n // eslint-disable-next-line no-console\n console.warn(\"failed to execute Logger#\".concat(level), reason);\n }\n }\n };\n}\nlevels.forEach(function (level) {\n var impls = fallbacks[level];\n var impl = level;\n if (impls) {\n impls = impls.slice();\n // eslint-disable-next-line no-console\n while (!console[impl]) {\n impl = impls.pop();\n }\n }\n\n // eslint-disable-next-line complexity\n Logger.prototype[\"client_\".concat(level)] = makeLoggerMethod(level, impl, LOG_TYPES.CLIENT);\n Logger.prototype[level] = makeLoggerMethod(level, impl, LOG_TYPES.SDK);\n});\nLogger.prototype.client_logToBuffer = makeLoggerMethod(levels.info, levels.info, LOG_TYPES.CLIENT, true, true);\nLogger.prototype.logToBuffer = makeLoggerMethod(levels.info, levels.info, LOG_TYPES.SDK, true, true);\nvar _default2 = exports.default = Logger;\n//# sourceMappingURL=logger.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n/*!\n * Copyright (c) 2015-2022 Cisco Systems, Inc. See LICENSE file.\n */\nvar _default = exports.default = {\n dss: {\n /**\n * Timeout before DSS request fails, in milliseconds.\n * @type {Number}\n */\n requestTimeout: 6000,\n /**\n * Debounce wait (ms) before sending a dss request (gap between lookups that will trigger a request)\n * @type {Number}\n */\n batcherWait: 50,\n /**\n * Maximum queue size before sending a dss request\n * @type {Number}\n */\n batcherMaxCalls: 50,\n /**\n * Debounce max wait (ms) before sending a dss request (time from first lookup that will trigger a request)\n * @type {Number}\n */\n batcherMaxWait: 150\n }\n};\n//# sourceMappingURL=config.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SEARCH_TYPES = exports.SEARCH_DATA_PATH = exports.LOOKUP_REQUEST_KEY = exports.LOOKUP_NOT_FOUND_PATH = exports.LOOKUP_FOUND_PATH = exports.LOOKUP_DATA_PATH = exports.DSS_UNREGISTERED = exports.DSS_SERVICE_NAME = exports.DSS_SEARCH_MERCURY_EVENT = exports.DSS_RESULT = exports.DSS_REGISTERED = exports.DSS_LOOKUP_RESULT = exports.DSS_LOOKUP_MERCURY_EVENT = void 0;\nvar DSS_REGISTERED = exports.DSS_REGISTERED = 'dss:registered';\nvar DSS_UNREGISTERED = exports.DSS_UNREGISTERED = 'dss:unregistered';\nvar DSS_LOOKUP_MERCURY_EVENT = exports.DSS_LOOKUP_MERCURY_EVENT = 'event:directory.lookup';\nvar DSS_SEARCH_MERCURY_EVENT = exports.DSS_SEARCH_MERCURY_EVENT = 'event:directory.search';\nvar DSS_LOOKUP_RESULT = exports.DSS_LOOKUP_RESULT = 'dss:lookup.result';\nvar DSS_RESULT = exports.DSS_RESULT = 'dss:result';\nvar DSS_SERVICE_NAME = exports.DSS_SERVICE_NAME = 'directorySearch';\nvar SEARCH_TYPES = exports.SEARCH_TYPES = {\n PERSON: 'PERSON',\n CALLING_SERVICE: 'CALLING_SERVICE',\n EXTERNAL_CALLING: 'EXTERNAL_CALLING',\n ROOM: 'ROOM',\n ROBOT: 'ROBOT'\n};\nvar LOOKUP_DATA_PATH = exports.LOOKUP_DATA_PATH = 'lookupResult.entities';\nvar LOOKUP_FOUND_PATH = exports.LOOKUP_FOUND_PATH = 'lookupResult.entitiesFound';\nvar LOOKUP_NOT_FOUND_PATH = exports.LOOKUP_NOT_FOUND_PATH = 'lookupResult.entitiesNotFound';\nvar LOOKUP_REQUEST_KEY = exports.LOOKUP_REQUEST_KEY = 'lookupValues';\nvar SEARCH_DATA_PATH = exports.SEARCH_DATA_PATH = 'directoryEntities';\n//# sourceMappingURL=constants.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\nvar _interopRequireDefault = require(\"@babel/runtime-corejs2/helpers/interopRequireDefault\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _promise = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/promise\"));\nvar _webexCore = require(\"@webex/webex-core\");\n/*!\n * Copyright (c) 2015-2022 Cisco Systems, Inc. See LICENSE file.\n */\n/* eslint-disable no-underscore-dangle */\n\n/**\n * @class\n */\nvar DssBatcher = _webexCore.Batcher.extend({\n namespace: 'DSS',\n props: {\n resource: {\n type: 'string',\n required: true,\n setOnce: true,\n allowNull: false\n },\n dataPath: {\n type: 'string',\n required: true,\n setOnce: true,\n allowNull: false\n },\n entitiesFoundPath: {\n type: 'string',\n required: true,\n setOnce: true,\n allowNull: false\n },\n entitiesNotFoundPath: {\n type: 'string',\n required: true,\n setOnce: true,\n allowNull: false\n },\n requestKey: {\n type: 'string',\n required: true,\n setOnce: true,\n allowNull: false\n }\n },\n /**\n * Submits the DSS request\n * @param {Object} payload\n * @returns {Promise}\n */\n submitHttpRequest: function submitHttpRequest(payload) {\n return this.parent._request({\n dataPath: this.dataPath,\n foundPath: this.entitiesFoundPath,\n notFoundPath: this.entitiesNotFoundPath,\n resource: this.resource,\n params: {\n lookupValues: payload\n }\n });\n },\n /**\n * Actions taken when the http request returns a success\n * @param {Promise} res\n * @returns {Promise}\n */\n handleHttpSuccess: function handleHttpSuccess(res) {\n var _this = this;\n var successItems = res.foundArray.map(function (requestValue, index) {\n return {\n requestValue: requestValue,\n entity: res.resultArray[index]\n };\n });\n var failureItems = res.notFoundArray.map(function (requestValue) {\n return {\n requestValue: requestValue,\n entity: null\n };\n });\n return _promise.default.all(successItems.concat(failureItems).map(function (item) {\n return _this.acceptItem(item);\n }));\n },\n /**\n * Checks if the item was found\n * @param {Object} item\n * @returns {Promise}\n */\n didItemFail: function didItemFail(item) {\n return _promise.default.resolve(item.entity === null);\n },\n /**\n * Finds the Defer for the specified item and resolves its promise with null\n * @param {Object} item\n * @returns {Promise}\n */\n handleItemFailure: function handleItemFailure(item) {\n return this.getDeferredForResponse(item).then(function (defer) {\n defer.resolve(null);\n });\n },\n /**\n * Finds the Defer for the specified item and resolves its promise\n * @param {Object} item\n * @returns {Promise}\n */\n handleItemSuccess: function handleItemSuccess(item) {\n return this.getDeferredForResponse(item).then(function (defer) {\n defer.resolve(item.entity);\n });\n },\n /**\n * Returns a promise with the unique key for the item\n * @param {Object} item\n * @returns {Promise}\n */\n fingerprintRequest: function fingerprintRequest(item) {\n return _promise.default.resolve(item);\n },\n /**\n * Returns a promise with the unique key for the item\n * @param {Object} item\n * @returns {Promise}\n */\n fingerprintResponse: function fingerprintResponse(item) {\n return _promise.default.resolve(item.requestValue);\n }\n});\nvar _default = exports.default = DssBatcher;\n//# sourceMappingURL=dss-batcher.js.map\n","\"use strict\";\n\nvar _Reflect$construct = require(\"@babel/runtime-corejs2/core-js/reflect/construct\");\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\nvar _interopRequireDefault = require(\"@babel/runtime-corejs2/helpers/interopRequireDefault\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DssTimeoutError = void 0;\nvar _stringify = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/json/stringify\"));\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/classCallCheck\"));\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/createClass\"));\nvar _inherits2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/inherits\"));\nvar _possibleConstructorReturn2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/possibleConstructorReturn\"));\nvar _getPrototypeOf2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/getPrototypeOf\"));\nvar _common = require(\"@webex/common\");\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n/**\n * Thrown when an expected DSS respond is not received in a timely manner.\n */\nvar DssTimeoutError = exports.DssTimeoutError = /*#__PURE__*/function (_Exception) {\n (0, _inherits2.default)(DssTimeoutError, _Exception);\n var _super = _createSuper(DssTimeoutError);\n /**\n * Construct DssTimeoutError\n * @param {DssTimeoutErrorParams} details\n */\n // eslint-disable-next-line no-useless-constructor\n function DssTimeoutError(details) {\n (0, _classCallCheck2.default)(this, DssTimeoutError);\n return _super.call(this, details);\n }\n\n /**\n * Parse Error details\n *\n * @param {DssTimeoutErrorParams} details\n * @returns {string}\n */\n (0, _createClass2.default)(DssTimeoutError, [{\n key: \"parse\",\n value: function parse(details) {\n return \"The DSS did not respond within \".concat(details.timeout, \" ms.\") + \"\\n Request Id: \".concat(details.requestId) + \"\\n Resource: \".concat(details.resource) + \"\\n Params: \".concat((0, _stringify.default)(details.params));\n }\n }]);\n return DssTimeoutError;\n}(_common.Exception);\n//# sourceMappingURL=dss-errors.js.map\n","\"use strict\";\n\nvar _Object$keys2 = require(\"@babel/runtime-corejs2/core-js/object/keys\");\nvar _Object$getOwnPropertySymbols = require(\"@babel/runtime-corejs2/core-js/object/get-own-property-symbols\");\nvar _Object$getOwnPropertyDescriptor = require(\"@babel/runtime-corejs2/core-js/object/get-own-property-descriptor\");\nvar _Object$getOwnPropertyDescriptors = require(\"@babel/runtime-corejs2/core-js/object/get-own-property-descriptors\");\nvar _Object$defineProperties = require(\"@babel/runtime-corejs2/core-js/object/define-properties\");\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\nvar _interopRequireDefault = require(\"@babel/runtime-corejs2/helpers/interopRequireDefault\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/defineProperty\"));\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime-corejs2/helpers/toConsumableArray\"));\nvar _apply = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/reflect/apply\"));\nvar _promise = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/promise\"));\nvar _keys = _interopRequireDefault(require(\"@babel/runtime-corejs2/core-js/object/keys\"));\nvar _uuid = _interopRequireDefault(require(\"uuid\"));\nvar _webexCore = require(\"@webex/webex-core\");\nrequire(\"@webex/internal-plugin-mercury\");\nvar _lodash = require(\"lodash\");\nvar _commonTimers = require(\"@webex/common-timers\");\nvar _constants = require(\"./constants\");\nvar _dssBatcher = _interopRequireDefault(require(\"./dss-batcher\"));\nvar _dssErrors = require(\"./dss-errors\");\nfunction ownKeys(e, r) { var t = _Object$keys2(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; } /* eslint-disable no-underscore-dangle */ /*!\n * Copyright (c) 2015-2022 Cisco Systems, Inc. See LICENSE file.\n */ /* eslint-disable no-underscore-dangle */\nvar DSS = _webexCore.WebexPlugin.extend({\n namespace: 'DSS',\n /**\n * registered value indicating events registration is successful\n * @instance\n * @type {Boolean}\n * @memberof DSS\n */\n registered: false,\n /**\n * Initializer\n * @private\n * @param {Object} attrs\n * @param {Object} options\n * @returns {undefined}\n */\n initialize: function initialize() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n (0, _apply.default)(_webexCore.WebexPlugin.prototype.initialize, this, args);\n this.batchers = {};\n },\n /**\n * Explicitly sets up the DSS plugin by connecting to mercury, and listening for DSS events.\n * @returns {Promise}\n * @public\n * @memberof DSS\n */\n register: function register() {\n var _this = this;\n if (!this.webex.canAuthorize) {\n this.logger.error('DSS->register#ERROR, Unable to register, SDK cannot authorize');\n return _promise.default.reject(new Error('SDK cannot authorize'));\n }\n if (this.registered) {\n this.logger.info('dss->register#INFO, DSS plugin already registered');\n return _promise.default.resolve();\n }\n return this.webex.internal.mercury.connect().then(function () {\n _this.listenForEvents();\n _this.trigger(_constants.DSS_REGISTERED);\n _this.registered = true;\n }).catch(function (error) {\n _this.logger.error(\"DSS->register#ERROR, Unable to register, \".concat(error.message));\n return _promise.default.reject(error);\n });\n },\n /**\n * Explicitly tears down the DSS plugin by disconnecting from mercury, and stops listening to DSS events\n * @returns {Promise}\n * @public\n * @memberof DSS\n */\n unregister: function unregister() {\n var _this2 = this;\n if (!this.registered) {\n this.logger.info('DSS->unregister#INFO, DSS plugin already unregistered');\n return _promise.default.resolve();\n }\n this.stopListeningForEvents();\n return this.webex.internal.mercury.disconnect().then(function () {\n _this2.trigger(_constants.DSS_UNREGISTERED);\n _this2.registered = false;\n });\n },\n /**\n * registers for DSS events through mercury\n * @returns {undefined}\n * @private\n */\n listenForEvents: function listenForEvents() {\n var _this3 = this;\n this.webex.internal.mercury.on(_constants.DSS_LOOKUP_MERCURY_EVENT, function (envelope) {\n _this3._handleEvent(envelope.data);\n });\n this.webex.internal.mercury.on(_constants.DSS_SEARCH_MERCURY_EVENT, function (envelope) {\n _this3._handleEvent(envelope.data);\n });\n },\n /**\n * unregisteres all the DSS events from mercury\n * @returns {undefined}\n * @private\n */\n stopListeningForEvents: function stopListeningForEvents() {\n this.webex.internal.mercury.off(_constants.DSS_LOOKUP_MERCURY_EVENT);\n this.webex.internal.mercury.off(_constants.DSS_SEARCH_MERCURY_EVENT);\n },\n /**\n * constructs the event name based on request id\n * @param {UUID} requestId the id of the request\n * @returns {string}\n */\n _getResultEventName: function _getResultEventName(requestId) {\n return \"\".concat(_constants.DSS_RESULT).concat(requestId);\n },\n /**\n * Takes incoming data and triggers correct events\n * @param {Object} data the event data\n * @returns {undefined}\n */\n _handleEvent: function _handleEvent(data) {\n this.trigger(this._getResultEventName(data.requestId), data);\n this.trigger(_constants.DSS_LOOKUP_RESULT, data);\n },\n /**\n * Makes the request to the directory service\n * @param {Object} options\n * @param {string} options.resource the URL to query\n * @param {Mixed} options.params additional params for the body of the request\n * @param {string} options.dataPath the path to get the data in the result object\n * @param {string} [options.foundPath] the path to get the lookups of the found data\n * @param {string} [options.notFoundPath] the path to get the lookups of the not found data\n * @returns {Promise} result Resolves with an object\n * @returns {Array} result.resultArray an array of entities found\n * @returns {Array} result.foundArray an array of the lookups of the found entities (if foundPath provided)\n * @returns {Array} result.notFoundArray an array of the lookups of the not found entities (if notFoundPath provided)\n * @throws {DssTimeoutError} when server does not respond in the specified timeframe\n */\n _request: function _request(options) {\n var _this4 = this;\n var resource = options.resource,\n params = options.params,\n dataPath = options.dataPath,\n foundPath = options.foundPath,\n notFoundPath = options.notFoundPath;\n var timeout = this.config.requestTimeout;\n var requestId = _uuid.default.v4();\n var eventName = this._getResultEventName(requestId);\n var result = {};\n var expectedSeqNums;\n var notFoundArray;\n return new _promise.default(function (resolve, reject) {\n var timer = new _commonTimers.Timer(function () {\n _this4.stopListening(_this4, eventName);\n reject(new _dssErrors.DssTimeoutError({\n requestId: requestId,\n timeout: timeout,\n resource: resource,\n params: params\n }));\n }, timeout);\n _this4.listenTo(_this4, eventName, function (data) {\n timer.reset();\n var resultData = (0, _lodash.get)(data, dataPath, []);\n var found;\n if (foundPath) {\n found = (0, _lodash.get)(data, foundPath, []);\n }\n result[data.sequence] = foundPath ? {\n resultData: resultData,\n found: found\n } : {\n resultData: resultData\n };\n if (data.finished) {\n expectedSeqNums = (0, _lodash.range)(data.sequence + 1).map(String);\n if (notFoundPath) {\n notFoundArray = (0, _lodash.get)(data, notFoundPath, []);\n }\n }\n var done = (0, _lodash.isEqual)(expectedSeqNums, (0, _keys.default)(result));\n if (done) {\n timer.cancel();\n var resultArray = [];\n var foundArray = [];\n expectedSeqNums.forEach(function (index) {\n var seqResult = result[index];\n if (seqResult) {\n resultArray.push.apply(resultArray, (0, _toConsumableArray2.default)(seqResult.resultData));\n if (foundPath) {\n foundArray.push.apply(foundArray, (0, _toConsumableArray2.default)(seqResult.found));\n }\n }\n });\n var resolveValue = {\n resultArray: resultArray\n };\n if (foundPath) {\n resolveValue.foundArray = foundArray;\n }\n if (notFoundPath) {\n resolveValue.notFoundArray = notFoundArray;\n }\n resolve(resolveValue);\n _this4.stopListening(_this4, eventName);\n }\n });\n _this4.webex.request({\n service: _constants.DSS_SERVICE_NAME,\n resource: resource,\n method: 'POST',\n contentType: 'application/json',\n body: _objectSpread({\n requestId: requestId\n }, params)\n });\n timer.start();\n });\n },\n /**\n * Uses a batcher to make the request to the directory service\n * @param {Object} options\n * @param {string} options.resource the URL to query\n * @param {string} options.value the id or email to lookup\n * @returns {Promise} Resolves with an array of entities found\n * @throws {DssTimeoutError} when server does not respond in the specified timeframe\n */\n _batchedLookup: function _batchedLookup(options) {\n var resource = options.resource,\n lookupValue = options.lookupValue;\n var dataPath = _constants.LOOKUP_DATA_PATH;\n var entitiesFoundPath = _constants.LOOKUP_FOUND_PATH;\n var entitiesNotFoundPath = _constants.LOOKUP_NOT_FOUND_PATH;\n var requestKey = _constants.LOOKUP_REQUEST_KEY;\n this.batchers[resource] = this.batchers[resource] || new _dssBatcher.default({\n resource: resource,\n dataPath: dataPath,\n entitiesFoundPath: entitiesFoundPath,\n entitiesNotFoundPath: entitiesNotFoundPath,\n requestKey: requestKey,\n parent: this\n });\n return this.batchers[resource].request(lookupValue);\n },\n /**\n * Retrieves detailed information about an entity\n * @param {Object} options\n * @param {UUID} options.id the id of the entity to lookup\n * @returns {Promise} Resolves with the entity found or null if not found\n * @throws {DssTimeoutError} when server does not respond in the specified timeframe\n */\n lookupDetail: function lookupDetail(options) {\n var id = options.id;\n var resource = \"/lookup/orgid/\".concat(this.webex.internal.device.orgId, \"/identity/\").concat(id, \"/detail\");\n return this._request({\n dataPath: _constants.LOOKUP_DATA_PATH,\n foundPath: _constants.LOOKUP_FOUND_PATH,\n resource: resource\n }).then(function (_ref) {\n var resultArray = _ref.resultArray,\n foundArray = _ref.foundArray;\n // TODO: find out what is actually returned!\n if (foundArray[0] === id) {\n return resultArray[0];\n }\n return null;\n });\n },\n /**\n * Retrieves basic information about an entity within an organization\n * @param {Object} options\n * @param {UUID} options.id the id of the entity to lookup\n * @param {UUID} [options.entityProviderType] the provider to query\n * @param {Boolean} options.shouldBatch whether to batch the query, set to false for single immediate result (defaults to true)\n * @returns {Promise} Resolves with the entity found or null if not found\n * @throws {DssTimeoutError} when server does not respond in the specified timeframe\n */\n lookup: function lookup(options) {\n var id = options.id,\n entityProviderType = options.entityProviderType,\n _options$shouldBatch = options.shouldBatch,\n shouldBatch = _options$shouldBatch === void 0 ? true : _options$shouldBatch;\n var resource = entityProviderType ? \"/lookup/orgid/\".concat(this.webex.internal.device.orgId, \"/entityprovidertype/\").concat(entityProviderType) : \"/lookup/orgid/\".concat(this.webex.internal.device.orgId, \"/identities\");\n if (shouldBatch) {\n return this._batchedLookup({\n resource: resource,\n lookupValue: id\n });\n }\n return this._request({\n dataPath: _constants.LOOKUP_DATA_PATH,\n foundPath: _constants.LOOKUP_FOUND_PATH,\n resource: resource,\n params: (0, _defineProperty2.default)({}, _constants.LOOKUP_REQUEST_KEY, [id])\n }).then(function (_ref2) {\n var resultArray = _ref2.resultArray,\n foundArray = _ref2.foundArray;\n if (foundArray[0] === id) {\n return resultArray[0];\n }\n return null;\n });\n },\n /**\n * Retrieves basic information about an enitity within an organization\n * @param {Object} options\n * @param {UUID} options.email the email of the entity to lookup\n * @returns {Promise} Resolves with the entity found or rejects if not found\n * @throws {DssTimeoutError} when server does not respond in the specified timeframe\n */\n lookupByEmail: function lookupByEmail(options) {\n var email = options.email;\n var resource = \"/lookup/orgid/\".concat(this.webex.internal.device.orgId, \"/emails\");\n return this._request({\n dataPath: _constants.LOOKUP_DATA_PATH,\n foundPath: _constants.LOOKUP_FOUND_PATH,\n resource: resource,\n params: (0, _defineProperty2.default)({}, _constants.LOOKUP_REQUEST_KEY, [email])\n }).then(function (_ref3) {\n var resultArray = _ref3.resultArray,\n foundArray = _ref3.foundArray;\n if (foundArray[0] === email) {\n return resultArray[0];\n }\n return null;\n });\n },\n /**\n * Search for information about entities\n * @param {Object} options\n * @param {SearchType[]} options.requestedTypes an array of search types from: PERSON, CALLING_SERVICE, EXTERNAL_CALLING, ROOM, ROBOT\n * @param {string[]} options.queryString A query string that will be transformed into a Directory search filter query. It is used to search the following fields: username, givenName, familyName, displayName and email\n * @param {number} options.resultSize The maximum number of results returned from each provider\n * @returns {Promise} Resolves with an array of entities found\n * @throws {DssTimeoutError} when server does not respond in the specified timeframe\n */\n search: function search(options) {\n var requestedTypes = options.requestedTypes,\n resultSize = options.resultSize,\n queryString = options.queryString;\n return this._request({\n dataPath: _constants.SEARCH_DATA_PATH,\n resource: \"/search/orgid/\".concat(this.webex.internal.device.orgId, \"/entities\"),\n params: {\n queryString: queryString,\n resultSize: resultSize,\n requestedTypes: requestedTypes\n }\n }).then(function (_ref4) {\n var resultArray = _ref4.resultArray;\n return resultArray;\n });\n },\n /**\n * Search for information about places\n * @param {Object} options\n * @param {string} options.queryString A query string that will be transformed into a Directory search filter query. It is used to search the following fields: placeName, displayName.\n * @param {number} options.resultSize The maximum number of results returned from each provider\n * @returns {Promise} Resolves with an array of entities found\n */\n searchPlaces: function searchPlaces(options) {\n var _this5 = this;\n var resultSize = options.resultSize,\n queryString = options.queryString,\n isOnlySchedulableRooms = options.isOnlySchedulableRooms;\n return this._request({\n dataPath: 'directoryEntities',\n resource: \"/search/orgid/\".concat(this.webex.internal.device.orgId, \"/places\"),\n params: {\n queryString: queryString,\n resultSize: resultSize,\n isOnlySchedulableRooms: isOnlySchedulableRooms\n }\n }).catch(function (error) {\n _this5.logger.error(\"DSS->search place#ERROR, search place failure, \".concat(error.message));\n return _promise.default.reject(error);\n });\n },\n version: \"3.7.0-web-workers-keepalive.1\"\n});\nvar _default = exports.default = DSS;\n//# sourceMappingURL=dss.js.map\n","\"use strict\";\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs2/core-js/object/define-property\");\nvar _interopRequireDefault = require(\"@babel/runtime-corejs2/helpers/interopRequireDefault\");\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\n_Object$defineProperty(exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _dss.default;\n }\n});\nvar _webexCore = require(\"@webex/webex-core\");\nvar _dss = _interopRequireDefault(require(\"./dss\"));\nvar _config = _interopRequireDefault(require(\"./config\"));\n(0, _webexCore.registerInternalPlugin)('dss', _dss.default, {\n config: _config.default\n});\n//# sourceMappingURL=index.js.map\n","var v1 = require('./v1');\nvar v4 = require('./v4');\n\nvar uuid = v4;\nuuid.v1 = v1;\nuuid.v4 = v4;\n\nmodule.exports = uuid;\n","/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex[i] = (i + 0x100).toString(16).substr(1);\n}\n\nfunction bytesToUuid(buf, offset) {\n var i = offset || 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return ([\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]], '-',\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]],\n bth[buf[i++]], bth[buf[i++]]\n ]).join('');\n}\n\nmodule.exports = bytesToUuid;\n","// Unique ID creation requires a high quality random # generator. In the\n// browser this is a little complicated due to unknown quality of Math.random()\n// and inconsistent support for the `crypto` API. We do the best we can via\n// feature-detection\n\n// getRandomValues needs to be invoked in a context where \"this\" is a Crypto\n// implementation. Also, find the complete implementation of crypto on IE11.\nvar getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||\n (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));\n\nif (getRandomValues) {\n // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto\n var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef\n\n module.exports = function whatwgRNG() {\n getRandomValues(rnds8);\n return rnds8;\n };\n} else {\n // Math.random()-based (RNG)\n //\n // If all else fails, use Math.random(). It's fast, but is of unspecified\n // quality.\n var rnds = new Array(16);\n\n module.exports = function mathRNG() {\n for (var i = 0, r; i < 16; i++) {\n if ((i & 0x03) === 0) r = Math.random() * 0x100000000;\n rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;\n }\n\n return rnds;\n };\n}\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\n// **`v1()` - Generate time-based UUID**\n//\n// Inspired by https://github.com/LiosK/UUID.js\n// and http://docs.python.org/library/uuid.html\n\nvar _nodeId;\nvar _clockseq;\n\n// Previous uuid creation time\nvar _lastMSecs = 0;\nvar _lastNSecs = 0;\n\n// See https://github.com/uuidjs/uuid for API details\nfunction v1(options, buf, offset) {\n var i = buf && offset || 0;\n var b = buf || [];\n\n options = options || {};\n var node = options.node || _nodeId;\n var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;\n\n // node and clockseq need to be initialized to random values if they're not\n // specified. We do this lazily to minimize issues related to insufficient\n // system entropy. See #189\n if (node == null || clockseq == null) {\n var seedBytes = rng();\n if (node == null) {\n // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\n node = _nodeId = [\n seedBytes[0] | 0x01,\n seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]\n ];\n }\n if (clockseq == null) {\n // Per 4.2.2, randomize (14 bit) clockseq\n clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;\n }\n }\n\n // UUID timestamps are 100 nano-second units since the Gregorian epoch,\n // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so\n // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\n // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\n var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();\n\n // Per 4.2.1.2, use count of uuid's generated during the current clock\n // cycle to simulate higher resolution clock\n var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;\n\n // Time since last uuid creation (in msecs)\n var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;\n\n // Per 4.2.1.2, Bump clockseq on clock regression\n if (dt < 0 && options.clockseq === undefined) {\n clockseq = clockseq + 1 & 0x3fff;\n }\n\n // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\n // time interval\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {\n nsecs = 0;\n }\n\n // Per 4.2.1.2 Throw error if too many uuids are requested\n if (nsecs >= 10000) {\n throw new Error('uuid.v1(): Can\\'t create more than 10M uuids/sec');\n }\n\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq;\n\n // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\n msecs += 12219292800000;\n\n // `time_low`\n var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\n b[i++] = tl >>> 24 & 0xff;\n b[i++] = tl >>> 16 & 0xff;\n b[i++] = tl >>> 8 & 0xff;\n b[i++] = tl & 0xff;\n\n // `time_mid`\n var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;\n b[i++] = tmh >>> 8 & 0xff;\n b[i++] = tmh & 0xff;\n\n // `time_high_and_version`\n b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\n b[i++] = tmh >>> 16 & 0xff;\n\n // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\n b[i++] = clockseq >>> 8 | 0x80;\n\n // `clock_seq_low`\n b[i++] = clockseq & 0xff;\n\n // `node`\n for (var n = 0; n < 6; ++n) {\n b[i + n] = node[n];\n }\n\n return buf ? buf : bytesToUuid(b);\n}\n\nmodule.exports = v1;\n","var rng = require('./lib/rng');\nvar bytesToUuid = require('./lib/bytesToUuid');\n\nfunction v4(options, buf, offset) {\n var i = buf && offset || 0;\n\n if (typeof(options) == 'string') {\n buf = options === 'binary' ? new Array(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ++ii) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || bytesToUuid(rnds);\n}\n\nmodule.exports = v4;\n"],"names":[],"sourceRoot":""}